Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: libdpp-10.0.10
@ 2022-06-14 11:19 JuniorSuperTux
  2022-06-14 11:37 ` [PR PATCH] [Updated] [WIP] " JuniorSuperTux
                   ` (49 more replies)
  0 siblings, 50 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-14 11:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1254 bytes --]

There is a new pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 3052 bytes --]

From b7c78fde008861438bafc8e95ea462f68e88210b Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel    |  1 +
 srcpkgs/libdpp/template | 47 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..ba83744fea2f
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,47 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+configure_args="-DCMAKE_INSTALL_PREFIX=/usr"
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	find ${wrksrc} \( -iname "*.h" -o -iname "*.cpp" \) -exec sed -i -E "s/dpp\/(nlohmann|fmt)\//\1\//" '{}' \+
+	sed -i -E "s/install\(TARGETS dpp LIBRARY DESTINATION (.*)\)/install\(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION \1\)\ninstall\(EXPORT dpp-targets DESTINATION \1\)/" CMakeLists.txt
+	sed -i -E "s/libdpp/dpp/" "${wrksrc}/CMakeLists.txt" "cmake/libdpp-config.cmake"
+	sed -i -E "s/libdpp-config/dpp-config/" "${wrksrc}/cmake/CPackSetup.cmake"
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -rf "${wrksrc}/include/dpp/fmt"
+	rm -rf "${wrksrc}/include/dpp/nlohmann"
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json.hpp"/\<nlohmann\/json.hpp\>/g' ${wrksrc}/CMakeLists.txt
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json_fwd.hpp"/\<nlohmann\/json_fwd.hpp\>/g' ${wrksrc}/CMakeLists.txt
+}
+
+post_install() {
+	rm -rf usr/lib/dpp-${version%.*}
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+        vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 755 "usr/lib/cmake/dpp"; done
+		sed -i -E "s/if\(_realCurr STREQUAL _realOrig\)/if\(1\)/" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp.cmake" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets.cmake"
+		sed -i -E "s/([ \(_]dpp)/\1::dpp/" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets-none.cmake"
+		vmove usr/lib/cmake/dpp
+		rm -rf "${PKGDESTDIR}/include/dpp-${version%.*}"
+		vmove usr/include
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
@ 2022-06-14 11:37 ` JuniorSuperTux
  2022-06-14 11:41 ` JuniorSuperTux
                   ` (48 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-14 11:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1265 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

[WIP] New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 3052 bytes --]

From b60eddcffd6588dd351a56132e82e7f6570ba5a9 Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel    |  1 +
 srcpkgs/libdpp/template | 47 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..ba83744fea2f
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,47 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+configure_args="-DCMAKE_INSTALL_PREFIX=/usr"
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	find ${wrksrc} \( -iname "*.h" -o -iname "*.cpp" \) -exec sed -i -E "s/dpp\/(nlohmann|fmt)\//\1\//" '{}' \+
+	sed -i -E "s/install\(TARGETS dpp LIBRARY DESTINATION (.*)\)/install\(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION \1\)\ninstall\(EXPORT dpp-targets DESTINATION \1\)/" CMakeLists.txt
+	sed -i -E "s/libdpp/dpp/" "${wrksrc}/CMakeLists.txt" "cmake/libdpp-config.cmake"
+	sed -i -E "s/libdpp-config/dpp-config/" "${wrksrc}/cmake/CPackSetup.cmake"
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -rf "${wrksrc}/include/dpp/fmt"
+	rm -rf "${wrksrc}/include/dpp/nlohmann"
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json.hpp"/\<nlohmann\/json.hpp\>/g' ${wrksrc}/CMakeLists.txt
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json_fwd.hpp"/\<nlohmann\/json_fwd.hpp\>/g' ${wrksrc}/CMakeLists.txt
+}
+
+post_install() {
+	rm -rf usr/lib/dpp-${version%.*}
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+        vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 755 "usr/lib/cmake/dpp"; done
+		sed -i -E "s/if\(_realCurr STREQUAL _realOrig\)/if\(1\)/" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp.cmake" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets.cmake"
+		sed -i -E "s/([ \(_]dpp)/\1::dpp/" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets-none.cmake"
+		vmove usr/lib/cmake/dpp
+		rm -rf "${PKGDESTDIR}/include/dpp-${version%.*}"
+		vmove usr/include
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
  2022-06-14 11:37 ` [PR PATCH] [Updated] [WIP] " JuniorSuperTux
@ 2022-06-14 11:41 ` JuniorSuperTux
  2022-06-14 11:48 ` JuniorSuperTux
                   ` (47 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-14 11:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1265 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

[WIP] New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 3044 bytes --]

From bcde8041fd9d259fd32c0fca15884816c0862094 Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel    |  1 +
 srcpkgs/libdpp/template | 47 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..6114e90618ce
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,47 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+configure_args="-DCMAKE_INSTALL_PREFIX=/usr"
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	find ${wrksrc} \( -iname "*.h" -o -iname "*.cpp" \) -exec sed -i -E "s/dpp\/(nlohmann|fmt)\//\1\//" '{}' \+
+	sed -i -E "s/install\(TARGETS dpp LIBRARY DESTINATION (.*)\)/install\(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION \1\)\ninstall\(EXPORT dpp-targets DESTINATION \1\)/" CMakeLists.txt
+	sed -i -E "s/libdpp/dpp/" "${wrksrc}/CMakeLists.txt" "cmake/libdpp-config.cmake"
+	sed -i -E "s/libdpp-config/dpp-config/" "${wrksrc}/cmake/CPackSetup.cmake"
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -rf "${wrksrc}/include/dpp/fmt"
+	rm -rf "${wrksrc}/include/dpp/nlohmann"
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json.hpp"/\<nlohmann\/json.hpp\>/g' ${wrksrc}/CMakeLists.txt
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json_fwd.hpp"/\<nlohmann\/json_fwd.hpp\>/g' ${wrksrc}/CMakeLists.txt
+}
+
+post_install() {
+	rm -rf usr/lib/dpp-${version%.*}
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 755 "${DESTDIR}/usr/lib/cmake/dpp"; done
+		sed -i -E "s/if\(_realCurr STREQUAL _realOrig\)/if\(1\)/" "${DESTDIR}/usr/lib/cmake/dpp/dpp.cmake" "${DESTDIR}/usr/lib/cmake/dpp/dpp-targets.cmake"
+		sed -i -E "s/([ \(_]dpp)/\1::dpp/" "${DESTDIR}/usr/lib/cmake/dpp/dpp-targets-none.cmake"
+		vmove usr/lib/cmake
+		rm -rf "${PKGDESTDIR}/include/dpp-${version%.*}"
+		vmove usr/include
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
  2022-06-14 11:37 ` [PR PATCH] [Updated] [WIP] " JuniorSuperTux
  2022-06-14 11:41 ` JuniorSuperTux
@ 2022-06-14 11:48 ` JuniorSuperTux
  2022-06-14 11:50 ` JuniorSuperTux
                   ` (46 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-14 11:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1265 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

[WIP] New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 3033 bytes --]

From 2c4bf490fbde3346c01d6cbcab800d3f61d5e2ab Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel    |  1 +
 srcpkgs/libdpp/template | 46 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..0c3505bb98ba
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,46 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+configure_args="-DCMAKE_INSTALL_PREFIX=/usr"
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	find ${wrksrc} \( -iname "*.h" -o -iname "*.cpp" \) -exec sed -i -E "s/dpp\/(nlohmann|fmt)\//\1\//" '{}' \+
+	sed -i -E "s/install\(TARGETS dpp LIBRARY DESTINATION (.*)\)/install\(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION \1\)\ninstall\(EXPORT dpp-targets DESTINATION \1\)/" CMakeLists.txt
+	sed -i -E "s/libdpp/dpp/" "${wrksrc}/CMakeLists.txt" "cmake/libdpp-config.cmake"
+	sed -i -E "s/libdpp-config/dpp-config/" "${wrksrc}/cmake/CPackSetup.cmake"
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -rf "${wrksrc}/include/dpp/fmt"
+	rm -rf "${wrksrc}/include/dpp/nlohmann"
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json.hpp"/\<nlohmann\/json.hpp\>/g' ${wrksrc}/CMakeLists.txt
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json_fwd.hpp"/\<nlohmann\/json_fwd.hpp\>/g' ${wrksrc}/CMakeLists.txt
+}
+
+post_install() {
+	rm -rf usr/lib/dpp-${version%.*}
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmkdir usr/lib/cmake/dpp
+		find "${PKGDESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 755 "${PKGDESTDIR}/usr/lib/cmake/dpp"; done
+		sed -i -E "s/if\(_realCurr STREQUAL _realOrig\)/if\(1\)/" "${DESTDIR}/usr/lib/cmake/dpp/dpp.cmake" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets.cmake"
+		sed -i -E "s/([ \(_]dpp)/\1::dpp/" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets-none.cmake"
+		rm -rf "${PKGDESTDIR}/include/dpp-${version%.*}"
+		vmove usr/include
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (2 preceding siblings ...)
  2022-06-14 11:48 ` JuniorSuperTux
@ 2022-06-14 11:50 ` JuniorSuperTux
  2022-06-14 12:00 ` JuniorSuperTux
                   ` (45 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-14 11:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1265 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

[WIP] New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 3030 bytes --]

From 2f9da62e7c1a1c2701d749ba67aa2bcf81c667a2 Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel    |  1 +
 srcpkgs/libdpp/template | 46 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..dda9be0f643d
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,46 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+configure_args="-DCMAKE_INSTALL_PREFIX=/usr"
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	find ${wrksrc} \( -iname "*.h" -o -iname "*.cpp" \) -exec sed -i -E "s/dpp\/(nlohmann|fmt)\//\1\//" '{}' \+
+	sed -i -E "s/install\(TARGETS dpp LIBRARY DESTINATION (.*)\)/install\(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION \1\)\ninstall\(EXPORT dpp-targets DESTINATION \1\)/" CMakeLists.txt
+	sed -i -E "s/libdpp/dpp/" "${wrksrc}/CMakeLists.txt" "cmake/libdpp-config.cmake"
+	sed -i -E "s/libdpp-config/dpp-config/" "${wrksrc}/cmake/CPackSetup.cmake"
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -rf "${wrksrc}/include/dpp/fmt"
+	rm -rf "${wrksrc}/include/dpp/nlohmann"
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json.hpp"/\<nlohmann\/json.hpp\>/g' ${wrksrc}/CMakeLists.txt
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json_fwd.hpp"/\<nlohmann\/json_fwd.hpp\>/g' ${wrksrc}/CMakeLists.txt
+}
+
+post_install() {
+	rm -rf usr/lib/dpp-${version%.*}
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 755 "${PKGDESTDIR}/usr/lib/cmake/dpp"; done
+		sed -i -E "s/if\(_realCurr STREQUAL _realOrig\)/if\(1\)/" "${DESTDIR}/usr/lib/cmake/dpp/dpp.cmake" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets.cmake"
+		sed -i -E "s/([ \(_]dpp)/\1::dpp/" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets-none.cmake"
+		rm -rf "${PKGDESTDIR}/include/dpp-${version%.*}"
+		vmove usr/include
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (3 preceding siblings ...)
  2022-06-14 11:50 ` JuniorSuperTux
@ 2022-06-14 12:00 ` JuniorSuperTux
  2022-06-14 12:28 ` JuniorSuperTux
                   ` (44 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-14 12:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1265 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

[WIP] New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 3033 bytes --]

From 9a6a634e6efc04103aef1e600d680f17a14da8ea Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel    |  1 +
 srcpkgs/libdpp/template | 46 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..a57cdca29db1
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,46 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+configure_args="-DCMAKE_INSTALL_PREFIX=/usr"
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	find ${wrksrc} \( -iname "*.h" -o -iname "*.cpp" \) -exec sed -i -E "s/dpp\/(nlohmann|fmt)\//\1\//" '{}' \+
+	sed -i -E "s/install\(TARGETS dpp LIBRARY DESTINATION (.*)\)/install\(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION \1\)\ninstall\(EXPORT dpp-targets DESTINATION \1\)/" CMakeLists.txt
+	sed -i -E "s/libdpp/dpp/" "${wrksrc}/CMakeLists.txt" "cmake/libdpp-config.cmake"
+	sed -i -E "s/libdpp-config/dpp-config/" "${wrksrc}/cmake/CPackSetup.cmake"
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -rf "${wrksrc}/include/dpp/fmt"
+	rm -rf "${wrksrc}/include/dpp/nlohmann"
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json.hpp"/\<nlohmann\/json.hpp\>/g' ${wrksrc}/CMakeLists.txt
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json_fwd.hpp"/\<nlohmann\/json_fwd.hpp\>/g' ${wrksrc}/CMakeLists.txt
+}
+
+post_install() {
+	rm -rf usr/lib/dpp-${version%.*}
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "${PKGDESTDIR}/usr/lib/cmake/dpp"; done
+		sed -i -E "s/if\(_realCurr STREQUAL _realOrig\)/if\(1\)/" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp.cmake" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets.cmake"
+		sed -i -E "s/([ \(_]dpp)/\1::dpp/" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets-none.cmake"
+		rm -rf "${PKGDESTDIR}/include/dpp-${version%.*}"
+		vmove usr/include
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (4 preceding siblings ...)
  2022-06-14 12:00 ` JuniorSuperTux
@ 2022-06-14 12:28 ` JuniorSuperTux
  2022-06-14 12:35 ` JuniorSuperTux
                   ` (43 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-14 12:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1265 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

[WIP] New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 3042 bytes --]

From 714a972500bbdce44055813fcd2d47ef22c87568 Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel    |  1 +
 srcpkgs/libdpp/template | 47 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..54fc3a303ed1
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,47 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+configure_args="-DCMAKE_INSTALL_PREFIX=/usr"
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	find ${wrksrc} \( -iname "*.h" -o -iname "*.cpp" \) -exec sed -i -E "s/dpp\/(nlohmann|fmt)\//\1\//" '{}' \+
+	sed -i -E "s/install\(TARGETS dpp LIBRARY DESTINATION (.*)\)/install\(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION \1\)\ninstall\(EXPORT dpp-targets DESTINATION \1\)/" CMakeLists.txt
+	sed -i -E "s/libdpp/dpp/" "${wrksrc}/CMakeLists.txt" "cmake/libdpp-config.cmake"
+	sed -i -E "s/libdpp-config/dpp-config/" "${wrksrc}/cmake/CPackSetup.cmake"
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -rf "${wrksrc}/include/dpp/fmt"
+	rm -rf "${wrksrc}/include/dpp/nlohmann"
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json.hpp"/\<nlohmann\/json.hpp\>/g' ${wrksrc}/CMakeLists.txt
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json_fwd.hpp"/\<nlohmann\/json_fwd.hpp\>/g' ${wrksrc}/CMakeLists.txt
+}
+
+do_clean() {
+	rm -rf usr/lib/dpp-${version%.*}
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		sed -i -E "s/if\(_realCurr STREQUAL _realOrig\)/if\(1\)/" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp.cmake" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets.cmake"
+		sed -i -E "s/([ \(_]dpp)/\1::dpp/" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets-none.cmake"
+		vmove usr/lib/cmake/dpp
+		rm -rf "${PKGDESTDIR}/include/dpp-${version%.*}"
+		vmove usr/include
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (5 preceding siblings ...)
  2022-06-14 12:28 ` JuniorSuperTux
@ 2022-06-14 12:35 ` JuniorSuperTux
  2022-06-15 22:29 ` [PR REVIEW] " classabbyamp
                   ` (42 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-14 12:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1265 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

[WIP] New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 3015 bytes --]

From 7ebee2a04385be8f20f48e6162757e15605fbdeb Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel    |  1 +
 srcpkgs/libdpp/template | 46 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..d30adfe8a40f
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,46 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+configure_args="-DCMAKE_INSTALL_PREFIX=/usr"
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	find ${wrksrc} \( -iname "*.h" -o -iname "*.cpp" \) -exec sed -i -E "s/dpp\/(nlohmann|fmt)\//\1\//" '{}' \+
+	sed -i -E "s/install\(TARGETS dpp LIBRARY DESTINATION (.*)\)/install\(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION \1\)\ninstall\(EXPORT dpp-targets DESTINATION \1\)/" CMakeLists.txt
+	sed -i -E "s/libdpp/dpp/" "${wrksrc}/CMakeLists.txt" "cmake/libdpp-config.cmake"
+	sed -i -E "s/libdpp-config/dpp-config/" "${wrksrc}/cmake/CPackSetup.cmake"
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -rf "${wrksrc}/include/dpp/fmt"
+	rm -rf "${wrksrc}/include/dpp/nlohmann"
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json.hpp"/\<nlohmann\/json.hpp\>/g' ${wrksrc}/CMakeLists.txt
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json_fwd.hpp"/\<nlohmann\/json_fwd.hpp\>/g' ${wrksrc}/CMakeLists.txt
+}
+
+do_clean() {
+	rm -rf usr/lib/dpp-${version%.*}
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		sed -i -E "s/if\(_realCurr STREQUAL _realOrig\)/if\(1\)/" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp.cmake" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets.cmake"
+		sed -i -E "s/([ \(_]dpp)/\1::dpp/" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets-none.cmake"
+		rm -rf "${PKGDESTDIR}/include/dpp-${version%.*}"
+		vmove usr/include
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR REVIEW] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (6 preceding siblings ...)
  2022-06-14 12:35 ` JuniorSuperTux
@ 2022-06-15 22:29 ` classabbyamp
  2022-06-15 22:29 ` classabbyamp
                   ` (41 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: classabbyamp @ 2022-06-15 22:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 384 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#discussion_r898444706

Comment:
use [`vsed`](https://github.com/void-linux/void-packages/blob/master/Manual.md#global_funcs) instead of `sed`.

The changes here are quite extensive, and may work better as a patch (they would certainly be more readable that way).

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR REVIEW] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (7 preceding siblings ...)
  2022-06-15 22:29 ` [PR REVIEW] " classabbyamp
@ 2022-06-15 22:29 ` classabbyamp
  2022-06-15 22:29 ` classabbyamp
                   ` (40 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: classabbyamp @ 2022-06-15 22:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 320 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#discussion_r898447588

Comment:
This is already specified in the build style:
https://github.com/void-linux/void-packages/blob/fe7cd1f130fe198b0d2522f91889317786f10106/common/build-style/cmake.sh#L54

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR REVIEW] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (8 preceding siblings ...)
  2022-06-15 22:29 ` classabbyamp
@ 2022-06-15 22:29 ` classabbyamp
  2022-06-15 22:30 ` classabbyamp
                   ` (39 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: classabbyamp @ 2022-06-15 22:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#discussion_r898462181

Comment:
```suggestion
		rm -r "${PKGDESTDIR}/include/dpp-${version%.*}"
```
This will tell us if something changes here, instead of blindly doing it

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR REVIEW] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (9 preceding siblings ...)
  2022-06-15 22:29 ` classabbyamp
@ 2022-06-15 22:30 ` classabbyamp
  2022-06-15 23:25 ` [PR PATCH] [Updated] " JuniorSuperTux
                   ` (38 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: classabbyamp @ 2022-06-15 22:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 174 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#discussion_r898491385

Comment:
why is this necessary?

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (10 preceding siblings ...)
  2022-06-15 22:30 ` classabbyamp
@ 2022-06-15 23:25 ` JuniorSuperTux
  2022-06-15 23:36 ` [PR REVIEW] " JuniorSuperTux
                   ` (37 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-15 23:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 3026 bytes --]

From 6f0e72dd963d5a033351e09a45deeba906e7cf48 Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel    |  1 +
 srcpkgs/libdpp/template | 46 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..271900981c6f
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,46 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+configure_args="-DCMAKE_INSTALL_PREFIX=/usr"
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	find ${wrksrc} \( -iname "*.h" -o -iname "*.cpp" \) -exec sed -i -E "s/dpp\/(nlohmann|fmt)\//\1\//" '{}' \+
+	sed -i -E "s/install\(TARGETS dpp LIBRARY DESTINATION (.*)\)/install\(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION \1\)\ninstall\(EXPORT dpp-targets DESTINATION \1\)/" CMakeLists.txt
+	sed -i -E "s/libdpp/dpp/" "${wrksrc}/CMakeLists.txt" "cmake/libdpp-config.cmake"
+	sed -i -E "s/libdpp-config/dpp-config/" "${wrksrc}/cmake/CPackSetup.cmake"
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -rf "${wrksrc}/include/dpp/fmt"
+	rm -rf "${wrksrc}/include/dpp/nlohmann"
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json.hpp"/\<nlohmann\/json.hpp\>/g' ${wrksrc}/CMakeLists.txt
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json_fwd.hpp"/\<nlohmann\/json_fwd.hpp\>/g' ${wrksrc}/CMakeLists.txt
+}
+
+do_clean() {
+	rm -rf ${DESTDIR}/usr/lib/dpp-${version%.*}
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		sed -i -E "s/if\(_realCurr STREQUAL _realOrig\)/if\(1\)/" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp.cmake" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets.cmake"
+		sed -i -E "s/([ \(_]dpp)/\1::dpp/" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets-none.cmake"
+		vmove usr/include
+		rm -rf "${PKGDESTDIR}/include/dpp-${version%.*}"
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR REVIEW] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (11 preceding siblings ...)
  2022-06-15 23:25 ` [PR PATCH] [Updated] " JuniorSuperTux
@ 2022-06-15 23:36 ` JuniorSuperTux
  2022-06-15 23:48 ` [PR PATCH] [Updated] " JuniorSuperTux
                   ` (36 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-15 23:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 215 bytes --]

New review comment by JuniorSuperTux on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#discussion_r898558420

Comment:
Because it installs in both usr/lib/dpp and usr/lib/dpp-10.0.

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (12 preceding siblings ...)
  2022-06-15 23:36 ` [PR REVIEW] " JuniorSuperTux
@ 2022-06-15 23:48 ` JuniorSuperTux
  2022-06-15 23:48 ` JuniorSuperTux
                   ` (35 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-15 23:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 3042 bytes --]

From 60ae19f798b404adab03738652596ad2b05a5efd Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel    |  1 +
 srcpkgs/libdpp/template | 46 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..81eb942924dd
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,46 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+configure_args="-DCMAKE_INSTALL_PREFIX=/usr"
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	find ${wrksrc} \( -iname "*.h" -o -iname "*.cpp" \) -exec vsed -i "s/dpp\/(nlohmann|fmt)\//\1\//" -e '{}' \+
+	vsed -i "s/install\(TARGETS dpp LIBRARY DESTINATION (.*)\)/install\(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION \1\)\ninstall\(EXPORT dpp-targets DESTINATION \1\)/" -e CMakeLists.txt
+	vsed -i "s/libdpp/dpp/" -e "${wrksrc}/CMakeLists.txt" "${wrksrc}/cmake/libdpp-config.cmake"
+	vsed -i "s/libdpp-config/dpp-config/" -e "${wrksrc}/cmake/CPackSetup.cmake"
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -rf "${wrksrc}/include/dpp/fmt"
+	rm -rf "${wrksrc}/include/dpp/nlohmann"
+	vsed -i 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json.hpp"/\<nlohmann\/json.hpp\>/g' -e ${wrksrc}/CMakeLists.txt
+	vsed -i 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json_fwd.hpp"/\<nlohmann\/json_fwd.hpp\>/g' -e ${wrksrc}/CMakeLists.txt
+}
+
+do_clean() {
+	rm -r ${DESTDIR}/usr/lib/dpp-${version%.*}
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		vsed -i "s/if\(_realCurr STREQUAL _realOrig\)/if\(1\)/" -e "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp.cmake" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets.cmake"
+		vsed -i "s/([ \(_]dpp)/\1::dpp/" -e "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets-none.cmake"
+		vmove usr/include
+		rm -r "${PKGDESTDIR}/include/dpp-${version%.*}"
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (13 preceding siblings ...)
  2022-06-15 23:48 ` [PR PATCH] [Updated] " JuniorSuperTux
@ 2022-06-15 23:48 ` JuniorSuperTux
  2022-06-15 23:51 ` JuniorSuperTux
                   ` (34 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-15 23:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 2996 bytes --]

From f50ff6f26a63dcaacafe825cb600d132091517cc Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel    |  1 +
 srcpkgs/libdpp/template | 45 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..1f442918c206
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,45 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	find ${wrksrc} \( -iname "*.h" -o -iname "*.cpp" \) -exec vsed -i "s/dpp\/(nlohmann|fmt)\//\1\//" -e '{}' \+
+	vsed -i "s/install\(TARGETS dpp LIBRARY DESTINATION (.*)\)/install\(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION \1\)\ninstall\(EXPORT dpp-targets DESTINATION \1\)/" -e CMakeLists.txt
+	vsed -i "s/libdpp/dpp/" -e "${wrksrc}/CMakeLists.txt" "${wrksrc}/cmake/libdpp-config.cmake"
+	vsed -i "s/libdpp-config/dpp-config/" -e "${wrksrc}/cmake/CPackSetup.cmake"
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -rf "${wrksrc}/include/dpp/fmt"
+	rm -rf "${wrksrc}/include/dpp/nlohmann"
+	vsed -i 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json.hpp"/\<nlohmann\/json.hpp\>/g' -e ${wrksrc}/CMakeLists.txt
+	vsed -i 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json_fwd.hpp"/\<nlohmann\/json_fwd.hpp\>/g' -e ${wrksrc}/CMakeLists.txt
+}
+
+do_clean() {
+	rm -r ${DESTDIR}/usr/lib/dpp-${version%.*}
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		vsed -i "s/if\(_realCurr STREQUAL _realOrig\)/if\(1\)/" -e "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp.cmake" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets.cmake"
+		vsed -i "s/([ \(_]dpp)/\1::dpp/" -e "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets-none.cmake"
+		vmove usr/include
+		rm -r "${PKGDESTDIR}/include/dpp-${version%.*}"
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (14 preceding siblings ...)
  2022-06-15 23:48 ` JuniorSuperTux
@ 2022-06-15 23:51 ` JuniorSuperTux
  2022-06-15 23:56 ` JuniorSuperTux
                   ` (33 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-15 23:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 3015 bytes --]

From 7fdd81ea57a8d93f46dded9e0f7b8bf90adcffe8 Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel    |  1 +
 srcpkgs/libdpp/template | 45 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..3ea80a7fd67a
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,45 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	find ${wrksrc} \( -iname "*.h" -o -iname "*.cpp" \) | while read file; do vsed -i "s/dpp\/(nlohmann|fmt)\//\1\//" -e "$file" \+
+	vsed -i "s/install\(TARGETS dpp LIBRARY DESTINATION (.*)\)/install\(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION \1\)\ninstall\(EXPORT dpp-targets DESTINATION \1\)/" -e CMakeLists.txt
+	vsed -i "s/libdpp/dpp/" -e "${wrksrc}/CMakeLists.txt" "${wrksrc}/cmake/libdpp-config.cmake"
+	vsed -i "s/libdpp-config/dpp-config/" -e "${wrksrc}/cmake/CPackSetup.cmake"
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -rf "${wrksrc}/include/dpp/fmt"
+	rm -rf "${wrksrc}/include/dpp/nlohmann"
+	vsed -i 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json.hpp"/\<nlohmann\/json.hpp\>/g' -e ${wrksrc}/CMakeLists.txt
+	vsed -i 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json_fwd.hpp"/\<nlohmann\/json_fwd.hpp\>/g' -e ${wrksrc}/CMakeLists.txt
+}
+
+do_clean() {
+	rm -r ${DESTDIR}/usr/lib/dpp-${version%.*}
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		vsed -i "s/if\(_realCurr STREQUAL _realOrig\)/if\(1\)/" -e "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp.cmake" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets.cmake"
+		vsed -i "s/([ \(_]dpp)/\1::dpp/" -e "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets-none.cmake"
+		vmove usr/include
+		rm -r "${PKGDESTDIR}/include/dpp-${version%.*}"
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (15 preceding siblings ...)
  2022-06-15 23:51 ` JuniorSuperTux
@ 2022-06-15 23:56 ` JuniorSuperTux
  2022-06-16  0:02 ` JuniorSuperTux
                   ` (32 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-15 23:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 3026 bytes --]

From 5667104139db95384c50dab5fa98fd0b6fc4b794 Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel    |  1 +
 srcpkgs/libdpp/template | 45 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..339f87619f19
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,45 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	find "${wrksrc}" \( -iname "*.h" -o -iname "*.cpp" \) | while read file; do vsed -i "s/dpp\/(nlohmann|fmt)\//\1\//" -e "$file"; done
+	vsed -i "s/install\(TARGETS dpp LIBRARY DESTINATION (.*)\)/install\(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION \1\)\ninstall\(EXPORT dpp-targets DESTINATION \1\)/" -e CMakeLists.txt
+	vsed -i "s/libdpp/dpp/" -e "${wrksrc}/CMakeLists.txt" "${wrksrc}/cmake/libdpp-config.cmake"
+	vsed -i "s/libdpp-config/dpp-config/" -e "${wrksrc}/cmake/CPackSetup.cmake"
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -rf "${wrksrc}/include/dpp/fmt"
+	rm -rf "${wrksrc}/include/dpp/nlohmann"
+	vsed -i 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json.hpp"/\<nlohmann\/json.hpp\>/g' -e "${wrksrc}/CMakeLists.txt"
+	vsed -i 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json_fwd.hpp"/\<nlohmann\/json_fwd.hpp\>/g' -e "${wrksrc}/CMakeLists.txt"
+}
+
+do_clean() {
+	rm -r "${DESTDIR}/usr/lib/dpp-${version%.*}"
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		vsed -i "s/if\(_realCurr STREQUAL _realOrig\)/if\(1\)/" -e "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp.cmake" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets.cmake"
+		vsed -i "s/([ \(_]dpp)/\1::dpp/" -e "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets-none.cmake"
+		vmove usr/include
+		rm -r "${PKGDESTDIR}/include/dpp-${version%.*}"
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (16 preceding siblings ...)
  2022-06-15 23:56 ` JuniorSuperTux
@ 2022-06-16  0:02 ` JuniorSuperTux
  2022-06-16  0:06 ` JuniorSuperTux
                   ` (31 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-16  0:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 3038 bytes --]

From 3f94ce84c4317ddb38a002df162cd3bfcf95aea3 Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel    |  1 +
 srcpkgs/libdpp/template | 45 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..e5f0faaaceb7
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,45 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	find "${wrksrc}" \( -iname "*.h" -o -iname "*.cpp" \) | while read file; do vsed -i "s/dpp\/(nlohmann|fmt)\//\1\//" -e "$file"; done
+	vsed -i "${wrksrc}/CMakeLists.txt" -e "s/install\(TARGETS dpp LIBRARY DESTINATION (.*)\)/install\(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION \1\)\ninstall\(EXPORT dpp-targets DESTINATION \1\)/"
+	vsed -i "${wrksrc}/CMakeLists.txt" "${wrksrc}/cmake/libdpp-config.cmake" -e "s/libdpp/dpp/"
+	vsed -i "${wrksrc}/cmake/CPackSetup.cmake" -e "s/libdpp-config/dpp-config/"
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -rf "${wrksrc}/include/dpp/fmt"
+	rm -rf "${wrksrc}/include/dpp/nlohmann"
+	vsed -i "${wrksrc}/CMakeLists.txt" -e 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json.hpp"/\<nlohmann\/json.hpp\>/g'
+	vsed -i "${wrksrc}/CMakeLists.txt" -e 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json_fwd.hpp"/\<nlohmann\/json_fwd.hpp\>/g'
+}
+
+do_clean() {
+	rm -r "${DESTDIR}/usr/lib/dpp-${version%.*}"
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		vsed -i "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets.cmake" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp.cmake" -e "s/if\(_realCurr STREQUAL _realOrig\)/if\(1\)/"
+		vsed -i "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets-none.cmake" -e "s/([ \(_]dpp)/\1::dpp/"
+		vmove usr/include
+		rm -r "${PKGDESTDIR}/include/dpp-${version%.*}"
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (17 preceding siblings ...)
  2022-06-16  0:02 ` JuniorSuperTux
@ 2022-06-16  0:06 ` JuniorSuperTux
  2022-06-16  0:17 ` JuniorSuperTux
                   ` (30 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-16  0:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 3038 bytes --]

From 7d1dc4d010c62f290a81a194b7ec3b4ca6f2da48 Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel    |  1 +
 srcpkgs/libdpp/template | 45 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..2e4eac52b1b5
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,45 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	find "${wrksrc}" \( -iname "*.h" -o -iname "*.cpp" \) | while read file; do vsed -i "$file" -e "s/dpp\/(nlohmann|fmt)\//\1\//"; done
+	vsed -i "${wrksrc}/CMakeLists.txt" -e "s/install\(TARGETS dpp LIBRARY DESTINATION (.*)\)/install\(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION \1\)\ninstall\(EXPORT dpp-targets DESTINATION \1\)/"
+	vsed -i "${wrksrc}/CMakeLists.txt" "${wrksrc}/cmake/libdpp-config.cmake" -e "s/libdpp/dpp/"
+	vsed -i "${wrksrc}/cmake/CPackSetup.cmake" -e "s/libdpp-config/dpp-config/"
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -rf "${wrksrc}/include/dpp/fmt"
+	rm -rf "${wrksrc}/include/dpp/nlohmann"
+	vsed -i "${wrksrc}/CMakeLists.txt" -e 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json.hpp"/\<nlohmann\/json.hpp\>/g'
+	vsed -i "${wrksrc}/CMakeLists.txt" -e 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json_fwd.hpp"/\<nlohmann\/json_fwd.hpp\>/g'
+}
+
+do_clean() {
+	rm -r "${DESTDIR}/usr/lib/dpp-${version%.*}"
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		vsed -i "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets.cmake" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp.cmake" -e "s/if\(_realCurr STREQUAL _realOrig\)/if\(1\)/"
+		vsed -i "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets-none.cmake" -e "s/([ \(_]dpp)/\1::dpp/"
+		vmove usr/include
+		rm -r "${PKGDESTDIR}/include/dpp-${version%.*}"
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (18 preceding siblings ...)
  2022-06-16  0:06 ` JuniorSuperTux
@ 2022-06-16  0:17 ` JuniorSuperTux
  2022-06-16  1:45 ` classabbyamp
                   ` (29 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-16  0:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 209 bytes --]

New comment by JuniorSuperTux on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#issuecomment-1157094731

Comment:
Is there a way to pass the ``-E`` argument to sed with vsed?

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (19 preceding siblings ...)
  2022-06-16  0:17 ` JuniorSuperTux
@ 2022-06-16  1:45 ` classabbyamp
  2022-06-16  1:48 ` [PR REVIEW] " classabbyamp
                   ` (28 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: classabbyamp @ 2022-06-16  1:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 287 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#issuecomment-1157141832

Comment:
I don't believe so. I would recommend [creating a patch](https://github.com/void-linux/void-packages/blob/master/Manual.md#patches) instead.

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR REVIEW] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (20 preceding siblings ...)
  2022-06-16  1:45 ` classabbyamp
@ 2022-06-16  1:48 ` classabbyamp
  2022-06-16 14:49 ` abenson
                   ` (27 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: classabbyamp @ 2022-06-16  1:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 328 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#discussion_r898620969

Comment:
If it's in `masterdir/builddir/$wrksrc` or `masterdir/destdir/$pkgname-$version`, it should automatically be cleaned. Also, this function is only run if `xbps-src clean` is run

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR REVIEW] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (21 preceding siblings ...)
  2022-06-16  1:48 ` [PR REVIEW] " classabbyamp
@ 2022-06-16 14:49 ` abenson
  2022-06-16 14:50 ` abenson
                   ` (26 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: abenson @ 2022-06-16 14:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 181 bytes --]

New review comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#discussion_r899171056

Comment:
I second this, I'd prefer a patch.

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR REVIEW] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (22 preceding siblings ...)
  2022-06-16 14:49 ` abenson
@ 2022-06-16 14:50 ` abenson
  2022-06-16 14:50 ` abenson
                   ` (25 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: abenson @ 2022-06-16 14:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 190 bytes --]

New review comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#discussion_r899171758

Comment:
This is already the default can be dropped.

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR REVIEW] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (23 preceding siblings ...)
  2022-06-16 14:50 ` abenson
@ 2022-06-16 14:50 ` abenson
  2022-06-16 14:51 ` abenson
                   ` (24 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: abenson @ 2022-06-16 14:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 186 bytes --]

New review comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#discussion_r899172085

Comment:
Why not just name it DPP and DPP-devel?

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR REVIEW] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (24 preceding siblings ...)
  2022-06-16 14:50 ` abenson
@ 2022-06-16 14:51 ` abenson
  2022-06-16 15:00 ` abenson
                   ` (23 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: abenson @ 2022-06-16 14:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

New review comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#discussion_r899172851

Comment:
Change this to `post_install`

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR REVIEW] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (25 preceding siblings ...)
  2022-06-16 14:51 ` abenson
@ 2022-06-16 15:00 ` abenson
  2022-06-16 15:02 ` abenson
                   ` (22 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: abenson @ 2022-06-16 15:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

New review comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#discussion_r899182291

Comment:
Should be vmove, not vinstall

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR REVIEW] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (26 preceding siblings ...)
  2022-06-16 15:00 ` abenson
@ 2022-06-16 15:02 ` abenson
  2022-06-16 15:25 ` abenson
                   ` (21 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: abenson @ 2022-06-16 15:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

New review comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#discussion_r899182291

Comment:
Should be vmove, not vinstall

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR REVIEW] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (27 preceding siblings ...)
  2022-06-16 15:02 ` abenson
@ 2022-06-16 15:25 ` abenson
  2022-06-16 15:43 ` abenson
                   ` (20 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: abenson @ 2022-06-16 15:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 185 bytes --]

New review comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#discussion_r899208956

Comment:
`${sourcepkg}>=${version}_${revision}`

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (28 preceding siblings ...)
  2022-06-16 15:25 ` abenson
@ 2022-06-16 15:43 ` abenson
  2022-06-16 15:45 ` abenson
                   ` (19 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: abenson @ 2022-06-16 15:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1178 bytes --]

New comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#issuecomment-1157814389

Comment:
Moving everything to a patch cleans up the template quite a bit.  Place [use-system-libraries.txt](https://github.com/void-linux/void-packages/files/8920339/use-system-libraries.txt) at `srcpkgs/libdpp/patches/use-system-libraries.patch` and then you can clean up the rest the template as follows:

`post_extract()` can be simplified to

```
post_extract() {
    rm -r usr/include/dpp/fmt
    rm -r usr/include/dpp/nlohmann
}
```

`do_clean()` should be

```
post_install() {
    vmkdir usr/lib/cmake/dpp
    mv ${DESTDIR}/usr/lib/*.cmake ${DESTDIR}/usr/lib/cmake/dpp
    rm -r "${DESTDIR}/usr/lib/dpp-${version%.*}"
    rm -r "${DESTDIR}/usr/include/dpp-${version%.*}"
}
```

and `libdpp-devel_package()` should be

```
libdpp-devel_package() {
    depends="${makedepends} ${sourcepkg}>=${version}-${revision}"
    short_desc+=" - development files"
    pkg_install() {
        vmove usr/lib/pkgconfig
        vmove usr/lib/cmake/dpp
        vmove usr/include
        vmove "usr/lib/*.so"
    }
}
```

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (29 preceding siblings ...)
  2022-06-16 15:43 ` abenson
@ 2022-06-16 15:45 ` abenson
  2022-06-16 15:45 ` abenson
                   ` (18 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: abenson @ 2022-06-16 15:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1198 bytes --]

New comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#issuecomment-1157814389

Comment:
Moving everything to a patch cleans up the template quite a bit.  Place [use-system-libraries.txt](https://github.com/void-linux/void-packages/files/8920339/use-system-libraries.txt) at `srcpkgs/libdpp/patches/use-system-libraries.patch` and then you can clean up the rest the template as follows:

`post_extract()` can be simplified to

```
post_extract() {
    rm -r ${wrksrc}/usr/include/dpp/fmt
    rm -r ${wrksrc}/usr/include/dpp/nlohmann
}
```

`do_clean()` should be

```
post_install() {
    vmkdir usr/lib/cmake/dpp
    mv ${DESTDIR}/usr/lib/*.cmake ${DESTDIR}/usr/lib/cmake/dpp
    rm -r "${DESTDIR}/usr/lib/dpp-${version%.*}"
    rm -r "${DESTDIR}/usr/include/dpp-${version%.*}"
}
```

and `libdpp-devel_package()` should be

```
libdpp-devel_package() {
    depends="${makedepends} ${sourcepkg}>=${version}-${revision}"
    short_desc+=" - development files"
    pkg_install() {
        vmove usr/lib/pkgconfig
        vmove usr/lib/cmake/dpp
        vmove usr/include
        vmove "usr/lib/*.so"
    }
}
```

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (30 preceding siblings ...)
  2022-06-16 15:45 ` abenson
@ 2022-06-16 15:45 ` abenson
  2022-06-16 15:46 ` abenson
                   ` (17 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: abenson @ 2022-06-16 15:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1190 bytes --]

New comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#issuecomment-1157814389

Comment:
Moving everything to a patch cleans up the template quite a bit.  Place [use-system-libraries.txt](https://github.com/void-linux/void-packages/files/8920339/use-system-libraries.txt) at `srcpkgs/libdpp/patches/use-system-libraries.patch` and then you can clean up the rest the template as follows:

`post_extract()` can be simplified to

```
post_extract() {
    rm -r ${wrksrc}/include/dpp/fmt
    rm -r ${wrksrc}/include/dpp/nlohmann
}
```

`do_clean()` should be

```
post_install() {
    vmkdir usr/lib/cmake/dpp
    mv ${DESTDIR}/usr/lib/*.cmake ${DESTDIR}/usr/lib/cmake/dpp
    rm -r "${DESTDIR}/usr/lib/dpp-${version%.*}"
    rm -r "${DESTDIR}/usr/include/dpp-${version%.*}"
}
```

and `libdpp-devel_package()` should be

```
libdpp-devel_package() {
    depends="${makedepends} ${sourcepkg}>=${version}-${revision}"
    short_desc+=" - development files"
    pkg_install() {
        vmove usr/lib/pkgconfig
        vmove usr/lib/cmake/dpp
        vmove usr/include
        vmove "usr/lib/*.so"
    }
}
```

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (31 preceding siblings ...)
  2022-06-16 15:45 ` abenson
@ 2022-06-16 15:46 ` abenson
  2022-06-17  5:58 ` [PR REVIEW] " JuniorSuperTux
                   ` (16 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: abenson @ 2022-06-16 15:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1170 bytes --]

New comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#issuecomment-1157814389

Comment:
Moving everything to a patch cleans up the template quite a bit.  Place [use-system-libraries.txt](https://github.com/void-linux/void-packages/files/8920339/use-system-libraries.txt) at `srcpkgs/libdpp/patches/use-system-libraries.patch` and then you can clean up the rest the template as follows:

`post_extract()` can be simplified to

```
post_extract() {
    rm -r include/dpp/fmt
    rm -r include/dpp/nlohmann
}
```

`do_clean()` should be

```
post_install() {
    vmkdir usr/lib/cmake/dpp
    mv ${DESTDIR}/usr/lib/*.cmake ${DESTDIR}/usr/lib/cmake/dpp
    rm -r "${DESTDIR}/usr/lib/dpp-${version%.*}"
    rm -r "${DESTDIR}/usr/include/dpp-${version%.*}"
}
```

and `libdpp-devel_package()` should be

```
libdpp-devel_package() {
    depends="${makedepends} ${sourcepkg}>=${version}-${revision}"
    short_desc+=" - development files"
    pkg_install() {
        vmove usr/lib/pkgconfig
        vmove usr/lib/cmake/dpp
        vmove usr/include
        vmove "usr/lib/*.so"
    }
}
```

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR REVIEW] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (32 preceding siblings ...)
  2022-06-16 15:46 ` abenson
@ 2022-06-17  5:58 ` JuniorSuperTux
  2022-06-17 11:19 ` JuniorSuperTux
                   ` (15 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-17  5:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 219 bytes --]

New review comment by JuniorSuperTux on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#discussion_r899787330

Comment:
What about the sed changes that are made after the build process?

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR REVIEW] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (33 preceding siblings ...)
  2022-06-17  5:58 ` [PR REVIEW] " JuniorSuperTux
@ 2022-06-17 11:19 ` JuniorSuperTux
  2022-06-18  7:17 ` [PR PATCH] [Updated] " JuniorSuperTux
                   ` (14 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-17 11:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 219 bytes --]

New review comment by JuniorSuperTux on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#discussion_r899787330

Comment:
What about the sed changes that are made after the build process?

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (34 preceding siblings ...)
  2022-06-17 11:19 ` JuniorSuperTux
@ 2022-06-18  7:17 ` JuniorSuperTux
  2022-06-18  7:27 ` abenson
                   ` (13 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-18  7:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 1468131 bytes --]

From 7acd4703dad30fe1331bc897cd5298b7b5ecf697 Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel                          |     1 +
 .../libdpp/files/fix-headers-and-cmakefiles   | 38772 ++++++++++++++++
 srcpkgs/libdpp/files/fix-installed-cmakefiles |    86 +
 srcpkgs/libdpp/template                       |    37 +
 4 files changed, 38896 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/files/fix-headers-and-cmakefiles
 create mode 100644 srcpkgs/libdpp/files/fix-installed-cmakefiles
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/files/fix-headers-and-cmakefiles b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
new file mode 100644
index 000000000000..f63df5313e96
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
@@ -0,0 +1,38772 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index bbcc4b3..524a3ca 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -43,7 +43,7 @@ math(EXPR DPP_VERSION_PATCH ${CMAKE_MATCH_3})
+ 
+ string(CONCAT DPP_VERSION ${DPP_VERSION_MAJOR}.${DPP_VERSION_MINOR}.${DPP_VERSION_PATCH})
+ 
+-project(libdpp VERSION ${DPP_VERSION} LANGUAGES CXX)
++project(dpp VERSION ${DPP_VERSION} LANGUAGES CXX)
+ 
+ check_cxx_symbol_exists(prctl "sys/prctl.h" HAVE_PRCTL)
+ check_cxx_symbol_exists(pthread_setname_np "pthread.h" HAVE_PTHREAD_SETNAME_NP)
+@@ -240,8 +240,8 @@ foreach (fullmodname ${subdirlist})
+ 	target_precompile_headers(
+ 		${modname}
+ 		PRIVATE
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json.hpp"
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json_fwd.hpp"
++		<nlohmann/json.hpp>
++		<nlohmann/json_fwd.hpp>
+ 	)
+ 
+ 	if (WIN32 AND NOT MINGW)
+@@ -325,14 +325,16 @@ if(NOT WIN32)
+ 	# Installation
+ 
+ 	include(GNUInstallDirs)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ 	install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -DRUN_LDCONFIG=${RUN_LDCONFIG} -DLDCONFIG_EXECUTABLE=${LDCONFIG_EXECUTABLE} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/PostInstall.cmake)")
+ 
+ 	configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dpp.pc.in" "${CMAKE_BINARY_DIR}/dpp.pc" @ONLY)
+ 	install(FILES "${CMAKE_BINARY_DIR}/dpp.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
+ elseif(MINGW)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
+ endif()
+ 
+diff --git a/cmake/CPackSetup.cmake b/cmake/CPackSetup.cmake
+index a6bcf59..73abe7e 100644
+--- a/cmake/CPackSetup.cmake
++++ b/cmake/CPackSetup.cmake
+@@ -24,7 +24,7 @@ write_basic_package_version_file(${DPP_VERSION_FILE}
+ install(DIRECTORY include/ DESTINATION ${DPP_INSTALL_INCLUDE_DIR})
+ 
+ ## Include the file which allows `find_package(libdpp)` to function.
+-install(FILES cmake/libdpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
++install(FILES cmake/dpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
+ 
+ ## Export the targets to allow other projects to easily include this project
+ install(EXPORT ${DPP_EXPORT_NAME} DESTINATION ${DPP_INSTALL_LIBRARY_DIR} NAMESPACE dpp::)
+diff --git a/cmake/libdpp-config.cmake b/cmake/libdpp-config.cmake
+deleted file mode 100644
+index d6dd5bd..0000000
+--- a/cmake/libdpp-config.cmake
++++ /dev/null
+@@ -1,21 +0,0 @@
+-# libdpp-config.cmake - package configuration file
+-
+-## Get current filesystem path (will a prefixed by where this package was installed)
+-get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+-
+-## Use this directory to include libdpp which has the rest of the project targets
+-include(${SELF_DIR}/libdpp.cmake)
+-
+-## Set OpenSSl directory for macos. It is also in our main CMakeLists.txt, but this file is independent from that.
+-if(APPLE)
+-	if(CMAKE_APPLE_SILICON_PROCESSOR)
+-		set(OPENSSL_ROOT_DIR "/opt/homebrew/opt/openssl")
+-	else()
+-		set(OPENSSL_ROOT_DIR "/usr/local/opt/openssl")
+-	endif()
+-	find_package(OpenSSL REQUIRED)
+-endif()
+-
+-# Search for libdpp dependencies
+-include(CMakeFindDependencyMacro)
+-find_dependency(OpenSSL REQUIRED)
+diff --git a/include/dpp/appcommand.h b/include/dpp/appcommand.h
+index 424823c..36f8f82 100644
+--- a/include/dpp/appcommand.h
++++ b/include/dpp/appcommand.h
+@@ -27,7 +27,7 @@
+ #include <dpp/role.h>
+ #include <dpp/user.h>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/application.h b/include/dpp/application.h
+index 7e9d80d..19fad83 100644
+--- a/include/dpp/application.h
++++ b/include/dpp/application.h
+@@ -26,7 +26,7 @@
+ #include <dpp/utility.h>
+ #include <dpp/user.h>
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/auditlog.h b/include/dpp/auditlog.h
+index 3469630..ca878da 100644
+--- a/include/dpp/auditlog.h
++++ b/include/dpp/auditlog.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <optional>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/ban.h b/include/dpp/ban.h
+index 6bbcdd2..8ad88d6 100644
+--- a/include/dpp/ban.h
++++ b/include/dpp/ban.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+ 
+diff --git a/include/dpp/channel.h b/include/dpp/channel.h
+index 7335b28..b2fcc33 100644
+--- a/include/dpp/channel.h
++++ b/include/dpp/channel.h
+@@ -25,7 +25,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+ #include <dpp/voicestate.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+diff --git a/include/dpp/cluster.h b/include/dpp/cluster.h
+index 5400695..6e7b41b 100644
+--- a/include/dpp/cluster.h
++++ b/include/dpp/cluster.h
+@@ -29,7 +29,7 @@
+ #include <dpp/dispatcher.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/timer.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/discordclient.h>
+ #include <dpp/voiceregion.h>
+ #include <dpp/dtemplate.h>
+diff --git a/include/dpp/commandhandler.h b/include/dpp/commandhandler.h
+index 29da473..0b15417 100644
+--- a/include/dpp/commandhandler.h
++++ b/include/dpp/commandhandler.h
+@@ -29,7 +29,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/utility.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <vector>
+ #include <functional>
+diff --git a/include/dpp/discordclient.h b/include/dpp/discordclient.h
+index 1eb875a..10f010e 100644
+--- a/include/dpp/discordclient.h
++++ b/include/dpp/discordclient.h
+@@ -24,7 +24,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/discordevents.h b/include/dpp/discordevents.h
+index c6474a4..1a70b18 100644
+--- a/include/dpp/discordevents.h
++++ b/include/dpp/discordevents.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ 
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/discordvoiceclient.h b/include/dpp/discordvoiceclient.h
+index e11d653..6692e54 100644
+--- a/include/dpp/discordvoiceclient.h
++++ b/include/dpp/discordvoiceclient.h
+@@ -32,7 +32,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/dtemplate.h b/include/dpp/dtemplate.h
+index 948b25d..5fbe17e 100644
+--- a/include/dpp/dtemplate.h
++++ b/include/dpp/dtemplate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/emoji.h b/include/dpp/emoji.h
+index a73e58a..9ab9c1e 100644
+--- a/include/dpp/emoji.h
++++ b/include/dpp/emoji.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/etf.h b/include/dpp/etf.h
+index 1c98e6a..1acd63b 100644
+--- a/include/dpp/etf.h
++++ b/include/dpp/etf.h
+@@ -34,7 +34,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/event.h b/include/dpp/event.h
+index cd945f5..388a0d6 100644
+--- a/include/dpp/event.h
++++ b/include/dpp/event.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ #define event_decl(x,wstype) /** @brief Internal event handler for wstype websocket events. Called for each websocket message of this type. @internal */ \
+ 	class x : public event { public: virtual void handle(dpp::discord_client* client, nlohmann::json &j, const std::string &raw); };
+diff --git a/include/dpp/fmt-minimal.h b/include/dpp/fmt-minimal.h
+index a5e7a5d..88f1e38 100644
+--- a/include/dpp/fmt-minimal.h
++++ b/include/dpp/fmt-minimal.h
+@@ -1,3 +1,3 @@
+ #pragma once
+-#include <dpp/fmt/core.h>
++#include <fmt/core.h>
+ #define FMT_STRING(s) s
+diff --git a/include/dpp/fmt/args.h b/include/dpp/fmt/args.h
+deleted file mode 100644
+index 9a8e4ed..0000000
+--- a/include/dpp/fmt/args.h
++++ /dev/null
+@@ -1,234 +0,0 @@
+-// Formatting library for C++ - dynamic format arguments
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_ARGS_H_
+-#define FMT_ARGS_H_
+-
+-#include <functional>  // std::reference_wrapper
+-#include <memory>      // std::unique_ptr
+-#include <vector>
+-
+-#include "core.h"
+-
+-FMT_BEGIN_NAMESPACE
+-
+-namespace detail {
+-
+-template <typename T> struct is_reference_wrapper : std::false_type {};
+-template <typename T>
+-struct is_reference_wrapper<std::reference_wrapper<T>> : std::true_type {};
+-
+-template <typename T> const T& unwrap(const T& v) { return v; }
+-template <typename T> const T& unwrap(const std::reference_wrapper<T>& v) {
+-  return static_cast<const T&>(v);
+-}
+-
+-class dynamic_arg_list {
+-  // Workaround for clang's -Wweak-vtables. Unlike for regular classes, for
+-  // templates it doesn't complain about inability to deduce single translation
+-  // unit for placing vtable. So storage_node_base is made a fake template.
+-  template <typename = void> struct node {
+-    virtual ~node() = default;
+-    std::unique_ptr<node<>> next;
+-  };
+-
+-  template <typename T> struct typed_node : node<> {
+-    T value;
+-
+-    template <typename Arg>
+-    FMT_CONSTEXPR typed_node(const Arg& arg) : value(arg) {}
+-
+-    template <typename Char>
+-    FMT_CONSTEXPR typed_node(const basic_string_view<Char>& arg)
+-        : value(arg.data(), arg.size()) {}
+-  };
+-
+-  std::unique_ptr<node<>> head_;
+-
+- public:
+-  template <typename T, typename Arg> const T& push(const Arg& arg) {
+-    auto new_node = std::unique_ptr<typed_node<T>>(new typed_node<T>(arg));
+-    auto& value = new_node->value;
+-    new_node->next = std::move(head_);
+-    head_ = std::move(new_node);
+-    return value;
+-  }
+-};
+-}  // namespace detail
+-
+-/**
+-  \rst
+-  A dynamic version of `fmt::format_arg_store`.
+-  It's equipped with a storage to potentially temporary objects which lifetimes
+-  could be shorter than the format arguments object.
+-
+-  It can be implicitly converted into `~fmt::basic_format_args` for passing
+-  into type-erased formatting functions such as `~fmt::vformat`.
+-  \endrst
+- */
+-template <typename Context>
+-class dynamic_format_arg_store
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-    // Workaround a GCC template argument substitution bug.
+-    : public basic_format_args<Context>
+-#endif
+-{
+- private:
+-  using char_type = typename Context::char_type;
+-
+-  template <typename T> struct need_copy {
+-    static constexpr detail::type mapped_type =
+-        detail::mapped_type_constant<T, Context>::value;
+-
+-    enum {
+-      value = !(detail::is_reference_wrapper<T>::value ||
+-                std::is_same<T, basic_string_view<char_type>>::value ||
+-                std::is_same<T, detail::std_string_view<char_type>>::value ||
+-                (mapped_type != detail::type::cstring_type &&
+-                 mapped_type != detail::type::string_type &&
+-                 mapped_type != detail::type::custom_type))
+-    };
+-  };
+-
+-  template <typename T>
+-  using stored_type = conditional_t<detail::is_string<T>::value &&
+-                                        !has_formatter<T, Context>::value &&
+-                                        !detail::is_reference_wrapper<T>::value,
+-                                    std::basic_string<char_type>, T>;
+-
+-  // Storage of basic_format_arg must be contiguous.
+-  std::vector<basic_format_arg<Context>> data_;
+-  std::vector<detail::named_arg_info<char_type>> named_info_;
+-
+-  // Storage of arguments not fitting into basic_format_arg must grow
+-  // without relocation because items in data_ refer to it.
+-  detail::dynamic_arg_list dynamic_args_;
+-
+-  friend class basic_format_args<Context>;
+-
+-  unsigned long long get_types() const {
+-    return detail::is_unpacked_bit | data_.size() |
+-           (named_info_.empty()
+-                ? 0ULL
+-                : static_cast<unsigned long long>(detail::has_named_args_bit));
+-  }
+-
+-  const basic_format_arg<Context>* data() const {
+-    return named_info_.empty() ? data_.data() : data_.data() + 1;
+-  }
+-
+-  template <typename T> void emplace_arg(const T& arg) {
+-    data_.emplace_back(detail::make_arg<Context>(arg));
+-  }
+-
+-  template <typename T>
+-  void emplace_arg(const detail::named_arg<char_type, T>& arg) {
+-    if (named_info_.empty()) {
+-      constexpr const detail::named_arg_info<char_type>* zero_ptr{nullptr};
+-      data_.insert(data_.begin(), {zero_ptr, 0});
+-    }
+-    data_.emplace_back(detail::make_arg<Context>(detail::unwrap(arg.value)));
+-    auto pop_one = [](std::vector<basic_format_arg<Context>>* data) {
+-      data->pop_back();
+-    };
+-    std::unique_ptr<std::vector<basic_format_arg<Context>>, decltype(pop_one)>
+-        guard{&data_, pop_one};
+-    named_info_.push_back({arg.name, static_cast<int>(data_.size() - 2u)});
+-    data_[0].value_.named_args = {named_info_.data(), named_info_.size()};
+-    guard.release();
+-  }
+-
+- public:
+-  constexpr dynamic_format_arg_store() = default;
+-
+-  /**
+-    \rst
+-    Adds an argument into the dynamic store for later passing to a formatting
+-    function.
+-
+-    Note that custom types and string types (but not string views) are copied
+-    into the store dynamically allocating memory if necessary.
+-
+-    **Example**::
+-
+-      fmt::dynamic_format_arg_store<fmt::format_context> store;
+-      store.push_back(42);
+-      store.push_back("abc");
+-      store.push_back(1.5f);
+-      std::string result = fmt::vformat("{} and {} and {}", store);
+-    \endrst
+-  */
+-  template <typename T> void push_back(const T& arg) {
+-    if (detail::const_check(need_copy<T>::value))
+-      emplace_arg(dynamic_args_.push<stored_type<T>>(arg));
+-    else
+-      emplace_arg(detail::unwrap(arg));
+-  }
+-
+-  /**
+-    \rst
+-    Adds a reference to the argument into the dynamic store for later passing to
+-    a formatting function.
+-
+-    **Example**::
+-
+-      fmt::dynamic_format_arg_store<fmt::format_context> store;
+-      char band[] = "Rolling Stones";
+-      store.push_back(std::cref(band));
+-      band[9] = 'c'; // Changing str affects the output.
+-      std::string result = fmt::vformat("{}", store);
+-      // result == "Rolling Scones"
+-    \endrst
+-  */
+-  template <typename T> void push_back(std::reference_wrapper<T> arg) {
+-    static_assert(
+-        need_copy<T>::value,
+-        "objects of built-in types and string views are always copied");
+-    emplace_arg(arg.get());
+-  }
+-
+-  /**
+-    Adds named argument into the dynamic store for later passing to a formatting
+-    function. ``std::reference_wrapper`` is supported to avoid copying of the
+-    argument. The name is always copied into the store.
+-  */
+-  template <typename T>
+-  void push_back(const detail::named_arg<char_type, T>& arg) {
+-    const char_type* arg_name =
+-        dynamic_args_.push<std::basic_string<char_type>>(arg.name).c_str();
+-    if (detail::const_check(need_copy<T>::value)) {
+-      emplace_arg(
+-          fmt::arg(arg_name, dynamic_args_.push<stored_type<T>>(arg.value)));
+-    } else {
+-      emplace_arg(fmt::arg(arg_name, arg.value));
+-    }
+-  }
+-
+-  /** Erase all elements from the store */
+-  void clear() {
+-    data_.clear();
+-    named_info_.clear();
+-    dynamic_args_ = detail::dynamic_arg_list();
+-  }
+-
+-  /**
+-    \rst
+-    Reserves space to store at least *new_cap* arguments including
+-    *new_cap_named* named arguments.
+-    \endrst
+-  */
+-  void reserve(size_t new_cap, size_t new_cap_named) {
+-    FMT_ASSERT(new_cap >= new_cap_named,
+-               "Set of arguments includes set of named arguments");
+-    data_.reserve(new_cap);
+-    named_info_.reserve(new_cap_named);
+-  }
+-};
+-
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_ARGS_H_
+diff --git a/include/dpp/fmt/chrono.h b/include/dpp/fmt/chrono.h
+deleted file mode 100644
+index 682efd8..0000000
+--- a/include/dpp/fmt/chrono.h
++++ /dev/null
+@@ -1,2067 +0,0 @@
+-// Formatting library for C++ - chrono support
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_CHRONO_H_
+-#define FMT_CHRONO_H_
+-
+-#include <algorithm>
+-#include <chrono>
+-#include <ctime>
+-#include <iterator>
+-#include <locale>
+-#include <ostream>
+-#include <type_traits>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-
+-// Enable tzset.
+-#ifndef FMT_USE_TZSET
+-// UWP doesn't provide _tzset.
+-#  if FMT_HAS_INCLUDE("winapifamily.h")
+-#    include <winapifamily.h>
+-#  endif
+-#  if defined(_WIN32) && (!defined(WINAPI_FAMILY) || \
+-                          (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP))
+-#    define FMT_USE_TZSET 1
+-#  else
+-#    define FMT_USE_TZSET 0
+-#  endif
+-#endif
+-
+-// Enable safe chrono durations, unless explicitly disabled.
+-#ifndef FMT_SAFE_DURATION_CAST
+-#  define FMT_SAFE_DURATION_CAST 1
+-#endif
+-#if FMT_SAFE_DURATION_CAST
+-
+-// For conversion between std::chrono::durations without undefined
+-// behaviour or erroneous results.
+-// This is a stripped down version of duration_cast, for inclusion in fmt.
+-// See https://github.com/pauldreik/safe_duration_cast
+-//
+-// Copyright Paul Dreik 2019
+-namespace safe_duration_cast {
+-
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(!std::is_same<From, To>::value &&
+-                        std::numeric_limits<From>::is_signed ==
+-                            std::numeric_limits<To>::is_signed)>
+-FMT_CONSTEXPR To lossless_integral_conversion(const From from, int& ec) {
+-  ec = 0;
+-  using F = std::numeric_limits<From>;
+-  using T = std::numeric_limits<To>;
+-  static_assert(F::is_integer, "From must be integral");
+-  static_assert(T::is_integer, "To must be integral");
+-
+-  // A and B are both signed, or both unsigned.
+-  if (detail::const_check(F::digits <= T::digits)) {
+-    // From fits in To without any problem.
+-  } else {
+-    // From does not always fit in To, resort to a dynamic check.
+-    if (from < (T::min)() || from > (T::max)()) {
+-      // outside range.
+-      ec = 1;
+-      return {};
+-    }
+-  }
+-  return static_cast<To>(from);
+-}
+-
+-/**
+- * converts From to To, without loss. If the dynamic value of from
+- * can't be converted to To without loss, ec is set.
+- */
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(!std::is_same<From, To>::value &&
+-                        std::numeric_limits<From>::is_signed !=
+-                            std::numeric_limits<To>::is_signed)>
+-FMT_CONSTEXPR To lossless_integral_conversion(const From from, int& ec) {
+-  ec = 0;
+-  using F = std::numeric_limits<From>;
+-  using T = std::numeric_limits<To>;
+-  static_assert(F::is_integer, "From must be integral");
+-  static_assert(T::is_integer, "To must be integral");
+-
+-  if (detail::const_check(F::is_signed && !T::is_signed)) {
+-    // From may be negative, not allowed!
+-    if (fmt::detail::is_negative(from)) {
+-      ec = 1;
+-      return {};
+-    }
+-    // From is positive. Can it always fit in To?
+-    if (detail::const_check(F::digits > T::digits) &&
+-        from > static_cast<From>(detail::max_value<To>())) {
+-      ec = 1;
+-      return {};
+-    }
+-  }
+-
+-  if (detail::const_check(!F::is_signed && T::is_signed &&
+-                          F::digits >= T::digits) &&
+-      from > static_cast<From>(detail::max_value<To>())) {
+-    ec = 1;
+-    return {};
+-  }
+-  return static_cast<To>(from);  // Lossless conversion.
+-}
+-
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(std::is_same<From, To>::value)>
+-FMT_CONSTEXPR To lossless_integral_conversion(const From from, int& ec) {
+-  ec = 0;
+-  return from;
+-}  // function
+-
+-// clang-format off
+-/**
+- * converts From to To if possible, otherwise ec is set.
+- *
+- * input                            |    output
+- * ---------------------------------|---------------
+- * NaN                              | NaN
+- * Inf                              | Inf
+- * normal, fits in output           | converted (possibly lossy)
+- * normal, does not fit in output   | ec is set
+- * subnormal                        | best effort
+- * -Inf                             | -Inf
+- */
+-// clang-format on
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(!std::is_same<From, To>::value)>
+-FMT_CONSTEXPR To safe_float_conversion(const From from, int& ec) {
+-  ec = 0;
+-  using T = std::numeric_limits<To>;
+-  static_assert(std::is_floating_point<From>::value, "From must be floating");
+-  static_assert(std::is_floating_point<To>::value, "To must be floating");
+-
+-  // catch the only happy case
+-  if (std::isfinite(from)) {
+-    if (from >= T::lowest() && from <= (T::max)()) {
+-      return static_cast<To>(from);
+-    }
+-    // not within range.
+-    ec = 1;
+-    return {};
+-  }
+-
+-  // nan and inf will be preserved
+-  return static_cast<To>(from);
+-}  // function
+-
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(std::is_same<From, To>::value)>
+-FMT_CONSTEXPR To safe_float_conversion(const From from, int& ec) {
+-  ec = 0;
+-  static_assert(std::is_floating_point<From>::value, "From must be floating");
+-  return from;
+-}
+-
+-/**
+- * safe duration cast between integral durations
+- */
+-template <typename To, typename FromRep, typename FromPeriod,
+-          FMT_ENABLE_IF(std::is_integral<FromRep>::value),
+-          FMT_ENABLE_IF(std::is_integral<typename To::rep>::value)>
+-To safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from,
+-                      int& ec) {
+-  using From = std::chrono::duration<FromRep, FromPeriod>;
+-  ec = 0;
+-  // the basic idea is that we need to convert from count() in the from type
+-  // to count() in the To type, by multiplying it with this:
+-  struct Factor
+-      : std::ratio_divide<typename From::period, typename To::period> {};
+-
+-  static_assert(Factor::num > 0, "num must be positive");
+-  static_assert(Factor::den > 0, "den must be positive");
+-
+-  // the conversion is like this: multiply from.count() with Factor::num
+-  // /Factor::den and convert it to To::rep, all this without
+-  // overflow/underflow. let's start by finding a suitable type that can hold
+-  // both To, From and Factor::num
+-  using IntermediateRep =
+-      typename std::common_type<typename From::rep, typename To::rep,
+-                                decltype(Factor::num)>::type;
+-
+-  // safe conversion to IntermediateRep
+-  IntermediateRep count =
+-      lossless_integral_conversion<IntermediateRep>(from.count(), ec);
+-  if (ec) return {};
+-  // multiply with Factor::num without overflow or underflow
+-  if (detail::const_check(Factor::num != 1)) {
+-    const auto max1 = detail::max_value<IntermediateRep>() / Factor::num;
+-    if (count > max1) {
+-      ec = 1;
+-      return {};
+-    }
+-    const auto min1 =
+-        (std::numeric_limits<IntermediateRep>::min)() / Factor::num;
+-    if (count < min1) {
+-      ec = 1;
+-      return {};
+-    }
+-    count *= Factor::num;
+-  }
+-
+-  if (detail::const_check(Factor::den != 1)) count /= Factor::den;
+-  auto tocount = lossless_integral_conversion<typename To::rep>(count, ec);
+-  return ec ? To() : To(tocount);
+-}
+-
+-/**
+- * safe duration_cast between floating point durations
+- */
+-template <typename To, typename FromRep, typename FromPeriod,
+-          FMT_ENABLE_IF(std::is_floating_point<FromRep>::value),
+-          FMT_ENABLE_IF(std::is_floating_point<typename To::rep>::value)>
+-To safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from,
+-                      int& ec) {
+-  using From = std::chrono::duration<FromRep, FromPeriod>;
+-  ec = 0;
+-  if (std::isnan(from.count())) {
+-    // nan in, gives nan out. easy.
+-    return To{std::numeric_limits<typename To::rep>::quiet_NaN()};
+-  }
+-  // maybe we should also check if from is denormal, and decide what to do about
+-  // it.
+-
+-  // +-inf should be preserved.
+-  if (std::isinf(from.count())) {
+-    return To{from.count()};
+-  }
+-
+-  // the basic idea is that we need to convert from count() in the from type
+-  // to count() in the To type, by multiplying it with this:
+-  struct Factor
+-      : std::ratio_divide<typename From::period, typename To::period> {};
+-
+-  static_assert(Factor::num > 0, "num must be positive");
+-  static_assert(Factor::den > 0, "den must be positive");
+-
+-  // the conversion is like this: multiply from.count() with Factor::num
+-  // /Factor::den and convert it to To::rep, all this without
+-  // overflow/underflow. let's start by finding a suitable type that can hold
+-  // both To, From and Factor::num
+-  using IntermediateRep =
+-      typename std::common_type<typename From::rep, typename To::rep,
+-                                decltype(Factor::num)>::type;
+-
+-  // force conversion of From::rep -> IntermediateRep to be safe,
+-  // even if it will never happen be narrowing in this context.
+-  IntermediateRep count =
+-      safe_float_conversion<IntermediateRep>(from.count(), ec);
+-  if (ec) {
+-    return {};
+-  }
+-
+-  // multiply with Factor::num without overflow or underflow
+-  if (detail::const_check(Factor::num != 1)) {
+-    constexpr auto max1 = detail::max_value<IntermediateRep>() /
+-                          static_cast<IntermediateRep>(Factor::num);
+-    if (count > max1) {
+-      ec = 1;
+-      return {};
+-    }
+-    constexpr auto min1 = std::numeric_limits<IntermediateRep>::lowest() /
+-                          static_cast<IntermediateRep>(Factor::num);
+-    if (count < min1) {
+-      ec = 1;
+-      return {};
+-    }
+-    count *= static_cast<IntermediateRep>(Factor::num);
+-  }
+-
+-  // this can't go wrong, right? den>0 is checked earlier.
+-  if (detail::const_check(Factor::den != 1)) {
+-    using common_t = typename std::common_type<IntermediateRep, intmax_t>::type;
+-    count /= static_cast<common_t>(Factor::den);
+-  }
+-
+-  // convert to the to type, safely
+-  using ToRep = typename To::rep;
+-
+-  const ToRep tocount = safe_float_conversion<ToRep>(count, ec);
+-  if (ec) {
+-    return {};
+-  }
+-  return To{tocount};
+-}
+-}  // namespace safe_duration_cast
+-#endif
+-
+-// Prevents expansion of a preceding token as a function-style macro.
+-// Usage: f FMT_NOMACRO()
+-#define FMT_NOMACRO
+-
+-namespace detail {
+-template <typename T = void> struct null {};
+-inline null<> localtime_r FMT_NOMACRO(...) { return null<>(); }
+-inline null<> localtime_s(...) { return null<>(); }
+-inline null<> gmtime_r(...) { return null<>(); }
+-inline null<> gmtime_s(...) { return null<>(); }
+-
+-inline const std::locale& get_classic_locale() {
+-  static const auto& locale = std::locale::classic();
+-  return locale;
+-}
+-
+-template <typename CodeUnit> struct codecvt_result {
+-  static constexpr const size_t max_size = 32;
+-  CodeUnit buf[max_size];
+-  CodeUnit* end;
+-};
+-template <typename CodeUnit>
+-constexpr const size_t codecvt_result<CodeUnit>::max_size;
+-
+-template <typename CodeUnit>
+-void write_codecvt(codecvt_result<CodeUnit>& out, string_view in_buf,
+-                   const std::locale& loc) {
+-  using codecvt = std::codecvt<CodeUnit, char, std::mbstate_t>;
+-#if FMT_CLANG_VERSION
+-#  pragma clang diagnostic push
+-#  pragma clang diagnostic ignored "-Wdeprecated"
+-  auto& f = std::use_facet<codecvt>(loc);
+-#  pragma clang diagnostic pop
+-#else
+-  auto& f = std::use_facet<codecvt>(loc);
+-#endif
+-  auto mb = std::mbstate_t();
+-  const char* from_next = nullptr;
+-  auto result = f.in(mb, in_buf.begin(), in_buf.end(), from_next,
+-                     std::begin(out.buf), std::end(out.buf), out.end);
+-  if (result != std::codecvt_base::ok)
+-    FMT_THROW(format_error("failed to format time"));
+-}
+-
+-template <typename OutputIt>
+-auto write_encoded_tm_str(OutputIt out, string_view in, const std::locale& loc)
+-    -> OutputIt {
+-  if (detail::is_utf8() && loc != get_classic_locale()) {
+-    // char16_t and char32_t codecvts are broken in MSVC (linkage errors) and
+-    // gcc-4.
+-#if FMT_MSC_VER != 0 || \
+-    (defined(__GLIBCXX__) && !defined(_GLIBCXX_USE_DUAL_ABI))
+-    // The _GLIBCXX_USE_DUAL_ABI macro is always defined in libstdc++ from gcc-5
+-    // and newer.
+-    using code_unit = wchar_t;
+-#else
+-    using code_unit = char32_t;
+-#endif
+-
+-    using unit_t = codecvt_result<code_unit>;
+-    unit_t unit;
+-    write_codecvt(unit, in, loc);
+-    // In UTF-8 is used one to four one-byte code units.
+-    auto&& buf = basic_memory_buffer<char, unit_t::max_size * 4>();
+-    for (code_unit* p = unit.buf; p != unit.end; ++p) {
+-      uint32_t c = static_cast<uint32_t>(*p);
+-      if (sizeof(code_unit) == 2 && c >= 0xd800 && c <= 0xdfff) {
+-        // surrogate pair
+-        ++p;
+-        if (p == unit.end || (c & 0xfc00) != 0xd800 ||
+-            (*p & 0xfc00) != 0xdc00) {
+-          FMT_THROW(format_error("failed to format time"));
+-        }
+-        c = (c << 10) + static_cast<uint32_t>(*p) - 0x35fdc00;
+-      }
+-      if (c < 0x80) {
+-        buf.push_back(static_cast<char>(c));
+-      } else if (c < 0x800) {
+-        buf.push_back(static_cast<char>(0xc0 | (c >> 6)));
+-        buf.push_back(static_cast<char>(0x80 | (c & 0x3f)));
+-      } else if ((c >= 0x800 && c <= 0xd7ff) || (c >= 0xe000 && c <= 0xffff)) {
+-        buf.push_back(static_cast<char>(0xe0 | (c >> 12)));
+-        buf.push_back(static_cast<char>(0x80 | ((c & 0xfff) >> 6)));
+-        buf.push_back(static_cast<char>(0x80 | (c & 0x3f)));
+-      } else if (c >= 0x10000 && c <= 0x10ffff) {
+-        buf.push_back(static_cast<char>(0xf0 | (c >> 18)));
+-        buf.push_back(static_cast<char>(0x80 | ((c & 0x3ffff) >> 12)));
+-        buf.push_back(static_cast<char>(0x80 | ((c & 0xfff) >> 6)));
+-        buf.push_back(static_cast<char>(0x80 | (c & 0x3f)));
+-      } else {
+-        FMT_THROW(format_error("failed to format time"));
+-      }
+-    }
+-    return copy_str<char>(buf.data(), buf.data() + buf.size(), out);
+-  }
+-  return copy_str<char>(in.data(), in.data() + in.size(), out);
+-}
+-
+-template <typename Char, typename OutputIt,
+-          FMT_ENABLE_IF(!std::is_same<Char, char>::value)>
+-auto write_tm_str(OutputIt out, string_view sv, const std::locale& loc)
+-    -> OutputIt {
+-  codecvt_result<Char> unit;
+-  write_codecvt(unit, sv, loc);
+-  return copy_str<Char>(unit.buf, unit.end, out);
+-}
+-
+-template <typename Char, typename OutputIt,
+-          FMT_ENABLE_IF(std::is_same<Char, char>::value)>
+-auto write_tm_str(OutputIt out, string_view sv, const std::locale& loc)
+-    -> OutputIt {
+-  return write_encoded_tm_str(out, sv, loc);
+-}
+-
+-template <typename Char>
+-inline void do_write(buffer<Char>& buf, const std::tm& time,
+-                     const std::locale& loc, char format, char modifier) {
+-  auto&& format_buf = formatbuf<std::basic_streambuf<Char>>(buf);
+-  auto&& os = std::basic_ostream<Char>(&format_buf);
+-  os.imbue(loc);
+-  using iterator = std::ostreambuf_iterator<Char>;
+-  const auto& facet = std::use_facet<std::time_put<Char, iterator>>(loc);
+-  auto end = facet.put(os, os, Char(' '), &time, format, modifier);
+-  if (end.failed()) FMT_THROW(format_error("failed to format time"));
+-}
+-
+-template <typename Char, typename OutputIt,
+-          FMT_ENABLE_IF(!std::is_same<Char, char>::value)>
+-auto write(OutputIt out, const std::tm& time, const std::locale& loc,
+-           char format, char modifier = 0) -> OutputIt {
+-  auto&& buf = get_buffer<Char>(out);
+-  do_write<Char>(buf, time, loc, format, modifier);
+-  return buf.out();
+-}
+-
+-template <typename Char, typename OutputIt,
+-          FMT_ENABLE_IF(std::is_same<Char, char>::value)>
+-auto write(OutputIt out, const std::tm& time, const std::locale& loc,
+-           char format, char modifier = 0) -> OutputIt {
+-  auto&& buf = basic_memory_buffer<Char>();
+-  do_write<char>(buf, time, loc, format, modifier);
+-  return write_encoded_tm_str(out, string_view(buf.data(), buf.size()), loc);
+-}
+-
+-}  // namespace detail
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-/**
+-  Converts given time since epoch as ``std::time_t`` value into calendar time,
+-  expressed in local time. Unlike ``std::localtime``, this function is
+-  thread-safe on most platforms.
+- */
+-inline std::tm localtime(std::time_t time) {
+-  struct dispatcher {
+-    std::time_t time_;
+-    std::tm tm_;
+-
+-    dispatcher(std::time_t t) : time_(t) {}
+-
+-    bool run() {
+-      using namespace fmt::detail;
+-      return handle(localtime_r(&time_, &tm_));
+-    }
+-
+-    bool handle(std::tm* tm) { return tm != nullptr; }
+-
+-    bool handle(detail::null<>) {
+-      using namespace fmt::detail;
+-      return fallback(localtime_s(&tm_, &time_));
+-    }
+-
+-    bool fallback(int res) { return res == 0; }
+-
+-#if !FMT_MSC_VER
+-    bool fallback(detail::null<>) {
+-      using namespace fmt::detail;
+-      std::tm* tm = std::localtime(&time_);
+-      if (tm) tm_ = *tm;
+-      return tm != nullptr;
+-    }
+-#endif
+-  };
+-  dispatcher lt(time);
+-  // Too big time values may be unsupported.
+-  if (!lt.run()) FMT_THROW(format_error("time_t value out of range"));
+-  return lt.tm_;
+-}
+-
+-inline std::tm localtime(
+-    std::chrono::time_point<std::chrono::system_clock> time_point) {
+-  return localtime(std::chrono::system_clock::to_time_t(time_point));
+-}
+-
+-/**
+-  Converts given time since epoch as ``std::time_t`` value into calendar time,
+-  expressed in Coordinated Universal Time (UTC). Unlike ``std::gmtime``, this
+-  function is thread-safe on most platforms.
+- */
+-inline std::tm gmtime(std::time_t time) {
+-  struct dispatcher {
+-    std::time_t time_;
+-    std::tm tm_;
+-
+-    dispatcher(std::time_t t) : time_(t) {}
+-
+-    bool run() {
+-      using namespace fmt::detail;
+-      return handle(gmtime_r(&time_, &tm_));
+-    }
+-
+-    bool handle(std::tm* tm) { return tm != nullptr; }
+-
+-    bool handle(detail::null<>) {
+-      using namespace fmt::detail;
+-      return fallback(gmtime_s(&tm_, &time_));
+-    }
+-
+-    bool fallback(int res) { return res == 0; }
+-
+-#if !FMT_MSC_VER
+-    bool fallback(detail::null<>) {
+-      std::tm* tm = std::gmtime(&time_);
+-      if (tm) tm_ = *tm;
+-      return tm != nullptr;
+-    }
+-#endif
+-  };
+-  dispatcher gt(time);
+-  // Too big time values may be unsupported.
+-  if (!gt.run()) FMT_THROW(format_error("time_t value out of range"));
+-  return gt.tm_;
+-}
+-
+-inline std::tm gmtime(
+-    std::chrono::time_point<std::chrono::system_clock> time_point) {
+-  return gmtime(std::chrono::system_clock::to_time_t(time_point));
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// Writes two-digit numbers a, b and c separated by sep to buf.
+-// The method by Pavel Novikov based on
+-// https://johnnylee-sde.github.io/Fast-unsigned-integer-to-time-string/.
+-inline void write_digit2_separated(char* buf, unsigned a, unsigned b,
+-                                   unsigned c, char sep) {
+-  unsigned long long digits =
+-      a | (b << 24) | (static_cast<unsigned long long>(c) << 48);
+-  // Convert each value to BCD.
+-  // We have x = a * 10 + b and we want to convert it to BCD y = a * 16 + b.
+-  // The difference is
+-  //   y - x = a * 6
+-  // a can be found from x:
+-  //   a = floor(x / 10)
+-  // then
+-  //   y = x + a * 6 = x + floor(x / 10) * 6
+-  // floor(x / 10) is (x * 205) >> 11 (needs 16 bits).
+-  digits += (((digits * 205) >> 11) & 0x000f00000f00000f) * 6;
+-  // Put low nibbles to high bytes and high nibbles to low bytes.
+-  digits = ((digits & 0x00f00000f00000f0) >> 4) |
+-           ((digits & 0x000f00000f00000f) << 8);
+-  auto usep = static_cast<unsigned long long>(sep);
+-  // Add ASCII '0' to each digit byte and insert separators.
+-  digits |= 0x3030003030003030 | (usep << 16) | (usep << 40);
+-
+-  constexpr const size_t len = 8;
+-  if (const_check(is_big_endian())) {
+-    char tmp[len];
+-    memcpy(tmp, &digits, len);
+-    std::reverse_copy(tmp, tmp + len, buf);
+-  } else {
+-    memcpy(buf, &digits, len);
+-  }
+-}
+-
+-template <typename Period> FMT_CONSTEXPR inline const char* get_units() {
+-  if (std::is_same<Period, std::atto>::value) return "as";
+-  if (std::is_same<Period, std::femto>::value) return "fs";
+-  if (std::is_same<Period, std::pico>::value) return "ps";
+-  if (std::is_same<Period, std::nano>::value) return "ns";
+-  if (std::is_same<Period, std::micro>::value) return "µs";
+-  if (std::is_same<Period, std::milli>::value) return "ms";
+-  if (std::is_same<Period, std::centi>::value) return "cs";
+-  if (std::is_same<Period, std::deci>::value) return "ds";
+-  if (std::is_same<Period, std::ratio<1>>::value) return "s";
+-  if (std::is_same<Period, std::deca>::value) return "das";
+-  if (std::is_same<Period, std::hecto>::value) return "hs";
+-  if (std::is_same<Period, std::kilo>::value) return "ks";
+-  if (std::is_same<Period, std::mega>::value) return "Ms";
+-  if (std::is_same<Period, std::giga>::value) return "Gs";
+-  if (std::is_same<Period, std::tera>::value) return "Ts";
+-  if (std::is_same<Period, std::peta>::value) return "Ps";
+-  if (std::is_same<Period, std::exa>::value) return "Es";
+-  if (std::is_same<Period, std::ratio<60>>::value) return "m";
+-  if (std::is_same<Period, std::ratio<3600>>::value) return "h";
+-  return nullptr;
+-}
+-
+-enum class numeric_system {
+-  standard,
+-  // Alternative numeric system, e.g. 十二 instead of 12 in ja_JP locale.
+-  alternative
+-};
+-
+-// Parses a put_time-like format string and invokes handler actions.
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR const Char* parse_chrono_format(const Char* begin,
+-                                              const Char* end,
+-                                              Handler&& handler) {
+-  auto ptr = begin;
+-  while (ptr != end) {
+-    auto c = *ptr;
+-    if (c == '}') break;
+-    if (c != '%') {
+-      ++ptr;
+-      continue;
+-    }
+-    if (begin != ptr) handler.on_text(begin, ptr);
+-    ++ptr;  // consume '%'
+-    if (ptr == end) FMT_THROW(format_error("invalid format"));
+-    c = *ptr++;
+-    switch (c) {
+-    case '%':
+-      handler.on_text(ptr - 1, ptr);
+-      break;
+-    case 'n': {
+-      const Char newline[] = {'\n'};
+-      handler.on_text(newline, newline + 1);
+-      break;
+-    }
+-    case 't': {
+-      const Char tab[] = {'\t'};
+-      handler.on_text(tab, tab + 1);
+-      break;
+-    }
+-    // Year:
+-    case 'Y':
+-      handler.on_year(numeric_system::standard);
+-      break;
+-    case 'y':
+-      handler.on_short_year(numeric_system::standard);
+-      break;
+-    case 'C':
+-      handler.on_century(numeric_system::standard);
+-      break;
+-    case 'G':
+-      handler.on_iso_week_based_year();
+-      break;
+-    case 'g':
+-      handler.on_iso_week_based_short_year();
+-      break;
+-    // Day of the week:
+-    case 'a':
+-      handler.on_abbr_weekday();
+-      break;
+-    case 'A':
+-      handler.on_full_weekday();
+-      break;
+-    case 'w':
+-      handler.on_dec0_weekday(numeric_system::standard);
+-      break;
+-    case 'u':
+-      handler.on_dec1_weekday(numeric_system::standard);
+-      break;
+-    // Month:
+-    case 'b':
+-    case 'h':
+-      handler.on_abbr_month();
+-      break;
+-    case 'B':
+-      handler.on_full_month();
+-      break;
+-    case 'm':
+-      handler.on_dec_month(numeric_system::standard);
+-      break;
+-    // Day of the year/month:
+-    case 'U':
+-      handler.on_dec0_week_of_year(numeric_system::standard);
+-      break;
+-    case 'W':
+-      handler.on_dec1_week_of_year(numeric_system::standard);
+-      break;
+-    case 'V':
+-      handler.on_iso_week_of_year(numeric_system::standard);
+-      break;
+-    case 'j':
+-      handler.on_day_of_year();
+-      break;
+-    case 'd':
+-      handler.on_day_of_month(numeric_system::standard);
+-      break;
+-    case 'e':
+-      handler.on_day_of_month_space(numeric_system::standard);
+-      break;
+-    // Hour, minute, second:
+-    case 'H':
+-      handler.on_24_hour(numeric_system::standard);
+-      break;
+-    case 'I':
+-      handler.on_12_hour(numeric_system::standard);
+-      break;
+-    case 'M':
+-      handler.on_minute(numeric_system::standard);
+-      break;
+-    case 'S':
+-      handler.on_second(numeric_system::standard);
+-      break;
+-    // Other:
+-    case 'c':
+-      handler.on_datetime(numeric_system::standard);
+-      break;
+-    case 'x':
+-      handler.on_loc_date(numeric_system::standard);
+-      break;
+-    case 'X':
+-      handler.on_loc_time(numeric_system::standard);
+-      break;
+-    case 'D':
+-      handler.on_us_date();
+-      break;
+-    case 'F':
+-      handler.on_iso_date();
+-      break;
+-    case 'r':
+-      handler.on_12_hour_time();
+-      break;
+-    case 'R':
+-      handler.on_24_hour_time();
+-      break;
+-    case 'T':
+-      handler.on_iso_time();
+-      break;
+-    case 'p':
+-      handler.on_am_pm();
+-      break;
+-    case 'Q':
+-      handler.on_duration_value();
+-      break;
+-    case 'q':
+-      handler.on_duration_unit();
+-      break;
+-    case 'z':
+-      handler.on_utc_offset();
+-      break;
+-    case 'Z':
+-      handler.on_tz_name();
+-      break;
+-    // Alternative representation:
+-    case 'E': {
+-      if (ptr == end) FMT_THROW(format_error("invalid format"));
+-      c = *ptr++;
+-      switch (c) {
+-      case 'Y':
+-        handler.on_year(numeric_system::alternative);
+-        break;
+-      case 'y':
+-        handler.on_offset_year();
+-        break;
+-      case 'C':
+-        handler.on_century(numeric_system::alternative);
+-        break;
+-      case 'c':
+-        handler.on_datetime(numeric_system::alternative);
+-        break;
+-      case 'x':
+-        handler.on_loc_date(numeric_system::alternative);
+-        break;
+-      case 'X':
+-        handler.on_loc_time(numeric_system::alternative);
+-        break;
+-      default:
+-        FMT_THROW(format_error("invalid format"));
+-      }
+-      break;
+-    }
+-    case 'O':
+-      if (ptr == end) FMT_THROW(format_error("invalid format"));
+-      c = *ptr++;
+-      switch (c) {
+-      case 'y':
+-        handler.on_short_year(numeric_system::alternative);
+-        break;
+-      case 'm':
+-        handler.on_dec_month(numeric_system::alternative);
+-        break;
+-      case 'U':
+-        handler.on_dec0_week_of_year(numeric_system::alternative);
+-        break;
+-      case 'W':
+-        handler.on_dec1_week_of_year(numeric_system::alternative);
+-        break;
+-      case 'V':
+-        handler.on_iso_week_of_year(numeric_system::alternative);
+-        break;
+-      case 'd':
+-        handler.on_day_of_month(numeric_system::alternative);
+-        break;
+-      case 'e':
+-        handler.on_day_of_month_space(numeric_system::alternative);
+-        break;
+-      case 'w':
+-        handler.on_dec0_weekday(numeric_system::alternative);
+-        break;
+-      case 'u':
+-        handler.on_dec1_weekday(numeric_system::alternative);
+-        break;
+-      case 'H':
+-        handler.on_24_hour(numeric_system::alternative);
+-        break;
+-      case 'I':
+-        handler.on_12_hour(numeric_system::alternative);
+-        break;
+-      case 'M':
+-        handler.on_minute(numeric_system::alternative);
+-        break;
+-      case 'S':
+-        handler.on_second(numeric_system::alternative);
+-        break;
+-      default:
+-        FMT_THROW(format_error("invalid format"));
+-      }
+-      break;
+-    default:
+-      FMT_THROW(format_error("invalid format"));
+-    }
+-    begin = ptr;
+-  }
+-  if (begin != ptr) handler.on_text(begin, ptr);
+-  return ptr;
+-}
+-
+-template <typename Derived> struct null_chrono_spec_handler {
+-  FMT_CONSTEXPR void unsupported() {
+-    static_cast<Derived*>(this)->unsupported();
+-  }
+-  FMT_CONSTEXPR void on_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_short_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_offset_year() { unsupported(); }
+-  FMT_CONSTEXPR void on_century(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_week_based_year() { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_week_based_short_year() { unsupported(); }
+-  FMT_CONSTEXPR void on_abbr_weekday() { unsupported(); }
+-  FMT_CONSTEXPR void on_full_weekday() { unsupported(); }
+-  FMT_CONSTEXPR void on_dec0_weekday(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_dec1_weekday(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_abbr_month() { unsupported(); }
+-  FMT_CONSTEXPR void on_full_month() { unsupported(); }
+-  FMT_CONSTEXPR void on_dec_month(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_dec0_week_of_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_dec1_week_of_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_week_of_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_day_of_year() { unsupported(); }
+-  FMT_CONSTEXPR void on_day_of_month(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_day_of_month_space(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_24_hour(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_12_hour(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_minute(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_second(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_datetime(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_loc_date(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_loc_time(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_us_date() { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_date() { unsupported(); }
+-  FMT_CONSTEXPR void on_12_hour_time() { unsupported(); }
+-  FMT_CONSTEXPR void on_24_hour_time() { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_time() { unsupported(); }
+-  FMT_CONSTEXPR void on_am_pm() { unsupported(); }
+-  FMT_CONSTEXPR void on_duration_value() { unsupported(); }
+-  FMT_CONSTEXPR void on_duration_unit() { unsupported(); }
+-  FMT_CONSTEXPR void on_utc_offset() { unsupported(); }
+-  FMT_CONSTEXPR void on_tz_name() { unsupported(); }
+-};
+-
+-struct tm_format_checker : null_chrono_spec_handler<tm_format_checker> {
+-  FMT_NORETURN void unsupported() { FMT_THROW(format_error("no format")); }
+-
+-  template <typename Char>
+-  FMT_CONSTEXPR void on_text(const Char*, const Char*) {}
+-  FMT_CONSTEXPR void on_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_short_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_offset_year() {}
+-  FMT_CONSTEXPR void on_century(numeric_system) {}
+-  FMT_CONSTEXPR void on_iso_week_based_year() {}
+-  FMT_CONSTEXPR void on_iso_week_based_short_year() {}
+-  FMT_CONSTEXPR void on_abbr_weekday() {}
+-  FMT_CONSTEXPR void on_full_weekday() {}
+-  FMT_CONSTEXPR void on_dec0_weekday(numeric_system) {}
+-  FMT_CONSTEXPR void on_dec1_weekday(numeric_system) {}
+-  FMT_CONSTEXPR void on_abbr_month() {}
+-  FMT_CONSTEXPR void on_full_month() {}
+-  FMT_CONSTEXPR void on_dec_month(numeric_system) {}
+-  FMT_CONSTEXPR void on_dec0_week_of_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_dec1_week_of_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_iso_week_of_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_day_of_year() {}
+-  FMT_CONSTEXPR void on_day_of_month(numeric_system) {}
+-  FMT_CONSTEXPR void on_day_of_month_space(numeric_system) {}
+-  FMT_CONSTEXPR void on_24_hour(numeric_system) {}
+-  FMT_CONSTEXPR void on_12_hour(numeric_system) {}
+-  FMT_CONSTEXPR void on_minute(numeric_system) {}
+-  FMT_CONSTEXPR void on_second(numeric_system) {}
+-  FMT_CONSTEXPR void on_datetime(numeric_system) {}
+-  FMT_CONSTEXPR void on_loc_date(numeric_system) {}
+-  FMT_CONSTEXPR void on_loc_time(numeric_system) {}
+-  FMT_CONSTEXPR void on_us_date() {}
+-  FMT_CONSTEXPR void on_iso_date() {}
+-  FMT_CONSTEXPR void on_12_hour_time() {}
+-  FMT_CONSTEXPR void on_24_hour_time() {}
+-  FMT_CONSTEXPR void on_iso_time() {}
+-  FMT_CONSTEXPR void on_am_pm() {}
+-  FMT_CONSTEXPR void on_utc_offset() {}
+-  FMT_CONSTEXPR void on_tz_name() {}
+-};
+-
+-inline const char* tm_wday_full_name(int wday) {
+-  static constexpr const char* full_name_list[] = {
+-      "Sunday",   "Monday", "Tuesday", "Wednesday",
+-      "Thursday", "Friday", "Saturday"};
+-  return wday >= 0 && wday <= 6 ? full_name_list[wday] : "?";
+-}
+-inline const char* tm_wday_short_name(int wday) {
+-  static constexpr const char* short_name_list[] = {"Sun", "Mon", "Tue", "Wed",
+-                                                    "Thu", "Fri", "Sat"};
+-  return wday >= 0 && wday <= 6 ? short_name_list[wday] : "???";
+-}
+-
+-inline const char* tm_mon_full_name(int mon) {
+-  static constexpr const char* full_name_list[] = {
+-      "January", "February", "March",     "April",   "May",      "June",
+-      "July",    "August",   "September", "October", "November", "December"};
+-  return mon >= 0 && mon <= 11 ? full_name_list[mon] : "?";
+-}
+-inline const char* tm_mon_short_name(int mon) {
+-  static constexpr const char* short_name_list[] = {
+-      "Jan", "Feb", "Mar", "Apr", "May", "Jun",
+-      "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
+-  };
+-  return mon >= 0 && mon <= 11 ? short_name_list[mon] : "???";
+-}
+-
+-template <typename T, typename = void>
+-struct has_member_data_tm_gmtoff : std::false_type {};
+-template <typename T>
+-struct has_member_data_tm_gmtoff<T, void_t<decltype(T::tm_gmtoff)>>
+-    : std::true_type {};
+-
+-template <typename T, typename = void>
+-struct has_member_data_tm_zone : std::false_type {};
+-template <typename T>
+-struct has_member_data_tm_zone<T, void_t<decltype(T::tm_zone)>>
+-    : std::true_type {};
+-
+-#if FMT_USE_TZSET
+-inline void tzset_once() {
+-  static bool init = []() -> bool {
+-    _tzset();
+-    return true;
+-  }();
+-  ignore_unused(init);
+-}
+-#endif
+-
+-template <typename OutputIt, typename Char> class tm_writer {
+- private:
+-  static constexpr int days_per_week = 7;
+-
+-  const std::locale& loc_;
+-  const bool is_classic_;
+-  OutputIt out_;
+-  const std::tm& tm_;
+-
+-  auto tm_sec() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_sec >= 0 && tm_.tm_sec <= 61, "");
+-    return tm_.tm_sec;
+-  }
+-  auto tm_min() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_min >= 0 && tm_.tm_min <= 59, "");
+-    return tm_.tm_min;
+-  }
+-  auto tm_hour() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_hour >= 0 && tm_.tm_hour <= 23, "");
+-    return tm_.tm_hour;
+-  }
+-  auto tm_mday() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_mday >= 1 && tm_.tm_mday <= 31, "");
+-    return tm_.tm_mday;
+-  }
+-  auto tm_mon() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_mon >= 0 && tm_.tm_mon <= 11, "");
+-    return tm_.tm_mon;
+-  }
+-  auto tm_year() const noexcept -> long long { return 1900ll + tm_.tm_year; }
+-  auto tm_wday() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_wday >= 0 && tm_.tm_wday <= 6, "");
+-    return tm_.tm_wday;
+-  }
+-  auto tm_yday() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_yday >= 0 && tm_.tm_yday <= 365, "");
+-    return tm_.tm_yday;
+-  }
+-
+-  auto tm_hour12() const noexcept -> int {
+-    const auto h = tm_hour();
+-    const auto z = h < 12 ? h : h - 12;
+-    return z == 0 ? 12 : z;
+-  }
+-
+-  // POSIX and the C Standard are unclear or inconsistent about what %C and %y
+-  // do if the year is negative or exceeds 9999. Use the convention that %C
+-  // concatenated with %y yields the same output as %Y, and that %Y contains at
+-  // least 4 characters, with more only if necessary.
+-  auto split_year_lower(long long year) const noexcept -> int {
+-    auto l = year % 100;
+-    if (l < 0) l = -l;  // l in [0, 99]
+-    return static_cast<int>(l);
+-  }
+-
+-  // Algorithm:
+-  // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_the_week_number_from_a_month_and_day_of_the_month_or_ordinal_date
+-  auto iso_year_weeks(long long curr_year) const noexcept -> int {
+-    const auto prev_year = curr_year - 1;
+-    const auto curr_p =
+-        (curr_year + curr_year / 4 - curr_year / 100 + curr_year / 400) %
+-        days_per_week;
+-    const auto prev_p =
+-        (prev_year + prev_year / 4 - prev_year / 100 + prev_year / 400) %
+-        days_per_week;
+-    return 52 + ((curr_p == 4 || prev_p == 3) ? 1 : 0);
+-  }
+-  auto iso_week_num(int tm_yday, int tm_wday) const noexcept -> int {
+-    return (tm_yday + 11 - (tm_wday == 0 ? days_per_week : tm_wday)) /
+-           days_per_week;
+-  }
+-  auto tm_iso_week_year() const noexcept -> long long {
+-    const auto year = tm_year();
+-    const auto w = iso_week_num(tm_yday(), tm_wday());
+-    if (w < 1) return year - 1;
+-    if (w > iso_year_weeks(year)) return year + 1;
+-    return year;
+-  }
+-  auto tm_iso_week_of_year() const noexcept -> int {
+-    const auto year = tm_year();
+-    const auto w = iso_week_num(tm_yday(), tm_wday());
+-    if (w < 1) return iso_year_weeks(year - 1);
+-    if (w > iso_year_weeks(year)) return 1;
+-    return w;
+-  }
+-
+-  void write1(int value) {
+-    *out_++ = static_cast<char>('0' + to_unsigned(value) % 10);
+-  }
+-  void write2(int value) {
+-    const char* d = digits2(to_unsigned(value) % 100);
+-    *out_++ = *d++;
+-    *out_++ = *d;
+-  }
+-
+-  void write_year_extended(long long year) {
+-    // At least 4 characters.
+-    int width = 4;
+-    if (year < 0) {
+-      *out_++ = '-';
+-      year = 0 - year;
+-      --width;
+-    }
+-    uint32_or_64_or_128_t<long long> n = to_unsigned(year);
+-    const int num_digits = count_digits(n);
+-    if (width > num_digits) out_ = std::fill_n(out_, width - num_digits, '0');
+-    out_ = format_decimal<Char>(out_, n, num_digits).end;
+-  }
+-  void write_year(long long year) {
+-    if (year >= 0 && year < 10000) {
+-      write2(static_cast<int>(year / 100));
+-      write2(static_cast<int>(year % 100));
+-    } else {
+-      write_year_extended(year);
+-    }
+-  }
+-
+-  void write_utc_offset(long offset) {
+-    if (offset < 0) {
+-      *out_++ = '-';
+-      offset = -offset;
+-    } else {
+-      *out_++ = '+';
+-    }
+-    offset /= 60;
+-    write2(static_cast<int>(offset / 60));
+-    write2(static_cast<int>(offset % 60));
+-  }
+-  template <typename T, FMT_ENABLE_IF(has_member_data_tm_gmtoff<T>::value)>
+-  void format_utc_offset_impl(const T& tm) {
+-    write_utc_offset(tm.tm_gmtoff);
+-  }
+-  template <typename T, FMT_ENABLE_IF(!has_member_data_tm_gmtoff<T>::value)>
+-  void format_utc_offset_impl(const T& tm) {
+-#if defined(_WIN32) && defined(_UCRT)
+-#  if FMT_USE_TZSET
+-    tzset_once();
+-#  endif
+-    long offset = 0;
+-    _get_timezone(&offset);
+-    if (tm.tm_isdst) {
+-      long dstbias = 0;
+-      _get_dstbias(&dstbias);
+-      offset += dstbias;
+-    }
+-    write_utc_offset(-offset);
+-#else
+-    ignore_unused(tm);
+-    format_localized('z');
+-#endif
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(has_member_data_tm_zone<T>::value)>
+-  void format_tz_name_impl(const T& tm) {
+-    if (is_classic_)
+-      out_ = write_tm_str<Char>(out_, tm.tm_zone, loc_);
+-    else
+-      format_localized('Z');
+-  }
+-  template <typename T, FMT_ENABLE_IF(!has_member_data_tm_zone<T>::value)>
+-  void format_tz_name_impl(const T&) {
+-    format_localized('Z');
+-  }
+-
+-  void format_localized(char format, char modifier = 0) {
+-    out_ = write<Char>(out_, tm_, loc_, format, modifier);
+-  }
+-
+- public:
+-  tm_writer(const std::locale& loc, OutputIt out, const std::tm& tm)
+-      : loc_(loc),
+-        is_classic_(loc_ == get_classic_locale()),
+-        out_(out),
+-        tm_(tm) {}
+-
+-  OutputIt out() const { return out_; }
+-
+-  FMT_CONSTEXPR void on_text(const Char* begin, const Char* end) {
+-    out_ = copy_str<Char>(begin, end, out_);
+-  }
+-
+-  void on_abbr_weekday() {
+-    if (is_classic_)
+-      out_ = write(out_, tm_wday_short_name(tm_wday()));
+-    else
+-      format_localized('a');
+-  }
+-  void on_full_weekday() {
+-    if (is_classic_)
+-      out_ = write(out_, tm_wday_full_name(tm_wday()));
+-    else
+-      format_localized('A');
+-  }
+-  void on_dec0_weekday(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write1(tm_wday());
+-    format_localized('w', 'O');
+-  }
+-  void on_dec1_weekday(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) {
+-      auto wday = tm_wday();
+-      write1(wday == 0 ? days_per_week : wday);
+-    } else {
+-      format_localized('u', 'O');
+-    }
+-  }
+-
+-  void on_abbr_month() {
+-    if (is_classic_)
+-      out_ = write(out_, tm_mon_short_name(tm_mon()));
+-    else
+-      format_localized('b');
+-  }
+-  void on_full_month() {
+-    if (is_classic_)
+-      out_ = write(out_, tm_mon_full_name(tm_mon()));
+-    else
+-      format_localized('B');
+-  }
+-
+-  void on_datetime(numeric_system ns) {
+-    if (is_classic_) {
+-      on_abbr_weekday();
+-      *out_++ = ' ';
+-      on_abbr_month();
+-      *out_++ = ' ';
+-      on_day_of_month_space(numeric_system::standard);
+-      *out_++ = ' ';
+-      on_iso_time();
+-      *out_++ = ' ';
+-      on_year(numeric_system::standard);
+-    } else {
+-      format_localized('c', ns == numeric_system::standard ? '\0' : 'E');
+-    }
+-  }
+-  void on_loc_date(numeric_system ns) {
+-    if (is_classic_)
+-      on_us_date();
+-    else
+-      format_localized('x', ns == numeric_system::standard ? '\0' : 'E');
+-  }
+-  void on_loc_time(numeric_system ns) {
+-    if (is_classic_)
+-      on_iso_time();
+-    else
+-      format_localized('X', ns == numeric_system::standard ? '\0' : 'E');
+-  }
+-  void on_us_date() {
+-    char buf[8];
+-    write_digit2_separated(buf, to_unsigned(tm_mon() + 1),
+-                           to_unsigned(tm_mday()),
+-                           to_unsigned(split_year_lower(tm_year())), '/');
+-    out_ = copy_str<Char>(std::begin(buf), std::end(buf), out_);
+-  }
+-  void on_iso_date() {
+-    auto year = tm_year();
+-    char buf[10];
+-    size_t offset = 0;
+-    if (year >= 0 && year < 10000) {
+-      copy2(buf, digits2(to_unsigned(year / 100)));
+-    } else {
+-      offset = 4;
+-      write_year_extended(year);
+-      year = 0;
+-    }
+-    write_digit2_separated(buf + 2, static_cast<unsigned>(year % 100),
+-                           to_unsigned(tm_mon() + 1), to_unsigned(tm_mday()),
+-                           '-');
+-    out_ = copy_str<Char>(std::begin(buf) + offset, std::end(buf), out_);
+-  }
+-
+-  void on_utc_offset() { format_utc_offset_impl(tm_); }
+-  void on_tz_name() { format_tz_name_impl(tm_); }
+-
+-  void on_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write_year(tm_year());
+-    format_localized('Y', 'E');
+-  }
+-  void on_short_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2(split_year_lower(tm_year()));
+-    format_localized('y', 'O');
+-  }
+-  void on_offset_year() {
+-    if (is_classic_) return write2(split_year_lower(tm_year()));
+-    format_localized('y', 'E');
+-  }
+-
+-  void on_century(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) {
+-      auto year = tm_year();
+-      auto upper = year / 100;
+-      if (year >= -99 && year < 0) {
+-        // Zero upper on negative year.
+-        *out_++ = '-';
+-        *out_++ = '0';
+-      } else if (upper >= 0 && upper < 100) {
+-        write2(static_cast<int>(upper));
+-      } else {
+-        out_ = write<Char>(out_, upper);
+-      }
+-    } else {
+-      format_localized('C', 'E');
+-    }
+-  }
+-
+-  void on_dec_month(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2(tm_mon() + 1);
+-    format_localized('m', 'O');
+-  }
+-
+-  void on_dec0_week_of_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2((tm_yday() + days_per_week - tm_wday()) / days_per_week);
+-    format_localized('U', 'O');
+-  }
+-  void on_dec1_week_of_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) {
+-      auto wday = tm_wday();
+-      write2((tm_yday() + days_per_week -
+-              (wday == 0 ? (days_per_week - 1) : (wday - 1))) /
+-             days_per_week);
+-    } else {
+-      format_localized('W', 'O');
+-    }
+-  }
+-  void on_iso_week_of_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2(tm_iso_week_of_year());
+-    format_localized('V', 'O');
+-  }
+-
+-  void on_iso_week_based_year() { write_year(tm_iso_week_year()); }
+-  void on_iso_week_based_short_year() {
+-    write2(split_year_lower(tm_iso_week_year()));
+-  }
+-
+-  void on_day_of_year() {
+-    auto yday = tm_yday() + 1;
+-    write1(yday / 100);
+-    write2(yday % 100);
+-  }
+-  void on_day_of_month(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write2(tm_mday());
+-    format_localized('d', 'O');
+-  }
+-  void on_day_of_month_space(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) {
+-      auto mday = to_unsigned(tm_mday()) % 100;
+-      const char* d2 = digits2(mday);
+-      *out_++ = mday < 10 ? ' ' : d2[0];
+-      *out_++ = d2[1];
+-    } else {
+-      format_localized('e', 'O');
+-    }
+-  }
+-
+-  void on_24_hour(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write2(tm_hour());
+-    format_localized('H', 'O');
+-  }
+-  void on_12_hour(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2(tm_hour12());
+-    format_localized('I', 'O');
+-  }
+-  void on_minute(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write2(tm_min());
+-    format_localized('M', 'O');
+-  }
+-  void on_second(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write2(tm_sec());
+-    format_localized('S', 'O');
+-  }
+-
+-  void on_12_hour_time() {
+-    if (is_classic_) {
+-      char buf[8];
+-      write_digit2_separated(buf, to_unsigned(tm_hour12()),
+-                             to_unsigned(tm_min()), to_unsigned(tm_sec()), ':');
+-      out_ = copy_str<Char>(std::begin(buf), std::end(buf), out_);
+-      *out_++ = ' ';
+-      on_am_pm();
+-    } else {
+-      format_localized('r');
+-    }
+-  }
+-  void on_24_hour_time() {
+-    write2(tm_hour());
+-    *out_++ = ':';
+-    write2(tm_min());
+-  }
+-  void on_iso_time() {
+-    char buf[8];
+-    write_digit2_separated(buf, to_unsigned(tm_hour()), to_unsigned(tm_min()),
+-                           to_unsigned(tm_sec()), ':');
+-    out_ = copy_str<Char>(std::begin(buf), std::end(buf), out_);
+-  }
+-
+-  void on_am_pm() {
+-    if (is_classic_) {
+-      *out_++ = tm_hour() < 12 ? 'A' : 'P';
+-      *out_++ = 'M';
+-    } else {
+-      format_localized('p');
+-    }
+-  }
+-
+-  // These apply to chrono durations but not tm.
+-  void on_duration_value() {}
+-  void on_duration_unit() {}
+-};
+-
+-struct chrono_format_checker : null_chrono_spec_handler<chrono_format_checker> {
+-  FMT_NORETURN void unsupported() { FMT_THROW(format_error("no date")); }
+-
+-  template <typename Char>
+-  FMT_CONSTEXPR void on_text(const Char*, const Char*) {}
+-  FMT_CONSTEXPR void on_24_hour(numeric_system) {}
+-  FMT_CONSTEXPR void on_12_hour(numeric_system) {}
+-  FMT_CONSTEXPR void on_minute(numeric_system) {}
+-  FMT_CONSTEXPR void on_second(numeric_system) {}
+-  FMT_CONSTEXPR void on_12_hour_time() {}
+-  FMT_CONSTEXPR void on_24_hour_time() {}
+-  FMT_CONSTEXPR void on_iso_time() {}
+-  FMT_CONSTEXPR void on_am_pm() {}
+-  FMT_CONSTEXPR void on_duration_value() {}
+-  FMT_CONSTEXPR void on_duration_unit() {}
+-};
+-
+-template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-inline bool isnan(T) {
+-  return false;
+-}
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-inline bool isnan(T value) {
+-  return std::isnan(value);
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-inline bool isfinite(T) {
+-  return true;
+-}
+-
+-// Converts value to Int and checks that it's in the range [0, upper).
+-template <typename T, typename Int, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-inline Int to_nonnegative_int(T value, Int upper) {
+-  FMT_ASSERT(value >= 0 && to_unsigned(value) <= to_unsigned(upper),
+-             "invalid value");
+-  (void)upper;
+-  return static_cast<Int>(value);
+-}
+-template <typename T, typename Int, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-inline Int to_nonnegative_int(T value, Int upper) {
+-  if (value < 0 || value > static_cast<T>(upper))
+-    FMT_THROW(format_error("invalid value"));
+-  return static_cast<Int>(value);
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-inline T mod(T x, int y) {
+-  return x % static_cast<T>(y);
+-}
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-inline T mod(T x, int y) {
+-  return std::fmod(x, static_cast<T>(y));
+-}
+-
+-// If T is an integral type, maps T to its unsigned counterpart, otherwise
+-// leaves it unchanged (unlike std::make_unsigned).
+-template <typename T, bool INTEGRAL = std::is_integral<T>::value>
+-struct make_unsigned_or_unchanged {
+-  using type = T;
+-};
+-
+-template <typename T> struct make_unsigned_or_unchanged<T, true> {
+-  using type = typename std::make_unsigned<T>::type;
+-};
+-
+-#if FMT_SAFE_DURATION_CAST
+-// throwing version of safe_duration_cast
+-template <typename To, typename FromRep, typename FromPeriod>
+-To fmt_safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from) {
+-  int ec;
+-  To to = safe_duration_cast::safe_duration_cast<To>(from, ec);
+-  if (ec) FMT_THROW(format_error("cannot format duration"));
+-  return to;
+-}
+-#endif
+-
+-template <typename Rep, typename Period,
+-          FMT_ENABLE_IF(std::is_integral<Rep>::value)>
+-inline std::chrono::duration<Rep, std::milli> get_milliseconds(
+-    std::chrono::duration<Rep, Period> d) {
+-  // this may overflow and/or the result may not fit in the
+-  // target type.
+-#if FMT_SAFE_DURATION_CAST
+-  using CommonSecondsType =
+-      typename std::common_type<decltype(d), std::chrono::seconds>::type;
+-  const auto d_as_common = fmt_safe_duration_cast<CommonSecondsType>(d);
+-  const auto d_as_whole_seconds =
+-      fmt_safe_duration_cast<std::chrono::seconds>(d_as_common);
+-  // this conversion should be nonproblematic
+-  const auto diff = d_as_common - d_as_whole_seconds;
+-  const auto ms =
+-      fmt_safe_duration_cast<std::chrono::duration<Rep, std::milli>>(diff);
+-  return ms;
+-#else
+-  auto s = std::chrono::duration_cast<std::chrono::seconds>(d);
+-  return std::chrono::duration_cast<std::chrono::milliseconds>(d - s);
+-#endif
+-}
+-
+-// Returns the number of fractional digits in the range [0, 18] according to the
+-// C++20 spec. If more than 18 fractional digits are required then returns 6 for
+-// microseconds precision.
+-constexpr int count_fractional_digits(long long num, long long den, int n = 0) {
+-  return num % den == 0
+-             ? n
+-             : (n > 18 ? 6 : count_fractional_digits(num * 10, den, n + 1));
+-}
+-
+-constexpr long long pow10(std::uint32_t n) {
+-  return n == 0 ? 1 : 10 * pow10(n - 1);
+-}
+-
+-template <class Rep, class Period,
+-          FMT_ENABLE_IF(std::numeric_limits<Rep>::is_signed)>
+-constexpr std::chrono::duration<Rep, Period> abs(
+-    std::chrono::duration<Rep, Period> d) {
+-  // We need to compare the duration using the count() method directly
+-  // due to a compiler bug in clang-11 regarding the spaceship operator,
+-  // when -Wzero-as-null-pointer-constant is enabled.
+-  // In clang-12 the bug has been fixed. See
+-  // https://bugs.llvm.org/show_bug.cgi?id=46235 and the reproducible example:
+-  // https://www.godbolt.org/z/Knbb5joYx.
+-  return d.count() >= d.zero().count() ? d : -d;
+-}
+-
+-template <class Rep, class Period,
+-          FMT_ENABLE_IF(!std::numeric_limits<Rep>::is_signed)>
+-constexpr std::chrono::duration<Rep, Period> abs(
+-    std::chrono::duration<Rep, Period> d) {
+-  return d;
+-}
+-
+-template <typename Char, typename Rep, typename OutputIt,
+-          FMT_ENABLE_IF(std::is_integral<Rep>::value)>
+-OutputIt format_duration_value(OutputIt out, Rep val, int) {
+-  return write<Char>(out, val);
+-}
+-
+-template <typename Char, typename Rep, typename OutputIt,
+-          FMT_ENABLE_IF(std::is_floating_point<Rep>::value)>
+-OutputIt format_duration_value(OutputIt out, Rep val, int precision) {
+-  auto specs = basic_format_specs<Char>();
+-  specs.precision = precision;
+-  specs.type = precision >= 0 ? presentation_type::fixed_lower
+-                              : presentation_type::general_lower;
+-  return write<Char>(out, val, specs);
+-}
+-
+-template <typename Char, typename OutputIt>
+-OutputIt copy_unit(string_view unit, OutputIt out, Char) {
+-  return std::copy(unit.begin(), unit.end(), out);
+-}
+-
+-template <typename OutputIt>
+-OutputIt copy_unit(string_view unit, OutputIt out, wchar_t) {
+-  // This works when wchar_t is UTF-32 because units only contain characters
+-  // that have the same representation in UTF-16 and UTF-32.
+-  utf8_to_utf16 u(unit);
+-  return std::copy(u.c_str(), u.c_str() + u.size(), out);
+-}
+-
+-template <typename Char, typename Period, typename OutputIt>
+-OutputIt format_duration_unit(OutputIt out) {
+-  if (const char* unit = get_units<Period>())
+-    return copy_unit(string_view(unit), out, Char());
+-  *out++ = '[';
+-  out = write<Char>(out, Period::num);
+-  if (const_check(Period::den != 1)) {
+-    *out++ = '/';
+-    out = write<Char>(out, Period::den);
+-  }
+-  *out++ = ']';
+-  *out++ = 's';
+-  return out;
+-}
+-
+-class get_locale {
+- private:
+-  union {
+-    std::locale locale_;
+-  };
+-  bool has_locale_ = false;
+-
+- public:
+-  get_locale(bool localized, locale_ref loc) : has_locale_(localized) {
+-    if (localized)
+-      ::new (&locale_) std::locale(loc.template get<std::locale>());
+-  }
+-  ~get_locale() {
+-    if (has_locale_) locale_.~locale();
+-  }
+-  operator const std::locale&() const {
+-    return has_locale_ ? locale_ : get_classic_locale();
+-  }
+-};
+-
+-template <typename FormatContext, typename OutputIt, typename Rep,
+-          typename Period>
+-struct chrono_formatter {
+-  FormatContext& context;
+-  OutputIt out;
+-  int precision;
+-  bool localized = false;
+-  // rep is unsigned to avoid overflow.
+-  using rep =
+-      conditional_t<std::is_integral<Rep>::value && sizeof(Rep) < sizeof(int),
+-                    unsigned, typename make_unsigned_or_unchanged<Rep>::type>;
+-  rep val;
+-  using seconds = std::chrono::duration<rep>;
+-  seconds s;
+-  using milliseconds = std::chrono::duration<rep, std::milli>;
+-  bool negative;
+-
+-  using char_type = typename FormatContext::char_type;
+-  using tm_writer_type = tm_writer<OutputIt, char_type>;
+-
+-  chrono_formatter(FormatContext& ctx, OutputIt o,
+-                   std::chrono::duration<Rep, Period> d)
+-      : context(ctx),
+-        out(o),
+-        val(static_cast<rep>(d.count())),
+-        negative(false) {
+-    if (d.count() < 0) {
+-      val = 0 - val;
+-      negative = true;
+-    }
+-
+-    // this may overflow and/or the result may not fit in the
+-    // target type.
+-#if FMT_SAFE_DURATION_CAST
+-    // might need checked conversion (rep!=Rep)
+-    auto tmpval = std::chrono::duration<rep, Period>(val);
+-    s = fmt_safe_duration_cast<seconds>(tmpval);
+-#else
+-    s = std::chrono::duration_cast<seconds>(
+-        std::chrono::duration<rep, Period>(val));
+-#endif
+-  }
+-
+-  // returns true if nan or inf, writes to out.
+-  bool handle_nan_inf() {
+-    if (isfinite(val)) {
+-      return false;
+-    }
+-    if (isnan(val)) {
+-      write_nan();
+-      return true;
+-    }
+-    // must be +-inf
+-    if (val > 0) {
+-      write_pinf();
+-    } else {
+-      write_ninf();
+-    }
+-    return true;
+-  }
+-
+-  Rep hour() const { return static_cast<Rep>(mod((s.count() / 3600), 24)); }
+-
+-  Rep hour12() const {
+-    Rep hour = static_cast<Rep>(mod((s.count() / 3600), 12));
+-    return hour <= 0 ? 12 : hour;
+-  }
+-
+-  Rep minute() const { return static_cast<Rep>(mod((s.count() / 60), 60)); }
+-  Rep second() const { return static_cast<Rep>(mod(s.count(), 60)); }
+-
+-  std::tm time() const {
+-    auto time = std::tm();
+-    time.tm_hour = to_nonnegative_int(hour(), 24);
+-    time.tm_min = to_nonnegative_int(minute(), 60);
+-    time.tm_sec = to_nonnegative_int(second(), 60);
+-    return time;
+-  }
+-
+-  void write_sign() {
+-    if (negative) {
+-      *out++ = '-';
+-      negative = false;
+-    }
+-  }
+-
+-  void write(Rep value, int width) {
+-    write_sign();
+-    if (isnan(value)) return write_nan();
+-    uint32_or_64_or_128_t<int> n =
+-        to_unsigned(to_nonnegative_int(value, max_value<int>()));
+-    int num_digits = detail::count_digits(n);
+-    if (width > num_digits) out = std::fill_n(out, width - num_digits, '0');
+-    out = format_decimal<char_type>(out, n, num_digits).end;
+-  }
+-
+-  template <class Duration> void write_fractional_seconds(Duration d) {
+-    constexpr auto num_fractional_digits =
+-        count_fractional_digits(Duration::period::num, Duration::period::den);
+-
+-    using subsecond_precision = std::chrono::duration<
+-        typename std::common_type<typename Duration::rep,
+-                                  std::chrono::seconds::rep>::type,
+-        std::ratio<1, detail::pow10(num_fractional_digits)>>;
+-    if (std::ratio_less<typename subsecond_precision::period,
+-                        std::chrono::seconds::period>::value) {
+-      *out++ = '.';
+-      // Don't convert long double to integer seconds to avoid overflow.
+-      using sec = conditional_t<
+-          std::is_same<typename Duration::rep, long double>::value,
+-          std::chrono::duration<long double>, std::chrono::seconds>;
+-      auto fractional = detail::abs(d) - std::chrono::duration_cast<sec>(d);
+-      const auto subseconds =
+-          std::chrono::treat_as_floating_point<
+-              typename subsecond_precision::rep>::value
+-              ? fractional.count()
+-              : std::chrono::duration_cast<subsecond_precision>(fractional)
+-                    .count();
+-      uint32_or_64_or_128_t<long long> n =
+-          to_unsigned(to_nonnegative_int(subseconds, max_value<long long>()));
+-      int num_digits = detail::count_digits(n);
+-      if (num_fractional_digits > num_digits)
+-        out = std::fill_n(out, num_fractional_digits - num_digits, '0');
+-      out = format_decimal<char_type>(out, n, num_digits).end;
+-    }
+-  }
+-
+-  void write_nan() { std::copy_n("nan", 3, out); }
+-  void write_pinf() { std::copy_n("inf", 3, out); }
+-  void write_ninf() { std::copy_n("-inf", 4, out); }
+-
+-  template <typename Callback, typename... Args>
+-  void format_tm(const tm& time, Callback cb, Args... args) {
+-    if (isnan(val)) return write_nan();
+-    get_locale loc(localized, context.locale());
+-    auto w = tm_writer_type(loc, out, time);
+-    (w.*cb)(args...);
+-    out = w.out();
+-  }
+-
+-  void on_text(const char_type* begin, const char_type* end) {
+-    std::copy(begin, end, out);
+-  }
+-
+-  // These are not implemented because durations don't have date information.
+-  void on_abbr_weekday() {}
+-  void on_full_weekday() {}
+-  void on_dec0_weekday(numeric_system) {}
+-  void on_dec1_weekday(numeric_system) {}
+-  void on_abbr_month() {}
+-  void on_full_month() {}
+-  void on_datetime(numeric_system) {}
+-  void on_loc_date(numeric_system) {}
+-  void on_loc_time(numeric_system) {}
+-  void on_us_date() {}
+-  void on_iso_date() {}
+-  void on_utc_offset() {}
+-  void on_tz_name() {}
+-  void on_year(numeric_system) {}
+-  void on_short_year(numeric_system) {}
+-  void on_offset_year() {}
+-  void on_century(numeric_system) {}
+-  void on_iso_week_based_year() {}
+-  void on_iso_week_based_short_year() {}
+-  void on_dec_month(numeric_system) {}
+-  void on_dec0_week_of_year(numeric_system) {}
+-  void on_dec1_week_of_year(numeric_system) {}
+-  void on_iso_week_of_year(numeric_system) {}
+-  void on_day_of_year() {}
+-  void on_day_of_month(numeric_system) {}
+-  void on_day_of_month_space(numeric_system) {}
+-
+-  void on_24_hour(numeric_system ns) {
+-    if (handle_nan_inf()) return;
+-
+-    if (ns == numeric_system::standard) return write(hour(), 2);
+-    auto time = tm();
+-    time.tm_hour = to_nonnegative_int(hour(), 24);
+-    format_tm(time, &tm_writer_type::on_24_hour, ns);
+-  }
+-
+-  void on_12_hour(numeric_system ns) {
+-    if (handle_nan_inf()) return;
+-
+-    if (ns == numeric_system::standard) return write(hour12(), 2);
+-    auto time = tm();
+-    time.tm_hour = to_nonnegative_int(hour12(), 12);
+-    format_tm(time, &tm_writer_type::on_12_hour, ns);
+-  }
+-
+-  void on_minute(numeric_system ns) {
+-    if (handle_nan_inf()) return;
+-
+-    if (ns == numeric_system::standard) return write(minute(), 2);
+-    auto time = tm();
+-    time.tm_min = to_nonnegative_int(minute(), 60);
+-    format_tm(time, &tm_writer_type::on_minute, ns);
+-  }
+-
+-  void on_second(numeric_system ns) {
+-    if (handle_nan_inf()) return;
+-
+-    if (ns == numeric_system::standard) {
+-      write(second(), 2);
+-      write_fractional_seconds(std::chrono::duration<rep, Period>{val});
+-      return;
+-    }
+-    auto time = tm();
+-    time.tm_sec = to_nonnegative_int(second(), 60);
+-    format_tm(time, &tm_writer_type::on_second, ns);
+-  }
+-
+-  void on_12_hour_time() {
+-    if (handle_nan_inf()) return;
+-    format_tm(time(), &tm_writer_type::on_12_hour_time);
+-  }
+-
+-  void on_24_hour_time() {
+-    if (handle_nan_inf()) {
+-      *out++ = ':';
+-      handle_nan_inf();
+-      return;
+-    }
+-
+-    write(hour(), 2);
+-    *out++ = ':';
+-    write(minute(), 2);
+-  }
+-
+-  void on_iso_time() {
+-    on_24_hour_time();
+-    *out++ = ':';
+-    if (handle_nan_inf()) return;
+-    on_second(numeric_system::standard);
+-  }
+-
+-  void on_am_pm() {
+-    if (handle_nan_inf()) return;
+-    format_tm(time(), &tm_writer_type::on_am_pm);
+-  }
+-
+-  void on_duration_value() {
+-    if (handle_nan_inf()) return;
+-    write_sign();
+-    out = format_duration_value<char_type>(out, val, precision);
+-  }
+-
+-  void on_duration_unit() {
+-    out = format_duration_unit<char_type, Period>(out);
+-  }
+-};
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-#if defined(__cpp_lib_chrono) && __cpp_lib_chrono >= 201907
+-using weekday = std::chrono::weekday;
+-#else
+-// A fallback version of weekday.
+-class weekday {
+- private:
+-  unsigned char value;
+-
+- public:
+-  weekday() = default;
+-  explicit constexpr weekday(unsigned wd) noexcept
+-      : value(static_cast<unsigned char>(wd != 7 ? wd : 0)) {}
+-  constexpr unsigned c_encoding() const noexcept { return value; }
+-};
+-
+-class year_month_day {};
+-#endif
+-
+-// A rudimentary weekday formatter.
+-template <typename Char> struct formatter<weekday, Char> {
+- private:
+-  bool localized = false;
+-
+- public:
+-  FMT_CONSTEXPR auto parse(basic_format_parse_context<Char>& ctx)
+-      -> decltype(ctx.begin()) {
+-    auto begin = ctx.begin(), end = ctx.end();
+-    if (begin != end && *begin == 'L') {
+-      ++begin;
+-      localized = true;
+-    }
+-    return begin;
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(weekday wd, FormatContext& ctx) const -> decltype(ctx.out()) {
+-    auto time = std::tm();
+-    time.tm_wday = static_cast<int>(wd.c_encoding());
+-    detail::get_locale loc(localized, ctx.locale());
+-    auto w = detail::tm_writer<decltype(ctx.out()), Char>(loc, ctx.out(), time);
+-    w.on_abbr_weekday();
+-    return w.out();
+-  }
+-};
+-
+-template <typename Rep, typename Period, typename Char>
+-struct formatter<std::chrono::duration<Rep, Period>, Char> {
+- private:
+-  basic_format_specs<Char> specs;
+-  int precision = -1;
+-  using arg_ref_type = detail::arg_ref<Char>;
+-  arg_ref_type width_ref;
+-  arg_ref_type precision_ref;
+-  bool localized = false;
+-  basic_string_view<Char> format_str;
+-  using duration = std::chrono::duration<Rep, Period>;
+-
+-  struct spec_handler {
+-    formatter& f;
+-    basic_format_parse_context<Char>& context;
+-    basic_string_view<Char> format_str;
+-
+-    template <typename Id> FMT_CONSTEXPR arg_ref_type make_arg_ref(Id arg_id) {
+-      context.check_arg_id(arg_id);
+-      return arg_ref_type(arg_id);
+-    }
+-
+-    FMT_CONSTEXPR arg_ref_type make_arg_ref(basic_string_view<Char> arg_id) {
+-      context.check_arg_id(arg_id);
+-      return arg_ref_type(arg_id);
+-    }
+-
+-    FMT_CONSTEXPR arg_ref_type make_arg_ref(detail::auto_id) {
+-      return arg_ref_type(context.next_arg_id());
+-    }
+-
+-    void on_error(const char* msg) { FMT_THROW(format_error(msg)); }
+-    FMT_CONSTEXPR void on_fill(basic_string_view<Char> fill) {
+-      f.specs.fill = fill;
+-    }
+-    FMT_CONSTEXPR void on_align(align_t align) { f.specs.align = align; }
+-    FMT_CONSTEXPR void on_width(int width) { f.specs.width = width; }
+-    FMT_CONSTEXPR void on_precision(int _precision) {
+-      f.precision = _precision;
+-    }
+-    FMT_CONSTEXPR void end_precision() {}
+-
+-    template <typename Id> FMT_CONSTEXPR void on_dynamic_width(Id arg_id) {
+-      f.width_ref = make_arg_ref(arg_id);
+-    }
+-
+-    template <typename Id> FMT_CONSTEXPR void on_dynamic_precision(Id arg_id) {
+-      f.precision_ref = make_arg_ref(arg_id);
+-    }
+-  };
+-
+-  using iterator = typename basic_format_parse_context<Char>::iterator;
+-  struct parse_range {
+-    iterator begin;
+-    iterator end;
+-  };
+-
+-  FMT_CONSTEXPR parse_range do_parse(basic_format_parse_context<Char>& ctx) {
+-    auto begin = ctx.begin(), end = ctx.end();
+-    if (begin == end || *begin == '}') return {begin, begin};
+-    spec_handler handler{*this, ctx, format_str};
+-    begin = detail::parse_align(begin, end, handler);
+-    if (begin == end) return {begin, begin};
+-    begin = detail::parse_width(begin, end, handler);
+-    if (begin == end) return {begin, begin};
+-    if (*begin == '.') {
+-      if (std::is_floating_point<Rep>::value)
+-        begin = detail::parse_precision(begin, end, handler);
+-      else
+-        handler.on_error("precision not allowed for this argument type");
+-    }
+-    if (begin != end && *begin == 'L') {
+-      ++begin;
+-      localized = true;
+-    }
+-    end = detail::parse_chrono_format(begin, end,
+-                                      detail::chrono_format_checker());
+-    return {begin, end};
+-  }
+-
+- public:
+-  FMT_CONSTEXPR auto parse(basic_format_parse_context<Char>& ctx)
+-      -> decltype(ctx.begin()) {
+-    auto range = do_parse(ctx);
+-    format_str = basic_string_view<Char>(
+-        &*range.begin, detail::to_unsigned(range.end - range.begin));
+-    return range.end;
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(const duration& d, FormatContext& ctx) const
+-      -> decltype(ctx.out()) {
+-    auto specs_copy = specs;
+-    auto precision_copy = precision;
+-    auto begin = format_str.begin(), end = format_str.end();
+-    // As a possible future optimization, we could avoid extra copying if width
+-    // is not specified.
+-    basic_memory_buffer<Char> buf;
+-    auto out = std::back_inserter(buf);
+-    detail::handle_dynamic_spec<detail::width_checker>(specs_copy.width,
+-                                                       width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(precision_copy,
+-                                                           precision_ref, ctx);
+-    if (begin == end || *begin == '}') {
+-      out = detail::format_duration_value<Char>(out, d.count(), precision_copy);
+-      detail::format_duration_unit<Char, Period>(out);
+-    } else {
+-      detail::chrono_formatter<FormatContext, decltype(out), Rep, Period> f(
+-          ctx, out, d);
+-      f.precision = precision_copy;
+-      f.localized = localized;
+-      detail::parse_chrono_format(begin, end, f);
+-    }
+-    return detail::write(
+-        ctx.out(), basic_string_view<Char>(buf.data(), buf.size()), specs_copy);
+-  }
+-};
+-
+-template <typename Char, typename Duration>
+-struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
+-                 Char> : formatter<std::tm, Char> {
+-  FMT_CONSTEXPR formatter() {
+-    this->do_parse(default_specs,
+-                   default_specs + sizeof(default_specs) / sizeof(Char));
+-  }
+-
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return this->do_parse(ctx.begin(), ctx.end(), true);
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(std::chrono::time_point<std::chrono::system_clock> val,
+-              FormatContext& ctx) const -> decltype(ctx.out()) {
+-    return formatter<std::tm, Char>::format(localtime(val), ctx);
+-  }
+-
+-  static constexpr const Char default_specs[] = {'%', 'F', ' ', '%', 'T'};
+-};
+-
+-template <typename Char, typename Duration>
+-constexpr const Char
+-    formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
+-              Char>::default_specs[];
+-
+-template <typename Char> struct formatter<std::tm, Char> {
+- private:
+-  enum class spec {
+-    unknown,
+-    year_month_day,
+-    hh_mm_ss,
+-  };
+-  spec spec_ = spec::unknown;
+-  basic_string_view<Char> specs;
+-
+- protected:
+-  template <typename It>
+-  FMT_CONSTEXPR auto do_parse(It begin, It end, bool with_default = false)
+-      -> It {
+-    if (begin != end && *begin == ':') ++begin;
+-    end = detail::parse_chrono_format(begin, end, detail::tm_format_checker());
+-    if (!with_default || end != begin)
+-      specs = {begin, detail::to_unsigned(end - begin)};
+-    // basic_string_view<>::compare isn't constexpr before C++17.
+-    if (specs.size() == 2 && specs[0] == Char('%')) {
+-      if (specs[1] == Char('F'))
+-        spec_ = spec::year_month_day;
+-      else if (specs[1] == Char('T'))
+-        spec_ = spec::hh_mm_ss;
+-    }
+-    return end;
+-  }
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return this->do_parse(ctx.begin(), ctx.end());
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(const std::tm& tm, FormatContext& ctx) const
+-      -> decltype(ctx.out()) {
+-    const auto loc_ref = ctx.locale();
+-    detail::get_locale loc(static_cast<bool>(loc_ref), loc_ref);
+-    auto w = detail::tm_writer<decltype(ctx.out()), Char>(loc, ctx.out(), tm);
+-    if (spec_ == spec::year_month_day)
+-      w.on_iso_date();
+-    else if (spec_ == spec::hh_mm_ss)
+-      w.on_iso_time();
+-    else
+-      detail::parse_chrono_format(specs.begin(), specs.end(), w);
+-    return w.out();
+-  }
+-};
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_CHRONO_H_
+diff --git a/include/dpp/fmt/color.h b/include/dpp/fmt/color.h
+deleted file mode 100644
+index dfbe482..0000000
+--- a/include/dpp/fmt/color.h
++++ /dev/null
+@@ -1,638 +0,0 @@
+-// Formatting library for C++ - color support
+-//
+-// Copyright (c) 2018 - present, Victor Zverovich and fmt contributors
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_COLOR_H_
+-#define FMT_COLOR_H_
+-
+-#include "format.h"
+-
+-// __declspec(deprecated) is broken in some MSVC versions.
+-#if FMT_MSC_VER
+-#  define FMT_DEPRECATED_NONMSVC
+-#else
+-#  define FMT_DEPRECATED_NONMSVC FMT_DEPRECATED
+-#endif
+-
+-FMT_BEGIN_NAMESPACE
+-FMT_MODULE_EXPORT_BEGIN
+-
+-enum class color : uint32_t {
+-  alice_blue = 0xF0F8FF,               // rgb(240,248,255)
+-  antique_white = 0xFAEBD7,            // rgb(250,235,215)
+-  aqua = 0x00FFFF,                     // rgb(0,255,255)
+-  aquamarine = 0x7FFFD4,               // rgb(127,255,212)
+-  azure = 0xF0FFFF,                    // rgb(240,255,255)
+-  beige = 0xF5F5DC,                    // rgb(245,245,220)
+-  bisque = 0xFFE4C4,                   // rgb(255,228,196)
+-  black = 0x000000,                    // rgb(0,0,0)
+-  blanched_almond = 0xFFEBCD,          // rgb(255,235,205)
+-  blue = 0x0000FF,                     // rgb(0,0,255)
+-  blue_violet = 0x8A2BE2,              // rgb(138,43,226)
+-  brown = 0xA52A2A,                    // rgb(165,42,42)
+-  burly_wood = 0xDEB887,               // rgb(222,184,135)
+-  cadet_blue = 0x5F9EA0,               // rgb(95,158,160)
+-  chartreuse = 0x7FFF00,               // rgb(127,255,0)
+-  chocolate = 0xD2691E,                // rgb(210,105,30)
+-  coral = 0xFF7F50,                    // rgb(255,127,80)
+-  cornflower_blue = 0x6495ED,          // rgb(100,149,237)
+-  cornsilk = 0xFFF8DC,                 // rgb(255,248,220)
+-  crimson = 0xDC143C,                  // rgb(220,20,60)
+-  cyan = 0x00FFFF,                     // rgb(0,255,255)
+-  dark_blue = 0x00008B,                // rgb(0,0,139)
+-  dark_cyan = 0x008B8B,                // rgb(0,139,139)
+-  dark_golden_rod = 0xB8860B,          // rgb(184,134,11)
+-  dark_gray = 0xA9A9A9,                // rgb(169,169,169)
+-  dark_green = 0x006400,               // rgb(0,100,0)
+-  dark_khaki = 0xBDB76B,               // rgb(189,183,107)
+-  dark_magenta = 0x8B008B,             // rgb(139,0,139)
+-  dark_olive_green = 0x556B2F,         // rgb(85,107,47)
+-  dark_orange = 0xFF8C00,              // rgb(255,140,0)
+-  dark_orchid = 0x9932CC,              // rgb(153,50,204)
+-  dark_red = 0x8B0000,                 // rgb(139,0,0)
+-  dark_salmon = 0xE9967A,              // rgb(233,150,122)
+-  dark_sea_green = 0x8FBC8F,           // rgb(143,188,143)
+-  dark_slate_blue = 0x483D8B,          // rgb(72,61,139)
+-  dark_slate_gray = 0x2F4F4F,          // rgb(47,79,79)
+-  dark_turquoise = 0x00CED1,           // rgb(0,206,209)
+-  dark_violet = 0x9400D3,              // rgb(148,0,211)
+-  deep_pink = 0xFF1493,                // rgb(255,20,147)
+-  deep_sky_blue = 0x00BFFF,            // rgb(0,191,255)
+-  dim_gray = 0x696969,                 // rgb(105,105,105)
+-  dodger_blue = 0x1E90FF,              // rgb(30,144,255)
+-  fire_brick = 0xB22222,               // rgb(178,34,34)
+-  floral_white = 0xFFFAF0,             // rgb(255,250,240)
+-  forest_green = 0x228B22,             // rgb(34,139,34)
+-  fuchsia = 0xFF00FF,                  // rgb(255,0,255)
+-  gainsboro = 0xDCDCDC,                // rgb(220,220,220)
+-  ghost_white = 0xF8F8FF,              // rgb(248,248,255)
+-  gold = 0xFFD700,                     // rgb(255,215,0)
+-  golden_rod = 0xDAA520,               // rgb(218,165,32)
+-  gray = 0x808080,                     // rgb(128,128,128)
+-  green = 0x008000,                    // rgb(0,128,0)
+-  green_yellow = 0xADFF2F,             // rgb(173,255,47)
+-  honey_dew = 0xF0FFF0,                // rgb(240,255,240)
+-  hot_pink = 0xFF69B4,                 // rgb(255,105,180)
+-  indian_red = 0xCD5C5C,               // rgb(205,92,92)
+-  indigo = 0x4B0082,                   // rgb(75,0,130)
+-  ivory = 0xFFFFF0,                    // rgb(255,255,240)
+-  khaki = 0xF0E68C,                    // rgb(240,230,140)
+-  lavender = 0xE6E6FA,                 // rgb(230,230,250)
+-  lavender_blush = 0xFFF0F5,           // rgb(255,240,245)
+-  lawn_green = 0x7CFC00,               // rgb(124,252,0)
+-  lemon_chiffon = 0xFFFACD,            // rgb(255,250,205)
+-  light_blue = 0xADD8E6,               // rgb(173,216,230)
+-  light_coral = 0xF08080,              // rgb(240,128,128)
+-  light_cyan = 0xE0FFFF,               // rgb(224,255,255)
+-  light_golden_rod_yellow = 0xFAFAD2,  // rgb(250,250,210)
+-  light_gray = 0xD3D3D3,               // rgb(211,211,211)
+-  light_green = 0x90EE90,              // rgb(144,238,144)
+-  light_pink = 0xFFB6C1,               // rgb(255,182,193)
+-  light_salmon = 0xFFA07A,             // rgb(255,160,122)
+-  light_sea_green = 0x20B2AA,          // rgb(32,178,170)
+-  light_sky_blue = 0x87CEFA,           // rgb(135,206,250)
+-  light_slate_gray = 0x778899,         // rgb(119,136,153)
+-  light_steel_blue = 0xB0C4DE,         // rgb(176,196,222)
+-  light_yellow = 0xFFFFE0,             // rgb(255,255,224)
+-  lime = 0x00FF00,                     // rgb(0,255,0)
+-  lime_green = 0x32CD32,               // rgb(50,205,50)
+-  linen = 0xFAF0E6,                    // rgb(250,240,230)
+-  magenta = 0xFF00FF,                  // rgb(255,0,255)
+-  maroon = 0x800000,                   // rgb(128,0,0)
+-  medium_aquamarine = 0x66CDAA,        // rgb(102,205,170)
+-  medium_blue = 0x0000CD,              // rgb(0,0,205)
+-  medium_orchid = 0xBA55D3,            // rgb(186,85,211)
+-  medium_purple = 0x9370DB,            // rgb(147,112,219)
+-  medium_sea_green = 0x3CB371,         // rgb(60,179,113)
+-  medium_slate_blue = 0x7B68EE,        // rgb(123,104,238)
+-  medium_spring_green = 0x00FA9A,      // rgb(0,250,154)
+-  medium_turquoise = 0x48D1CC,         // rgb(72,209,204)
+-  medium_violet_red = 0xC71585,        // rgb(199,21,133)
+-  midnight_blue = 0x191970,            // rgb(25,25,112)
+-  mint_cream = 0xF5FFFA,               // rgb(245,255,250)
+-  misty_rose = 0xFFE4E1,               // rgb(255,228,225)
+-  moccasin = 0xFFE4B5,                 // rgb(255,228,181)
+-  navajo_white = 0xFFDEAD,             // rgb(255,222,173)
+-  navy = 0x000080,                     // rgb(0,0,128)
+-  old_lace = 0xFDF5E6,                 // rgb(253,245,230)
+-  olive = 0x808000,                    // rgb(128,128,0)
+-  olive_drab = 0x6B8E23,               // rgb(107,142,35)
+-  orange = 0xFFA500,                   // rgb(255,165,0)
+-  orange_red = 0xFF4500,               // rgb(255,69,0)
+-  orchid = 0xDA70D6,                   // rgb(218,112,214)
+-  pale_golden_rod = 0xEEE8AA,          // rgb(238,232,170)
+-  pale_green = 0x98FB98,               // rgb(152,251,152)
+-  pale_turquoise = 0xAFEEEE,           // rgb(175,238,238)
+-  pale_violet_red = 0xDB7093,          // rgb(219,112,147)
+-  papaya_whip = 0xFFEFD5,              // rgb(255,239,213)
+-  peach_puff = 0xFFDAB9,               // rgb(255,218,185)
+-  peru = 0xCD853F,                     // rgb(205,133,63)
+-  pink = 0xFFC0CB,                     // rgb(255,192,203)
+-  plum = 0xDDA0DD,                     // rgb(221,160,221)
+-  powder_blue = 0xB0E0E6,              // rgb(176,224,230)
+-  purple = 0x800080,                   // rgb(128,0,128)
+-  rebecca_purple = 0x663399,           // rgb(102,51,153)
+-  red = 0xFF0000,                      // rgb(255,0,0)
+-  rosy_brown = 0xBC8F8F,               // rgb(188,143,143)
+-  royal_blue = 0x4169E1,               // rgb(65,105,225)
+-  saddle_brown = 0x8B4513,             // rgb(139,69,19)
+-  salmon = 0xFA8072,                   // rgb(250,128,114)
+-  sandy_brown = 0xF4A460,              // rgb(244,164,96)
+-  sea_green = 0x2E8B57,                // rgb(46,139,87)
+-  sea_shell = 0xFFF5EE,                // rgb(255,245,238)
+-  sienna = 0xA0522D,                   // rgb(160,82,45)
+-  silver = 0xC0C0C0,                   // rgb(192,192,192)
+-  sky_blue = 0x87CEEB,                 // rgb(135,206,235)
+-  slate_blue = 0x6A5ACD,               // rgb(106,90,205)
+-  slate_gray = 0x708090,               // rgb(112,128,144)
+-  snow = 0xFFFAFA,                     // rgb(255,250,250)
+-  spring_green = 0x00FF7F,             // rgb(0,255,127)
+-  steel_blue = 0x4682B4,               // rgb(70,130,180)
+-  tan = 0xD2B48C,                      // rgb(210,180,140)
+-  teal = 0x008080,                     // rgb(0,128,128)
+-  thistle = 0xD8BFD8,                  // rgb(216,191,216)
+-  tomato = 0xFF6347,                   // rgb(255,99,71)
+-  turquoise = 0x40E0D0,                // rgb(64,224,208)
+-  violet = 0xEE82EE,                   // rgb(238,130,238)
+-  wheat = 0xF5DEB3,                    // rgb(245,222,179)
+-  white = 0xFFFFFF,                    // rgb(255,255,255)
+-  white_smoke = 0xF5F5F5,              // rgb(245,245,245)
+-  yellow = 0xFFFF00,                   // rgb(255,255,0)
+-  yellow_green = 0x9ACD32              // rgb(154,205,50)
+-};                                     // enum class color
+-
+-enum class terminal_color : uint8_t {
+-  black = 30,
+-  red,
+-  green,
+-  yellow,
+-  blue,
+-  magenta,
+-  cyan,
+-  white,
+-  bright_black = 90,
+-  bright_red,
+-  bright_green,
+-  bright_yellow,
+-  bright_blue,
+-  bright_magenta,
+-  bright_cyan,
+-  bright_white
+-};
+-
+-enum class emphasis : uint8_t {
+-  bold = 1,
+-  faint = 1 << 1,
+-  italic = 1 << 2,
+-  underline = 1 << 3,
+-  blink = 1 << 4,
+-  reverse = 1 << 5,
+-  conceal = 1 << 6,
+-  strikethrough = 1 << 7,
+-};
+-
+-// rgb is a struct for red, green and blue colors.
+-// Using the name "rgb" makes some editors show the color in a tooltip.
+-struct rgb {
+-  FMT_CONSTEXPR rgb() : r(0), g(0), b(0) {}
+-  FMT_CONSTEXPR rgb(uint8_t r_, uint8_t g_, uint8_t b_) : r(r_), g(g_), b(b_) {}
+-  FMT_CONSTEXPR rgb(uint32_t hex)
+-      : r((hex >> 16) & 0xFF), g((hex >> 8) & 0xFF), b(hex & 0xFF) {}
+-  FMT_CONSTEXPR rgb(color hex)
+-      : r((uint32_t(hex) >> 16) & 0xFF),
+-        g((uint32_t(hex) >> 8) & 0xFF),
+-        b(uint32_t(hex) & 0xFF) {}
+-  uint8_t r;
+-  uint8_t g;
+-  uint8_t b;
+-};
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// color is a struct of either a rgb color or a terminal color.
+-struct color_type {
+-  FMT_CONSTEXPR color_type() FMT_NOEXCEPT : is_rgb(), value{} {}
+-  FMT_CONSTEXPR color_type(color rgb_color) FMT_NOEXCEPT : is_rgb(true),
+-                                                           value{} {
+-    value.rgb_color = static_cast<uint32_t>(rgb_color);
+-  }
+-  FMT_CONSTEXPR color_type(rgb rgb_color) FMT_NOEXCEPT : is_rgb(true), value{} {
+-    value.rgb_color = (static_cast<uint32_t>(rgb_color.r) << 16) |
+-                      (static_cast<uint32_t>(rgb_color.g) << 8) | rgb_color.b;
+-  }
+-  FMT_CONSTEXPR color_type(terminal_color term_color) FMT_NOEXCEPT : is_rgb(),
+-                                                                     value{} {
+-    value.term_color = static_cast<uint8_t>(term_color);
+-  }
+-  bool is_rgb;
+-  union color_union {
+-    uint8_t term_color;
+-    uint32_t rgb_color;
+-  } value;
+-};
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-/** A text style consisting of foreground and background colors and emphasis. */
+-class text_style {
+- public:
+-  FMT_CONSTEXPR text_style(emphasis em = emphasis()) FMT_NOEXCEPT
+-      : set_foreground_color(),
+-        set_background_color(),
+-        ems(em) {}
+-
+-  FMT_CONSTEXPR text_style& operator|=(const text_style& rhs) {
+-    if (!set_foreground_color) {
+-      set_foreground_color = rhs.set_foreground_color;
+-      foreground_color = rhs.foreground_color;
+-    } else if (rhs.set_foreground_color) {
+-      if (!foreground_color.is_rgb || !rhs.foreground_color.is_rgb)
+-        FMT_THROW(format_error("can't OR a terminal color"));
+-      foreground_color.value.rgb_color |= rhs.foreground_color.value.rgb_color;
+-    }
+-
+-    if (!set_background_color) {
+-      set_background_color = rhs.set_background_color;
+-      background_color = rhs.background_color;
+-    } else if (rhs.set_background_color) {
+-      if (!background_color.is_rgb || !rhs.background_color.is_rgb)
+-        FMT_THROW(format_error("can't OR a terminal color"));
+-      background_color.value.rgb_color |= rhs.background_color.value.rgb_color;
+-    }
+-
+-    ems = static_cast<emphasis>(static_cast<uint8_t>(ems) |
+-                                static_cast<uint8_t>(rhs.ems));
+-    return *this;
+-  }
+-
+-  friend FMT_CONSTEXPR text_style operator|(text_style lhs,
+-                                            const text_style& rhs) {
+-    return lhs |= rhs;
+-  }
+-
+-  FMT_DEPRECATED_NONMSVC FMT_CONSTEXPR text_style& operator&=(
+-      const text_style& rhs) {
+-    return and_assign(rhs);
+-  }
+-
+-  FMT_DEPRECATED_NONMSVC friend FMT_CONSTEXPR text_style
+-  operator&(text_style lhs, const text_style& rhs) {
+-    return lhs.and_assign(rhs);
+-  }
+-
+-  FMT_CONSTEXPR bool has_foreground() const FMT_NOEXCEPT {
+-    return set_foreground_color;
+-  }
+-  FMT_CONSTEXPR bool has_background() const FMT_NOEXCEPT {
+-    return set_background_color;
+-  }
+-  FMT_CONSTEXPR bool has_emphasis() const FMT_NOEXCEPT {
+-    return static_cast<uint8_t>(ems) != 0;
+-  }
+-  FMT_CONSTEXPR detail::color_type get_foreground() const FMT_NOEXCEPT {
+-    FMT_ASSERT(has_foreground(), "no foreground specified for this style");
+-    return foreground_color;
+-  }
+-  FMT_CONSTEXPR detail::color_type get_background() const FMT_NOEXCEPT {
+-    FMT_ASSERT(has_background(), "no background specified for this style");
+-    return background_color;
+-  }
+-  FMT_CONSTEXPR emphasis get_emphasis() const FMT_NOEXCEPT {
+-    FMT_ASSERT(has_emphasis(), "no emphasis specified for this style");
+-    return ems;
+-  }
+-
+- private:
+-  FMT_CONSTEXPR text_style(bool is_foreground,
+-                           detail::color_type text_color) FMT_NOEXCEPT
+-      : set_foreground_color(),
+-        set_background_color(),
+-        ems() {
+-    if (is_foreground) {
+-      foreground_color = text_color;
+-      set_foreground_color = true;
+-    } else {
+-      background_color = text_color;
+-      set_background_color = true;
+-    }
+-  }
+-
+-  // DEPRECATED!
+-  FMT_CONSTEXPR text_style& and_assign(const text_style& rhs) {
+-    if (!set_foreground_color) {
+-      set_foreground_color = rhs.set_foreground_color;
+-      foreground_color = rhs.foreground_color;
+-    } else if (rhs.set_foreground_color) {
+-      if (!foreground_color.is_rgb || !rhs.foreground_color.is_rgb)
+-        FMT_THROW(format_error("can't AND a terminal color"));
+-      foreground_color.value.rgb_color &= rhs.foreground_color.value.rgb_color;
+-    }
+-
+-    if (!set_background_color) {
+-      set_background_color = rhs.set_background_color;
+-      background_color = rhs.background_color;
+-    } else if (rhs.set_background_color) {
+-      if (!background_color.is_rgb || !rhs.background_color.is_rgb)
+-        FMT_THROW(format_error("can't AND a terminal color"));
+-      background_color.value.rgb_color &= rhs.background_color.value.rgb_color;
+-    }
+-
+-    ems = static_cast<emphasis>(static_cast<uint8_t>(ems) &
+-                                static_cast<uint8_t>(rhs.ems));
+-    return *this;
+-  }
+-
+-  friend FMT_CONSTEXPR_DECL text_style fg(detail::color_type foreground)
+-      FMT_NOEXCEPT;
+-
+-  friend FMT_CONSTEXPR_DECL text_style bg(detail::color_type background)
+-      FMT_NOEXCEPT;
+-
+-  detail::color_type foreground_color;
+-  detail::color_type background_color;
+-  bool set_foreground_color;
+-  bool set_background_color;
+-  emphasis ems;
+-};
+-
+-/** Creates a text style from the foreground (text) color. */
+-FMT_CONSTEXPR inline text_style fg(detail::color_type foreground) FMT_NOEXCEPT {
+-  return text_style(true, foreground);
+-}
+-
+-/** Creates a text style from the background color. */
+-FMT_CONSTEXPR inline text_style bg(detail::color_type background) FMT_NOEXCEPT {
+-  return text_style(false, background);
+-}
+-
+-FMT_CONSTEXPR inline text_style operator|(emphasis lhs,
+-                                          emphasis rhs) FMT_NOEXCEPT {
+-  return text_style(lhs) | rhs;
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename Char> struct ansi_color_escape {
+-  FMT_CONSTEXPR ansi_color_escape(detail::color_type text_color,
+-                                  const char* esc) FMT_NOEXCEPT {
+-    // If we have a terminal color, we need to output another escape code
+-    // sequence.
+-    if (!text_color.is_rgb) {
+-      bool is_background = esc == string_view("\x1b[48;2;");
+-      uint32_t value = text_color.value.term_color;
+-      // Background ASCII codes are the same as the foreground ones but with
+-      // 10 more.
+-      if (is_background) value += 10u;
+-
+-      size_t index = 0;
+-      buffer[index++] = static_cast<Char>('\x1b');
+-      buffer[index++] = static_cast<Char>('[');
+-
+-      if (value >= 100u) {
+-        buffer[index++] = static_cast<Char>('1');
+-        value %= 100u;
+-      }
+-      buffer[index++] = static_cast<Char>('0' + value / 10u);
+-      buffer[index++] = static_cast<Char>('0' + value % 10u);
+-
+-      buffer[index++] = static_cast<Char>('m');
+-      buffer[index++] = static_cast<Char>('\0');
+-      return;
+-    }
+-
+-    for (int i = 0; i < 7; i++) {
+-      buffer[i] = static_cast<Char>(esc[i]);
+-    }
+-    rgb color(text_color.value.rgb_color);
+-    to_esc(color.r, buffer + 7, ';');
+-    to_esc(color.g, buffer + 11, ';');
+-    to_esc(color.b, buffer + 15, 'm');
+-    buffer[19] = static_cast<Char>(0);
+-  }
+-  FMT_CONSTEXPR ansi_color_escape(emphasis em) FMT_NOEXCEPT {
+-    uint8_t em_codes[num_emphases] = {};
+-    if (has_emphasis(em, emphasis::bold)) em_codes[0] = 1;
+-    if (has_emphasis(em, emphasis::faint)) em_codes[1] = 2;
+-    if (has_emphasis(em, emphasis::italic)) em_codes[2] = 3;
+-    if (has_emphasis(em, emphasis::underline)) em_codes[3] = 4;
+-    if (has_emphasis(em, emphasis::blink)) em_codes[4] = 5;
+-    if (has_emphasis(em, emphasis::reverse)) em_codes[5] = 7;
+-    if (has_emphasis(em, emphasis::conceal)) em_codes[6] = 8;
+-    if (has_emphasis(em, emphasis::strikethrough)) em_codes[7] = 9;
+-
+-    size_t index = 0;
+-    for (size_t i = 0; i < num_emphases; ++i) {
+-      if (!em_codes[i]) continue;
+-      buffer[index++] = static_cast<Char>('\x1b');
+-      buffer[index++] = static_cast<Char>('[');
+-      buffer[index++] = static_cast<Char>('0' + em_codes[i]);
+-      buffer[index++] = static_cast<Char>('m');
+-    }
+-    buffer[index++] = static_cast<Char>(0);
+-  }
+-  FMT_CONSTEXPR operator const Char*() const FMT_NOEXCEPT { return buffer; }
+-
+-  FMT_CONSTEXPR const Char* begin() const FMT_NOEXCEPT { return buffer; }
+-  FMT_CONSTEXPR_CHAR_TRAITS const Char* end() const FMT_NOEXCEPT {
+-    return buffer + std::char_traits<Char>::length(buffer);
+-  }
+-
+- private:
+-  static constexpr size_t num_emphases = 8;
+-  Char buffer[7u + 3u * num_emphases + 1u];
+-
+-  static FMT_CONSTEXPR void to_esc(uint8_t c, Char* out,
+-                                   char delimiter) FMT_NOEXCEPT {
+-    out[0] = static_cast<Char>('0' + c / 100);
+-    out[1] = static_cast<Char>('0' + c / 10 % 10);
+-    out[2] = static_cast<Char>('0' + c % 10);
+-    out[3] = static_cast<Char>(delimiter);
+-  }
+-  static FMT_CONSTEXPR bool has_emphasis(emphasis em,
+-                                         emphasis mask) FMT_NOEXCEPT {
+-    return static_cast<uint8_t>(em) & static_cast<uint8_t>(mask);
+-  }
+-};
+-
+-template <typename Char>
+-FMT_CONSTEXPR ansi_color_escape<Char> make_foreground_color(
+-    detail::color_type foreground) FMT_NOEXCEPT {
+-  return ansi_color_escape<Char>(foreground, "\x1b[38;2;");
+-}
+-
+-template <typename Char>
+-FMT_CONSTEXPR ansi_color_escape<Char> make_background_color(
+-    detail::color_type background) FMT_NOEXCEPT {
+-  return ansi_color_escape<Char>(background, "\x1b[48;2;");
+-}
+-
+-template <typename Char>
+-FMT_CONSTEXPR ansi_color_escape<Char> make_emphasis(emphasis em) FMT_NOEXCEPT {
+-  return ansi_color_escape<Char>(em);
+-}
+-
+-template <typename Char>
+-inline void fputs(const Char* chars, FILE* stream) FMT_NOEXCEPT {
+-  std::fputs(chars, stream);
+-}
+-
+-template <>
+-inline void fputs<wchar_t>(const wchar_t* chars, FILE* stream) FMT_NOEXCEPT {
+-  std::fputws(chars, stream);
+-}
+-
+-template <typename Char> inline void reset_color(FILE* stream) FMT_NOEXCEPT {
+-  fputs("\x1b[0m", stream);
+-}
+-
+-template <> inline void reset_color<wchar_t>(FILE* stream) FMT_NOEXCEPT {
+-  fputs(L"\x1b[0m", stream);
+-}
+-
+-template <typename Char>
+-inline void reset_color(buffer<Char>& buffer) FMT_NOEXCEPT {
+-  auto reset_color = string_view("\x1b[0m");
+-  buffer.append(reset_color.begin(), reset_color.end());
+-}
+-
+-template <typename Char>
+-void vformat_to(buffer<Char>& buf, const text_style& ts,
+-                basic_string_view<Char> format_str,
+-                basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  bool has_style = false;
+-  if (ts.has_emphasis()) {
+-    has_style = true;
+-    auto emphasis = detail::make_emphasis<Char>(ts.get_emphasis());
+-    buf.append(emphasis.begin(), emphasis.end());
+-  }
+-  if (ts.has_foreground()) {
+-    has_style = true;
+-    auto foreground = detail::make_foreground_color<Char>(ts.get_foreground());
+-    buf.append(foreground.begin(), foreground.end());
+-  }
+-  if (ts.has_background()) {
+-    has_style = true;
+-    auto background = detail::make_background_color<Char>(ts.get_background());
+-    buf.append(background.begin(), background.end());
+-  }
+-  detail::vformat_to(buf, format_str, args, {});
+-  if (has_style) detail::reset_color<Char>(buf);
+-}
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-template <typename S, typename Char = char_t<S>>
+-void vprint(std::FILE* f, const text_style& ts, const S& format,
+-            basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  basic_memory_buffer<Char> buf;
+-  detail::vformat_to(buf, ts, to_string_view(format), args);
+-  buf.push_back(Char(0));
+-  detail::fputs(buf.data(), f);
+-}
+-
+-/**
+-  \rst
+-  Formats a string and prints it to the specified file stream using ANSI
+-  escape sequences to specify text formatting.
+-
+-  **Example**::
+-
+-    fmt::print(fmt::emphasis::bold | fg(fmt::color::red),
+-               "Elapsed time: {0:.2f} seconds", 1.23);
+-  \endrst
+- */
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_string<S>::value)>
+-void print(std::FILE* f, const text_style& ts, const S& format_str,
+-           const Args&... args) {
+-  vprint(f, ts, format_str,
+-         fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-
+-/**
+-  \rst
+-  Formats a string and prints it to stdout using ANSI escape sequences to
+-  specify text formatting.
+-
+-  **Example**::
+-
+-    fmt::print(fmt::emphasis::bold | fg(fmt::color::red),
+-               "Elapsed time: {0:.2f} seconds", 1.23);
+-  \endrst
+- */
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_string<S>::value)>
+-void print(const text_style& ts, const S& format_str, const Args&... args) {
+-  return print(stdout, ts, format_str, args...);
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-inline std::basic_string<Char> vformat(
+-    const text_style& ts, const S& format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  basic_memory_buffer<Char> buf;
+-  detail::vformat_to(buf, ts, to_string_view(format_str), args);
+-  return fmt::to_string(buf);
+-}
+-
+-/**
+-  \rst
+-  Formats arguments and returns the result as a string using ANSI
+-  escape sequences to specify text formatting.
+-
+-  **Example**::
+-
+-    #include <fmt/color.h>
+-    std::string message = fmt::format(fmt::emphasis::bold | fg(fmt::color::red),
+-                                      "The answer is {}", 42);
+-  \endrst
+-*/
+-template <typename S, typename... Args, typename Char = char_t<S>>
+-inline std::basic_string<Char> format(const text_style& ts, const S& format_str,
+-                                      const Args&... args) {
+-  return fmt::vformat(ts, to_string_view(format_str),
+-                      fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-
+-/**
+-  Formats a string with the given text_style and writes the output to ``out``.
+- */
+-template <typename OutputIt, typename Char,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value)>
+-OutputIt vformat_to(
+-    OutputIt out, const text_style& ts, basic_string_view<Char> format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  auto&& buf = detail::get_buffer<Char>(out);
+-  detail::vformat_to(buf, ts, format_str, args);
+-  return detail::get_iterator(buf);
+-}
+-
+-/**
+-  \rst
+-  Formats arguments with the given text_style, writes the result to the output
+-  iterator ``out`` and returns the iterator past the end of the output range.
+-
+-  **Example**::
+-
+-    std::vector<char> out;
+-    fmt::format_to(std::back_inserter(out),
+-                   fmt::emphasis::bold | fg(fmt::color::red), "{}", 42);
+-  \endrst
+-*/
+-template <typename OutputIt, typename S, typename... Args,
+-          bool enable = detail::is_output_iterator<OutputIt, char_t<S>>::value&&
+-              detail::is_string<S>::value>
+-inline auto format_to(OutputIt out, const text_style& ts, const S& format_str,
+-                      Args&&... args) ->
+-    typename std::enable_if<enable, OutputIt>::type {
+-  return vformat_to(out, ts, to_string_view(format_str),
+-                    fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_COLOR_H_
+diff --git a/include/dpp/fmt/compile.h b/include/dpp/fmt/compile.h
+deleted file mode 100644
+index 1dba3dd..0000000
+--- a/include/dpp/fmt/compile.h
++++ /dev/null
+@@ -1,642 +0,0 @@
+-// Formatting library for C++ - experimental format string compilation
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich and fmt contributors
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_COMPILE_H_
+-#define FMT_COMPILE_H_
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-
+-// An output iterator that counts the number of objects written to it and
+-// discards them.
+-class counting_iterator {
+- private:
+-  size_t count_;
+-
+- public:
+-  using iterator_category = std::output_iterator_tag;
+-  using difference_type = std::ptrdiff_t;
+-  using pointer = void;
+-  using reference = void;
+-  using _Unchecked_type = counting_iterator;  // Mark iterator as checked.
+-
+-  struct value_type {
+-    template <typename T> void operator=(const T&) {}
+-  };
+-
+-  counting_iterator() : count_(0) {}
+-
+-  size_t count() const { return count_; }
+-
+-  counting_iterator& operator++() {
+-    ++count_;
+-    return *this;
+-  }
+-  counting_iterator operator++(int) {
+-    auto it = *this;
+-    ++*this;
+-    return it;
+-  }
+-
+-  friend counting_iterator operator+(counting_iterator it, difference_type n) {
+-    it.count_ += static_cast<size_t>(n);
+-    return it;
+-  }
+-
+-  value_type operator*() const { return {}; }
+-};
+-
+-template <typename Char, typename InputIt>
+-inline counting_iterator copy_str(InputIt begin, InputIt end,
+-                                  counting_iterator it) {
+-  return it + (end - begin);
+-}
+-
+-template <typename OutputIt> class truncating_iterator_base {
+- protected:
+-  OutputIt out_;
+-  size_t limit_;
+-  size_t count_ = 0;
+-
+-  truncating_iterator_base() : out_(), limit_(0) {}
+-
+-  truncating_iterator_base(OutputIt out, size_t limit)
+-      : out_(out), limit_(limit) {}
+-
+- public:
+-  using iterator_category = std::output_iterator_tag;
+-  using value_type = typename std::iterator_traits<OutputIt>::value_type;
+-  using difference_type = std::ptrdiff_t;
+-  using pointer = void;
+-  using reference = void;
+-  using _Unchecked_type =
+-      truncating_iterator_base;  // Mark iterator as checked.
+-
+-  OutputIt base() const { return out_; }
+-  size_t count() const { return count_; }
+-};
+-
+-// An output iterator that truncates the output and counts the number of objects
+-// written to it.
+-template <typename OutputIt,
+-          typename Enable = typename std::is_void<
+-              typename std::iterator_traits<OutputIt>::value_type>::type>
+-class truncating_iterator;
+-
+-template <typename OutputIt>
+-class truncating_iterator<OutputIt, std::false_type>
+-    : public truncating_iterator_base<OutputIt> {
+-  mutable typename truncating_iterator_base<OutputIt>::value_type blackhole_;
+-
+- public:
+-  using value_type = typename truncating_iterator_base<OutputIt>::value_type;
+-
+-  truncating_iterator() = default;
+-
+-  truncating_iterator(OutputIt out, size_t limit)
+-      : truncating_iterator_base<OutputIt>(out, limit) {}
+-
+-  truncating_iterator& operator++() {
+-    if (this->count_++ < this->limit_) ++this->out_;
+-    return *this;
+-  }
+-
+-  truncating_iterator operator++(int) {
+-    auto it = *this;
+-    ++*this;
+-    return it;
+-  }
+-
+-  value_type& operator*() const {
+-    return this->count_ < this->limit_ ? *this->out_ : blackhole_;
+-  }
+-};
+-
+-template <typename OutputIt>
+-class truncating_iterator<OutputIt, std::true_type>
+-    : public truncating_iterator_base<OutputIt> {
+- public:
+-  truncating_iterator() = default;
+-
+-  truncating_iterator(OutputIt out, size_t limit)
+-      : truncating_iterator_base<OutputIt>(out, limit) {}
+-
+-  template <typename T> truncating_iterator& operator=(T val) {
+-    if (this->count_++ < this->limit_) *this->out_++ = val;
+-    return *this;
+-  }
+-
+-  truncating_iterator& operator++() { return *this; }
+-  truncating_iterator& operator++(int) { return *this; }
+-  truncating_iterator& operator*() { return *this; }
+-};
+-
+-// A compile-time string which is compiled into fast formatting code.
+-class compiled_string {};
+-
+-template <typename S>
+-struct is_compiled_string : std::is_base_of<compiled_string, S> {};
+-
+-/**
+-  \rst
+-  Converts a string literal *s* into a format string that will be parsed at
+-  compile time and converted into efficient formatting code. Requires C++17
+-  ``constexpr if`` compiler support.
+-
+-  **Example**::
+-
+-    // Converts 42 into std::string using the most efficient method and no
+-    // runtime format string processing.
+-    std::string s = fmt::format(FMT_COMPILE("{}"), 42);
+-  \endrst
+- */
+-#if defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
+-#  define FMT_COMPILE(s) \
+-    FMT_STRING_IMPL(s, fmt::detail::compiled_string, explicit)
+-#else
+-#  define FMT_COMPILE(s) FMT_STRING(s)
+-#endif
+-
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct udl_compiled_string : compiled_string {
+-  using char_type = Char;
+-  constexpr operator basic_string_view<char_type>() const {
+-    return {Str.data, N - 1};
+-  }
+-};
+-#endif
+-
+-template <typename T, typename... Tail>
+-const T& first(const T& value, const Tail&...) {
+-  return value;
+-}
+-
+-#if defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
+-template <typename... Args> struct type_list {};
+-
+-// Returns a reference to the argument at index N from [first, rest...].
+-template <int N, typename T, typename... Args>
+-constexpr const auto& get([[maybe_unused]] const T& first,
+-                          [[maybe_unused]] const Args&... rest) {
+-  static_assert(N < 1 + sizeof...(Args), "index is out of bounds");
+-  if constexpr (N == 0)
+-    return first;
+-  else
+-    return detail::get<N - 1>(rest...);
+-}
+-
+-template <typename Char, typename... Args>
+-constexpr int get_arg_index_by_name(basic_string_view<Char> name,
+-                                    type_list<Args...>) {
+-  return get_arg_index_by_name<Args...>(name);
+-}
+-
+-template <int N, typename> struct get_type_impl;
+-
+-template <int N, typename... Args> struct get_type_impl<N, type_list<Args...>> {
+-  using type =
+-      remove_cvref_t<decltype(detail::get<N>(std::declval<Args>()...))>;
+-};
+-
+-template <int N, typename T>
+-using get_type = typename get_type_impl<N, T>::type;
+-
+-template <typename T> struct is_compiled_format : std::false_type {};
+-
+-template <typename Char> struct text {
+-  basic_string_view<Char> data;
+-  using char_type = Char;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&...) const {
+-    return write<Char>(out, data);
+-  }
+-};
+-
+-template <typename Char>
+-struct is_compiled_format<text<Char>> : std::true_type {};
+-
+-template <typename Char>
+-constexpr text<Char> make_text(basic_string_view<Char> s, size_t pos,
+-                               size_t size) {
+-  return {{&s[pos], size}};
+-}
+-
+-template <typename Char> struct code_unit {
+-  Char value;
+-  using char_type = Char;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&...) const {
+-    return write<Char>(out, value);
+-  }
+-};
+-
+-// This ensures that the argument type is convertible to `const T&`.
+-template <typename T, int N, typename... Args>
+-constexpr const T& get_arg_checked(const Args&... args) {
+-  const auto& arg = detail::get<N>(args...);
+-  if constexpr (detail::is_named_arg<remove_cvref_t<decltype(arg)>>()) {
+-    return arg.value;
+-  } else {
+-    return arg;
+-  }
+-}
+-
+-template <typename Char>
+-struct is_compiled_format<code_unit<Char>> : std::true_type {};
+-
+-// A replacement field that refers to argument N.
+-template <typename Char, typename T, int N> struct field {
+-  using char_type = Char;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&... args) const {
+-    return write<Char>(out, get_arg_checked<T, N>(args...));
+-  }
+-};
+-
+-template <typename Char, typename T, int N>
+-struct is_compiled_format<field<Char, T, N>> : std::true_type {};
+-
+-// A replacement field that refers to argument with name.
+-template <typename Char> struct runtime_named_field {
+-  using char_type = Char;
+-  basic_string_view<Char> name;
+-
+-  template <typename OutputIt, typename T>
+-  constexpr static bool try_format_argument(
+-      OutputIt& out,
+-      // [[maybe_unused]] due to unused-but-set-parameter warning in GCC 7,8,9
+-      [[maybe_unused]] basic_string_view<Char> arg_name, const T& arg) {
+-    if constexpr (is_named_arg<typename std::remove_cv<T>::type>::value) {
+-      if (arg_name == arg.name) {
+-        out = write<Char>(out, arg.value);
+-        return true;
+-      }
+-    }
+-    return false;
+-  }
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&... args) const {
+-    bool found = (try_format_argument(out, name, args) || ...);
+-    if (!found) {
+-      FMT_THROW(format_error("argument with specified name is not found"));
+-    }
+-    return out;
+-  }
+-};
+-
+-template <typename Char>
+-struct is_compiled_format<runtime_named_field<Char>> : std::true_type {};
+-
+-// A replacement field that refers to argument N and has format specifiers.
+-template <typename Char, typename T, int N> struct spec_field {
+-  using char_type = Char;
+-  formatter<T, Char> fmt;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr FMT_INLINE OutputIt format(OutputIt out,
+-                                       const Args&... args) const {
+-    const auto& vargs =
+-        fmt::make_format_args<basic_format_context<OutputIt, Char>>(args...);
+-    basic_format_context<OutputIt, Char> ctx(out, vargs);
+-    return fmt.format(get_arg_checked<T, N>(args...), ctx);
+-  }
+-};
+-
+-template <typename Char, typename T, int N>
+-struct is_compiled_format<spec_field<Char, T, N>> : std::true_type {};
+-
+-template <typename L, typename R> struct concat {
+-  L lhs;
+-  R rhs;
+-  using char_type = typename L::char_type;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&... args) const {
+-    out = lhs.format(out, args...);
+-    return rhs.format(out, args...);
+-  }
+-};
+-
+-template <typename L, typename R>
+-struct is_compiled_format<concat<L, R>> : std::true_type {};
+-
+-template <typename L, typename R>
+-constexpr concat<L, R> make_concat(L lhs, R rhs) {
+-  return {lhs, rhs};
+-}
+-
+-struct unknown_format {};
+-
+-template <typename Char>
+-constexpr size_t parse_text(basic_string_view<Char> str, size_t pos) {
+-  for (size_t size = str.size(); pos != size; ++pos) {
+-    if (str[pos] == '{' || str[pos] == '}') break;
+-  }
+-  return pos;
+-}
+-
+-template <typename Args, size_t POS, int ID, typename S>
+-constexpr auto compile_format_string(S format_str);
+-
+-template <typename Args, size_t POS, int ID, typename T, typename S>
+-constexpr auto parse_tail(T head, S format_str) {
+-  if constexpr (POS !=
+-                basic_string_view<typename S::char_type>(format_str).size()) {
+-    constexpr auto tail = compile_format_string<Args, POS, ID>(format_str);
+-    if constexpr (std::is_same<remove_cvref_t<decltype(tail)>,
+-                               unknown_format>())
+-      return tail;
+-    else
+-      return make_concat(head, tail);
+-  } else {
+-    return head;
+-  }
+-}
+-
+-template <typename T, typename Char> struct parse_specs_result {
+-  formatter<T, Char> fmt;
+-  size_t end;
+-  int next_arg_id;
+-};
+-
+-constexpr int manual_indexing_id = -1;
+-
+-template <typename T, typename Char>
+-constexpr parse_specs_result<T, Char> parse_specs(basic_string_view<Char> str,
+-                                                  size_t pos, int next_arg_id) {
+-  str.remove_prefix(pos);
+-  auto ctx = basic_format_parse_context<Char>(str, {}, next_arg_id);
+-  auto f = formatter<T, Char>();
+-  auto end = f.parse(ctx);
+-  return {f, pos + fmt::detail::to_unsigned(end - str.data()) + 1,
+-          next_arg_id == 0 ? manual_indexing_id : ctx.next_arg_id()};
+-}
+-
+-template <typename Char> struct arg_id_handler {
+-  arg_ref<Char> arg_id;
+-
+-  constexpr int operator()() {
+-    FMT_ASSERT(false, "handler cannot be used with automatic indexing");
+-    return 0;
+-  }
+-  constexpr int operator()(int id) {
+-    arg_id = arg_ref<Char>(id);
+-    return 0;
+-  }
+-  constexpr int operator()(basic_string_view<Char> id) {
+-    arg_id = arg_ref<Char>(id);
+-    return 0;
+-  }
+-
+-  constexpr void on_error(const char* message) {
+-    FMT_THROW(format_error(message));
+-  }
+-};
+-
+-template <typename Char> struct parse_arg_id_result {
+-  arg_ref<Char> arg_id;
+-  const Char* arg_id_end;
+-};
+-
+-template <int ID, typename Char>
+-constexpr auto parse_arg_id(const Char* begin, const Char* end) {
+-  auto handler = arg_id_handler<Char>{arg_ref<Char>{}};
+-  auto arg_id_end = parse_arg_id(begin, end, handler);
+-  return parse_arg_id_result<Char>{handler.arg_id, arg_id_end};
+-}
+-
+-template <typename T, typename Enable = void> struct field_type {
+-  using type = remove_cvref_t<T>;
+-};
+-
+-template <typename T>
+-struct field_type<T, enable_if_t<detail::is_named_arg<T>::value>> {
+-  using type = remove_cvref_t<decltype(T::value)>;
+-};
+-
+-template <typename T, typename Args, size_t END_POS, int ARG_INDEX, int NEXT_ID,
+-          typename S>
+-constexpr auto parse_replacement_field_then_tail(S format_str) {
+-  using char_type = typename S::char_type;
+-  constexpr auto str = basic_string_view<char_type>(format_str);
+-  constexpr char_type c = END_POS != str.size() ? str[END_POS] : char_type();
+-  if constexpr (c == '}') {
+-    return parse_tail<Args, END_POS + 1, NEXT_ID>(
+-        field<char_type, typename field_type<T>::type, ARG_INDEX>(),
+-        format_str);
+-  } else if constexpr (c == ':') {
+-    constexpr auto result = parse_specs<typename field_type<T>::type>(
+-        str, END_POS + 1, NEXT_ID == manual_indexing_id ? 0 : NEXT_ID);
+-    return parse_tail<Args, result.end, result.next_arg_id>(
+-        spec_field<char_type, typename field_type<T>::type, ARG_INDEX>{
+-            result.fmt},
+-        format_str);
+-  }
+-}
+-
+-// Compiles a non-empty format string and returns the compiled representation
+-// or unknown_format() on unrecognized input.
+-template <typename Args, size_t POS, int ID, typename S>
+-constexpr auto compile_format_string(S format_str) {
+-  using char_type = typename S::char_type;
+-  constexpr auto str = basic_string_view<char_type>(format_str);
+-  if constexpr (str[POS] == '{') {
+-    if constexpr (POS + 1 == str.size())
+-      FMT_THROW(format_error("unmatched '{' in format string"));
+-    if constexpr (str[POS + 1] == '{') {
+-      return parse_tail<Args, POS + 2, ID>(make_text(str, POS, 1), format_str);
+-    } else if constexpr (str[POS + 1] == '}' || str[POS + 1] == ':') {
+-      static_assert(ID != manual_indexing_id,
+-                    "cannot switch from manual to automatic argument indexing");
+-      constexpr auto next_id =
+-          ID != manual_indexing_id ? ID + 1 : manual_indexing_id;
+-      return parse_replacement_field_then_tail<get_type<ID, Args>, Args,
+-                                               POS + 1, ID, next_id>(
+-          format_str);
+-    } else {
+-      constexpr auto arg_id_result =
+-          parse_arg_id<ID>(str.data() + POS + 1, str.data() + str.size());
+-      constexpr auto arg_id_end_pos = arg_id_result.arg_id_end - str.data();
+-      constexpr char_type c =
+-          arg_id_end_pos != str.size() ? str[arg_id_end_pos] : char_type();
+-      static_assert(c == '}' || c == ':', "missing '}' in format string");
+-      if constexpr (arg_id_result.arg_id.kind == arg_id_kind::index) {
+-        static_assert(
+-            ID == manual_indexing_id || ID == 0,
+-            "cannot switch from automatic to manual argument indexing");
+-        constexpr auto arg_index = arg_id_result.arg_id.val.index;
+-        return parse_replacement_field_then_tail<get_type<arg_index, Args>,
+-                                                 Args, arg_id_end_pos,
+-                                                 arg_index, manual_indexing_id>(
+-            format_str);
+-      } else if constexpr (arg_id_result.arg_id.kind == arg_id_kind::name) {
+-        constexpr auto arg_index =
+-            get_arg_index_by_name(arg_id_result.arg_id.val.name, Args{});
+-        if constexpr (arg_index != invalid_arg_index) {
+-          constexpr auto next_id =
+-              ID != manual_indexing_id ? ID + 1 : manual_indexing_id;
+-          return parse_replacement_field_then_tail<
+-              decltype(get_type<arg_index, Args>::value), Args, arg_id_end_pos,
+-              arg_index, next_id>(format_str);
+-        } else {
+-          if constexpr (c == '}') {
+-            return parse_tail<Args, arg_id_end_pos + 1, ID>(
+-                runtime_named_field<char_type>{arg_id_result.arg_id.val.name},
+-                format_str);
+-          } else if constexpr (c == ':') {
+-            return unknown_format();  // no type info for specs parsing
+-          }
+-        }
+-      }
+-    }
+-  } else if constexpr (str[POS] == '}') {
+-    if constexpr (POS + 1 == str.size())
+-      FMT_THROW(format_error("unmatched '}' in format string"));
+-    return parse_tail<Args, POS + 2, ID>(make_text(str, POS, 1), format_str);
+-  } else {
+-    constexpr auto end = parse_text(str, POS + 1);
+-    if constexpr (end - POS > 1) {
+-      return parse_tail<Args, end, ID>(make_text(str, POS, end - POS),
+-                                       format_str);
+-    } else {
+-      return parse_tail<Args, end, ID>(code_unit<char_type>{str[POS]},
+-                                       format_str);
+-    }
+-  }
+-}
+-
+-template <typename... Args, typename S,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-constexpr auto compile(S format_str) {
+-  constexpr auto str = basic_string_view<typename S::char_type>(format_str);
+-  if constexpr (str.size() == 0) {
+-    return detail::make_text(str, 0, 0);
+-  } else {
+-    constexpr auto result =
+-        detail::compile_format_string<detail::type_list<Args...>, 0, 0>(
+-            format_str);
+-    return result;
+-  }
+-}
+-#endif  // defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
+-}  // namespace detail
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-#if defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
+-
+-template <typename CompiledFormat, typename... Args,
+-          typename Char = typename CompiledFormat::char_type,
+-          FMT_ENABLE_IF(detail::is_compiled_format<CompiledFormat>::value)>
+-FMT_INLINE std::basic_string<Char> format(const CompiledFormat& cf,
+-                                          const Args&... args) {
+-  auto s = std::basic_string<Char>();
+-  cf.format(std::back_inserter(s), args...);
+-  return s;
+-}
+-
+-template <typename OutputIt, typename CompiledFormat, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_format<CompiledFormat>::value)>
+-constexpr FMT_INLINE OutputIt format_to(OutputIt out, const CompiledFormat& cf,
+-                                        const Args&... args) {
+-  return cf.format(out, args...);
+-}
+-
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-FMT_INLINE std::basic_string<typename S::char_type> format(const S&,
+-                                                           Args&&... args) {
+-  if constexpr (std::is_same<typename S::char_type, char>::value) {
+-    constexpr auto str = basic_string_view<typename S::char_type>(S());
+-    if constexpr (str.size() == 2 && str[0] == '{' && str[1] == '}') {
+-      const auto& first = detail::first(args...);
+-      if constexpr (detail::is_named_arg<
+-                        remove_cvref_t<decltype(first)>>::value) {
+-        return fmt::to_string(first.value);
+-      } else {
+-        return fmt::to_string(first);
+-      }
+-    }
+-  }
+-  constexpr auto compiled = detail::compile<Args...>(S());
+-  if constexpr (std::is_same<remove_cvref_t<decltype(compiled)>,
+-                             detail::unknown_format>()) {
+-    return format(static_cast<basic_string_view<typename S::char_type>>(S()),
+-                  std::forward<Args>(args)...);
+-  } else {
+-    return format(compiled, std::forward<Args>(args)...);
+-  }
+-}
+-
+-template <typename OutputIt, typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-FMT_CONSTEXPR OutputIt format_to(OutputIt out, const S&, Args&&... args) {
+-  constexpr auto compiled = detail::compile<Args...>(S());
+-  if constexpr (std::is_same<remove_cvref_t<decltype(compiled)>,
+-                             detail::unknown_format>()) {
+-    return format_to(out,
+-                     static_cast<basic_string_view<typename S::char_type>>(S()),
+-                     std::forward<Args>(args)...);
+-  } else {
+-    return format_to(out, compiled, std::forward<Args>(args)...);
+-  }
+-}
+-#endif
+-
+-template <typename OutputIt, typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-format_to_n_result<OutputIt> format_to_n(OutputIt out, size_t n,
+-                                         const S& format_str, Args&&... args) {
+-  auto it = format_to(detail::truncating_iterator<OutputIt>(out, n), format_str,
+-                      std::forward<Args>(args)...);
+-  return {it.base(), it.count()};
+-}
+-
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-size_t formatted_size(const S& format_str, const Args&... args) {
+-  return format_to(detail::counting_iterator(), format_str, args...).count();
+-}
+-
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-void print(std::FILE* f, const S& format_str, const Args&... args) {
+-  memory_buffer buffer;
+-  format_to(std::back_inserter(buffer), format_str, args...);
+-  detail::print(f, {buffer.data(), buffer.size()});
+-}
+-
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-void print(const S& format_str, const Args&... args) {
+-  print(stdout, format_str, args...);
+-}
+-
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-inline namespace literals {
+-template <detail_exported::fixed_string Str>
+-constexpr detail::udl_compiled_string<
+-    remove_cvref_t<decltype(Str.data[0])>,
+-    sizeof(Str.data) / sizeof(decltype(Str.data[0])), Str>
+-operator""_cf() {
+-  return {};
+-}
+-}  // namespace literals
+-#endif
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_COMPILE_H_
+diff --git a/include/dpp/fmt/core.h b/include/dpp/fmt/core.h
+deleted file mode 100644
+index 92a7aa1..0000000
+--- a/include/dpp/fmt/core.h
++++ /dev/null
+@@ -1,3236 +0,0 @@
+-// Formatting library for C++ - the core API for char/UTF-8
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_CORE_H_
+-#define FMT_CORE_H_
+-
+-#include <cstddef>  // std::byte
+-#include <cstdio>   // std::FILE
+-#include <cstring>
+-#include <iterator>
+-#include <limits>
+-#include <string>
+-#include <type_traits>
+-
+-// The fmt library version in the form major * 10000 + minor * 100 + patch.
+-#define FMT_VERSION 80101
+-
+-#if defined(__clang__) && !defined(__ibmxl__)
+-#  define FMT_CLANG_VERSION (__clang_major__ * 100 + __clang_minor__)
+-#else
+-#  define FMT_CLANG_VERSION 0
+-#endif
+-
+-#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) && \
+-    !defined(__NVCOMPILER)
+-#  define FMT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
+-#else
+-#  define FMT_GCC_VERSION 0
+-#endif
+-
+-#ifndef FMT_GCC_PRAGMA
+-// Workaround _Pragma bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59884.
+-#  if FMT_GCC_VERSION >= 504
+-#    define FMT_GCC_PRAGMA(arg) _Pragma(arg)
+-#  else
+-#    define FMT_GCC_PRAGMA(arg)
+-#  endif
+-#endif
+-
+-#ifdef __ICL
+-#  define FMT_ICC_VERSION __ICL
+-#elif defined(__INTEL_COMPILER)
+-#  define FMT_ICC_VERSION __INTEL_COMPILER
+-#else
+-#  define FMT_ICC_VERSION 0
+-#endif
+-
+-#ifdef __NVCC__
+-#  define FMT_NVCC __NVCC__
+-#else
+-#  define FMT_NVCC 0
+-#endif
+-
+-#ifdef _MSC_VER
+-#  define FMT_MSC_VER _MSC_VER
+-#  define FMT_MSC_WARNING(...) __pragma(warning(__VA_ARGS__))
+-#else
+-#  define FMT_MSC_VER 0
+-#  define FMT_MSC_WARNING(...)
+-#endif
+-
+-#ifdef __has_feature
+-#  define FMT_HAS_FEATURE(x) __has_feature(x)
+-#else
+-#  define FMT_HAS_FEATURE(x) 0
+-#endif
+-
+-#if defined(__has_include) &&                             \
+-    (!defined(__INTELLISENSE__) || FMT_MSC_VER > 1900) && \
+-    (!FMT_ICC_VERSION || FMT_ICC_VERSION >= 1600)
+-#  define FMT_HAS_INCLUDE(x) __has_include(x)
+-#else
+-#  define FMT_HAS_INCLUDE(x) 0
+-#endif
+-
+-#ifdef __has_cpp_attribute
+-#  define FMT_HAS_CPP_ATTRIBUTE(x) __has_cpp_attribute(x)
+-#else
+-#  define FMT_HAS_CPP_ATTRIBUTE(x) 0
+-#endif
+-
+-#ifdef _MSVC_LANG
+-#  define FMT_CPLUSPLUS _MSVC_LANG
+-#else
+-#  define FMT_CPLUSPLUS __cplusplus
+-#endif
+-
+-#define FMT_HAS_CPP14_ATTRIBUTE(attribute) \
+-  (FMT_CPLUSPLUS >= 201402L && FMT_HAS_CPP_ATTRIBUTE(attribute))
+-
+-#define FMT_HAS_CPP17_ATTRIBUTE(attribute) \
+-  (FMT_CPLUSPLUS >= 201703L && FMT_HAS_CPP_ATTRIBUTE(attribute))
+-
+-// Check if relaxed C++14 constexpr is supported.
+-// GCC doesn't allow throw in constexpr until version 6 (bug 67371).
+-#ifndef FMT_USE_CONSTEXPR
+-#  define FMT_USE_CONSTEXPR                                           \
+-    (FMT_HAS_FEATURE(cxx_relaxed_constexpr) || FMT_MSC_VER >= 1912 || \
+-     (FMT_GCC_VERSION >= 600 && __cplusplus >= 201402L)) &&           \
+-        !FMT_NVCC && !FMT_ICC_VERSION
+-#endif
+-#if FMT_USE_CONSTEXPR
+-#  define FMT_CONSTEXPR constexpr
+-#  define FMT_CONSTEXPR_DECL constexpr
+-#else
+-#  define FMT_CONSTEXPR
+-#  define FMT_CONSTEXPR_DECL
+-#endif
+-
+-#if ((__cplusplus >= 202002L) &&                              \
+-     (!defined(_GLIBCXX_RELEASE) || _GLIBCXX_RELEASE > 9)) || \
+-    (__cplusplus >= 201709L && FMT_GCC_VERSION >= 1002)
+-#  define FMT_CONSTEXPR20 constexpr
+-#else
+-#  define FMT_CONSTEXPR20
+-#endif
+-
+-// Check if constexpr std::char_traits<>::compare,length is supported.
+-#if defined(__GLIBCXX__)
+-#  if __cplusplus >= 201703L && defined(_GLIBCXX_RELEASE) && \
+-      _GLIBCXX_RELEASE >= 7  // GCC 7+ libstdc++ has _GLIBCXX_RELEASE.
+-#    define FMT_CONSTEXPR_CHAR_TRAITS constexpr
+-#  endif
+-#elif defined(_LIBCPP_VERSION) && __cplusplus >= 201703L && \
+-    _LIBCPP_VERSION >= 4000
+-#  define FMT_CONSTEXPR_CHAR_TRAITS constexpr
+-#elif FMT_MSC_VER >= 1914 && _MSVC_LANG >= 201703L
+-#  define FMT_CONSTEXPR_CHAR_TRAITS constexpr
+-#endif
+-#ifndef FMT_CONSTEXPR_CHAR_TRAITS
+-#  define FMT_CONSTEXPR_CHAR_TRAITS
+-#endif
+-
+-// Check if exceptions are disabled.
+-#ifndef FMT_EXCEPTIONS
+-#  if (defined(__GNUC__) && !defined(__EXCEPTIONS)) || \
+-      FMT_MSC_VER && !_HAS_EXCEPTIONS
+-#    define FMT_EXCEPTIONS 0
+-#  else
+-#    define FMT_EXCEPTIONS 1
+-#  endif
+-#endif
+-
+-// Define FMT_USE_NOEXCEPT to make fmt use noexcept (C++11 feature).
+-#ifndef FMT_USE_NOEXCEPT
+-#  define FMT_USE_NOEXCEPT 0
+-#endif
+-
+-#if FMT_USE_NOEXCEPT || FMT_HAS_FEATURE(cxx_noexcept) || \
+-    FMT_GCC_VERSION >= 408 || FMT_MSC_VER >= 1900
+-#  define FMT_DETECTED_NOEXCEPT noexcept
+-#  define FMT_HAS_CXX11_NOEXCEPT 1
+-#else
+-#  define FMT_DETECTED_NOEXCEPT throw()
+-#  define FMT_HAS_CXX11_NOEXCEPT 0
+-#endif
+-
+-#ifndef FMT_NOEXCEPT
+-#  if FMT_EXCEPTIONS || FMT_HAS_CXX11_NOEXCEPT
+-#    define FMT_NOEXCEPT FMT_DETECTED_NOEXCEPT
+-#  else
+-#    define FMT_NOEXCEPT
+-#  endif
+-#endif
+-
+-// [[noreturn]] is disabled on MSVC and NVCC because of bogus unreachable code
+-// warnings.
+-#if FMT_EXCEPTIONS && FMT_HAS_CPP_ATTRIBUTE(noreturn) && !FMT_MSC_VER && \
+-    !FMT_NVCC
+-#  define FMT_NORETURN [[noreturn]]
+-#else
+-#  define FMT_NORETURN
+-#endif
+-
+-#if __cplusplus == 201103L || __cplusplus == 201402L
+-#  if defined(__INTEL_COMPILER) || defined(__PGI)
+-#    define FMT_FALLTHROUGH
+-#  elif defined(__clang__)
+-#    define FMT_FALLTHROUGH [[clang::fallthrough]]
+-#  elif FMT_GCC_VERSION >= 700 && \
+-      (!defined(__EDG_VERSION__) || __EDG_VERSION__ >= 520)
+-#    define FMT_FALLTHROUGH [[gnu::fallthrough]]
+-#  else
+-#    define FMT_FALLTHROUGH
+-#  endif
+-#elif FMT_HAS_CPP17_ATTRIBUTE(fallthrough)
+-#  define FMT_FALLTHROUGH [[fallthrough]]
+-#else
+-#  define FMT_FALLTHROUGH
+-#endif
+-
+-#ifndef FMT_NODISCARD
+-#  if FMT_HAS_CPP17_ATTRIBUTE(nodiscard)
+-#    define FMT_NODISCARD [[nodiscard]]
+-#  else
+-#    define FMT_NODISCARD
+-#  endif
+-#endif
+-
+-#ifndef FMT_USE_FLOAT
+-#  define FMT_USE_FLOAT 1
+-#endif
+-#ifndef FMT_USE_DOUBLE
+-#  define FMT_USE_DOUBLE 1
+-#endif
+-#ifndef FMT_USE_LONG_DOUBLE
+-#  define FMT_USE_LONG_DOUBLE 1
+-#endif
+-
+-#ifndef FMT_INLINE
+-#  if FMT_GCC_VERSION || FMT_CLANG_VERSION
+-#    define FMT_INLINE inline __attribute__((always_inline))
+-#  else
+-#    define FMT_INLINE inline
+-#  endif
+-#endif
+-
+-#ifndef FMT_DEPRECATED
+-#  if FMT_HAS_CPP14_ATTRIBUTE(deprecated) || FMT_MSC_VER >= 1900
+-#    define FMT_DEPRECATED [[deprecated]]
+-#  else
+-#    if (defined(__GNUC__) && !defined(__LCC__)) || defined(__clang__)
+-#      define FMT_DEPRECATED __attribute__((deprecated))
+-#    elif FMT_MSC_VER
+-#      define FMT_DEPRECATED __declspec(deprecated)
+-#    else
+-#      define FMT_DEPRECATED /* deprecated */
+-#    endif
+-#  endif
+-#endif
+-
+-#ifndef FMT_BEGIN_NAMESPACE
+-#  define FMT_BEGIN_NAMESPACE \
+-    namespace fmt {           \
+-    inline namespace v8 {
+-#  define FMT_END_NAMESPACE \
+-    }                       \
+-    }
+-#endif
+-
+-#ifndef FMT_MODULE_EXPORT
+-#  define FMT_MODULE_EXPORT
+-#  define FMT_MODULE_EXPORT_BEGIN
+-#  define FMT_MODULE_EXPORT_END
+-#  define FMT_BEGIN_DETAIL_NAMESPACE namespace detail {
+-#  define FMT_END_DETAIL_NAMESPACE }
+-#endif
+-
+-#if !defined(FMT_HEADER_ONLY) && defined(_WIN32)
+-#  define FMT_CLASS_API FMT_MSC_WARNING(suppress : 4275)
+-#  ifdef FMT_EXPORT
+-#    define FMT_API __declspec(dllexport)
+-#  elif defined(FMT_SHARED)
+-#    define FMT_API __declspec(dllimport)
+-#  endif
+-#else
+-#  define FMT_CLASS_API
+-#  if defined(FMT_EXPORT) || defined(FMT_SHARED)
+-#    if defined(__GNUC__) || defined(__clang__)
+-#      define FMT_API __attribute__((visibility("default")))
+-#    endif
+-#  endif
+-#endif
+-#ifndef FMT_API
+-#  define FMT_API
+-#endif
+-
+-// libc++ supports string_view in pre-c++17.
+-#if (FMT_HAS_INCLUDE(<string_view>) &&                       \
+-     (__cplusplus > 201402L || defined(_LIBCPP_VERSION))) || \
+-    (defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910)
+-#  include <string_view>
+-#  define FMT_USE_STRING_VIEW
+-#elif FMT_HAS_INCLUDE("experimental/string_view") && __cplusplus >= 201402L
+-#  include <experimental/string_view>
+-#  define FMT_USE_EXPERIMENTAL_STRING_VIEW
+-#endif
+-
+-#ifndef FMT_UNICODE
+-#  define FMT_UNICODE !FMT_MSC_VER
+-#endif
+-
+-#ifndef FMT_CONSTEVAL
+-#  if ((FMT_GCC_VERSION >= 1000 || FMT_CLANG_VERSION >= 1101) &&      \
+-       __cplusplus > 201703L && !defined(__apple_build_version__)) || \
+-      (defined(__cpp_consteval) &&                                    \
+-       (!FMT_MSC_VER || _MSC_FULL_VER >= 193030704))
+-// consteval is broken in MSVC before VS2022 and Apple clang 13.
+-#    define FMT_CONSTEVAL consteval
+-#    define FMT_HAS_CONSTEVAL
+-#  else
+-#    define FMT_CONSTEVAL
+-#  endif
+-#endif
+-
+-#ifndef FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-#  if defined(__cpp_nontype_template_args) &&                \
+-      ((FMT_GCC_VERSION >= 903 && __cplusplus >= 201709L) || \
+-       __cpp_nontype_template_args >= 201911L)
+-#    define FMT_USE_NONTYPE_TEMPLATE_PARAMETERS 1
+-#  else
+-#    define FMT_USE_NONTYPE_TEMPLATE_PARAMETERS 0
+-#  endif
+-#endif
+-
+-// Enable minimal optimizations for more compact code in debug mode.
+-FMT_GCC_PRAGMA("GCC push_options")
+-#ifndef __OPTIMIZE__
+-FMT_GCC_PRAGMA("GCC optimize(\"Og\")")
+-#endif
+-
+-FMT_BEGIN_NAMESPACE
+-FMT_MODULE_EXPORT_BEGIN
+-
+-// Implementations of enable_if_t and other metafunctions for older systems.
+-template <bool B, typename T = void>
+-using enable_if_t = typename std::enable_if<B, T>::type;
+-template <bool B, typename T, typename F>
+-using conditional_t = typename std::conditional<B, T, F>::type;
+-template <bool B> using bool_constant = std::integral_constant<bool, B>;
+-template <typename T>
+-using remove_reference_t = typename std::remove_reference<T>::type;
+-template <typename T>
+-using remove_const_t = typename std::remove_const<T>::type;
+-template <typename T>
+-using remove_cvref_t = typename std::remove_cv<remove_reference_t<T>>::type;
+-template <typename T> struct type_identity { using type = T; };
+-template <typename T> using type_identity_t = typename type_identity<T>::type;
+-
+-struct monostate {
+-  constexpr monostate() {}
+-};
+-
+-// An enable_if helper to be used in template parameters which results in much
+-// shorter symbols: https://godbolt.org/z/sWw4vP. Extra parentheses are needed
+-// to workaround a bug in MSVC 2019 (see #1140 and #1186).
+-#ifdef FMT_DOC
+-#  define FMT_ENABLE_IF(...)
+-#else
+-#  define FMT_ENABLE_IF(...) enable_if_t<(__VA_ARGS__), int> = 0
+-#endif
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// Suppress "unused variable" warnings with the method described in
+-// https://herbsutter.com/2009/10/18/mailbag-shutting-up-compiler-warnings/.
+-// (void)var does not work on many Intel compilers.
+-template <typename... T> FMT_CONSTEXPR void ignore_unused(const T&...) {}
+-
+-constexpr FMT_INLINE auto is_constant_evaluated(bool default_value = false)
+-    FMT_NOEXCEPT -> bool {
+-#ifdef __cpp_lib_is_constant_evaluated
+-  ignore_unused(default_value);
+-  return std::is_constant_evaluated();
+-#else
+-  return default_value;
+-#endif
+-}
+-
+-// A function to suppress "conditional expression is constant" warnings.
+-template <typename T> constexpr FMT_INLINE auto const_check(T value) -> T {
+-  return value;
+-}
+-
+-FMT_NORETURN FMT_API void assert_fail(const char* file, int line,
+-                                      const char* message);
+-
+-#ifndef FMT_ASSERT
+-#  ifdef NDEBUG
+-// FMT_ASSERT is not empty to avoid -Werror=empty-body.
+-#    define FMT_ASSERT(condition, message) \
+-      ::fmt::detail::ignore_unused((condition), (message))
+-#  else
+-#    define FMT_ASSERT(condition, message)                                    \
+-      ((condition) /* void() fails with -Winvalid-constexpr on clang 4.0.1 */ \
+-           ? (void)0                                                          \
+-           : ::fmt::detail::assert_fail(__FILE__, __LINE__, (message)))
+-#  endif
+-#endif
+-
+-#ifdef __cpp_lib_byte
+-using byte = std::byte;
+-#else
+-enum class byte : unsigned char {};
+-#endif
+-
+-#if defined(FMT_USE_STRING_VIEW)
+-template <typename Char> using std_string_view = std::basic_string_view<Char>;
+-#elif defined(FMT_USE_EXPERIMENTAL_STRING_VIEW)
+-template <typename Char>
+-using std_string_view = std::experimental::basic_string_view<Char>;
+-#else
+-template <typename T> struct std_string_view {};
+-#endif
+-
+-#ifdef FMT_USE_INT128
+-// Do nothing.
+-#elif defined(__SIZEOF_INT128__) && !FMT_NVCC && \
+-    !(FMT_CLANG_VERSION && FMT_MSC_VER)
+-#  define FMT_USE_INT128 1
+-using int128_t = __int128_t;
+-using uint128_t = __uint128_t;
+-template <typename T> inline auto convert_for_visit(T value) -> T {
+-  return value;
+-}
+-#else
+-#  define FMT_USE_INT128 0
+-#endif
+-#if !FMT_USE_INT128
+-enum class int128_t {};
+-enum class uint128_t {};
+-// Reduce template instantiations.
+-template <typename T> inline auto convert_for_visit(T) -> monostate {
+-  return {};
+-}
+-#endif
+-
+-// Casts a nonnegative integer to unsigned.
+-template <typename Int>
+-FMT_CONSTEXPR auto to_unsigned(Int value) ->
+-    typename std::make_unsigned<Int>::type {
+-  FMT_ASSERT(value >= 0, "negative value");
+-  return static_cast<typename std::make_unsigned<Int>::type>(value);
+-}
+-
+-FMT_MSC_WARNING(suppress : 4566) constexpr unsigned char micro[] = "\u00B5";
+-
+-constexpr auto is_utf8() -> bool {
+-  // Avoid buggy sign extensions in MSVC's constant evaluation mode.
+-  // https://developercommunity.visualstudio.com/t/C-difference-in-behavior-for-unsigned/1233612
+-  using uchar = unsigned char;
+-  return FMT_UNICODE || (sizeof(micro) == 3 && uchar(micro[0]) == 0xC2 &&
+-                         uchar(micro[1]) == 0xB5);
+-}
+-FMT_END_DETAIL_NAMESPACE
+-
+-/**
+-  An implementation of ``std::basic_string_view`` for pre-C++17. It provides a
+-  subset of the API. ``fmt::basic_string_view`` is used for format strings even
+-  if ``std::string_view`` is available to prevent issues when a library is
+-  compiled with a different ``-std`` option than the client code (which is not
+-  recommended).
+- */
+-template <typename Char> class basic_string_view {
+- private:
+-  const Char* data_;
+-  size_t size_;
+-
+- public:
+-  using value_type = Char;
+-  using iterator = const Char*;
+-
+-  constexpr basic_string_view() FMT_NOEXCEPT : data_(nullptr), size_(0) {}
+-
+-  /** Constructs a string reference object from a C string and a size. */
+-  constexpr basic_string_view(const Char* s, size_t count) FMT_NOEXCEPT
+-      : data_(s),
+-        size_(count) {}
+-
+-  /**
+-    \rst
+-    Constructs a string reference object from a C string computing
+-    the size with ``std::char_traits<Char>::length``.
+-    \endrst
+-   */
+-  FMT_CONSTEXPR_CHAR_TRAITS
+-  FMT_INLINE
+-  basic_string_view(const Char* s)
+-      : data_(s),
+-        size_(detail::const_check(std::is_same<Char, char>::value &&
+-                                  !detail::is_constant_evaluated(true))
+-                  ? std::strlen(reinterpret_cast<const char*>(s))
+-                  : std::char_traits<Char>::length(s)) {}
+-
+-  /** Constructs a string reference from a ``std::basic_string`` object. */
+-  template <typename Traits, typename Alloc>
+-  FMT_CONSTEXPR basic_string_view(
+-      const std::basic_string<Char, Traits, Alloc>& s) FMT_NOEXCEPT
+-      : data_(s.data()),
+-        size_(s.size()) {}
+-
+-  template <typename S, FMT_ENABLE_IF(std::is_same<
+-                                      S, detail::std_string_view<Char>>::value)>
+-  FMT_CONSTEXPR basic_string_view(S s) FMT_NOEXCEPT : data_(s.data()),
+-                                                      size_(s.size()) {}
+-
+-  /** Returns a pointer to the string data. */
+-  constexpr auto data() const FMT_NOEXCEPT -> const Char* { return data_; }
+-
+-  /** Returns the string size. */
+-  constexpr auto size() const FMT_NOEXCEPT -> size_t { return size_; }
+-
+-  constexpr auto begin() const FMT_NOEXCEPT -> iterator { return data_; }
+-  constexpr auto end() const FMT_NOEXCEPT -> iterator { return data_ + size_; }
+-
+-  constexpr auto operator[](size_t pos) const FMT_NOEXCEPT -> const Char& {
+-    return data_[pos];
+-  }
+-
+-  FMT_CONSTEXPR void remove_prefix(size_t n) FMT_NOEXCEPT {
+-    data_ += n;
+-    size_ -= n;
+-  }
+-
+-  // Lexicographically compare this string reference to other.
+-  FMT_CONSTEXPR_CHAR_TRAITS auto compare(basic_string_view other) const -> int {
+-    size_t str_size = size_ < other.size_ ? size_ : other.size_;
+-    int result = std::char_traits<Char>::compare(data_, other.data_, str_size);
+-    if (result == 0)
+-      result = size_ == other.size_ ? 0 : (size_ < other.size_ ? -1 : 1);
+-    return result;
+-  }
+-
+-  FMT_CONSTEXPR_CHAR_TRAITS friend auto operator==(basic_string_view lhs,
+-                                                   basic_string_view rhs)
+-      -> bool {
+-    return lhs.compare(rhs) == 0;
+-  }
+-  friend auto operator!=(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) != 0;
+-  }
+-  friend auto operator<(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) < 0;
+-  }
+-  friend auto operator<=(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) <= 0;
+-  }
+-  friend auto operator>(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) > 0;
+-  }
+-  friend auto operator>=(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) >= 0;
+-  }
+-};
+-
+-using string_view = basic_string_view<char>;
+-
+-/** Specifies if ``T`` is a character type. Can be specialized by users. */
+-template <typename T> struct is_char : std::false_type {};
+-template <> struct is_char<char> : std::true_type {};
+-
+-// Returns a string view of `s`.
+-template <typename Char, FMT_ENABLE_IF(is_char<Char>::value)>
+-FMT_INLINE auto to_string_view(const Char* s) -> basic_string_view<Char> {
+-  return s;
+-}
+-template <typename Char, typename Traits, typename Alloc>
+-inline auto to_string_view(const std::basic_string<Char, Traits, Alloc>& s)
+-    -> basic_string_view<Char> {
+-  return s;
+-}
+-template <typename Char>
+-constexpr auto to_string_view(basic_string_view<Char> s)
+-    -> basic_string_view<Char> {
+-  return s;
+-}
+-template <typename Char,
+-          FMT_ENABLE_IF(!std::is_empty<detail::std_string_view<Char>>::value)>
+-inline auto to_string_view(detail::std_string_view<Char> s)
+-    -> basic_string_view<Char> {
+-  return s;
+-}
+-
+-// A base class for compile-time strings. It is defined in the fmt namespace to
+-// make formatting functions visible via ADL, e.g. format(FMT_STRING("{}"), 42).
+-struct compile_string {};
+-
+-template <typename S>
+-struct is_compile_string : std::is_base_of<compile_string, S> {};
+-
+-template <typename S, FMT_ENABLE_IF(is_compile_string<S>::value)>
+-constexpr auto to_string_view(const S& s)
+-    -> basic_string_view<typename S::char_type> {
+-  return basic_string_view<typename S::char_type>(s);
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-void to_string_view(...);
+-using fmt::to_string_view;
+-
+-// Specifies whether S is a string type convertible to fmt::basic_string_view.
+-// It should be a constexpr function but MSVC 2017 fails to compile it in
+-// enable_if and MSVC 2015 fails to compile it as an alias template.
+-template <typename S>
+-struct is_string : std::is_class<decltype(to_string_view(std::declval<S>()))> {
+-};
+-
+-template <typename S, typename = void> struct char_t_impl {};
+-template <typename S> struct char_t_impl<S, enable_if_t<is_string<S>::value>> {
+-  using result = decltype(to_string_view(std::declval<S>()));
+-  using type = typename result::value_type;
+-};
+-
+-// Reports a compile-time error if S is not a valid format string.
+-template <typename..., typename S, FMT_ENABLE_IF(!is_compile_string<S>::value)>
+-FMT_INLINE void check_format_string(const S&) {
+-#ifdef FMT_ENFORCE_COMPILE_STRING
+-  static_assert(is_compile_string<S>::value,
+-                "FMT_ENFORCE_COMPILE_STRING requires all format strings to use "
+-                "FMT_STRING.");
+-#endif
+-}
+-template <typename..., typename S, FMT_ENABLE_IF(is_compile_string<S>::value)>
+-void check_format_string(S);
+-
+-FMT_NORETURN FMT_API void throw_format_error(const char* message);
+-
+-struct error_handler {
+-  constexpr error_handler() = default;
+-  constexpr error_handler(const error_handler&) = default;
+-
+-  // This function is intentionally not constexpr to give a compile-time error.
+-  FMT_NORETURN FMT_API void on_error(const char* message);
+-};
+-FMT_END_DETAIL_NAMESPACE
+-
+-/** String's character type. */
+-template <typename S> using char_t = typename detail::char_t_impl<S>::type;
+-
+-/**
+-  \rst
+-  Parsing context consisting of a format string range being parsed and an
+-  argument counter for automatic indexing.
+-  You can use the ``format_parse_context`` type alias for ``char`` instead.
+-  \endrst
+- */
+-template <typename Char, typename ErrorHandler = detail::error_handler>
+-class basic_format_parse_context : private ErrorHandler {
+- private:
+-  basic_string_view<Char> format_str_;
+-  int next_arg_id_;
+-
+- public:
+-  using char_type = Char;
+-  using iterator = typename basic_string_view<Char>::iterator;
+-
+-  explicit constexpr basic_format_parse_context(
+-      basic_string_view<Char> format_str, ErrorHandler eh = {},
+-      int next_arg_id = 0)
+-      : ErrorHandler(eh), format_str_(format_str), next_arg_id_(next_arg_id) {}
+-
+-  /**
+-    Returns an iterator to the beginning of the format string range being
+-    parsed.
+-   */
+-  constexpr auto begin() const FMT_NOEXCEPT -> iterator {
+-    return format_str_.begin();
+-  }
+-
+-  /**
+-    Returns an iterator past the end of the format string range being parsed.
+-   */
+-  constexpr auto end() const FMT_NOEXCEPT -> iterator {
+-    return format_str_.end();
+-  }
+-
+-  /** Advances the begin iterator to ``it``. */
+-  FMT_CONSTEXPR void advance_to(iterator it) {
+-    format_str_.remove_prefix(detail::to_unsigned(it - begin()));
+-  }
+-
+-  /**
+-    Reports an error if using the manual argument indexing; otherwise returns
+-    the next argument index and switches to the automatic indexing.
+-   */
+-  FMT_CONSTEXPR auto next_arg_id() -> int {
+-    // Don't check if the argument id is valid to avoid overhead and because it
+-    // will be checked during formatting anyway.
+-    if (next_arg_id_ >= 0) return next_arg_id_++;
+-    on_error("cannot switch from manual to automatic argument indexing");
+-    return 0;
+-  }
+-
+-  /**
+-    Reports an error if using the automatic argument indexing; otherwise
+-    switches to the manual indexing.
+-   */
+-  FMT_CONSTEXPR void check_arg_id(int) {
+-    if (next_arg_id_ > 0)
+-      on_error("cannot switch from automatic to manual argument indexing");
+-    else
+-      next_arg_id_ = -1;
+-  }
+-
+-  FMT_CONSTEXPR void check_arg_id(basic_string_view<Char>) {}
+-
+-  FMT_CONSTEXPR void on_error(const char* message) {
+-    ErrorHandler::on_error(message);
+-  }
+-
+-  constexpr auto error_handler() const -> ErrorHandler { return *this; }
+-};
+-
+-using format_parse_context = basic_format_parse_context<char>;
+-
+-template <typename Context> class basic_format_arg;
+-template <typename Context> class basic_format_args;
+-template <typename Context> class dynamic_format_arg_store;
+-
+-// A formatter for objects of type T.
+-template <typename T, typename Char = char, typename Enable = void>
+-struct formatter {
+-  // A deleted default constructor indicates a disabled formatter.
+-  formatter() = delete;
+-};
+-
+-// Specifies if T has an enabled formatter specialization. A type can be
+-// formattable even if it doesn't have a formatter e.g. via a conversion.
+-template <typename T, typename Context>
+-using has_formatter =
+-    std::is_constructible<typename Context::template formatter_type<T>>;
+-
+-// Checks whether T is a container with contiguous storage.
+-template <typename T> struct is_contiguous : std::false_type {};
+-template <typename Char>
+-struct is_contiguous<std::basic_string<Char>> : std::true_type {};
+-
+-class appender;
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename Context, typename T>
+-constexpr auto has_const_formatter_impl(T*)
+-    -> decltype(typename Context::template formatter_type<T>().format(
+-                    std::declval<const T&>(), std::declval<Context&>()),
+-                true) {
+-  return true;
+-}
+-template <typename Context>
+-constexpr auto has_const_formatter_impl(...) -> bool {
+-  return false;
+-}
+-template <typename T, typename Context>
+-constexpr auto has_const_formatter() -> bool {
+-  return has_const_formatter_impl<Context>(static_cast<T*>(nullptr));
+-}
+-
+-// Extracts a reference to the container from back_insert_iterator.
+-template <typename Container>
+-inline auto get_container(std::back_insert_iterator<Container> it)
+-    -> Container& {
+-  using bi_iterator = std::back_insert_iterator<Container>;
+-  struct accessor : bi_iterator {
+-    accessor(bi_iterator iter) : bi_iterator(iter) {}
+-    using bi_iterator::container;
+-  };
+-  return *accessor(it).container;
+-}
+-
+-template <typename Char, typename InputIt, typename OutputIt>
+-FMT_CONSTEXPR auto copy_str(InputIt begin, InputIt end, OutputIt out)
+-    -> OutputIt {
+-  while (begin != end) *out++ = static_cast<Char>(*begin++);
+-  return out;
+-}
+-
+-template <typename Char, typename T, typename U,
+-          FMT_ENABLE_IF(
+-              std::is_same<remove_const_t<T>, U>::value&& is_char<U>::value)>
+-FMT_CONSTEXPR auto copy_str(T* begin, T* end, U* out) -> U* {
+-  if (is_constant_evaluated()) return copy_str<Char, T*, U*>(begin, end, out);
+-  auto size = to_unsigned(end - begin);
+-  memcpy(out, begin, size * sizeof(U));
+-  return out + size;
+-}
+-
+-/**
+-  \rst
+-  A contiguous memory buffer with an optional growing ability. It is an internal
+-  class and shouldn't be used directly, only via `~fmt::basic_memory_buffer`.
+-  \endrst
+- */
+-template <typename T> class buffer {
+- private:
+-  T* ptr_;
+-  size_t size_;
+-  size_t capacity_;
+-
+- protected:
+-  // Don't initialize ptr_ since it is not accessed to save a few cycles.
+-  FMT_MSC_WARNING(suppress : 26495)
+-  buffer(size_t sz) FMT_NOEXCEPT : size_(sz), capacity_(sz) {}
+-
+-  FMT_CONSTEXPR20 buffer(T* p = nullptr, size_t sz = 0,
+-                         size_t cap = 0) FMT_NOEXCEPT : ptr_(p),
+-                                                        size_(sz),
+-                                                        capacity_(cap) {}
+-
+-  FMT_CONSTEXPR20 ~buffer() = default;
+-  buffer(buffer&&) = default;
+-
+-  /** Sets the buffer data and capacity. */
+-  FMT_CONSTEXPR void set(T* buf_data, size_t buf_capacity) FMT_NOEXCEPT {
+-    ptr_ = buf_data;
+-    capacity_ = buf_capacity;
+-  }
+-
+-  /** Increases the buffer capacity to hold at least *capacity* elements. */
+-  virtual FMT_CONSTEXPR20 void grow(size_t capacity) = 0;
+-
+- public:
+-  using value_type = T;
+-  using const_reference = const T&;
+-
+-  buffer(const buffer&) = delete;
+-  void operator=(const buffer&) = delete;
+-
+-  auto begin() FMT_NOEXCEPT -> T* { return ptr_; }
+-  auto end() FMT_NOEXCEPT -> T* { return ptr_ + size_; }
+-
+-  auto begin() const FMT_NOEXCEPT -> const T* { return ptr_; }
+-  auto end() const FMT_NOEXCEPT -> const T* { return ptr_ + size_; }
+-
+-  /** Returns the size of this buffer. */
+-  constexpr auto size() const FMT_NOEXCEPT -> size_t { return size_; }
+-
+-  /** Returns the capacity of this buffer. */
+-  constexpr auto capacity() const FMT_NOEXCEPT -> size_t { return capacity_; }
+-
+-  /** Returns a pointer to the buffer data. */
+-  FMT_CONSTEXPR auto data() FMT_NOEXCEPT -> T* { return ptr_; }
+-
+-  /** Returns a pointer to the buffer data. */
+-  FMT_CONSTEXPR auto data() const FMT_NOEXCEPT -> const T* { return ptr_; }
+-
+-  /** Clears this buffer. */
+-  void clear() { size_ = 0; }
+-
+-  // Tries resizing the buffer to contain *count* elements. If T is a POD type
+-  // the new elements may not be initialized.
+-  FMT_CONSTEXPR20 void try_resize(size_t count) {
+-    try_reserve(count);
+-    size_ = count <= capacity_ ? count : capacity_;
+-  }
+-
+-  // Tries increasing the buffer capacity to *new_capacity*. It can increase the
+-  // capacity by a smaller amount than requested but guarantees there is space
+-  // for at least one additional element either by increasing the capacity or by
+-  // flushing the buffer if it is full.
+-  FMT_CONSTEXPR20 void try_reserve(size_t new_capacity) {
+-    if (new_capacity > capacity_) grow(new_capacity);
+-  }
+-
+-  FMT_CONSTEXPR20 void push_back(const T& value) {
+-    try_reserve(size_ + 1);
+-    ptr_[size_++] = value;
+-  }
+-
+-  /** Appends data to the end of the buffer. */
+-  template <typename U> void append(const U* begin, const U* end);
+-
+-  template <typename I> FMT_CONSTEXPR auto operator[](I index) -> T& {
+-    return ptr_[index];
+-  }
+-  template <typename I>
+-  FMT_CONSTEXPR auto operator[](I index) const -> const T& {
+-    return ptr_[index];
+-  }
+-};
+-
+-struct buffer_traits {
+-  explicit buffer_traits(size_t) {}
+-  auto count() const -> size_t { return 0; }
+-  auto limit(size_t size) -> size_t { return size; }
+-};
+-
+-class fixed_buffer_traits {
+- private:
+-  size_t count_ = 0;
+-  size_t limit_;
+-
+- public:
+-  explicit fixed_buffer_traits(size_t limit) : limit_(limit) {}
+-  auto count() const -> size_t { return count_; }
+-  auto limit(size_t size) -> size_t {
+-    size_t n = limit_ > count_ ? limit_ - count_ : 0;
+-    count_ += size;
+-    return size < n ? size : n;
+-  }
+-};
+-
+-// A buffer that writes to an output iterator when flushed.
+-template <typename OutputIt, typename T, typename Traits = buffer_traits>
+-class iterator_buffer final : public Traits, public buffer<T> {
+- private:
+-  OutputIt out_;
+-  enum { buffer_size = 256 };
+-  T data_[buffer_size];
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t) override {
+-    if (this->size() == buffer_size) flush();
+-  }
+-
+-  void flush() {
+-    auto size = this->size();
+-    this->clear();
+-    out_ = copy_str<T>(data_, data_ + this->limit(size), out_);
+-  }
+-
+- public:
+-  explicit iterator_buffer(OutputIt out, size_t n = buffer_size)
+-      : Traits(n), buffer<T>(data_, 0, buffer_size), out_(out) {}
+-  iterator_buffer(iterator_buffer&& other)
+-      : Traits(other), buffer<T>(data_, 0, buffer_size), out_(other.out_) {}
+-  ~iterator_buffer() { flush(); }
+-
+-  auto out() -> OutputIt {
+-    flush();
+-    return out_;
+-  }
+-  auto count() const -> size_t { return Traits::count() + this->size(); }
+-};
+-
+-template <typename T>
+-class iterator_buffer<T*, T, fixed_buffer_traits> final
+-    : public fixed_buffer_traits,
+-      public buffer<T> {
+- private:
+-  T* out_;
+-  enum { buffer_size = 256 };
+-  T data_[buffer_size];
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t) override {
+-    if (this->size() == this->capacity()) flush();
+-  }
+-
+-  void flush() {
+-    size_t n = this->limit(this->size());
+-    if (this->data() == out_) {
+-      out_ += n;
+-      this->set(data_, buffer_size);
+-    }
+-    this->clear();
+-  }
+-
+- public:
+-  explicit iterator_buffer(T* out, size_t n = buffer_size)
+-      : fixed_buffer_traits(n), buffer<T>(out, 0, n), out_(out) {}
+-  iterator_buffer(iterator_buffer&& other)
+-      : fixed_buffer_traits(other),
+-        buffer<T>(std::move(other)),
+-        out_(other.out_) {
+-    if (this->data() != out_) {
+-      this->set(data_, buffer_size);
+-      this->clear();
+-    }
+-  }
+-  ~iterator_buffer() { flush(); }
+-
+-  auto out() -> T* {
+-    flush();
+-    return out_;
+-  }
+-  auto count() const -> size_t {
+-    return fixed_buffer_traits::count() + this->size();
+-  }
+-};
+-
+-template <typename T> class iterator_buffer<T*, T> final : public buffer<T> {
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t) override {}
+-
+- public:
+-  explicit iterator_buffer(T* out, size_t = 0) : buffer<T>(out, 0, ~size_t()) {}
+-
+-  auto out() -> T* { return &*this->end(); }
+-};
+-
+-// A buffer that writes to a container with the contiguous storage.
+-template <typename Container>
+-class iterator_buffer<std::back_insert_iterator<Container>,
+-                      enable_if_t<is_contiguous<Container>::value,
+-                                  typename Container::value_type>>
+-    final : public buffer<typename Container::value_type> {
+- private:
+-  Container& container_;
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t capacity) override {
+-    container_.resize(capacity);
+-    this->set(&container_[0], capacity);
+-  }
+-
+- public:
+-  explicit iterator_buffer(Container& c)
+-      : buffer<typename Container::value_type>(c.size()), container_(c) {}
+-  explicit iterator_buffer(std::back_insert_iterator<Container> out, size_t = 0)
+-      : iterator_buffer(get_container(out)) {}
+-  auto out() -> std::back_insert_iterator<Container> {
+-    return std::back_inserter(container_);
+-  }
+-};
+-
+-// A buffer that counts the number of code units written discarding the output.
+-template <typename T = char> class counting_buffer final : public buffer<T> {
+- private:
+-  enum { buffer_size = 256 };
+-  T data_[buffer_size];
+-  size_t count_ = 0;
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t) override {
+-    if (this->size() != buffer_size) return;
+-    count_ += this->size();
+-    this->clear();
+-  }
+-
+- public:
+-  counting_buffer() : buffer<T>(data_, 0, buffer_size) {}
+-
+-  auto count() -> size_t { return count_ + this->size(); }
+-};
+-
+-template <typename T>
+-using buffer_appender = conditional_t<std::is_same<T, char>::value, appender,
+-                                      std::back_insert_iterator<buffer<T>>>;
+-
+-// Maps an output iterator to a buffer.
+-template <typename T, typename OutputIt>
+-auto get_buffer(OutputIt out) -> iterator_buffer<OutputIt, T> {
+-  return iterator_buffer<OutputIt, T>(out);
+-}
+-
+-template <typename Buffer>
+-auto get_iterator(Buffer& buf) -> decltype(buf.out()) {
+-  return buf.out();
+-}
+-template <typename T> auto get_iterator(buffer<T>& buf) -> buffer_appender<T> {
+-  return buffer_appender<T>(buf);
+-}
+-
+-template <typename T, typename Char = char, typename Enable = void>
+-struct fallback_formatter {
+-  fallback_formatter() = delete;
+-};
+-
+-// Specifies if T has an enabled fallback_formatter specialization.
+-template <typename T, typename Char>
+-using has_fallback_formatter =
+-    std::is_constructible<fallback_formatter<T, Char>>;
+-
+-struct view {};
+-
+-template <typename Char, typename T> struct named_arg : view {
+-  const Char* name;
+-  const T& value;
+-  named_arg(const Char* n, const T& v) : name(n), value(v) {}
+-};
+-
+-template <typename Char> struct named_arg_info {
+-  const Char* name;
+-  int id;
+-};
+-
+-template <typename T, typename Char, size_t NUM_ARGS, size_t NUM_NAMED_ARGS>
+-struct arg_data {
+-  // args_[0].named_args points to named_args_ to avoid bloating format_args.
+-  // +1 to workaround a bug in gcc 7.5 that causes duplicated-branches warning.
+-  T args_[1 + (NUM_ARGS != 0 ? NUM_ARGS : +1)];
+-  named_arg_info<Char> named_args_[NUM_NAMED_ARGS];
+-
+-  template <typename... U>
+-  arg_data(const U&... init) : args_{T(named_args_, NUM_NAMED_ARGS), init...} {}
+-  arg_data(const arg_data& other) = delete;
+-  auto args() const -> const T* { return args_ + 1; }
+-  auto named_args() -> named_arg_info<Char>* { return named_args_; }
+-};
+-
+-template <typename T, typename Char, size_t NUM_ARGS>
+-struct arg_data<T, Char, NUM_ARGS, 0> {
+-  // +1 to workaround a bug in gcc 7.5 that causes duplicated-branches warning.
+-  T args_[NUM_ARGS != 0 ? NUM_ARGS : +1];
+-
+-  template <typename... U>
+-  FMT_CONSTEXPR FMT_INLINE arg_data(const U&... init) : args_{init...} {}
+-  FMT_CONSTEXPR FMT_INLINE auto args() const -> const T* { return args_; }
+-  FMT_CONSTEXPR FMT_INLINE auto named_args() -> std::nullptr_t {
+-    return nullptr;
+-  }
+-};
+-
+-template <typename Char>
+-inline void init_named_args(named_arg_info<Char>*, int, int) {}
+-
+-template <typename T> struct is_named_arg : std::false_type {};
+-template <typename T> struct is_statically_named_arg : std::false_type {};
+-
+-template <typename T, typename Char>
+-struct is_named_arg<named_arg<Char, T>> : std::true_type {};
+-
+-template <typename Char, typename T, typename... Tail,
+-          FMT_ENABLE_IF(!is_named_arg<T>::value)>
+-void init_named_args(named_arg_info<Char>* named_args, int arg_count,
+-                     int named_arg_count, const T&, const Tail&... args) {
+-  init_named_args(named_args, arg_count + 1, named_arg_count, args...);
+-}
+-
+-template <typename Char, typename T, typename... Tail,
+-          FMT_ENABLE_IF(is_named_arg<T>::value)>
+-void init_named_args(named_arg_info<Char>* named_args, int arg_count,
+-                     int named_arg_count, const T& arg, const Tail&... args) {
+-  named_args[named_arg_count++] = {arg.name, arg_count};
+-  init_named_args(named_args, arg_count + 1, named_arg_count, args...);
+-}
+-
+-template <typename... Args>
+-FMT_CONSTEXPR FMT_INLINE void init_named_args(std::nullptr_t, int, int,
+-                                              const Args&...) {}
+-
+-template <bool B = false> constexpr auto count() -> size_t { return B ? 1 : 0; }
+-template <bool B1, bool B2, bool... Tail> constexpr auto count() -> size_t {
+-  return (B1 ? 1 : 0) + count<B2, Tail...>();
+-}
+-
+-template <typename... Args> constexpr auto count_named_args() -> size_t {
+-  return count<is_named_arg<Args>::value...>();
+-}
+-
+-template <typename... Args>
+-constexpr auto count_statically_named_args() -> size_t {
+-  return count<is_statically_named_arg<Args>::value...>();
+-}
+-
+-enum class type {
+-  none_type,
+-  // Integer types should go first,
+-  int_type,
+-  uint_type,
+-  long_long_type,
+-  ulong_long_type,
+-  int128_type,
+-  uint128_type,
+-  bool_type,
+-  char_type,
+-  last_integer_type = char_type,
+-  // followed by floating-point types.
+-  float_type,
+-  double_type,
+-  long_double_type,
+-  last_numeric_type = long_double_type,
+-  cstring_type,
+-  string_type,
+-  pointer_type,
+-  custom_type
+-};
+-
+-// Maps core type T to the corresponding type enum constant.
+-template <typename T, typename Char>
+-struct type_constant : std::integral_constant<type, type::custom_type> {};
+-
+-#define FMT_TYPE_CONSTANT(Type, constant) \
+-  template <typename Char>                \
+-  struct type_constant<Type, Char>        \
+-      : std::integral_constant<type, type::constant> {}
+-
+-FMT_TYPE_CONSTANT(int, int_type);
+-FMT_TYPE_CONSTANT(unsigned, uint_type);
+-FMT_TYPE_CONSTANT(long long, long_long_type);
+-FMT_TYPE_CONSTANT(unsigned long long, ulong_long_type);
+-FMT_TYPE_CONSTANT(int128_t, int128_type);
+-FMT_TYPE_CONSTANT(uint128_t, uint128_type);
+-FMT_TYPE_CONSTANT(bool, bool_type);
+-FMT_TYPE_CONSTANT(Char, char_type);
+-FMT_TYPE_CONSTANT(float, float_type);
+-FMT_TYPE_CONSTANT(double, double_type);
+-FMT_TYPE_CONSTANT(long double, long_double_type);
+-FMT_TYPE_CONSTANT(const Char*, cstring_type);
+-FMT_TYPE_CONSTANT(basic_string_view<Char>, string_type);
+-FMT_TYPE_CONSTANT(const void*, pointer_type);
+-
+-constexpr bool is_integral_type(type t) {
+-  return t > type::none_type && t <= type::last_integer_type;
+-}
+-
+-constexpr bool is_arithmetic_type(type t) {
+-  return t > type::none_type && t <= type::last_numeric_type;
+-}
+-
+-struct unformattable {};
+-struct unformattable_char : unformattable {};
+-struct unformattable_const : unformattable {};
+-struct unformattable_pointer : unformattable {};
+-
+-template <typename Char> struct string_value {
+-  const Char* data;
+-  size_t size;
+-};
+-
+-template <typename Char> struct named_arg_value {
+-  const named_arg_info<Char>* data;
+-  size_t size;
+-};
+-
+-template <typename Context> struct custom_value {
+-  using parse_context = typename Context::parse_context_type;
+-  void* value;
+-  void (*format)(void* arg, parse_context& parse_ctx, Context& ctx);
+-};
+-
+-// A formatting argument value.
+-template <typename Context> class value {
+- public:
+-  using char_type = typename Context::char_type;
+-
+-  union {
+-    monostate no_value;
+-    int int_value;
+-    unsigned uint_value;
+-    long long long_long_value;
+-    unsigned long long ulong_long_value;
+-    int128_t int128_value;
+-    uint128_t uint128_value;
+-    bool bool_value;
+-    char_type char_value;
+-    float float_value;
+-    double double_value;
+-    long double long_double_value;
+-    const void* pointer;
+-    string_value<char_type> string;
+-    custom_value<Context> custom;
+-    named_arg_value<char_type> named_args;
+-  };
+-
+-  constexpr FMT_INLINE value() : no_value() {}
+-  constexpr FMT_INLINE value(int val) : int_value(val) {}
+-  constexpr FMT_INLINE value(unsigned val) : uint_value(val) {}
+-  constexpr FMT_INLINE value(long long val) : long_long_value(val) {}
+-  constexpr FMT_INLINE value(unsigned long long val) : ulong_long_value(val) {}
+-  FMT_INLINE value(int128_t val) : int128_value(val) {}
+-  FMT_INLINE value(uint128_t val) : uint128_value(val) {}
+-  constexpr FMT_INLINE value(float val) : float_value(val) {}
+-  constexpr FMT_INLINE value(double val) : double_value(val) {}
+-  FMT_INLINE value(long double val) : long_double_value(val) {}
+-  constexpr FMT_INLINE value(bool val) : bool_value(val) {}
+-  constexpr FMT_INLINE value(char_type val) : char_value(val) {}
+-  FMT_CONSTEXPR FMT_INLINE value(const char_type* val) {
+-    string.data = val;
+-    if (is_constant_evaluated()) string.size = {};
+-  }
+-  FMT_CONSTEXPR FMT_INLINE value(basic_string_view<char_type> val) {
+-    string.data = val.data();
+-    string.size = val.size();
+-  }
+-  FMT_INLINE value(const void* val) : pointer(val) {}
+-  FMT_INLINE value(const named_arg_info<char_type>* args, size_t size)
+-      : named_args{args, size} {}
+-
+-  template <typename T> FMT_CONSTEXPR FMT_INLINE value(T& val) {
+-    using value_type = remove_cvref_t<T>;
+-    custom.value = const_cast<value_type*>(&val);
+-    // Get the formatter type through the context to allow different contexts
+-    // have different extension points, e.g. `formatter<T>` for `format` and
+-    // `printf_formatter<T>` for `printf`.
+-    custom.format = format_custom_arg<
+-        value_type,
+-        conditional_t<has_formatter<value_type, Context>::value,
+-                      typename Context::template formatter_type<value_type>,
+-                      fallback_formatter<value_type, char_type>>>;
+-  }
+-  value(unformattable);
+-  value(unformattable_char);
+-  value(unformattable_const);
+-  value(unformattable_pointer);
+-
+- private:
+-  // Formats an argument of a custom type, such as a user-defined class.
+-  template <typename T, typename Formatter>
+-  static void format_custom_arg(void* arg,
+-                                typename Context::parse_context_type& parse_ctx,
+-                                Context& ctx) {
+-    auto f = Formatter();
+-    parse_ctx.advance_to(f.parse(parse_ctx));
+-    using qualified_type =
+-        conditional_t<has_const_formatter<T, Context>(), const T, T>;
+-    ctx.advance_to(f.format(*static_cast<qualified_type*>(arg), ctx));
+-  }
+-};
+-
+-template <typename Context, typename T>
+-FMT_CONSTEXPR auto make_arg(const T& value) -> basic_format_arg<Context>;
+-
+-// To minimize the number of types we need to deal with, long is translated
+-// either to int or to long long depending on its size.
+-enum { long_short = sizeof(long) == sizeof(int) };
+-using long_type = conditional_t<long_short, int, long long>;
+-using ulong_type = conditional_t<long_short, unsigned, unsigned long long>;
+-
+-// Maps formatting arguments to core types.
+-// arg_mapper reports errors by returning unformattable instead of using
+-// static_assert because it's used in the is_formattable trait.
+-template <typename Context> struct arg_mapper {
+-  using char_type = typename Context::char_type;
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(signed char val) -> int { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned char val) -> unsigned {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(short val) -> int { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned short val) -> unsigned {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(int val) -> int { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned val) -> unsigned { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(long val) -> long_type { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned long val) -> ulong_type {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(long long val) -> long long { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned long long val)
+-      -> unsigned long long {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(int128_t val) -> int128_t { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(uint128_t val) -> uint128_t { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(bool val) -> bool { return val; }
+-
+-  template <typename T, FMT_ENABLE_IF(std::is_same<T, char>::value ||
+-                                      std::is_same<T, char_type>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(T val) -> char_type {
+-    return val;
+-  }
+-  template <typename T, enable_if_t<(std::is_same<T, wchar_t>::value ||
+-#ifdef __cpp_char8_t
+-                                     std::is_same<T, char8_t>::value ||
+-#endif
+-                                     std::is_same<T, char16_t>::value ||
+-                                     std::is_same<T, char32_t>::value) &&
+-                                        !std::is_same<T, char_type>::value,
+-                                    int> = 0>
+-  FMT_CONSTEXPR FMT_INLINE auto map(T) -> unformattable_char {
+-    return {};
+-  }
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(float val) -> float { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(double val) -> double { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(long double val) -> long double {
+-    return val;
+-  }
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(char_type* val) -> const char_type* {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(const char_type* val) -> const char_type* {
+-    return val;
+-  }
+-  template <typename T,
+-            FMT_ENABLE_IF(is_string<T>::value && !std::is_pointer<T>::value &&
+-                          std::is_same<char_type, char_t<T>>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
+-      -> basic_string_view<char_type> {
+-    return to_string_view(val);
+-  }
+-  template <typename T,
+-            FMT_ENABLE_IF(is_string<T>::value && !std::is_pointer<T>::value &&
+-                          !std::is_same<char_type, char_t<T>>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T&) -> unformattable_char {
+-    return {};
+-  }
+-  template <typename T,
+-            FMT_ENABLE_IF(
+-                std::is_constructible<basic_string_view<char_type>, T>::value &&
+-                !is_string<T>::value && !has_formatter<T, Context>::value &&
+-                !has_fallback_formatter<T, char_type>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
+-      -> basic_string_view<char_type> {
+-    return basic_string_view<char_type>(val);
+-  }
+-  template <
+-      typename T,
+-      FMT_ENABLE_IF(
+-          std::is_constructible<std_string_view<char_type>, T>::value &&
+-          !std::is_constructible<basic_string_view<char_type>, T>::value &&
+-          !is_string<T>::value && !has_formatter<T, Context>::value &&
+-          !has_fallback_formatter<T, char_type>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
+-      -> basic_string_view<char_type> {
+-    return std_string_view<char_type>(val);
+-  }
+-
+-  using cstring_result = conditional_t<std::is_same<char_type, char>::value,
+-                                       const char*, unformattable_pointer>;
+-
+-  FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(const signed char* val)
+-      -> cstring_result {
+-    return map(reinterpret_cast<const char*>(val));
+-  }
+-  FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(const unsigned char* val)
+-      -> cstring_result {
+-    return map(reinterpret_cast<const char*>(val));
+-  }
+-  FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(signed char* val)
+-      -> cstring_result {
+-    return map(reinterpret_cast<const char*>(val));
+-  }
+-  FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(unsigned char* val)
+-      -> cstring_result {
+-    return map(reinterpret_cast<const char*>(val));
+-  }
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(void* val) -> const void* { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(const void* val) -> const void* {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(std::nullptr_t val) -> const void* {
+-    return val;
+-  }
+-
+-  // We use SFINAE instead of a const T* parameter to avoid conflicting with
+-  // the C array overload.
+-  template <
+-      typename T,
+-      FMT_ENABLE_IF(
+-          std::is_member_pointer<T>::value ||
+-          std::is_function<typename std::remove_pointer<T>::type>::value ||
+-          (std::is_convertible<const T&, const void*>::value &&
+-           !std::is_convertible<const T&, const char_type*>::value))>
+-  FMT_CONSTEXPR auto map(const T&) -> unformattable_pointer {
+-    return {};
+-  }
+-
+-  template <typename T, std::size_t N,
+-            FMT_ENABLE_IF(!std::is_same<T, wchar_t>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T (&values)[N]) -> const T (&)[N] {
+-    return values;
+-  }
+-
+-  template <typename T,
+-            FMT_ENABLE_IF(
+-                std::is_enum<T>::value&& std::is_convertible<T, int>::value &&
+-                !has_formatter<T, Context>::value &&
+-                !has_fallback_formatter<T, char_type>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
+-      -> decltype(std::declval<arg_mapper>().map(
+-          static_cast<typename std::underlying_type<T>::type>(val))) {
+-    return map(static_cast<typename std::underlying_type<T>::type>(val));
+-  }
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(detail::byte val) -> unsigned {
+-    return map(static_cast<unsigned char>(val));
+-  }
+-
+-  template <typename T, typename U = remove_cvref_t<T>>
+-  struct formattable
+-      : bool_constant<has_const_formatter<U, Context>() ||
+-                      !std::is_const<remove_reference_t<T>>::value ||
+-                      has_fallback_formatter<U, char_type>::value> {};
+-
+-#if FMT_MSC_VER != 0 && FMT_MSC_VER < 1910
+-  // Workaround a bug in MSVC.
+-  template <typename T> FMT_CONSTEXPR FMT_INLINE auto do_map(T&& val) -> T& {
+-    return val;
+-  }
+-#else
+-  template <typename T, FMT_ENABLE_IF(formattable<T>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto do_map(T&& val) -> T& {
+-    return val;
+-  }
+-  template <typename T, FMT_ENABLE_IF(!formattable<T>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto do_map(T&&) -> unformattable_const {
+-    return {};
+-  }
+-#endif
+-
+-  template <typename T, typename U = remove_cvref_t<T>,
+-            FMT_ENABLE_IF(!is_string<U>::value && !is_char<U>::value &&
+-                          !std::is_array<U>::value &&
+-                          (has_formatter<U, Context>::value ||
+-                           has_fallback_formatter<U, char_type>::value))>
+-  FMT_CONSTEXPR FMT_INLINE auto map(T&& val)
+-      -> decltype(this->do_map(std::forward<T>(val))) {
+-    return do_map(std::forward<T>(val));
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(is_named_arg<T>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& named_arg)
+-      -> decltype(std::declval<arg_mapper>().map(named_arg.value)) {
+-    return map(named_arg.value);
+-  }
+-
+-  auto map(...) -> unformattable { return {}; }
+-};
+-
+-// A type constant after applying arg_mapper<Context>.
+-template <typename T, typename Context>
+-using mapped_type_constant =
+-    type_constant<decltype(arg_mapper<Context>().map(std::declval<const T&>())),
+-                  typename Context::char_type>;
+-
+-enum { packed_arg_bits = 4 };
+-// Maximum number of arguments with packed types.
+-enum { max_packed_args = 62 / packed_arg_bits };
+-enum : unsigned long long { is_unpacked_bit = 1ULL << 63 };
+-enum : unsigned long long { has_named_args_bit = 1ULL << 62 };
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-// An output iterator that appends to a buffer.
+-// It is used to reduce symbol sizes for the common case.
+-class appender : public std::back_insert_iterator<detail::buffer<char>> {
+-  using base = std::back_insert_iterator<detail::buffer<char>>;
+-
+-  template <typename T>
+-  friend auto get_buffer(appender out) -> detail::buffer<char>& {
+-    return detail::get_container(out);
+-  }
+-
+- public:
+-  using std::back_insert_iterator<detail::buffer<char>>::back_insert_iterator;
+-  appender(base it) FMT_NOEXCEPT : base(it) {}
+-  using _Unchecked_type = appender;  // Mark iterator as checked.
+-
+-  auto operator++() FMT_NOEXCEPT -> appender& { return *this; }
+-
+-  auto operator++(int) FMT_NOEXCEPT -> appender { return *this; }
+-};
+-
+-// A formatting argument. It is a trivially copyable/constructible type to
+-// allow storage in basic_memory_buffer.
+-template <typename Context> class basic_format_arg {
+- private:
+-  detail::value<Context> value_;
+-  detail::type type_;
+-
+-  template <typename ContextType, typename T>
+-  friend FMT_CONSTEXPR auto detail::make_arg(const T& value)
+-      -> basic_format_arg<ContextType>;
+-
+-  template <typename Visitor, typename Ctx>
+-  friend FMT_CONSTEXPR auto visit_format_arg(Visitor&& vis,
+-                                             const basic_format_arg<Ctx>& arg)
+-      -> decltype(vis(0));
+-
+-  friend class basic_format_args<Context>;
+-  friend class dynamic_format_arg_store<Context>;
+-
+-  using char_type = typename Context::char_type;
+-
+-  template <typename T, typename Char, size_t NUM_ARGS, size_t NUM_NAMED_ARGS>
+-  friend struct detail::arg_data;
+-
+-  basic_format_arg(const detail::named_arg_info<char_type>* args, size_t size)
+-      : value_(args, size) {}
+-
+- public:
+-  class handle {
+-   public:
+-    explicit handle(detail::custom_value<Context> custom) : custom_(custom) {}
+-
+-    void format(typename Context::parse_context_type& parse_ctx,
+-                Context& ctx) const {
+-      custom_.format(custom_.value, parse_ctx, ctx);
+-    }
+-
+-   private:
+-    detail::custom_value<Context> custom_;
+-  };
+-
+-  constexpr basic_format_arg() : type_(detail::type::none_type) {}
+-
+-  constexpr explicit operator bool() const FMT_NOEXCEPT {
+-    return type_ != detail::type::none_type;
+-  }
+-
+-  auto type() const -> detail::type { return type_; }
+-
+-  auto is_integral() const -> bool { return detail::is_integral_type(type_); }
+-  auto is_arithmetic() const -> bool {
+-    return detail::is_arithmetic_type(type_);
+-  }
+-};
+-
+-/**
+-  \rst
+-  Visits an argument dispatching to the appropriate visit method based on
+-  the argument type. For example, if the argument type is ``double`` then
+-  ``vis(value)`` will be called with the value of type ``double``.
+-  \endrst
+- */
+-template <typename Visitor, typename Context>
+-FMT_CONSTEXPR FMT_INLINE auto visit_format_arg(
+-    Visitor&& vis, const basic_format_arg<Context>& arg) -> decltype(vis(0)) {
+-  switch (arg.type_) {
+-  case detail::type::none_type:
+-    break;
+-  case detail::type::int_type:
+-    return vis(arg.value_.int_value);
+-  case detail::type::uint_type:
+-    return vis(arg.value_.uint_value);
+-  case detail::type::long_long_type:
+-    return vis(arg.value_.long_long_value);
+-  case detail::type::ulong_long_type:
+-    return vis(arg.value_.ulong_long_value);
+-  case detail::type::int128_type:
+-    return vis(detail::convert_for_visit(arg.value_.int128_value));
+-  case detail::type::uint128_type:
+-    return vis(detail::convert_for_visit(arg.value_.uint128_value));
+-  case detail::type::bool_type:
+-    return vis(arg.value_.bool_value);
+-  case detail::type::char_type:
+-    return vis(arg.value_.char_value);
+-  case detail::type::float_type:
+-    return vis(arg.value_.float_value);
+-  case detail::type::double_type:
+-    return vis(arg.value_.double_value);
+-  case detail::type::long_double_type:
+-    return vis(arg.value_.long_double_value);
+-  case detail::type::cstring_type:
+-    return vis(arg.value_.string.data);
+-  case detail::type::string_type:
+-    using sv = basic_string_view<typename Context::char_type>;
+-    return vis(sv(arg.value_.string.data, arg.value_.string.size));
+-  case detail::type::pointer_type:
+-    return vis(arg.value_.pointer);
+-  case detail::type::custom_type:
+-    return vis(typename basic_format_arg<Context>::handle(arg.value_.custom));
+-  }
+-  return vis(monostate());
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename Char, typename InputIt>
+-auto copy_str(InputIt begin, InputIt end, appender out) -> appender {
+-  get_container(out).append(begin, end);
+-  return out;
+-}
+-
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 500
+-// A workaround for gcc 4.8 to make void_t work in a SFINAE context.
+-template <typename... Ts> struct void_t_impl { using type = void; };
+-template <typename... Ts>
+-using void_t = typename detail::void_t_impl<Ts...>::type;
+-#else
+-template <typename...> using void_t = void;
+-#endif
+-
+-template <typename It, typename T, typename Enable = void>
+-struct is_output_iterator : std::false_type {};
+-
+-template <typename It, typename T>
+-struct is_output_iterator<
+-    It, T,
+-    void_t<typename std::iterator_traits<It>::iterator_category,
+-           decltype(*std::declval<It>() = std::declval<T>())>>
+-    : std::true_type {};
+-
+-template <typename OutputIt>
+-struct is_back_insert_iterator : std::false_type {};
+-template <typename Container>
+-struct is_back_insert_iterator<std::back_insert_iterator<Container>>
+-    : std::true_type {};
+-
+-template <typename OutputIt>
+-struct is_contiguous_back_insert_iterator : std::false_type {};
+-template <typename Container>
+-struct is_contiguous_back_insert_iterator<std::back_insert_iterator<Container>>
+-    : is_contiguous<Container> {};
+-template <>
+-struct is_contiguous_back_insert_iterator<appender> : std::true_type {};
+-
+-// A type-erased reference to an std::locale to avoid heavy <locale> include.
+-class locale_ref {
+- private:
+-  const void* locale_;  // A type-erased pointer to std::locale.
+-
+- public:
+-  constexpr locale_ref() : locale_(nullptr) {}
+-  template <typename Locale> explicit locale_ref(const Locale& loc);
+-
+-  explicit operator bool() const FMT_NOEXCEPT { return locale_ != nullptr; }
+-
+-  template <typename Locale> auto get() const -> Locale;
+-};
+-
+-template <typename> constexpr auto encode_types() -> unsigned long long {
+-  return 0;
+-}
+-
+-template <typename Context, typename Arg, typename... Args>
+-constexpr auto encode_types() -> unsigned long long {
+-  return static_cast<unsigned>(mapped_type_constant<Arg, Context>::value) |
+-         (encode_types<Context, Args...>() << packed_arg_bits);
+-}
+-
+-template <typename Context, typename T>
+-FMT_CONSTEXPR auto make_arg(const T& value) -> basic_format_arg<Context> {
+-  basic_format_arg<Context> arg;
+-  arg.type_ = mapped_type_constant<T, Context>::value;
+-  arg.value_ = arg_mapper<Context>().map(value);
+-  return arg;
+-}
+-
+-// The type template parameter is there to avoid an ODR violation when using
+-// a fallback formatter in one translation unit and an implicit conversion in
+-// another (not recommended).
+-template <bool IS_PACKED, typename Context, type, typename T,
+-          FMT_ENABLE_IF(IS_PACKED)>
+-FMT_CONSTEXPR FMT_INLINE auto make_arg(T&& val) -> value<Context> {
+-  const auto& arg = arg_mapper<Context>().map(std::forward<T>(val));
+-
+-  constexpr bool formattable_char =
+-      !std::is_same<decltype(arg), const unformattable_char&>::value;
+-  static_assert(formattable_char, "Mixing character types is disallowed.");
+-
+-  constexpr bool formattable_const =
+-      !std::is_same<decltype(arg), const unformattable_const&>::value;
+-  static_assert(formattable_const, "Cannot format a const argument.");
+-
+-  // Formatting of arbitrary pointers is disallowed. If you want to output
+-  // a pointer cast it to "void *" or "const void *". In particular, this
+-  // forbids formatting of "[const] volatile char *" which is printed as bool
+-  // by iostreams.
+-  constexpr bool formattable_pointer =
+-      !std::is_same<decltype(arg), const unformattable_pointer&>::value;
+-  static_assert(formattable_pointer,
+-                "Formatting of non-void pointers is disallowed.");
+-
+-  constexpr bool formattable =
+-      !std::is_same<decltype(arg), const unformattable&>::value;
+-  static_assert(
+-      formattable,
+-      "Cannot format an argument. To make type T formattable provide a "
+-      "formatter<T> specialization: https://fmt.dev/latest/api.html#udt");
+-  return {arg};
+-}
+-
+-template <bool IS_PACKED, typename Context, type, typename T,
+-          FMT_ENABLE_IF(!IS_PACKED)>
+-inline auto make_arg(const T& value) -> basic_format_arg<Context> {
+-  return make_arg<Context>(value);
+-}
+-FMT_END_DETAIL_NAMESPACE
+-
+-// Formatting context.
+-template <typename OutputIt, typename Char> class basic_format_context {
+- public:
+-  /** The character type for the output. */
+-  using char_type = Char;
+-
+- private:
+-  OutputIt out_;
+-  basic_format_args<basic_format_context> args_;
+-  detail::locale_ref loc_;
+-
+- public:
+-  using iterator = OutputIt;
+-  using format_arg = basic_format_arg<basic_format_context>;
+-  using parse_context_type = basic_format_parse_context<Char>;
+-  template <typename T> using formatter_type = formatter<T, char_type>;
+-
+-  basic_format_context(basic_format_context&&) = default;
+-  basic_format_context(const basic_format_context&) = delete;
+-  void operator=(const basic_format_context&) = delete;
+-  /**
+-   Constructs a ``basic_format_context`` object. References to the arguments are
+-   stored in the object so make sure they have appropriate lifetimes.
+-   */
+-  constexpr basic_format_context(
+-      OutputIt out, basic_format_args<basic_format_context> ctx_args,
+-      detail::locale_ref loc = detail::locale_ref())
+-      : out_(out), args_(ctx_args), loc_(loc) {}
+-
+-  constexpr auto arg(int id) const -> format_arg { return args_.get(id); }
+-  FMT_CONSTEXPR auto arg(basic_string_view<char_type> name) -> format_arg {
+-    return args_.get(name);
+-  }
+-  FMT_CONSTEXPR auto arg_id(basic_string_view<char_type> name) -> int {
+-    return args_.get_id(name);
+-  }
+-  auto args() const -> const basic_format_args<basic_format_context>& {
+-    return args_;
+-  }
+-
+-  FMT_CONSTEXPR auto error_handler() -> detail::error_handler { return {}; }
+-  void on_error(const char* message) { error_handler().on_error(message); }
+-
+-  // Returns an iterator to the beginning of the output range.
+-  FMT_CONSTEXPR auto out() -> iterator { return out_; }
+-
+-  // Advances the begin iterator to ``it``.
+-  void advance_to(iterator it) {
+-    if (!detail::is_back_insert_iterator<iterator>()) out_ = it;
+-  }
+-
+-  FMT_CONSTEXPR auto locale() -> detail::locale_ref { return loc_; }
+-};
+-
+-template <typename Char>
+-using buffer_context =
+-    basic_format_context<detail::buffer_appender<Char>, Char>;
+-using format_context = buffer_context<char>;
+-
+-// Workaround an alias issue: https://stackoverflow.com/q/62767544/471164.
+-#define FMT_BUFFER_CONTEXT(Char) \
+-  basic_format_context<detail::buffer_appender<Char>, Char>
+-
+-template <typename T, typename Char = char>
+-using is_formattable = bool_constant<
+-    !std::is_base_of<detail::unformattable,
+-                     decltype(detail::arg_mapper<buffer_context<Char>>().map(
+-                         std::declval<T>()))>::value &&
+-    !detail::has_fallback_formatter<T, Char>::value>;
+-
+-/**
+-  \rst
+-  An array of references to arguments. It can be implicitly converted into
+-  `~fmt::basic_format_args` for passing into type-erased formatting functions
+-  such as `~fmt::vformat`.
+-  \endrst
+- */
+-template <typename Context, typename... Args>
+-class format_arg_store
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-    // Workaround a GCC template argument substitution bug.
+-    : public basic_format_args<Context>
+-#endif
+-{
+- private:
+-  static const size_t num_args = sizeof...(Args);
+-  static const size_t num_named_args = detail::count_named_args<Args...>();
+-  static const bool is_packed = num_args <= detail::max_packed_args;
+-
+-  using value_type = conditional_t<is_packed, detail::value<Context>,
+-                                   basic_format_arg<Context>>;
+-
+-  detail::arg_data<value_type, typename Context::char_type, num_args,
+-                   num_named_args>
+-      data_;
+-
+-  friend class basic_format_args<Context>;
+-
+-  static constexpr unsigned long long desc =
+-      (is_packed ? detail::encode_types<Context, Args...>()
+-                 : detail::is_unpacked_bit | num_args) |
+-      (num_named_args != 0
+-           ? static_cast<unsigned long long>(detail::has_named_args_bit)
+-           : 0);
+-
+- public:
+-  template <typename... T>
+-  FMT_CONSTEXPR FMT_INLINE format_arg_store(T&&... args)
+-      :
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-        basic_format_args<Context>(*this),
+-#endif
+-        data_{detail::make_arg<
+-            is_packed, Context,
+-            detail::mapped_type_constant<remove_cvref_t<T>, Context>::value>(
+-            std::forward<T>(args))...} {
+-    detail::init_named_args(data_.named_args(), 0, 0, args...);
+-  }
+-};
+-
+-/**
+-  \rst
+-  Constructs a `~fmt::format_arg_store` object that contains references to
+-  arguments and can be implicitly converted to `~fmt::format_args`. `Context`
+-  can be omitted in which case it defaults to `~fmt::context`.
+-  See `~fmt::arg` for lifetime considerations.
+-  \endrst
+- */
+-template <typename Context = format_context, typename... Args>
+-constexpr auto make_format_args(Args&&... args)
+-    -> format_arg_store<Context, remove_cvref_t<Args>...> {
+-  return {std::forward<Args>(args)...};
+-}
+-
+-/**
+-  \rst
+-  Returns a named argument to be used in a formatting function.
+-  It should only be used in a call to a formatting function or
+-  `dynamic_format_arg_store::push_back`.
+-
+-  **Example**::
+-
+-    fmt::print("Elapsed time: {s:.2f} seconds", fmt::arg("s", 1.23));
+-  \endrst
+- */
+-template <typename Char, typename T>
+-inline auto arg(const Char* name, const T& arg) -> detail::named_arg<Char, T> {
+-  static_assert(!detail::is_named_arg<T>(), "nested named arguments");
+-  return {name, arg};
+-}
+-
+-/**
+-  \rst
+-  A view of a collection of formatting arguments. To avoid lifetime issues it
+-  should only be used as a parameter type in type-erased functions such as
+-  ``vformat``::
+-
+-    void vlog(string_view format_str, format_args args);  // OK
+-    format_args args = make_format_args(42);  // Error: dangling reference
+-  \endrst
+- */
+-template <typename Context> class basic_format_args {
+- public:
+-  using size_type = int;
+-  using format_arg = basic_format_arg<Context>;
+-
+- private:
+-  // A descriptor that contains information about formatting arguments.
+-  // If the number of arguments is less or equal to max_packed_args then
+-  // argument types are passed in the descriptor. This reduces binary code size
+-  // per formatting function call.
+-  unsigned long long desc_;
+-  union {
+-    // If is_packed() returns true then argument values are stored in values_;
+-    // otherwise they are stored in args_. This is done to improve cache
+-    // locality and reduce compiled code size since storing larger objects
+-    // may require more code (at least on x86-64) even if the same amount of
+-    // data is actually copied to stack. It saves ~10% on the bloat test.
+-    const detail::value<Context>* values_;
+-    const format_arg* args_;
+-  };
+-
+-  constexpr auto is_packed() const -> bool {
+-    return (desc_ & detail::is_unpacked_bit) == 0;
+-  }
+-  auto has_named_args() const -> bool {
+-    return (desc_ & detail::has_named_args_bit) != 0;
+-  }
+-
+-  FMT_CONSTEXPR auto type(int index) const -> detail::type {
+-    int shift = index * detail::packed_arg_bits;
+-    unsigned int mask = (1 << detail::packed_arg_bits) - 1;
+-    return static_cast<detail::type>((desc_ >> shift) & mask);
+-  }
+-
+-  constexpr FMT_INLINE basic_format_args(unsigned long long desc,
+-                                         const detail::value<Context>* values)
+-      : desc_(desc), values_(values) {}
+-  constexpr basic_format_args(unsigned long long desc, const format_arg* args)
+-      : desc_(desc), args_(args) {}
+-
+- public:
+-  constexpr basic_format_args() : desc_(0), args_(nullptr) {}
+-
+-  /**
+-   \rst
+-   Constructs a `basic_format_args` object from `~fmt::format_arg_store`.
+-   \endrst
+-   */
+-  template <typename... Args>
+-  constexpr FMT_INLINE basic_format_args(
+-      const format_arg_store<Context, Args...>& store)
+-      : basic_format_args(format_arg_store<Context, Args...>::desc,
+-                          store.data_.args()) {}
+-
+-  /**
+-   \rst
+-   Constructs a `basic_format_args` object from
+-   `~fmt::dynamic_format_arg_store`.
+-   \endrst
+-   */
+-  constexpr FMT_INLINE basic_format_args(
+-      const dynamic_format_arg_store<Context>& store)
+-      : basic_format_args(store.get_types(), store.data()) {}
+-
+-  /**
+-   \rst
+-   Constructs a `basic_format_args` object from a dynamic set of arguments.
+-   \endrst
+-   */
+-  constexpr basic_format_args(const format_arg* args, int count)
+-      : basic_format_args(detail::is_unpacked_bit | detail::to_unsigned(count),
+-                          args) {}
+-
+-  /** Returns the argument with the specified id. */
+-  FMT_CONSTEXPR auto get(int id) const -> format_arg {
+-    format_arg arg;
+-    if (!is_packed()) {
+-      if (id < max_size()) arg = args_[id];
+-      return arg;
+-    }
+-    if (id >= detail::max_packed_args) return arg;
+-    arg.type_ = type(id);
+-    if (arg.type_ == detail::type::none_type) return arg;
+-    arg.value_ = values_[id];
+-    return arg;
+-  }
+-
+-  template <typename Char>
+-  auto get(basic_string_view<Char> name) const -> format_arg {
+-    int id = get_id(name);
+-    return id >= 0 ? get(id) : format_arg();
+-  }
+-
+-  template <typename Char>
+-  auto get_id(basic_string_view<Char> name) const -> int {
+-    if (!has_named_args()) return -1;
+-    const auto& named_args =
+-        (is_packed() ? values_[-1] : args_[-1].value_).named_args;
+-    for (size_t i = 0; i < named_args.size; ++i) {
+-      if (named_args.data[i].name == name) return named_args.data[i].id;
+-    }
+-    return -1;
+-  }
+-
+-  auto max_size() const -> int {
+-    unsigned long long max_packed = detail::max_packed_args;
+-    return static_cast<int>(is_packed() ? max_packed
+-                                        : desc_ & ~detail::is_unpacked_bit);
+-  }
+-};
+-
+-/** An alias to ``basic_format_args<format_context>``. */
+-// A separate type would result in shorter symbols but break ABI compatibility
+-// between clang and gcc on ARM (#1919).
+-using format_args = basic_format_args<format_context>;
+-
+-// We cannot use enum classes as bit fields because of a gcc bug
+-// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414.
+-namespace align {
+-enum type { none, left, right, center, numeric };
+-}
+-using align_t = align::type;
+-namespace sign {
+-enum type { none, minus, plus, space };
+-}
+-using sign_t = sign::type;
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// Workaround an array initialization issue in gcc 4.8.
+-template <typename Char> struct fill_t {
+- private:
+-  enum { max_size = 4 };
+-  Char data_[max_size] = {Char(' '), Char(0), Char(0), Char(0)};
+-  unsigned char size_ = 1;
+-
+- public:
+-  FMT_CONSTEXPR void operator=(basic_string_view<Char> s) {
+-    auto size = s.size();
+-    if (size > max_size) return throw_format_error("invalid fill");
+-    for (size_t i = 0; i < size; ++i) data_[i] = s[i];
+-    size_ = static_cast<unsigned char>(size);
+-  }
+-
+-  constexpr auto size() const -> size_t { return size_; }
+-  constexpr auto data() const -> const Char* { return data_; }
+-
+-  FMT_CONSTEXPR auto operator[](size_t index) -> Char& { return data_[index]; }
+-  FMT_CONSTEXPR auto operator[](size_t index) const -> const Char& {
+-    return data_[index];
+-  }
+-};
+-FMT_END_DETAIL_NAMESPACE
+-
+-enum class presentation_type : unsigned char {
+-  none,
+-  // Integer types should go first,
+-  dec,             // 'd'
+-  oct,             // 'o'
+-  hex_lower,       // 'x'
+-  hex_upper,       // 'X'
+-  bin_lower,       // 'b'
+-  bin_upper,       // 'B'
+-  hexfloat_lower,  // 'a'
+-  hexfloat_upper,  // 'A'
+-  exp_lower,       // 'e'
+-  exp_upper,       // 'E'
+-  fixed_lower,     // 'f'
+-  fixed_upper,     // 'F'
+-  general_lower,   // 'g'
+-  general_upper,   // 'G'
+-  chr,             // 'c'
+-  string,          // 's'
+-  pointer          // 'p'
+-};
+-
+-// Format specifiers for built-in and string types.
+-template <typename Char> struct basic_format_specs {
+-  int width;
+-  int precision;
+-  presentation_type type;
+-  align_t align : 4;
+-  sign_t sign : 3;
+-  bool alt : 1;  // Alternate form ('#').
+-  bool localized : 1;
+-  detail::fill_t<Char> fill;
+-
+-  constexpr basic_format_specs()
+-      : width(0),
+-        precision(-1),
+-        type(presentation_type::none),
+-        align(align::none),
+-        sign(sign::none),
+-        alt(false),
+-        localized(false) {}
+-};
+-
+-using format_specs = basic_format_specs<char>;
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-enum class arg_id_kind { none, index, name };
+-
+-// An argument reference.
+-template <typename Char> struct arg_ref {
+-  FMT_CONSTEXPR arg_ref() : kind(arg_id_kind::none), val() {}
+-
+-  FMT_CONSTEXPR explicit arg_ref(int index)
+-      : kind(arg_id_kind::index), val(index) {}
+-  FMT_CONSTEXPR explicit arg_ref(basic_string_view<Char> name)
+-      : kind(arg_id_kind::name), val(name) {}
+-
+-  FMT_CONSTEXPR auto operator=(int idx) -> arg_ref& {
+-    kind = arg_id_kind::index;
+-    val.index = idx;
+-    return *this;
+-  }
+-
+-  arg_id_kind kind;
+-  union value {
+-    FMT_CONSTEXPR value(int id = 0) : index{id} {}
+-    FMT_CONSTEXPR value(basic_string_view<Char> n) : name(n) {}
+-
+-    int index;
+-    basic_string_view<Char> name;
+-  } val;
+-};
+-
+-// Format specifiers with width and precision resolved at formatting rather
+-// than parsing time to allow re-using the same parsed specifiers with
+-// different sets of arguments (precompilation of format strings).
+-template <typename Char>
+-struct dynamic_format_specs : basic_format_specs<Char> {
+-  arg_ref<Char> width_ref;
+-  arg_ref<Char> precision_ref;
+-};
+-
+-struct auto_id {};
+-
+-// A format specifier handler that sets fields in basic_format_specs.
+-template <typename Char> class specs_setter {
+- protected:
+-  basic_format_specs<Char>& specs_;
+-
+- public:
+-  explicit FMT_CONSTEXPR specs_setter(basic_format_specs<Char>& specs)
+-      : specs_(specs) {}
+-
+-  FMT_CONSTEXPR specs_setter(const specs_setter& other)
+-      : specs_(other.specs_) {}
+-
+-  FMT_CONSTEXPR void on_align(align_t align) { specs_.align = align; }
+-  FMT_CONSTEXPR void on_fill(basic_string_view<Char> fill) {
+-    specs_.fill = fill;
+-  }
+-  FMT_CONSTEXPR void on_sign(sign_t s) { specs_.sign = s; }
+-  FMT_CONSTEXPR void on_hash() { specs_.alt = true; }
+-  FMT_CONSTEXPR void on_localized() { specs_.localized = true; }
+-
+-  FMT_CONSTEXPR void on_zero() {
+-    if (specs_.align == align::none) specs_.align = align::numeric;
+-    specs_.fill[0] = Char('0');
+-  }
+-
+-  FMT_CONSTEXPR void on_width(int width) { specs_.width = width; }
+-  FMT_CONSTEXPR void on_precision(int precision) {
+-    specs_.precision = precision;
+-  }
+-  FMT_CONSTEXPR void end_precision() {}
+-
+-  FMT_CONSTEXPR void on_type(presentation_type type) { specs_.type = type; }
+-};
+-
+-// Format spec handler that saves references to arguments representing dynamic
+-// width and precision to be resolved at formatting time.
+-template <typename ParseContext>
+-class dynamic_specs_handler
+-    : public specs_setter<typename ParseContext::char_type> {
+- public:
+-  using char_type = typename ParseContext::char_type;
+-
+-  FMT_CONSTEXPR dynamic_specs_handler(dynamic_format_specs<char_type>& specs,
+-                                      ParseContext& ctx)
+-      : specs_setter<char_type>(specs), specs_(specs), context_(ctx) {}
+-
+-  FMT_CONSTEXPR dynamic_specs_handler(const dynamic_specs_handler& other)
+-      : specs_setter<char_type>(other),
+-        specs_(other.specs_),
+-        context_(other.context_) {}
+-
+-  template <typename Id> FMT_CONSTEXPR void on_dynamic_width(Id arg_id) {
+-    specs_.width_ref = make_arg_ref(arg_id);
+-  }
+-
+-  template <typename Id> FMT_CONSTEXPR void on_dynamic_precision(Id arg_id) {
+-    specs_.precision_ref = make_arg_ref(arg_id);
+-  }
+-
+-  FMT_CONSTEXPR void on_error(const char* message) {
+-    context_.on_error(message);
+-  }
+-
+- private:
+-  dynamic_format_specs<char_type>& specs_;
+-  ParseContext& context_;
+-
+-  using arg_ref_type = arg_ref<char_type>;
+-
+-  FMT_CONSTEXPR auto make_arg_ref(int arg_id) -> arg_ref_type {
+-    context_.check_arg_id(arg_id);
+-    return arg_ref_type(arg_id);
+-  }
+-
+-  FMT_CONSTEXPR auto make_arg_ref(auto_id) -> arg_ref_type {
+-    return arg_ref_type(context_.next_arg_id());
+-  }
+-
+-  FMT_CONSTEXPR auto make_arg_ref(basic_string_view<char_type> arg_id)
+-      -> arg_ref_type {
+-    context_.check_arg_id(arg_id);
+-    basic_string_view<char_type> format_str(
+-        context_.begin(), to_unsigned(context_.end() - context_.begin()));
+-    return arg_ref_type(arg_id);
+-  }
+-};
+-
+-template <typename Char> constexpr bool is_ascii_letter(Char c) {
+-  return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');
+-}
+-
+-// Converts a character to ASCII. Returns a number > 127 on conversion failure.
+-template <typename Char, FMT_ENABLE_IF(std::is_integral<Char>::value)>
+-constexpr auto to_ascii(Char value) -> Char {
+-  return value;
+-}
+-template <typename Char, FMT_ENABLE_IF(std::is_enum<Char>::value)>
+-constexpr auto to_ascii(Char value) ->
+-    typename std::underlying_type<Char>::type {
+-  return value;
+-}
+-
+-template <typename Char>
+-FMT_CONSTEXPR auto code_point_length(const Char* begin) -> int {
+-  if (const_check(sizeof(Char) != 1)) return 1;
+-  auto lengths =
+-      "\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0\0\0\0\0\0\2\2\2\2\3\3\4";
+-  int len = lengths[static_cast<unsigned char>(*begin) >> 3];
+-
+-  // Compute the pointer to the next character early so that the next
+-  // iteration can start working on the next character. Neither Clang
+-  // nor GCC figure out this reordering on their own.
+-  return len + !len;
+-}
+-
+-// Return the result via the out param to workaround gcc bug 77539.
+-template <bool IS_CONSTEXPR, typename T, typename Ptr = const T*>
+-FMT_CONSTEXPR auto find(Ptr first, Ptr last, T value, Ptr& out) -> bool {
+-  for (out = first; out != last; ++out) {
+-    if (*out == value) return true;
+-  }
+-  return false;
+-}
+-
+-template <>
+-inline auto find<false, char>(const char* first, const char* last, char value,
+-                              const char*& out) -> bool {
+-  out = static_cast<const char*>(
+-      std::memchr(first, value, to_unsigned(last - first)));
+-  return out != nullptr;
+-}
+-
+-// Parses the range [begin, end) as an unsigned integer. This function assumes
+-// that the range is non-empty and the first character is a digit.
+-template <typename Char>
+-FMT_CONSTEXPR auto parse_nonnegative_int(const Char*& begin, const Char* end,
+-                                         int error_value) noexcept -> int {
+-  FMT_ASSERT(begin != end && '0' <= *begin && *begin <= '9', "");
+-  unsigned value = 0, prev = 0;
+-  auto p = begin;
+-  do {
+-    prev = value;
+-    value = value * 10 + unsigned(*p - '0');
+-    ++p;
+-  } while (p != end && '0' <= *p && *p <= '9');
+-  auto num_digits = p - begin;
+-  begin = p;
+-  if (num_digits <= std::numeric_limits<int>::digits10)
+-    return static_cast<int>(value);
+-  // Check for overflow.
+-  const unsigned max = to_unsigned((std::numeric_limits<int>::max)());
+-  return num_digits == std::numeric_limits<int>::digits10 + 1 &&
+-                 prev * 10ull + unsigned(p[-1] - '0') <= max
+-             ? static_cast<int>(value)
+-             : error_value;
+-}
+-
+-// Parses fill and alignment.
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR auto parse_align(const Char* begin, const Char* end,
+-                               Handler&& handler) -> const Char* {
+-  FMT_ASSERT(begin != end, "");
+-  auto align = align::none;
+-  auto p = begin + code_point_length(begin);
+-  if (p >= end) p = begin;
+-  for (;;) {
+-    switch (to_ascii(*p)) {
+-    case '<':
+-      align = align::left;
+-      break;
+-    case '>':
+-      align = align::right;
+-      break;
+-    case '^':
+-      align = align::center;
+-      break;
+-    default:
+-      break;
+-    }
+-    if (align != align::none) {
+-      if (p != begin) {
+-        auto c = *begin;
+-        if (c == '{')
+-          return handler.on_error("invalid fill character '{'"), begin;
+-        handler.on_fill(basic_string_view<Char>(begin, to_unsigned(p - begin)));
+-        begin = p + 1;
+-      } else
+-        ++begin;
+-      handler.on_align(align);
+-      break;
+-    } else if (p == begin) {
+-      break;
+-    }
+-    p = begin;
+-  }
+-  return begin;
+-}
+-
+-template <typename Char> FMT_CONSTEXPR bool is_name_start(Char c) {
+-  return ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || '_' == c;
+-}
+-
+-template <typename Char, typename IDHandler>
+-FMT_CONSTEXPR auto do_parse_arg_id(const Char* begin, const Char* end,
+-                                   IDHandler&& handler) -> const Char* {
+-  FMT_ASSERT(begin != end, "");
+-  Char c = *begin;
+-  if (c >= '0' && c <= '9') {
+-    int index = 0;
+-    if (c != '0')
+-      index =
+-          parse_nonnegative_int(begin, end, (std::numeric_limits<int>::max)());
+-    else
+-      ++begin;
+-    if (begin == end || (*begin != '}' && *begin != ':'))
+-      handler.on_error("invalid format string");
+-    else
+-      handler(index);
+-    return begin;
+-  }
+-  if (!is_name_start(c)) {
+-    handler.on_error("invalid format string");
+-    return begin;
+-  }
+-  auto it = begin;
+-  do {
+-    ++it;
+-  } while (it != end && (is_name_start(c = *it) || ('0' <= c && c <= '9')));
+-  handler(basic_string_view<Char>(begin, to_unsigned(it - begin)));
+-  return it;
+-}
+-
+-template <typename Char, typename IDHandler>
+-FMT_CONSTEXPR FMT_INLINE auto parse_arg_id(const Char* begin, const Char* end,
+-                                           IDHandler&& handler) -> const Char* {
+-  Char c = *begin;
+-  if (c != '}' && c != ':') return do_parse_arg_id(begin, end, handler);
+-  handler();
+-  return begin;
+-}
+-
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR auto parse_width(const Char* begin, const Char* end,
+-                               Handler&& handler) -> const Char* {
+-  using detail::auto_id;
+-  struct width_adapter {
+-    Handler& handler;
+-
+-    FMT_CONSTEXPR void operator()() { handler.on_dynamic_width(auto_id()); }
+-    FMT_CONSTEXPR void operator()(int id) { handler.on_dynamic_width(id); }
+-    FMT_CONSTEXPR void operator()(basic_string_view<Char> id) {
+-      handler.on_dynamic_width(id);
+-    }
+-    FMT_CONSTEXPR void on_error(const char* message) {
+-      if (message) handler.on_error(message);
+-    }
+-  };
+-
+-  FMT_ASSERT(begin != end, "");
+-  if ('0' <= *begin && *begin <= '9') {
+-    int width = parse_nonnegative_int(begin, end, -1);
+-    if (width != -1)
+-      handler.on_width(width);
+-    else
+-      handler.on_error("number is too big");
+-  } else if (*begin == '{') {
+-    ++begin;
+-    if (begin != end) begin = parse_arg_id(begin, end, width_adapter{handler});
+-    if (begin == end || *begin != '}')
+-      return handler.on_error("invalid format string"), begin;
+-    ++begin;
+-  }
+-  return begin;
+-}
+-
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR auto parse_precision(const Char* begin, const Char* end,
+-                                   Handler&& handler) -> const Char* {
+-  using detail::auto_id;
+-  struct precision_adapter {
+-    Handler& handler;
+-
+-    FMT_CONSTEXPR void operator()() { handler.on_dynamic_precision(auto_id()); }
+-    FMT_CONSTEXPR void operator()(int id) { handler.on_dynamic_precision(id); }
+-    FMT_CONSTEXPR void operator()(basic_string_view<Char> id) {
+-      handler.on_dynamic_precision(id);
+-    }
+-    FMT_CONSTEXPR void on_error(const char* message) {
+-      if (message) handler.on_error(message);
+-    }
+-  };
+-
+-  ++begin;
+-  auto c = begin != end ? *begin : Char();
+-  if ('0' <= c && c <= '9') {
+-    auto precision = parse_nonnegative_int(begin, end, -1);
+-    if (precision != -1)
+-      handler.on_precision(precision);
+-    else
+-      handler.on_error("number is too big");
+-  } else if (c == '{') {
+-    ++begin;
+-    if (begin != end)
+-      begin = parse_arg_id(begin, end, precision_adapter{handler});
+-    if (begin == end || *begin++ != '}')
+-      return handler.on_error("invalid format string"), begin;
+-  } else {
+-    return handler.on_error("missing precision specifier"), begin;
+-  }
+-  handler.end_precision();
+-  return begin;
+-}
+-
+-template <typename Char>
+-FMT_CONSTEXPR auto parse_presentation_type(Char type) -> presentation_type {
+-  switch (to_ascii(type)) {
+-  case 'd':
+-    return presentation_type::dec;
+-  case 'o':
+-    return presentation_type::oct;
+-  case 'x':
+-    return presentation_type::hex_lower;
+-  case 'X':
+-    return presentation_type::hex_upper;
+-  case 'b':
+-    return presentation_type::bin_lower;
+-  case 'B':
+-    return presentation_type::bin_upper;
+-  case 'a':
+-    return presentation_type::hexfloat_lower;
+-  case 'A':
+-    return presentation_type::hexfloat_upper;
+-  case 'e':
+-    return presentation_type::exp_lower;
+-  case 'E':
+-    return presentation_type::exp_upper;
+-  case 'f':
+-    return presentation_type::fixed_lower;
+-  case 'F':
+-    return presentation_type::fixed_upper;
+-  case 'g':
+-    return presentation_type::general_lower;
+-  case 'G':
+-    return presentation_type::general_upper;
+-  case 'c':
+-    return presentation_type::chr;
+-  case 's':
+-    return presentation_type::string;
+-  case 'p':
+-    return presentation_type::pointer;
+-  default:
+-    return presentation_type::none;
+-  }
+-}
+-
+-// Parses standard format specifiers and sends notifications about parsed
+-// components to handler.
+-template <typename Char, typename SpecHandler>
+-FMT_CONSTEXPR FMT_INLINE auto parse_format_specs(const Char* begin,
+-                                                 const Char* end,
+-                                                 SpecHandler&& handler)
+-    -> const Char* {
+-  if (1 < end - begin && begin[1] == '}' && is_ascii_letter(*begin) &&
+-      *begin != 'L') {
+-    presentation_type type = parse_presentation_type(*begin++);
+-    if (type == presentation_type::none)
+-      handler.on_error("invalid type specifier");
+-    handler.on_type(type);
+-    return begin;
+-  }
+-
+-  if (begin == end) return begin;
+-
+-  begin = parse_align(begin, end, handler);
+-  if (begin == end) return begin;
+-
+-  // Parse sign.
+-  switch (to_ascii(*begin)) {
+-  case '+':
+-    handler.on_sign(sign::plus);
+-    ++begin;
+-    break;
+-  case '-':
+-    handler.on_sign(sign::minus);
+-    ++begin;
+-    break;
+-  case ' ':
+-    handler.on_sign(sign::space);
+-    ++begin;
+-    break;
+-  default:
+-    break;
+-  }
+-  if (begin == end) return begin;
+-
+-  if (*begin == '#') {
+-    handler.on_hash();
+-    if (++begin == end) return begin;
+-  }
+-
+-  // Parse zero flag.
+-  if (*begin == '0') {
+-    handler.on_zero();
+-    if (++begin == end) return begin;
+-  }
+-
+-  begin = parse_width(begin, end, handler);
+-  if (begin == end) return begin;
+-
+-  // Parse precision.
+-  if (*begin == '.') {
+-    begin = parse_precision(begin, end, handler);
+-    if (begin == end) return begin;
+-  }
+-
+-  if (*begin == 'L') {
+-    handler.on_localized();
+-    ++begin;
+-  }
+-
+-  // Parse type.
+-  if (begin != end && *begin != '}') {
+-    presentation_type type = parse_presentation_type(*begin++);
+-    if (type == presentation_type::none)
+-      handler.on_error("invalid type specifier");
+-    handler.on_type(type);
+-  }
+-  return begin;
+-}
+-
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR auto parse_replacement_field(const Char* begin, const Char* end,
+-                                           Handler&& handler) -> const Char* {
+-  struct id_adapter {
+-    Handler& handler;
+-    int arg_id;
+-
+-    FMT_CONSTEXPR void operator()() { arg_id = handler.on_arg_id(); }
+-    FMT_CONSTEXPR void operator()(int id) { arg_id = handler.on_arg_id(id); }
+-    FMT_CONSTEXPR void operator()(basic_string_view<Char> id) {
+-      arg_id = handler.on_arg_id(id);
+-    }
+-    FMT_CONSTEXPR void on_error(const char* message) {
+-      if (message) handler.on_error(message);
+-    }
+-  };
+-
+-  ++begin;
+-  if (begin == end) return handler.on_error("invalid format string"), end;
+-  if (*begin == '}') {
+-    handler.on_replacement_field(handler.on_arg_id(), begin);
+-  } else if (*begin == '{') {
+-    handler.on_text(begin, begin + 1);
+-  } else {
+-    auto adapter = id_adapter{handler, 0};
+-    begin = parse_arg_id(begin, end, adapter);
+-    Char c = begin != end ? *begin : Char();
+-    if (c == '}') {
+-      handler.on_replacement_field(adapter.arg_id, begin);
+-    } else if (c == ':') {
+-      begin = handler.on_format_specs(adapter.arg_id, begin + 1, end);
+-      if (begin == end || *begin != '}')
+-        return handler.on_error("unknown format specifier"), end;
+-    } else {
+-      return handler.on_error("missing '}' in format string"), end;
+-    }
+-  }
+-  return begin + 1;
+-}
+-
+-template <bool IS_CONSTEXPR, typename Char, typename Handler>
+-FMT_CONSTEXPR FMT_INLINE void parse_format_string(
+-    basic_string_view<Char> format_str, Handler&& handler) {
+-  // Workaround a name-lookup bug in MSVC's modules implementation.
+-  using detail::find;
+-
+-  auto begin = format_str.data();
+-  auto end = begin + format_str.size();
+-  if (end - begin < 32) {
+-    // Use a simple loop instead of memchr for small strings.
+-    const Char* p = begin;
+-    while (p != end) {
+-      auto c = *p++;
+-      if (c == '{') {
+-        handler.on_text(begin, p - 1);
+-        begin = p = parse_replacement_field(p - 1, end, handler);
+-      } else if (c == '}') {
+-        if (p == end || *p != '}')
+-          return handler.on_error("unmatched '}' in format string");
+-        handler.on_text(begin, p);
+-        begin = ++p;
+-      }
+-    }
+-    handler.on_text(begin, end);
+-    return;
+-  }
+-  struct writer {
+-    FMT_CONSTEXPR void operator()(const Char* pbegin, const Char* pend) {
+-      if (pbegin == pend) return;
+-      for (;;) {
+-        const Char* p = nullptr;
+-        if (!find<IS_CONSTEXPR>(pbegin, pend, Char('}'), p))
+-          return handler_.on_text(pbegin, pend);
+-        ++p;
+-        if (p == pend || *p != '}')
+-          return handler_.on_error("unmatched '}' in format string");
+-        handler_.on_text(pbegin, p);
+-        pbegin = p + 1;
+-      }
+-    }
+-    Handler& handler_;
+-  } write{handler};
+-  while (begin != end) {
+-    // Doing two passes with memchr (one for '{' and another for '}') is up to
+-    // 2.5x faster than the naive one-pass implementation on big format strings.
+-    const Char* p = begin;
+-    if (*begin != '{' && !find<IS_CONSTEXPR>(begin + 1, end, Char('{'), p))
+-      return write(begin, end);
+-    write(begin, p);
+-    begin = parse_replacement_field(p, end, handler);
+-  }
+-}
+-
+-template <typename T, typename ParseContext>
+-FMT_CONSTEXPR auto parse_format_specs(ParseContext& ctx)
+-    -> decltype(ctx.begin()) {
+-  using char_type = typename ParseContext::char_type;
+-  using context = buffer_context<char_type>;
+-  using mapped_type = conditional_t<
+-      mapped_type_constant<T, context>::value != type::custom_type,
+-      decltype(arg_mapper<context>().map(std::declval<const T&>())), T>;
+-  auto f = conditional_t<has_formatter<mapped_type, context>::value,
+-                         formatter<mapped_type, char_type>,
+-                         fallback_formatter<T, char_type>>();
+-  return f.parse(ctx);
+-}
+-
+-// A parse context with extra argument id checks. It is only used at compile
+-// time because adding checks at runtime would introduce substantial overhead
+-// and would be redundant since argument ids are checked when arguments are
+-// retrieved anyway.
+-template <typename Char, typename ErrorHandler = error_handler>
+-class compile_parse_context
+-    : public basic_format_parse_context<Char, ErrorHandler> {
+- private:
+-  int num_args_;
+-  using base = basic_format_parse_context<Char, ErrorHandler>;
+-
+- public:
+-  explicit FMT_CONSTEXPR compile_parse_context(
+-      basic_string_view<Char> format_str,
+-      int num_args = (std::numeric_limits<int>::max)(), ErrorHandler eh = {})
+-      : base(format_str, eh), num_args_(num_args) {}
+-
+-  FMT_CONSTEXPR auto next_arg_id() -> int {
+-    int id = base::next_arg_id();
+-    if (id >= num_args_) this->on_error("argument not found");
+-    return id;
+-  }
+-
+-  FMT_CONSTEXPR void check_arg_id(int id) {
+-    base::check_arg_id(id);
+-    if (id >= num_args_) this->on_error("argument not found");
+-  }
+-  using base::check_arg_id;
+-};
+-
+-template <typename ErrorHandler>
+-FMT_CONSTEXPR void check_int_type_spec(presentation_type type,
+-                                       ErrorHandler&& eh) {
+-  if (type > presentation_type::bin_upper && type != presentation_type::chr)
+-    eh.on_error("invalid type specifier");
+-}
+-
+-// Checks char specs and returns true if the type spec is char (and not int).
+-template <typename Char, typename ErrorHandler = error_handler>
+-FMT_CONSTEXPR auto check_char_specs(const basic_format_specs<Char>& specs,
+-                                    ErrorHandler&& eh = {}) -> bool {
+-  if (specs.type != presentation_type::none &&
+-      specs.type != presentation_type::chr) {
+-    check_int_type_spec(specs.type, eh);
+-    return false;
+-  }
+-  if (specs.align == align::numeric || specs.sign != sign::none || specs.alt)
+-    eh.on_error("invalid format specifier for char");
+-  return true;
+-}
+-
+-// A floating-point presentation format.
+-enum class float_format : unsigned char {
+-  general,  // General: exponent notation or fixed point based on magnitude.
+-  exp,      // Exponent notation with the default precision of 6, e.g. 1.2e-3.
+-  fixed,    // Fixed point with the default precision of 6, e.g. 0.0012.
+-  hex
+-};
+-
+-struct float_specs {
+-  int precision;
+-  float_format format : 8;
+-  sign_t sign : 8;
+-  bool upper : 1;
+-  bool locale : 1;
+-  bool binary32 : 1;
+-  bool fallback : 1;
+-  bool showpoint : 1;
+-};
+-
+-template <typename ErrorHandler = error_handler, typename Char>
+-FMT_CONSTEXPR auto parse_float_type_spec(const basic_format_specs<Char>& specs,
+-                                         ErrorHandler&& eh = {})
+-    -> float_specs {
+-  auto result = float_specs();
+-  result.showpoint = specs.alt;
+-  result.locale = specs.localized;
+-  switch (specs.type) {
+-  case presentation_type::none:
+-    result.format = float_format::general;
+-    break;
+-  case presentation_type::general_upper:
+-    result.upper = true;
+-    FMT_FALLTHROUGH;
+-  case presentation_type::general_lower:
+-    result.format = float_format::general;
+-    break;
+-  case presentation_type::exp_upper:
+-    result.upper = true;
+-    FMT_FALLTHROUGH;
+-  case presentation_type::exp_lower:
+-    result.format = float_format::exp;
+-    result.showpoint |= specs.precision != 0;
+-    break;
+-  case presentation_type::fixed_upper:
+-    result.upper = true;
+-    FMT_FALLTHROUGH;
+-  case presentation_type::fixed_lower:
+-    result.format = float_format::fixed;
+-    result.showpoint |= specs.precision != 0;
+-    break;
+-  case presentation_type::hexfloat_upper:
+-    result.upper = true;
+-    FMT_FALLTHROUGH;
+-  case presentation_type::hexfloat_lower:
+-    result.format = float_format::hex;
+-    break;
+-  default:
+-    eh.on_error("invalid type specifier");
+-    break;
+-  }
+-  return result;
+-}
+-
+-template <typename ErrorHandler = error_handler>
+-FMT_CONSTEXPR auto check_cstring_type_spec(presentation_type type,
+-                                           ErrorHandler&& eh = {}) -> bool {
+-  if (type == presentation_type::none || type == presentation_type::string)
+-    return true;
+-  if (type != presentation_type::pointer) eh.on_error("invalid type specifier");
+-  return false;
+-}
+-
+-template <typename ErrorHandler = error_handler>
+-FMT_CONSTEXPR void check_string_type_spec(presentation_type type,
+-                                          ErrorHandler&& eh = {}) {
+-  if (type != presentation_type::none && type != presentation_type::string)
+-    eh.on_error("invalid type specifier");
+-}
+-
+-template <typename ErrorHandler>
+-FMT_CONSTEXPR void check_pointer_type_spec(presentation_type type,
+-                                           ErrorHandler&& eh) {
+-  if (type != presentation_type::none && type != presentation_type::pointer)
+-    eh.on_error("invalid type specifier");
+-}
+-
+-// A parse_format_specs handler that checks if specifiers are consistent with
+-// the argument type.
+-template <typename Handler> class specs_checker : public Handler {
+- private:
+-  detail::type arg_type_;
+-
+-  FMT_CONSTEXPR void require_numeric_argument() {
+-    if (!is_arithmetic_type(arg_type_))
+-      this->on_error("format specifier requires numeric argument");
+-  }
+-
+- public:
+-  FMT_CONSTEXPR specs_checker(const Handler& handler, detail::type arg_type)
+-      : Handler(handler), arg_type_(arg_type) {}
+-
+-  FMT_CONSTEXPR void on_align(align_t align) {
+-    if (align == align::numeric) require_numeric_argument();
+-    Handler::on_align(align);
+-  }
+-
+-  FMT_CONSTEXPR void on_sign(sign_t s) {
+-    require_numeric_argument();
+-    if (is_integral_type(arg_type_) && arg_type_ != type::int_type &&
+-        arg_type_ != type::long_long_type && arg_type_ != type::char_type) {
+-      this->on_error("format specifier requires signed argument");
+-    }
+-    Handler::on_sign(s);
+-  }
+-
+-  FMT_CONSTEXPR void on_hash() {
+-    require_numeric_argument();
+-    Handler::on_hash();
+-  }
+-
+-  FMT_CONSTEXPR void on_localized() {
+-    require_numeric_argument();
+-    Handler::on_localized();
+-  }
+-
+-  FMT_CONSTEXPR void on_zero() {
+-    require_numeric_argument();
+-    Handler::on_zero();
+-  }
+-
+-  FMT_CONSTEXPR void end_precision() {
+-    if (is_integral_type(arg_type_) || arg_type_ == type::pointer_type)
+-      this->on_error("precision not allowed for this argument type");
+-  }
+-};
+-
+-constexpr int invalid_arg_index = -1;
+-
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <int N, typename T, typename... Args, typename Char>
+-constexpr auto get_arg_index_by_name(basic_string_view<Char> name) -> int {
+-  if constexpr (detail::is_statically_named_arg<T>()) {
+-    if (name == T::name) return N;
+-  }
+-  if constexpr (sizeof...(Args) > 0)
+-    return get_arg_index_by_name<N + 1, Args...>(name);
+-  (void)name;  // Workaround an MSVC bug about "unused" parameter.
+-  return invalid_arg_index;
+-}
+-#endif
+-
+-template <typename... Args, typename Char>
+-FMT_CONSTEXPR auto get_arg_index_by_name(basic_string_view<Char> name) -> int {
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-  if constexpr (sizeof...(Args) > 0)
+-    return get_arg_index_by_name<0, Args...>(name);
+-#endif
+-  (void)name;
+-  return invalid_arg_index;
+-}
+-
+-template <typename Char, typename ErrorHandler, typename... Args>
+-class format_string_checker {
+- private:
+-  using parse_context_type = compile_parse_context<Char, ErrorHandler>;
+-  enum { num_args = sizeof...(Args) };
+-
+-  // Format specifier parsing function.
+-  using parse_func = const Char* (*)(parse_context_type&);
+-
+-  parse_context_type context_;
+-  parse_func parse_funcs_[num_args > 0 ? num_args : 1];
+-
+- public:
+-  explicit FMT_CONSTEXPR format_string_checker(
+-      basic_string_view<Char> format_str, ErrorHandler eh)
+-      : context_(format_str, num_args, eh),
+-        parse_funcs_{&parse_format_specs<Args, parse_context_type>...} {}
+-
+-  FMT_CONSTEXPR void on_text(const Char*, const Char*) {}
+-
+-  FMT_CONSTEXPR auto on_arg_id() -> int { return context_.next_arg_id(); }
+-  FMT_CONSTEXPR auto on_arg_id(int id) -> int {
+-    return context_.check_arg_id(id), id;
+-  }
+-  FMT_CONSTEXPR auto on_arg_id(basic_string_view<Char> id) -> int {
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-    auto index = get_arg_index_by_name<Args...>(id);
+-    if (index == invalid_arg_index) on_error("named argument is not found");
+-    return context_.check_arg_id(index), index;
+-#else
+-    (void)id;
+-    on_error("compile-time checks for named arguments require C++20 support");
+-    return 0;
+-#endif
+-  }
+-
+-  FMT_CONSTEXPR void on_replacement_field(int, const Char*) {}
+-
+-  FMT_CONSTEXPR auto on_format_specs(int id, const Char* begin, const Char*)
+-      -> const Char* {
+-    context_.advance_to(context_.begin() + (begin - &*context_.begin()));
+-    // id >= 0 check is a workaround for gcc 10 bug (#2065).
+-    return id >= 0 && id < num_args ? parse_funcs_[id](context_) : begin;
+-  }
+-
+-  FMT_CONSTEXPR void on_error(const char* message) {
+-    context_.on_error(message);
+-  }
+-};
+-
+-template <typename... Args, typename S,
+-          enable_if_t<(is_compile_string<S>::value), int>>
+-void check_format_string(S format_str) {
+-  FMT_CONSTEXPR auto s = to_string_view(format_str);
+-  using checker = format_string_checker<typename S::char_type, error_handler,
+-                                        remove_cvref_t<Args>...>;
+-  FMT_CONSTEXPR bool invalid_format =
+-      (parse_format_string<true>(s, checker(s, {})), true);
+-  ignore_unused(invalid_format);
+-}
+-
+-template <typename Char>
+-void vformat_to(
+-    buffer<Char>& buf, basic_string_view<Char> fmt,
+-    basic_format_args<FMT_BUFFER_CONTEXT(type_identity_t<Char>)> args,
+-    locale_ref loc = {});
+-
+-FMT_API void vprint_mojibake(std::FILE*, string_view, format_args);
+-#ifndef _WIN32
+-inline void vprint_mojibake(std::FILE*, string_view, format_args) {}
+-#endif
+-FMT_END_DETAIL_NAMESPACE
+-
+-// A formatter specialization for the core types corresponding to detail::type
+-// constants.
+-template <typename T, typename Char>
+-struct formatter<T, Char,
+-                 enable_if_t<detail::type_constant<T, Char>::value !=
+-                             detail::type::custom_type>> {
+- private:
+-  detail::dynamic_format_specs<Char> specs_;
+-
+- public:
+-  // Parses format specifiers stopping either at the end of the range or at the
+-  // terminating '}'.
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    auto begin = ctx.begin(), end = ctx.end();
+-    if (begin == end) return begin;
+-    using handler_type = detail::dynamic_specs_handler<ParseContext>;
+-    auto type = detail::type_constant<T, Char>::value;
+-    auto checker =
+-        detail::specs_checker<handler_type>(handler_type(specs_, ctx), type);
+-    auto it = detail::parse_format_specs(begin, end, checker);
+-    auto eh = ctx.error_handler();
+-    switch (type) {
+-    case detail::type::none_type:
+-      FMT_ASSERT(false, "invalid argument type");
+-      break;
+-    case detail::type::bool_type:
+-      if (specs_.type == presentation_type::none ||
+-          specs_.type == presentation_type::string) {
+-        break;
+-      }
+-      FMT_FALLTHROUGH;
+-    case detail::type::int_type:
+-    case detail::type::uint_type:
+-    case detail::type::long_long_type:
+-    case detail::type::ulong_long_type:
+-    case detail::type::int128_type:
+-    case detail::type::uint128_type:
+-      detail::check_int_type_spec(specs_.type, eh);
+-      break;
+-    case detail::type::char_type:
+-      detail::check_char_specs(specs_, eh);
+-      break;
+-    case detail::type::float_type:
+-      if (detail::const_check(FMT_USE_FLOAT))
+-        detail::parse_float_type_spec(specs_, eh);
+-      else
+-        FMT_ASSERT(false, "float support disabled");
+-      break;
+-    case detail::type::double_type:
+-      if (detail::const_check(FMT_USE_DOUBLE))
+-        detail::parse_float_type_spec(specs_, eh);
+-      else
+-        FMT_ASSERT(false, "double support disabled");
+-      break;
+-    case detail::type::long_double_type:
+-      if (detail::const_check(FMT_USE_LONG_DOUBLE))
+-        detail::parse_float_type_spec(specs_, eh);
+-      else
+-        FMT_ASSERT(false, "long double support disabled");
+-      break;
+-    case detail::type::cstring_type:
+-      detail::check_cstring_type_spec(specs_.type, eh);
+-      break;
+-    case detail::type::string_type:
+-      detail::check_string_type_spec(specs_.type, eh);
+-      break;
+-    case detail::type::pointer_type:
+-      detail::check_pointer_type_spec(specs_.type, eh);
+-      break;
+-    case detail::type::custom_type:
+-      // Custom format specifiers are checked in parse functions of
+-      // formatter specializations.
+-      break;
+-    }
+-    return it;
+-  }
+-
+-  template <typename FormatContext>
+-  FMT_CONSTEXPR auto format(const T& val, FormatContext& ctx) const
+-      -> decltype(ctx.out());
+-};
+-
+-template <typename Char> struct basic_runtime { basic_string_view<Char> str; };
+-
+-/** A compile-time format string. */
+-template <typename Char, typename... Args> class basic_format_string {
+- private:
+-  basic_string_view<Char> str_;
+-
+- public:
+-  template <typename S,
+-            FMT_ENABLE_IF(
+-                std::is_convertible<const S&, basic_string_view<Char>>::value)>
+-  FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
+-    static_assert(
+-        detail::count<
+-            (std::is_base_of<detail::view, remove_reference_t<Args>>::value &&
+-             std::is_reference<Args>::value)...>() == 0,
+-        "passing views as lvalues is disallowed");
+-#ifdef FMT_HAS_CONSTEVAL
+-    if constexpr (detail::count_named_args<Args...>() ==
+-                  detail::count_statically_named_args<Args...>()) {
+-      using checker = detail::format_string_checker<Char, detail::error_handler,
+-                                                    remove_cvref_t<Args>...>;
+-      detail::parse_format_string<true>(str_, checker(s, {}));
+-    }
+-#else
+-    detail::check_format_string<Args...>(s);
+-#endif
+-  }
+-  basic_format_string(basic_runtime<Char> r) : str_(r.str) {}
+-
+-  FMT_INLINE operator basic_string_view<Char>() const { return str_; }
+-};
+-
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-// Workaround broken conversion on older gcc.
+-template <typename... Args> using format_string = string_view;
+-template <typename S> auto runtime(const S& s) -> basic_string_view<char_t<S>> {
+-  return s;
+-}
+-#else
+-template <typename... Args>
+-using format_string = basic_format_string<char, type_identity_t<Args>...>;
+-/**
+-  \rst
+-  Creates a runtime format string.
+-
+-  **Example**::
+-
+-    // Check format string at runtime instead of compile-time.
+-    fmt::print(fmt::runtime("{:d}"), "I am not a number");
+-  \endrst
+- */
+-template <typename S> auto runtime(const S& s) -> basic_runtime<char_t<S>> {
+-  return {{s}};
+-}
+-#endif
+-
+-FMT_API auto vformat(string_view fmt, format_args args) -> std::string;
+-
+-/**
+-  \rst
+-  Formats ``args`` according to specifications in ``fmt`` and returns the result
+-  as a string.
+-
+-  **Example**::
+-
+-    #include <fmt/core.h>
+-    std::string message = fmt::format("The answer is {}.", 42);
+-  \endrst
+-*/
+-template <typename... T>
+-FMT_NODISCARD FMT_INLINE auto format(format_string<T...> fmt, T&&... args)
+-    -> std::string {
+-  return vformat(fmt, fmt::make_format_args(args...));
+-}
+-
+-/** Formats a string and writes the output to ``out``. */
+-template <typename OutputIt,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value)>
+-auto vformat_to(OutputIt out, string_view fmt, format_args args) -> OutputIt {
+-  using detail::get_buffer;
+-  auto&& buf = get_buffer<char>(out);
+-  detail::vformat_to(buf, fmt, args, {});
+-  return detail::get_iterator(buf);
+-}
+-
+-/**
+- \rst
+- Formats ``args`` according to specifications in ``fmt``, writes the result to
+- the output iterator ``out`` and returns the iterator past the end of the output
+- range. `format_to` does not append a terminating null character.
+-
+- **Example**::
+-
+-   auto out = std::vector<char>();
+-   fmt::format_to(std::back_inserter(out), "{}", 42);
+- \endrst
+- */
+-template <typename OutputIt, typename... T,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value)>
+-FMT_INLINE auto format_to(OutputIt out, format_string<T...> fmt, T&&... args)
+-    -> OutputIt {
+-  return vformat_to(out, fmt, fmt::make_format_args(args...));
+-}
+-
+-template <typename OutputIt> struct format_to_n_result {
+-  /** Iterator past the end of the output range. */
+-  OutputIt out;
+-  /** Total (not truncated) output size. */
+-  size_t size;
+-};
+-
+-template <typename OutputIt, typename... T,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value)>
+-auto vformat_to_n(OutputIt out, size_t n, string_view fmt, format_args args)
+-    -> format_to_n_result<OutputIt> {
+-  using traits = detail::fixed_buffer_traits;
+-  auto buf = detail::iterator_buffer<OutputIt, char, traits>(out, n);
+-  detail::vformat_to(buf, fmt, args, {});
+-  return {buf.out(), buf.count()};
+-}
+-
+-/**
+-  \rst
+-  Formats ``args`` according to specifications in ``fmt``, writes up to ``n``
+-  characters of the result to the output iterator ``out`` and returns the total
+-  (not truncated) output size and the iterator past the end of the output range.
+-  `format_to_n` does not append a terminating null character.
+-  \endrst
+- */
+-template <typename OutputIt, typename... T,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value)>
+-FMT_INLINE auto format_to_n(OutputIt out, size_t n, format_string<T...> fmt,
+-                            T&&... args) -> format_to_n_result<OutputIt> {
+-  return vformat_to_n(out, n, fmt, fmt::make_format_args(args...));
+-}
+-
+-/** Returns the number of chars in the output of ``format(fmt, args...)``. */
+-template <typename... T>
+-FMT_NODISCARD FMT_INLINE auto formatted_size(format_string<T...> fmt,
+-                                             T&&... args) -> size_t {
+-  auto buf = detail::counting_buffer<>();
+-  detail::vformat_to(buf, string_view(fmt), fmt::make_format_args(args...), {});
+-  return buf.count();
+-}
+-
+-FMT_API void vprint(string_view fmt, format_args args);
+-FMT_API void vprint(std::FILE* f, string_view fmt, format_args args);
+-
+-/**
+-  \rst
+-  Formats ``args`` according to specifications in ``fmt`` and writes the output
+-  to ``stdout``.
+-
+-  **Example**::
+-
+-    fmt::print("Elapsed time: {0:.2f} seconds", 1.23);
+-  \endrst
+- */
+-template <typename... T>
+-FMT_INLINE void print(format_string<T...> fmt, T&&... args) {
+-  const auto& vargs = fmt::make_format_args(args...);
+-  return detail::is_utf8() ? vprint(fmt, vargs)
+-                           : detail::vprint_mojibake(stdout, fmt, vargs);
+-}
+-
+-/**
+-  \rst
+-  Formats ``args`` according to specifications in ``fmt`` and writes the
+-  output to the file ``f``.
+-
+-  **Example**::
+-
+-    fmt::print(stderr, "Don't {}!", "panic");
+-  \endrst
+- */
+-template <typename... T>
+-FMT_INLINE void print(std::FILE* f, format_string<T...> fmt, T&&... args) {
+-  const auto& vargs = fmt::make_format_args(args...);
+-  return detail::is_utf8() ? vprint(f, fmt, vargs)
+-                           : detail::vprint_mojibake(f, fmt, vargs);
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_GCC_PRAGMA("GCC pop_options")
+-FMT_END_NAMESPACE
+-
+-#ifdef FMT_HEADER_ONLY
+-#  include "format.h"
+-#endif
+-#endif  // FMT_CORE_H_
+diff --git a/include/dpp/fmt/format-inl.h b/include/dpp/fmt/format-inl.h
+deleted file mode 100644
+index 5902bf1..0000000
+--- a/include/dpp/fmt/format-inl.h
++++ /dev/null
+@@ -1,2643 +0,0 @@
+-// Formatting library for C++ - implementation
+-//
+-// Copyright (c) 2012 - 2016, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_FORMAT_INL_H_
+-#define FMT_FORMAT_INL_H_
+-
+-#include <algorithm>
+-#include <cctype>
+-#include <cerrno>  // errno
+-#include <climits>
+-#include <cmath>
+-#include <cstdarg>
+-#include <cstring>  // std::memmove
+-#include <cwchar>
+-#include <exception>
+-
+-#ifndef FMT_STATIC_THOUSANDS_SEPARATOR
+-#  include <locale>
+-#endif
+-
+-#ifdef _WIN32
+-#  include <io.h>  // _isatty
+-#endif
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-
+-FMT_FUNC void assert_fail(const char* file, int line, const char* message) {
+-  // Use unchecked std::fprintf to avoid triggering another assertion when
+-  // writing to stderr fails
+-  std::fprintf(stderr, "%s:%d: assertion failed: %s", file, line, message);
+-  // Chosen instead of std::abort to satisfy Clang in CUDA mode during device
+-  // code pass.
+-  std::terminate();
+-}
+-
+-FMT_FUNC void throw_format_error(const char* message) {
+-  FMT_THROW(format_error(message));
+-}
+-
+-#ifndef _MSC_VER
+-#  define FMT_SNPRINTF snprintf
+-#else  // _MSC_VER
+-inline int fmt_snprintf(char* buffer, size_t size, const char* format, ...) {
+-  va_list args;
+-  va_start(args, format);
+-  int result = vsnprintf_s(buffer, size, _TRUNCATE, format, args);
+-  va_end(args);
+-  return result;
+-}
+-#  define FMT_SNPRINTF fmt_snprintf
+-#endif  // _MSC_VER
+-
+-FMT_FUNC void format_error_code(detail::buffer<char>& out, int error_code,
+-                                string_view message) FMT_NOEXCEPT {
+-  // Report error code making sure that the output fits into
+-  // inline_buffer_size to avoid dynamic memory allocation and potential
+-  // bad_alloc.
+-  out.try_resize(0);
+-  static const char SEP[] = ": ";
+-  static const char ERROR_STR[] = "error ";
+-  // Subtract 2 to account for terminating null characters in SEP and ERROR_STR.
+-  size_t error_code_size = sizeof(SEP) + sizeof(ERROR_STR) - 2;
+-  auto abs_value = static_cast<uint32_or_64_or_128_t<int>>(error_code);
+-  if (detail::is_negative(error_code)) {
+-    abs_value = 0 - abs_value;
+-    ++error_code_size;
+-  }
+-  error_code_size += detail::to_unsigned(detail::count_digits(abs_value));
+-  auto it = buffer_appender<char>(out);
+-  if (message.size() <= inline_buffer_size - error_code_size)
+-    format_to(it, FMT_STRING("{}{}"), message, SEP);
+-  format_to(it, FMT_STRING("{}{}"), ERROR_STR, error_code);
+-  FMT_ASSERT(out.size() <= inline_buffer_size, "");
+-}
+-
+-FMT_FUNC void report_error(format_func func, int error_code,
+-                           const char* message) FMT_NOEXCEPT {
+-  memory_buffer full_message;
+-  func(full_message, error_code, message);
+-  // Don't use fwrite_fully because the latter may throw.
+-  if (std::fwrite(full_message.data(), full_message.size(), 1, stderr) > 0)
+-    std::fputc('\n', stderr);
+-}
+-
+-// A wrapper around fwrite that throws on error.
+-inline void fwrite_fully(const void* ptr, size_t size, size_t count,
+-                         FILE* stream) {
+-  size_t written = std::fwrite(ptr, size, count, stream);
+-  if (written < count) FMT_THROW(system_error(errno, "cannot write to file"));
+-}
+-
+-#ifndef FMT_STATIC_THOUSANDS_SEPARATOR
+-template <typename Locale>
+-locale_ref::locale_ref(const Locale& loc) : locale_(&loc) {
+-  static_assert(std::is_same<Locale, std::locale>::value, "");
+-}
+-
+-template <typename Locale> Locale locale_ref::get() const {
+-  static_assert(std::is_same<Locale, std::locale>::value, "");
+-  return locale_ ? *static_cast<const std::locale*>(locale_) : std::locale();
+-}
+-
+-template <typename Char>
+-FMT_FUNC auto thousands_sep_impl(locale_ref loc) -> thousands_sep_result<Char> {
+-  auto& facet = std::use_facet<std::numpunct<Char>>(loc.get<std::locale>());
+-  auto grouping = facet.grouping();
+-  auto thousands_sep = grouping.empty() ? Char() : facet.thousands_sep();
+-  return {std::move(grouping), thousands_sep};
+-}
+-template <typename Char> FMT_FUNC Char decimal_point_impl(locale_ref loc) {
+-  return std::use_facet<std::numpunct<Char>>(loc.get<std::locale>())
+-      .decimal_point();
+-}
+-#else
+-template <typename Char>
+-FMT_FUNC auto thousands_sep_impl(locale_ref) -> thousands_sep_result<Char> {
+-  return {"\03", FMT_STATIC_THOUSANDS_SEPARATOR};
+-}
+-template <typename Char> FMT_FUNC Char decimal_point_impl(locale_ref) {
+-  return '.';
+-}
+-#endif
+-}  // namespace detail
+-
+-#if !FMT_MSC_VER
+-FMT_API FMT_FUNC format_error::~format_error() FMT_NOEXCEPT = default;
+-#endif
+-
+-FMT_FUNC std::system_error vsystem_error(int error_code, string_view format_str,
+-                                         format_args args) {
+-  auto ec = std::error_code(error_code, std::generic_category());
+-  return std::system_error(ec, vformat(format_str, args));
+-}
+-
+-namespace detail {
+-
+-template <> FMT_FUNC int count_digits<4>(detail::fallback_uintptr n) {
+-  // fallback_uintptr is always stored in little endian.
+-  int i = static_cast<int>(sizeof(void*)) - 1;
+-  while (i > 0 && n.value[i] == 0) --i;
+-  auto char_digits = std::numeric_limits<unsigned char>::digits / 4;
+-  return i >= 0 ? i * char_digits + count_digits<4, unsigned>(n.value[i]) : 1;
+-}
+-
+-// log10(2) = 0x0.4d104d427de7fbcc...
+-static constexpr uint64_t log10_2_significand = 0x4d104d427de7fbcc;
+-
+-template <typename T = void> struct basic_impl_data {
+-  // Normalized 64-bit significands of pow(10, k), for k = -348, -340, ..., 340.
+-  // These are generated by support/compute-powers.py.
+-  static constexpr uint64_t pow10_significands[87] = {
+-      0xfa8fd5a0081c0288, 0xbaaee17fa23ebf76, 0x8b16fb203055ac76,
+-      0xcf42894a5dce35ea, 0x9a6bb0aa55653b2d, 0xe61acf033d1a45df,
+-      0xab70fe17c79ac6ca, 0xff77b1fcbebcdc4f, 0xbe5691ef416bd60c,
+-      0x8dd01fad907ffc3c, 0xd3515c2831559a83, 0x9d71ac8fada6c9b5,
+-      0xea9c227723ee8bcb, 0xaecc49914078536d, 0x823c12795db6ce57,
+-      0xc21094364dfb5637, 0x9096ea6f3848984f, 0xd77485cb25823ac7,
+-      0xa086cfcd97bf97f4, 0xef340a98172aace5, 0xb23867fb2a35b28e,
+-      0x84c8d4dfd2c63f3b, 0xc5dd44271ad3cdba, 0x936b9fcebb25c996,
+-      0xdbac6c247d62a584, 0xa3ab66580d5fdaf6, 0xf3e2f893dec3f126,
+-      0xb5b5ada8aaff80b8, 0x87625f056c7c4a8b, 0xc9bcff6034c13053,
+-      0x964e858c91ba2655, 0xdff9772470297ebd, 0xa6dfbd9fb8e5b88f,
+-      0xf8a95fcf88747d94, 0xb94470938fa89bcf, 0x8a08f0f8bf0f156b,
+-      0xcdb02555653131b6, 0x993fe2c6d07b7fac, 0xe45c10c42a2b3b06,
+-      0xaa242499697392d3, 0xfd87b5f28300ca0e, 0xbce5086492111aeb,
+-      0x8cbccc096f5088cc, 0xd1b71758e219652c, 0x9c40000000000000,
+-      0xe8d4a51000000000, 0xad78ebc5ac620000, 0x813f3978f8940984,
+-      0xc097ce7bc90715b3, 0x8f7e32ce7bea5c70, 0xd5d238a4abe98068,
+-      0x9f4f2726179a2245, 0xed63a231d4c4fb27, 0xb0de65388cc8ada8,
+-      0x83c7088e1aab65db, 0xc45d1df942711d9a, 0x924d692ca61be758,
+-      0xda01ee641a708dea, 0xa26da3999aef774a, 0xf209787bb47d6b85,
+-      0xb454e4a179dd1877, 0x865b86925b9bc5c2, 0xc83553c5c8965d3d,
+-      0x952ab45cfa97a0b3, 0xde469fbd99a05fe3, 0xa59bc234db398c25,
+-      0xf6c69a72a3989f5c, 0xb7dcbf5354e9bece, 0x88fcf317f22241e2,
+-      0xcc20ce9bd35c78a5, 0x98165af37b2153df, 0xe2a0b5dc971f303a,
+-      0xa8d9d1535ce3b396, 0xfb9b7cd9a4a7443c, 0xbb764c4ca7a44410,
+-      0x8bab8eefb6409c1a, 0xd01fef10a657842c, 0x9b10a4e5e9913129,
+-      0xe7109bfba19c0c9d, 0xac2820d9623bf429, 0x80444b5e7aa7cf85,
+-      0xbf21e44003acdd2d, 0x8e679c2f5e44ff8f, 0xd433179d9c8cb841,
+-      0x9e19db92b4e31ba9, 0xeb96bf6ebadf77d9, 0xaf87023b9bf0ee6b,
+-  };
+-
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-#  pragma GCC diagnostic push
+-#  pragma GCC diagnostic ignored "-Wnarrowing"
+-#endif
+-  // Binary exponents of pow(10, k), for k = -348, -340, ..., 340, corresponding
+-  // to significands above.
+-  static constexpr int16_t pow10_exponents[87] = {
+-      -1220, -1193, -1166, -1140, -1113, -1087, -1060, -1034, -1007, -980, -954,
+-      -927,  -901,  -874,  -847,  -821,  -794,  -768,  -741,  -715,  -688, -661,
+-      -635,  -608,  -582,  -555,  -529,  -502,  -475,  -449,  -422,  -396, -369,
+-      -343,  -316,  -289,  -263,  -236,  -210,  -183,  -157,  -130,  -103, -77,
+-      -50,   -24,   3,     30,    56,    83,    109,   136,   162,   189,  216,
+-      242,   269,   295,   322,   348,   375,   402,   428,   455,   481,  508,
+-      534,   561,   588,   614,   641,   667,   694,   720,   747,   774,  800,
+-      827,   853,   880,   907,   933,   960,   986,   1013,  1039,  1066};
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-#  pragma GCC diagnostic pop
+-#endif
+-
+-  static constexpr uint64_t power_of_10_64[20] = {
+-      1, FMT_POWERS_OF_10(1ULL), FMT_POWERS_OF_10(1000000000ULL),
+-      10000000000000000000ULL};
+-};
+-
+-// This is a struct rather than an alias to avoid shadowing warnings in gcc.
+-struct impl_data : basic_impl_data<> {};
+-
+-#if __cplusplus < 201703L
+-template <typename T>
+-constexpr uint64_t basic_impl_data<T>::pow10_significands[];
+-template <typename T> constexpr int16_t basic_impl_data<T>::pow10_exponents[];
+-template <typename T> constexpr uint64_t basic_impl_data<T>::power_of_10_64[];
+-#endif
+-
+-template <typename T> struct bits {
+-  static FMT_CONSTEXPR_DECL const int value =
+-      static_cast<int>(sizeof(T) * std::numeric_limits<unsigned char>::digits);
+-};
+-
+-// Returns the number of significand bits in Float excluding the implicit bit.
+-template <typename Float> constexpr int num_significand_bits() {
+-  // Subtract 1 to account for an implicit most significant bit in the
+-  // normalized form.
+-  return std::numeric_limits<Float>::digits - 1;
+-}
+-
+-// A floating-point number f * pow(2, e).
+-struct fp {
+-  uint64_t f;
+-  int e;
+-
+-  static constexpr const int num_significand_bits = bits<decltype(f)>::value;
+-
+-  constexpr fp() : f(0), e(0) {}
+-  constexpr fp(uint64_t f_val, int e_val) : f(f_val), e(e_val) {}
+-
+-  // Constructs fp from an IEEE754 floating-point number. It is a template to
+-  // prevent compile errors on systems where n is not IEEE754.
+-  template <typename Float> explicit FMT_CONSTEXPR fp(Float n) { assign(n); }
+-
+-  template <typename Float>
+-  using is_supported = bool_constant<sizeof(Float) == sizeof(uint64_t) ||
+-                                     sizeof(Float) == sizeof(uint32_t)>;
+-
+-  // Assigns d to this and return true iff predecessor is closer than successor.
+-  template <typename Float, FMT_ENABLE_IF(is_supported<Float>::value)>
+-  FMT_CONSTEXPR bool assign(Float n) {
+-    // Assume float is in the format [sign][exponent][significand].
+-    const int num_float_significand_bits =
+-        detail::num_significand_bits<Float>();
+-    const uint64_t implicit_bit = 1ULL << num_float_significand_bits;
+-    const uint64_t significand_mask = implicit_bit - 1;
+-    constexpr bool is_double = sizeof(Float) == sizeof(uint64_t);
+-    auto u = bit_cast<conditional_t<is_double, uint64_t, uint32_t>>(n);
+-    f = u & significand_mask;
+-    const uint64_t exponent_mask = (~0ULL >> 1) & ~significand_mask;
+-    int biased_e =
+-        static_cast<int>((u & exponent_mask) >> num_float_significand_bits);
+-    // The predecessor is closer if n is a normalized power of 2 (f == 0) other
+-    // than the smallest normalized number (biased_e > 1).
+-    bool is_predecessor_closer = f == 0 && biased_e > 1;
+-    if (biased_e != 0)
+-      f += implicit_bit;
+-    else
+-      biased_e = 1;  // Subnormals use biased exponent 1 (min exponent).
+-    const int exponent_bias = std::numeric_limits<Float>::max_exponent - 1;
+-    e = biased_e - exponent_bias - num_float_significand_bits;
+-    return is_predecessor_closer;
+-  }
+-
+-  template <typename Float, FMT_ENABLE_IF(!is_supported<Float>::value)>
+-  bool assign(Float) {
+-    FMT_ASSERT(false, "");
+-    return false;
+-  }
+-};
+-
+-// Normalizes the value converted from double and multiplied by (1 << SHIFT).
+-template <int SHIFT = 0> FMT_CONSTEXPR fp normalize(fp value) {
+-  // Handle subnormals.
+-  const uint64_t implicit_bit = 1ULL << num_significand_bits<double>();
+-  const auto shifted_implicit_bit = implicit_bit << SHIFT;
+-  while ((value.f & shifted_implicit_bit) == 0) {
+-    value.f <<= 1;
+-    --value.e;
+-  }
+-  // Subtract 1 to account for hidden bit.
+-  const auto offset =
+-      fp::num_significand_bits - num_significand_bits<double>() - SHIFT - 1;
+-  value.f <<= offset;
+-  value.e -= offset;
+-  return value;
+-}
+-
+-inline bool operator==(fp x, fp y) { return x.f == y.f && x.e == y.e; }
+-
+-// Computes lhs * rhs / pow(2, 64) rounded to nearest with half-up tie breaking.
+-FMT_CONSTEXPR inline uint64_t multiply(uint64_t lhs, uint64_t rhs) {
+-#if FMT_USE_INT128
+-  auto product = static_cast<__uint128_t>(lhs) * rhs;
+-  auto f = static_cast<uint64_t>(product >> 64);
+-  return (static_cast<uint64_t>(product) & (1ULL << 63)) != 0 ? f + 1 : f;
+-#else
+-  // Multiply 32-bit parts of significands.
+-  uint64_t mask = (1ULL << 32) - 1;
+-  uint64_t a = lhs >> 32, b = lhs & mask;
+-  uint64_t c = rhs >> 32, d = rhs & mask;
+-  uint64_t ac = a * c, bc = b * c, ad = a * d, bd = b * d;
+-  // Compute mid 64-bit of result and round.
+-  uint64_t mid = (bd >> 32) + (ad & mask) + (bc & mask) + (1U << 31);
+-  return ac + (ad >> 32) + (bc >> 32) + (mid >> 32);
+-#endif
+-}
+-
+-FMT_CONSTEXPR inline fp operator*(fp x, fp y) {
+-  return {multiply(x.f, y.f), x.e + y.e + 64};
+-}
+-
+-// Returns a cached power of 10 `c_k = c_k.f * pow(2, c_k.e)` such that its
+-// (binary) exponent satisfies `min_exponent <= c_k.e <= min_exponent + 28`.
+-FMT_CONSTEXPR inline fp get_cached_power(int min_exponent,
+-                                         int& pow10_exponent) {
+-  const int shift = 32;
+-  const auto significand = static_cast<int64_t>(log10_2_significand);
+-  int index = static_cast<int>(
+-      ((min_exponent + fp::num_significand_bits - 1) * (significand >> shift) +
+-       ((int64_t(1) << shift) - 1))  // ceil
+-      >> 32                          // arithmetic shift
+-  );
+-  // Decimal exponent of the first (smallest) cached power of 10.
+-  const int first_dec_exp = -348;
+-  // Difference between 2 consecutive decimal exponents in cached powers of 10.
+-  const int dec_exp_step = 8;
+-  index = (index - first_dec_exp - 1) / dec_exp_step + 1;
+-  pow10_exponent = first_dec_exp + index * dec_exp_step;
+-  return {impl_data::pow10_significands[index],
+-          impl_data::pow10_exponents[index]};
+-}
+-
+-// A simple accumulator to hold the sums of terms in bigint::square if uint128_t
+-// is not available.
+-struct accumulator {
+-  uint64_t lower;
+-  uint64_t upper;
+-
+-  constexpr accumulator() : lower(0), upper(0) {}
+-  constexpr explicit operator uint32_t() const {
+-    return static_cast<uint32_t>(lower);
+-  }
+-
+-  FMT_CONSTEXPR void operator+=(uint64_t n) {
+-    lower += n;
+-    if (lower < n) ++upper;
+-  }
+-  FMT_CONSTEXPR void operator>>=(int shift) {
+-    FMT_ASSERT(shift == 32, "");
+-    (void)shift;
+-    lower = (upper << 32) | (lower >> 32);
+-    upper >>= 32;
+-  }
+-};
+-
+-class bigint {
+- private:
+-  // A bigint is stored as an array of bigits (big digits), with bigit at index
+-  // 0 being the least significant one.
+-  using bigit = uint32_t;
+-  using double_bigit = uint64_t;
+-  enum { bigits_capacity = 32 };
+-  basic_memory_buffer<bigit, bigits_capacity> bigits_;
+-  int exp_;
+-
+-  FMT_CONSTEXPR20 bigit operator[](int index) const {
+-    return bigits_[to_unsigned(index)];
+-  }
+-  FMT_CONSTEXPR20 bigit& operator[](int index) {
+-    return bigits_[to_unsigned(index)];
+-  }
+-
+-  static FMT_CONSTEXPR_DECL const int bigit_bits = bits<bigit>::value;
+-
+-  friend struct formatter<bigint>;
+-
+-  FMT_CONSTEXPR20 void subtract_bigits(int index, bigit other, bigit& borrow) {
+-    auto result = static_cast<double_bigit>((*this)[index]) - other - borrow;
+-    (*this)[index] = static_cast<bigit>(result);
+-    borrow = static_cast<bigit>(result >> (bigit_bits * 2 - 1));
+-  }
+-
+-  FMT_CONSTEXPR20 void remove_leading_zeros() {
+-    int num_bigits = static_cast<int>(bigits_.size()) - 1;
+-    while (num_bigits > 0 && (*this)[num_bigits] == 0) --num_bigits;
+-    bigits_.resize(to_unsigned(num_bigits + 1));
+-  }
+-
+-  // Computes *this -= other assuming aligned bigints and *this >= other.
+-  FMT_CONSTEXPR20 void subtract_aligned(const bigint& other) {
+-    FMT_ASSERT(other.exp_ >= exp_, "unaligned bigints");
+-    FMT_ASSERT(compare(*this, other) >= 0, "");
+-    bigit borrow = 0;
+-    int i = other.exp_ - exp_;
+-    for (size_t j = 0, n = other.bigits_.size(); j != n; ++i, ++j)
+-      subtract_bigits(i, other.bigits_[j], borrow);
+-    while (borrow > 0) subtract_bigits(i, 0, borrow);
+-    remove_leading_zeros();
+-  }
+-
+-  FMT_CONSTEXPR20 void multiply(uint32_t value) {
+-    const double_bigit wide_value = value;
+-    bigit carry = 0;
+-    for (size_t i = 0, n = bigits_.size(); i < n; ++i) {
+-      double_bigit result = bigits_[i] * wide_value + carry;
+-      bigits_[i] = static_cast<bigit>(result);
+-      carry = static_cast<bigit>(result >> bigit_bits);
+-    }
+-    if (carry != 0) bigits_.push_back(carry);
+-  }
+-
+-  FMT_CONSTEXPR20 void multiply(uint64_t value) {
+-    const bigit mask = ~bigit(0);
+-    const double_bigit lower = value & mask;
+-    const double_bigit upper = value >> bigit_bits;
+-    double_bigit carry = 0;
+-    for (size_t i = 0, n = bigits_.size(); i < n; ++i) {
+-      double_bigit result = bigits_[i] * lower + (carry & mask);
+-      carry =
+-          bigits_[i] * upper + (result >> bigit_bits) + (carry >> bigit_bits);
+-      bigits_[i] = static_cast<bigit>(result);
+-    }
+-    while (carry != 0) {
+-      bigits_.push_back(carry & mask);
+-      carry >>= bigit_bits;
+-    }
+-  }
+-
+- public:
+-  FMT_CONSTEXPR20 bigint() : exp_(0) {}
+-  explicit bigint(uint64_t n) { assign(n); }
+-  FMT_CONSTEXPR20 ~bigint() {
+-    FMT_ASSERT(bigits_.capacity() <= bigits_capacity, "");
+-  }
+-
+-  bigint(const bigint&) = delete;
+-  void operator=(const bigint&) = delete;
+-
+-  FMT_CONSTEXPR20 void assign(const bigint& other) {
+-    auto size = other.bigits_.size();
+-    bigits_.resize(size);
+-    auto data = other.bigits_.data();
+-    std::copy(data, data + size, make_checked(bigits_.data(), size));
+-    exp_ = other.exp_;
+-  }
+-
+-  FMT_CONSTEXPR20 void assign(uint64_t n) {
+-    size_t num_bigits = 0;
+-    do {
+-      bigits_[num_bigits++] = n & ~bigit(0);
+-      n >>= bigit_bits;
+-    } while (n != 0);
+-    bigits_.resize(num_bigits);
+-    exp_ = 0;
+-  }
+-
+-  FMT_CONSTEXPR20 int num_bigits() const {
+-    return static_cast<int>(bigits_.size()) + exp_;
+-  }
+-
+-  FMT_NOINLINE FMT_CONSTEXPR20 bigint& operator<<=(int shift) {
+-    FMT_ASSERT(shift >= 0, "");
+-    exp_ += shift / bigit_bits;
+-    shift %= bigit_bits;
+-    if (shift == 0) return *this;
+-    bigit carry = 0;
+-    for (size_t i = 0, n = bigits_.size(); i < n; ++i) {
+-      bigit c = bigits_[i] >> (bigit_bits - shift);
+-      bigits_[i] = (bigits_[i] << shift) + carry;
+-      carry = c;
+-    }
+-    if (carry != 0) bigits_.push_back(carry);
+-    return *this;
+-  }
+-
+-  template <typename Int> FMT_CONSTEXPR20 bigint& operator*=(Int value) {
+-    FMT_ASSERT(value > 0, "");
+-    multiply(uint32_or_64_or_128_t<Int>(value));
+-    return *this;
+-  }
+-
+-  friend FMT_CONSTEXPR20 int compare(const bigint& lhs, const bigint& rhs) {
+-    int num_lhs_bigits = lhs.num_bigits(), num_rhs_bigits = rhs.num_bigits();
+-    if (num_lhs_bigits != num_rhs_bigits)
+-      return num_lhs_bigits > num_rhs_bigits ? 1 : -1;
+-    int i = static_cast<int>(lhs.bigits_.size()) - 1;
+-    int j = static_cast<int>(rhs.bigits_.size()) - 1;
+-    int end = i - j;
+-    if (end < 0) end = 0;
+-    for (; i >= end; --i, --j) {
+-      bigit lhs_bigit = lhs[i], rhs_bigit = rhs[j];
+-      if (lhs_bigit != rhs_bigit) return lhs_bigit > rhs_bigit ? 1 : -1;
+-    }
+-    if (i != j) return i > j ? 1 : -1;
+-    return 0;
+-  }
+-
+-  // Returns compare(lhs1 + lhs2, rhs).
+-  friend FMT_CONSTEXPR20 int add_compare(const bigint& lhs1, const bigint& lhs2,
+-                                         const bigint& rhs) {
+-    int max_lhs_bigits = (std::max)(lhs1.num_bigits(), lhs2.num_bigits());
+-    int num_rhs_bigits = rhs.num_bigits();
+-    if (max_lhs_bigits + 1 < num_rhs_bigits) return -1;
+-    if (max_lhs_bigits > num_rhs_bigits) return 1;
+-    auto get_bigit = [](const bigint& n, int i) -> bigit {
+-      return i >= n.exp_ && i < n.num_bigits() ? n[i - n.exp_] : 0;
+-    };
+-    double_bigit borrow = 0;
+-    int min_exp = (std::min)((std::min)(lhs1.exp_, lhs2.exp_), rhs.exp_);
+-    for (int i = num_rhs_bigits - 1; i >= min_exp; --i) {
+-      double_bigit sum =
+-          static_cast<double_bigit>(get_bigit(lhs1, i)) + get_bigit(lhs2, i);
+-      bigit rhs_bigit = get_bigit(rhs, i);
+-      if (sum > rhs_bigit + borrow) return 1;
+-      borrow = rhs_bigit + borrow - sum;
+-      if (borrow > 1) return -1;
+-      borrow <<= bigit_bits;
+-    }
+-    return borrow != 0 ? -1 : 0;
+-  }
+-
+-  // Assigns pow(10, exp) to this bigint.
+-  FMT_CONSTEXPR20 void assign_pow10(int exp) {
+-    FMT_ASSERT(exp >= 0, "");
+-    if (exp == 0) return assign(1);
+-    // Find the top bit.
+-    int bitmask = 1;
+-    while (exp >= bitmask) bitmask <<= 1;
+-    bitmask >>= 1;
+-    // pow(10, exp) = pow(5, exp) * pow(2, exp). First compute pow(5, exp) by
+-    // repeated squaring and multiplication.
+-    assign(5);
+-    bitmask >>= 1;
+-    while (bitmask != 0) {
+-      square();
+-      if ((exp & bitmask) != 0) *this *= 5;
+-      bitmask >>= 1;
+-    }
+-    *this <<= exp;  // Multiply by pow(2, exp) by shifting.
+-  }
+-
+-  FMT_CONSTEXPR20 void square() {
+-    int num_bigits = static_cast<int>(bigits_.size());
+-    int num_result_bigits = 2 * num_bigits;
+-    basic_memory_buffer<bigit, bigits_capacity> n(std::move(bigits_));
+-    bigits_.resize(to_unsigned(num_result_bigits));
+-    using accumulator_t = conditional_t<FMT_USE_INT128, uint128_t, accumulator>;
+-    auto sum = accumulator_t();
+-    for (int bigit_index = 0; bigit_index < num_bigits; ++bigit_index) {
+-      // Compute bigit at position bigit_index of the result by adding
+-      // cross-product terms n[i] * n[j] such that i + j == bigit_index.
+-      for (int i = 0, j = bigit_index; j >= 0; ++i, --j) {
+-        // Most terms are multiplied twice which can be optimized in the future.
+-        sum += static_cast<double_bigit>(n[i]) * n[j];
+-      }
+-      (*this)[bigit_index] = static_cast<bigit>(sum);
+-      sum >>= bits<bigit>::value;  // Compute the carry.
+-    }
+-    // Do the same for the top half.
+-    for (int bigit_index = num_bigits; bigit_index < num_result_bigits;
+-         ++bigit_index) {
+-      for (int j = num_bigits - 1, i = bigit_index - j; i < num_bigits;)
+-        sum += static_cast<double_bigit>(n[i++]) * n[j--];
+-      (*this)[bigit_index] = static_cast<bigit>(sum);
+-      sum >>= bits<bigit>::value;
+-    }
+-    remove_leading_zeros();
+-    exp_ *= 2;
+-  }
+-
+-  // If this bigint has a bigger exponent than other, adds trailing zero to make
+-  // exponents equal. This simplifies some operations such as subtraction.
+-  FMT_CONSTEXPR20 void align(const bigint& other) {
+-    int exp_difference = exp_ - other.exp_;
+-    if (exp_difference <= 0) return;
+-    int num_bigits = static_cast<int>(bigits_.size());
+-    bigits_.resize(to_unsigned(num_bigits + exp_difference));
+-    for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j)
+-      bigits_[j] = bigits_[i];
+-    std::uninitialized_fill_n(bigits_.data(), exp_difference, 0);
+-    exp_ -= exp_difference;
+-  }
+-
+-  // Divides this bignum by divisor, assigning the remainder to this and
+-  // returning the quotient.
+-  FMT_CONSTEXPR20 int divmod_assign(const bigint& divisor) {
+-    FMT_ASSERT(this != &divisor, "");
+-    if (compare(*this, divisor) < 0) return 0;
+-    FMT_ASSERT(divisor.bigits_[divisor.bigits_.size() - 1u] != 0, "");
+-    align(divisor);
+-    int quotient = 0;
+-    do {
+-      subtract_aligned(divisor);
+-      ++quotient;
+-    } while (compare(*this, divisor) >= 0);
+-    return quotient;
+-  }
+-};
+-
+-enum class round_direction { unknown, up, down };
+-
+-// Given the divisor (normally a power of 10), the remainder = v % divisor for
+-// some number v and the error, returns whether v should be rounded up, down, or
+-// whether the rounding direction can't be determined due to error.
+-// error should be less than divisor / 2.
+-FMT_CONSTEXPR inline round_direction get_round_direction(uint64_t divisor,
+-                                                         uint64_t remainder,
+-                                                         uint64_t error) {
+-  FMT_ASSERT(remainder < divisor, "");  // divisor - remainder won't overflow.
+-  FMT_ASSERT(error < divisor, "");      // divisor - error won't overflow.
+-  FMT_ASSERT(error < divisor - error, "");  // error * 2 won't overflow.
+-  // Round down if (remainder + error) * 2 <= divisor.
+-  if (remainder <= divisor - remainder && error * 2 <= divisor - remainder * 2)
+-    return round_direction::down;
+-  // Round up if (remainder - error) * 2 >= divisor.
+-  if (remainder >= error &&
+-      remainder - error >= divisor - (remainder - error)) {
+-    return round_direction::up;
+-  }
+-  return round_direction::unknown;
+-}
+-
+-namespace digits {
+-enum result {
+-  more,  // Generate more digits.
+-  done,  // Done generating digits.
+-  error  // Digit generation cancelled due to an error.
+-};
+-}
+-
+-struct gen_digits_handler {
+-  char* buf;
+-  int size;
+-  int precision;
+-  int exp10;
+-  bool fixed;
+-
+-  FMT_CONSTEXPR digits::result on_digit(char digit, uint64_t divisor,
+-                                        uint64_t remainder, uint64_t error,
+-                                        bool integral) {
+-    FMT_ASSERT(remainder < divisor, "");
+-    buf[size++] = digit;
+-    if (!integral && error >= remainder) return digits::error;
+-    if (size < precision) return digits::more;
+-    if (!integral) {
+-      // Check if error * 2 < divisor with overflow prevention.
+-      // The check is not needed for the integral part because error = 1
+-      // and divisor > (1 << 32) there.
+-      if (error >= divisor || error >= divisor - error) return digits::error;
+-    } else {
+-      FMT_ASSERT(error == 1 && divisor > 2, "");
+-    }
+-    auto dir = get_round_direction(divisor, remainder, error);
+-    if (dir != round_direction::up)
+-      return dir == round_direction::down ? digits::done : digits::error;
+-    ++buf[size - 1];
+-    for (int i = size - 1; i > 0 && buf[i] > '9'; --i) {
+-      buf[i] = '0';
+-      ++buf[i - 1];
+-    }
+-    if (buf[0] > '9') {
+-      buf[0] = '1';
+-      if (fixed)
+-        buf[size++] = '0';
+-      else
+-        ++exp10;
+-    }
+-    return digits::done;
+-  }
+-};
+-
+-// Generates output using the Grisu digit-gen algorithm.
+-// error: the size of the region (lower, upper) outside of which numbers
+-// definitely do not round to value (Delta in Grisu3).
+-FMT_INLINE FMT_CONSTEXPR20 digits::result grisu_gen_digits(
+-    fp value, uint64_t error, int& exp, gen_digits_handler& handler) {
+-  const fp one(1ULL << -value.e, value.e);
+-  // The integral part of scaled value (p1 in Grisu) = value / one. It cannot be
+-  // zero because it contains a product of two 64-bit numbers with MSB set (due
+-  // to normalization) - 1, shifted right by at most 60 bits.
+-  auto integral = static_cast<uint32_t>(value.f >> -one.e);
+-  FMT_ASSERT(integral != 0, "");
+-  FMT_ASSERT(integral == value.f >> -one.e, "");
+-  // The fractional part of scaled value (p2 in Grisu) c = value % one.
+-  uint64_t fractional = value.f & (one.f - 1);
+-  exp = count_digits(integral);  // kappa in Grisu.
+-  // Non-fixed formats require at least one digit and no precision adjustment.
+-  if (handler.fixed) {
+-    // Adjust fixed precision by exponent because it is relative to decimal
+-    // point.
+-    int precision_offset = exp + handler.exp10;
+-    if (precision_offset > 0 &&
+-        handler.precision > max_value<int>() - precision_offset) {
+-      FMT_THROW(format_error("number is too big"));
+-    }
+-    handler.precision += precision_offset;
+-    // Check if precision is satisfied just by leading zeros, e.g.
+-    // format("{:.2f}", 0.001) gives "0.00" without generating any digits.
+-    if (handler.precision <= 0) {
+-      if (handler.precision < 0) return digits::done;
+-      // Divide by 10 to prevent overflow.
+-      uint64_t divisor = impl_data::power_of_10_64[exp - 1] << -one.e;
+-      auto dir = get_round_direction(divisor, value.f / 10, error * 10);
+-      if (dir == round_direction::unknown) return digits::error;
+-      handler.buf[handler.size++] = dir == round_direction::up ? '1' : '0';
+-      return digits::done;
+-    }
+-  }
+-  // Generate digits for the integral part. This can produce up to 10 digits.
+-  do {
+-    uint32_t digit = 0;
+-    auto divmod_integral = [&](uint32_t divisor) {
+-      digit = integral / divisor;
+-      integral %= divisor;
+-    };
+-    // This optimization by Milo Yip reduces the number of integer divisions by
+-    // one per iteration.
+-    switch (exp) {
+-    case 10:
+-      divmod_integral(1000000000);
+-      break;
+-    case 9:
+-      divmod_integral(100000000);
+-      break;
+-    case 8:
+-      divmod_integral(10000000);
+-      break;
+-    case 7:
+-      divmod_integral(1000000);
+-      break;
+-    case 6:
+-      divmod_integral(100000);
+-      break;
+-    case 5:
+-      divmod_integral(10000);
+-      break;
+-    case 4:
+-      divmod_integral(1000);
+-      break;
+-    case 3:
+-      divmod_integral(100);
+-      break;
+-    case 2:
+-      divmod_integral(10);
+-      break;
+-    case 1:
+-      digit = integral;
+-      integral = 0;
+-      break;
+-    default:
+-      FMT_ASSERT(false, "invalid number of digits");
+-    }
+-    --exp;
+-    auto remainder = (static_cast<uint64_t>(integral) << -one.e) + fractional;
+-    auto result = handler.on_digit(static_cast<char>('0' + digit),
+-                                   impl_data::power_of_10_64[exp] << -one.e,
+-                                   remainder, error, true);
+-    if (result != digits::more) return result;
+-  } while (exp > 0);
+-  // Generate digits for the fractional part.
+-  for (;;) {
+-    fractional *= 10;
+-    error *= 10;
+-    char digit = static_cast<char>('0' + (fractional >> -one.e));
+-    fractional &= one.f - 1;
+-    --exp;
+-    auto result = handler.on_digit(digit, one.f, fractional, error, false);
+-    if (result != digits::more) return result;
+-  }
+-}
+-
+-// A 128-bit integer type used internally,
+-struct uint128_wrapper {
+-  uint128_wrapper() = default;
+-
+-#if FMT_USE_INT128
+-  uint128_t internal_;
+-
+-  constexpr uint128_wrapper(uint64_t high, uint64_t low) FMT_NOEXCEPT
+-      : internal_{static_cast<uint128_t>(low) |
+-                  (static_cast<uint128_t>(high) << 64)} {}
+-
+-  constexpr uint128_wrapper(uint128_t u) : internal_{u} {}
+-
+-  constexpr uint64_t high() const FMT_NOEXCEPT {
+-    return uint64_t(internal_ >> 64);
+-  }
+-  constexpr uint64_t low() const FMT_NOEXCEPT { return uint64_t(internal_); }
+-
+-  uint128_wrapper& operator+=(uint64_t n) FMT_NOEXCEPT {
+-    internal_ += n;
+-    return *this;
+-  }
+-#else
+-  uint64_t high_;
+-  uint64_t low_;
+-
+-  constexpr uint128_wrapper(uint64_t high, uint64_t low) FMT_NOEXCEPT
+-      : high_{high},
+-        low_{low} {}
+-
+-  constexpr uint64_t high() const FMT_NOEXCEPT { return high_; }
+-  constexpr uint64_t low() const FMT_NOEXCEPT { return low_; }
+-
+-  uint128_wrapper& operator+=(uint64_t n) FMT_NOEXCEPT {
+-#  if defined(_MSC_VER) && defined(_M_X64)
+-    unsigned char carry = _addcarry_u64(0, low_, n, &low_);
+-    _addcarry_u64(carry, high_, 0, &high_);
+-    return *this;
+-#  else
+-    uint64_t sum = low_ + n;
+-    high_ += (sum < low_ ? 1 : 0);
+-    low_ = sum;
+-    return *this;
+-#  endif
+-  }
+-#endif
+-};
+-
+-// Implementation of Dragonbox algorithm: https://github.com/jk-jeon/dragonbox.
+-namespace dragonbox {
+-// Computes 128-bit result of multiplication of two 64-bit unsigned integers.
+-inline uint128_wrapper umul128(uint64_t x, uint64_t y) FMT_NOEXCEPT {
+-#if FMT_USE_INT128
+-  return static_cast<uint128_t>(x) * static_cast<uint128_t>(y);
+-#elif defined(_MSC_VER) && defined(_M_X64)
+-  uint128_wrapper result;
+-  result.low_ = _umul128(x, y, &result.high_);
+-  return result;
+-#else
+-  const uint64_t mask = (uint64_t(1) << 32) - uint64_t(1);
+-
+-  uint64_t a = x >> 32;
+-  uint64_t b = x & mask;
+-  uint64_t c = y >> 32;
+-  uint64_t d = y & mask;
+-
+-  uint64_t ac = a * c;
+-  uint64_t bc = b * c;
+-  uint64_t ad = a * d;
+-  uint64_t bd = b * d;
+-
+-  uint64_t intermediate = (bd >> 32) + (ad & mask) + (bc & mask);
+-
+-  return {ac + (intermediate >> 32) + (ad >> 32) + (bc >> 32),
+-          (intermediate << 32) + (bd & mask)};
+-#endif
+-}
+-
+-// Computes upper 64 bits of multiplication of two 64-bit unsigned integers.
+-inline uint64_t umul128_upper64(uint64_t x, uint64_t y) FMT_NOEXCEPT {
+-#if FMT_USE_INT128
+-  auto p = static_cast<uint128_t>(x) * static_cast<uint128_t>(y);
+-  return static_cast<uint64_t>(p >> 64);
+-#elif defined(_MSC_VER) && defined(_M_X64)
+-  return __umulh(x, y);
+-#else
+-  return umul128(x, y).high();
+-#endif
+-}
+-
+-// Computes upper 64 bits of multiplication of a 64-bit unsigned integer and a
+-// 128-bit unsigned integer.
+-inline uint64_t umul192_upper64(uint64_t x, uint128_wrapper y) FMT_NOEXCEPT {
+-  uint128_wrapper g0 = umul128(x, y.high());
+-  g0 += umul128_upper64(x, y.low());
+-  return g0.high();
+-}
+-
+-// Computes upper 32 bits of multiplication of a 32-bit unsigned integer and a
+-// 64-bit unsigned integer.
+-inline uint32_t umul96_upper32(uint32_t x, uint64_t y) FMT_NOEXCEPT {
+-  return static_cast<uint32_t>(umul128_upper64(x, y));
+-}
+-
+-// Computes middle 64 bits of multiplication of a 64-bit unsigned integer and a
+-// 128-bit unsigned integer.
+-inline uint64_t umul192_middle64(uint64_t x, uint128_wrapper y) FMT_NOEXCEPT {
+-  uint64_t g01 = x * y.high();
+-  uint64_t g10 = umul128_upper64(x, y.low());
+-  return g01 + g10;
+-}
+-
+-// Computes lower 64 bits of multiplication of a 32-bit unsigned integer and a
+-// 64-bit unsigned integer.
+-inline uint64_t umul96_lower64(uint32_t x, uint64_t y) FMT_NOEXCEPT {
+-  return x * y;
+-}
+-
+-// Computes floor(log10(pow(2, e))) for e in [-1700, 1700] using the method from
+-// https://fmt.dev/papers/Grisu-Exact.pdf#page=5, section 3.4.
+-inline int floor_log10_pow2(int e) FMT_NOEXCEPT {
+-  FMT_ASSERT(e <= 1700 && e >= -1700, "too large exponent");
+-  const int shift = 22;
+-  return (e * static_cast<int>(log10_2_significand >> (64 - shift))) >> shift;
+-}
+-
+-// Various fast log computations.
+-inline int floor_log2_pow10(int e) FMT_NOEXCEPT {
+-  FMT_ASSERT(e <= 1233 && e >= -1233, "too large exponent");
+-  const uint64_t log2_10_integer_part = 3;
+-  const uint64_t log2_10_fractional_digits = 0x5269e12f346e2bf9;
+-  const int shift_amount = 19;
+-  return (e * static_cast<int>(
+-                  (log2_10_integer_part << shift_amount) |
+-                  (log2_10_fractional_digits >> (64 - shift_amount)))) >>
+-         shift_amount;
+-}
+-inline int floor_log10_pow2_minus_log10_4_over_3(int e) FMT_NOEXCEPT {
+-  FMT_ASSERT(e <= 1700 && e >= -1700, "too large exponent");
+-  const uint64_t log10_4_over_3_fractional_digits = 0x1ffbfc2bbc780375;
+-  const int shift_amount = 22;
+-  return (e * static_cast<int>(log10_2_significand >> (64 - shift_amount)) -
+-          static_cast<int>(log10_4_over_3_fractional_digits >>
+-                           (64 - shift_amount))) >>
+-         shift_amount;
+-}
+-
+-// Returns true iff x is divisible by pow(2, exp).
+-inline bool divisible_by_power_of_2(uint32_t x, int exp) FMT_NOEXCEPT {
+-  FMT_ASSERT(exp >= 1, "");
+-  FMT_ASSERT(x != 0, "");
+-#ifdef FMT_BUILTIN_CTZ
+-  return FMT_BUILTIN_CTZ(x) >= exp;
+-#else
+-  return exp < num_bits<uint32_t>() && x == ((x >> exp) << exp);
+-#endif
+-}
+-inline bool divisible_by_power_of_2(uint64_t x, int exp) FMT_NOEXCEPT {
+-  FMT_ASSERT(exp >= 1, "");
+-  FMT_ASSERT(x != 0, "");
+-#ifdef FMT_BUILTIN_CTZLL
+-  return FMT_BUILTIN_CTZLL(x) >= exp;
+-#else
+-  return exp < num_bits<uint64_t>() && x == ((x >> exp) << exp);
+-#endif
+-}
+-
+-// Table entry type for divisibility test.
+-template <typename T> struct divtest_table_entry {
+-  T mod_inv;
+-  T max_quotient;
+-};
+-
+-// Returns true iff x is divisible by pow(5, exp).
+-inline bool divisible_by_power_of_5(uint32_t x, int exp) FMT_NOEXCEPT {
+-  FMT_ASSERT(exp <= 10, "too large exponent");
+-  static constexpr const divtest_table_entry<uint32_t> divtest_table[] = {
+-      {0x00000001, 0xffffffff}, {0xcccccccd, 0x33333333},
+-      {0xc28f5c29, 0x0a3d70a3}, {0x26e978d5, 0x020c49ba},
+-      {0x3afb7e91, 0x0068db8b}, {0x0bcbe61d, 0x0014f8b5},
+-      {0x68c26139, 0x000431bd}, {0xae8d46a5, 0x0000d6bf},
+-      {0x22e90e21, 0x00002af3}, {0x3a2e9c6d, 0x00000897},
+-      {0x3ed61f49, 0x000001b7}};
+-  return x * divtest_table[exp].mod_inv <= divtest_table[exp].max_quotient;
+-}
+-inline bool divisible_by_power_of_5(uint64_t x, int exp) FMT_NOEXCEPT {
+-  FMT_ASSERT(exp <= 23, "too large exponent");
+-  static constexpr const divtest_table_entry<uint64_t> divtest_table[] = {
+-      {0x0000000000000001, 0xffffffffffffffff},
+-      {0xcccccccccccccccd, 0x3333333333333333},
+-      {0x8f5c28f5c28f5c29, 0x0a3d70a3d70a3d70},
+-      {0x1cac083126e978d5, 0x020c49ba5e353f7c},
+-      {0xd288ce703afb7e91, 0x0068db8bac710cb2},
+-      {0x5d4e8fb00bcbe61d, 0x0014f8b588e368f0},
+-      {0x790fb65668c26139, 0x000431bde82d7b63},
+-      {0xe5032477ae8d46a5, 0x0000d6bf94d5e57a},
+-      {0xc767074b22e90e21, 0x00002af31dc46118},
+-      {0x8e47ce423a2e9c6d, 0x0000089705f4136b},
+-      {0x4fa7f60d3ed61f49, 0x000001b7cdfd9d7b},
+-      {0x0fee64690c913975, 0x00000057f5ff85e5},
+-      {0x3662e0e1cf503eb1, 0x000000119799812d},
+-      {0xa47a2cf9f6433fbd, 0x0000000384b84d09},
+-      {0x54186f653140a659, 0x00000000b424dc35},
+-      {0x7738164770402145, 0x0000000024075f3d},
+-      {0xe4a4d1417cd9a041, 0x000000000734aca5},
+-      {0xc75429d9e5c5200d, 0x000000000170ef54},
+-      {0xc1773b91fac10669, 0x000000000049c977},
+-      {0x26b172506559ce15, 0x00000000000ec1e4},
+-      {0xd489e3a9addec2d1, 0x000000000002f394},
+-      {0x90e860bb892c8d5d, 0x000000000000971d},
+-      {0x502e79bf1b6f4f79, 0x0000000000001e39},
+-      {0xdcd618596be30fe5, 0x000000000000060b}};
+-  return x * divtest_table[exp].mod_inv <= divtest_table[exp].max_quotient;
+-}
+-
+-// Replaces n by floor(n / pow(5, N)) returning true if and only if n is
+-// divisible by pow(5, N).
+-// Precondition: n <= 2 * pow(5, N + 1).
+-template <int N>
+-bool check_divisibility_and_divide_by_pow5(uint32_t& n) FMT_NOEXCEPT {
+-  static constexpr struct {
+-    uint32_t magic_number;
+-    int bits_for_comparison;
+-    uint32_t threshold;
+-    int shift_amount;
+-  } infos[] = {{0xcccd, 16, 0x3333, 18}, {0xa429, 8, 0x0a, 20}};
+-  constexpr auto info = infos[N - 1];
+-  n *= info.magic_number;
+-  const uint32_t comparison_mask = (1u << info.bits_for_comparison) - 1;
+-  bool result = (n & comparison_mask) <= info.threshold;
+-  n >>= info.shift_amount;
+-  return result;
+-}
+-
+-// Computes floor(n / pow(10, N)) for small n and N.
+-// Precondition: n <= pow(10, N + 1).
+-template <int N> uint32_t small_division_by_pow10(uint32_t n) FMT_NOEXCEPT {
+-  static constexpr struct {
+-    uint32_t magic_number;
+-    int shift_amount;
+-    uint32_t divisor_times_10;
+-  } infos[] = {{0xcccd, 19, 100}, {0xa3d8, 22, 1000}};
+-  constexpr auto info = infos[N - 1];
+-  FMT_ASSERT(n <= info.divisor_times_10, "n is too large");
+-  return n * info.magic_number >> info.shift_amount;
+-}
+-
+-// Computes floor(n / 10^(kappa + 1)) (float)
+-inline uint32_t divide_by_10_to_kappa_plus_1(uint32_t n) FMT_NOEXCEPT {
+-  return n / float_info<float>::big_divisor;
+-}
+-// Computes floor(n / 10^(kappa + 1)) (double)
+-inline uint64_t divide_by_10_to_kappa_plus_1(uint64_t n) FMT_NOEXCEPT {
+-  return umul128_upper64(n, 0x83126e978d4fdf3c) >> 9;
+-}
+-
+-// Various subroutines using pow10 cache
+-template <class T> struct cache_accessor;
+-
+-template <> struct cache_accessor<float> {
+-  using carrier_uint = float_info<float>::carrier_uint;
+-  using cache_entry_type = uint64_t;
+-
+-  static uint64_t get_cached_power(int k) FMT_NOEXCEPT {
+-    FMT_ASSERT(k >= float_info<float>::min_k && k <= float_info<float>::max_k,
+-               "k is out of range");
+-    static constexpr const uint64_t pow10_significands[] = {
+-        0x81ceb32c4b43fcf5, 0xa2425ff75e14fc32, 0xcad2f7f5359a3b3f,
+-        0xfd87b5f28300ca0e, 0x9e74d1b791e07e49, 0xc612062576589ddb,
+-        0xf79687aed3eec552, 0x9abe14cd44753b53, 0xc16d9a0095928a28,
+-        0xf1c90080baf72cb2, 0x971da05074da7bef, 0xbce5086492111aeb,
+-        0xec1e4a7db69561a6, 0x9392ee8e921d5d08, 0xb877aa3236a4b44a,
+-        0xe69594bec44de15c, 0x901d7cf73ab0acda, 0xb424dc35095cd810,
+-        0xe12e13424bb40e14, 0x8cbccc096f5088cc, 0xafebff0bcb24aaff,
+-        0xdbe6fecebdedd5bf, 0x89705f4136b4a598, 0xabcc77118461cefd,
+-        0xd6bf94d5e57a42bd, 0x8637bd05af6c69b6, 0xa7c5ac471b478424,
+-        0xd1b71758e219652c, 0x83126e978d4fdf3c, 0xa3d70a3d70a3d70b,
+-        0xcccccccccccccccd, 0x8000000000000000, 0xa000000000000000,
+-        0xc800000000000000, 0xfa00000000000000, 0x9c40000000000000,
+-        0xc350000000000000, 0xf424000000000000, 0x9896800000000000,
+-        0xbebc200000000000, 0xee6b280000000000, 0x9502f90000000000,
+-        0xba43b74000000000, 0xe8d4a51000000000, 0x9184e72a00000000,
+-        0xb5e620f480000000, 0xe35fa931a0000000, 0x8e1bc9bf04000000,
+-        0xb1a2bc2ec5000000, 0xde0b6b3a76400000, 0x8ac7230489e80000,
+-        0xad78ebc5ac620000, 0xd8d726b7177a8000, 0x878678326eac9000,
+-        0xa968163f0a57b400, 0xd3c21bcecceda100, 0x84595161401484a0,
+-        0xa56fa5b99019a5c8, 0xcecb8f27f4200f3a, 0x813f3978f8940984,
+-        0xa18f07d736b90be5, 0xc9f2c9cd04674ede, 0xfc6f7c4045812296,
+-        0x9dc5ada82b70b59d, 0xc5371912364ce305, 0xf684df56c3e01bc6,
+-        0x9a130b963a6c115c, 0xc097ce7bc90715b3, 0xf0bdc21abb48db20,
+-        0x96769950b50d88f4, 0xbc143fa4e250eb31, 0xeb194f8e1ae525fd,
+-        0x92efd1b8d0cf37be, 0xb7abc627050305ad, 0xe596b7b0c643c719,
+-        0x8f7e32ce7bea5c6f, 0xb35dbf821ae4f38b, 0xe0352f62a19e306e};
+-    return pow10_significands[k - float_info<float>::min_k];
+-  }
+-
+-  static carrier_uint compute_mul(carrier_uint u,
+-                                  const cache_entry_type& cache) FMT_NOEXCEPT {
+-    return umul96_upper32(u, cache);
+-  }
+-
+-  static uint32_t compute_delta(const cache_entry_type& cache,
+-                                int beta_minus_1) FMT_NOEXCEPT {
+-    return static_cast<uint32_t>(cache >> (64 - 1 - beta_minus_1));
+-  }
+-
+-  static bool compute_mul_parity(carrier_uint two_f,
+-                                 const cache_entry_type& cache,
+-                                 int beta_minus_1) FMT_NOEXCEPT {
+-    FMT_ASSERT(beta_minus_1 >= 1, "");
+-    FMT_ASSERT(beta_minus_1 < 64, "");
+-
+-    return ((umul96_lower64(two_f, cache) >> (64 - beta_minus_1)) & 1) != 0;
+-  }
+-
+-  static carrier_uint compute_left_endpoint_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return static_cast<carrier_uint>(
+-        (cache - (cache >> (float_info<float>::significand_bits + 2))) >>
+-        (64 - float_info<float>::significand_bits - 1 - beta_minus_1));
+-  }
+-
+-  static carrier_uint compute_right_endpoint_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return static_cast<carrier_uint>(
+-        (cache + (cache >> (float_info<float>::significand_bits + 1))) >>
+-        (64 - float_info<float>::significand_bits - 1 - beta_minus_1));
+-  }
+-
+-  static carrier_uint compute_round_up_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return (static_cast<carrier_uint>(
+-                cache >>
+-                (64 - float_info<float>::significand_bits - 2 - beta_minus_1)) +
+-            1) /
+-           2;
+-  }
+-};
+-
+-template <> struct cache_accessor<double> {
+-  using carrier_uint = float_info<double>::carrier_uint;
+-  using cache_entry_type = uint128_wrapper;
+-
+-  static uint128_wrapper get_cached_power(int k) FMT_NOEXCEPT {
+-    FMT_ASSERT(k >= float_info<double>::min_k && k <= float_info<double>::max_k,
+-               "k is out of range");
+-
+-    static constexpr const uint128_wrapper pow10_significands[] = {
+-#if FMT_USE_FULL_CACHE_DRAGONBOX
+-      {0xff77b1fcbebcdc4f, 0x25e8e89c13bb0f7b},
+-      {0x9faacf3df73609b1, 0x77b191618c54e9ad},
+-      {0xc795830d75038c1d, 0xd59df5b9ef6a2418},
+-      {0xf97ae3d0d2446f25, 0x4b0573286b44ad1e},
+-      {0x9becce62836ac577, 0x4ee367f9430aec33},
+-      {0xc2e801fb244576d5, 0x229c41f793cda740},
+-      {0xf3a20279ed56d48a, 0x6b43527578c11110},
+-      {0x9845418c345644d6, 0x830a13896b78aaaa},
+-      {0xbe5691ef416bd60c, 0x23cc986bc656d554},
+-      {0xedec366b11c6cb8f, 0x2cbfbe86b7ec8aa9},
+-      {0x94b3a202eb1c3f39, 0x7bf7d71432f3d6aa},
+-      {0xb9e08a83a5e34f07, 0xdaf5ccd93fb0cc54},
+-      {0xe858ad248f5c22c9, 0xd1b3400f8f9cff69},
+-      {0x91376c36d99995be, 0x23100809b9c21fa2},
+-      {0xb58547448ffffb2d, 0xabd40a0c2832a78b},
+-      {0xe2e69915b3fff9f9, 0x16c90c8f323f516d},
+-      {0x8dd01fad907ffc3b, 0xae3da7d97f6792e4},
+-      {0xb1442798f49ffb4a, 0x99cd11cfdf41779d},
+-      {0xdd95317f31c7fa1d, 0x40405643d711d584},
+-      {0x8a7d3eef7f1cfc52, 0x482835ea666b2573},
+-      {0xad1c8eab5ee43b66, 0xda3243650005eed0},
+-      {0xd863b256369d4a40, 0x90bed43e40076a83},
+-      {0x873e4f75e2224e68, 0x5a7744a6e804a292},
+-      {0xa90de3535aaae202, 0x711515d0a205cb37},
+-      {0xd3515c2831559a83, 0x0d5a5b44ca873e04},
+-      {0x8412d9991ed58091, 0xe858790afe9486c3},
+-      {0xa5178fff668ae0b6, 0x626e974dbe39a873},
+-      {0xce5d73ff402d98e3, 0xfb0a3d212dc81290},
+-      {0x80fa687f881c7f8e, 0x7ce66634bc9d0b9a},
+-      {0xa139029f6a239f72, 0x1c1fffc1ebc44e81},
+-      {0xc987434744ac874e, 0xa327ffb266b56221},
+-      {0xfbe9141915d7a922, 0x4bf1ff9f0062baa9},
+-      {0x9d71ac8fada6c9b5, 0x6f773fc3603db4aa},
+-      {0xc4ce17b399107c22, 0xcb550fb4384d21d4},
+-      {0xf6019da07f549b2b, 0x7e2a53a146606a49},
+-      {0x99c102844f94e0fb, 0x2eda7444cbfc426e},
+-      {0xc0314325637a1939, 0xfa911155fefb5309},
+-      {0xf03d93eebc589f88, 0x793555ab7eba27cb},
+-      {0x96267c7535b763b5, 0x4bc1558b2f3458df},
+-      {0xbbb01b9283253ca2, 0x9eb1aaedfb016f17},
+-      {0xea9c227723ee8bcb, 0x465e15a979c1cadd},
+-      {0x92a1958a7675175f, 0x0bfacd89ec191eca},
+-      {0xb749faed14125d36, 0xcef980ec671f667c},
+-      {0xe51c79a85916f484, 0x82b7e12780e7401b},
+-      {0x8f31cc0937ae58d2, 0xd1b2ecb8b0908811},
+-      {0xb2fe3f0b8599ef07, 0x861fa7e6dcb4aa16},
+-      {0xdfbdcece67006ac9, 0x67a791e093e1d49b},
+-      {0x8bd6a141006042bd, 0xe0c8bb2c5c6d24e1},
+-      {0xaecc49914078536d, 0x58fae9f773886e19},
+-      {0xda7f5bf590966848, 0xaf39a475506a899f},
+-      {0x888f99797a5e012d, 0x6d8406c952429604},
+-      {0xaab37fd7d8f58178, 0xc8e5087ba6d33b84},
+-      {0xd5605fcdcf32e1d6, 0xfb1e4a9a90880a65},
+-      {0x855c3be0a17fcd26, 0x5cf2eea09a550680},
+-      {0xa6b34ad8c9dfc06f, 0xf42faa48c0ea481f},
+-      {0xd0601d8efc57b08b, 0xf13b94daf124da27},
+-      {0x823c12795db6ce57, 0x76c53d08d6b70859},
+-      {0xa2cb1717b52481ed, 0x54768c4b0c64ca6f},
+-      {0xcb7ddcdda26da268, 0xa9942f5dcf7dfd0a},
+-      {0xfe5d54150b090b02, 0xd3f93b35435d7c4d},
+-      {0x9efa548d26e5a6e1, 0xc47bc5014a1a6db0},
+-      {0xc6b8e9b0709f109a, 0x359ab6419ca1091c},
+-      {0xf867241c8cc6d4c0, 0xc30163d203c94b63},
+-      {0x9b407691d7fc44f8, 0x79e0de63425dcf1e},
+-      {0xc21094364dfb5636, 0x985915fc12f542e5},
+-      {0xf294b943e17a2bc4, 0x3e6f5b7b17b2939e},
+-      {0x979cf3ca6cec5b5a, 0xa705992ceecf9c43},
+-      {0xbd8430bd08277231, 0x50c6ff782a838354},
+-      {0xece53cec4a314ebd, 0xa4f8bf5635246429},
+-      {0x940f4613ae5ed136, 0x871b7795e136be9a},
+-      {0xb913179899f68584, 0x28e2557b59846e40},
+-      {0xe757dd7ec07426e5, 0x331aeada2fe589d0},
+-      {0x9096ea6f3848984f, 0x3ff0d2c85def7622},
+-      {0xb4bca50b065abe63, 0x0fed077a756b53aa},
+-      {0xe1ebce4dc7f16dfb, 0xd3e8495912c62895},
+-      {0x8d3360f09cf6e4bd, 0x64712dd7abbbd95d},
+-      {0xb080392cc4349dec, 0xbd8d794d96aacfb4},
+-      {0xdca04777f541c567, 0xecf0d7a0fc5583a1},
+-      {0x89e42caaf9491b60, 0xf41686c49db57245},
+-      {0xac5d37d5b79b6239, 0x311c2875c522ced6},
+-      {0xd77485cb25823ac7, 0x7d633293366b828c},
+-      {0x86a8d39ef77164bc, 0xae5dff9c02033198},
+-      {0xa8530886b54dbdeb, 0xd9f57f830283fdfd},
+-      {0xd267caa862a12d66, 0xd072df63c324fd7c},
+-      {0x8380dea93da4bc60, 0x4247cb9e59f71e6e},
+-      {0xa46116538d0deb78, 0x52d9be85f074e609},
+-      {0xcd795be870516656, 0x67902e276c921f8c},
+-      {0x806bd9714632dff6, 0x00ba1cd8a3db53b7},
+-      {0xa086cfcd97bf97f3, 0x80e8a40eccd228a5},
+-      {0xc8a883c0fdaf7df0, 0x6122cd128006b2ce},
+-      {0xfad2a4b13d1b5d6c, 0x796b805720085f82},
+-      {0x9cc3a6eec6311a63, 0xcbe3303674053bb1},
+-      {0xc3f490aa77bd60fc, 0xbedbfc4411068a9d},
+-      {0xf4f1b4d515acb93b, 0xee92fb5515482d45},
+-      {0x991711052d8bf3c5, 0x751bdd152d4d1c4b},
+-      {0xbf5cd54678eef0b6, 0xd262d45a78a0635e},
+-      {0xef340a98172aace4, 0x86fb897116c87c35},
+-      {0x9580869f0e7aac0e, 0xd45d35e6ae3d4da1},
+-      {0xbae0a846d2195712, 0x8974836059cca10a},
+-      {0xe998d258869facd7, 0x2bd1a438703fc94c},
+-      {0x91ff83775423cc06, 0x7b6306a34627ddd0},
+-      {0xb67f6455292cbf08, 0x1a3bc84c17b1d543},
+-      {0xe41f3d6a7377eeca, 0x20caba5f1d9e4a94},
+-      {0x8e938662882af53e, 0x547eb47b7282ee9d},
+-      {0xb23867fb2a35b28d, 0xe99e619a4f23aa44},
+-      {0xdec681f9f4c31f31, 0x6405fa00e2ec94d5},
+-      {0x8b3c113c38f9f37e, 0xde83bc408dd3dd05},
+-      {0xae0b158b4738705e, 0x9624ab50b148d446},
+-      {0xd98ddaee19068c76, 0x3badd624dd9b0958},
+-      {0x87f8a8d4cfa417c9, 0xe54ca5d70a80e5d7},
+-      {0xa9f6d30a038d1dbc, 0x5e9fcf4ccd211f4d},
+-      {0xd47487cc8470652b, 0x7647c32000696720},
+-      {0x84c8d4dfd2c63f3b, 0x29ecd9f40041e074},
+-      {0xa5fb0a17c777cf09, 0xf468107100525891},
+-      {0xcf79cc9db955c2cc, 0x7182148d4066eeb5},
+-      {0x81ac1fe293d599bf, 0xc6f14cd848405531},
+-      {0xa21727db38cb002f, 0xb8ada00e5a506a7d},
+-      {0xca9cf1d206fdc03b, 0xa6d90811f0e4851d},
+-      {0xfd442e4688bd304a, 0x908f4a166d1da664},
+-      {0x9e4a9cec15763e2e, 0x9a598e4e043287ff},
+-      {0xc5dd44271ad3cdba, 0x40eff1e1853f29fe},
+-      {0xf7549530e188c128, 0xd12bee59e68ef47d},
+-      {0x9a94dd3e8cf578b9, 0x82bb74f8301958cf},
+-      {0xc13a148e3032d6e7, 0xe36a52363c1faf02},
+-      {0xf18899b1bc3f8ca1, 0xdc44e6c3cb279ac2},
+-      {0x96f5600f15a7b7e5, 0x29ab103a5ef8c0ba},
+-      {0xbcb2b812db11a5de, 0x7415d448f6b6f0e8},
+-      {0xebdf661791d60f56, 0x111b495b3464ad22},
+-      {0x936b9fcebb25c995, 0xcab10dd900beec35},
+-      {0xb84687c269ef3bfb, 0x3d5d514f40eea743},
+-      {0xe65829b3046b0afa, 0x0cb4a5a3112a5113},
+-      {0x8ff71a0fe2c2e6dc, 0x47f0e785eaba72ac},
+-      {0xb3f4e093db73a093, 0x59ed216765690f57},
+-      {0xe0f218b8d25088b8, 0x306869c13ec3532d},
+-      {0x8c974f7383725573, 0x1e414218c73a13fc},
+-      {0xafbd2350644eeacf, 0xe5d1929ef90898fb},
+-      {0xdbac6c247d62a583, 0xdf45f746b74abf3a},
+-      {0x894bc396ce5da772, 0x6b8bba8c328eb784},
+-      {0xab9eb47c81f5114f, 0x066ea92f3f326565},
+-      {0xd686619ba27255a2, 0xc80a537b0efefebe},
+-      {0x8613fd0145877585, 0xbd06742ce95f5f37},
+-      {0xa798fc4196e952e7, 0x2c48113823b73705},
+-      {0xd17f3b51fca3a7a0, 0xf75a15862ca504c6},
+-      {0x82ef85133de648c4, 0x9a984d73dbe722fc},
+-      {0xa3ab66580d5fdaf5, 0xc13e60d0d2e0ebbb},
+-      {0xcc963fee10b7d1b3, 0x318df905079926a9},
+-      {0xffbbcfe994e5c61f, 0xfdf17746497f7053},
+-      {0x9fd561f1fd0f9bd3, 0xfeb6ea8bedefa634},
+-      {0xc7caba6e7c5382c8, 0xfe64a52ee96b8fc1},
+-      {0xf9bd690a1b68637b, 0x3dfdce7aa3c673b1},
+-      {0x9c1661a651213e2d, 0x06bea10ca65c084f},
+-      {0xc31bfa0fe5698db8, 0x486e494fcff30a63},
+-      {0xf3e2f893dec3f126, 0x5a89dba3c3efccfb},
+-      {0x986ddb5c6b3a76b7, 0xf89629465a75e01d},
+-      {0xbe89523386091465, 0xf6bbb397f1135824},
+-      {0xee2ba6c0678b597f, 0x746aa07ded582e2d},
+-      {0x94db483840b717ef, 0xa8c2a44eb4571cdd},
+-      {0xba121a4650e4ddeb, 0x92f34d62616ce414},
+-      {0xe896a0d7e51e1566, 0x77b020baf9c81d18},
+-      {0x915e2486ef32cd60, 0x0ace1474dc1d122f},
+-      {0xb5b5ada8aaff80b8, 0x0d819992132456bb},
+-      {0xe3231912d5bf60e6, 0x10e1fff697ed6c6a},
+-      {0x8df5efabc5979c8f, 0xca8d3ffa1ef463c2},
+-      {0xb1736b96b6fd83b3, 0xbd308ff8a6b17cb3},
+-      {0xddd0467c64bce4a0, 0xac7cb3f6d05ddbdf},
+-      {0x8aa22c0dbef60ee4, 0x6bcdf07a423aa96c},
+-      {0xad4ab7112eb3929d, 0x86c16c98d2c953c7},
+-      {0xd89d64d57a607744, 0xe871c7bf077ba8b8},
+-      {0x87625f056c7c4a8b, 0x11471cd764ad4973},
+-      {0xa93af6c6c79b5d2d, 0xd598e40d3dd89bd0},
+-      {0xd389b47879823479, 0x4aff1d108d4ec2c4},
+-      {0x843610cb4bf160cb, 0xcedf722a585139bb},
+-      {0xa54394fe1eedb8fe, 0xc2974eb4ee658829},
+-      {0xce947a3da6a9273e, 0x733d226229feea33},
+-      {0x811ccc668829b887, 0x0806357d5a3f5260},
+-      {0xa163ff802a3426a8, 0xca07c2dcb0cf26f8},
+-      {0xc9bcff6034c13052, 0xfc89b393dd02f0b6},
+-      {0xfc2c3f3841f17c67, 0xbbac2078d443ace3},
+-      {0x9d9ba7832936edc0, 0xd54b944b84aa4c0e},
+-      {0xc5029163f384a931, 0x0a9e795e65d4df12},
+-      {0xf64335bcf065d37d, 0x4d4617b5ff4a16d6},
+-      {0x99ea0196163fa42e, 0x504bced1bf8e4e46},
+-      {0xc06481fb9bcf8d39, 0xe45ec2862f71e1d7},
+-      {0xf07da27a82c37088, 0x5d767327bb4e5a4d},
+-      {0x964e858c91ba2655, 0x3a6a07f8d510f870},
+-      {0xbbe226efb628afea, 0x890489f70a55368c},
+-      {0xeadab0aba3b2dbe5, 0x2b45ac74ccea842f},
+-      {0x92c8ae6b464fc96f, 0x3b0b8bc90012929e},
+-      {0xb77ada0617e3bbcb, 0x09ce6ebb40173745},
+-      {0xe55990879ddcaabd, 0xcc420a6a101d0516},
+-      {0x8f57fa54c2a9eab6, 0x9fa946824a12232e},
+-      {0xb32df8e9f3546564, 0x47939822dc96abfa},
+-      {0xdff9772470297ebd, 0x59787e2b93bc56f8},
+-      {0x8bfbea76c619ef36, 0x57eb4edb3c55b65b},
+-      {0xaefae51477a06b03, 0xede622920b6b23f2},
+-      {0xdab99e59958885c4, 0xe95fab368e45ecee},
+-      {0x88b402f7fd75539b, 0x11dbcb0218ebb415},
+-      {0xaae103b5fcd2a881, 0xd652bdc29f26a11a},
+-      {0xd59944a37c0752a2, 0x4be76d3346f04960},
+-      {0x857fcae62d8493a5, 0x6f70a4400c562ddc},
+-      {0xa6dfbd9fb8e5b88e, 0xcb4ccd500f6bb953},
+-      {0xd097ad07a71f26b2, 0x7e2000a41346a7a8},
+-      {0x825ecc24c873782f, 0x8ed400668c0c28c9},
+-      {0xa2f67f2dfa90563b, 0x728900802f0f32fb},
+-      {0xcbb41ef979346bca, 0x4f2b40a03ad2ffba},
+-      {0xfea126b7d78186bc, 0xe2f610c84987bfa9},
+-      {0x9f24b832e6b0f436, 0x0dd9ca7d2df4d7ca},
+-      {0xc6ede63fa05d3143, 0x91503d1c79720dbc},
+-      {0xf8a95fcf88747d94, 0x75a44c6397ce912b},
+-      {0x9b69dbe1b548ce7c, 0xc986afbe3ee11abb},
+-      {0xc24452da229b021b, 0xfbe85badce996169},
+-      {0xf2d56790ab41c2a2, 0xfae27299423fb9c4},
+-      {0x97c560ba6b0919a5, 0xdccd879fc967d41b},
+-      {0xbdb6b8e905cb600f, 0x5400e987bbc1c921},
+-      {0xed246723473e3813, 0x290123e9aab23b69},
+-      {0x9436c0760c86e30b, 0xf9a0b6720aaf6522},
+-      {0xb94470938fa89bce, 0xf808e40e8d5b3e6a},
+-      {0xe7958cb87392c2c2, 0xb60b1d1230b20e05},
+-      {0x90bd77f3483bb9b9, 0xb1c6f22b5e6f48c3},
+-      {0xb4ecd5f01a4aa828, 0x1e38aeb6360b1af4},
+-      {0xe2280b6c20dd5232, 0x25c6da63c38de1b1},
+-      {0x8d590723948a535f, 0x579c487e5a38ad0f},
+-      {0xb0af48ec79ace837, 0x2d835a9df0c6d852},
+-      {0xdcdb1b2798182244, 0xf8e431456cf88e66},
+-      {0x8a08f0f8bf0f156b, 0x1b8e9ecb641b5900},
+-      {0xac8b2d36eed2dac5, 0xe272467e3d222f40},
+-      {0xd7adf884aa879177, 0x5b0ed81dcc6abb10},
+-      {0x86ccbb52ea94baea, 0x98e947129fc2b4ea},
+-      {0xa87fea27a539e9a5, 0x3f2398d747b36225},
+-      {0xd29fe4b18e88640e, 0x8eec7f0d19a03aae},
+-      {0x83a3eeeef9153e89, 0x1953cf68300424ad},
+-      {0xa48ceaaab75a8e2b, 0x5fa8c3423c052dd8},
+-      {0xcdb02555653131b6, 0x3792f412cb06794e},
+-      {0x808e17555f3ebf11, 0xe2bbd88bbee40bd1},
+-      {0xa0b19d2ab70e6ed6, 0x5b6aceaeae9d0ec5},
+-      {0xc8de047564d20a8b, 0xf245825a5a445276},
+-      {0xfb158592be068d2e, 0xeed6e2f0f0d56713},
+-      {0x9ced737bb6c4183d, 0x55464dd69685606c},
+-      {0xc428d05aa4751e4c, 0xaa97e14c3c26b887},
+-      {0xf53304714d9265df, 0xd53dd99f4b3066a9},
+-      {0x993fe2c6d07b7fab, 0xe546a8038efe402a},
+-      {0xbf8fdb78849a5f96, 0xde98520472bdd034},
+-      {0xef73d256a5c0f77c, 0x963e66858f6d4441},
+-      {0x95a8637627989aad, 0xdde7001379a44aa9},
+-      {0xbb127c53b17ec159, 0x5560c018580d5d53},
+-      {0xe9d71b689dde71af, 0xaab8f01e6e10b4a7},
+-      {0x9226712162ab070d, 0xcab3961304ca70e9},
+-      {0xb6b00d69bb55c8d1, 0x3d607b97c5fd0d23},
+-      {0xe45c10c42a2b3b05, 0x8cb89a7db77c506b},
+-      {0x8eb98a7a9a5b04e3, 0x77f3608e92adb243},
+-      {0xb267ed1940f1c61c, 0x55f038b237591ed4},
+-      {0xdf01e85f912e37a3, 0x6b6c46dec52f6689},
+-      {0x8b61313bbabce2c6, 0x2323ac4b3b3da016},
+-      {0xae397d8aa96c1b77, 0xabec975e0a0d081b},
+-      {0xd9c7dced53c72255, 0x96e7bd358c904a22},
+-      {0x881cea14545c7575, 0x7e50d64177da2e55},
+-      {0xaa242499697392d2, 0xdde50bd1d5d0b9ea},
+-      {0xd4ad2dbfc3d07787, 0x955e4ec64b44e865},
+-      {0x84ec3c97da624ab4, 0xbd5af13bef0b113f},
+-      {0xa6274bbdd0fadd61, 0xecb1ad8aeacdd58f},
+-      {0xcfb11ead453994ba, 0x67de18eda5814af3},
+-      {0x81ceb32c4b43fcf4, 0x80eacf948770ced8},
+-      {0xa2425ff75e14fc31, 0xa1258379a94d028e},
+-      {0xcad2f7f5359a3b3e, 0x096ee45813a04331},
+-      {0xfd87b5f28300ca0d, 0x8bca9d6e188853fd},
+-      {0x9e74d1b791e07e48, 0x775ea264cf55347e},
+-      {0xc612062576589dda, 0x95364afe032a819e},
+-      {0xf79687aed3eec551, 0x3a83ddbd83f52205},
+-      {0x9abe14cd44753b52, 0xc4926a9672793543},
+-      {0xc16d9a0095928a27, 0x75b7053c0f178294},
+-      {0xf1c90080baf72cb1, 0x5324c68b12dd6339},
+-      {0x971da05074da7bee, 0xd3f6fc16ebca5e04},
+-      {0xbce5086492111aea, 0x88f4bb1ca6bcf585},
+-      {0xec1e4a7db69561a5, 0x2b31e9e3d06c32e6},
+-      {0x9392ee8e921d5d07, 0x3aff322e62439fd0},
+-      {0xb877aa3236a4b449, 0x09befeb9fad487c3},
+-      {0xe69594bec44de15b, 0x4c2ebe687989a9b4},
+-      {0x901d7cf73ab0acd9, 0x0f9d37014bf60a11},
+-      {0xb424dc35095cd80f, 0x538484c19ef38c95},
+-      {0xe12e13424bb40e13, 0x2865a5f206b06fba},
+-      {0x8cbccc096f5088cb, 0xf93f87b7442e45d4},
+-      {0xafebff0bcb24aafe, 0xf78f69a51539d749},
+-      {0xdbe6fecebdedd5be, 0xb573440e5a884d1c},
+-      {0x89705f4136b4a597, 0x31680a88f8953031},
+-      {0xabcc77118461cefc, 0xfdc20d2b36ba7c3e},
+-      {0xd6bf94d5e57a42bc, 0x3d32907604691b4d},
+-      {0x8637bd05af6c69b5, 0xa63f9a49c2c1b110},
+-      {0xa7c5ac471b478423, 0x0fcf80dc33721d54},
+-      {0xd1b71758e219652b, 0xd3c36113404ea4a9},
+-      {0x83126e978d4fdf3b, 0x645a1cac083126ea},
+-      {0xa3d70a3d70a3d70a, 0x3d70a3d70a3d70a4},
+-      {0xcccccccccccccccc, 0xcccccccccccccccd},
+-      {0x8000000000000000, 0x0000000000000000},
+-      {0xa000000000000000, 0x0000000000000000},
+-      {0xc800000000000000, 0x0000000000000000},
+-      {0xfa00000000000000, 0x0000000000000000},
+-      {0x9c40000000000000, 0x0000000000000000},
+-      {0xc350000000000000, 0x0000000000000000},
+-      {0xf424000000000000, 0x0000000000000000},
+-      {0x9896800000000000, 0x0000000000000000},
+-      {0xbebc200000000000, 0x0000000000000000},
+-      {0xee6b280000000000, 0x0000000000000000},
+-      {0x9502f90000000000, 0x0000000000000000},
+-      {0xba43b74000000000, 0x0000000000000000},
+-      {0xe8d4a51000000000, 0x0000000000000000},
+-      {0x9184e72a00000000, 0x0000000000000000},
+-      {0xb5e620f480000000, 0x0000000000000000},
+-      {0xe35fa931a0000000, 0x0000000000000000},
+-      {0x8e1bc9bf04000000, 0x0000000000000000},
+-      {0xb1a2bc2ec5000000, 0x0000000000000000},
+-      {0xde0b6b3a76400000, 0x0000000000000000},
+-      {0x8ac7230489e80000, 0x0000000000000000},
+-      {0xad78ebc5ac620000, 0x0000000000000000},
+-      {0xd8d726b7177a8000, 0x0000000000000000},
+-      {0x878678326eac9000, 0x0000000000000000},
+-      {0xa968163f0a57b400, 0x0000000000000000},
+-      {0xd3c21bcecceda100, 0x0000000000000000},
+-      {0x84595161401484a0, 0x0000000000000000},
+-      {0xa56fa5b99019a5c8, 0x0000000000000000},
+-      {0xcecb8f27f4200f3a, 0x0000000000000000},
+-      {0x813f3978f8940984, 0x4000000000000000},
+-      {0xa18f07d736b90be5, 0x5000000000000000},
+-      {0xc9f2c9cd04674ede, 0xa400000000000000},
+-      {0xfc6f7c4045812296, 0x4d00000000000000},
+-      {0x9dc5ada82b70b59d, 0xf020000000000000},
+-      {0xc5371912364ce305, 0x6c28000000000000},
+-      {0xf684df56c3e01bc6, 0xc732000000000000},
+-      {0x9a130b963a6c115c, 0x3c7f400000000000},
+-      {0xc097ce7bc90715b3, 0x4b9f100000000000},
+-      {0xf0bdc21abb48db20, 0x1e86d40000000000},
+-      {0x96769950b50d88f4, 0x1314448000000000},
+-      {0xbc143fa4e250eb31, 0x17d955a000000000},
+-      {0xeb194f8e1ae525fd, 0x5dcfab0800000000},
+-      {0x92efd1b8d0cf37be, 0x5aa1cae500000000},
+-      {0xb7abc627050305ad, 0xf14a3d9e40000000},
+-      {0xe596b7b0c643c719, 0x6d9ccd05d0000000},
+-      {0x8f7e32ce7bea5c6f, 0xe4820023a2000000},
+-      {0xb35dbf821ae4f38b, 0xdda2802c8a800000},
+-      {0xe0352f62a19e306e, 0xd50b2037ad200000},
+-      {0x8c213d9da502de45, 0x4526f422cc340000},
+-      {0xaf298d050e4395d6, 0x9670b12b7f410000},
+-      {0xdaf3f04651d47b4c, 0x3c0cdd765f114000},
+-      {0x88d8762bf324cd0f, 0xa5880a69fb6ac800},
+-      {0xab0e93b6efee0053, 0x8eea0d047a457a00},
+-      {0xd5d238a4abe98068, 0x72a4904598d6d880},
+-      {0x85a36366eb71f041, 0x47a6da2b7f864750},
+-      {0xa70c3c40a64e6c51, 0x999090b65f67d924},
+-      {0xd0cf4b50cfe20765, 0xfff4b4e3f741cf6d},
+-      {0x82818f1281ed449f, 0xbff8f10e7a8921a4},
+-      {0xa321f2d7226895c7, 0xaff72d52192b6a0d},
+-      {0xcbea6f8ceb02bb39, 0x9bf4f8a69f764490},
+-      {0xfee50b7025c36a08, 0x02f236d04753d5b4},
+-      {0x9f4f2726179a2245, 0x01d762422c946590},
+-      {0xc722f0ef9d80aad6, 0x424d3ad2b7b97ef5},
+-      {0xf8ebad2b84e0d58b, 0xd2e0898765a7deb2},
+-      {0x9b934c3b330c8577, 0x63cc55f49f88eb2f},
+-      {0xc2781f49ffcfa6d5, 0x3cbf6b71c76b25fb},
+-      {0xf316271c7fc3908a, 0x8bef464e3945ef7a},
+-      {0x97edd871cfda3a56, 0x97758bf0e3cbb5ac},
+-      {0xbde94e8e43d0c8ec, 0x3d52eeed1cbea317},
+-      {0xed63a231d4c4fb27, 0x4ca7aaa863ee4bdd},
+-      {0x945e455f24fb1cf8, 0x8fe8caa93e74ef6a},
+-      {0xb975d6b6ee39e436, 0xb3e2fd538e122b44},
+-      {0xe7d34c64a9c85d44, 0x60dbbca87196b616},
+-      {0x90e40fbeea1d3a4a, 0xbc8955e946fe31cd},
+-      {0xb51d13aea4a488dd, 0x6babab6398bdbe41},
+-      {0xe264589a4dcdab14, 0xc696963c7eed2dd1},
+-      {0x8d7eb76070a08aec, 0xfc1e1de5cf543ca2},
+-      {0xb0de65388cc8ada8, 0x3b25a55f43294bcb},
+-      {0xdd15fe86affad912, 0x49ef0eb713f39ebe},
+-      {0x8a2dbf142dfcc7ab, 0x6e3569326c784337},
+-      {0xacb92ed9397bf996, 0x49c2c37f07965404},
+-      {0xd7e77a8f87daf7fb, 0xdc33745ec97be906},
+-      {0x86f0ac99b4e8dafd, 0x69a028bb3ded71a3},
+-      {0xa8acd7c0222311bc, 0xc40832ea0d68ce0c},
+-      {0xd2d80db02aabd62b, 0xf50a3fa490c30190},
+-      {0x83c7088e1aab65db, 0x792667c6da79e0fa},
+-      {0xa4b8cab1a1563f52, 0x577001b891185938},
+-      {0xcde6fd5e09abcf26, 0xed4c0226b55e6f86},
+-      {0x80b05e5ac60b6178, 0x544f8158315b05b4},
+-      {0xa0dc75f1778e39d6, 0x696361ae3db1c721},
+-      {0xc913936dd571c84c, 0x03bc3a19cd1e38e9},
+-      {0xfb5878494ace3a5f, 0x04ab48a04065c723},
+-      {0x9d174b2dcec0e47b, 0x62eb0d64283f9c76},
+-      {0xc45d1df942711d9a, 0x3ba5d0bd324f8394},
+-      {0xf5746577930d6500, 0xca8f44ec7ee36479},
+-      {0x9968bf6abbe85f20, 0x7e998b13cf4e1ecb},
+-      {0xbfc2ef456ae276e8, 0x9e3fedd8c321a67e},
+-      {0xefb3ab16c59b14a2, 0xc5cfe94ef3ea101e},
+-      {0x95d04aee3b80ece5, 0xbba1f1d158724a12},
+-      {0xbb445da9ca61281f, 0x2a8a6e45ae8edc97},
+-      {0xea1575143cf97226, 0xf52d09d71a3293bd},
+-      {0x924d692ca61be758, 0x593c2626705f9c56},
+-      {0xb6e0c377cfa2e12e, 0x6f8b2fb00c77836c},
+-      {0xe498f455c38b997a, 0x0b6dfb9c0f956447},
+-      {0x8edf98b59a373fec, 0x4724bd4189bd5eac},
+-      {0xb2977ee300c50fe7, 0x58edec91ec2cb657},
+-      {0xdf3d5e9bc0f653e1, 0x2f2967b66737e3ed},
+-      {0x8b865b215899f46c, 0xbd79e0d20082ee74},
+-      {0xae67f1e9aec07187, 0xecd8590680a3aa11},
+-      {0xda01ee641a708de9, 0xe80e6f4820cc9495},
+-      {0x884134fe908658b2, 0x3109058d147fdcdd},
+-      {0xaa51823e34a7eede, 0xbd4b46f0599fd415},
+-      {0xd4e5e2cdc1d1ea96, 0x6c9e18ac7007c91a},
+-      {0x850fadc09923329e, 0x03e2cf6bc604ddb0},
+-      {0xa6539930bf6bff45, 0x84db8346b786151c},
+-      {0xcfe87f7cef46ff16, 0xe612641865679a63},
+-      {0x81f14fae158c5f6e, 0x4fcb7e8f3f60c07e},
+-      {0xa26da3999aef7749, 0xe3be5e330f38f09d},
+-      {0xcb090c8001ab551c, 0x5cadf5bfd3072cc5},
+-      {0xfdcb4fa002162a63, 0x73d9732fc7c8f7f6},
+-      {0x9e9f11c4014dda7e, 0x2867e7fddcdd9afa},
+-      {0xc646d63501a1511d, 0xb281e1fd541501b8},
+-      {0xf7d88bc24209a565, 0x1f225a7ca91a4226},
+-      {0x9ae757596946075f, 0x3375788de9b06958},
+-      {0xc1a12d2fc3978937, 0x0052d6b1641c83ae},
+-      {0xf209787bb47d6b84, 0xc0678c5dbd23a49a},
+-      {0x9745eb4d50ce6332, 0xf840b7ba963646e0},
+-      {0xbd176620a501fbff, 0xb650e5a93bc3d898},
+-      {0xec5d3fa8ce427aff, 0xa3e51f138ab4cebe},
+-      {0x93ba47c980e98cdf, 0xc66f336c36b10137},
+-      {0xb8a8d9bbe123f017, 0xb80b0047445d4184},
+-      {0xe6d3102ad96cec1d, 0xa60dc059157491e5},
+-      {0x9043ea1ac7e41392, 0x87c89837ad68db2f},
+-      {0xb454e4a179dd1877, 0x29babe4598c311fb},
+-      {0xe16a1dc9d8545e94, 0xf4296dd6fef3d67a},
+-      {0x8ce2529e2734bb1d, 0x1899e4a65f58660c},
+-      {0xb01ae745b101e9e4, 0x5ec05dcff72e7f8f},
+-      {0xdc21a1171d42645d, 0x76707543f4fa1f73},
+-      {0x899504ae72497eba, 0x6a06494a791c53a8},
+-      {0xabfa45da0edbde69, 0x0487db9d17636892},
+-      {0xd6f8d7509292d603, 0x45a9d2845d3c42b6},
+-      {0x865b86925b9bc5c2, 0x0b8a2392ba45a9b2},
+-      {0xa7f26836f282b732, 0x8e6cac7768d7141e},
+-      {0xd1ef0244af2364ff, 0x3207d795430cd926},
+-      {0x8335616aed761f1f, 0x7f44e6bd49e807b8},
+-      {0xa402b9c5a8d3a6e7, 0x5f16206c9c6209a6},
+-      {0xcd036837130890a1, 0x36dba887c37a8c0f},
+-      {0x802221226be55a64, 0xc2494954da2c9789},
+-      {0xa02aa96b06deb0fd, 0xf2db9baa10b7bd6c},
+-      {0xc83553c5c8965d3d, 0x6f92829494e5acc7},
+-      {0xfa42a8b73abbf48c, 0xcb772339ba1f17f9},
+-      {0x9c69a97284b578d7, 0xff2a760414536efb},
+-      {0xc38413cf25e2d70d, 0xfef5138519684aba},
+-      {0xf46518c2ef5b8cd1, 0x7eb258665fc25d69},
+-      {0x98bf2f79d5993802, 0xef2f773ffbd97a61},
+-      {0xbeeefb584aff8603, 0xaafb550ffacfd8fa},
+-      {0xeeaaba2e5dbf6784, 0x95ba2a53f983cf38},
+-      {0x952ab45cfa97a0b2, 0xdd945a747bf26183},
+-      {0xba756174393d88df, 0x94f971119aeef9e4},
+-      {0xe912b9d1478ceb17, 0x7a37cd5601aab85d},
+-      {0x91abb422ccb812ee, 0xac62e055c10ab33a},
+-      {0xb616a12b7fe617aa, 0x577b986b314d6009},
+-      {0xe39c49765fdf9d94, 0xed5a7e85fda0b80b},
+-      {0x8e41ade9fbebc27d, 0x14588f13be847307},
+-      {0xb1d219647ae6b31c, 0x596eb2d8ae258fc8},
+-      {0xde469fbd99a05fe3, 0x6fca5f8ed9aef3bb},
+-      {0x8aec23d680043bee, 0x25de7bb9480d5854},
+-      {0xada72ccc20054ae9, 0xaf561aa79a10ae6a},
+-      {0xd910f7ff28069da4, 0x1b2ba1518094da04},
+-      {0x87aa9aff79042286, 0x90fb44d2f05d0842},
+-      {0xa99541bf57452b28, 0x353a1607ac744a53},
+-      {0xd3fa922f2d1675f2, 0x42889b8997915ce8},
+-      {0x847c9b5d7c2e09b7, 0x69956135febada11},
+-      {0xa59bc234db398c25, 0x43fab9837e699095},
+-      {0xcf02b2c21207ef2e, 0x94f967e45e03f4bb},
+-      {0x8161afb94b44f57d, 0x1d1be0eebac278f5},
+-      {0xa1ba1ba79e1632dc, 0x6462d92a69731732},
+-      {0xca28a291859bbf93, 0x7d7b8f7503cfdcfe},
+-      {0xfcb2cb35e702af78, 0x5cda735244c3d43e},
+-      {0x9defbf01b061adab, 0x3a0888136afa64a7},
+-      {0xc56baec21c7a1916, 0x088aaa1845b8fdd0},
+-      {0xf6c69a72a3989f5b, 0x8aad549e57273d45},
+-      {0x9a3c2087a63f6399, 0x36ac54e2f678864b},
+-      {0xc0cb28a98fcf3c7f, 0x84576a1bb416a7dd},
+-      {0xf0fdf2d3f3c30b9f, 0x656d44a2a11c51d5},
+-      {0x969eb7c47859e743, 0x9f644ae5a4b1b325},
+-      {0xbc4665b596706114, 0x873d5d9f0dde1fee},
+-      {0xeb57ff22fc0c7959, 0xa90cb506d155a7ea},
+-      {0x9316ff75dd87cbd8, 0x09a7f12442d588f2},
+-      {0xb7dcbf5354e9bece, 0x0c11ed6d538aeb2f},
+-      {0xe5d3ef282a242e81, 0x8f1668c8a86da5fa},
+-      {0x8fa475791a569d10, 0xf96e017d694487bc},
+-      {0xb38d92d760ec4455, 0x37c981dcc395a9ac},
+-      {0xe070f78d3927556a, 0x85bbe253f47b1417},
+-      {0x8c469ab843b89562, 0x93956d7478ccec8e},
+-      {0xaf58416654a6babb, 0x387ac8d1970027b2},
+-      {0xdb2e51bfe9d0696a, 0x06997b05fcc0319e},
+-      {0x88fcf317f22241e2, 0x441fece3bdf81f03},
+-      {0xab3c2fddeeaad25a, 0xd527e81cad7626c3},
+-      {0xd60b3bd56a5586f1, 0x8a71e223d8d3b074},
+-      {0x85c7056562757456, 0xf6872d5667844e49},
+-      {0xa738c6bebb12d16c, 0xb428f8ac016561db},
+-      {0xd106f86e69d785c7, 0xe13336d701beba52},
+-      {0x82a45b450226b39c, 0xecc0024661173473},
+-      {0xa34d721642b06084, 0x27f002d7f95d0190},
+-      {0xcc20ce9bd35c78a5, 0x31ec038df7b441f4},
+-      {0xff290242c83396ce, 0x7e67047175a15271},
+-      {0x9f79a169bd203e41, 0x0f0062c6e984d386},
+-      {0xc75809c42c684dd1, 0x52c07b78a3e60868},
+-      {0xf92e0c3537826145, 0xa7709a56ccdf8a82},
+-      {0x9bbcc7a142b17ccb, 0x88a66076400bb691},
+-      {0xc2abf989935ddbfe, 0x6acff893d00ea435},
+-      {0xf356f7ebf83552fe, 0x0583f6b8c4124d43},
+-      {0x98165af37b2153de, 0xc3727a337a8b704a},
+-      {0xbe1bf1b059e9a8d6, 0x744f18c0592e4c5c},
+-      {0xeda2ee1c7064130c, 0x1162def06f79df73},
+-      {0x9485d4d1c63e8be7, 0x8addcb5645ac2ba8},
+-      {0xb9a74a0637ce2ee1, 0x6d953e2bd7173692},
+-      {0xe8111c87c5c1ba99, 0xc8fa8db6ccdd0437},
+-      {0x910ab1d4db9914a0, 0x1d9c9892400a22a2},
+-      {0xb54d5e4a127f59c8, 0x2503beb6d00cab4b},
+-      {0xe2a0b5dc971f303a, 0x2e44ae64840fd61d},
+-      {0x8da471a9de737e24, 0x5ceaecfed289e5d2},
+-      {0xb10d8e1456105dad, 0x7425a83e872c5f47},
+-      {0xdd50f1996b947518, 0xd12f124e28f77719},
+-      {0x8a5296ffe33cc92f, 0x82bd6b70d99aaa6f},
+-      {0xace73cbfdc0bfb7b, 0x636cc64d1001550b},
+-      {0xd8210befd30efa5a, 0x3c47f7e05401aa4e},
+-      {0x8714a775e3e95c78, 0x65acfaec34810a71},
+-      {0xa8d9d1535ce3b396, 0x7f1839a741a14d0d},
+-      {0xd31045a8341ca07c, 0x1ede48111209a050},
+-      {0x83ea2b892091e44d, 0x934aed0aab460432},
+-      {0xa4e4b66b68b65d60, 0xf81da84d5617853f},
+-      {0xce1de40642e3f4b9, 0x36251260ab9d668e},
+-      {0x80d2ae83e9ce78f3, 0xc1d72b7c6b426019},
+-      {0xa1075a24e4421730, 0xb24cf65b8612f81f},
+-      {0xc94930ae1d529cfc, 0xdee033f26797b627},
+-      {0xfb9b7cd9a4a7443c, 0x169840ef017da3b1},
+-      {0x9d412e0806e88aa5, 0x8e1f289560ee864e},
+-      {0xc491798a08a2ad4e, 0xf1a6f2bab92a27e2},
+-      {0xf5b5d7ec8acb58a2, 0xae10af696774b1db},
+-      {0x9991a6f3d6bf1765, 0xacca6da1e0a8ef29},
+-      {0xbff610b0cc6edd3f, 0x17fd090a58d32af3},
+-      {0xeff394dcff8a948e, 0xddfc4b4cef07f5b0},
+-      {0x95f83d0a1fb69cd9, 0x4abdaf101564f98e},
+-      {0xbb764c4ca7a4440f, 0x9d6d1ad41abe37f1},
+-      {0xea53df5fd18d5513, 0x84c86189216dc5ed},
+-      {0x92746b9be2f8552c, 0x32fd3cf5b4e49bb4},
+-      {0xb7118682dbb66a77, 0x3fbc8c33221dc2a1},
+-      {0xe4d5e82392a40515, 0x0fabaf3feaa5334a},
+-      {0x8f05b1163ba6832d, 0x29cb4d87f2a7400e},
+-      {0xb2c71d5bca9023f8, 0x743e20e9ef511012},
+-      {0xdf78e4b2bd342cf6, 0x914da9246b255416},
+-      {0x8bab8eefb6409c1a, 0x1ad089b6c2f7548e},
+-      {0xae9672aba3d0c320, 0xa184ac2473b529b1},
+-      {0xda3c0f568cc4f3e8, 0xc9e5d72d90a2741e},
+-      {0x8865899617fb1871, 0x7e2fa67c7a658892},
+-      {0xaa7eebfb9df9de8d, 0xddbb901b98feeab7},
+-      {0xd51ea6fa85785631, 0x552a74227f3ea565},
+-      {0x8533285c936b35de, 0xd53a88958f87275f},
+-      {0xa67ff273b8460356, 0x8a892abaf368f137},
+-      {0xd01fef10a657842c, 0x2d2b7569b0432d85},
+-      {0x8213f56a67f6b29b, 0x9c3b29620e29fc73},
+-      {0xa298f2c501f45f42, 0x8349f3ba91b47b8f},
+-      {0xcb3f2f7642717713, 0x241c70a936219a73},
+-      {0xfe0efb53d30dd4d7, 0xed238cd383aa0110},
+-      {0x9ec95d1463e8a506, 0xf4363804324a40aa},
+-      {0xc67bb4597ce2ce48, 0xb143c6053edcd0d5},
+-      {0xf81aa16fdc1b81da, 0xdd94b7868e94050a},
+-      {0x9b10a4e5e9913128, 0xca7cf2b4191c8326},
+-      {0xc1d4ce1f63f57d72, 0xfd1c2f611f63a3f0},
+-      {0xf24a01a73cf2dccf, 0xbc633b39673c8cec},
+-      {0x976e41088617ca01, 0xd5be0503e085d813},
+-      {0xbd49d14aa79dbc82, 0x4b2d8644d8a74e18},
+-      {0xec9c459d51852ba2, 0xddf8e7d60ed1219e},
+-      {0x93e1ab8252f33b45, 0xcabb90e5c942b503},
+-      {0xb8da1662e7b00a17, 0x3d6a751f3b936243},
+-      {0xe7109bfba19c0c9d, 0x0cc512670a783ad4},
+-      {0x906a617d450187e2, 0x27fb2b80668b24c5},
+-      {0xb484f9dc9641e9da, 0xb1f9f660802dedf6},
+-      {0xe1a63853bbd26451, 0x5e7873f8a0396973},
+-      {0x8d07e33455637eb2, 0xdb0b487b6423e1e8},
+-      {0xb049dc016abc5e5f, 0x91ce1a9a3d2cda62},
+-      {0xdc5c5301c56b75f7, 0x7641a140cc7810fb},
+-      {0x89b9b3e11b6329ba, 0xa9e904c87fcb0a9d},
+-      {0xac2820d9623bf429, 0x546345fa9fbdcd44},
+-      {0xd732290fbacaf133, 0xa97c177947ad4095},
+-      {0x867f59a9d4bed6c0, 0x49ed8eabcccc485d},
+-      {0xa81f301449ee8c70, 0x5c68f256bfff5a74},
+-      {0xd226fc195c6a2f8c, 0x73832eec6fff3111},
+-      {0x83585d8fd9c25db7, 0xc831fd53c5ff7eab},
+-      {0xa42e74f3d032f525, 0xba3e7ca8b77f5e55},
+-      {0xcd3a1230c43fb26f, 0x28ce1bd2e55f35eb},
+-      {0x80444b5e7aa7cf85, 0x7980d163cf5b81b3},
+-      {0xa0555e361951c366, 0xd7e105bcc332621f},
+-      {0xc86ab5c39fa63440, 0x8dd9472bf3fefaa7},
+-      {0xfa856334878fc150, 0xb14f98f6f0feb951},
+-      {0x9c935e00d4b9d8d2, 0x6ed1bf9a569f33d3},
+-      {0xc3b8358109e84f07, 0x0a862f80ec4700c8},
+-      {0xf4a642e14c6262c8, 0xcd27bb612758c0fa},
+-      {0x98e7e9cccfbd7dbd, 0x8038d51cb897789c},
+-      {0xbf21e44003acdd2c, 0xe0470a63e6bd56c3},
+-      {0xeeea5d5004981478, 0x1858ccfce06cac74},
+-      {0x95527a5202df0ccb, 0x0f37801e0c43ebc8},
+-      {0xbaa718e68396cffd, 0xd30560258f54e6ba},
+-      {0xe950df20247c83fd, 0x47c6b82ef32a2069},
+-      {0x91d28b7416cdd27e, 0x4cdc331d57fa5441},
+-      {0xb6472e511c81471d, 0xe0133fe4adf8e952},
+-      {0xe3d8f9e563a198e5, 0x58180fddd97723a6},
+-      {0x8e679c2f5e44ff8f, 0x570f09eaa7ea7648},
+-      {0xb201833b35d63f73, 0x2cd2cc6551e513da},
+-      {0xde81e40a034bcf4f, 0xf8077f7ea65e58d1},
+-      {0x8b112e86420f6191, 0xfb04afaf27faf782},
+-      {0xadd57a27d29339f6, 0x79c5db9af1f9b563},
+-      {0xd94ad8b1c7380874, 0x18375281ae7822bc},
+-      {0x87cec76f1c830548, 0x8f2293910d0b15b5},
+-      {0xa9c2794ae3a3c69a, 0xb2eb3875504ddb22},
+-      {0xd433179d9c8cb841, 0x5fa60692a46151eb},
+-      {0x849feec281d7f328, 0xdbc7c41ba6bcd333},
+-      {0xa5c7ea73224deff3, 0x12b9b522906c0800},
+-      {0xcf39e50feae16bef, 0xd768226b34870a00},
+-      {0x81842f29f2cce375, 0xe6a1158300d46640},
+-      {0xa1e53af46f801c53, 0x60495ae3c1097fd0},
+-      {0xca5e89b18b602368, 0x385bb19cb14bdfc4},
+-      {0xfcf62c1dee382c42, 0x46729e03dd9ed7b5},
+-      {0x9e19db92b4e31ba9, 0x6c07a2c26a8346d1},
+-      {0xc5a05277621be293, 0xc7098b7305241885},
+-      { 0xf70867153aa2db38,
+-        0xb8cbee4fc66d1ea7 }
+-#else
+-      {0xff77b1fcbebcdc4f, 0x25e8e89c13bb0f7b},
+-      {0xce5d73ff402d98e3, 0xfb0a3d212dc81290},
+-      {0xa6b34ad8c9dfc06f, 0xf42faa48c0ea481f},
+-      {0x86a8d39ef77164bc, 0xae5dff9c02033198},
+-      {0xd98ddaee19068c76, 0x3badd624dd9b0958},
+-      {0xafbd2350644eeacf, 0xe5d1929ef90898fb},
+-      {0x8df5efabc5979c8f, 0xca8d3ffa1ef463c2},
+-      {0xe55990879ddcaabd, 0xcc420a6a101d0516},
+-      {0xb94470938fa89bce, 0xf808e40e8d5b3e6a},
+-      {0x95a8637627989aad, 0xdde7001379a44aa9},
+-      {0xf1c90080baf72cb1, 0x5324c68b12dd6339},
+-      {0xc350000000000000, 0x0000000000000000},
+-      {0x9dc5ada82b70b59d, 0xf020000000000000},
+-      {0xfee50b7025c36a08, 0x02f236d04753d5b4},
+-      {0xcde6fd5e09abcf26, 0xed4c0226b55e6f86},
+-      {0xa6539930bf6bff45, 0x84db8346b786151c},
+-      {0x865b86925b9bc5c2, 0x0b8a2392ba45a9b2},
+-      {0xd910f7ff28069da4, 0x1b2ba1518094da04},
+-      {0xaf58416654a6babb, 0x387ac8d1970027b2},
+-      {0x8da471a9de737e24, 0x5ceaecfed289e5d2},
+-      {0xe4d5e82392a40515, 0x0fabaf3feaa5334a},
+-      {0xb8da1662e7b00a17, 0x3d6a751f3b936243},
+-      { 0x95527a5202df0ccb,
+-        0x0f37801e0c43ebc8 }
+-#endif
+-    };
+-
+-#if FMT_USE_FULL_CACHE_DRAGONBOX
+-    return pow10_significands[k - float_info<double>::min_k];
+-#else
+-    static constexpr const uint64_t powers_of_5_64[] = {
+-        0x0000000000000001, 0x0000000000000005, 0x0000000000000019,
+-        0x000000000000007d, 0x0000000000000271, 0x0000000000000c35,
+-        0x0000000000003d09, 0x000000000001312d, 0x000000000005f5e1,
+-        0x00000000001dcd65, 0x00000000009502f9, 0x0000000002e90edd,
+-        0x000000000e8d4a51, 0x0000000048c27395, 0x000000016bcc41e9,
+-        0x000000071afd498d, 0x0000002386f26fc1, 0x000000b1a2bc2ec5,
+-        0x000003782dace9d9, 0x00001158e460913d, 0x000056bc75e2d631,
+-        0x0001b1ae4d6e2ef5, 0x000878678326eac9, 0x002a5a058fc295ed,
+-        0x00d3c21bcecceda1, 0x0422ca8b0a00a425, 0x14adf4b7320334b9};
+-
+-    static constexpr const uint32_t pow10_recovery_errors[] = {
+-        0x50001400, 0x54044100, 0x54014555, 0x55954415, 0x54115555, 0x00000001,
+-        0x50000000, 0x00104000, 0x54010004, 0x05004001, 0x55555544, 0x41545555,
+-        0x54040551, 0x15445545, 0x51555514, 0x10000015, 0x00101100, 0x01100015,
+-        0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x04450514, 0x45414110,
+-        0x55555145, 0x50544050, 0x15040155, 0x11054140, 0x50111514, 0x11451454,
+-        0x00400541, 0x00000000, 0x55555450, 0x10056551, 0x10054011, 0x55551014,
+-        0x69514555, 0x05151109, 0x00155555};
+-
+-    static const int compression_ratio = 27;
+-
+-    // Compute base index.
+-    int cache_index = (k - float_info<double>::min_k) / compression_ratio;
+-    int kb = cache_index * compression_ratio + float_info<double>::min_k;
+-    int offset = k - kb;
+-
+-    // Get base cache.
+-    uint128_wrapper base_cache = pow10_significands[cache_index];
+-    if (offset == 0) return base_cache;
+-
+-    // Compute the required amount of bit-shift.
+-    int alpha = floor_log2_pow10(kb + offset) - floor_log2_pow10(kb) - offset;
+-    FMT_ASSERT(alpha > 0 && alpha < 64, "shifting error detected");
+-
+-    // Try to recover the real cache.
+-    uint64_t pow5 = powers_of_5_64[offset];
+-    uint128_wrapper recovered_cache = umul128(base_cache.high(), pow5);
+-    uint128_wrapper middle_low =
+-        umul128(base_cache.low() - (kb < 0 ? 1u : 0u), pow5);
+-
+-    recovered_cache += middle_low.high();
+-
+-    uint64_t high_to_middle = recovered_cache.high() << (64 - alpha);
+-    uint64_t middle_to_low = recovered_cache.low() << (64 - alpha);
+-
+-    recovered_cache =
+-        uint128_wrapper{(recovered_cache.low() >> alpha) | high_to_middle,
+-                        ((middle_low.low() >> alpha) | middle_to_low)};
+-
+-    if (kb < 0) recovered_cache += 1;
+-
+-    // Get error.
+-    int error_idx = (k - float_info<double>::min_k) / 16;
+-    uint32_t error = (pow10_recovery_errors[error_idx] >>
+-                      ((k - float_info<double>::min_k) % 16) * 2) &
+-                     0x3;
+-
+-    // Add the error back.
+-    FMT_ASSERT(recovered_cache.low() + error >= recovered_cache.low(), "");
+-    return {recovered_cache.high(), recovered_cache.low() + error};
+-#endif
+-  }
+-
+-  static carrier_uint compute_mul(carrier_uint u,
+-                                  const cache_entry_type& cache) FMT_NOEXCEPT {
+-    return umul192_upper64(u, cache);
+-  }
+-
+-  static uint32_t compute_delta(cache_entry_type const& cache,
+-                                int beta_minus_1) FMT_NOEXCEPT {
+-    return static_cast<uint32_t>(cache.high() >> (64 - 1 - beta_minus_1));
+-  }
+-
+-  static bool compute_mul_parity(carrier_uint two_f,
+-                                 const cache_entry_type& cache,
+-                                 int beta_minus_1) FMT_NOEXCEPT {
+-    FMT_ASSERT(beta_minus_1 >= 1, "");
+-    FMT_ASSERT(beta_minus_1 < 64, "");
+-
+-    return ((umul192_middle64(two_f, cache) >> (64 - beta_minus_1)) & 1) != 0;
+-  }
+-
+-  static carrier_uint compute_left_endpoint_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return (cache.high() -
+-            (cache.high() >> (float_info<double>::significand_bits + 2))) >>
+-           (64 - float_info<double>::significand_bits - 1 - beta_minus_1);
+-  }
+-
+-  static carrier_uint compute_right_endpoint_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return (cache.high() +
+-            (cache.high() >> (float_info<double>::significand_bits + 1))) >>
+-           (64 - float_info<double>::significand_bits - 1 - beta_minus_1);
+-  }
+-
+-  static carrier_uint compute_round_up_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return ((cache.high() >>
+-             (64 - float_info<double>::significand_bits - 2 - beta_minus_1)) +
+-            1) /
+-           2;
+-  }
+-};
+-
+-// Various integer checks
+-template <class T>
+-bool is_left_endpoint_integer_shorter_interval(int exponent) FMT_NOEXCEPT {
+-  return exponent >=
+-             float_info<
+-                 T>::case_shorter_interval_left_endpoint_lower_threshold &&
+-         exponent <=
+-             float_info<T>::case_shorter_interval_left_endpoint_upper_threshold;
+-}
+-template <class T>
+-bool is_endpoint_integer(typename float_info<T>::carrier_uint two_f,
+-                         int exponent, int minus_k) FMT_NOEXCEPT {
+-  if (exponent < float_info<T>::case_fc_pm_half_lower_threshold) return false;
+-  // For k >= 0.
+-  if (exponent <= float_info<T>::case_fc_pm_half_upper_threshold) return true;
+-  // For k < 0.
+-  if (exponent > float_info<T>::divisibility_check_by_5_threshold) return false;
+-  return divisible_by_power_of_5(two_f, minus_k);
+-}
+-
+-template <class T>
+-bool is_center_integer(typename float_info<T>::carrier_uint two_f, int exponent,
+-                       int minus_k) FMT_NOEXCEPT {
+-  // Exponent for 5 is negative.
+-  if (exponent > float_info<T>::divisibility_check_by_5_threshold) return false;
+-  if (exponent > float_info<T>::case_fc_upper_threshold)
+-    return divisible_by_power_of_5(two_f, minus_k);
+-  // Both exponents are nonnegative.
+-  if (exponent >= float_info<T>::case_fc_lower_threshold) return true;
+-  // Exponent for 2 is negative.
+-  return divisible_by_power_of_2(two_f, minus_k - exponent + 1);
+-}
+-
+-// Remove trailing zeros from n and return the number of zeros removed (float)
+-FMT_INLINE int remove_trailing_zeros(uint32_t& n) FMT_NOEXCEPT {
+-#ifdef FMT_BUILTIN_CTZ
+-  int t = FMT_BUILTIN_CTZ(n);
+-#else
+-  int t = ctz(n);
+-#endif
+-  if (t > float_info<float>::max_trailing_zeros)
+-    t = float_info<float>::max_trailing_zeros;
+-
+-  const uint32_t mod_inv1 = 0xcccccccd;
+-  const uint32_t max_quotient1 = 0x33333333;
+-  const uint32_t mod_inv2 = 0xc28f5c29;
+-  const uint32_t max_quotient2 = 0x0a3d70a3;
+-
+-  int s = 0;
+-  for (; s < t - 1; s += 2) {
+-    if (n * mod_inv2 > max_quotient2) break;
+-    n *= mod_inv2;
+-  }
+-  if (s < t && n * mod_inv1 <= max_quotient1) {
+-    n *= mod_inv1;
+-    ++s;
+-  }
+-  n >>= s;
+-  return s;
+-}
+-
+-// Removes trailing zeros and returns the number of zeros removed (double)
+-FMT_INLINE int remove_trailing_zeros(uint64_t& n) FMT_NOEXCEPT {
+-#ifdef FMT_BUILTIN_CTZLL
+-  int t = FMT_BUILTIN_CTZLL(n);
+-#else
+-  int t = ctzll(n);
+-#endif
+-  if (t > float_info<double>::max_trailing_zeros)
+-    t = float_info<double>::max_trailing_zeros;
+-  // Divide by 10^8 and reduce to 32-bits
+-  // Since ret_value.significand <= (2^64 - 1) / 1000 < 10^17,
+-  // both of the quotient and the r should fit in 32-bits
+-
+-  const uint32_t mod_inv1 = 0xcccccccd;
+-  const uint32_t max_quotient1 = 0x33333333;
+-  const uint64_t mod_inv8 = 0xc767074b22e90e21;
+-  const uint64_t max_quotient8 = 0x00002af31dc46118;
+-
+-  // If the number is divisible by 1'0000'0000, work with the quotient
+-  if (t >= 8) {
+-    auto quotient_candidate = n * mod_inv8;
+-
+-    if (quotient_candidate <= max_quotient8) {
+-      auto quotient = static_cast<uint32_t>(quotient_candidate >> 8);
+-
+-      int s = 8;
+-      for (; s < t; ++s) {
+-        if (quotient * mod_inv1 > max_quotient1) break;
+-        quotient *= mod_inv1;
+-      }
+-      quotient >>= (s - 8);
+-      n = quotient;
+-      return s;
+-    }
+-  }
+-
+-  // Otherwise, work with the remainder
+-  auto quotient = static_cast<uint32_t>(n / 100000000);
+-  auto remainder = static_cast<uint32_t>(n - 100000000 * quotient);
+-
+-  if (t == 0 || remainder * mod_inv1 > max_quotient1) {
+-    return 0;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 1 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 1) + quotient * 10000000ull;
+-    return 1;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 2 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 2) + quotient * 1000000ull;
+-    return 2;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 3 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 3) + quotient * 100000ull;
+-    return 3;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 4 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 4) + quotient * 10000ull;
+-    return 4;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 5 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 5) + quotient * 1000ull;
+-    return 5;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 6 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 6) + quotient * 100ull;
+-    return 6;
+-  }
+-  remainder *= mod_inv1;
+-
+-  n = (remainder >> 7) + quotient * 10ull;
+-  return 7;
+-}
+-
+-// The main algorithm for shorter interval case
+-template <class T>
+-FMT_INLINE decimal_fp<T> shorter_interval_case(int exponent) FMT_NOEXCEPT {
+-  decimal_fp<T> ret_value;
+-  // Compute k and beta
+-  const int minus_k = floor_log10_pow2_minus_log10_4_over_3(exponent);
+-  const int beta_minus_1 = exponent + floor_log2_pow10(-minus_k);
+-
+-  // Compute xi and zi
+-  using cache_entry_type = typename cache_accessor<T>::cache_entry_type;
+-  const cache_entry_type cache = cache_accessor<T>::get_cached_power(-minus_k);
+-
+-  auto xi = cache_accessor<T>::compute_left_endpoint_for_shorter_interval_case(
+-      cache, beta_minus_1);
+-  auto zi = cache_accessor<T>::compute_right_endpoint_for_shorter_interval_case(
+-      cache, beta_minus_1);
+-
+-  // If the left endpoint is not an integer, increase it
+-  if (!is_left_endpoint_integer_shorter_interval<T>(exponent)) ++xi;
+-
+-  // Try bigger divisor
+-  ret_value.significand = zi / 10;
+-
+-  // If succeed, remove trailing zeros if necessary and return
+-  if (ret_value.significand * 10 >= xi) {
+-    ret_value.exponent = minus_k + 1;
+-    ret_value.exponent += remove_trailing_zeros(ret_value.significand);
+-    return ret_value;
+-  }
+-
+-  // Otherwise, compute the round-up of y
+-  ret_value.significand =
+-      cache_accessor<T>::compute_round_up_for_shorter_interval_case(
+-          cache, beta_minus_1);
+-  ret_value.exponent = minus_k;
+-
+-  // When tie occurs, choose one of them according to the rule
+-  if (exponent >= float_info<T>::shorter_interval_tie_lower_threshold &&
+-      exponent <= float_info<T>::shorter_interval_tie_upper_threshold) {
+-    ret_value.significand = ret_value.significand % 2 == 0
+-                                ? ret_value.significand
+-                                : ret_value.significand - 1;
+-  } else if (ret_value.significand < xi) {
+-    ++ret_value.significand;
+-  }
+-  return ret_value;
+-}
+-
+-template <typename T> decimal_fp<T> to_decimal(T x) FMT_NOEXCEPT {
+-  // Step 1: integer promotion & Schubfach multiplier calculation.
+-
+-  using carrier_uint = typename float_info<T>::carrier_uint;
+-  using cache_entry_type = typename cache_accessor<T>::cache_entry_type;
+-  auto br = bit_cast<carrier_uint>(x);
+-
+-  // Extract significand bits and exponent bits.
+-  const carrier_uint significand_mask =
+-      (static_cast<carrier_uint>(1) << float_info<T>::significand_bits) - 1;
+-  carrier_uint significand = (br & significand_mask);
+-  int exponent = static_cast<int>((br & exponent_mask<T>()) >>
+-                                  float_info<T>::significand_bits);
+-
+-  if (exponent != 0) {  // Check if normal.
+-    exponent += float_info<T>::exponent_bias - float_info<T>::significand_bits;
+-
+-    // Shorter interval case; proceed like Schubfach.
+-    if (significand == 0) return shorter_interval_case<T>(exponent);
+-
+-    significand |=
+-        (static_cast<carrier_uint>(1) << float_info<T>::significand_bits);
+-  } else {
+-    // Subnormal case; the interval is always regular.
+-    if (significand == 0) return {0, 0};
+-    exponent = float_info<T>::min_exponent - float_info<T>::significand_bits;
+-  }
+-
+-  const bool include_left_endpoint = (significand % 2 == 0);
+-  const bool include_right_endpoint = include_left_endpoint;
+-
+-  // Compute k and beta.
+-  const int minus_k = floor_log10_pow2(exponent) - float_info<T>::kappa;
+-  const cache_entry_type cache = cache_accessor<T>::get_cached_power(-minus_k);
+-  const int beta_minus_1 = exponent + floor_log2_pow10(-minus_k);
+-
+-  // Compute zi and deltai
+-  // 10^kappa <= deltai < 10^(kappa + 1)
+-  const uint32_t deltai = cache_accessor<T>::compute_delta(cache, beta_minus_1);
+-  const carrier_uint two_fc = significand << 1;
+-  const carrier_uint two_fr = two_fc | 1;
+-  const carrier_uint zi =
+-      cache_accessor<T>::compute_mul(two_fr << beta_minus_1, cache);
+-
+-  // Step 2: Try larger divisor; remove trailing zeros if necessary
+-
+-  // Using an upper bound on zi, we might be able to optimize the division
+-  // better than the compiler; we are computing zi / big_divisor here
+-  decimal_fp<T> ret_value;
+-  ret_value.significand = divide_by_10_to_kappa_plus_1(zi);
+-  uint32_t r = static_cast<uint32_t>(zi - float_info<T>::big_divisor *
+-                                              ret_value.significand);
+-
+-  if (r > deltai) {
+-    goto small_divisor_case_label;
+-  } else if (r < deltai) {
+-    // Exclude the right endpoint if necessary
+-    if (r == 0 && !include_right_endpoint &&
+-        is_endpoint_integer<T>(two_fr, exponent, minus_k)) {
+-      --ret_value.significand;
+-      r = float_info<T>::big_divisor;
+-      goto small_divisor_case_label;
+-    }
+-  } else {
+-    // r == deltai; compare fractional parts
+-    // Check conditions in the order different from the paper
+-    // to take advantage of short-circuiting
+-    const carrier_uint two_fl = two_fc - 1;
+-    if ((!include_left_endpoint ||
+-         !is_endpoint_integer<T>(two_fl, exponent, minus_k)) &&
+-        !cache_accessor<T>::compute_mul_parity(two_fl, cache, beta_minus_1)) {
+-      goto small_divisor_case_label;
+-    }
+-  }
+-  ret_value.exponent = minus_k + float_info<T>::kappa + 1;
+-
+-  // We may need to remove trailing zeros
+-  ret_value.exponent += remove_trailing_zeros(ret_value.significand);
+-  return ret_value;
+-
+-  // Step 3: Find the significand with the smaller divisor
+-
+-small_divisor_case_label:
+-  ret_value.significand *= 10;
+-  ret_value.exponent = minus_k + float_info<T>::kappa;
+-
+-  const uint32_t mask = (1u << float_info<T>::kappa) - 1;
+-  auto dist = r - (deltai / 2) + (float_info<T>::small_divisor / 2);
+-
+-  // Is dist divisible by 2^kappa?
+-  if ((dist & mask) == 0) {
+-    const bool approx_y_parity =
+-        ((dist ^ (float_info<T>::small_divisor / 2)) & 1) != 0;
+-    dist >>= float_info<T>::kappa;
+-
+-    // Is dist divisible by 5^kappa?
+-    if (check_divisibility_and_divide_by_pow5<float_info<T>::kappa>(dist)) {
+-      ret_value.significand += dist;
+-
+-      // Check z^(f) >= epsilon^(f)
+-      // We have either yi == zi - epsiloni or yi == (zi - epsiloni) - 1,
+-      // where yi == zi - epsiloni if and only if z^(f) >= epsilon^(f)
+-      // Since there are only 2 possibilities, we only need to care about the
+-      // parity. Also, zi and r should have the same parity since the divisor
+-      // is an even number
+-      if (cache_accessor<T>::compute_mul_parity(two_fc, cache, beta_minus_1) !=
+-          approx_y_parity) {
+-        --ret_value.significand;
+-      } else {
+-        // If z^(f) >= epsilon^(f), we might have a tie
+-        // when z^(f) == epsilon^(f), or equivalently, when y is an integer
+-        if (is_center_integer<T>(two_fc, exponent, minus_k)) {
+-          ret_value.significand = ret_value.significand % 2 == 0
+-                                      ? ret_value.significand
+-                                      : ret_value.significand - 1;
+-        }
+-      }
+-    }
+-    // Is dist not divisible by 5^kappa?
+-    else {
+-      ret_value.significand += dist;
+-    }
+-  }
+-  // Is dist not divisible by 2^kappa?
+-  else {
+-    // Since we know dist is small, we might be able to optimize the division
+-    // better than the compiler; we are computing dist / small_divisor here
+-    ret_value.significand +=
+-        small_division_by_pow10<float_info<T>::kappa>(dist);
+-  }
+-  return ret_value;
+-}
+-}  // namespace dragonbox
+-
+-// Formats a floating-point number using a variation of the Fixed-Precision
+-// Positive Floating-Point Printout ((FPP)^2) algorithm by Steele & White:
+-// https://fmt.dev/papers/p372-steele.pdf.
+-FMT_CONSTEXPR20 inline void format_dragon(fp value, bool is_predecessor_closer,
+-                                          int num_digits, buffer<char>& buf,
+-                                          int& exp10) {
+-  bigint numerator;    // 2 * R in (FPP)^2.
+-  bigint denominator;  // 2 * S in (FPP)^2.
+-  // lower and upper are differences between value and corresponding boundaries.
+-  bigint lower;             // (M^- in (FPP)^2).
+-  bigint upper_store;       // upper's value if different from lower.
+-  bigint* upper = nullptr;  // (M^+ in (FPP)^2).
+-  // Shift numerator and denominator by an extra bit or two (if lower boundary
+-  // is closer) to make lower and upper integers. This eliminates multiplication
+-  // by 2 during later computations.
+-  int shift = is_predecessor_closer ? 2 : 1;
+-  uint64_t significand = value.f << shift;
+-  if (value.e >= 0) {
+-    numerator.assign(significand);
+-    numerator <<= value.e;
+-    lower.assign(1);
+-    lower <<= value.e;
+-    if (shift != 1) {
+-      upper_store.assign(1);
+-      upper_store <<= value.e + 1;
+-      upper = &upper_store;
+-    }
+-    denominator.assign_pow10(exp10);
+-    denominator <<= shift;
+-  } else if (exp10 < 0) {
+-    numerator.assign_pow10(-exp10);
+-    lower.assign(numerator);
+-    if (shift != 1) {
+-      upper_store.assign(numerator);
+-      upper_store <<= 1;
+-      upper = &upper_store;
+-    }
+-    numerator *= significand;
+-    denominator.assign(1);
+-    denominator <<= shift - value.e;
+-  } else {
+-    numerator.assign(significand);
+-    denominator.assign_pow10(exp10);
+-    denominator <<= shift - value.e;
+-    lower.assign(1);
+-    if (shift != 1) {
+-      upper_store.assign(1ULL << 1);
+-      upper = &upper_store;
+-    }
+-  }
+-  // Invariant: value == (numerator / denominator) * pow(10, exp10).
+-  if (num_digits < 0) {
+-    // Generate the shortest representation.
+-    if (!upper) upper = &lower;
+-    bool even = (value.f & 1) == 0;
+-    num_digits = 0;
+-    char* data = buf.data();
+-    for (;;) {
+-      int digit = numerator.divmod_assign(denominator);
+-      bool low = compare(numerator, lower) - even < 0;  // numerator <[=] lower.
+-      // numerator + upper >[=] pow10:
+-      bool high = add_compare(numerator, *upper, denominator) + even > 0;
+-      data[num_digits++] = static_cast<char>('0' + digit);
+-      if (low || high) {
+-        if (!low) {
+-          ++data[num_digits - 1];
+-        } else if (high) {
+-          int result = add_compare(numerator, numerator, denominator);
+-          // Round half to even.
+-          if (result > 0 || (result == 0 && (digit % 2) != 0))
+-            ++data[num_digits - 1];
+-        }
+-        buf.try_resize(to_unsigned(num_digits));
+-        exp10 -= num_digits - 1;
+-        return;
+-      }
+-      numerator *= 10;
+-      lower *= 10;
+-      if (upper != &lower) *upper *= 10;
+-    }
+-  }
+-  // Generate the given number of digits.
+-  exp10 -= num_digits - 1;
+-  if (num_digits == 0) {
+-    denominator *= 10;
+-    auto digit = add_compare(numerator, numerator, denominator) > 0 ? '1' : '0';
+-    buf.push_back(digit);
+-    return;
+-  }
+-  buf.try_resize(to_unsigned(num_digits));
+-  for (int i = 0; i < num_digits - 1; ++i) {
+-    int digit = numerator.divmod_assign(denominator);
+-    buf[i] = static_cast<char>('0' + digit);
+-    numerator *= 10;
+-  }
+-  int digit = numerator.divmod_assign(denominator);
+-  auto result = add_compare(numerator, numerator, denominator);
+-  if (result > 0 || (result == 0 && (digit % 2) != 0)) {
+-    if (digit == 9) {
+-      const auto overflow = '0' + 10;
+-      buf[num_digits - 1] = overflow;
+-      // Propagate the carry.
+-      for (int i = num_digits - 1; i > 0 && buf[i] == overflow; --i) {
+-        buf[i] = '0';
+-        ++buf[i - 1];
+-      }
+-      if (buf[0] == overflow) {
+-        buf[0] = '1';
+-        ++exp10;
+-      }
+-      return;
+-    }
+-    ++digit;
+-  }
+-  buf[num_digits - 1] = static_cast<char>('0' + digit);
+-}
+-
+-template <typename Float>
+-FMT_HEADER_ONLY_CONSTEXPR20 int format_float(Float value, int precision,
+-                                             float_specs specs,
+-                                             buffer<char>& buf) {
+-  // float is passed as double to reduce the number of instantiations.
+-  static_assert(!std::is_same<Float, float>::value, "");
+-  FMT_ASSERT(value >= 0, "value is negative");
+-
+-  const bool fixed = specs.format == float_format::fixed;
+-  if (value <= 0) {  // <= instead of == to silence a warning.
+-    if (precision <= 0 || !fixed) {
+-      buf.push_back('0');
+-      return 0;
+-    }
+-    buf.try_resize(to_unsigned(precision));
+-    fill_n(buf.data(), precision, '0');
+-    return -precision;
+-  }
+-
+-  if (specs.fallback) return snprintf_float(value, precision, specs, buf);
+-
+-  if (!is_constant_evaluated() && precision < 0) {
+-    // Use Dragonbox for the shortest format.
+-    if (specs.binary32) {
+-      auto dec = dragonbox::to_decimal(static_cast<float>(value));
+-      write<char>(buffer_appender<char>(buf), dec.significand);
+-      return dec.exponent;
+-    }
+-    auto dec = dragonbox::to_decimal(static_cast<double>(value));
+-    write<char>(buffer_appender<char>(buf), dec.significand);
+-    return dec.exponent;
+-  }
+-
+-  int exp = 0;
+-  bool use_dragon = true;
+-  if (is_fast_float<Float>()) {
+-    // Use Grisu + Dragon4 for the given precision:
+-    // https://www.cs.tufts.edu/~nr/cs257/archive/florian-loitsch/printf.pdf.
+-    const int min_exp = -60;  // alpha in Grisu.
+-    int cached_exp10 = 0;     // K in Grisu.
+-    fp normalized = normalize(fp(value));
+-    const auto cached_pow = get_cached_power(
+-        min_exp - (normalized.e + fp::num_significand_bits), cached_exp10);
+-    normalized = normalized * cached_pow;
+-    gen_digits_handler handler{buf.data(), 0, precision, -cached_exp10, fixed};
+-    if (grisu_gen_digits(normalized, 1, exp, handler) != digits::error &&
+-        !is_constant_evaluated()) {
+-      exp += handler.exp10;
+-      buf.try_resize(to_unsigned(handler.size));
+-      use_dragon = false;
+-    } else {
+-      exp += handler.size - cached_exp10 - 1;
+-      precision = handler.precision;
+-    }
+-  }
+-  if (use_dragon) {
+-    auto f = fp();
+-    bool is_predecessor_closer =
+-        specs.binary32 ? f.assign(static_cast<float>(value)) : f.assign(value);
+-    // Limit precision to the maximum possible number of significant digits in
+-    // an IEEE754 double because we don't need to generate zeros.
+-    const int max_double_digits = 767;
+-    if (precision > max_double_digits) precision = max_double_digits;
+-    format_dragon(f, is_predecessor_closer, precision, buf, exp);
+-  }
+-  if (!fixed && !specs.showpoint) {
+-    // Remove trailing zeros.
+-    auto num_digits = buf.size();
+-    while (num_digits > 0 && buf[num_digits - 1] == '0') {
+-      --num_digits;
+-      ++exp;
+-    }
+-    buf.try_resize(num_digits);
+-  }
+-  return exp;
+-}
+-
+-template <typename T>
+-int snprintf_float(T value, int precision, float_specs specs,
+-                   buffer<char>& buf) {
+-  // Buffer capacity must be non-zero, otherwise MSVC's vsnprintf_s will fail.
+-  FMT_ASSERT(buf.capacity() > buf.size(), "empty buffer");
+-  static_assert(!std::is_same<T, float>::value, "");
+-
+-  // Subtract 1 to account for the difference in precision since we use %e for
+-  // both general and exponent format.
+-  if (specs.format == float_format::general ||
+-      specs.format == float_format::exp)
+-    precision = (precision >= 0 ? precision : 6) - 1;
+-
+-  // Build the format string.
+-  enum { max_format_size = 7 };  // The longest format is "%#.*Le".
+-  char format[max_format_size];
+-  char* format_ptr = format;
+-  *format_ptr++ = '%';
+-  if (specs.showpoint && specs.format == float_format::hex) *format_ptr++ = '#';
+-  if (precision >= 0) {
+-    *format_ptr++ = '.';
+-    *format_ptr++ = '*';
+-  }
+-  if (std::is_same<T, long double>()) *format_ptr++ = 'L';
+-  *format_ptr++ = specs.format != float_format::hex
+-                      ? (specs.format == float_format::fixed ? 'f' : 'e')
+-                      : (specs.upper ? 'A' : 'a');
+-  *format_ptr = '\0';
+-
+-  // Format using snprintf.
+-  auto offset = buf.size();
+-  for (;;) {
+-    auto begin = buf.data() + offset;
+-    auto capacity = buf.capacity() - offset;
+-#ifdef FMT_FUZZ
+-    if (precision > 100000)
+-      throw std::runtime_error(
+-          "fuzz mode - avoid large allocation inside snprintf");
+-#endif
+-    // Suppress the warning about a nonliteral format string.
+-    // Cannot use auto because of a bug in MinGW (#1532).
+-    int (*snprintf_ptr)(char*, size_t, const char*, ...) = FMT_SNPRINTF;
+-    int result = precision >= 0
+-                     ? snprintf_ptr(begin, capacity, format, precision, value)
+-                     : snprintf_ptr(begin, capacity, format, value);
+-    if (result < 0) {
+-      // The buffer will grow exponentially.
+-      buf.try_reserve(buf.capacity() + 1);
+-      continue;
+-    }
+-    auto size = to_unsigned(result);
+-    // Size equal to capacity means that the last character was truncated.
+-    if (size >= capacity) {
+-      buf.try_reserve(size + offset + 1);  // Add 1 for the terminating '\0'.
+-      continue;
+-    }
+-    auto is_digit = [](char c) { return c >= '0' && c <= '9'; };
+-    if (specs.format == float_format::fixed) {
+-      if (precision == 0) {
+-        buf.try_resize(size);
+-        return 0;
+-      }
+-      // Find and remove the decimal point.
+-      auto end = begin + size, p = end;
+-      do {
+-        --p;
+-      } while (is_digit(*p));
+-      int fraction_size = static_cast<int>(end - p - 1);
+-      std::memmove(p, p + 1, to_unsigned(fraction_size));
+-      buf.try_resize(size - 1);
+-      return -fraction_size;
+-    }
+-    if (specs.format == float_format::hex) {
+-      buf.try_resize(size + offset);
+-      return 0;
+-    }
+-    // Find and parse the exponent.
+-    auto end = begin + size, exp_pos = end;
+-    do {
+-      --exp_pos;
+-    } while (*exp_pos != 'e');
+-    char sign = exp_pos[1];
+-    FMT_ASSERT(sign == '+' || sign == '-', "");
+-    int exp = 0;
+-    auto p = exp_pos + 2;  // Skip 'e' and sign.
+-    do {
+-      FMT_ASSERT(is_digit(*p), "");
+-      exp = exp * 10 + (*p++ - '0');
+-    } while (p != end);
+-    if (sign == '-') exp = -exp;
+-    int fraction_size = 0;
+-    if (exp_pos != begin + 1) {
+-      // Remove trailing zeros.
+-      auto fraction_end = exp_pos - 1;
+-      while (*fraction_end == '0') --fraction_end;
+-      // Move the fractional part left to get rid of the decimal point.
+-      fraction_size = static_cast<int>(fraction_end - begin - 1);
+-      std::memmove(begin + 1, begin + 2, to_unsigned(fraction_size));
+-    }
+-    buf.try_resize(to_unsigned(fraction_size) + offset + 1);
+-    return exp - fraction_size;
+-  }
+-}
+-}  // namespace detail
+-
+-template <> struct formatter<detail::bigint> {
+-  FMT_CONSTEXPR format_parse_context::iterator parse(
+-      format_parse_context& ctx) {
+-    return ctx.begin();
+-  }
+-
+-  format_context::iterator format(const detail::bigint& n,
+-                                  format_context& ctx) {
+-    auto out = ctx.out();
+-    bool first = true;
+-    for (auto i = n.bigits_.size(); i > 0; --i) {
+-      auto value = n.bigits_[i - 1u];
+-      if (first) {
+-        out = format_to(out, FMT_STRING("{:x}"), value);
+-        first = false;
+-        continue;
+-      }
+-      out = format_to(out, FMT_STRING("{:08x}"), value);
+-    }
+-    if (n.exp_ > 0)
+-      out = format_to(out, FMT_STRING("p{}"),
+-                      n.exp_ * detail::bigint::bigit_bits);
+-    return out;
+-  }
+-};
+-
+-FMT_FUNC detail::utf8_to_utf16::utf8_to_utf16(string_view s) {
+-  for_each_codepoint(s, [this](uint32_t cp, string_view) {
+-    if (cp == invalid_code_point) FMT_THROW(std::runtime_error("invalid utf8"));
+-    if (cp <= 0xFFFF) {
+-      buffer_.push_back(static_cast<wchar_t>(cp));
+-    } else {
+-      cp -= 0x10000;
+-      buffer_.push_back(static_cast<wchar_t>(0xD800 + (cp >> 10)));
+-      buffer_.push_back(static_cast<wchar_t>(0xDC00 + (cp & 0x3FF)));
+-    }
+-    return true;
+-  });
+-  buffer_.push_back(0);
+-}
+-
+-FMT_FUNC void format_system_error(detail::buffer<char>& out, int error_code,
+-                                  const char* message) FMT_NOEXCEPT {
+-  FMT_TRY {
+-    auto ec = std::error_code(error_code, std::generic_category());
+-    write(std::back_inserter(out), std::system_error(ec, message).what());
+-    return;
+-  }
+-  FMT_CATCH(...) {}
+-  format_error_code(out, error_code, message);
+-}
+-
+-FMT_FUNC void report_system_error(int error_code,
+-                                  const char* message) FMT_NOEXCEPT {
+-  report_error(format_system_error, error_code, message);
+-}
+-
+-// DEPRECATED!
+-// This function is defined here and not inline for ABI compatibility.
+-FMT_FUNC void detail::error_handler::on_error(const char* message) {
+-  throw_format_error(message);
+-}
+-
+-FMT_FUNC std::string vformat(string_view fmt, format_args args) {
+-  // Don't optimize the "{}" case to keep the binary size small and because it
+-  // can be better optimized in fmt::format anyway.
+-  auto buffer = memory_buffer();
+-  detail::vformat_to(buffer, fmt, args);
+-  return to_string(buffer);
+-}
+-
+-#ifdef _WIN32
+-namespace detail {
+-using dword = conditional_t<sizeof(long) == 4, unsigned long, unsigned>;
+-extern "C" __declspec(dllimport) int __stdcall WriteConsoleW(  //
+-    void*, const void*, dword, dword*, void*);
+-}  // namespace detail
+-#endif
+-
+-namespace detail {
+-FMT_FUNC void print(std::FILE* f, string_view text) {
+-#ifdef _WIN32
+-  auto fd = _fileno(f);
+-  if (_isatty(fd)) {
+-    detail::utf8_to_utf16 u16(string_view(text.data(), text.size()));
+-    auto written = detail::dword();
+-    if (detail::WriteConsoleW(reinterpret_cast<void*>(_get_osfhandle(fd)),
+-                              u16.c_str(), static_cast<uint32_t>(u16.size()),
+-                              &written, nullptr)) {
+-      return;
+-    }
+-    // Fallback to fwrite on failure. It can happen if the output has been
+-    // redirected to NUL.
+-  }
+-#endif
+-  detail::fwrite_fully(text.data(), 1, text.size(), f);
+-}
+-}  // namespace detail
+-
+-FMT_FUNC void vprint(std::FILE* f, string_view format_str, format_args args) {
+-  memory_buffer buffer;
+-  detail::vformat_to(buffer, format_str, args);
+-  detail::print(f, {buffer.data(), buffer.size()});
+-}
+-
+-#ifdef _WIN32
+-// Print assuming legacy (non-Unicode) encoding.
+-FMT_FUNC void detail::vprint_mojibake(std::FILE* f, string_view format_str,
+-                                      format_args args) {
+-  memory_buffer buffer;
+-  detail::vformat_to(buffer, format_str,
+-                     basic_format_args<buffer_context<char>>(args));
+-  fwrite_fully(buffer.data(), 1, buffer.size(), f);
+-}
+-#endif
+-
+-FMT_FUNC void vprint(string_view format_str, format_args args) {
+-  vprint(stdout, format_str, args);
+-}
+-
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_FORMAT_INL_H_
+diff --git a/include/dpp/fmt/format.h b/include/dpp/fmt/format.h
+deleted file mode 100644
+index ee69651..0000000
+--- a/include/dpp/fmt/format.h
++++ /dev/null
+@@ -1,3104 +0,0 @@
+-/*
+- Formatting library for C++
+-
+- Copyright (c) 2012 - present, Victor Zverovich
+-
+- 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.
+-
+- --- Optional exception to the license ---
+-
+- As an exception, if, as a result of your compiling your source code, portions
+- of this Software are embedded into a machine-executable object form of such
+- source code, you may redistribute such embedded portions in such object form
+- without including the above copyright and permission notices.
+- */
+-
+-#ifndef FMT_FORMAT_H_
+-#define FMT_FORMAT_H_
+-
+-#include <cmath>         // std::signbit
+-#include <cstdint>       // uint32_t
+-#include <limits>        // std::numeric_limits
+-#include <memory>        // std::uninitialized_copy
+-#include <stdexcept>     // std::runtime_error
+-#include <system_error>  // std::system_error
+-#include <utility>       // std::swap
+-
+-#ifdef __cpp_lib_bit_cast
+-#  include <bit>  // std::bitcast
+-#endif
+-
+-#include "core.h"
+-
+-#if FMT_GCC_VERSION
+-#  define FMT_GCC_VISIBILITY_HIDDEN __attribute__((visibility("hidden")))
+-#else
+-#  define FMT_GCC_VISIBILITY_HIDDEN
+-#endif
+-
+-#ifdef __NVCC__
+-#  define FMT_CUDA_VERSION (__CUDACC_VER_MAJOR__ * 100 + __CUDACC_VER_MINOR__)
+-#else
+-#  define FMT_CUDA_VERSION 0
+-#endif
+-
+-#ifdef __has_builtin
+-#  define FMT_HAS_BUILTIN(x) __has_builtin(x)
+-#else
+-#  define FMT_HAS_BUILTIN(x) 0
+-#endif
+-
+-#if FMT_GCC_VERSION || FMT_CLANG_VERSION
+-#  define FMT_NOINLINE __attribute__((noinline))
+-#else
+-#  define FMT_NOINLINE
+-#endif
+-
+-#if FMT_MSC_VER
+-#  define FMT_MSC_DEFAULT = default
+-#else
+-#  define FMT_MSC_DEFAULT
+-#endif
+-
+-#ifndef FMT_THROW
+-#  if FMT_EXCEPTIONS
+-#    if FMT_MSC_VER || FMT_NVCC
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-template <typename Exception> inline void do_throw(const Exception& x) {
+-  // Silence unreachable code warnings in MSVC and NVCC because these
+-  // are nearly impossible to fix in a generic code.
+-  volatile bool b = true;
+-  if (b) throw x;
+-}
+-}  // namespace detail
+-FMT_END_NAMESPACE
+-#      define FMT_THROW(x) detail::do_throw(x)
+-#    else
+-#      define FMT_THROW(x) throw x
+-#    endif
+-#  else
+-#    define FMT_THROW(x)               \
+-      do {                             \
+-        FMT_ASSERT(false, (x).what()); \
+-      } while (false)
+-#  endif
+-#endif
+-
+-#if FMT_EXCEPTIONS
+-#  define FMT_TRY try
+-#  define FMT_CATCH(x) catch (x)
+-#else
+-#  define FMT_TRY if (true)
+-#  define FMT_CATCH(x) if (false)
+-#endif
+-
+-#ifndef FMT_MAYBE_UNUSED
+-#  if FMT_HAS_CPP17_ATTRIBUTE(maybe_unused)
+-#    define FMT_MAYBE_UNUSED [[maybe_unused]]
+-#  else
+-#    define FMT_MAYBE_UNUSED
+-#  endif
+-#endif
+-
+-// Workaround broken [[deprecated]] in the Intel, PGI and NVCC compilers.
+-#if FMT_ICC_VERSION || defined(__PGI) || FMT_NVCC
+-#  define FMT_DEPRECATED_ALIAS
+-#else
+-#  define FMT_DEPRECATED_ALIAS FMT_DEPRECATED
+-#endif
+-
+-#ifndef FMT_USE_USER_DEFINED_LITERALS
+-// EDG based compilers (Intel, NVIDIA, Elbrus, etc), GCC and MSVC support UDLs.
+-#  if (FMT_HAS_FEATURE(cxx_user_literals) || FMT_GCC_VERSION >= 407 || \
+-       FMT_MSC_VER >= 1900) &&                                         \
+-      (!defined(__EDG_VERSION__) || __EDG_VERSION__ >= /* UDL feature */ 480)
+-#    define FMT_USE_USER_DEFINED_LITERALS 1
+-#  else
+-#    define FMT_USE_USER_DEFINED_LITERALS 0
+-#  endif
+-#endif
+-
+-// Defining FMT_REDUCE_INT_INSTANTIATIONS to 1, will reduce the number of
+-// integer formatter template instantiations to just one by only using the
+-// largest integer type. This results in a reduction in binary size but will
+-// cause a decrease in integer formatting performance.
+-#if !defined(FMT_REDUCE_INT_INSTANTIATIONS)
+-#  define FMT_REDUCE_INT_INSTANTIATIONS 0
+-#endif
+-
+-// __builtin_clz is broken in clang with Microsoft CodeGen:
+-// https://github.com/fmtlib/fmt/issues/519.
+-#if !FMT_MSC_VER
+-#  if FMT_HAS_BUILTIN(__builtin_clz) || FMT_GCC_VERSION || FMT_ICC_VERSION
+-#    define FMT_BUILTIN_CLZ(n) __builtin_clz(n)
+-#  endif
+-#  if FMT_HAS_BUILTIN(__builtin_clzll) || FMT_GCC_VERSION || FMT_ICC_VERSION
+-#    define FMT_BUILTIN_CLZLL(n) __builtin_clzll(n)
+-#  endif
+-#endif
+-
+-// __builtin_ctz is broken in Intel Compiler Classic on Windows:
+-// https://github.com/fmtlib/fmt/issues/2510.
+-#ifndef __ICL
+-#  if FMT_HAS_BUILTIN(__builtin_ctz) || FMT_GCC_VERSION || FMT_ICC_VERSION
+-#    define FMT_BUILTIN_CTZ(n) __builtin_ctz(n)
+-#  endif
+-#  if FMT_HAS_BUILTIN(__builtin_ctzll) || FMT_GCC_VERSION || FMT_ICC_VERSION
+-#    define FMT_BUILTIN_CTZLL(n) __builtin_ctzll(n)
+-#  endif
+-#endif
+-
+-#if FMT_MSC_VER
+-#  include <intrin.h>  // _BitScanReverse[64], _BitScanForward[64], _umul128
+-#endif
+-
+-// Some compilers masquerade as both MSVC and GCC-likes or otherwise support
+-// __builtin_clz and __builtin_clzll, so only define FMT_BUILTIN_CLZ using the
+-// MSVC intrinsics if the clz and clzll builtins are not available.
+-#if FMT_MSC_VER && !defined(FMT_BUILTIN_CLZLL) && !defined(FMT_BUILTIN_CTZLL)
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-// Avoid Clang with Microsoft CodeGen's -Wunknown-pragmas warning.
+-#  if !defined(__clang__)
+-#    pragma intrinsic(_BitScanForward)
+-#    pragma intrinsic(_BitScanReverse)
+-#    if defined(_WIN64)
+-#      pragma intrinsic(_BitScanForward64)
+-#      pragma intrinsic(_BitScanReverse64)
+-#    endif
+-#  endif
+-
+-inline auto clz(uint32_t x) -> int {
+-  unsigned long r = 0;
+-  _BitScanReverse(&r, x);
+-  FMT_ASSERT(x != 0, "");
+-  // Static analysis complains about using uninitialized data
+-  // "r", but the only way that can happen is if "x" is 0,
+-  // which the callers guarantee to not happen.
+-  FMT_MSC_WARNING(suppress : 6102)
+-  return 31 ^ static_cast<int>(r);
+-}
+-#  define FMT_BUILTIN_CLZ(n) detail::clz(n)
+-
+-inline auto clzll(uint64_t x) -> int {
+-  unsigned long r = 0;
+-#  ifdef _WIN64
+-  _BitScanReverse64(&r, x);
+-#  else
+-  // Scan the high 32 bits.
+-  if (_BitScanReverse(&r, static_cast<uint32_t>(x >> 32))) return 63 ^ (r + 32);
+-  // Scan the low 32 bits.
+-  _BitScanReverse(&r, static_cast<uint32_t>(x));
+-#  endif
+-  FMT_ASSERT(x != 0, "");
+-  FMT_MSC_WARNING(suppress : 6102)  // Suppress a bogus static analysis warning.
+-  return 63 ^ static_cast<int>(r);
+-}
+-#  define FMT_BUILTIN_CLZLL(n) detail::clzll(n)
+-
+-inline auto ctz(uint32_t x) -> int {
+-  unsigned long r = 0;
+-  _BitScanForward(&r, x);
+-  FMT_ASSERT(x != 0, "");
+-  FMT_MSC_WARNING(suppress : 6102)  // Suppress a bogus static analysis warning.
+-  return static_cast<int>(r);
+-}
+-#  define FMT_BUILTIN_CTZ(n) detail::ctz(n)
+-
+-inline auto ctzll(uint64_t x) -> int {
+-  unsigned long r = 0;
+-  FMT_ASSERT(x != 0, "");
+-  FMT_MSC_WARNING(suppress : 6102)  // Suppress a bogus static analysis warning.
+-#  ifdef _WIN64
+-  _BitScanForward64(&r, x);
+-#  else
+-  // Scan the low 32 bits.
+-  if (_BitScanForward(&r, static_cast<uint32_t>(x))) return static_cast<int>(r);
+-  // Scan the high 32 bits.
+-  _BitScanForward(&r, static_cast<uint32_t>(x >> 32));
+-  r += 32;
+-#  endif
+-  return static_cast<int>(r);
+-}
+-#  define FMT_BUILTIN_CTZLL(n) detail::ctzll(n)
+-}  // namespace detail
+-FMT_END_NAMESPACE
+-#endif
+-
+-#ifdef FMT_HEADER_ONLY
+-#  define FMT_HEADER_ONLY_CONSTEXPR20 FMT_CONSTEXPR20
+-#else
+-#  define FMT_HEADER_ONLY_CONSTEXPR20
+-#endif
+-
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-
+-template <typename Streambuf> class formatbuf : public Streambuf {
+- private:
+-  using char_type = typename Streambuf::char_type;
+-  using streamsize = decltype(std::declval<Streambuf>().sputn(nullptr, 0));
+-  using int_type = typename Streambuf::int_type;
+-  using traits_type = typename Streambuf::traits_type;
+-
+-  buffer<char_type>& buffer_;
+-
+- public:
+-  explicit formatbuf(buffer<char_type>& buf) : buffer_(buf) {}
+-
+- protected:
+-  // The put area is always empty. This makes the implementation simpler and has
+-  // the advantage that the streambuf and the buffer are always in sync and
+-  // sputc never writes into uninitialized memory. A disadvantage is that each
+-  // call to sputc always results in a (virtual) call to overflow. There is no
+-  // disadvantage here for sputn since this always results in a call to xsputn.
+-
+-  auto overflow(int_type ch) -> int_type override {
+-    if (!traits_type::eq_int_type(ch, traits_type::eof()))
+-      buffer_.push_back(static_cast<char_type>(ch));
+-    return ch;
+-  }
+-
+-  auto xsputn(const char_type* s, streamsize count) -> streamsize override {
+-    buffer_.append(s, s + count);
+-    return count;
+-  }
+-};
+-
+-// Implementation of std::bit_cast for pre-C++20.
+-template <typename To, typename From>
+-FMT_CONSTEXPR20 auto bit_cast(const From& from) -> To {
+-  static_assert(sizeof(To) == sizeof(From), "size mismatch");
+-#ifdef __cpp_lib_bit_cast
+-  if (is_constant_evaluated()) return std::bit_cast<To>(from);
+-#endif
+-  auto to = To();
+-  std::memcpy(&to, &from, sizeof(to));
+-  return to;
+-}
+-
+-inline auto is_big_endian() -> bool {
+-#ifdef _WIN32
+-  return false;
+-#elif defined(__BIG_ENDIAN__)
+-  return true;
+-#elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__)
+-  return __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__;
+-#else
+-  struct bytes {
+-    char data[sizeof(int)];
+-  };
+-  return bit_cast<bytes>(1).data[0] == 0;
+-#endif
+-}
+-
+-// A fallback implementation of uintptr_t for systems that lack it.
+-struct fallback_uintptr {
+-  unsigned char value[sizeof(void*)];
+-
+-  fallback_uintptr() = default;
+-  explicit fallback_uintptr(const void* p) {
+-    *this = bit_cast<fallback_uintptr>(p);
+-    if (const_check(is_big_endian())) {
+-      for (size_t i = 0, j = sizeof(void*) - 1; i < j; ++i, --j)
+-        std::swap(value[i], value[j]);
+-    }
+-  }
+-};
+-#ifdef UINTPTR_MAX
+-using uintptr_t = ::uintptr_t;
+-inline auto to_uintptr(const void* p) -> uintptr_t {
+-  return bit_cast<uintptr_t>(p);
+-}
+-#else
+-using uintptr_t = fallback_uintptr;
+-inline auto to_uintptr(const void* p) -> fallback_uintptr {
+-  return fallback_uintptr(p);
+-}
+-#endif
+-
+-// Returns the largest possible value for type T. Same as
+-// std::numeric_limits<T>::max() but shorter and not affected by the max macro.
+-template <typename T> constexpr auto max_value() -> T {
+-  return (std::numeric_limits<T>::max)();
+-}
+-template <typename T> constexpr auto num_bits() -> int {
+-  return std::numeric_limits<T>::digits;
+-}
+-// std::numeric_limits<T>::digits may return 0 for 128-bit ints.
+-template <> constexpr auto num_bits<int128_t>() -> int { return 128; }
+-template <> constexpr auto num_bits<uint128_t>() -> int { return 128; }
+-template <> constexpr auto num_bits<fallback_uintptr>() -> int {
+-  return static_cast<int>(sizeof(void*) *
+-                          std::numeric_limits<unsigned char>::digits);
+-}
+-
+-FMT_INLINE void assume(bool condition) {
+-  (void)condition;
+-#if FMT_HAS_BUILTIN(__builtin_assume)
+-  __builtin_assume(condition);
+-#endif
+-}
+-
+-// An approximation of iterator_t for pre-C++20 systems.
+-template <typename T>
+-using iterator_t = decltype(std::begin(std::declval<T&>()));
+-template <typename T> using sentinel_t = decltype(std::end(std::declval<T&>()));
+-
+-// A workaround for std::string not having mutable data() until C++17.
+-template <typename Char>
+-inline auto get_data(std::basic_string<Char>& s) -> Char* {
+-  return &s[0];
+-}
+-template <typename Container>
+-inline auto get_data(Container& c) -> typename Container::value_type* {
+-  return c.data();
+-}
+-
+-#if defined(_SECURE_SCL) && _SECURE_SCL
+-// Make a checked iterator to avoid MSVC warnings.
+-template <typename T> using checked_ptr = stdext::checked_array_iterator<T*>;
+-template <typename T>
+-constexpr auto make_checked(T* p, size_t size) -> checked_ptr<T> {
+-  return {p, size};
+-}
+-#else
+-template <typename T> using checked_ptr = T*;
+-template <typename T> constexpr auto make_checked(T* p, size_t) -> T* {
+-  return p;
+-}
+-#endif
+-
+-// Attempts to reserve space for n extra characters in the output range.
+-// Returns a pointer to the reserved range or a reference to it.
+-template <typename Container, FMT_ENABLE_IF(is_contiguous<Container>::value)>
+-#if FMT_CLANG_VERSION >= 307 && !FMT_ICC_VERSION
+-__attribute__((no_sanitize("undefined")))
+-#endif
+-inline auto
+-reserve(std::back_insert_iterator<Container> it, size_t n)
+-    -> checked_ptr<typename Container::value_type> {
+-  Container& c = get_container(it);
+-  size_t size = c.size();
+-  c.resize(size + n);
+-  return make_checked(get_data(c) + size, n);
+-}
+-
+-template <typename T>
+-inline auto reserve(buffer_appender<T> it, size_t n) -> buffer_appender<T> {
+-  buffer<T>& buf = get_container(it);
+-  buf.try_reserve(buf.size() + n);
+-  return it;
+-}
+-
+-template <typename Iterator>
+-constexpr auto reserve(Iterator& it, size_t) -> Iterator& {
+-  return it;
+-}
+-
+-template <typename OutputIt>
+-using reserve_iterator =
+-    remove_reference_t<decltype(reserve(std::declval<OutputIt&>(), 0))>;
+-
+-template <typename T, typename OutputIt>
+-constexpr auto to_pointer(OutputIt, size_t) -> T* {
+-  return nullptr;
+-}
+-template <typename T> auto to_pointer(buffer_appender<T> it, size_t n) -> T* {
+-  buffer<T>& buf = get_container(it);
+-  auto size = buf.size();
+-  if (buf.capacity() < size + n) return nullptr;
+-  buf.try_resize(size + n);
+-  return buf.data() + size;
+-}
+-
+-template <typename Container, FMT_ENABLE_IF(is_contiguous<Container>::value)>
+-inline auto base_iterator(std::back_insert_iterator<Container>& it,
+-                          checked_ptr<typename Container::value_type>)
+-    -> std::back_insert_iterator<Container> {
+-  return it;
+-}
+-
+-template <typename Iterator>
+-constexpr auto base_iterator(Iterator, Iterator it) -> Iterator {
+-  return it;
+-}
+-
+-// <algorithm> is spectacularly slow to compile in C++20 so use a simple fill_n
+-// instead (#1998).
+-template <typename OutputIt, typename Size, typename T>
+-FMT_CONSTEXPR auto fill_n(OutputIt out, Size count, const T& value)
+-    -> OutputIt {
+-  for (Size i = 0; i < count; ++i) *out++ = value;
+-  return out;
+-}
+-template <typename T, typename Size>
+-FMT_CONSTEXPR20 auto fill_n(T* out, Size count, char value) -> T* {
+-  if (is_constant_evaluated()) {
+-    return fill_n<T*, Size, T>(out, count, value);
+-  }
+-  std::memset(out, value, to_unsigned(count));
+-  return out + count;
+-}
+-
+-#ifdef __cpp_char8_t
+-using char8_type = char8_t;
+-#else
+-enum char8_type : unsigned char {};
+-#endif
+-
+-template <typename OutChar, typename InputIt, typename OutputIt>
+-FMT_CONSTEXPR FMT_NOINLINE auto copy_str_noinline(InputIt begin, InputIt end,
+-                                                  OutputIt out) -> OutputIt {
+-  return copy_str<OutChar>(begin, end, out);
+-}
+-
+-// A public domain branchless UTF-8 decoder by Christopher Wellons:
+-// https://github.com/skeeto/branchless-utf8
+-/* Decode the next character, c, from s, reporting errors in e.
+- *
+- * Since this is a branchless decoder, four bytes will be read from the
+- * buffer regardless of the actual length of the next character. This
+- * means the buffer _must_ have at least three bytes of zero padding
+- * following the end of the data stream.
+- *
+- * Errors are reported in e, which will be non-zero if the parsed
+- * character was somehow invalid: invalid byte sequence, non-canonical
+- * encoding, or a surrogate half.
+- *
+- * The function returns a pointer to the next character. When an error
+- * occurs, this pointer will be a guess that depends on the particular
+- * error, but it will always advance at least one byte.
+- */
+-FMT_CONSTEXPR inline auto utf8_decode(const char* s, uint32_t* c, int* e)
+-    -> const char* {
+-  constexpr const int masks[] = {0x00, 0x7f, 0x1f, 0x0f, 0x07};
+-  constexpr const uint32_t mins[] = {4194304, 0, 128, 2048, 65536};
+-  constexpr const int shiftc[] = {0, 18, 12, 6, 0};
+-  constexpr const int shifte[] = {0, 6, 4, 2, 0};
+-
+-  int len = code_point_length(s);
+-  const char* next = s + len;
+-
+-  // Assume a four-byte character and load four bytes. Unused bits are
+-  // shifted out.
+-  *c = uint32_t(s[0] & masks[len]) << 18;
+-  *c |= uint32_t(s[1] & 0x3f) << 12;
+-  *c |= uint32_t(s[2] & 0x3f) << 6;
+-  *c |= uint32_t(s[3] & 0x3f) << 0;
+-  *c >>= shiftc[len];
+-
+-  // Accumulate the various error conditions.
+-  using uchar = unsigned char;
+-  *e = (*c < mins[len]) << 6;       // non-canonical encoding
+-  *e |= ((*c >> 11) == 0x1b) << 7;  // surrogate half?
+-  *e |= (*c > 0x10FFFF) << 8;       // out of range?
+-  *e |= (uchar(s[1]) & 0xc0) >> 2;
+-  *e |= (uchar(s[2]) & 0xc0) >> 4;
+-  *e |= uchar(s[3]) >> 6;
+-  *e ^= 0x2a;  // top two bits of each tail byte correct?
+-  *e >>= shifte[len];
+-
+-  return next;
+-}
+-
+-constexpr uint32_t invalid_code_point = ~uint32_t();
+-
+-// Invokes f(cp, sv) for every code point cp in s with sv being the string view
+-// corresponding to the code point. cp is invalid_code_point on error.
+-template <typename F>
+-FMT_CONSTEXPR void for_each_codepoint(string_view s, F f) {
+-  auto decode = [f](const char* buf_ptr, const char* ptr) {
+-    auto cp = uint32_t();
+-    auto error = 0;
+-    auto end = utf8_decode(buf_ptr, &cp, &error);
+-    bool result = f(error ? invalid_code_point : cp,
+-                    string_view(ptr, to_unsigned(end - buf_ptr)));
+-    return result ? end : nullptr;
+-  };
+-  auto p = s.data();
+-  const size_t block_size = 4;  // utf8_decode always reads blocks of 4 chars.
+-  if (s.size() >= block_size) {
+-    for (auto end = p + s.size() - block_size + 1; p < end;) {
+-      p = decode(p, p);
+-      if (!p) return;
+-    }
+-  }
+-  if (auto num_chars_left = s.data() + s.size() - p) {
+-    char buf[2 * block_size - 1] = {};
+-    copy_str<char>(p, p + num_chars_left, buf);
+-    const char* buf_ptr = buf;
+-    do {
+-      auto end = decode(buf_ptr, p);
+-      if (!end) return;
+-      p += end - buf_ptr;
+-      buf_ptr = end;
+-    } while (buf_ptr - buf < num_chars_left);
+-  }
+-}
+-
+-template <typename Char>
+-inline auto compute_width(basic_string_view<Char> s) -> size_t {
+-  return s.size();
+-}
+-
+-// Computes approximate display width of a UTF-8 string.
+-FMT_CONSTEXPR inline size_t compute_width(string_view s) {
+-  size_t num_code_points = 0;
+-  // It is not a lambda for compatibility with C++14.
+-  struct count_code_points {
+-    size_t* count;
+-    FMT_CONSTEXPR auto operator()(uint32_t cp, string_view) const -> bool {
+-      *count += detail::to_unsigned(
+-          1 +
+-          (cp >= 0x1100 &&
+-           (cp <= 0x115f ||  // Hangul Jamo init. consonants
+-            cp == 0x2329 ||  // LEFT-POINTING ANGLE BRACKET
+-            cp == 0x232a ||  // RIGHT-POINTING ANGLE BRACKET
+-            // CJK ... Yi except IDEOGRAPHIC HALF FILL SPACE:
+-            (cp >= 0x2e80 && cp <= 0xa4cf && cp != 0x303f) ||
+-            (cp >= 0xac00 && cp <= 0xd7a3) ||    // Hangul Syllables
+-            (cp >= 0xf900 && cp <= 0xfaff) ||    // CJK Compatibility Ideographs
+-            (cp >= 0xfe10 && cp <= 0xfe19) ||    // Vertical Forms
+-            (cp >= 0xfe30 && cp <= 0xfe6f) ||    // CJK Compatibility Forms
+-            (cp >= 0xff00 && cp <= 0xff60) ||    // Fullwidth Forms
+-            (cp >= 0xffe0 && cp <= 0xffe6) ||    // Fullwidth Forms
+-            (cp >= 0x20000 && cp <= 0x2fffd) ||  // CJK
+-            (cp >= 0x30000 && cp <= 0x3fffd) ||
+-            // Miscellaneous Symbols and Pictographs + Emoticons:
+-            (cp >= 0x1f300 && cp <= 0x1f64f) ||
+-            // Supplemental Symbols and Pictographs:
+-            (cp >= 0x1f900 && cp <= 0x1f9ff))));
+-      return true;
+-    }
+-  };
+-  for_each_codepoint(s, count_code_points{&num_code_points});
+-  return num_code_points;
+-}
+-
+-inline auto compute_width(basic_string_view<char8_type> s) -> size_t {
+-  return compute_width(basic_string_view<char>(
+-      reinterpret_cast<const char*>(s.data()), s.size()));
+-}
+-
+-template <typename Char>
+-inline auto code_point_index(basic_string_view<Char> s, size_t n) -> size_t {
+-  size_t size = s.size();
+-  return n < size ? n : size;
+-}
+-
+-// Calculates the index of the nth code point in a UTF-8 string.
+-inline auto code_point_index(basic_string_view<char8_type> s, size_t n)
+-    -> size_t {
+-  const char8_type* data = s.data();
+-  size_t num_code_points = 0;
+-  for (size_t i = 0, size = s.size(); i != size; ++i) {
+-    if ((data[i] & 0xc0) != 0x80 && ++num_code_points > n) return i;
+-  }
+-  return s.size();
+-}
+-
+-template <typename T, bool = std::is_floating_point<T>::value>
+-struct is_fast_float : bool_constant<std::numeric_limits<T>::is_iec559 &&
+-                                     sizeof(T) <= sizeof(double)> {};
+-template <typename T> struct is_fast_float<T, false> : std::false_type {};
+-
+-#ifndef FMT_USE_FULL_CACHE_DRAGONBOX
+-#  define FMT_USE_FULL_CACHE_DRAGONBOX 0
+-#endif
+-
+-template <typename T>
+-template <typename U>
+-void buffer<T>::append(const U* begin, const U* end) {
+-  while (begin != end) {
+-    auto count = to_unsigned(end - begin);
+-    try_reserve(size_ + count);
+-    auto free_cap = capacity_ - size_;
+-    if (free_cap < count) count = free_cap;
+-    std::uninitialized_copy_n(begin, count, make_checked(ptr_ + size_, count));
+-    size_ += count;
+-    begin += count;
+-  }
+-}
+-
+-template <typename T, typename Enable = void>
+-struct is_locale : std::false_type {};
+-template <typename T>
+-struct is_locale<T, void_t<decltype(T::classic())>> : std::true_type {};
+-}  // namespace detail
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-// The number of characters to store in the basic_memory_buffer object itself
+-// to avoid dynamic memory allocation.
+-enum { inline_buffer_size = 500 };
+-
+-/**
+-  \rst
+-  A dynamically growing memory buffer for trivially copyable/constructible types
+-  with the first ``SIZE`` elements stored in the object itself.
+-
+-  You can use the ``memory_buffer`` type alias for ``char`` instead.
+-
+-  **Example**::
+-
+-     auto out = fmt::memory_buffer();
+-     format_to(std::back_inserter(out), "The answer is {}.", 42);
+-
+-  This will append the following output to the ``out`` object:
+-
+-  .. code-block:: none
+-
+-     The answer is 42.
+-
+-  The output can be converted to an ``std::string`` with ``to_string(out)``.
+-  \endrst
+- */
+-template <typename T, size_t SIZE = inline_buffer_size,
+-          typename Allocator = std::allocator<T>>
+-class basic_memory_buffer final : public detail::buffer<T> {
+- private:
+-  T store_[SIZE];
+-
+-  // Don't inherit from Allocator avoid generating type_info for it.
+-  Allocator alloc_;
+-
+-  // Deallocate memory allocated by the buffer.
+-  FMT_CONSTEXPR20 void deallocate() {
+-    T* data = this->data();
+-    if (data != store_) alloc_.deallocate(data, this->capacity());
+-  }
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t size) override;
+-
+- public:
+-  using value_type = T;
+-  using const_reference = const T&;
+-
+-  FMT_CONSTEXPR20 explicit basic_memory_buffer(
+-      const Allocator& alloc = Allocator())
+-      : alloc_(alloc) {
+-    this->set(store_, SIZE);
+-    if (detail::is_constant_evaluated()) {
+-      detail::fill_n(store_, SIZE, T{});
+-    }
+-  }
+-  FMT_CONSTEXPR20 ~basic_memory_buffer() { deallocate(); }
+-
+- private:
+-  // Move data from other to this buffer.
+-  FMT_CONSTEXPR20 void move(basic_memory_buffer& other) {
+-    alloc_ = std::move(other.alloc_);
+-    T* data = other.data();
+-    size_t size = other.size(), capacity = other.capacity();
+-    if (data == other.store_) {
+-      this->set(store_, capacity);
+-      if (detail::is_constant_evaluated()) {
+-        detail::copy_str<T>(other.store_, other.store_ + size,
+-                            detail::make_checked(store_, capacity));
+-      } else {
+-        std::uninitialized_copy(other.store_, other.store_ + size,
+-                                detail::make_checked(store_, capacity));
+-      }
+-    } else {
+-      this->set(data, capacity);
+-      // Set pointer to the inline array so that delete is not called
+-      // when deallocating.
+-      other.set(other.store_, 0);
+-    }
+-    this->resize(size);
+-  }
+-
+- public:
+-  /**
+-    \rst
+-    Constructs a :class:`fmt::basic_memory_buffer` object moving the content
+-    of the other object to it.
+-    \endrst
+-   */
+-  FMT_CONSTEXPR20 basic_memory_buffer(basic_memory_buffer&& other)
+-      FMT_NOEXCEPT {
+-    move(other);
+-  }
+-
+-  /**
+-    \rst
+-    Moves the content of the other ``basic_memory_buffer`` object to this one.
+-    \endrst
+-   */
+-  auto operator=(basic_memory_buffer&& other) FMT_NOEXCEPT
+-      -> basic_memory_buffer& {
+-    FMT_ASSERT(this != &other, "");
+-    deallocate();
+-    move(other);
+-    return *this;
+-  }
+-
+-  // Returns a copy of the allocator associated with this buffer.
+-  auto get_allocator() const -> Allocator { return alloc_; }
+-
+-  /**
+-    Resizes the buffer to contain *count* elements. If T is a POD type new
+-    elements may not be initialized.
+-   */
+-  FMT_CONSTEXPR20 void resize(size_t count) { this->try_resize(count); }
+-
+-  /** Increases the buffer capacity to *new_capacity*. */
+-  void reserve(size_t new_capacity) { this->try_reserve(new_capacity); }
+-
+-  // Directly append data into the buffer
+-  using detail::buffer<T>::append;
+-  template <typename ContiguousRange>
+-  void append(const ContiguousRange& range) {
+-    append(range.data(), range.data() + range.size());
+-  }
+-};
+-
+-template <typename T, size_t SIZE, typename Allocator>
+-FMT_CONSTEXPR20 void basic_memory_buffer<T, SIZE, Allocator>::grow(
+-    size_t size) {
+-#ifdef FMT_FUZZ
+-  if (size > 5000) throw std::runtime_error("fuzz mode - won't grow that much");
+-#endif
+-  const size_t max_size = std::allocator_traits<Allocator>::max_size(alloc_);
+-  size_t old_capacity = this->capacity();
+-  size_t new_capacity = old_capacity + old_capacity / 2;
+-  if (size > new_capacity)
+-    new_capacity = size;
+-  else if (new_capacity > max_size)
+-    new_capacity = size > max_size ? size : max_size;
+-  T* old_data = this->data();
+-  T* new_data =
+-      std::allocator_traits<Allocator>::allocate(alloc_, new_capacity);
+-  // The following code doesn't throw, so the raw pointer above doesn't leak.
+-  std::uninitialized_copy(old_data, old_data + this->size(),
+-                          detail::make_checked(new_data, new_capacity));
+-  this->set(new_data, new_capacity);
+-  // deallocate must not throw according to the standard, but even if it does,
+-  // the buffer already uses the new storage and will deallocate it in
+-  // destructor.
+-  if (old_data != store_) alloc_.deallocate(old_data, old_capacity);
+-}
+-
+-using memory_buffer = basic_memory_buffer<char>;
+-
+-template <typename T, size_t SIZE, typename Allocator>
+-struct is_contiguous<basic_memory_buffer<T, SIZE, Allocator>> : std::true_type {
+-};
+-
+-namespace detail {
+-FMT_API void print(std::FILE*, string_view);
+-}
+-
+-/** A formatting error such as invalid format string. */
+-FMT_CLASS_API
+-class FMT_API format_error : public std::runtime_error {
+- public:
+-  explicit format_error(const char* message) : std::runtime_error(message) {}
+-  explicit format_error(const std::string& message)
+-      : std::runtime_error(message) {}
+-  format_error(const format_error&) = default;
+-  format_error& operator=(const format_error&) = default;
+-  format_error(format_error&&) = default;
+-  format_error& operator=(format_error&&) = default;
+-  ~format_error() FMT_NOEXCEPT override FMT_MSC_DEFAULT;
+-};
+-
+-/**
+-  \rst
+-  Constructs a `~fmt::format_arg_store` object that contains references
+-  to arguments and can be implicitly converted to `~fmt::format_args`.
+-  If ``fmt`` is a compile-time string then `make_args_checked` checks
+-  its validity at compile time.
+-  \endrst
+- */
+-template <typename... Args, typename S, typename Char = char_t<S>>
+-FMT_INLINE auto make_args_checked(const S& fmt,
+-                                  const remove_reference_t<Args>&... args)
+-    -> format_arg_store<buffer_context<Char>, remove_reference_t<Args>...> {
+-  static_assert(
+-      detail::count<(
+-              std::is_base_of<detail::view, remove_reference_t<Args>>::value &&
+-              std::is_reference<Args>::value)...>() == 0,
+-      "passing views as lvalues is disallowed");
+-  detail::check_format_string<Args...>(fmt);
+-  return {args...};
+-}
+-
+-// compile-time support
+-namespace detail_exported {
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <typename Char, size_t N> struct fixed_string {
+-  constexpr fixed_string(const Char (&str)[N]) {
+-    detail::copy_str<Char, const Char*, Char*>(static_cast<const Char*>(str),
+-                                               str + N, data);
+-  }
+-  Char data[N]{};
+-};
+-#endif
+-
+-// Converts a compile-time string to basic_string_view.
+-template <typename Char, size_t N>
+-constexpr auto compile_string_to_view(const Char (&s)[N])
+-    -> basic_string_view<Char> {
+-  // Remove trailing NUL character if needed. Won't be present if this is used
+-  // with a raw character array (i.e. not defined as a string).
+-  return {s, N - (std::char_traits<Char>::to_int_type(s[N - 1]) == 0 ? 1 : 0)};
+-}
+-template <typename Char>
+-constexpr auto compile_string_to_view(detail::std_string_view<Char> s)
+-    -> basic_string_view<Char> {
+-  return {s.data(), s.size()};
+-}
+-}  // namespace detail_exported
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename T> struct is_integral : std::is_integral<T> {};
+-template <> struct is_integral<int128_t> : std::true_type {};
+-template <> struct is_integral<uint128_t> : std::true_type {};
+-
+-template <typename T>
+-using is_signed =
+-    std::integral_constant<bool, std::numeric_limits<T>::is_signed ||
+-                                     std::is_same<T, int128_t>::value>;
+-
+-// Returns true if value is negative, false otherwise.
+-// Same as `value < 0` but doesn't produce warnings if T is an unsigned type.
+-template <typename T, FMT_ENABLE_IF(is_signed<T>::value)>
+-FMT_CONSTEXPR auto is_negative(T value) -> bool {
+-  return value < 0;
+-}
+-template <typename T, FMT_ENABLE_IF(!is_signed<T>::value)>
+-FMT_CONSTEXPR auto is_negative(T) -> bool {
+-  return false;
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_CONSTEXPR auto is_supported_floating_point(T) -> uint16_t {
+-  return (std::is_same<T, float>::value && FMT_USE_FLOAT) ||
+-         (std::is_same<T, double>::value && FMT_USE_DOUBLE) ||
+-         (std::is_same<T, long double>::value && FMT_USE_LONG_DOUBLE);
+-}
+-
+-// Smallest of uint32_t, uint64_t, uint128_t that is large enough to
+-// represent all values of an integral type T.
+-template <typename T>
+-using uint32_or_64_or_128_t =
+-    conditional_t<num_bits<T>() <= 32 && !FMT_REDUCE_INT_INSTANTIATIONS,
+-                  uint32_t,
+-                  conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>>;
+-template <typename T>
+-using uint64_or_128_t = conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>;
+-
+-#define FMT_POWERS_OF_10(factor)                                             \
+-  factor * 10, (factor)*100, (factor)*1000, (factor)*10000, (factor)*100000, \
+-      (factor)*1000000, (factor)*10000000, (factor)*100000000,               \
+-      (factor)*1000000000
+-
+-// Converts value in the range [0, 100) to a string.
+-constexpr const char* digits2(size_t value) {
+-  // GCC generates slightly better code when value is pointer-size.
+-  return &"0001020304050607080910111213141516171819"
+-         "2021222324252627282930313233343536373839"
+-         "4041424344454647484950515253545556575859"
+-         "6061626364656667686970717273747576777879"
+-         "8081828384858687888990919293949596979899"[value * 2];
+-}
+-
+-// Sign is a template parameter to workaround a bug in gcc 4.8.
+-template <typename Char, typename Sign> constexpr Char sign(Sign s) {
+-#if !FMT_GCC_VERSION || FMT_GCC_VERSION >= 604
+-  static_assert(std::is_same<Sign, sign_t>::value, "");
+-#endif
+-  return static_cast<Char>("\0-+ "[s]);
+-}
+-
+-template <typename T> FMT_CONSTEXPR auto count_digits_fallback(T n) -> int {
+-  int count = 1;
+-  for (;;) {
+-    // Integer division is slow so do it for a group of four digits instead
+-    // of for every digit. The idea comes from the talk by Alexandrescu
+-    // "Three Optimization Tips for C++". See speed-test for a comparison.
+-    if (n < 10) return count;
+-    if (n < 100) return count + 1;
+-    if (n < 1000) return count + 2;
+-    if (n < 10000) return count + 3;
+-    n /= 10000u;
+-    count += 4;
+-  }
+-}
+-#if FMT_USE_INT128
+-FMT_CONSTEXPR inline auto count_digits(uint128_t n) -> int {
+-  return count_digits_fallback(n);
+-}
+-#endif
+-
+-#ifdef FMT_BUILTIN_CLZLL
+-// It is a separate function rather than a part of count_digits to workaround
+-// the lack of static constexpr in constexpr functions.
+-inline auto do_count_digits(uint64_t n) -> int {
+-  // This has comparable performance to the version by Kendall Willets
+-  // (https://github.com/fmtlib/format-benchmark/blob/master/digits10)
+-  // but uses smaller tables.
+-  // Maps bsr(n) to ceil(log10(pow(2, bsr(n) + 1) - 1)).
+-  static constexpr uint8_t bsr2log10[] = {
+-      1,  1,  1,  2,  2,  2,  3,  3,  3,  4,  4,  4,  4,  5,  5,  5,
+-      6,  6,  6,  7,  7,  7,  7,  8,  8,  8,  9,  9,  9,  10, 10, 10,
+-      10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 15, 15,
+-      15, 16, 16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 19, 20};
+-  auto t = bsr2log10[FMT_BUILTIN_CLZLL(n | 1) ^ 63];
+-  static constexpr const uint64_t zero_or_powers_of_10[] = {
+-      0, 0, FMT_POWERS_OF_10(1U), FMT_POWERS_OF_10(1000000000ULL),
+-      10000000000000000000ULL};
+-  return t - (n < zero_or_powers_of_10[t]);
+-}
+-#endif
+-
+-// Returns the number of decimal digits in n. Leading zeros are not counted
+-// except for n == 0 in which case count_digits returns 1.
+-FMT_CONSTEXPR20 inline auto count_digits(uint64_t n) -> int {
+-#ifdef FMT_BUILTIN_CLZLL
+-  if (!is_constant_evaluated()) {
+-    return do_count_digits(n);
+-  }
+-#endif
+-  return count_digits_fallback(n);
+-}
+-
+-// Counts the number of digits in n. BITS = log2(radix).
+-template <int BITS, typename UInt>
+-FMT_CONSTEXPR auto count_digits(UInt n) -> int {
+-#ifdef FMT_BUILTIN_CLZ
+-  if (num_bits<UInt>() == 32)
+-    return (FMT_BUILTIN_CLZ(static_cast<uint32_t>(n) | 1) ^ 31) / BITS + 1;
+-#endif
+-  // Lambda avoids unreachable code warnings from NVHPC.
+-  return [](UInt m) {
+-    int num_digits = 0;
+-    do {
+-      ++num_digits;
+-    } while ((m >>= BITS) != 0);
+-    return num_digits;
+-  }(n);
+-}
+-
+-template <> auto count_digits<4>(detail::fallback_uintptr n) -> int;
+-
+-#ifdef FMT_BUILTIN_CLZ
+-// It is a separate function rather than a part of count_digits to workaround
+-// the lack of static constexpr in constexpr functions.
+-FMT_INLINE auto do_count_digits(uint32_t n) -> int {
+-// An optimization by Kendall Willets from https://bit.ly/3uOIQrB.
+-// This increments the upper 32 bits (log10(T) - 1) when >= T is added.
+-#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
+-  static constexpr uint64_t table[] = {
+-      FMT_INC(0),          FMT_INC(0),          FMT_INC(0),           // 8
+-      FMT_INC(10),         FMT_INC(10),         FMT_INC(10),          // 64
+-      FMT_INC(100),        FMT_INC(100),        FMT_INC(100),         // 512
+-      FMT_INC(1000),       FMT_INC(1000),       FMT_INC(1000),        // 4096
+-      FMT_INC(10000),      FMT_INC(10000),      FMT_INC(10000),       // 32k
+-      FMT_INC(100000),     FMT_INC(100000),     FMT_INC(100000),      // 256k
+-      FMT_INC(1000000),    FMT_INC(1000000),    FMT_INC(1000000),     // 2048k
+-      FMT_INC(10000000),   FMT_INC(10000000),   FMT_INC(10000000),    // 16M
+-      FMT_INC(100000000),  FMT_INC(100000000),  FMT_INC(100000000),   // 128M
+-      FMT_INC(1000000000), FMT_INC(1000000000), FMT_INC(1000000000),  // 1024M
+-      FMT_INC(1000000000), FMT_INC(1000000000)                        // 4B
+-  };
+-  auto inc = table[FMT_BUILTIN_CLZ(n | 1) ^ 31];
+-  return static_cast<int>((n + inc) >> 32);
+-}
+-#endif
+-
+-// Optional version of count_digits for better performance on 32-bit platforms.
+-FMT_CONSTEXPR20 inline auto count_digits(uint32_t n) -> int {
+-#ifdef FMT_BUILTIN_CLZ
+-  if (!is_constant_evaluated()) {
+-    return do_count_digits(n);
+-  }
+-#endif
+-  return count_digits_fallback(n);
+-}
+-
+-template <typename Int> constexpr auto digits10() FMT_NOEXCEPT -> int {
+-  return std::numeric_limits<Int>::digits10;
+-}
+-template <> constexpr auto digits10<int128_t>() FMT_NOEXCEPT -> int {
+-  return 38;
+-}
+-template <> constexpr auto digits10<uint128_t>() FMT_NOEXCEPT -> int {
+-  return 38;
+-}
+-
+-template <typename Char> struct thousands_sep_result {
+-  std::string grouping;
+-  Char thousands_sep;
+-};
+-
+-template <typename Char>
+-FMT_API auto thousands_sep_impl(locale_ref loc) -> thousands_sep_result<Char>;
+-template <typename Char>
+-inline auto thousands_sep(locale_ref loc) -> thousands_sep_result<Char> {
+-  auto result = thousands_sep_impl<char>(loc);
+-  return {result.grouping, Char(result.thousands_sep)};
+-}
+-template <>
+-inline auto thousands_sep(locale_ref loc) -> thousands_sep_result<wchar_t> {
+-  return thousands_sep_impl<wchar_t>(loc);
+-}
+-
+-template <typename Char>
+-FMT_API auto decimal_point_impl(locale_ref loc) -> Char;
+-template <typename Char> inline auto decimal_point(locale_ref loc) -> Char {
+-  return Char(decimal_point_impl<char>(loc));
+-}
+-template <> inline auto decimal_point(locale_ref loc) -> wchar_t {
+-  return decimal_point_impl<wchar_t>(loc);
+-}
+-
+-// Compares two characters for equality.
+-template <typename Char> auto equal2(const Char* lhs, const char* rhs) -> bool {
+-  return lhs[0] == Char(rhs[0]) && lhs[1] == Char(rhs[1]);
+-}
+-inline auto equal2(const char* lhs, const char* rhs) -> bool {
+-  return memcmp(lhs, rhs, 2) == 0;
+-}
+-
+-// Copies two characters from src to dst.
+-template <typename Char>
+-FMT_CONSTEXPR20 FMT_INLINE void copy2(Char* dst, const char* src) {
+-  if (!is_constant_evaluated() && sizeof(Char) == sizeof(char)) {
+-    memcpy(dst, src, 2);
+-    return;
+-  }
+-  *dst++ = static_cast<Char>(*src++);
+-  *dst = static_cast<Char>(*src);
+-}
+-
+-template <typename Iterator> struct format_decimal_result {
+-  Iterator begin;
+-  Iterator end;
+-};
+-
+-// Formats a decimal unsigned integer value writing into out pointing to a
+-// buffer of specified size. The caller must ensure that the buffer is large
+-// enough.
+-template <typename Char, typename UInt>
+-FMT_CONSTEXPR20 auto format_decimal(Char* out, UInt value, int size)
+-    -> format_decimal_result<Char*> {
+-  FMT_ASSERT(size >= count_digits(value), "invalid digit count");
+-  out += size;
+-  Char* end = out;
+-  while (value >= 100) {
+-    // Integer division is slow so do it for a group of two digits instead
+-    // of for every digit. The idea comes from the talk by Alexandrescu
+-    // "Three Optimization Tips for C++". See speed-test for a comparison.
+-    out -= 2;
+-    copy2(out, digits2(static_cast<size_t>(value % 100)));
+-    value /= 100;
+-  }
+-  if (value < 10) {
+-    *--out = static_cast<Char>('0' + value);
+-    return {out, end};
+-  }
+-  out -= 2;
+-  copy2(out, digits2(static_cast<size_t>(value)));
+-  return {out, end};
+-}
+-
+-template <typename Char, typename UInt, typename Iterator,
+-          FMT_ENABLE_IF(!std::is_pointer<remove_cvref_t<Iterator>>::value)>
+-inline auto format_decimal(Iterator out, UInt value, int size)
+-    -> format_decimal_result<Iterator> {
+-  // Buffer is large enough to hold all digits (digits10 + 1).
+-  Char buffer[digits10<UInt>() + 1];
+-  auto end = format_decimal(buffer, value, size).end;
+-  return {out, detail::copy_str_noinline<Char>(buffer, end, out)};
+-}
+-
+-template <unsigned BASE_BITS, typename Char, typename UInt>
+-FMT_CONSTEXPR auto format_uint(Char* buffer, UInt value, int num_digits,
+-                               bool upper = false) -> Char* {
+-  buffer += num_digits;
+-  Char* end = buffer;
+-  do {
+-    const char* digits = upper ? "0123456789ABCDEF" : "0123456789abcdef";
+-    unsigned digit = (value & ((1 << BASE_BITS) - 1));
+-    *--buffer = static_cast<Char>(BASE_BITS < 4 ? static_cast<char>('0' + digit)
+-                                                : digits[digit]);
+-  } while ((value >>= BASE_BITS) != 0);
+-  return end;
+-}
+-
+-template <unsigned BASE_BITS, typename Char>
+-auto format_uint(Char* buffer, detail::fallback_uintptr n, int num_digits,
+-                 bool = false) -> Char* {
+-  auto char_digits = std::numeric_limits<unsigned char>::digits / 4;
+-  int start = (num_digits + char_digits - 1) / char_digits - 1;
+-  if (int start_digits = num_digits % char_digits) {
+-    unsigned value = n.value[start--];
+-    buffer = format_uint<BASE_BITS>(buffer, value, start_digits);
+-  }
+-  for (; start >= 0; --start) {
+-    unsigned value = n.value[start];
+-    buffer += char_digits;
+-    auto p = buffer;
+-    for (int i = 0; i < char_digits; ++i) {
+-      unsigned digit = (value & ((1 << BASE_BITS) - 1));
+-      *--p = static_cast<Char>("0123456789abcdef"[digit]);
+-      value >>= BASE_BITS;
+-    }
+-  }
+-  return buffer;
+-}
+-
+-template <unsigned BASE_BITS, typename Char, typename It, typename UInt>
+-inline auto format_uint(It out, UInt value, int num_digits, bool upper = false)
+-    -> It {
+-  if (auto ptr = to_pointer<Char>(out, to_unsigned(num_digits))) {
+-    format_uint<BASE_BITS>(ptr, value, num_digits, upper);
+-    return out;
+-  }
+-  // Buffer should be large enough to hold all digits (digits / BASE_BITS + 1).
+-  char buffer[num_bits<UInt>() / BASE_BITS + 1];
+-  format_uint<BASE_BITS>(buffer, value, num_digits, upper);
+-  return detail::copy_str_noinline<Char>(buffer, buffer + num_digits, out);
+-}
+-
+-// A converter from UTF-8 to UTF-16.
+-class utf8_to_utf16 {
+- private:
+-  basic_memory_buffer<wchar_t> buffer_;
+-
+- public:
+-  FMT_API explicit utf8_to_utf16(string_view s);
+-  operator basic_string_view<wchar_t>() const { return {&buffer_[0], size()}; }
+-  auto size() const -> size_t { return buffer_.size() - 1; }
+-  auto c_str() const -> const wchar_t* { return &buffer_[0]; }
+-  auto str() const -> std::wstring { return {&buffer_[0], size()}; }
+-};
+-
+-namespace dragonbox {
+-
+-// Type-specific information that Dragonbox uses.
+-template <class T> struct float_info;
+-
+-template <> struct float_info<float> {
+-  using carrier_uint = uint32_t;
+-  static const int significand_bits = 23;
+-  static const int exponent_bits = 8;
+-  static const int min_exponent = -126;
+-  static const int max_exponent = 127;
+-  static const int exponent_bias = -127;
+-  static const int decimal_digits = 9;
+-  static const int kappa = 1;
+-  static const int big_divisor = 100;
+-  static const int small_divisor = 10;
+-  static const int min_k = -31;
+-  static const int max_k = 46;
+-  static const int cache_bits = 64;
+-  static const int divisibility_check_by_5_threshold = 39;
+-  static const int case_fc_pm_half_lower_threshold = -1;
+-  static const int case_fc_pm_half_upper_threshold = 6;
+-  static const int case_fc_lower_threshold = -2;
+-  static const int case_fc_upper_threshold = 6;
+-  static const int case_shorter_interval_left_endpoint_lower_threshold = 2;
+-  static const int case_shorter_interval_left_endpoint_upper_threshold = 3;
+-  static const int shorter_interval_tie_lower_threshold = -35;
+-  static const int shorter_interval_tie_upper_threshold = -35;
+-  static const int max_trailing_zeros = 7;
+-};
+-
+-template <> struct float_info<double> {
+-  using carrier_uint = uint64_t;
+-  static const int significand_bits = 52;
+-  static const int exponent_bits = 11;
+-  static const int min_exponent = -1022;
+-  static const int max_exponent = 1023;
+-  static const int exponent_bias = -1023;
+-  static const int decimal_digits = 17;
+-  static const int kappa = 2;
+-  static const int big_divisor = 1000;
+-  static const int small_divisor = 100;
+-  static const int min_k = -292;
+-  static const int max_k = 326;
+-  static const int cache_bits = 128;
+-  static const int divisibility_check_by_5_threshold = 86;
+-  static const int case_fc_pm_half_lower_threshold = -2;
+-  static const int case_fc_pm_half_upper_threshold = 9;
+-  static const int case_fc_lower_threshold = -4;
+-  static const int case_fc_upper_threshold = 9;
+-  static const int case_shorter_interval_left_endpoint_lower_threshold = 2;
+-  static const int case_shorter_interval_left_endpoint_upper_threshold = 3;
+-  static const int shorter_interval_tie_lower_threshold = -77;
+-  static const int shorter_interval_tie_upper_threshold = -77;
+-  static const int max_trailing_zeros = 16;
+-};
+-
+-template <typename T> struct decimal_fp {
+-  using significand_type = typename float_info<T>::carrier_uint;
+-  significand_type significand;
+-  int exponent;
+-};
+-
+-template <typename T>
+-FMT_API auto to_decimal(T x) FMT_NOEXCEPT -> decimal_fp<T>;
+-}  // namespace dragonbox
+-
+-template <typename T>
+-constexpr auto exponent_mask() ->
+-    typename dragonbox::float_info<T>::carrier_uint {
+-  using uint = typename dragonbox::float_info<T>::carrier_uint;
+-  return ((uint(1) << dragonbox::float_info<T>::exponent_bits) - 1)
+-         << dragonbox::float_info<T>::significand_bits;
+-}
+-
+-// Writes the exponent exp in the form "[+-]d{2,3}" to buffer.
+-template <typename Char, typename It>
+-FMT_CONSTEXPR auto write_exponent(int exp, It it) -> It {
+-  FMT_ASSERT(-10000 < exp && exp < 10000, "exponent out of range");
+-  if (exp < 0) {
+-    *it++ = static_cast<Char>('-');
+-    exp = -exp;
+-  } else {
+-    *it++ = static_cast<Char>('+');
+-  }
+-  if (exp >= 100) {
+-    const char* top = digits2(to_unsigned(exp / 100));
+-    if (exp >= 1000) *it++ = static_cast<Char>(top[0]);
+-    *it++ = static_cast<Char>(top[1]);
+-    exp %= 100;
+-  }
+-  const char* d = digits2(to_unsigned(exp));
+-  *it++ = static_cast<Char>(d[0]);
+-  *it++ = static_cast<Char>(d[1]);
+-  return it;
+-}
+-
+-template <typename T>
+-FMT_HEADER_ONLY_CONSTEXPR20 auto format_float(T value, int precision,
+-                                              float_specs specs,
+-                                              buffer<char>& buf) -> int;
+-
+-// Formats a floating-point number with snprintf.
+-template <typename T>
+-auto snprintf_float(T value, int precision, float_specs specs,
+-                    buffer<char>& buf) -> int;
+-
+-template <typename T> constexpr auto promote_float(T value) -> T {
+-  return value;
+-}
+-constexpr auto promote_float(float value) -> double {
+-  return static_cast<double>(value);
+-}
+-
+-template <typename OutputIt, typename Char>
+-FMT_NOINLINE FMT_CONSTEXPR auto fill(OutputIt it, size_t n,
+-                                     const fill_t<Char>& fill) -> OutputIt {
+-  auto fill_size = fill.size();
+-  if (fill_size == 1) return detail::fill_n(it, n, fill[0]);
+-  auto data = fill.data();
+-  for (size_t i = 0; i < n; ++i)
+-    it = copy_str<Char>(data, data + fill_size, it);
+-  return it;
+-}
+-
+-// Writes the output of f, padded according to format specifications in specs.
+-// size: output size in code units.
+-// width: output display width in (terminal) column positions.
+-template <align::type align = align::left, typename OutputIt, typename Char,
+-          typename F>
+-FMT_CONSTEXPR auto write_padded(OutputIt out,
+-                                const basic_format_specs<Char>& specs,
+-                                size_t size, size_t width, F&& f) -> OutputIt {
+-  static_assert(align == align::left || align == align::right, "");
+-  unsigned spec_width = to_unsigned(specs.width);
+-  size_t padding = spec_width > width ? spec_width - width : 0;
+-  // Shifts are encoded as string literals because static constexpr is not
+-  // supported in constexpr functions.
+-  auto* shifts = align == align::left ? "\x1f\x1f\x00\x01" : "\x00\x1f\x00\x01";
+-  size_t left_padding = padding >> shifts[specs.align];
+-  size_t right_padding = padding - left_padding;
+-  auto it = reserve(out, size + padding * specs.fill.size());
+-  if (left_padding != 0) it = fill(it, left_padding, specs.fill);
+-  it = f(it);
+-  if (right_padding != 0) it = fill(it, right_padding, specs.fill);
+-  return base_iterator(out, it);
+-}
+-
+-template <align::type align = align::left, typename OutputIt, typename Char,
+-          typename F>
+-constexpr auto write_padded(OutputIt out, const basic_format_specs<Char>& specs,
+-                            size_t size, F&& f) -> OutputIt {
+-  return write_padded<align>(out, specs, size, size, f);
+-}
+-
+-template <align::type align = align::left, typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write_bytes(OutputIt out, string_view bytes,
+-                               const basic_format_specs<Char>& specs)
+-    -> OutputIt {
+-  return write_padded<align>(
+-      out, specs, bytes.size(), [bytes](reserve_iterator<OutputIt> it) {
+-        const char* data = bytes.data();
+-        return copy_str<Char>(data, data + bytes.size(), it);
+-      });
+-}
+-
+-template <typename Char, typename OutputIt, typename UIntPtr>
+-auto write_ptr(OutputIt out, UIntPtr value,
+-               const basic_format_specs<Char>* specs) -> OutputIt {
+-  int num_digits = count_digits<4>(value);
+-  auto size = to_unsigned(num_digits) + size_t(2);
+-  auto write = [=](reserve_iterator<OutputIt> it) {
+-    *it++ = static_cast<Char>('0');
+-    *it++ = static_cast<Char>('x');
+-    return format_uint<4, Char>(it, value, num_digits);
+-  };
+-  return specs ? write_padded<align::right>(out, *specs, size, write)
+-               : base_iterator(out, write(reserve(out, size)));
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write_char(OutputIt out, Char value,
+-                              const basic_format_specs<Char>& specs)
+-    -> OutputIt {
+-  return write_padded(out, specs, 1, [=](reserve_iterator<OutputIt> it) {
+-    *it++ = value;
+-    return it;
+-  });
+-}
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, Char value,
+-                         const basic_format_specs<Char>& specs,
+-                         locale_ref loc = {}) -> OutputIt {
+-  return check_char_specs(specs)
+-             ? write_char(out, value, specs)
+-             : write(out, static_cast<int>(value), specs, loc);
+-}
+-
+-// Data for write_int that doesn't depend on output iterator type. It is used to
+-// avoid template code bloat.
+-template <typename Char> struct write_int_data {
+-  size_t size;
+-  size_t padding;
+-
+-  FMT_CONSTEXPR write_int_data(int num_digits, unsigned prefix,
+-                               const basic_format_specs<Char>& specs)
+-      : size((prefix >> 24) + to_unsigned(num_digits)), padding(0) {
+-    if (specs.align == align::numeric) {
+-      auto width = to_unsigned(specs.width);
+-      if (width > size) {
+-        padding = width - size;
+-        size = width;
+-      }
+-    } else if (specs.precision > num_digits) {
+-      size = (prefix >> 24) + to_unsigned(specs.precision);
+-      padding = to_unsigned(specs.precision - num_digits);
+-    }
+-  }
+-};
+-
+-// Writes an integer in the format
+-//   <left-padding><prefix><numeric-padding><digits><right-padding>
+-// where <digits> are written by write_digits(it).
+-// prefix contains chars in three lower bytes and the size in the fourth byte.
+-template <typename OutputIt, typename Char, typename W>
+-FMT_CONSTEXPR FMT_INLINE auto write_int(OutputIt out, int num_digits,
+-                                        unsigned prefix,
+-                                        const basic_format_specs<Char>& specs,
+-                                        W write_digits) -> OutputIt {
+-  // Slightly faster check for specs.width == 0 && specs.precision == -1.
+-  if ((specs.width | (specs.precision + 1)) == 0) {
+-    auto it = reserve(out, to_unsigned(num_digits) + (prefix >> 24));
+-    if (prefix != 0) {
+-      for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8)
+-        *it++ = static_cast<Char>(p & 0xff);
+-    }
+-    return base_iterator(out, write_digits(it));
+-  }
+-  auto data = write_int_data<Char>(num_digits, prefix, specs);
+-  return write_padded<align::right>(
+-      out, specs, data.size, [=](reserve_iterator<OutputIt> it) {
+-        for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8)
+-          *it++ = static_cast<Char>(p & 0xff);
+-        it = detail::fill_n(it, data.padding, static_cast<Char>('0'));
+-        return write_digits(it);
+-      });
+-}
+-
+-template <typename Char> class digit_grouping {
+- private:
+-  thousands_sep_result<Char> sep_;
+-
+-  struct next_state {
+-    std::string::const_iterator group;
+-    int pos;
+-  };
+-  next_state initial_state() const { return {sep_.grouping.begin(), 0}; }
+-
+-  // Returns the next digit group separator position.
+-  int next(next_state& state) const {
+-    if (!sep_.thousands_sep) return max_value<int>();
+-    if (state.group == sep_.grouping.end())
+-      return state.pos += sep_.grouping.back();
+-    if (*state.group <= 0 || *state.group == max_value<char>())
+-      return max_value<int>();
+-    state.pos += *state.group++;
+-    return state.pos;
+-  }
+-
+- public:
+-  explicit digit_grouping(locale_ref loc, bool localized = true) {
+-    if (localized)
+-      sep_ = thousands_sep<Char>(loc);
+-    else
+-      sep_.thousands_sep = Char();
+-  }
+-  explicit digit_grouping(thousands_sep_result<Char> sep) : sep_(sep) {}
+-
+-  Char separator() const { return sep_.thousands_sep; }
+-
+-  int count_separators(int num_digits) const {
+-    int count = 0;
+-    auto state = initial_state();
+-    while (num_digits > next(state)) ++count;
+-    return count;
+-  }
+-
+-  // Applies grouping to digits and write the output to out.
+-  template <typename Out, typename C>
+-  Out apply(Out out, basic_string_view<C> digits) const {
+-    auto num_digits = static_cast<int>(digits.size());
+-    auto separators = basic_memory_buffer<int>();
+-    separators.push_back(0);
+-    auto state = initial_state();
+-    while (int i = next(state)) {
+-      if (i >= num_digits) break;
+-      separators.push_back(i);
+-    }
+-    for (int i = 0, sep_index = static_cast<int>(separators.size() - 1);
+-         i < num_digits; ++i) {
+-      if (num_digits - i == separators[sep_index]) {
+-        *out++ = separator();
+-        --sep_index;
+-      }
+-      *out++ = static_cast<Char>(digits[to_unsigned(i)]);
+-    }
+-    return out;
+-  }
+-};
+-
+-template <typename OutputIt, typename UInt, typename Char>
+-auto write_int_localized(OutputIt out, UInt value, unsigned prefix,
+-                         const basic_format_specs<Char>& specs,
+-                         const digit_grouping<Char>& grouping) -> OutputIt {
+-  static_assert(std::is_same<uint64_or_128_t<UInt>, UInt>::value, "");
+-  int num_digits = count_digits(value);
+-  char digits[40];
+-  format_decimal(digits, value, num_digits);
+-  unsigned size = to_unsigned((prefix != 0 ? 1 : 0) + num_digits +
+-                              grouping.count_separators(num_digits));
+-  return write_padded<align::right>(
+-      out, specs, size, size, [&](reserve_iterator<OutputIt> it) {
+-        if (prefix != 0) *it++ = static_cast<Char>(prefix);
+-        return grouping.apply(it, string_view(digits, to_unsigned(num_digits)));
+-      });
+-}
+-
+-template <typename OutputIt, typename UInt, typename Char>
+-auto write_int_localized(OutputIt& out, UInt value, unsigned prefix,
+-                         const basic_format_specs<Char>& specs, locale_ref loc)
+-    -> bool {
+-  auto grouping = digit_grouping<Char>(loc);
+-  out = write_int_localized(out, value, prefix, specs, grouping);
+-  return true;
+-}
+-
+-FMT_CONSTEXPR inline void prefix_append(unsigned& prefix, unsigned value) {
+-  prefix |= prefix != 0 ? value << 8 : value;
+-  prefix += (1u + (value > 0xff ? 1 : 0)) << 24;
+-}
+-
+-template <typename UInt> struct write_int_arg {
+-  UInt abs_value;
+-  unsigned prefix;
+-};
+-
+-template <typename T>
+-FMT_CONSTEXPR auto make_write_int_arg(T value, sign_t sign)
+-    -> write_int_arg<uint32_or_64_or_128_t<T>> {
+-  auto prefix = 0u;
+-  auto abs_value = static_cast<uint32_or_64_or_128_t<T>>(value);
+-  if (is_negative(value)) {
+-    prefix = 0x01000000 | '-';
+-    abs_value = 0 - abs_value;
+-  } else {
+-    constexpr const unsigned prefixes[4] = {0, 0, 0x1000000u | '+',
+-                                            0x1000000u | ' '};
+-    prefix = prefixes[sign];
+-  }
+-  return {abs_value, prefix};
+-}
+-
+-template <typename Char, typename OutputIt, typename T>
+-FMT_CONSTEXPR FMT_INLINE auto write_int(OutputIt out, write_int_arg<T> arg,
+-                                        const basic_format_specs<Char>& specs,
+-                                        locale_ref loc) -> OutputIt {
+-  static_assert(std::is_same<T, uint32_or_64_or_128_t<T>>::value, "");
+-  auto abs_value = arg.abs_value;
+-  auto prefix = arg.prefix;
+-  switch (specs.type) {
+-  case presentation_type::none:
+-  case presentation_type::dec: {
+-    if (specs.localized &&
+-        write_int_localized(out, static_cast<uint64_or_128_t<T>>(abs_value),
+-                            prefix, specs, loc)) {
+-      return out;
+-    }
+-    auto num_digits = count_digits(abs_value);
+-    return write_int(
+-        out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) {
+-          return format_decimal<Char>(it, abs_value, num_digits).end;
+-        });
+-  }
+-  case presentation_type::hex_lower:
+-  case presentation_type::hex_upper: {
+-    bool upper = specs.type == presentation_type::hex_upper;
+-    if (specs.alt)
+-      prefix_append(prefix, unsigned(upper ? 'X' : 'x') << 8 | '0');
+-    int num_digits = count_digits<4>(abs_value);
+-    return write_int(
+-        out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) {
+-          return format_uint<4, Char>(it, abs_value, num_digits, upper);
+-        });
+-  }
+-  case presentation_type::bin_lower:
+-  case presentation_type::bin_upper: {
+-    bool upper = specs.type == presentation_type::bin_upper;
+-    if (specs.alt)
+-      prefix_append(prefix, unsigned(upper ? 'B' : 'b') << 8 | '0');
+-    int num_digits = count_digits<1>(abs_value);
+-    return write_int(out, num_digits, prefix, specs,
+-                     [=](reserve_iterator<OutputIt> it) {
+-                       return format_uint<1, Char>(it, abs_value, num_digits);
+-                     });
+-  }
+-  case presentation_type::oct: {
+-    int num_digits = count_digits<3>(abs_value);
+-    // Octal prefix '0' is counted as a digit, so only add it if precision
+-    // is not greater than the number of digits.
+-    if (specs.alt && specs.precision <= num_digits && abs_value != 0)
+-      prefix_append(prefix, '0');
+-    return write_int(out, num_digits, prefix, specs,
+-                     [=](reserve_iterator<OutputIt> it) {
+-                       return format_uint<3, Char>(it, abs_value, num_digits);
+-                     });
+-  }
+-  case presentation_type::chr:
+-    return write_char(out, static_cast<Char>(abs_value), specs);
+-  default:
+-    throw_format_error("invalid type specifier");
+-  }
+-  return out;
+-}
+-template <typename Char, typename OutputIt, typename T>
+-FMT_CONSTEXPR FMT_NOINLINE auto write_int_noinline(
+-    OutputIt out, write_int_arg<T> arg, const basic_format_specs<Char>& specs,
+-    locale_ref loc) -> OutputIt {
+-  return write_int(out, arg, specs, loc);
+-}
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_integral<T>::value &&
+-                        !std::is_same<T, bool>::value &&
+-                        std::is_same<OutputIt, buffer_appender<Char>>::value)>
+-FMT_CONSTEXPR FMT_INLINE auto write(OutputIt out, T value,
+-                                    const basic_format_specs<Char>& specs,
+-                                    locale_ref loc) -> OutputIt {
+-  return write_int_noinline(out, make_write_int_arg(value, specs.sign), specs,
+-                            loc);
+-}
+-// An inlined version of write used in format string compilation.
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_integral<T>::value &&
+-                        !std::is_same<T, bool>::value &&
+-                        !std::is_same<OutputIt, buffer_appender<Char>>::value)>
+-FMT_CONSTEXPR FMT_INLINE auto write(OutputIt out, T value,
+-                                    const basic_format_specs<Char>& specs,
+-                                    locale_ref loc) -> OutputIt {
+-  return write_int(out, make_write_int_arg(value, specs.sign), specs, loc);
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s,
+-                         const basic_format_specs<Char>& specs) -> OutputIt {
+-  auto data = s.data();
+-  auto size = s.size();
+-  if (specs.precision >= 0 && to_unsigned(specs.precision) < size)
+-    size = code_point_index(s, to_unsigned(specs.precision));
+-  auto width =
+-      specs.width != 0 ? compute_width(basic_string_view<Char>(data, size)) : 0;
+-  return write_padded(out, specs, size, width,
+-                      [=](reserve_iterator<OutputIt> it) {
+-                        return copy_str<Char>(data, data + size, it);
+-                      });
+-}
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out,
+-                         basic_string_view<type_identity_t<Char>> s,
+-                         const basic_format_specs<Char>& specs, locale_ref)
+-    -> OutputIt {
+-  check_string_type_spec(specs.type);
+-  return write(out, s, specs);
+-}
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, const Char* s,
+-                         const basic_format_specs<Char>& specs, locale_ref)
+-    -> OutputIt {
+-  return check_cstring_type_spec(specs.type)
+-             ? write(out, basic_string_view<Char>(s), specs, {})
+-             : write_ptr<Char>(out, to_uintptr(s), &specs);
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR20 auto write_nonfinite(OutputIt out, bool isinf,
+-                                     basic_format_specs<Char> specs,
+-                                     const float_specs& fspecs) -> OutputIt {
+-  auto str =
+-      isinf ? (fspecs.upper ? "INF" : "inf") : (fspecs.upper ? "NAN" : "nan");
+-  constexpr size_t str_size = 3;
+-  auto sign = fspecs.sign;
+-  auto size = str_size + (sign ? 1 : 0);
+-  // Replace '0'-padding with space for non-finite values.
+-  const bool is_zero_fill =
+-      specs.fill.size() == 1 && *specs.fill.data() == static_cast<Char>('0');
+-  if (is_zero_fill) specs.fill[0] = static_cast<Char>(' ');
+-  return write_padded(out, specs, size, [=](reserve_iterator<OutputIt> it) {
+-    if (sign) *it++ = detail::sign<Char>(sign);
+-    return copy_str<Char>(str, str + str_size, it);
+-  });
+-}
+-
+-// A decimal floating-point number significand * pow(10, exp).
+-struct big_decimal_fp {
+-  const char* significand;
+-  int significand_size;
+-  int exponent;
+-};
+-
+-constexpr auto get_significand_size(const big_decimal_fp& fp) -> int {
+-  return fp.significand_size;
+-}
+-template <typename T>
+-inline auto get_significand_size(const dragonbox::decimal_fp<T>& fp) -> int {
+-  return count_digits(fp.significand);
+-}
+-
+-template <typename Char, typename OutputIt>
+-constexpr auto write_significand(OutputIt out, const char* significand,
+-                                 int significand_size) -> OutputIt {
+-  return copy_str<Char>(significand, significand + significand_size, out);
+-}
+-template <typename Char, typename OutputIt, typename UInt>
+-inline auto write_significand(OutputIt out, UInt significand,
+-                              int significand_size) -> OutputIt {
+-  return format_decimal<Char>(out, significand, significand_size).end;
+-}
+-template <typename Char, typename OutputIt, typename T, typename Grouping>
+-FMT_CONSTEXPR20 auto write_significand(OutputIt out, T significand,
+-                                       int significand_size, int exponent,
+-                                       const Grouping& grouping) -> OutputIt {
+-  if (!grouping.separator()) {
+-    out = write_significand<Char>(out, significand, significand_size);
+-    return detail::fill_n(out, exponent, static_cast<Char>('0'));
+-  }
+-  auto buffer = memory_buffer();
+-  write_significand<char>(appender(buffer), significand, significand_size);
+-  detail::fill_n(appender(buffer), exponent, '0');
+-  return grouping.apply(out, string_view(buffer.data(), buffer.size()));
+-}
+-
+-template <typename Char, typename UInt,
+-          FMT_ENABLE_IF(std::is_integral<UInt>::value)>
+-inline auto write_significand(Char* out, UInt significand, int significand_size,
+-                              int integral_size, Char decimal_point) -> Char* {
+-  if (!decimal_point)
+-    return format_decimal(out, significand, significand_size).end;
+-  out += significand_size + 1;
+-  Char* end = out;
+-  int floating_size = significand_size - integral_size;
+-  for (int i = floating_size / 2; i > 0; --i) {
+-    out -= 2;
+-    copy2(out, digits2(significand % 100));
+-    significand /= 100;
+-  }
+-  if (floating_size % 2 != 0) {
+-    *--out = static_cast<Char>('0' + significand % 10);
+-    significand /= 10;
+-  }
+-  *--out = decimal_point;
+-  format_decimal(out - integral_size, significand, integral_size);
+-  return end;
+-}
+-
+-template <typename OutputIt, typename UInt, typename Char,
+-          FMT_ENABLE_IF(!std::is_pointer<remove_cvref_t<OutputIt>>::value)>
+-inline auto write_significand(OutputIt out, UInt significand,
+-                              int significand_size, int integral_size,
+-                              Char decimal_point) -> OutputIt {
+-  // Buffer is large enough to hold digits (digits10 + 1) and a decimal point.
+-  Char buffer[digits10<UInt>() + 2];
+-  auto end = write_significand(buffer, significand, significand_size,
+-                               integral_size, decimal_point);
+-  return detail::copy_str_noinline<Char>(buffer, end, out);
+-}
+-
+-template <typename OutputIt, typename Char>
+-FMT_CONSTEXPR auto write_significand(OutputIt out, const char* significand,
+-                                     int significand_size, int integral_size,
+-                                     Char decimal_point) -> OutputIt {
+-  out = detail::copy_str_noinline<Char>(significand,
+-                                        significand + integral_size, out);
+-  if (!decimal_point) return out;
+-  *out++ = decimal_point;
+-  return detail::copy_str_noinline<Char>(significand + integral_size,
+-                                         significand + significand_size, out);
+-}
+-
+-template <typename OutputIt, typename Char, typename T, typename Grouping>
+-FMT_CONSTEXPR20 auto write_significand(OutputIt out, T significand,
+-                                       int significand_size, int integral_size,
+-                                       Char decimal_point,
+-                                       const Grouping& grouping) -> OutputIt {
+-  if (!grouping.separator()) {
+-    return write_significand(out, significand, significand_size, integral_size,
+-                             decimal_point);
+-  }
+-  auto buffer = basic_memory_buffer<Char>();
+-  write_significand(buffer_appender<Char>(buffer), significand,
+-                    significand_size, integral_size, decimal_point);
+-  grouping.apply(
+-      out, basic_string_view<Char>(buffer.data(), to_unsigned(integral_size)));
+-  return detail::copy_str_noinline<Char>(buffer.data() + integral_size,
+-                                         buffer.end(), out);
+-}
+-
+-template <typename OutputIt, typename DecimalFP, typename Char,
+-          typename Grouping = digit_grouping<Char>>
+-FMT_CONSTEXPR20 auto do_write_float(OutputIt out, const DecimalFP& fp,
+-                                    const basic_format_specs<Char>& specs,
+-                                    float_specs fspecs, locale_ref loc)
+-    -> OutputIt {
+-  auto significand = fp.significand;
+-  int significand_size = get_significand_size(fp);
+-  constexpr Char zero = static_cast<Char>('0');
+-  auto sign = fspecs.sign;
+-  size_t size = to_unsigned(significand_size) + (sign ? 1 : 0);
+-  using iterator = reserve_iterator<OutputIt>;
+-
+-  Char decimal_point =
+-      fspecs.locale ? detail::decimal_point<Char>(loc) : static_cast<Char>('.');
+-
+-  int output_exp = fp.exponent + significand_size - 1;
+-  auto use_exp_format = [=]() {
+-    if (fspecs.format == float_format::exp) return true;
+-    if (fspecs.format != float_format::general) return false;
+-    // Use the fixed notation if the exponent is in [exp_lower, exp_upper),
+-    // e.g. 0.0001 instead of 1e-04. Otherwise use the exponent notation.
+-    const int exp_lower = -4, exp_upper = 16;
+-    return output_exp < exp_lower ||
+-           output_exp >= (fspecs.precision > 0 ? fspecs.precision : exp_upper);
+-  };
+-  if (use_exp_format()) {
+-    int num_zeros = 0;
+-    if (fspecs.showpoint) {
+-      num_zeros = fspecs.precision - significand_size;
+-      if (num_zeros < 0) num_zeros = 0;
+-      size += to_unsigned(num_zeros);
+-    } else if (significand_size == 1) {
+-      decimal_point = Char();
+-    }
+-    auto abs_output_exp = output_exp >= 0 ? output_exp : -output_exp;
+-    int exp_digits = 2;
+-    if (abs_output_exp >= 100) exp_digits = abs_output_exp >= 1000 ? 4 : 3;
+-
+-    size += to_unsigned((decimal_point ? 1 : 0) + 2 + exp_digits);
+-    char exp_char = fspecs.upper ? 'E' : 'e';
+-    auto write = [=](iterator it) {
+-      if (sign) *it++ = detail::sign<Char>(sign);
+-      // Insert a decimal point after the first digit and add an exponent.
+-      it = write_significand(it, significand, significand_size, 1,
+-                             decimal_point);
+-      if (num_zeros > 0) it = detail::fill_n(it, num_zeros, zero);
+-      *it++ = static_cast<Char>(exp_char);
+-      return write_exponent<Char>(output_exp, it);
+-    };
+-    return specs.width > 0 ? write_padded<align::right>(out, specs, size, write)
+-                           : base_iterator(out, write(reserve(out, size)));
+-  }
+-
+-  int exp = fp.exponent + significand_size;
+-  if (fp.exponent >= 0) {
+-    // 1234e5 -> 123400000[.0+]
+-    size += to_unsigned(fp.exponent);
+-    int num_zeros = fspecs.precision - exp;
+-#ifdef FMT_FUZZ
+-    if (num_zeros > 5000)
+-      throw std::runtime_error("fuzz mode - avoiding excessive cpu use");
+-#endif
+-    if (fspecs.showpoint) {
+-      if (num_zeros <= 0 && fspecs.format != float_format::fixed) num_zeros = 1;
+-      if (num_zeros > 0) size += to_unsigned(num_zeros) + 1;
+-    }
+-    auto grouping = Grouping(loc, fspecs.locale);
+-    size += to_unsigned(grouping.count_separators(significand_size));
+-    return write_padded<align::right>(out, specs, size, [&](iterator it) {
+-      if (sign) *it++ = detail::sign<Char>(sign);
+-      it = write_significand<Char>(it, significand, significand_size,
+-                                   fp.exponent, grouping);
+-      if (!fspecs.showpoint) return it;
+-      *it++ = decimal_point;
+-      return num_zeros > 0 ? detail::fill_n(it, num_zeros, zero) : it;
+-    });
+-  } else if (exp > 0) {
+-    // 1234e-2 -> 12.34[0+]
+-    int num_zeros = fspecs.showpoint ? fspecs.precision - significand_size : 0;
+-    size += 1 + to_unsigned(num_zeros > 0 ? num_zeros : 0);
+-    auto grouping = Grouping(loc, fspecs.locale);
+-    size += to_unsigned(grouping.count_separators(significand_size));
+-    return write_padded<align::right>(out, specs, size, [&](iterator it) {
+-      if (sign) *it++ = detail::sign<Char>(sign);
+-      it = write_significand(it, significand, significand_size, exp,
+-                             decimal_point, grouping);
+-      return num_zeros > 0 ? detail::fill_n(it, num_zeros, zero) : it;
+-    });
+-  }
+-  // 1234e-6 -> 0.001234
+-  int num_zeros = -exp;
+-  if (significand_size == 0 && fspecs.precision >= 0 &&
+-      fspecs.precision < num_zeros) {
+-    num_zeros = fspecs.precision;
+-  }
+-  bool pointy = num_zeros != 0 || significand_size != 0 || fspecs.showpoint;
+-  size += 1 + (pointy ? 1 : 0) + to_unsigned(num_zeros);
+-  return write_padded<align::right>(out, specs, size, [&](iterator it) {
+-    if (sign) *it++ = detail::sign<Char>(sign);
+-    *it++ = zero;
+-    if (!pointy) return it;
+-    *it++ = decimal_point;
+-    it = detail::fill_n(it, num_zeros, zero);
+-    return write_significand<Char>(it, significand, significand_size);
+-  });
+-}
+-
+-template <typename Char> class fallback_digit_grouping {
+- public:
+-  constexpr fallback_digit_grouping(locale_ref, bool) {}
+-
+-  constexpr Char separator() const { return Char(); }
+-
+-  constexpr int count_separators(int) const { return 0; }
+-
+-  template <typename Out, typename C>
+-  constexpr Out apply(Out out, basic_string_view<C>) const {
+-    return out;
+-  }
+-};
+-
+-template <typename OutputIt, typename DecimalFP, typename Char>
+-FMT_CONSTEXPR20 auto write_float(OutputIt out, const DecimalFP& fp,
+-                                 const basic_format_specs<Char>& specs,
+-                                 float_specs fspecs, locale_ref loc)
+-    -> OutputIt {
+-  if (is_constant_evaluated()) {
+-    return do_write_float<OutputIt, DecimalFP, Char,
+-                          fallback_digit_grouping<Char>>(out, fp, specs, fspecs,
+-                                                         loc);
+-  } else {
+-    return do_write_float(out, fp, specs, fspecs, loc);
+-  }
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_CONSTEXPR20 bool isinf(T value) {
+-  if (is_constant_evaluated()) {
+-#if defined(__cpp_if_constexpr)
+-    if constexpr (std::numeric_limits<double>::is_iec559) {
+-      auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value));
+-      constexpr auto significand_bits =
+-          dragonbox::float_info<double>::significand_bits;
+-      return (bits & exponent_mask<double>()) &&
+-             !(bits & ((uint64_t(1) << significand_bits) - 1));
+-    }
+-#endif
+-  }
+-  return std::isinf(value);
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_CONSTEXPR20 bool isfinite(T value) {
+-  if (is_constant_evaluated()) {
+-#if defined(__cpp_if_constexpr)
+-    if constexpr (std::numeric_limits<double>::is_iec559) {
+-      auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value));
+-      return (bits & exponent_mask<double>()) != exponent_mask<double>();
+-    }
+-#endif
+-  }
+-  return std::isfinite(value);
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_INLINE FMT_CONSTEXPR bool signbit(T value) {
+-  if (is_constant_evaluated()) {
+-#ifdef __cpp_if_constexpr
+-    if constexpr (std::numeric_limits<double>::is_iec559) {
+-      auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value));
+-      return (bits & (uint64_t(1) << (num_bits<uint64_t>() - 1))) != 0;
+-    }
+-#endif
+-  }
+-  return std::signbit(value);
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_CONSTEXPR20 auto write(OutputIt out, T value,
+-                           basic_format_specs<Char> specs, locale_ref loc = {})
+-    -> OutputIt {
+-  if (const_check(!is_supported_floating_point(value))) return out;
+-  float_specs fspecs = parse_float_type_spec(specs);
+-  fspecs.sign = specs.sign;
+-  if (detail::signbit(value)) {  // value < 0 is false for NaN so use signbit.
+-    fspecs.sign = sign::minus;
+-    value = -value;
+-  } else if (fspecs.sign == sign::minus) {
+-    fspecs.sign = sign::none;
+-  }
+-
+-  if (!detail::isfinite(value))
+-    return write_nonfinite(out, detail::isinf(value), specs, fspecs);
+-
+-  if (specs.align == align::numeric && fspecs.sign) {
+-    auto it = reserve(out, 1);
+-    *it++ = detail::sign<Char>(fspecs.sign);
+-    out = base_iterator(out, it);
+-    fspecs.sign = sign::none;
+-    if (specs.width != 0) --specs.width;
+-  }
+-
+-  memory_buffer buffer;
+-  if (fspecs.format == float_format::hex) {
+-    if (fspecs.sign) buffer.push_back(detail::sign<char>(fspecs.sign));
+-    snprintf_float(promote_float(value), specs.precision, fspecs, buffer);
+-    return write_bytes<align::right>(out, {buffer.data(), buffer.size()},
+-                                     specs);
+-  }
+-  int precision = specs.precision >= 0 || specs.type == presentation_type::none
+-                      ? specs.precision
+-                      : 6;
+-  if (fspecs.format == float_format::exp) {
+-    if (precision == max_value<int>())
+-      throw_format_error("number is too big");
+-    else
+-      ++precision;
+-  }
+-  if (const_check(std::is_same<T, float>())) fspecs.binary32 = true;
+-  if (!is_fast_float<T>()) fspecs.fallback = true;
+-  int exp = format_float(promote_float(value), precision, fspecs, buffer);
+-  fspecs.precision = precision;
+-  auto fp = big_decimal_fp{buffer.data(), static_cast<int>(buffer.size()), exp};
+-  return write_float(out, fp, specs, fspecs, loc);
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_fast_float<T>::value)>
+-FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt {
+-  if (is_constant_evaluated()) {
+-    return write(out, value, basic_format_specs<Char>());
+-  }
+-
+-  if (const_check(!is_supported_floating_point(value))) return out;
+-
+-  using floaty = conditional_t<std::is_same<T, long double>::value, double, T>;
+-  using uint = typename dragonbox::float_info<floaty>::carrier_uint;
+-  auto bits = bit_cast<uint>(value);
+-
+-  auto fspecs = float_specs();
+-  if (detail::signbit(value)) {
+-    fspecs.sign = sign::minus;
+-    value = -value;
+-  }
+-
+-  constexpr auto specs = basic_format_specs<Char>();
+-  uint mask = exponent_mask<floaty>();
+-  if ((bits & mask) == mask)
+-    return write_nonfinite(out, std::isinf(value), specs, fspecs);
+-
+-  auto dec = dragonbox::to_decimal(static_cast<floaty>(value));
+-  return write_float(out, dec, specs, fspecs, {});
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_floating_point<T>::value &&
+-                        !is_fast_float<T>::value)>
+-inline auto write(OutputIt out, T value) -> OutputIt {
+-  return write(out, value, basic_format_specs<Char>());
+-}
+-
+-template <typename Char, typename OutputIt>
+-auto write(OutputIt out, monostate, basic_format_specs<Char> = {},
+-           locale_ref = {}) -> OutputIt {
+-  FMT_ASSERT(false, "");
+-  return out;
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> value)
+-    -> OutputIt {
+-  auto it = reserve(out, value.size());
+-  it = copy_str_noinline<Char>(value.begin(), value.end(), it);
+-  return base_iterator(out, it);
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_string<T>::value)>
+-constexpr auto write(OutputIt out, const T& value) -> OutputIt {
+-  return write<Char>(out, to_string_view(value));
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_integral<T>::value &&
+-                        !std::is_same<T, bool>::value &&
+-                        !std::is_same<T, Char>::value)>
+-FMT_CONSTEXPR auto write(OutputIt out, T value) -> OutputIt {
+-  auto abs_value = static_cast<uint32_or_64_or_128_t<T>>(value);
+-  bool negative = is_negative(value);
+-  // Don't do -abs_value since it trips unsigned-integer-overflow sanitizer.
+-  if (negative) abs_value = ~abs_value + 1;
+-  int num_digits = count_digits(abs_value);
+-  auto size = (negative ? 1 : 0) + static_cast<size_t>(num_digits);
+-  auto it = reserve(out, size);
+-  if (auto ptr = to_pointer<Char>(it, size)) {
+-    if (negative) *ptr++ = static_cast<Char>('-');
+-    format_decimal<Char>(ptr, abs_value, num_digits);
+-    return out;
+-  }
+-  if (negative) *it++ = static_cast<Char>('-');
+-  it = format_decimal<Char>(it, abs_value, num_digits).end;
+-  return base_iterator(out, it);
+-}
+-
+-// FMT_ENABLE_IF() condition separated to workaround an MSVC bug.
+-template <
+-    typename Char, typename OutputIt, typename T,
+-    bool check =
+-        std::is_enum<T>::value && !std::is_same<T, Char>::value &&
+-        mapped_type_constant<T, basic_format_context<OutputIt, Char>>::value !=
+-            type::custom_type,
+-    FMT_ENABLE_IF(check)>
+-FMT_CONSTEXPR auto write(OutputIt out, T value) -> OutputIt {
+-  return write<Char>(
+-      out, static_cast<typename std::underlying_type<T>::type>(value));
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_same<T, bool>::value)>
+-FMT_CONSTEXPR auto write(OutputIt out, T value,
+-                         const basic_format_specs<Char>& specs = {},
+-                         locale_ref = {}) -> OutputIt {
+-  return specs.type != presentation_type::none &&
+-                 specs.type != presentation_type::string
+-             ? write(out, value ? 1 : 0, specs, {})
+-             : write_bytes(out, value ? "true" : "false", specs);
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, Char value) -> OutputIt {
+-  auto it = reserve(out, 1);
+-  *it++ = value;
+-  return base_iterator(out, it);
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR_CHAR_TRAITS auto write(OutputIt out, const Char* value)
+-    -> OutputIt {
+-  if (!value) {
+-    throw_format_error("string pointer is null");
+-  } else {
+-    out = write(out, basic_string_view<Char>(value));
+-  }
+-  return out;
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_same<T, void>::value)>
+-auto write(OutputIt out, const T* value,
+-           const basic_format_specs<Char>& specs = {}, locale_ref = {})
+-    -> OutputIt {
+-  check_pointer_type_spec(specs.type, error_handler());
+-  return write_ptr<Char>(out, to_uintptr(value), &specs);
+-}
+-
+-// A write overload that handles implicit conversions.
+-template <typename Char, typename OutputIt, typename T,
+-          typename Context = basic_format_context<OutputIt, Char>>
+-FMT_CONSTEXPR auto write(OutputIt out, const T& value) -> enable_if_t<
+-    std::is_class<T>::value && !is_string<T>::value &&
+-        !std::is_same<T, Char>::value &&
+-        !std::is_same<const T&,
+-                      decltype(arg_mapper<Context>().map(value))>::value,
+-    OutputIt> {
+-  return write<Char>(out, arg_mapper<Context>().map(value));
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          typename Context = basic_format_context<OutputIt, Char>>
+-FMT_CONSTEXPR auto write(OutputIt out, const T& value)
+-    -> enable_if_t<mapped_type_constant<T, Context>::value == type::custom_type,
+-                   OutputIt> {
+-  using formatter_type =
+-      conditional_t<has_formatter<T, Context>::value,
+-                    typename Context::template formatter_type<T>,
+-                    fallback_formatter<T, Char>>;
+-  auto ctx = Context(out, {}, {});
+-  return formatter_type().format(value, ctx);
+-}
+-
+-// An argument visitor that formats the argument and writes it via the output
+-// iterator. It's a class and not a generic lambda for compatibility with C++11.
+-template <typename Char> struct default_arg_formatter {
+-  using iterator = buffer_appender<Char>;
+-  using context = buffer_context<Char>;
+-
+-  iterator out;
+-  basic_format_args<context> args;
+-  locale_ref loc;
+-
+-  template <typename T> auto operator()(T value) -> iterator {
+-    return write<Char>(out, value);
+-  }
+-  auto operator()(typename basic_format_arg<context>::handle h) -> iterator {
+-    basic_format_parse_context<Char> parse_ctx({});
+-    context format_ctx(out, args, loc);
+-    h.format(parse_ctx, format_ctx);
+-    return format_ctx.out();
+-  }
+-};
+-
+-template <typename Char> struct arg_formatter {
+-  using iterator = buffer_appender<Char>;
+-  using context = buffer_context<Char>;
+-
+-  iterator out;
+-  const basic_format_specs<Char>& specs;
+-  locale_ref locale;
+-
+-  template <typename T>
+-  FMT_CONSTEXPR FMT_INLINE auto operator()(T value) -> iterator {
+-    return detail::write(out, value, specs, locale);
+-  }
+-  auto operator()(typename basic_format_arg<context>::handle) -> iterator {
+-    // User-defined types are handled separately because they require access
+-    // to the parse context.
+-    return out;
+-  }
+-};
+-
+-template <typename Char> struct custom_formatter {
+-  basic_format_parse_context<Char>& parse_ctx;
+-  buffer_context<Char>& ctx;
+-
+-  void operator()(
+-      typename basic_format_arg<buffer_context<Char>>::handle h) const {
+-    h.format(parse_ctx, ctx);
+-  }
+-  template <typename T> void operator()(T) const {}
+-};
+-
+-template <typename T>
+-using is_integer =
+-    bool_constant<is_integral<T>::value && !std::is_same<T, bool>::value &&
+-                  !std::is_same<T, char>::value &&
+-                  !std::is_same<T, wchar_t>::value>;
+-
+-template <typename ErrorHandler> class width_checker {
+- public:
+-  explicit FMT_CONSTEXPR width_checker(ErrorHandler& eh) : handler_(eh) {}
+-
+-  template <typename T, FMT_ENABLE_IF(is_integer<T>::value)>
+-  FMT_CONSTEXPR auto operator()(T value) -> unsigned long long {
+-    if (is_negative(value)) handler_.on_error("negative width");
+-    return static_cast<unsigned long long>(value);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!is_integer<T>::value)>
+-  FMT_CONSTEXPR auto operator()(T) -> unsigned long long {
+-    handler_.on_error("width is not integer");
+-    return 0;
+-  }
+-
+- private:
+-  ErrorHandler& handler_;
+-};
+-
+-template <typename ErrorHandler> class precision_checker {
+- public:
+-  explicit FMT_CONSTEXPR precision_checker(ErrorHandler& eh) : handler_(eh) {}
+-
+-  template <typename T, FMT_ENABLE_IF(is_integer<T>::value)>
+-  FMT_CONSTEXPR auto operator()(T value) -> unsigned long long {
+-    if (is_negative(value)) handler_.on_error("negative precision");
+-    return static_cast<unsigned long long>(value);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!is_integer<T>::value)>
+-  FMT_CONSTEXPR auto operator()(T) -> unsigned long long {
+-    handler_.on_error("precision is not integer");
+-    return 0;
+-  }
+-
+- private:
+-  ErrorHandler& handler_;
+-};
+-
+-template <template <typename> class Handler, typename FormatArg,
+-          typename ErrorHandler>
+-FMT_CONSTEXPR auto get_dynamic_spec(FormatArg arg, ErrorHandler eh) -> int {
+-  unsigned long long value = visit_format_arg(Handler<ErrorHandler>(eh), arg);
+-  if (value > to_unsigned(max_value<int>())) eh.on_error("number is too big");
+-  return static_cast<int>(value);
+-}
+-
+-template <typename Context, typename ID>
+-FMT_CONSTEXPR auto get_arg(Context& ctx, ID id) ->
+-    typename Context::format_arg {
+-  auto arg = ctx.arg(id);
+-  if (!arg) ctx.on_error("argument not found");
+-  return arg;
+-}
+-
+-// The standard format specifier handler with checking.
+-template <typename Char> class specs_handler : public specs_setter<Char> {
+- private:
+-  basic_format_parse_context<Char>& parse_context_;
+-  buffer_context<Char>& context_;
+-
+-  // This is only needed for compatibility with gcc 4.4.
+-  using format_arg = basic_format_arg<buffer_context<Char>>;
+-
+-  FMT_CONSTEXPR auto get_arg(auto_id) -> format_arg {
+-    return detail::get_arg(context_, parse_context_.next_arg_id());
+-  }
+-
+-  FMT_CONSTEXPR auto get_arg(int arg_id) -> format_arg {
+-    parse_context_.check_arg_id(arg_id);
+-    return detail::get_arg(context_, arg_id);
+-  }
+-
+-  FMT_CONSTEXPR auto get_arg(basic_string_view<Char> arg_id) -> format_arg {
+-    parse_context_.check_arg_id(arg_id);
+-    return detail::get_arg(context_, arg_id);
+-  }
+-
+- public:
+-  FMT_CONSTEXPR specs_handler(basic_format_specs<Char>& specs,
+-                              basic_format_parse_context<Char>& parse_ctx,
+-                              buffer_context<Char>& ctx)
+-      : specs_setter<Char>(specs), parse_context_(parse_ctx), context_(ctx) {}
+-
+-  template <typename Id> FMT_CONSTEXPR void on_dynamic_width(Id arg_id) {
+-    this->specs_.width = get_dynamic_spec<width_checker>(
+-        get_arg(arg_id), context_.error_handler());
+-  }
+-
+-  template <typename Id> FMT_CONSTEXPR void on_dynamic_precision(Id arg_id) {
+-    this->specs_.precision = get_dynamic_spec<precision_checker>(
+-        get_arg(arg_id), context_.error_handler());
+-  }
+-
+-  void on_error(const char* message) { context_.on_error(message); }
+-};
+-
+-template <template <typename> class Handler, typename Context>
+-FMT_CONSTEXPR void handle_dynamic_spec(int& value,
+-                                       arg_ref<typename Context::char_type> ref,
+-                                       Context& ctx) {
+-  switch (ref.kind) {
+-  case arg_id_kind::none:
+-    break;
+-  case arg_id_kind::index:
+-    value = detail::get_dynamic_spec<Handler>(ctx.arg(ref.val.index),
+-                                              ctx.error_handler());
+-    break;
+-  case arg_id_kind::name:
+-    value = detail::get_dynamic_spec<Handler>(ctx.arg(ref.val.name),
+-                                              ctx.error_handler());
+-    break;
+-  }
+-}
+-
+-#define FMT_STRING_IMPL(s, base, explicit)                                 \
+-  [] {                                                                     \
+-    /* Use the hidden visibility as a workaround for a GCC bug (#1973). */ \
+-    /* Use a macro-like name to avoid shadowing warnings. */               \
+-    struct FMT_GCC_VISIBILITY_HIDDEN FMT_COMPILE_STRING : base {           \
+-      using char_type = fmt::remove_cvref_t<decltype(s[0])>;               \
+-      FMT_MAYBE_UNUSED FMT_CONSTEXPR explicit                              \
+-      operator fmt::basic_string_view<char_type>() const {                 \
+-        return fmt::detail_exported::compile_string_to_view<char_type>(s); \
+-      }                                                                    \
+-    };                                                                     \
+-    return FMT_COMPILE_STRING();                                           \
+-  }()
+-
+-/**
+-  \rst
+-  Constructs a compile-time format string from a string literal *s*.
+-
+-  **Example**::
+-
+-    // A compile-time error because 'd' is an invalid specifier for strings.
+-    std::string s = fmt::format(FMT_STRING("{:d}"), "foo");
+-  \endrst
+- */
+-#define FMT_STRING(s) FMT_STRING_IMPL(s, fmt::compile_string, )
+-
+-#if FMT_USE_USER_DEFINED_LITERALS
+-template <typename Char> struct udl_formatter {
+-  basic_string_view<Char> str;
+-
+-  template <typename... T>
+-  auto operator()(T&&... args) const -> std::basic_string<Char> {
+-    return vformat(str, fmt::make_args_checked<T...>(str, args...));
+-  }
+-};
+-
+-#  if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <typename T, typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct statically_named_arg : view {
+-  static constexpr auto name = Str.data;
+-
+-  const T& value;
+-  statically_named_arg(const T& v) : value(v) {}
+-};
+-
+-template <typename T, typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct is_named_arg<statically_named_arg<T, Char, N, Str>> : std::true_type {};
+-
+-template <typename T, typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct is_statically_named_arg<statically_named_arg<T, Char, N, Str>>
+-    : std::true_type {};
+-
+-template <typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct udl_arg {
+-  template <typename T> auto operator=(T&& value) const {
+-    return statically_named_arg<T, Char, N, Str>(std::forward<T>(value));
+-  }
+-};
+-#  else
+-template <typename Char> struct udl_arg {
+-  const Char* str;
+-
+-  template <typename T> auto operator=(T&& value) const -> named_arg<Char, T> {
+-    return {str, std::forward<T>(value)};
+-  }
+-};
+-#  endif
+-#endif  // FMT_USE_USER_DEFINED_LITERALS
+-
+-template <typename Locale, typename Char>
+-auto vformat(const Locale& loc, basic_string_view<Char> format_str,
+-             basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> std::basic_string<Char> {
+-  basic_memory_buffer<Char> buffer;
+-  detail::vformat_to(buffer, format_str, args, detail::locale_ref(loc));
+-  return {buffer.data(), buffer.size()};
+-}
+-
+-using format_func = void (*)(detail::buffer<char>&, int, const char*);
+-
+-FMT_API void format_error_code(buffer<char>& out, int error_code,
+-                               string_view message) FMT_NOEXCEPT;
+-
+-FMT_API void report_error(format_func func, int error_code,
+-                          const char* message) FMT_NOEXCEPT;
+-FMT_END_DETAIL_NAMESPACE
+-
+-FMT_API auto vsystem_error(int error_code, string_view format_str,
+-                           format_args args) -> std::system_error;
+-
+-/**
+- \rst
+- Constructs :class:`std::system_error` with a message formatted with
+- ``fmt::format(fmt, args...)``.
+-  *error_code* is a system error code as given by ``errno``.
+-
+- **Example**::
+-
+-   // This throws std::system_error with the description
+-   //   cannot open file 'madeup': No such file or directory
+-   // or similar (system message may vary).
+-   const char* filename = "madeup";
+-   std::FILE* file = std::fopen(filename, "r");
+-   if (!file)
+-     throw fmt::system_error(errno, "cannot open file '{}'", filename);
+- \endrst
+-*/
+-template <typename... T>
+-auto system_error(int error_code, format_string<T...> fmt, T&&... args)
+-    -> std::system_error {
+-  return vsystem_error(error_code, fmt, fmt::make_format_args(args...));
+-}
+-
+-/**
+-  \rst
+-  Formats an error message for an error returned by an operating system or a
+-  language runtime, for example a file opening error, and writes it to *out*.
+-  The format is the same as the one used by ``std::system_error(ec, message)``
+-  where ``ec`` is ``std::error_code(error_code, std::generic_category()})``.
+-  It is implementation-defined but normally looks like:
+-
+-  .. parsed-literal::
+-     *<message>*: *<system-message>*
+-
+-  where *<message>* is the passed message and *<system-message>* is the system
+-  message corresponding to the error code.
+-  *error_code* is a system error code as given by ``errno``.
+-  \endrst
+- */
+-FMT_API void format_system_error(detail::buffer<char>& out, int error_code,
+-                                 const char* message) FMT_NOEXCEPT;
+-
+-// Reports a system error without throwing an exception.
+-// Can be used to report errors from destructors.
+-FMT_API void report_system_error(int error_code,
+-                                 const char* message) FMT_NOEXCEPT;
+-
+-/** Fast integer formatter. */
+-class format_int {
+- private:
+-  // Buffer should be large enough to hold all digits (digits10 + 1),
+-  // a sign and a null character.
+-  enum { buffer_size = std::numeric_limits<unsigned long long>::digits10 + 3 };
+-  mutable char buffer_[buffer_size];
+-  char* str_;
+-
+-  template <typename UInt> auto format_unsigned(UInt value) -> char* {
+-    auto n = static_cast<detail::uint32_or_64_or_128_t<UInt>>(value);
+-    return detail::format_decimal(buffer_, n, buffer_size - 1).begin;
+-  }
+-
+-  template <typename Int> auto format_signed(Int value) -> char* {
+-    auto abs_value = static_cast<detail::uint32_or_64_or_128_t<Int>>(value);
+-    bool negative = value < 0;
+-    if (negative) abs_value = 0 - abs_value;
+-    auto begin = format_unsigned(abs_value);
+-    if (negative) *--begin = '-';
+-    return begin;
+-  }
+-
+- public:
+-  explicit format_int(int value) : str_(format_signed(value)) {}
+-  explicit format_int(long value) : str_(format_signed(value)) {}
+-  explicit format_int(long long value) : str_(format_signed(value)) {}
+-  explicit format_int(unsigned value) : str_(format_unsigned(value)) {}
+-  explicit format_int(unsigned long value) : str_(format_unsigned(value)) {}
+-  explicit format_int(unsigned long long value)
+-      : str_(format_unsigned(value)) {}
+-
+-  /** Returns the number of characters written to the output buffer. */
+-  auto size() const -> size_t {
+-    return detail::to_unsigned(buffer_ - str_ + buffer_size - 1);
+-  }
+-
+-  /**
+-    Returns a pointer to the output buffer content. No terminating null
+-    character is appended.
+-   */
+-  auto data() const -> const char* { return str_; }
+-
+-  /**
+-    Returns a pointer to the output buffer content with terminating null
+-    character appended.
+-   */
+-  auto c_str() const -> const char* {
+-    buffer_[buffer_size - 1] = '\0';
+-    return str_;
+-  }
+-
+-  /**
+-    \rst
+-    Returns the content of the output buffer as an ``std::string``.
+-    \endrst
+-   */
+-  auto str() const -> std::string { return std::string(str_, size()); }
+-};
+-
+-template <typename T, typename Char>
+-template <typename FormatContext>
+-FMT_CONSTEXPR FMT_INLINE auto
+-formatter<T, Char,
+-          enable_if_t<detail::type_constant<T, Char>::value !=
+-                      detail::type::custom_type>>::format(const T& val,
+-                                                          FormatContext& ctx)
+-    const -> decltype(ctx.out()) {
+-  if (specs_.width_ref.kind != detail::arg_id_kind::none ||
+-      specs_.precision_ref.kind != detail::arg_id_kind::none) {
+-    auto specs = specs_;
+-    detail::handle_dynamic_spec<detail::width_checker>(specs.width,
+-                                                       specs.width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(
+-        specs.precision, specs.precision_ref, ctx);
+-    return detail::write<Char>(ctx.out(), val, specs, ctx.locale());
+-  }
+-  return detail::write<Char>(ctx.out(), val, specs_, ctx.locale());
+-}
+-
+-#define FMT_FORMAT_AS(Type, Base)                                        \
+-  template <typename Char>                                               \
+-  struct formatter<Type, Char> : formatter<Base, Char> {                 \
+-    template <typename FormatContext>                                    \
+-    auto format(Type const& val, FormatContext& ctx) const               \
+-        -> decltype(ctx.out()) {                                         \
+-      return formatter<Base, Char>::format(static_cast<Base>(val), ctx); \
+-    }                                                                    \
+-  }
+-
+-FMT_FORMAT_AS(signed char, int);
+-FMT_FORMAT_AS(unsigned char, unsigned);
+-FMT_FORMAT_AS(short, int);
+-FMT_FORMAT_AS(unsigned short, unsigned);
+-FMT_FORMAT_AS(long, long long);
+-FMT_FORMAT_AS(unsigned long, unsigned long long);
+-FMT_FORMAT_AS(Char*, const Char*);
+-FMT_FORMAT_AS(std::basic_string<Char>, basic_string_view<Char>);
+-FMT_FORMAT_AS(std::nullptr_t, const void*);
+-FMT_FORMAT_AS(detail::byte, unsigned char);
+-FMT_FORMAT_AS(detail::std_string_view<Char>, basic_string_view<Char>);
+-
+-template <typename Char>
+-struct formatter<void*, Char> : formatter<const void*, Char> {
+-  template <typename FormatContext>
+-  auto format(void* val, FormatContext& ctx) const -> decltype(ctx.out()) {
+-    return formatter<const void*, Char>::format(val, ctx);
+-  }
+-};
+-
+-template <typename Char, size_t N>
+-struct formatter<Char[N], Char> : formatter<basic_string_view<Char>, Char> {
+-  template <typename FormatContext>
+-  FMT_CONSTEXPR auto format(const Char* val, FormatContext& ctx) const
+-      -> decltype(ctx.out()) {
+-    return formatter<basic_string_view<Char>, Char>::format(val, ctx);
+-  }
+-};
+-
+-// A formatter for types known only at run time such as variant alternatives.
+-//
+-// Usage:
+-//   using variant = std::variant<int, std::string>;
+-//   template <>
+-//   struct formatter<variant>: dynamic_formatter<> {
+-//     auto format(const variant& v, format_context& ctx) {
+-//       return visit([&](const auto& val) {
+-//           return dynamic_formatter<>::format(val, ctx);
+-//       }, v);
+-//     }
+-//   };
+-template <typename Char = char> class dynamic_formatter {
+- private:
+-  detail::dynamic_format_specs<Char> specs_;
+-  const Char* format_str_;
+-
+-  struct null_handler : detail::error_handler {
+-    void on_align(align_t) {}
+-    void on_sign(sign_t) {}
+-    void on_hash() {}
+-  };
+-
+-  template <typename Context> void handle_specs(Context& ctx) {
+-    detail::handle_dynamic_spec<detail::width_checker>(specs_.width,
+-                                                       specs_.width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(
+-        specs_.precision, specs_.precision_ref, ctx);
+-  }
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    format_str_ = ctx.begin();
+-    // Checks are deferred to formatting time when the argument type is known.
+-    detail::dynamic_specs_handler<ParseContext> handler(specs_, ctx);
+-    return detail::parse_format_specs(ctx.begin(), ctx.end(), handler);
+-  }
+-
+-  template <typename T, typename FormatContext>
+-  auto format(const T& val, FormatContext& ctx) -> decltype(ctx.out()) {
+-    handle_specs(ctx);
+-    detail::specs_checker<null_handler> checker(
+-        null_handler(), detail::mapped_type_constant<T, FormatContext>::value);
+-    checker.on_align(specs_.align);
+-    if (specs_.sign != sign::none) checker.on_sign(specs_.sign);
+-    if (specs_.alt) checker.on_hash();
+-    if (specs_.precision >= 0) checker.end_precision();
+-    return detail::write<Char>(ctx.out(), val, specs_, ctx.locale());
+-  }
+-};
+-
+-/**
+-  \rst
+-  Converts ``p`` to ``const void*`` for pointer formatting.
+-
+-  **Example**::
+-
+-    auto s = fmt::format("{}", fmt::ptr(p));
+-  \endrst
+- */
+-template <typename T> auto ptr(T p) -> const void* {
+-  static_assert(std::is_pointer<T>::value, "");
+-  return detail::bit_cast<const void*>(p);
+-}
+-template <typename T> auto ptr(const std::unique_ptr<T>& p) -> const void* {
+-  return p.get();
+-}
+-template <typename T> auto ptr(const std::shared_ptr<T>& p) -> const void* {
+-  return p.get();
+-}
+-
+-class bytes {
+- private:
+-  string_view data_;
+-  friend struct formatter<bytes>;
+-
+- public:
+-  explicit bytes(string_view data) : data_(data) {}
+-};
+-
+-template <> struct formatter<bytes> {
+- private:
+-  detail::dynamic_format_specs<char> specs_;
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    using handler_type = detail::dynamic_specs_handler<ParseContext>;
+-    detail::specs_checker<handler_type> handler(handler_type(specs_, ctx),
+-                                                detail::type::string_type);
+-    auto it = parse_format_specs(ctx.begin(), ctx.end(), handler);
+-    detail::check_string_type_spec(specs_.type, ctx.error_handler());
+-    return it;
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(bytes b, FormatContext& ctx) -> decltype(ctx.out()) {
+-    detail::handle_dynamic_spec<detail::width_checker>(specs_.width,
+-                                                       specs_.width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(
+-        specs_.precision, specs_.precision_ref, ctx);
+-    return detail::write_bytes(ctx.out(), b.data_, specs_);
+-  }
+-};
+-
+-// group_digits_view is not derived from view because it copies the argument.
+-template <typename T> struct group_digits_view { T value; };
+-
+-/**
+-  \rst
+-  Returns a view that formats an integer value using ',' as a locale-independent
+-  thousands separator.
+-
+-  **Example**::
+-
+-    fmt::print("{}", fmt::group_digits(12345));
+-    // Output: "12,345"
+-  \endrst
+- */
+-template <typename T> auto group_digits(T value) -> group_digits_view<T> {
+-  return {value};
+-}
+-
+-template <typename T> struct formatter<group_digits_view<T>> : formatter<T> {
+- private:
+-  detail::dynamic_format_specs<char> specs_;
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    using handler_type = detail::dynamic_specs_handler<ParseContext>;
+-    detail::specs_checker<handler_type> handler(handler_type(specs_, ctx),
+-                                                detail::type::int_type);
+-    auto it = parse_format_specs(ctx.begin(), ctx.end(), handler);
+-    detail::check_string_type_spec(specs_.type, ctx.error_handler());
+-    return it;
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(group_digits_view<T> t, FormatContext& ctx)
+-      -> decltype(ctx.out()) {
+-    detail::handle_dynamic_spec<detail::width_checker>(specs_.width,
+-                                                       specs_.width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(
+-        specs_.precision, specs_.precision_ref, ctx);
+-    return detail::write_int_localized(
+-        ctx.out(), static_cast<detail::uint64_or_128_t<T>>(t.value), 0, specs_,
+-        detail::digit_grouping<char>({"\3", ','}));
+-  }
+-};
+-
+-template <typename It, typename Sentinel, typename Char = char>
+-struct join_view : detail::view {
+-  It begin;
+-  Sentinel end;
+-  basic_string_view<Char> sep;
+-
+-  join_view(It b, Sentinel e, basic_string_view<Char> s)
+-      : begin(b), end(e), sep(s) {}
+-};
+-
+-template <typename It, typename Sentinel, typename Char>
+-using arg_join FMT_DEPRECATED_ALIAS = join_view<It, Sentinel, Char>;
+-
+-template <typename It, typename Sentinel, typename Char>
+-struct formatter<join_view<It, Sentinel, Char>, Char> {
+- private:
+-  using value_type =
+-#ifdef __cpp_lib_ranges
+-      std::iter_value_t<It>;
+-#else
+-      typename std::iterator_traits<It>::value_type;
+-#endif
+-  using context = buffer_context<Char>;
+-  using mapper = detail::arg_mapper<context>;
+-
+-  template <typename T, FMT_ENABLE_IF(has_formatter<T, context>::value)>
+-  static auto map(const T& value) -> const T& {
+-    return value;
+-  }
+-  template <typename T, FMT_ENABLE_IF(!has_formatter<T, context>::value)>
+-  static auto map(const T& value) -> decltype(mapper().map(value)) {
+-    return mapper().map(value);
+-  }
+-
+-  using formatter_type =
+-      conditional_t<is_formattable<value_type, Char>::value,
+-                    formatter<remove_cvref_t<decltype(map(
+-                                  std::declval<const value_type&>()))>,
+-                              Char>,
+-                    detail::fallback_formatter<value_type, Char>>;
+-
+-  formatter_type value_formatter_;
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return value_formatter_.parse(ctx);
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(const join_view<It, Sentinel, Char>& value, FormatContext& ctx)
+-      -> decltype(ctx.out()) {
+-    auto it = value.begin;
+-    auto out = ctx.out();
+-    if (it != value.end) {
+-      out = value_formatter_.format(map(*it), ctx);
+-      ++it;
+-      while (it != value.end) {
+-        out = detail::copy_str<Char>(value.sep.begin(), value.sep.end(), out);
+-        ctx.advance_to(out);
+-        out = value_formatter_.format(map(*it), ctx);
+-        ++it;
+-      }
+-    }
+-    return out;
+-  }
+-};
+-
+-/**
+-  Returns a view that formats the iterator range `[begin, end)` with elements
+-  separated by `sep`.
+- */
+-template <typename It, typename Sentinel>
+-auto join(It begin, Sentinel end, string_view sep) -> join_view<It, Sentinel> {
+-  return {begin, end, sep};
+-}
+-
+-/**
+-  \rst
+-  Returns a view that formats `range` with elements separated by `sep`.
+-
+-  **Example**::
+-
+-    std::vector<int> v = {1, 2, 3};
+-    fmt::print("{}", fmt::join(v, ", "));
+-    // Output: "1, 2, 3"
+-
+-  ``fmt::join`` applies passed format specifiers to the range elements::
+-
+-    fmt::print("{:02}", fmt::join(v, ", "));
+-    // Output: "01, 02, 03"
+-  \endrst
+- */
+-template <typename Range>
+-auto join(Range&& range, string_view sep)
+-    -> join_view<detail::iterator_t<Range>, detail::sentinel_t<Range>> {
+-  return join(std::begin(range), std::end(range), sep);
+-}
+-
+-/**
+-  \rst
+-  Converts *value* to ``std::string`` using the default format for type *T*.
+-
+-  **Example**::
+-
+-    #include <fmt/format.h>
+-
+-    std::string answer = fmt::to_string(42);
+-  \endrst
+- */
+-template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-inline auto to_string(const T& value) -> std::string {
+-  auto result = std::string();
+-  detail::write<char>(std::back_inserter(result), value);
+-  return result;
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-FMT_NODISCARD inline auto to_string(T value) -> std::string {
+-  // The buffer should be large enough to store the number including the sign
+-  // or "false" for bool.
+-  constexpr int max_size = detail::digits10<T>() + 2;
+-  char buffer[max_size > 5 ? static_cast<unsigned>(max_size) : 5];
+-  char* begin = buffer;
+-  return std::string(begin, detail::write<char>(begin, value));
+-}
+-
+-template <typename Char, size_t SIZE>
+-FMT_NODISCARD auto to_string(const basic_memory_buffer<Char, SIZE>& buf)
+-    -> std::basic_string<Char> {
+-  auto size = buf.size();
+-  detail::assume(size < std::basic_string<Char>().max_size());
+-  return std::basic_string<Char>(buf.data(), size);
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename Char>
+-void vformat_to(
+-    buffer<Char>& buf, basic_string_view<Char> fmt,
+-    basic_format_args<FMT_BUFFER_CONTEXT(type_identity_t<Char>)> args,
+-    locale_ref loc) {
+-  // workaround for msvc bug regarding name-lookup in module
+-  // link names into function scope
+-  using detail::arg_formatter;
+-  using detail::buffer_appender;
+-  using detail::custom_formatter;
+-  using detail::default_arg_formatter;
+-  using detail::get_arg;
+-  using detail::locale_ref;
+-  using detail::parse_format_specs;
+-  using detail::specs_checker;
+-  using detail::specs_handler;
+-  using detail::to_unsigned;
+-  using detail::type;
+-  using detail::write;
+-  auto out = buffer_appender<Char>(buf);
+-  if (fmt.size() == 2 && equal2(fmt.data(), "{}")) {
+-    auto arg = args.get(0);
+-    if (!arg) error_handler().on_error("argument not found");
+-    visit_format_arg(default_arg_formatter<Char>{out, args, loc}, arg);
+-    return;
+-  }
+-
+-  struct format_handler : error_handler {
+-    basic_format_parse_context<Char> parse_context;
+-    buffer_context<Char> context;
+-
+-    format_handler(buffer_appender<Char> out, basic_string_view<Char> str,
+-                   basic_format_args<buffer_context<Char>> args, locale_ref loc)
+-        : parse_context(str), context(out, args, loc) {}
+-
+-    void on_text(const Char* begin, const Char* end) {
+-      auto text = basic_string_view<Char>(begin, to_unsigned(end - begin));
+-      context.advance_to(write<Char>(context.out(), text));
+-    }
+-
+-    FMT_CONSTEXPR auto on_arg_id() -> int {
+-      return parse_context.next_arg_id();
+-    }
+-    FMT_CONSTEXPR auto on_arg_id(int id) -> int {
+-      return parse_context.check_arg_id(id), id;
+-    }
+-    FMT_CONSTEXPR auto on_arg_id(basic_string_view<Char> id) -> int {
+-      int arg_id = context.arg_id(id);
+-      if (arg_id < 0) on_error("argument not found");
+-      return arg_id;
+-    }
+-
+-    FMT_INLINE void on_replacement_field(int id, const Char*) {
+-      auto arg = get_arg(context, id);
+-      context.advance_to(visit_format_arg(
+-          default_arg_formatter<Char>{context.out(), context.args(),
+-                                      context.locale()},
+-          arg));
+-    }
+-
+-    auto on_format_specs(int id, const Char* begin, const Char* end)
+-        -> const Char* {
+-      auto arg = get_arg(context, id);
+-      if (arg.type() == type::custom_type) {
+-        parse_context.advance_to(parse_context.begin() +
+-                                 (begin - &*parse_context.begin()));
+-        visit_format_arg(custom_formatter<Char>{parse_context, context}, arg);
+-        return parse_context.begin();
+-      }
+-      auto specs = basic_format_specs<Char>();
+-      specs_checker<specs_handler<Char>> handler(
+-          specs_handler<Char>(specs, parse_context, context), arg.type());
+-      begin = parse_format_specs(begin, end, handler);
+-      if (begin == end || *begin != '}')
+-        on_error("missing '}' in format string");
+-      auto f = arg_formatter<Char>{context.out(), specs, context.locale()};
+-      context.advance_to(visit_format_arg(f, arg));
+-      return begin;
+-    }
+-  };
+-  detail::parse_format_string<false>(fmt, format_handler(out, fmt, args, loc));
+-}
+-
+-#ifndef FMT_HEADER_ONLY
+-extern template FMT_API auto thousands_sep_impl<char>(locale_ref)
+-    -> thousands_sep_result<char>;
+-extern template FMT_API auto thousands_sep_impl<wchar_t>(locale_ref)
+-    -> thousands_sep_result<wchar_t>;
+-extern template FMT_API auto decimal_point_impl(locale_ref) -> char;
+-extern template FMT_API auto decimal_point_impl(locale_ref) -> wchar_t;
+-extern template auto format_float<double>(double value, int precision,
+-                                          float_specs specs, buffer<char>& buf)
+-    -> int;
+-extern template auto format_float<long double>(long double value, int precision,
+-                                               float_specs specs,
+-                                               buffer<char>& buf) -> int;
+-void snprintf_float(float, int, float_specs, buffer<char>&) = delete;
+-extern template auto snprintf_float<double>(double value, int precision,
+-                                            float_specs specs,
+-                                            buffer<char>& buf) -> int;
+-extern template auto snprintf_float<long double>(long double value,
+-                                                 int precision,
+-                                                 float_specs specs,
+-                                                 buffer<char>& buf) -> int;
+-#endif  // FMT_HEADER_ONLY
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-#if FMT_USE_USER_DEFINED_LITERALS
+-inline namespace literals {
+-/**
+-  \rst
+-  User-defined literal equivalent of :func:`fmt::arg`.
+-
+-  **Example**::
+-
+-    using namespace fmt::literals;
+-    fmt::print("Elapsed time: {s:.2f} seconds", "s"_a=1.23);
+-  \endrst
+- */
+-#  if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <detail_exported::fixed_string Str>
+-constexpr auto operator""_a()
+-    -> detail::udl_arg<remove_cvref_t<decltype(Str.data[0])>,
+-                       sizeof(Str.data) / sizeof(decltype(Str.data[0])), Str> {
+-  return {};
+-}
+-#  else
+-constexpr auto operator"" _a(const char* s, size_t) -> detail::udl_arg<char> {
+-  return {s};
+-}
+-#  endif
+-
+-// DEPRECATED!
+-// User-defined literal equivalent of fmt::format.
+-FMT_DEPRECATED constexpr auto operator"" _format(const char* s, size_t n)
+-    -> detail::udl_formatter<char> {
+-  return {{s, n}};
+-}
+-}  // namespace literals
+-#endif  // FMT_USE_USER_DEFINED_LITERALS
+-
+-template <typename Locale, FMT_ENABLE_IF(detail::is_locale<Locale>::value)>
+-inline auto vformat(const Locale& loc, string_view fmt, format_args args)
+-    -> std::string {
+-  return detail::vformat(loc, fmt, args);
+-}
+-
+-template <typename Locale, typename... T,
+-          FMT_ENABLE_IF(detail::is_locale<Locale>::value)>
+-inline auto format(const Locale& loc, format_string<T...> fmt, T&&... args)
+-    -> std::string {
+-  return vformat(loc, string_view(fmt), fmt::make_format_args(args...));
+-}
+-
+-template <typename... T, size_t SIZE, typename Allocator>
+-FMT_DEPRECATED auto format_to(basic_memory_buffer<char, SIZE, Allocator>& buf,
+-                              format_string<T...> fmt, T&&... args)
+-    -> appender {
+-  detail::vformat_to(buf, string_view(fmt), fmt::make_format_args(args...));
+-  return appender(buf);
+-}
+-
+-template <typename OutputIt, typename Locale,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value&&
+-                            detail::is_locale<Locale>::value)>
+-auto vformat_to(OutputIt out, const Locale& loc, string_view fmt,
+-                format_args args) -> OutputIt {
+-  using detail::get_buffer;
+-  auto&& buf = get_buffer<char>(out);
+-  detail::vformat_to(buf, fmt, args, detail::locale_ref(loc));
+-  return detail::get_iterator(buf);
+-}
+-
+-template <typename OutputIt, typename Locale, typename... T,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value&&
+-                            detail::is_locale<Locale>::value)>
+-FMT_INLINE auto format_to(OutputIt out, const Locale& loc,
+-                          format_string<T...> fmt, T&&... args) -> OutputIt {
+-  return vformat_to(out, loc, fmt, fmt::make_format_args(args...));
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#ifdef FMT_DEPRECATED_INCLUDE_XCHAR
+-#  include "xchar.h"
+-#endif
+-
+-#ifdef FMT_HEADER_ONLY
+-#  define FMT_FUNC inline
+-#  include "format-inl.h"
+-#else
+-#  define FMT_FUNC
+-#endif
+-
+-#endif  // FMT_FORMAT_H_
+diff --git a/include/dpp/fmt/locale.h b/include/dpp/fmt/locale.h
+deleted file mode 100644
+index 7571b52..0000000
+--- a/include/dpp/fmt/locale.h
++++ /dev/null
+@@ -1,2 +0,0 @@
+-#include "xchar.h"
+-#warning fmt/locale.h is deprecated, include fmt/format.h or fmt/xchar.h instead
+diff --git a/include/dpp/fmt/os.h b/include/dpp/fmt/os.h
+deleted file mode 100644
+index b64f8bb..0000000
+--- a/include/dpp/fmt/os.h
++++ /dev/null
+@@ -1,527 +0,0 @@
+-// Formatting library for C++ - optional OS-specific functionality
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_OS_H_
+-#define FMT_OS_H_
+-
+-#include <cerrno>
+-#include <clocale>  // locale_t
+-#include <cstddef>
+-#include <cstdio>
+-#include <cstdlib>       // strtod_l
+-#include <system_error>  // std::system_error
+-
+-#if defined __APPLE__ || defined(__FreeBSD__)
+-#  include <xlocale.h>  // for LC_NUMERIC_MASK on OS X
+-#endif
+-
+-#include "format.h"
+-
+-#ifndef FMT_USE_FCNTL
+-// UWP doesn't provide _pipe.
+-#  if FMT_HAS_INCLUDE("winapifamily.h")
+-#    include <winapifamily.h>
+-#  endif
+-#  if (FMT_HAS_INCLUDE(<fcntl.h>) || defined(__APPLE__) || \
+-       defined(__linux__)) &&                              \
+-      (!defined(WINAPI_FAMILY) ||                          \
+-       (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP))
+-#    include <fcntl.h>  // for O_RDONLY
+-#    define FMT_USE_FCNTL 1
+-#  else
+-#    define FMT_USE_FCNTL 0
+-#  endif
+-#endif
+-
+-#ifndef FMT_POSIX
+-#  if defined(_WIN32) && !defined(__MINGW32__)
+-// Fix warnings about deprecated symbols.
+-#    define FMT_POSIX(call) _##call
+-#  else
+-#    define FMT_POSIX(call) call
+-#  endif
+-#endif
+-
+-// Calls to system functions are wrapped in FMT_SYSTEM for testability.
+-#ifdef FMT_SYSTEM
+-#  define FMT_POSIX_CALL(call) FMT_SYSTEM(call)
+-#else
+-#  define FMT_SYSTEM(call) ::call
+-#  ifdef _WIN32
+-// Fix warnings about deprecated symbols.
+-#    define FMT_POSIX_CALL(call) ::_##call
+-#  else
+-#    define FMT_POSIX_CALL(call) ::call
+-#  endif
+-#endif
+-
+-// Retries the expression while it evaluates to error_result and errno
+-// equals to EINTR.
+-#ifndef _WIN32
+-#  define FMT_RETRY_VAL(result, expression, error_result) \
+-    do {                                                  \
+-      (result) = (expression);                            \
+-    } while ((result) == (error_result) && errno == EINTR)
+-#else
+-#  define FMT_RETRY_VAL(result, expression, error_result) result = (expression)
+-#endif
+-
+-#define FMT_RETRY(result, expression) FMT_RETRY_VAL(result, expression, -1)
+-
+-FMT_BEGIN_NAMESPACE
+-FMT_MODULE_EXPORT_BEGIN
+-
+-/**
+-  \rst
+-  A reference to a null-terminated string. It can be constructed from a C
+-  string or ``std::string``.
+-
+-  You can use one of the following type aliases for common character types:
+-
+-  +---------------+-----------------------------+
+-  | Type          | Definition                  |
+-  +===============+=============================+
+-  | cstring_view  | basic_cstring_view<char>    |
+-  +---------------+-----------------------------+
+-  | wcstring_view | basic_cstring_view<wchar_t> |
+-  +---------------+-----------------------------+
+-
+-  This class is most useful as a parameter type to allow passing
+-  different types of strings to a function, for example::
+-
+-    template <typename... Args>
+-    std::string format(cstring_view format_str, const Args & ... args);
+-
+-    format("{}", 42);
+-    format(std::string("{}"), 42);
+-  \endrst
+- */
+-template <typename Char> class basic_cstring_view {
+- private:
+-  const Char* data_;
+-
+- public:
+-  /** Constructs a string reference object from a C string. */
+-  basic_cstring_view(const Char* s) : data_(s) {}
+-
+-  /**
+-    \rst
+-    Constructs a string reference from an ``std::string`` object.
+-    \endrst
+-   */
+-  basic_cstring_view(const std::basic_string<Char>& s) : data_(s.c_str()) {}
+-
+-  /** Returns the pointer to a C string. */
+-  const Char* c_str() const { return data_; }
+-};
+-
+-using cstring_view = basic_cstring_view<char>;
+-using wcstring_view = basic_cstring_view<wchar_t>;
+-
+-template <typename Char> struct formatter<std::error_code, Char> {
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <typename FormatContext>
+-  FMT_CONSTEXPR auto format(const std::error_code& ec, FormatContext& ctx) const
+-      -> decltype(ctx.out()) {
+-    auto out = ctx.out();
+-    out = detail::write_bytes(out, ec.category().name(),
+-                              basic_format_specs<Char>());
+-    out = detail::write<Char>(out, Char(':'));
+-    out = detail::write<Char>(out, ec.value());
+-    return out;
+-  }
+-};
+-
+-#ifdef _WIN32
+-FMT_API const std::error_category& system_category() FMT_NOEXCEPT;
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-// A converter from UTF-16 to UTF-8.
+-// It is only provided for Windows since other systems support UTF-8 natively.
+-class utf16_to_utf8 {
+- private:
+-  memory_buffer buffer_;
+-
+- public:
+-  utf16_to_utf8() {}
+-  FMT_API explicit utf16_to_utf8(basic_string_view<wchar_t> s);
+-  operator string_view() const { return string_view(&buffer_[0], size()); }
+-  size_t size() const { return buffer_.size() - 1; }
+-  const char* c_str() const { return &buffer_[0]; }
+-  std::string str() const { return std::string(&buffer_[0], size()); }
+-
+-  // Performs conversion returning a system error code instead of
+-  // throwing exception on conversion error. This method may still throw
+-  // in case of memory allocation error.
+-  FMT_API int convert(basic_string_view<wchar_t> s);
+-};
+-
+-FMT_API void format_windows_error(buffer<char>& out, int error_code,
+-                                  const char* message) FMT_NOEXCEPT;
+-FMT_END_DETAIL_NAMESPACE
+-
+-FMT_API std::system_error vwindows_error(int error_code, string_view format_str,
+-                                         format_args args);
+-
+-/**
+- \rst
+- Constructs a :class:`std::system_error` object with the description
+- of the form
+-
+- .. parsed-literal::
+-   *<message>*: *<system-message>*
+-
+- where *<message>* is the formatted message and *<system-message>* is the
+- system message corresponding to the error code.
+- *error_code* is a Windows error code as given by ``GetLastError``.
+- If *error_code* is not a valid error code such as -1, the system message
+- will look like "error -1".
+-
+- **Example**::
+-
+-   // This throws a system_error with the description
+-   //   cannot open file 'madeup': The system cannot find the file specified.
+-   // or similar (system message may vary).
+-   const char *filename = "madeup";
+-   LPOFSTRUCT of = LPOFSTRUCT();
+-   HFILE file = OpenFile(filename, &of, OF_READ);
+-   if (file == HFILE_ERROR) {
+-     throw fmt::windows_error(GetLastError(),
+-                              "cannot open file '{}'", filename);
+-   }
+- \endrst
+-*/
+-template <typename... Args>
+-std::system_error windows_error(int error_code, string_view message,
+-                                const Args&... args) {
+-  return vwindows_error(error_code, message, fmt::make_format_args(args...));
+-}
+-
+-// Reports a Windows error without throwing an exception.
+-// Can be used to report errors from destructors.
+-FMT_API void report_windows_error(int error_code,
+-                                  const char* message) FMT_NOEXCEPT;
+-#else
+-inline const std::error_category& system_category() FMT_NOEXCEPT {
+-  return std::system_category();
+-}
+-#endif  // _WIN32
+-
+-// std::system is not available on some platforms such as iOS (#2248).
+-#ifdef __OSX__
+-template <typename S, typename... Args, typename Char = char_t<S>>
+-void say(const S& format_str, Args&&... args) {
+-  std::system(format("say \"{}\"", format(format_str, args...)).c_str());
+-}
+-#endif
+-
+-// A buffered file.
+-class buffered_file {
+- private:
+-  FILE* file_;
+-
+-  friend class file;
+-
+-  explicit buffered_file(FILE* f) : file_(f) {}
+-
+- public:
+-  buffered_file(const buffered_file&) = delete;
+-  void operator=(const buffered_file&) = delete;
+-
+-  // Constructs a buffered_file object which doesn't represent any file.
+-  buffered_file() FMT_NOEXCEPT : file_(nullptr) {}
+-
+-  // Destroys the object closing the file it represents if any.
+-  FMT_API ~buffered_file() FMT_NOEXCEPT;
+-
+- public:
+-  buffered_file(buffered_file&& other) FMT_NOEXCEPT : file_(other.file_) {
+-    other.file_ = nullptr;
+-  }
+-
+-  buffered_file& operator=(buffered_file&& other) {
+-    close();
+-    file_ = other.file_;
+-    other.file_ = nullptr;
+-    return *this;
+-  }
+-
+-  // Opens a file.
+-  FMT_API buffered_file(cstring_view filename, cstring_view mode);
+-
+-  // Closes the file.
+-  FMT_API void close();
+-
+-  // Returns the pointer to a FILE object representing this file.
+-  FILE* get() const FMT_NOEXCEPT { return file_; }
+-
+-  // We place parentheses around fileno to workaround a bug in some versions
+-  // of MinGW that define fileno as a macro.
+-  FMT_API int(fileno)() const;
+-
+-  void vprint(string_view format_str, format_args args) {
+-    fmt::vprint(file_, format_str, args);
+-  }
+-
+-  template <typename... Args>
+-  inline void print(string_view format_str, const Args&... args) {
+-    vprint(format_str, fmt::make_format_args(args...));
+-  }
+-};
+-
+-#if FMT_USE_FCNTL
+-// A file. Closed file is represented by a file object with descriptor -1.
+-// Methods that are not declared with FMT_NOEXCEPT may throw
+-// fmt::system_error in case of failure. Note that some errors such as
+-// closing the file multiple times will cause a crash on Windows rather
+-// than an exception. You can get standard behavior by overriding the
+-// invalid parameter handler with _set_invalid_parameter_handler.
+-class file {
+- private:
+-  int fd_;  // File descriptor.
+-
+-  // Constructs a file object with a given descriptor.
+-  explicit file(int fd) : fd_(fd) {}
+-
+- public:
+-  // Possible values for the oflag argument to the constructor.
+-  enum {
+-    RDONLY = FMT_POSIX(O_RDONLY),  // Open for reading only.
+-    WRONLY = FMT_POSIX(O_WRONLY),  // Open for writing only.
+-    RDWR = FMT_POSIX(O_RDWR),      // Open for reading and writing.
+-    CREATE = FMT_POSIX(O_CREAT),   // Create if the file doesn't exist.
+-    APPEND = FMT_POSIX(O_APPEND),  // Open in append mode.
+-    TRUNC = FMT_POSIX(O_TRUNC)     // Truncate the content of the file.
+-  };
+-
+-  // Constructs a file object which doesn't represent any file.
+-  file() FMT_NOEXCEPT : fd_(-1) {}
+-
+-  // Opens a file and constructs a file object representing this file.
+-  FMT_API file(cstring_view path, int oflag);
+-
+- public:
+-  file(const file&) = delete;
+-  void operator=(const file&) = delete;
+-
+-  file(file&& other) FMT_NOEXCEPT : fd_(other.fd_) { other.fd_ = -1; }
+-
+-  // Move assignment is not noexcept because close may throw.
+-  file& operator=(file&& other) {
+-    close();
+-    fd_ = other.fd_;
+-    other.fd_ = -1;
+-    return *this;
+-  }
+-
+-  // Destroys the object closing the file it represents if any.
+-  FMT_API ~file() FMT_NOEXCEPT;
+-
+-  // Returns the file descriptor.
+-  int descriptor() const FMT_NOEXCEPT { return fd_; }
+-
+-  // Closes the file.
+-  FMT_API void close();
+-
+-  // Returns the file size. The size has signed type for consistency with
+-  // stat::st_size.
+-  FMT_API long long size() const;
+-
+-  // Attempts to read count bytes from the file into the specified buffer.
+-  FMT_API size_t read(void* buffer, size_t count);
+-
+-  // Attempts to write count bytes from the specified buffer to the file.
+-  FMT_API size_t write(const void* buffer, size_t count);
+-
+-  // Duplicates a file descriptor with the dup function and returns
+-  // the duplicate as a file object.
+-  FMT_API static file dup(int fd);
+-
+-  // Makes fd be the copy of this file descriptor, closing fd first if
+-  // necessary.
+-  FMT_API void dup2(int fd);
+-
+-  // Makes fd be the copy of this file descriptor, closing fd first if
+-  // necessary.
+-  FMT_API void dup2(int fd, std::error_code& ec) FMT_NOEXCEPT;
+-
+-  // Creates a pipe setting up read_end and write_end file objects for reading
+-  // and writing respectively.
+-  FMT_API static void pipe(file& read_end, file& write_end);
+-
+-  // Creates a buffered_file object associated with this file and detaches
+-  // this file object from the file.
+-  FMT_API buffered_file fdopen(const char* mode);
+-};
+-
+-// Returns the memory page size.
+-long getpagesize();
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-struct buffer_size {
+-  buffer_size() = default;
+-  size_t value = 0;
+-  buffer_size operator=(size_t val) const {
+-    auto bs = buffer_size();
+-    bs.value = val;
+-    return bs;
+-  }
+-};
+-
+-struct ostream_params {
+-  int oflag = file::WRONLY | file::CREATE | file::TRUNC;
+-  size_t buffer_size = BUFSIZ > 32768 ? BUFSIZ : 32768;
+-
+-  ostream_params() {}
+-
+-  template <typename... T>
+-  ostream_params(T... params, int new_oflag) : ostream_params(params...) {
+-    oflag = new_oflag;
+-  }
+-
+-  template <typename... T>
+-  ostream_params(T... params, detail::buffer_size bs)
+-      : ostream_params(params...) {
+-    this->buffer_size = bs.value;
+-  }
+-
+-// Intel has a bug that results in failure to deduce a constructor
+-// for empty parameter packs.
+-#  if defined(__INTEL_COMPILER) && __INTEL_COMPILER < 2000
+-  ostream_params(int new_oflag) : oflag(new_oflag) {}
+-  ostream_params(detail::buffer_size bs) : buffer_size(bs.value) {}
+-#  endif
+-};
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-// Added {} below to work around default constructor error known to
+-// occur in Xcode versions 7.2.1 and 8.2.1.
+-constexpr detail::buffer_size buffer_size{};
+-
+-/** A fast output stream which is not thread-safe. */
+-class FMT_API ostream final : private detail::buffer<char> {
+- private:
+-  file file_;
+-
+-  void grow(size_t) override;
+-
+-  ostream(cstring_view path, const detail::ostream_params& params)
+-      : file_(path, params.oflag) {
+-    set(new char[params.buffer_size], params.buffer_size);
+-  }
+-
+- public:
+-  ostream(ostream&& other)
+-      : detail::buffer<char>(other.data(), other.size(), other.capacity()),
+-        file_(std::move(other.file_)) {
+-    other.clear();
+-    other.set(nullptr, 0);
+-  }
+-  ~ostream() {
+-    flush();
+-    delete[] data();
+-  }
+-
+-  void flush() {
+-    if (size() == 0) return;
+-    file_.write(data(), size());
+-    clear();
+-  }
+-
+-  template <typename... T>
+-  friend ostream output_file(cstring_view path, T... params);
+-
+-  void close() {
+-    flush();
+-    file_.close();
+-  }
+-
+-  /**
+-    Formats ``args`` according to specifications in ``fmt`` and writes the
+-    output to the file.
+-   */
+-  template <typename... T> void print(format_string<T...> fmt, T&&... args) {
+-    vformat_to(detail::buffer_appender<char>(*this), fmt,
+-               fmt::make_format_args(args...));
+-  }
+-};
+-
+-/**
+-  \rst
+-  Opens a file for writing. Supported parameters passed in *params*:
+-
+-  * ``<integer>``: Flags passed to `open
+-    <https://pubs.opengroup.org/onlinepubs/007904875/functions/open.html>`_
+-    (``file::WRONLY | file::CREATE`` by default)
+-  * ``buffer_size=<integer>``: Output buffer size
+-
+-  **Example**::
+-
+-    auto out = fmt::output_file("guide.txt");
+-    out.print("Don't {}", "Panic");
+-  \endrst
+- */
+-template <typename... T>
+-inline ostream output_file(cstring_view path, T... params) {
+-  return {path, detail::ostream_params(params...)};
+-}
+-#endif  // FMT_USE_FCNTL
+-
+-#ifdef FMT_LOCALE
+-// A "C" numeric locale.
+-class locale {
+- private:
+-#  ifdef _WIN32
+-  using locale_t = _locale_t;
+-
+-  static void freelocale(locale_t loc) { _free_locale(loc); }
+-
+-  static double strtod_l(const char* nptr, char** endptr, _locale_t loc) {
+-    return _strtod_l(nptr, endptr, loc);
+-  }
+-#  endif
+-
+-  locale_t locale_;
+-
+- public:
+-  using type = locale_t;
+-  locale(const locale&) = delete;
+-  void operator=(const locale&) = delete;
+-
+-  locale() {
+-#  ifndef _WIN32
+-    locale_ = FMT_SYSTEM(newlocale(LC_NUMERIC_MASK, "C", nullptr));
+-#  else
+-    locale_ = _create_locale(LC_NUMERIC, "C");
+-#  endif
+-    if (!locale_) FMT_THROW(system_error(errno, "cannot create locale"));
+-  }
+-  ~locale() { freelocale(locale_); }
+-
+-  type get() const { return locale_; }
+-
+-  // Converts string to floating-point number and advances str past the end
+-  // of the parsed input.
+-  FMT_DEPRECATED double strtod(const char*& str) const {
+-    char* end = nullptr;
+-    double result = strtod_l(str, &end, locale_);
+-    str = end;
+-    return result;
+-  }
+-};
+-using Locale FMT_DEPRECATED_ALIAS = locale;
+-#endif  // FMT_LOCALE
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_OS_H_
+diff --git a/include/dpp/fmt/ostream.h b/include/dpp/fmt/ostream.h
+deleted file mode 100644
+index 3d716ec..0000000
+--- a/include/dpp/fmt/ostream.h
++++ /dev/null
+@@ -1,135 +0,0 @@
+-// Formatting library for C++ - std::ostream support
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_OSTREAM_H_
+-#define FMT_OSTREAM_H_
+-
+-#include <ostream>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-
+-template <typename OutputIt, typename Char> class basic_printf_context;
+-
+-namespace detail {
+-
+-// Checks if T has a user-defined operator<<.
+-template <typename T, typename Char, typename Enable = void>
+-class is_streamable {
+- private:
+-  template <typename U>
+-  static auto test(int)
+-      -> bool_constant<sizeof(std::declval<std::basic_ostream<Char>&>()
+-                              << std::declval<U>()) != 0>;
+-
+-  template <typename> static auto test(...) -> std::false_type;
+-
+-  using result = decltype(test<T>(0));
+-
+- public:
+-  is_streamable() = default;
+-
+-  static const bool value = result::value;
+-};
+-
+-// Formatting of built-in types and arrays is intentionally disabled because
+-// it's handled by standard (non-ostream) formatters.
+-template <typename T, typename Char>
+-struct is_streamable<
+-    T, Char,
+-    enable_if_t<
+-        std::is_arithmetic<T>::value || std::is_array<T>::value ||
+-        std::is_pointer<T>::value || std::is_same<T, char8_type>::value ||
+-        std::is_same<T, std::basic_string<Char>>::value ||
+-        std::is_same<T, std_string_view<Char>>::value ||
+-        (std::is_convertible<T, int>::value && !std::is_enum<T>::value)>>
+-    : std::false_type {};
+-
+-// Write the content of buf to os.
+-// It is a separate function rather than a part of vprint to simplify testing.
+-template <typename Char>
+-void write_buffer(std::basic_ostream<Char>& os, buffer<Char>& buf) {
+-  const Char* buf_data = buf.data();
+-  using unsigned_streamsize = std::make_unsigned<std::streamsize>::type;
+-  unsigned_streamsize size = buf.size();
+-  unsigned_streamsize max_size = to_unsigned(max_value<std::streamsize>());
+-  do {
+-    unsigned_streamsize n = size <= max_size ? size : max_size;
+-    os.write(buf_data, static_cast<std::streamsize>(n));
+-    buf_data += n;
+-    size -= n;
+-  } while (size != 0);
+-}
+-
+-template <typename Char, typename T>
+-void format_value(buffer<Char>& buf, const T& value,
+-                  locale_ref loc = locale_ref()) {
+-  auto&& format_buf = formatbuf<std::basic_streambuf<Char>>(buf);
+-  auto&& output = std::basic_ostream<Char>(&format_buf);
+-#if !defined(FMT_STATIC_THOUSANDS_SEPARATOR)
+-  if (loc) output.imbue(loc.get<std::locale>());
+-#endif
+-  output << value;
+-  output.exceptions(std::ios_base::failbit | std::ios_base::badbit);
+-  buf.try_resize(buf.size());
+-}
+-
+-// Formats an object of type T that has an overloaded ostream operator<<.
+-template <typename T, typename Char>
+-struct fallback_formatter<T, Char, enable_if_t<is_streamable<T, Char>::value>>
+-    : private formatter<basic_string_view<Char>, Char> {
+-  using formatter<basic_string_view<Char>, Char>::parse;
+-
+-  template <typename OutputIt>
+-  auto format(const T& value, basic_format_context<OutputIt, Char>& ctx)
+-      -> OutputIt {
+-    auto buffer = basic_memory_buffer<Char>();
+-    format_value(buffer, value, ctx.locale());
+-    return formatter<basic_string_view<Char>, Char>::format(
+-        {buffer.data(), buffer.size()}, ctx);
+-  }
+-
+-  // DEPRECATED!
+-  template <typename OutputIt>
+-  auto format(const T& value, basic_printf_context<OutputIt, Char>& ctx)
+-      -> OutputIt {
+-    auto buffer = basic_memory_buffer<Char>();
+-    format_value(buffer, value, ctx.locale());
+-    return std::copy(buffer.begin(), buffer.end(), ctx.out());
+-  }
+-};
+-}  // namespace detail
+-
+-FMT_MODULE_EXPORT
+-template <typename Char>
+-void vprint(std::basic_ostream<Char>& os, basic_string_view<Char> format_str,
+-            basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  auto buffer = basic_memory_buffer<Char>();
+-  detail::vformat_to(buffer, format_str, args);
+-  detail::write_buffer(os, buffer);
+-}
+-
+-/**
+-  \rst
+-  Prints formatted data to the stream *os*.
+-
+-  **Example**::
+-
+-    fmt::print(cerr, "Don't {}!", "panic");
+-  \endrst
+- */
+-FMT_MODULE_EXPORT
+-template <typename S, typename... Args,
+-          typename Char = enable_if_t<detail::is_string<S>::value, char_t<S>>>
+-void print(std::basic_ostream<Char>& os, const S& format_str, Args&&... args) {
+-  vprint(os, to_string_view(format_str),
+-         fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_OSTREAM_H_
+diff --git a/include/dpp/fmt/printf.h b/include/dpp/fmt/printf.h
+deleted file mode 100644
+index 19d550f..0000000
+--- a/include/dpp/fmt/printf.h
++++ /dev/null
+@@ -1,657 +0,0 @@
+-// Formatting library for C++ - legacy printf implementation
+-//
+-// Copyright (c) 2012 - 2016, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_PRINTF_H_
+-#define FMT_PRINTF_H_
+-
+-#include <algorithm>  // std::max
+-#include <limits>     // std::numeric_limits
+-#include <ostream>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-FMT_MODULE_EXPORT_BEGIN
+-
+-template <typename T> struct printf_formatter { printf_formatter() = delete; };
+-
+-template <typename Char>
+-class basic_printf_parse_context : public basic_format_parse_context<Char> {
+-  using basic_format_parse_context<Char>::basic_format_parse_context;
+-};
+-
+-template <typename OutputIt, typename Char> class basic_printf_context {
+- private:
+-  OutputIt out_;
+-  basic_format_args<basic_printf_context> args_;
+-
+- public:
+-  using char_type = Char;
+-  using format_arg = basic_format_arg<basic_printf_context>;
+-  using parse_context_type = basic_printf_parse_context<Char>;
+-  template <typename T> using formatter_type = printf_formatter<T>;
+-
+-  /**
+-    \rst
+-    Constructs a ``printf_context`` object. References to the arguments are
+-    stored in the context object so make sure they have appropriate lifetimes.
+-    \endrst
+-   */
+-  basic_printf_context(OutputIt out,
+-                       basic_format_args<basic_printf_context> args)
+-      : out_(out), args_(args) {}
+-
+-  OutputIt out() { return out_; }
+-  void advance_to(OutputIt it) { out_ = it; }
+-
+-  detail::locale_ref locale() { return {}; }
+-
+-  format_arg arg(int id) const { return args_.get(id); }
+-
+-  FMT_CONSTEXPR void on_error(const char* message) {
+-    detail::error_handler().on_error(message);
+-  }
+-};
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// Checks if a value fits in int - used to avoid warnings about comparing
+-// signed and unsigned integers.
+-template <bool IsSigned> struct int_checker {
+-  template <typename T> static bool fits_in_int(T value) {
+-    unsigned max = max_value<int>();
+-    return value <= max;
+-  }
+-  static bool fits_in_int(bool) { return true; }
+-};
+-
+-template <> struct int_checker<true> {
+-  template <typename T> static bool fits_in_int(T value) {
+-    return value >= (std::numeric_limits<int>::min)() &&
+-           value <= max_value<int>();
+-  }
+-  static bool fits_in_int(int) { return true; }
+-};
+-
+-class printf_precision_handler {
+- public:
+-  template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-  int operator()(T value) {
+-    if (!int_checker<std::numeric_limits<T>::is_signed>::fits_in_int(value))
+-      FMT_THROW(format_error("number is too big"));
+-    return (std::max)(static_cast<int>(value), 0);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-  int operator()(T) {
+-    FMT_THROW(format_error("precision is not integer"));
+-    return 0;
+-  }
+-};
+-
+-// An argument visitor that returns true iff arg is a zero integer.
+-class is_zero_int {
+- public:
+-  template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-  bool operator()(T value) {
+-    return value == 0;
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-  bool operator()(T) {
+-    return false;
+-  }
+-};
+-
+-template <typename T> struct make_unsigned_or_bool : std::make_unsigned<T> {};
+-
+-template <> struct make_unsigned_or_bool<bool> { using type = bool; };
+-
+-template <typename T, typename Context> class arg_converter {
+- private:
+-  using char_type = typename Context::char_type;
+-
+-  basic_format_arg<Context>& arg_;
+-  char_type type_;
+-
+- public:
+-  arg_converter(basic_format_arg<Context>& arg, char_type type)
+-      : arg_(arg), type_(type) {}
+-
+-  void operator()(bool value) {
+-    if (type_ != 's') operator()<bool>(value);
+-  }
+-
+-  template <typename U, FMT_ENABLE_IF(std::is_integral<U>::value)>
+-  void operator()(U value) {
+-    bool is_signed = type_ == 'd' || type_ == 'i';
+-    using target_type = conditional_t<std::is_same<T, void>::value, U, T>;
+-    if (const_check(sizeof(target_type) <= sizeof(int))) {
+-      // Extra casts are used to silence warnings.
+-      if (is_signed) {
+-        arg_ = detail::make_arg<Context>(
+-            static_cast<int>(static_cast<target_type>(value)));
+-      } else {
+-        using unsigned_type = typename make_unsigned_or_bool<target_type>::type;
+-        arg_ = detail::make_arg<Context>(
+-            static_cast<unsigned>(static_cast<unsigned_type>(value)));
+-      }
+-    } else {
+-      if (is_signed) {
+-        // glibc's printf doesn't sign extend arguments of smaller types:
+-        //   std::printf("%lld", -42);  // prints "4294967254"
+-        // but we don't have to do the same because it's a UB.
+-        arg_ = detail::make_arg<Context>(static_cast<long long>(value));
+-      } else {
+-        arg_ = detail::make_arg<Context>(
+-            static_cast<typename make_unsigned_or_bool<U>::type>(value));
+-      }
+-    }
+-  }
+-
+-  template <typename U, FMT_ENABLE_IF(!std::is_integral<U>::value)>
+-  void operator()(U) {}  // No conversion needed for non-integral types.
+-};
+-
+-// Converts an integer argument to T for printf, if T is an integral type.
+-// If T is void, the argument is converted to corresponding signed or unsigned
+-// type depending on the type specifier: 'd' and 'i' - signed, other -
+-// unsigned).
+-template <typename T, typename Context, typename Char>
+-void convert_arg(basic_format_arg<Context>& arg, Char type) {
+-  visit_format_arg(arg_converter<T, Context>(arg, type), arg);
+-}
+-
+-// Converts an integer argument to char for printf.
+-template <typename Context> class char_converter {
+- private:
+-  basic_format_arg<Context>& arg_;
+-
+- public:
+-  explicit char_converter(basic_format_arg<Context>& arg) : arg_(arg) {}
+-
+-  template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-  void operator()(T value) {
+-    arg_ = detail::make_arg<Context>(
+-        static_cast<typename Context::char_type>(value));
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-  void operator()(T) {}  // No conversion needed for non-integral types.
+-};
+-
+-// An argument visitor that return a pointer to a C string if argument is a
+-// string or null otherwise.
+-template <typename Char> struct get_cstring {
+-  template <typename T> const Char* operator()(T) { return nullptr; }
+-  const Char* operator()(const Char* s) { return s; }
+-};
+-
+-// Checks if an argument is a valid printf width specifier and sets
+-// left alignment if it is negative.
+-template <typename Char> class printf_width_handler {
+- private:
+-  using format_specs = basic_format_specs<Char>;
+-
+-  format_specs& specs_;
+-
+- public:
+-  explicit printf_width_handler(format_specs& specs) : specs_(specs) {}
+-
+-  template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-  unsigned operator()(T value) {
+-    auto width = static_cast<uint32_or_64_or_128_t<T>>(value);
+-    if (detail::is_negative(value)) {
+-      specs_.align = align::left;
+-      width = 0 - width;
+-    }
+-    unsigned int_max = max_value<int>();
+-    if (width > int_max) FMT_THROW(format_error("number is too big"));
+-    return static_cast<unsigned>(width);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-  unsigned operator()(T) {
+-    FMT_THROW(format_error("width is not integer"));
+-    return 0;
+-  }
+-};
+-
+-// The ``printf`` argument formatter.
+-template <typename OutputIt, typename Char>
+-class printf_arg_formatter : public arg_formatter<Char> {
+- private:
+-  using base = arg_formatter<Char>;
+-  using context_type = basic_printf_context<OutputIt, Char>;
+-  using format_specs = basic_format_specs<Char>;
+-
+-  context_type& context_;
+-
+-  OutputIt write_null_pointer(bool is_string = false) {
+-    auto s = this->specs;
+-    s.type = presentation_type::none;
+-    return write_bytes(this->out, is_string ? "(null)" : "(nil)", s);
+-  }
+-
+- public:
+-  printf_arg_formatter(OutputIt iter, format_specs& s, context_type& ctx)
+-      : base{iter, s, locale_ref()}, context_(ctx) {}
+-
+-  OutputIt operator()(monostate value) { return base::operator()(value); }
+-
+-  template <typename T, FMT_ENABLE_IF(detail::is_integral<T>::value)>
+-  OutputIt operator()(T value) {
+-    // MSVC2013 fails to compile separate overloads for bool and Char so use
+-    // std::is_same instead.
+-    if (std::is_same<T, Char>::value) {
+-      format_specs fmt_specs = this->specs;
+-      if (fmt_specs.type != presentation_type::none &&
+-          fmt_specs.type != presentation_type::chr) {
+-        return (*this)(static_cast<int>(value));
+-      }
+-      fmt_specs.sign = sign::none;
+-      fmt_specs.alt = false;
+-      fmt_specs.fill[0] = ' ';  // Ignore '0' flag for char types.
+-      // align::numeric needs to be overwritten here since the '0' flag is
+-      // ignored for non-numeric types
+-      if (fmt_specs.align == align::none || fmt_specs.align == align::numeric)
+-        fmt_specs.align = align::right;
+-      return write<Char>(this->out, static_cast<Char>(value), fmt_specs);
+-    }
+-    return base::operator()(value);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-  OutputIt operator()(T value) {
+-    return base::operator()(value);
+-  }
+-
+-  /** Formats a null-terminated C string. */
+-  OutputIt operator()(const char* value) {
+-    if (value) return base::operator()(value);
+-    return write_null_pointer(this->specs.type != presentation_type::pointer);
+-  }
+-
+-  /** Formats a null-terminated wide C string. */
+-  OutputIt operator()(const wchar_t* value) {
+-    if (value) return base::operator()(value);
+-    return write_null_pointer(this->specs.type != presentation_type::pointer);
+-  }
+-
+-  OutputIt operator()(basic_string_view<Char> value) {
+-    return base::operator()(value);
+-  }
+-
+-  /** Formats a pointer. */
+-  OutputIt operator()(const void* value) {
+-    return value ? base::operator()(value) : write_null_pointer();
+-  }
+-
+-  /** Formats an argument of a custom (user-defined) type. */
+-  OutputIt operator()(typename basic_format_arg<context_type>::handle handle) {
+-    auto parse_ctx =
+-        basic_printf_parse_context<Char>(basic_string_view<Char>());
+-    handle.format(parse_ctx, context_);
+-    return this->out;
+-  }
+-};
+-
+-template <typename Char>
+-void parse_flags(basic_format_specs<Char>& specs, const Char*& it,
+-                 const Char* end) {
+-  for (; it != end; ++it) {
+-    switch (*it) {
+-    case '-':
+-      specs.align = align::left;
+-      break;
+-    case '+':
+-      specs.sign = sign::plus;
+-      break;
+-    case '0':
+-      specs.fill[0] = '0';
+-      break;
+-    case ' ':
+-      if (specs.sign != sign::plus) {
+-        specs.sign = sign::space;
+-      }
+-      break;
+-    case '#':
+-      specs.alt = true;
+-      break;
+-    default:
+-      return;
+-    }
+-  }
+-}
+-
+-template <typename Char, typename GetArg>
+-int parse_header(const Char*& it, const Char* end,
+-                 basic_format_specs<Char>& specs, GetArg get_arg) {
+-  int arg_index = -1;
+-  Char c = *it;
+-  if (c >= '0' && c <= '9') {
+-    // Parse an argument index (if followed by '$') or a width possibly
+-    // preceded with '0' flag(s).
+-    int value = parse_nonnegative_int(it, end, -1);
+-    if (it != end && *it == '$') {  // value is an argument index
+-      ++it;
+-      arg_index = value != -1 ? value : max_value<int>();
+-    } else {
+-      if (c == '0') specs.fill[0] = '0';
+-      if (value != 0) {
+-        // Nonzero value means that we parsed width and don't need to
+-        // parse it or flags again, so return now.
+-        if (value == -1) FMT_THROW(format_error("number is too big"));
+-        specs.width = value;
+-        return arg_index;
+-      }
+-    }
+-  }
+-  parse_flags(specs, it, end);
+-  // Parse width.
+-  if (it != end) {
+-    if (*it >= '0' && *it <= '9') {
+-      specs.width = parse_nonnegative_int(it, end, -1);
+-      if (specs.width == -1) FMT_THROW(format_error("number is too big"));
+-    } else if (*it == '*') {
+-      ++it;
+-      specs.width = static_cast<int>(visit_format_arg(
+-          detail::printf_width_handler<Char>(specs), get_arg(-1)));
+-    }
+-  }
+-  return arg_index;
+-}
+-
+-template <typename Char, typename Context>
+-void vprintf(buffer<Char>& buf, basic_string_view<Char> format,
+-             basic_format_args<Context> args) {
+-  using OutputIt = buffer_appender<Char>;
+-  auto out = OutputIt(buf);
+-  auto context = basic_printf_context<OutputIt, Char>(out, args);
+-  auto parse_ctx = basic_printf_parse_context<Char>(format);
+-
+-  // Returns the argument with specified index or, if arg_index is -1, the next
+-  // argument.
+-  auto get_arg = [&](int arg_index) {
+-    if (arg_index < 0)
+-      arg_index = parse_ctx.next_arg_id();
+-    else
+-      parse_ctx.check_arg_id(--arg_index);
+-    return detail::get_arg(context, arg_index);
+-  };
+-
+-  const Char* start = parse_ctx.begin();
+-  const Char* end = parse_ctx.end();
+-  auto it = start;
+-  while (it != end) {
+-    if (!detail::find<false, Char>(it, end, '%', it)) {
+-      it = end;  // detail::find leaves it == nullptr if it doesn't find '%'
+-      break;
+-    }
+-    Char c = *it++;
+-    if (it != end && *it == c) {
+-      out = detail::write(
+-          out, basic_string_view<Char>(start, detail::to_unsigned(it - start)));
+-      start = ++it;
+-      continue;
+-    }
+-    out = detail::write(out, basic_string_view<Char>(
+-                                 start, detail::to_unsigned(it - 1 - start)));
+-
+-    basic_format_specs<Char> specs;
+-    specs.align = align::right;
+-
+-    // Parse argument index, flags and width.
+-    int arg_index = parse_header(it, end, specs, get_arg);
+-    if (arg_index == 0) parse_ctx.on_error("argument not found");
+-
+-    // Parse precision.
+-    if (it != end && *it == '.') {
+-      ++it;
+-      c = it != end ? *it : 0;
+-      if ('0' <= c && c <= '9') {
+-        specs.precision = parse_nonnegative_int(it, end, 0);
+-      } else if (c == '*') {
+-        ++it;
+-        specs.precision = static_cast<int>(
+-            visit_format_arg(detail::printf_precision_handler(), get_arg(-1)));
+-      } else {
+-        specs.precision = 0;
+-      }
+-    }
+-
+-    auto arg = get_arg(arg_index);
+-    // For d, i, o, u, x, and X conversion specifiers, if a precision is
+-    // specified, the '0' flag is ignored
+-    if (specs.precision >= 0 && arg.is_integral())
+-      specs.fill[0] =
+-          ' ';  // Ignore '0' flag for non-numeric types or if '-' present.
+-    if (specs.precision >= 0 && arg.type() == detail::type::cstring_type) {
+-      auto str = visit_format_arg(detail::get_cstring<Char>(), arg);
+-      auto str_end = str + specs.precision;
+-      auto nul = std::find(str, str_end, Char());
+-      arg = detail::make_arg<basic_printf_context<OutputIt, Char>>(
+-          basic_string_view<Char>(
+-              str, detail::to_unsigned(nul != str_end ? nul - str
+-                                                      : specs.precision)));
+-    }
+-    if (specs.alt && visit_format_arg(detail::is_zero_int(), arg))
+-      specs.alt = false;
+-    if (specs.fill[0] == '0') {
+-      if (arg.is_arithmetic() && specs.align != align::left)
+-        specs.align = align::numeric;
+-      else
+-        specs.fill[0] = ' ';  // Ignore '0' flag for non-numeric types or if '-'
+-                              // flag is also present.
+-    }
+-
+-    // Parse length and convert the argument to the required type.
+-    c = it != end ? *it++ : 0;
+-    Char t = it != end ? *it : 0;
+-    using detail::convert_arg;
+-    switch (c) {
+-    case 'h':
+-      if (t == 'h') {
+-        ++it;
+-        t = it != end ? *it : 0;
+-        convert_arg<signed char>(arg, t);
+-      } else {
+-        convert_arg<short>(arg, t);
+-      }
+-      break;
+-    case 'l':
+-      if (t == 'l') {
+-        ++it;
+-        t = it != end ? *it : 0;
+-        convert_arg<long long>(arg, t);
+-      } else {
+-        convert_arg<long>(arg, t);
+-      }
+-      break;
+-    case 'j':
+-      convert_arg<intmax_t>(arg, t);
+-      break;
+-    case 'z':
+-      convert_arg<size_t>(arg, t);
+-      break;
+-    case 't':
+-      convert_arg<std::ptrdiff_t>(arg, t);
+-      break;
+-    case 'L':
+-      // printf produces garbage when 'L' is omitted for long double, no
+-      // need to do the same.
+-      break;
+-    default:
+-      --it;
+-      convert_arg<void>(arg, c);
+-    }
+-
+-    // Parse type.
+-    if (it == end) FMT_THROW(format_error("invalid format string"));
+-    char type = static_cast<char>(*it++);
+-    if (arg.is_integral()) {
+-      // Normalize type.
+-      switch (type) {
+-      case 'i':
+-      case 'u':
+-        type = 'd';
+-        break;
+-      case 'c':
+-        visit_format_arg(
+-            detail::char_converter<basic_printf_context<OutputIt, Char>>(arg),
+-            arg);
+-        break;
+-      }
+-    }
+-    specs.type = parse_presentation_type(type);
+-    if (specs.type == presentation_type::none)
+-      parse_ctx.on_error("invalid type specifier");
+-
+-    start = it;
+-
+-    // Format argument.
+-    out = visit_format_arg(
+-        detail::printf_arg_formatter<OutputIt, Char>(out, specs, context), arg);
+-  }
+-  detail::write(out, basic_string_view<Char>(start, to_unsigned(it - start)));
+-}
+-FMT_END_DETAIL_NAMESPACE
+-
+-template <typename Char>
+-using basic_printf_context_t =
+-    basic_printf_context<detail::buffer_appender<Char>, Char>;
+-
+-using printf_context = basic_printf_context_t<char>;
+-using wprintf_context = basic_printf_context_t<wchar_t>;
+-
+-using printf_args = basic_format_args<printf_context>;
+-using wprintf_args = basic_format_args<wprintf_context>;
+-
+-/**
+-  \rst
+-  Constructs an `~fmt::format_arg_store` object that contains references to
+-  arguments and can be implicitly converted to `~fmt::printf_args`.
+-  \endrst
+- */
+-template <typename... T>
+-inline auto make_printf_args(const T&... args)
+-    -> format_arg_store<printf_context, T...> {
+-  return {args...};
+-}
+-
+-/**
+-  \rst
+-  Constructs an `~fmt::format_arg_store` object that contains references to
+-  arguments and can be implicitly converted to `~fmt::wprintf_args`.
+-  \endrst
+- */
+-template <typename... T>
+-inline auto make_wprintf_args(const T&... args)
+-    -> format_arg_store<wprintf_context, T...> {
+-  return {args...};
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-inline auto vsprintf(
+-    const S& fmt,
+-    basic_format_args<basic_printf_context_t<type_identity_t<Char>>> args)
+-    -> std::basic_string<Char> {
+-  basic_memory_buffer<Char> buffer;
+-  vprintf(buffer, to_string_view(fmt), args);
+-  return to_string(buffer);
+-}
+-
+-/**
+-  \rst
+-  Formats arguments and returns the result as a string.
+-
+-  **Example**::
+-
+-    std::string message = fmt::sprintf("The answer is %d", 42);
+-  \endrst
+-*/
+-template <typename S, typename... T,
+-          typename Char = enable_if_t<detail::is_string<S>::value, char_t<S>>>
+-inline auto sprintf(const S& fmt, const T&... args) -> std::basic_string<Char> {
+-  using context = basic_printf_context_t<Char>;
+-  return vsprintf(to_string_view(fmt), fmt::make_format_args<context>(args...));
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-inline auto vfprintf(
+-    std::FILE* f, const S& fmt,
+-    basic_format_args<basic_printf_context_t<type_identity_t<Char>>> args)
+-    -> int {
+-  basic_memory_buffer<Char> buffer;
+-  vprintf(buffer, to_string_view(fmt), args);
+-  size_t size = buffer.size();
+-  return std::fwrite(buffer.data(), sizeof(Char), size, f) < size
+-             ? -1
+-             : static_cast<int>(size);
+-}
+-
+-/**
+-  \rst
+-  Prints formatted data to the file *f*.
+-
+-  **Example**::
+-
+-    fmt::fprintf(stderr, "Don't %s!", "panic");
+-  \endrst
+- */
+-template <typename S, typename... T, typename Char = char_t<S>>
+-inline auto fprintf(std::FILE* f, const S& fmt, const T&... args) -> int {
+-  using context = basic_printf_context_t<Char>;
+-  return vfprintf(f, to_string_view(fmt),
+-                  fmt::make_format_args<context>(args...));
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-inline auto vprintf(
+-    const S& fmt,
+-    basic_format_args<basic_printf_context_t<type_identity_t<Char>>> args)
+-    -> int {
+-  return vfprintf(stdout, to_string_view(fmt), args);
+-}
+-
+-/**
+-  \rst
+-  Prints formatted data to ``stdout``.
+-
+-  **Example**::
+-
+-    fmt::printf("Elapsed time: %.2f seconds", 1.23);
+-  \endrst
+- */
+-template <typename S, typename... T, FMT_ENABLE_IF(detail::is_string<S>::value)>
+-inline auto printf(const S& fmt, const T&... args) -> int {
+-  return vprintf(
+-      to_string_view(fmt),
+-      fmt::make_format_args<basic_printf_context_t<char_t<S>>>(args...));
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-FMT_DEPRECATED auto vfprintf(
+-    std::basic_ostream<Char>& os, const S& fmt,
+-    basic_format_args<basic_printf_context_t<type_identity_t<Char>>> args)
+-    -> int {
+-  basic_memory_buffer<Char> buffer;
+-  vprintf(buffer, to_string_view(fmt), args);
+-  os.write(buffer.data(), static_cast<std::streamsize>(buffer.size()));
+-  return static_cast<int>(buffer.size());
+-}
+-template <typename S, typename... T, typename Char = char_t<S>>
+-FMT_DEPRECATED auto fprintf(std::basic_ostream<Char>& os, const S& fmt,
+-                            const T&... args) -> int {
+-  return vfprintf(os, to_string_view(fmt),
+-                  fmt::make_format_args<basic_printf_context_t<Char>>(args...));
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_PRINTF_H_
+diff --git a/include/dpp/fmt/ranges.h b/include/dpp/fmt/ranges.h
+deleted file mode 100644
+index eb9fb8a..0000000
+--- a/include/dpp/fmt/ranges.h
++++ /dev/null
+@@ -1,793 +0,0 @@
+-// Formatting library for C++ - experimental range support
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-//
+-// Copyright (c) 2018 - present, Remotion (Igor Schulz)
+-// All Rights Reserved
+-// {fmt} support for ranges, containers and types tuple interface.
+-
+-#ifndef FMT_RANGES_H_
+-#define FMT_RANGES_H_
+-
+-#include <initializer_list>
+-#include <tuple>
+-#include <type_traits>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-
+-namespace detail {
+-
+-template <typename RangeT, typename OutputIterator>
+-OutputIterator copy(const RangeT& range, OutputIterator out) {
+-  for (auto it = range.begin(), end = range.end(); it != end; ++it)
+-    *out++ = *it;
+-  return out;
+-}
+-
+-template <typename OutputIterator>
+-OutputIterator copy(const char* str, OutputIterator out) {
+-  while (*str) *out++ = *str++;
+-  return out;
+-}
+-
+-template <typename OutputIterator>
+-OutputIterator copy(char ch, OutputIterator out) {
+-  *out++ = ch;
+-  return out;
+-}
+-
+-template <typename OutputIterator>
+-OutputIterator copy(wchar_t ch, OutputIterator out) {
+-  *out++ = ch;
+-  return out;
+-}
+-
+-// Returns true if T has a std::string-like interface, like std::string_view.
+-template <typename T> class is_std_string_like {
+-  template <typename U>
+-  static auto check(U* p)
+-      -> decltype((void)p->find('a'), p->length(), (void)p->data(), int());
+-  template <typename> static void check(...);
+-
+- public:
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      is_string<T>::value ||
+-      std::is_convertible<T, std_string_view<char>>::value ||
+-      !std::is_void<decltype(check<T>(nullptr))>::value;
+-};
+-
+-template <typename Char>
+-struct is_std_string_like<fmt::basic_string_view<Char>> : std::true_type {};
+-
+-template <typename T> class is_map {
+-  template <typename U> static auto check(U*) -> typename U::mapped_type;
+-  template <typename> static void check(...);
+-
+- public:
+-#ifdef FMT_FORMAT_MAP_AS_LIST
+-  static FMT_CONSTEXPR_DECL const bool value = false;
+-#else
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      !std::is_void<decltype(check<T>(nullptr))>::value;
+-#endif
+-};
+-
+-template <typename T> class is_set {
+-  template <typename U> static auto check(U*) -> typename U::key_type;
+-  template <typename> static void check(...);
+-
+- public:
+-#ifdef FMT_FORMAT_SET_AS_LIST
+-  static FMT_CONSTEXPR_DECL const bool value = false;
+-#else
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      !std::is_void<decltype(check<T>(nullptr))>::value && !is_map<T>::value;
+-#endif
+-};
+-
+-template <typename... Ts> struct conditional_helper {};
+-
+-template <typename T, typename _ = void> struct is_range_ : std::false_type {};
+-
+-#if !FMT_MSC_VER || FMT_MSC_VER > 1800
+-
+-#  define FMT_DECLTYPE_RETURN(val)  \
+-    ->decltype(val) { return val; } \
+-    static_assert(                  \
+-        true, "")  // This makes it so that a semicolon is required after the
+-                   // macro, which helps clang-format handle the formatting.
+-
+-// C array overload
+-template <typename T, std::size_t N>
+-auto range_begin(const T (&arr)[N]) -> const T* {
+-  return arr;
+-}
+-template <typename T, std::size_t N>
+-auto range_end(const T (&arr)[N]) -> const T* {
+-  return arr + N;
+-}
+-
+-template <typename T, typename Enable = void>
+-struct has_member_fn_begin_end_t : std::false_type {};
+-
+-template <typename T>
+-struct has_member_fn_begin_end_t<T, void_t<decltype(std::declval<T>().begin()),
+-                                           decltype(std::declval<T>().end())>>
+-    : std::true_type {};
+-
+-// Member function overload
+-template <typename T>
+-auto range_begin(T&& rng) FMT_DECLTYPE_RETURN(static_cast<T&&>(rng).begin());
+-template <typename T>
+-auto range_end(T&& rng) FMT_DECLTYPE_RETURN(static_cast<T&&>(rng).end());
+-
+-// ADL overload. Only participates in overload resolution if member functions
+-// are not found.
+-template <typename T>
+-auto range_begin(T&& rng)
+-    -> enable_if_t<!has_member_fn_begin_end_t<T&&>::value,
+-                   decltype(begin(static_cast<T&&>(rng)))> {
+-  return begin(static_cast<T&&>(rng));
+-}
+-template <typename T>
+-auto range_end(T&& rng) -> enable_if_t<!has_member_fn_begin_end_t<T&&>::value,
+-                                       decltype(end(static_cast<T&&>(rng)))> {
+-  return end(static_cast<T&&>(rng));
+-}
+-
+-template <typename T, typename Enable = void>
+-struct has_const_begin_end : std::false_type {};
+-template <typename T, typename Enable = void>
+-struct has_mutable_begin_end : std::false_type {};
+-
+-template <typename T>
+-struct has_const_begin_end<
+-    T,
+-    void_t<
+-        decltype(detail::range_begin(std::declval<const remove_cvref_t<T>&>())),
+-        decltype(detail::range_end(std::declval<const remove_cvref_t<T>&>()))>>
+-    : std::true_type {};
+-
+-template <typename T>
+-struct has_mutable_begin_end<
+-    T, void_t<decltype(detail::range_begin(std::declval<T>())),
+-              decltype(detail::range_end(std::declval<T>())),
+-              enable_if_t<std::is_copy_constructible<T>::value>>>
+-    : std::true_type {};
+-
+-template <typename T>
+-struct is_range_<T, void>
+-    : std::integral_constant<bool, (has_const_begin_end<T>::value ||
+-                                    has_mutable_begin_end<T>::value)> {};
+-#  undef FMT_DECLTYPE_RETURN
+-#endif
+-
+-// tuple_size and tuple_element check.
+-template <typename T> class is_tuple_like_ {
+-  template <typename U>
+-  static auto check(U* p) -> decltype(std::tuple_size<U>::value, int());
+-  template <typename> static void check(...);
+-
+- public:
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      !std::is_void<decltype(check<T>(nullptr))>::value;
+-};
+-
+-// Check for integer_sequence
+-#if defined(__cpp_lib_integer_sequence) || FMT_MSC_VER >= 1900
+-template <typename T, T... N>
+-using integer_sequence = std::integer_sequence<T, N...>;
+-template <size_t... N> using index_sequence = std::index_sequence<N...>;
+-template <size_t N> using make_index_sequence = std::make_index_sequence<N>;
+-#else
+-template <typename T, T... N> struct integer_sequence {
+-  using value_type = T;
+-
+-  static FMT_CONSTEXPR size_t size() { return sizeof...(N); }
+-};
+-
+-template <size_t... N> using index_sequence = integer_sequence<size_t, N...>;
+-
+-template <typename T, size_t N, T... Ns>
+-struct make_integer_sequence : make_integer_sequence<T, N - 1, N - 1, Ns...> {};
+-template <typename T, T... Ns>
+-struct make_integer_sequence<T, 0, Ns...> : integer_sequence<T, Ns...> {};
+-
+-template <size_t N>
+-using make_index_sequence = make_integer_sequence<size_t, N>;
+-#endif
+-
+-template <class Tuple, class F, size_t... Is>
+-void for_each(index_sequence<Is...>, Tuple&& tup, F&& f) FMT_NOEXCEPT {
+-  using std::get;
+-  // using free function get<I>(T) now.
+-  const int _[] = {0, ((void)f(get<Is>(tup)), 0)...};
+-  (void)_;  // blocks warnings
+-}
+-
+-template <class T>
+-FMT_CONSTEXPR make_index_sequence<std::tuple_size<T>::value> get_indexes(
+-    T const&) {
+-  return {};
+-}
+-
+-template <class Tuple, class F> void for_each(Tuple&& tup, F&& f) {
+-  const auto indexes = get_indexes(tup);
+-  for_each(indexes, std::forward<Tuple>(tup), std::forward<F>(f));
+-}
+-
+-template <typename Range>
+-using value_type =
+-    remove_cvref_t<decltype(*detail::range_begin(std::declval<Range>()))>;
+-
+-template <typename OutputIt> OutputIt write_delimiter(OutputIt out) {
+-  *out++ = ',';
+-  *out++ = ' ';
+-  return out;
+-}
+-
+-struct singleton {
+-  unsigned char upper;
+-  unsigned char lower_count;
+-};
+-
+-inline auto is_printable(uint16_t x, const singleton* singletons,
+-                         size_t singletons_size,
+-                         const unsigned char* singleton_lowers,
+-                         const unsigned char* normal, size_t normal_size)
+-    -> bool {
+-  auto upper = x >> 8;
+-  auto lower_start = 0;
+-  for (size_t i = 0; i < singletons_size; ++i) {
+-    auto s = singletons[i];
+-    auto lower_end = lower_start + s.lower_count;
+-    if (upper < s.upper) break;
+-    if (upper == s.upper) {
+-      for (auto j = lower_start; j < lower_end; ++j) {
+-        if (singleton_lowers[j] == (x & 0xff)) return false;
+-      }
+-    }
+-    lower_start = lower_end;
+-  }
+-
+-  auto xsigned = static_cast<int>(x);
+-  auto current = true;
+-  for (size_t i = 0; i < normal_size; ++i) {
+-    auto v = static_cast<int>(normal[i]);
+-    auto len = (v & 0x80) != 0 ? (v & 0x7f) << 8 | normal[++i] : v;
+-    xsigned -= len;
+-    if (xsigned < 0) break;
+-    current = !current;
+-  }
+-  return current;
+-}
+-
+-// Returns true iff the code point cp is printable.
+-// This code is generated by support/printable.py.
+-inline auto is_printable(uint32_t cp) -> bool {
+-  static constexpr singleton singletons0[] = {
+-      {0x00, 1},  {0x03, 5},  {0x05, 6},  {0x06, 3},  {0x07, 6},  {0x08, 8},
+-      {0x09, 17}, {0x0a, 28}, {0x0b, 25}, {0x0c, 20}, {0x0d, 16}, {0x0e, 13},
+-      {0x0f, 4},  {0x10, 3},  {0x12, 18}, {0x13, 9},  {0x16, 1},  {0x17, 5},
+-      {0x18, 2},  {0x19, 3},  {0x1a, 7},  {0x1c, 2},  {0x1d, 1},  {0x1f, 22},
+-      {0x20, 3},  {0x2b, 3},  {0x2c, 2},  {0x2d, 11}, {0x2e, 1},  {0x30, 3},
+-      {0x31, 2},  {0x32, 1},  {0xa7, 2},  {0xa9, 2},  {0xaa, 4},  {0xab, 8},
+-      {0xfa, 2},  {0xfb, 5},  {0xfd, 4},  {0xfe, 3},  {0xff, 9},
+-  };
+-  static constexpr unsigned char singletons0_lower[] = {
+-      0xad, 0x78, 0x79, 0x8b, 0x8d, 0xa2, 0x30, 0x57, 0x58, 0x8b, 0x8c, 0x90,
+-      0x1c, 0x1d, 0xdd, 0x0e, 0x0f, 0x4b, 0x4c, 0xfb, 0xfc, 0x2e, 0x2f, 0x3f,
+-      0x5c, 0x5d, 0x5f, 0xb5, 0xe2, 0x84, 0x8d, 0x8e, 0x91, 0x92, 0xa9, 0xb1,
+-      0xba, 0xbb, 0xc5, 0xc6, 0xc9, 0xca, 0xde, 0xe4, 0xe5, 0xff, 0x00, 0x04,
+-      0x11, 0x12, 0x29, 0x31, 0x34, 0x37, 0x3a, 0x3b, 0x3d, 0x49, 0x4a, 0x5d,
+-      0x84, 0x8e, 0x92, 0xa9, 0xb1, 0xb4, 0xba, 0xbb, 0xc6, 0xca, 0xce, 0xcf,
+-      0xe4, 0xe5, 0x00, 0x04, 0x0d, 0x0e, 0x11, 0x12, 0x29, 0x31, 0x34, 0x3a,
+-      0x3b, 0x45, 0x46, 0x49, 0x4a, 0x5e, 0x64, 0x65, 0x84, 0x91, 0x9b, 0x9d,
+-      0xc9, 0xce, 0xcf, 0x0d, 0x11, 0x29, 0x45, 0x49, 0x57, 0x64, 0x65, 0x8d,
+-      0x91, 0xa9, 0xb4, 0xba, 0xbb, 0xc5, 0xc9, 0xdf, 0xe4, 0xe5, 0xf0, 0x0d,
+-      0x11, 0x45, 0x49, 0x64, 0x65, 0x80, 0x84, 0xb2, 0xbc, 0xbe, 0xbf, 0xd5,
+-      0xd7, 0xf0, 0xf1, 0x83, 0x85, 0x8b, 0xa4, 0xa6, 0xbe, 0xbf, 0xc5, 0xc7,
+-      0xce, 0xcf, 0xda, 0xdb, 0x48, 0x98, 0xbd, 0xcd, 0xc6, 0xce, 0xcf, 0x49,
+-      0x4e, 0x4f, 0x57, 0x59, 0x5e, 0x5f, 0x89, 0x8e, 0x8f, 0xb1, 0xb6, 0xb7,
+-      0xbf, 0xc1, 0xc6, 0xc7, 0xd7, 0x11, 0x16, 0x17, 0x5b, 0x5c, 0xf6, 0xf7,
+-      0xfe, 0xff, 0x80, 0x0d, 0x6d, 0x71, 0xde, 0xdf, 0x0e, 0x0f, 0x1f, 0x6e,
+-      0x6f, 0x1c, 0x1d, 0x5f, 0x7d, 0x7e, 0xae, 0xaf, 0xbb, 0xbc, 0xfa, 0x16,
+-      0x17, 0x1e, 0x1f, 0x46, 0x47, 0x4e, 0x4f, 0x58, 0x5a, 0x5c, 0x5e, 0x7e,
+-      0x7f, 0xb5, 0xc5, 0xd4, 0xd5, 0xdc, 0xf0, 0xf1, 0xf5, 0x72, 0x73, 0x8f,
+-      0x74, 0x75, 0x96, 0x2f, 0x5f, 0x26, 0x2e, 0x2f, 0xa7, 0xaf, 0xb7, 0xbf,
+-      0xc7, 0xcf, 0xd7, 0xdf, 0x9a, 0x40, 0x97, 0x98, 0x30, 0x8f, 0x1f, 0xc0,
+-      0xc1, 0xce, 0xff, 0x4e, 0x4f, 0x5a, 0x5b, 0x07, 0x08, 0x0f, 0x10, 0x27,
+-      0x2f, 0xee, 0xef, 0x6e, 0x6f, 0x37, 0x3d, 0x3f, 0x42, 0x45, 0x90, 0x91,
+-      0xfe, 0xff, 0x53, 0x67, 0x75, 0xc8, 0xc9, 0xd0, 0xd1, 0xd8, 0xd9, 0xe7,
+-      0xfe, 0xff,
+-  };
+-  static constexpr singleton singletons1[] = {
+-      {0x00, 6},  {0x01, 1}, {0x03, 1},  {0x04, 2}, {0x08, 8},  {0x09, 2},
+-      {0x0a, 5},  {0x0b, 2}, {0x0e, 4},  {0x10, 1}, {0x11, 2},  {0x12, 5},
+-      {0x13, 17}, {0x14, 1}, {0x15, 2},  {0x17, 2}, {0x19, 13}, {0x1c, 5},
+-      {0x1d, 8},  {0x24, 1}, {0x6a, 3},  {0x6b, 2}, {0xbc, 2},  {0xd1, 2},
+-      {0xd4, 12}, {0xd5, 9}, {0xd6, 2},  {0xd7, 2}, {0xda, 1},  {0xe0, 5},
+-      {0xe1, 2},  {0xe8, 2}, {0xee, 32}, {0xf0, 4}, {0xf8, 2},  {0xf9, 2},
+-      {0xfa, 2},  {0xfb, 1},
+-  };
+-  static constexpr unsigned char singletons1_lower[] = {
+-      0x0c, 0x27, 0x3b, 0x3e, 0x4e, 0x4f, 0x8f, 0x9e, 0x9e, 0x9f, 0x06, 0x07,
+-      0x09, 0x36, 0x3d, 0x3e, 0x56, 0xf3, 0xd0, 0xd1, 0x04, 0x14, 0x18, 0x36,
+-      0x37, 0x56, 0x57, 0x7f, 0xaa, 0xae, 0xaf, 0xbd, 0x35, 0xe0, 0x12, 0x87,
+-      0x89, 0x8e, 0x9e, 0x04, 0x0d, 0x0e, 0x11, 0x12, 0x29, 0x31, 0x34, 0x3a,
+-      0x45, 0x46, 0x49, 0x4a, 0x4e, 0x4f, 0x64, 0x65, 0x5c, 0xb6, 0xb7, 0x1b,
+-      0x1c, 0x07, 0x08, 0x0a, 0x0b, 0x14, 0x17, 0x36, 0x39, 0x3a, 0xa8, 0xa9,
+-      0xd8, 0xd9, 0x09, 0x37, 0x90, 0x91, 0xa8, 0x07, 0x0a, 0x3b, 0x3e, 0x66,
+-      0x69, 0x8f, 0x92, 0x6f, 0x5f, 0xee, 0xef, 0x5a, 0x62, 0x9a, 0x9b, 0x27,
+-      0x28, 0x55, 0x9d, 0xa0, 0xa1, 0xa3, 0xa4, 0xa7, 0xa8, 0xad, 0xba, 0xbc,
+-      0xc4, 0x06, 0x0b, 0x0c, 0x15, 0x1d, 0x3a, 0x3f, 0x45, 0x51, 0xa6, 0xa7,
+-      0xcc, 0xcd, 0xa0, 0x07, 0x19, 0x1a, 0x22, 0x25, 0x3e, 0x3f, 0xc5, 0xc6,
+-      0x04, 0x20, 0x23, 0x25, 0x26, 0x28, 0x33, 0x38, 0x3a, 0x48, 0x4a, 0x4c,
+-      0x50, 0x53, 0x55, 0x56, 0x58, 0x5a, 0x5c, 0x5e, 0x60, 0x63, 0x65, 0x66,
+-      0x6b, 0x73, 0x78, 0x7d, 0x7f, 0x8a, 0xa4, 0xaa, 0xaf, 0xb0, 0xc0, 0xd0,
+-      0xae, 0xaf, 0x79, 0xcc, 0x6e, 0x6f, 0x93,
+-  };
+-  static constexpr unsigned char normal0[] = {
+-      0x00, 0x20, 0x5f, 0x22, 0x82, 0xdf, 0x04, 0x82, 0x44, 0x08, 0x1b, 0x04,
+-      0x06, 0x11, 0x81, 0xac, 0x0e, 0x80, 0xab, 0x35, 0x28, 0x0b, 0x80, 0xe0,
+-      0x03, 0x19, 0x08, 0x01, 0x04, 0x2f, 0x04, 0x34, 0x04, 0x07, 0x03, 0x01,
+-      0x07, 0x06, 0x07, 0x11, 0x0a, 0x50, 0x0f, 0x12, 0x07, 0x55, 0x07, 0x03,
+-      0x04, 0x1c, 0x0a, 0x09, 0x03, 0x08, 0x03, 0x07, 0x03, 0x02, 0x03, 0x03,
+-      0x03, 0x0c, 0x04, 0x05, 0x03, 0x0b, 0x06, 0x01, 0x0e, 0x15, 0x05, 0x3a,
+-      0x03, 0x11, 0x07, 0x06, 0x05, 0x10, 0x07, 0x57, 0x07, 0x02, 0x07, 0x15,
+-      0x0d, 0x50, 0x04, 0x43, 0x03, 0x2d, 0x03, 0x01, 0x04, 0x11, 0x06, 0x0f,
+-      0x0c, 0x3a, 0x04, 0x1d, 0x25, 0x5f, 0x20, 0x6d, 0x04, 0x6a, 0x25, 0x80,
+-      0xc8, 0x05, 0x82, 0xb0, 0x03, 0x1a, 0x06, 0x82, 0xfd, 0x03, 0x59, 0x07,
+-      0x15, 0x0b, 0x17, 0x09, 0x14, 0x0c, 0x14, 0x0c, 0x6a, 0x06, 0x0a, 0x06,
+-      0x1a, 0x06, 0x59, 0x07, 0x2b, 0x05, 0x46, 0x0a, 0x2c, 0x04, 0x0c, 0x04,
+-      0x01, 0x03, 0x31, 0x0b, 0x2c, 0x04, 0x1a, 0x06, 0x0b, 0x03, 0x80, 0xac,
+-      0x06, 0x0a, 0x06, 0x21, 0x3f, 0x4c, 0x04, 0x2d, 0x03, 0x74, 0x08, 0x3c,
+-      0x03, 0x0f, 0x03, 0x3c, 0x07, 0x38, 0x08, 0x2b, 0x05, 0x82, 0xff, 0x11,
+-      0x18, 0x08, 0x2f, 0x11, 0x2d, 0x03, 0x20, 0x10, 0x21, 0x0f, 0x80, 0x8c,
+-      0x04, 0x82, 0x97, 0x19, 0x0b, 0x15, 0x88, 0x94, 0x05, 0x2f, 0x05, 0x3b,
+-      0x07, 0x02, 0x0e, 0x18, 0x09, 0x80, 0xb3, 0x2d, 0x74, 0x0c, 0x80, 0xd6,
+-      0x1a, 0x0c, 0x05, 0x80, 0xff, 0x05, 0x80, 0xdf, 0x0c, 0xee, 0x0d, 0x03,
+-      0x84, 0x8d, 0x03, 0x37, 0x09, 0x81, 0x5c, 0x14, 0x80, 0xb8, 0x08, 0x80,
+-      0xcb, 0x2a, 0x38, 0x03, 0x0a, 0x06, 0x38, 0x08, 0x46, 0x08, 0x0c, 0x06,
+-      0x74, 0x0b, 0x1e, 0x03, 0x5a, 0x04, 0x59, 0x09, 0x80, 0x83, 0x18, 0x1c,
+-      0x0a, 0x16, 0x09, 0x4c, 0x04, 0x80, 0x8a, 0x06, 0xab, 0xa4, 0x0c, 0x17,
+-      0x04, 0x31, 0xa1, 0x04, 0x81, 0xda, 0x26, 0x07, 0x0c, 0x05, 0x05, 0x80,
+-      0xa5, 0x11, 0x81, 0x6d, 0x10, 0x78, 0x28, 0x2a, 0x06, 0x4c, 0x04, 0x80,
+-      0x8d, 0x04, 0x80, 0xbe, 0x03, 0x1b, 0x03, 0x0f, 0x0d,
+-  };
+-  static constexpr unsigned char normal1[] = {
+-      0x5e, 0x22, 0x7b, 0x05, 0x03, 0x04, 0x2d, 0x03, 0x66, 0x03, 0x01, 0x2f,
+-      0x2e, 0x80, 0x82, 0x1d, 0x03, 0x31, 0x0f, 0x1c, 0x04, 0x24, 0x09, 0x1e,
+-      0x05, 0x2b, 0x05, 0x44, 0x04, 0x0e, 0x2a, 0x80, 0xaa, 0x06, 0x24, 0x04,
+-      0x24, 0x04, 0x28, 0x08, 0x34, 0x0b, 0x01, 0x80, 0x90, 0x81, 0x37, 0x09,
+-      0x16, 0x0a, 0x08, 0x80, 0x98, 0x39, 0x03, 0x63, 0x08, 0x09, 0x30, 0x16,
+-      0x05, 0x21, 0x03, 0x1b, 0x05, 0x01, 0x40, 0x38, 0x04, 0x4b, 0x05, 0x2f,
+-      0x04, 0x0a, 0x07, 0x09, 0x07, 0x40, 0x20, 0x27, 0x04, 0x0c, 0x09, 0x36,
+-      0x03, 0x3a, 0x05, 0x1a, 0x07, 0x04, 0x0c, 0x07, 0x50, 0x49, 0x37, 0x33,
+-      0x0d, 0x33, 0x07, 0x2e, 0x08, 0x0a, 0x81, 0x26, 0x52, 0x4e, 0x28, 0x08,
+-      0x2a, 0x56, 0x1c, 0x14, 0x17, 0x09, 0x4e, 0x04, 0x1e, 0x0f, 0x43, 0x0e,
+-      0x19, 0x07, 0x0a, 0x06, 0x48, 0x08, 0x27, 0x09, 0x75, 0x0b, 0x3f, 0x41,
+-      0x2a, 0x06, 0x3b, 0x05, 0x0a, 0x06, 0x51, 0x06, 0x01, 0x05, 0x10, 0x03,
+-      0x05, 0x80, 0x8b, 0x62, 0x1e, 0x48, 0x08, 0x0a, 0x80, 0xa6, 0x5e, 0x22,
+-      0x45, 0x0b, 0x0a, 0x06, 0x0d, 0x13, 0x39, 0x07, 0x0a, 0x36, 0x2c, 0x04,
+-      0x10, 0x80, 0xc0, 0x3c, 0x64, 0x53, 0x0c, 0x48, 0x09, 0x0a, 0x46, 0x45,
+-      0x1b, 0x48, 0x08, 0x53, 0x1d, 0x39, 0x81, 0x07, 0x46, 0x0a, 0x1d, 0x03,
+-      0x47, 0x49, 0x37, 0x03, 0x0e, 0x08, 0x0a, 0x06, 0x39, 0x07, 0x0a, 0x81,
+-      0x36, 0x19, 0x80, 0xb7, 0x01, 0x0f, 0x32, 0x0d, 0x83, 0x9b, 0x66, 0x75,
+-      0x0b, 0x80, 0xc4, 0x8a, 0xbc, 0x84, 0x2f, 0x8f, 0xd1, 0x82, 0x47, 0xa1,
+-      0xb9, 0x82, 0x39, 0x07, 0x2a, 0x04, 0x02, 0x60, 0x26, 0x0a, 0x46, 0x0a,
+-      0x28, 0x05, 0x13, 0x82, 0xb0, 0x5b, 0x65, 0x4b, 0x04, 0x39, 0x07, 0x11,
+-      0x40, 0x05, 0x0b, 0x02, 0x0e, 0x97, 0xf8, 0x08, 0x84, 0xd6, 0x2a, 0x09,
+-      0xa2, 0xf7, 0x81, 0x1f, 0x31, 0x03, 0x11, 0x04, 0x08, 0x81, 0x8c, 0x89,
+-      0x04, 0x6b, 0x05, 0x0d, 0x03, 0x09, 0x07, 0x10, 0x93, 0x60, 0x80, 0xf6,
+-      0x0a, 0x73, 0x08, 0x6e, 0x17, 0x46, 0x80, 0x9a, 0x14, 0x0c, 0x57, 0x09,
+-      0x19, 0x80, 0x87, 0x81, 0x47, 0x03, 0x85, 0x42, 0x0f, 0x15, 0x85, 0x50,
+-      0x2b, 0x80, 0xd5, 0x2d, 0x03, 0x1a, 0x04, 0x02, 0x81, 0x70, 0x3a, 0x05,
+-      0x01, 0x85, 0x00, 0x80, 0xd7, 0x29, 0x4c, 0x04, 0x0a, 0x04, 0x02, 0x83,
+-      0x11, 0x44, 0x4c, 0x3d, 0x80, 0xc2, 0x3c, 0x06, 0x01, 0x04, 0x55, 0x05,
+-      0x1b, 0x34, 0x02, 0x81, 0x0e, 0x2c, 0x04, 0x64, 0x0c, 0x56, 0x0a, 0x80,
+-      0xae, 0x38, 0x1d, 0x0d, 0x2c, 0x04, 0x09, 0x07, 0x02, 0x0e, 0x06, 0x80,
+-      0x9a, 0x83, 0xd8, 0x08, 0x0d, 0x03, 0x0d, 0x03, 0x74, 0x0c, 0x59, 0x07,
+-      0x0c, 0x14, 0x0c, 0x04, 0x38, 0x08, 0x0a, 0x06, 0x28, 0x08, 0x22, 0x4e,
+-      0x81, 0x54, 0x0c, 0x15, 0x03, 0x03, 0x05, 0x07, 0x09, 0x19, 0x07, 0x07,
+-      0x09, 0x03, 0x0d, 0x07, 0x29, 0x80, 0xcb, 0x25, 0x0a, 0x84, 0x06,
+-  };
+-  auto lower = static_cast<uint16_t>(cp);
+-  if (cp < 0x10000) {
+-    return is_printable(lower, singletons0,
+-                        sizeof(singletons0) / sizeof(*singletons0),
+-                        singletons0_lower, normal0, sizeof(normal0));
+-  }
+-  if (cp < 0x20000) {
+-    return is_printable(lower, singletons1,
+-                        sizeof(singletons1) / sizeof(*singletons1),
+-                        singletons1_lower, normal1, sizeof(normal1));
+-  }
+-  if (0x2a6de <= cp && cp < 0x2a700) return false;
+-  if (0x2b735 <= cp && cp < 0x2b740) return false;
+-  if (0x2b81e <= cp && cp < 0x2b820) return false;
+-  if (0x2cea2 <= cp && cp < 0x2ceb0) return false;
+-  if (0x2ebe1 <= cp && cp < 0x2f800) return false;
+-  if (0x2fa1e <= cp && cp < 0x30000) return false;
+-  if (0x3134b <= cp && cp < 0xe0100) return false;
+-  if (0xe01f0 <= cp && cp < 0x110000) return false;
+-  return cp < 0x110000;
+-}
+-
+-inline auto needs_escape(uint32_t cp) -> bool {
+-  return cp < 0x20 || cp == 0x7f || cp == '"' || cp == '\\' ||
+-         !is_printable(cp);
+-}
+-
+-template <typename Char> struct find_escape_result {
+-  const Char* begin;
+-  const Char* end;
+-  uint32_t cp;
+-};
+-
+-template <typename Char>
+-auto find_escape(const Char* begin, const Char* end)
+-    -> find_escape_result<Char> {
+-  for (; begin != end; ++begin) {
+-    auto cp = static_cast<typename std::make_unsigned<Char>::type>(*begin);
+-    if (sizeof(Char) == 1 && cp >= 0x80) continue;
+-    if (needs_escape(cp)) return {begin, begin + 1, cp};
+-  }
+-  return {begin, nullptr, 0};
+-}
+-
+-inline auto find_escape(const char* begin, const char* end)
+-    -> find_escape_result<char> {
+-  if (!is_utf8()) return find_escape<char>(begin, end);
+-  auto result = find_escape_result<char>{end, nullptr, 0};
+-  for_each_codepoint(string_view(begin, to_unsigned(end - begin)),
+-                     [&](uint32_t cp, string_view sv) {
+-                       if (needs_escape(cp)) {
+-                         result = {sv.begin(), sv.end(), cp};
+-                         return false;
+-                       }
+-                       return true;
+-                     });
+-  return result;
+-}
+-
+-template <typename Char, typename OutputIt>
+-auto write_range_entry(OutputIt out, basic_string_view<Char> str) -> OutputIt {
+-  *out++ = '"';
+-  auto begin = str.begin(), end = str.end();
+-  do {
+-    auto escape = find_escape(begin, end);
+-    out = copy_str<Char>(begin, escape.begin, out);
+-    begin = escape.end;
+-    if (!begin) break;
+-    auto c = static_cast<Char>(escape.cp);
+-    switch (escape.cp) {
+-    case '\n':
+-      *out++ = '\\';
+-      c = 'n';
+-      break;
+-    case '\r':
+-      *out++ = '\\';
+-      c = 'r';
+-      break;
+-    case '\t':
+-      *out++ = '\\';
+-      c = 't';
+-      break;
+-    case '"':
+-      FMT_FALLTHROUGH;
+-    case '\\':
+-      *out++ = '\\';
+-      break;
+-    default:
+-      if (is_utf8()) {
+-        if (escape.cp < 0x100) {
+-          out = format_to(out, "\\x{:02x}", escape.cp);
+-          continue;
+-        }
+-        if (escape.cp < 0x10000) {
+-          out = format_to(out, "\\u{:04x}", escape.cp);
+-          continue;
+-        }
+-        if (escape.cp < 0x110000) {
+-          out = format_to(out, "\\U{:08x}", escape.cp);
+-          continue;
+-        }
+-      }
+-      for (Char escape_char : basic_string_view<Char>(
+-               escape.begin, to_unsigned(escape.end - escape.begin))) {
+-        out = format_to(
+-            out, "\\x{:02x}",
+-            static_cast<typename std::make_unsigned<Char>::type>(escape_char));
+-      }
+-      continue;
+-    }
+-    *out++ = c;
+-  } while (begin != end);
+-  *out++ = '"';
+-  return out;
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_convertible<T, std_string_view<char>>::value)>
+-inline auto write_range_entry(OutputIt out, const T& str) -> OutputIt {
+-  auto sv = std_string_view<Char>(str);
+-  return write_range_entry<Char>(out, basic_string_view<Char>(sv));
+-}
+-
+-template <typename Char, typename OutputIt, typename Arg,
+-          FMT_ENABLE_IF(std::is_same<Arg, Char>::value)>
+-OutputIt write_range_entry(OutputIt out, const Arg v) {
+-  *out++ = '\'';
+-  *out++ = v;
+-  *out++ = '\'';
+-  return out;
+-}
+-
+-template <
+-    typename Char, typename OutputIt, typename Arg,
+-    FMT_ENABLE_IF(!is_std_string_like<typename std::decay<Arg>::type>::value &&
+-                  !std::is_same<Arg, Char>::value)>
+-OutputIt write_range_entry(OutputIt out, const Arg& v) {
+-  return write<Char>(out, v);
+-}
+-
+-}  // namespace detail
+-
+-template <typename T> struct is_tuple_like {
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      detail::is_tuple_like_<T>::value && !detail::is_range_<T>::value;
+-};
+-
+-template <typename TupleT, typename Char>
+-struct formatter<TupleT, Char, enable_if_t<fmt::is_tuple_like<TupleT>::value>> {
+- private:
+-  // C++11 generic lambda for format().
+-  template <typename FormatContext> struct format_each {
+-    template <typename T> void operator()(const T& v) {
+-      if (i > 0) out = detail::write_delimiter(out);
+-      out = detail::write_range_entry<Char>(out, v);
+-      ++i;
+-    }
+-    int i;
+-    typename FormatContext::iterator& out;
+-  };
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <typename FormatContext = format_context>
+-  auto format(const TupleT& values, FormatContext& ctx) -> decltype(ctx.out()) {
+-    auto out = ctx.out();
+-    *out++ = '(';
+-    detail::for_each(values, format_each<FormatContext>{0, out});
+-    *out++ = ')';
+-    return out;
+-  }
+-};
+-
+-template <typename T, typename Char> struct is_range {
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      detail::is_range_<T>::value && !detail::is_std_string_like<T>::value &&
+-      !detail::is_map<T>::value &&
+-      !std::is_convertible<T, std::basic_string<Char>>::value &&
+-      !std::is_constructible<detail::std_string_view<Char>, T>::value;
+-};
+-
+-template <typename T, typename Char>
+-struct formatter<
+-    T, Char,
+-    enable_if_t<
+-        fmt::is_range<T, Char>::value
+-// Workaround a bug in MSVC 2019 and earlier.
+-#if !FMT_MSC_VER
+-        && (is_formattable<detail::value_type<T>, Char>::value ||
+-            detail::has_fallback_formatter<detail::value_type<T>, Char>::value)
+-#endif
+-        >> {
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <
+-      typename FormatContext, typename U,
+-      FMT_ENABLE_IF(
+-          std::is_same<U, conditional_t<detail::has_const_begin_end<T>::value,
+-                                        const T, T>>::value)>
+-  auto format(U& range, FormatContext& ctx) -> decltype(ctx.out()) {
+-#ifdef FMT_DEPRECATED_BRACED_RANGES
+-    Char prefix = '{';
+-    Char postfix = '}';
+-#else
+-    Char prefix = detail::is_set<T>::value ? '{' : '[';
+-    Char postfix = detail::is_set<T>::value ? '}' : ']';
+-#endif
+-    auto out = ctx.out();
+-    *out++ = prefix;
+-    int i = 0;
+-    auto it = std::begin(range);
+-    auto end = std::end(range);
+-    for (; it != end; ++it) {
+-      if (i > 0) out = detail::write_delimiter(out);
+-      out = detail::write_range_entry<Char>(out, *it);
+-      ++i;
+-    }
+-    *out++ = postfix;
+-    return out;
+-  }
+-};
+-
+-template <typename T, typename Char>
+-struct formatter<
+-    T, Char,
+-    enable_if_t<
+-        detail::is_map<T>::value
+-// Workaround a bug in MSVC 2019 and earlier.
+-#if !FMT_MSC_VER
+-        && (is_formattable<detail::value_type<T>, Char>::value ||
+-            detail::has_fallback_formatter<detail::value_type<T>, Char>::value)
+-#endif
+-        >> {
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <
+-      typename FormatContext, typename U,
+-      FMT_ENABLE_IF(
+-          std::is_same<U, conditional_t<detail::has_const_begin_end<T>::value,
+-                                        const T, T>>::value)>
+-  auto format(U& map, FormatContext& ctx) -> decltype(ctx.out()) {
+-    auto out = ctx.out();
+-    *out++ = '{';
+-    int i = 0;
+-    for (const auto& item : map) {
+-      if (i > 0) out = detail::write_delimiter(out);
+-      out = detail::write_range_entry<Char>(out, item.first);
+-      *out++ = ':';
+-      *out++ = ' ';
+-      out = detail::write_range_entry<Char>(out, item.second);
+-      ++i;
+-    }
+-    *out++ = '}';
+-    return out;
+-  }
+-};
+-
+-template <typename Char, typename... T> struct tuple_join_view : detail::view {
+-  const std::tuple<T...>& tuple;
+-  basic_string_view<Char> sep;
+-
+-  tuple_join_view(const std::tuple<T...>& t, basic_string_view<Char> s)
+-      : tuple(t), sep{s} {}
+-};
+-
+-template <typename Char, typename... T>
+-using tuple_arg_join = tuple_join_view<Char, T...>;
+-
+-// Define FMT_TUPLE_JOIN_SPECIFIERS to enable experimental format specifiers
+-// support in tuple_join. It is disabled by default because of issues with
+-// the dynamic width and precision.
+-#ifndef FMT_TUPLE_JOIN_SPECIFIERS
+-#  define FMT_TUPLE_JOIN_SPECIFIERS 0
+-#endif
+-
+-template <typename Char, typename... T>
+-struct formatter<tuple_join_view<Char, T...>, Char> {
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return do_parse(ctx, std::integral_constant<size_t, sizeof...(T)>());
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(const tuple_join_view<Char, T...>& value,
+-              FormatContext& ctx) const -> typename FormatContext::iterator {
+-    return do_format(value, ctx,
+-                     std::integral_constant<size_t, sizeof...(T)>());
+-  }
+-
+- private:
+-  std::tuple<formatter<typename std::decay<T>::type, Char>...> formatters_;
+-
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto do_parse(ParseContext& ctx,
+-                              std::integral_constant<size_t, 0>)
+-      -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <typename ParseContext, size_t N>
+-  FMT_CONSTEXPR auto do_parse(ParseContext& ctx,
+-                              std::integral_constant<size_t, N>)
+-      -> decltype(ctx.begin()) {
+-    auto end = ctx.begin();
+-#if FMT_TUPLE_JOIN_SPECIFIERS
+-    end = std::get<sizeof...(T) - N>(formatters_).parse(ctx);
+-    if (N > 1) {
+-      auto end1 = do_parse(ctx, std::integral_constant<size_t, N - 1>());
+-      if (end != end1)
+-        FMT_THROW(format_error("incompatible format specs for tuple elements"));
+-    }
+-#endif
+-    return end;
+-  }
+-
+-  template <typename FormatContext>
+-  auto do_format(const tuple_join_view<Char, T...>&, FormatContext& ctx,
+-                 std::integral_constant<size_t, 0>) const ->
+-      typename FormatContext::iterator {
+-    return ctx.out();
+-  }
+-
+-  template <typename FormatContext, size_t N>
+-  auto do_format(const tuple_join_view<Char, T...>& value, FormatContext& ctx,
+-                 std::integral_constant<size_t, N>) const ->
+-      typename FormatContext::iterator {
+-    auto out = std::get<sizeof...(T) - N>(formatters_)
+-                   .format(std::get<sizeof...(T) - N>(value.tuple), ctx);
+-    if (N > 1) {
+-      out = std::copy(value.sep.begin(), value.sep.end(), out);
+-      ctx.advance_to(out);
+-      return do_format(value, ctx, std::integral_constant<size_t, N - 1>());
+-    }
+-    return out;
+-  }
+-};
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-/**
+-  \rst
+-  Returns an object that formats `tuple` with elements separated by `sep`.
+-
+-  **Example**::
+-
+-    std::tuple<int, char> t = {1, 'a'};
+-    fmt::print("{}", fmt::join(t, ", "));
+-    // Output: "1, a"
+-  \endrst
+- */
+-template <typename... T>
+-FMT_CONSTEXPR auto join(const std::tuple<T...>& tuple, string_view sep)
+-    -> tuple_join_view<char, T...> {
+-  return {tuple, sep};
+-}
+-
+-template <typename... T>
+-FMT_CONSTEXPR auto join(const std::tuple<T...>& tuple,
+-                        basic_string_view<wchar_t> sep)
+-    -> tuple_join_view<wchar_t, T...> {
+-  return {tuple, sep};
+-}
+-
+-/**
+-  \rst
+-  Returns an object that formats `initializer_list` with elements separated by
+-  `sep`.
+-
+-  **Example**::
+-
+-    fmt::print("{}", fmt::join({1, 2, 3}, ", "));
+-    // Output: "1, 2, 3"
+-  \endrst
+- */
+-template <typename T>
+-auto join(std::initializer_list<T> list, string_view sep)
+-    -> join_view<const T*, const T*> {
+-  return join(std::begin(list), std::end(list), sep);
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_RANGES_H_
+diff --git a/include/dpp/fmt/xchar.h b/include/dpp/fmt/xchar.h
+deleted file mode 100644
+index 5582507..0000000
+--- a/include/dpp/fmt/xchar.h
++++ /dev/null
+@@ -1,236 +0,0 @@
+-// Formatting library for C++ - optional wchar_t and exotic character support
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_XCHAR_H_
+-#define FMT_XCHAR_H_
+-
+-#include <cwchar>
+-#include <tuple>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-template <typename T>
+-using is_exotic_char = bool_constant<!std::is_same<T, char>::value>;
+-}
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-using wstring_view = basic_string_view<wchar_t>;
+-using wformat_parse_context = basic_format_parse_context<wchar_t>;
+-using wformat_context = buffer_context<wchar_t>;
+-using wformat_args = basic_format_args<wformat_context>;
+-using wmemory_buffer = basic_memory_buffer<wchar_t>;
+-
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-// Workaround broken conversion on older gcc.
+-template <typename... Args> using wformat_string = wstring_view;
+-#else
+-template <typename... Args>
+-using wformat_string = basic_format_string<wchar_t, type_identity_t<Args>...>;
+-#endif
+-
+-template <> struct is_char<wchar_t> : std::true_type {};
+-template <> struct is_char<detail::char8_type> : std::true_type {};
+-template <> struct is_char<char16_t> : std::true_type {};
+-template <> struct is_char<char32_t> : std::true_type {};
+-
+-template <typename... Args>
+-constexpr format_arg_store<wformat_context, Args...> make_wformat_args(
+-    const Args&... args) {
+-  return {args...};
+-}
+-
+-inline namespace literals {
+-constexpr auto operator"" _format(const wchar_t* s, size_t n)
+-    -> detail::udl_formatter<wchar_t> {
+-  return {{s, n}};
+-}
+-
+-#if FMT_USE_USER_DEFINED_LITERALS && !FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-constexpr detail::udl_arg<wchar_t> operator"" _a(const wchar_t* s, size_t) {
+-  return {s};
+-}
+-#endif
+-}  // namespace literals
+-
+-template <typename It, typename Sentinel>
+-auto join(It begin, Sentinel end, wstring_view sep)
+-    -> join_view<It, Sentinel, wchar_t> {
+-  return {begin, end, sep};
+-}
+-
+-template <typename Range>
+-auto join(Range&& range, wstring_view sep)
+-    -> join_view<detail::iterator_t<Range>, detail::sentinel_t<Range>,
+-                 wchar_t> {
+-  return join(std::begin(range), std::end(range), sep);
+-}
+-
+-template <typename T>
+-auto join(std::initializer_list<T> list, wstring_view sep)
+-    -> join_view<const T*, const T*, wchar_t> {
+-  return join(std::begin(list), std::end(list), sep);
+-}
+-
+-template <typename Char, FMT_ENABLE_IF(!std::is_same<Char, char>::value)>
+-auto vformat(basic_string_view<Char> format_str,
+-             basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> std::basic_string<Char> {
+-  basic_memory_buffer<Char> buffer;
+-  detail::vformat_to(buffer, format_str, args);
+-  return to_string(buffer);
+-}
+-
+-// Pass char_t as a default template parameter instead of using
+-// std::basic_string<char_t<S>> to reduce the symbol size.
+-template <typename S, typename... Args, typename Char = char_t<S>,
+-          FMT_ENABLE_IF(!std::is_same<Char, char>::value)>
+-auto format(const S& format_str, Args&&... args) -> std::basic_string<Char> {
+-  const auto& vargs = fmt::make_args_checked<Args...>(format_str, args...);
+-  return vformat(to_string_view(format_str), vargs);
+-}
+-
+-template <typename Locale, typename S, typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_locale<Locale>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto vformat(
+-    const Locale& loc, const S& format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> std::basic_string<Char> {
+-  return detail::vformat(loc, to_string_view(format_str), args);
+-}
+-
+-template <typename Locale, typename S, typename... Args,
+-          typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_locale<Locale>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto format(const Locale& loc, const S& format_str, Args&&... args)
+-    -> std::basic_string<Char> {
+-  return detail::vformat(loc, to_string_view(format_str),
+-                         fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-
+-template <typename OutputIt, typename S, typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-auto vformat_to(OutputIt out, const S& format_str,
+-                basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> OutputIt {
+-  auto&& buf = detail::get_buffer<Char>(out);
+-  detail::vformat_to(buf, to_string_view(format_str), args);
+-  return detail::get_iterator(buf);
+-}
+-
+-template <typename OutputIt, typename S, typename... Args,
+-          typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto format_to(OutputIt out, const S& fmt, Args&&... args) -> OutputIt {
+-  const auto& vargs = fmt::make_args_checked<Args...>(fmt, args...);
+-  return vformat_to(out, to_string_view(fmt), vargs);
+-}
+-
+-template <typename S, typename... Args, typename Char, size_t SIZE,
+-          typename Allocator, FMT_ENABLE_IF(detail::is_string<S>::value)>
+-FMT_DEPRECATED auto format_to(basic_memory_buffer<Char, SIZE, Allocator>& buf,
+-                              const S& format_str, Args&&... args) ->
+-    typename buffer_context<Char>::iterator {
+-  const auto& vargs = fmt::make_args_checked<Args...>(format_str, args...);
+-  detail::vformat_to(buf, to_string_view(format_str), vargs, {});
+-  return detail::buffer_appender<Char>(buf);
+-}
+-
+-template <typename Locale, typename S, typename OutputIt, typename... Args,
+-          typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_locale<Locale>::value&&
+-                                detail::is_exotic_char<Char>::value)>
+-inline auto vformat_to(
+-    OutputIt out, const Locale& loc, const S& format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args) -> OutputIt {
+-  auto&& buf = detail::get_buffer<Char>(out);
+-  vformat_to(buf, to_string_view(format_str), args, detail::locale_ref(loc));
+-  return detail::get_iterator(buf);
+-}
+-
+-template <
+-    typename OutputIt, typename Locale, typename S, typename... Args,
+-    typename Char = char_t<S>,
+-    bool enable = detail::is_output_iterator<OutputIt, Char>::value&&
+-        detail::is_locale<Locale>::value&& detail::is_exotic_char<Char>::value>
+-inline auto format_to(OutputIt out, const Locale& loc, const S& format_str,
+-                      Args&&... args) ->
+-    typename std::enable_if<enable, OutputIt>::type {
+-  const auto& vargs = fmt::make_args_checked<Args...>(format_str, args...);
+-  return vformat_to(out, loc, to_string_view(format_str), vargs);
+-}
+-
+-template <typename OutputIt, typename Char, typename... Args,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto vformat_to_n(
+-    OutputIt out, size_t n, basic_string_view<Char> format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> format_to_n_result<OutputIt> {
+-  detail::iterator_buffer<OutputIt, Char, detail::fixed_buffer_traits> buf(out,
+-                                                                           n);
+-  detail::vformat_to(buf, format_str, args);
+-  return {buf.out(), buf.count()};
+-}
+-
+-template <typename OutputIt, typename S, typename... Args,
+-          typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto format_to_n(OutputIt out, size_t n, const S& fmt,
+-                        const Args&... args) -> format_to_n_result<OutputIt> {
+-  const auto& vargs = fmt::make_args_checked<Args...>(fmt, args...);
+-  return vformat_to_n(out, n, to_string_view(fmt), vargs);
+-}
+-
+-template <typename S, typename... Args, typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_exotic_char<Char>::value)>
+-inline auto formatted_size(const S& fmt, Args&&... args) -> size_t {
+-  detail::counting_buffer<Char> buf;
+-  const auto& vargs = fmt::make_args_checked<Args...>(fmt, args...);
+-  detail::vformat_to(buf, to_string_view(fmt), vargs);
+-  return buf.count();
+-}
+-
+-inline void vprint(std::FILE* f, wstring_view fmt, wformat_args args) {
+-  wmemory_buffer buffer;
+-  detail::vformat_to(buffer, fmt, args);
+-  buffer.push_back(L'\0');
+-  if (std::fputws(buffer.data(), f) == -1)
+-    FMT_THROW(system_error(errno, FMT_STRING("cannot write to file")));
+-}
+-
+-inline void vprint(wstring_view fmt, wformat_args args) {
+-  vprint(stdout, fmt, args);
+-}
+-
+-template <typename... T>
+-void print(std::FILE* f, wformat_string<T...> fmt, T&&... args) {
+-  return vprint(f, wstring_view(fmt), fmt::make_wformat_args(args...));
+-}
+-
+-template <typename... T> void print(wformat_string<T...> fmt, T&&... args) {
+-  return vprint(wstring_view(fmt), fmt::make_wformat_args(args...));
+-}
+-
+-/**
+-  Converts *value* to ``std::wstring`` using the default format for type *T*.
+- */
+-template <typename T> inline auto to_wstring(const T& value) -> std::wstring {
+-  return format(FMT_STRING(L"{}"), value);
+-}
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_XCHAR_H_
+diff --git a/include/dpp/integration.h b/include/dpp/integration.h
+index 420c8d8..6815c3c 100644
+--- a/include/dpp/integration.h
++++ b/include/dpp/integration.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/invite.h b/include/dpp/invite.h
+index eae62a9..e8977a8 100644
+--- a/include/dpp/invite.h
++++ b/include/dpp/invite.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/stage_instance.h>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/json_interface.h b/include/dpp/json_interface.h
+index 302642d..e2e467a 100644
+--- a/include/dpp/json_interface.h
++++ b/include/dpp/json_interface.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 	/**
+diff --git a/include/dpp/message.h b/include/dpp/message.h
+index 1c80553..08de4c0 100644
+--- a/include/dpp/message.h
++++ b/include/dpp/message.h
+@@ -27,7 +27,7 @@
+ #include <dpp/guild.h>
+ #include <optional>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/nlohmann/json.hpp b/include/dpp/nlohmann/json.hpp
+deleted file mode 100755
+index cb27e05..0000000
+--- a/include/dpp/nlohmann/json.hpp
++++ /dev/null
+@@ -1,22091 +0,0 @@
+-/*
+-    __ _____ _____ _____
+- __|  |   __|     |   | |  JSON for Modern C++
+-|  |  |__   |  |  | | | |  version 3.10.5
+-|_____|_____|_____|_|___|  https://github.com/nlohmann/json
+-
+-Licensed under the MIT License <http://opensource.org/licenses/MIT>.
+-SPDX-License-Identifier: MIT
+-Copyright (c) 2013-2022 Niels Lohmann <http://nlohmann.me>.
+-
+-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.
+-*/
+-
+-/****************************************************************************\
+- * Note on documentation: The source files contain links to the online      *
+- * documentation of the public API at https://json.nlohmann.me. This URL    *
+- * contains the most recent documentation and should also be applicable to  *
+- * previous versions; documentation for deprecated functions is not         *
+- * removed, but marked deprecated. See "Generate documentation" section in  *
+- * file doc/README.md.                                                      *
+-\****************************************************************************/
+-
+-#ifndef INCLUDE_NLOHMANN_JSON_HPP_
+-#define INCLUDE_NLOHMANN_JSON_HPP_
+-
+-#define NLOHMANN_JSON_VERSION_MAJOR 3
+-#define NLOHMANN_JSON_VERSION_MINOR 10
+-#define NLOHMANN_JSON_VERSION_PATCH 5
+-
+-#include <algorithm> // all_of, find, for_each
+-#include <cstddef> // nullptr_t, ptrdiff_t, size_t
+-#include <functional> // hash, less
+-#include <initializer_list> // initializer_list
+-#ifndef JSON_NO_IO
+-    #include <iosfwd> // istream, ostream
+-#endif  // JSON_NO_IO
+-#include <iterator> // random_access_iterator_tag
+-#include <memory> // unique_ptr
+-#include <numeric> // accumulate
+-#include <string> // string, stoi, to_string
+-#include <utility> // declval, forward, move, pair, swap
+-#include <vector> // vector
+-
+-// #include <nlohmann/adl_serializer.hpp>
+-
+-
+-#include <type_traits>
+-#include <utility>
+-
+-// #include <nlohmann/detail/conversions/from_json.hpp>
+-
+-
+-#include <algorithm> // transform
+-#include <array> // array
+-#include <forward_list> // forward_list
+-#include <iterator> // inserter, front_inserter, end
+-#include <map> // map
+-#include <string> // string
+-#include <tuple> // tuple, make_tuple
+-#include <type_traits> // is_arithmetic, is_same, is_enum, underlying_type, is_convertible
+-#include <unordered_map> // unordered_map
+-#include <utility> // pair, declval
+-#include <valarray> // valarray
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-
+-#include <exception> // exception
+-#include <stdexcept> // runtime_error
+-#include <string> // to_string
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-#include <array> // array
+-#include <cstddef> // size_t
+-#include <cstdint> // uint8_t
+-#include <string> // string
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-///////////////////////////
+-// JSON type enumeration //
+-///////////////////////////
+-
+-/*!
+-@brief the JSON type enumeration
+-
+-This enumeration collects the different JSON types. It is internally used to
+-distinguish the stored values, and the functions @ref basic_json::is_null(),
+-@ref basic_json::is_object(), @ref basic_json::is_array(),
+-@ref basic_json::is_string(), @ref basic_json::is_boolean(),
+-@ref basic_json::is_number() (with @ref basic_json::is_number_integer(),
+-@ref basic_json::is_number_unsigned(), and @ref basic_json::is_number_float()),
+-@ref basic_json::is_discarded(), @ref basic_json::is_primitive(), and
+-@ref basic_json::is_structured() rely on it.
+-
+-@note There are three enumeration entries (number_integer, number_unsigned, and
+-number_float), because the library distinguishes these three types for numbers:
+-@ref basic_json::number_unsigned_t is used for unsigned integers,
+-@ref basic_json::number_integer_t is used for signed integers, and
+-@ref basic_json::number_float_t is used for floating-point numbers or to
+-approximate integers which do not fit in the limits of their respective type.
+-
+-@sa see @ref basic_json::basic_json(const value_t value_type) -- create a JSON
+-value with the default value for a given type
+-
+-@since version 1.0.0
+-*/
+-enum class value_t : std::uint8_t
+-{
+-    null,             ///< null value
+-    object,           ///< object (unordered set of name/value pairs)
+-    array,            ///< array (ordered collection of values)
+-    string,           ///< string value
+-    boolean,          ///< boolean value
+-    number_integer,   ///< number value (signed integer)
+-    number_unsigned,  ///< number value (unsigned integer)
+-    number_float,     ///< number value (floating-point)
+-    binary,           ///< binary array (ordered collection of bytes)
+-    discarded         ///< discarded by the parser callback function
+-};
+-
+-/*!
+-@brief comparison operator for JSON types
+-
+-Returns an ordering that is similar to Python:
+-- order: null < boolean < number < object < array < string < binary
+-- furthermore, each type is not smaller than itself
+-- discarded values are not comparable
+-- binary is represented as a b"" string in python and directly comparable to a
+-  string; however, making a binary array directly comparable with a string would
+-  be surprising behavior in a JSON file.
+-
+-@since version 1.0.0
+-*/
+-inline bool operator<(const value_t lhs, const value_t rhs) noexcept
+-{
+-    static constexpr std::array<std::uint8_t, 9> order = {{
+-            0 /* null */, 3 /* object */, 4 /* array */, 5 /* string */,
+-            1 /* boolean */, 2 /* integer */, 2 /* unsigned */, 2 /* float */,
+-            6 /* binary */
+-        }
+-    };
+-
+-    const auto l_index = static_cast<std::size_t>(lhs);
+-    const auto r_index = static_cast<std::size_t>(rhs);
+-    return l_index < order.size() && r_index < order.size() && order[l_index] < order[r_index];
+-}
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/string_escape.hpp>
+-
+-
+-#include <string>
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-#include <utility> // declval, pair
+-// #include <nlohmann/thirdparty/hedley/hedley.hpp>
+-
+-
+-/* Hedley - https://nemequ.github.io/hedley
+- * Created by Evan Nemerson <evan@nemerson.com>
+- *
+- * To the extent possible under law, the author(s) have dedicated all
+- * copyright and related and neighboring rights to this software to
+- * the public domain worldwide. This software is distributed without
+- * any warranty.
+- *
+- * For details, see <http://creativecommons.org/publicdomain/zero/1.0/>.
+- * SPDX-License-Identifier: CC0-1.0
+- */
+-
+-#if !defined(JSON_HEDLEY_VERSION) || (JSON_HEDLEY_VERSION < 15)
+-#if defined(JSON_HEDLEY_VERSION)
+-    #undef JSON_HEDLEY_VERSION
+-#endif
+-#define JSON_HEDLEY_VERSION 15
+-
+-#if defined(JSON_HEDLEY_STRINGIFY_EX)
+-    #undef JSON_HEDLEY_STRINGIFY_EX
+-#endif
+-#define JSON_HEDLEY_STRINGIFY_EX(x) #x
+-
+-#if defined(JSON_HEDLEY_STRINGIFY)
+-    #undef JSON_HEDLEY_STRINGIFY
+-#endif
+-#define JSON_HEDLEY_STRINGIFY(x) JSON_HEDLEY_STRINGIFY_EX(x)
+-
+-#if defined(JSON_HEDLEY_CONCAT_EX)
+-    #undef JSON_HEDLEY_CONCAT_EX
+-#endif
+-#define JSON_HEDLEY_CONCAT_EX(a,b) a##b
+-
+-#if defined(JSON_HEDLEY_CONCAT)
+-    #undef JSON_HEDLEY_CONCAT
+-#endif
+-#define JSON_HEDLEY_CONCAT(a,b) JSON_HEDLEY_CONCAT_EX(a,b)
+-
+-#if defined(JSON_HEDLEY_CONCAT3_EX)
+-    #undef JSON_HEDLEY_CONCAT3_EX
+-#endif
+-#define JSON_HEDLEY_CONCAT3_EX(a,b,c) a##b##c
+-
+-#if defined(JSON_HEDLEY_CONCAT3)
+-    #undef JSON_HEDLEY_CONCAT3
+-#endif
+-#define JSON_HEDLEY_CONCAT3(a,b,c) JSON_HEDLEY_CONCAT3_EX(a,b,c)
+-
+-#if defined(JSON_HEDLEY_VERSION_ENCODE)
+-    #undef JSON_HEDLEY_VERSION_ENCODE
+-#endif
+-#define JSON_HEDLEY_VERSION_ENCODE(major,minor,revision) (((major) * 1000000) + ((minor) * 1000) + (revision))
+-
+-#if defined(JSON_HEDLEY_VERSION_DECODE_MAJOR)
+-    #undef JSON_HEDLEY_VERSION_DECODE_MAJOR
+-#endif
+-#define JSON_HEDLEY_VERSION_DECODE_MAJOR(version) ((version) / 1000000)
+-
+-#if defined(JSON_HEDLEY_VERSION_DECODE_MINOR)
+-    #undef JSON_HEDLEY_VERSION_DECODE_MINOR
+-#endif
+-#define JSON_HEDLEY_VERSION_DECODE_MINOR(version) (((version) % 1000000) / 1000)
+-
+-#if defined(JSON_HEDLEY_VERSION_DECODE_REVISION)
+-    #undef JSON_HEDLEY_VERSION_DECODE_REVISION
+-#endif
+-#define JSON_HEDLEY_VERSION_DECODE_REVISION(version) ((version) % 1000)
+-
+-#if defined(JSON_HEDLEY_GNUC_VERSION)
+-    #undef JSON_HEDLEY_GNUC_VERSION
+-#endif
+-#if defined(__GNUC__) && defined(__GNUC_PATCHLEVEL__)
+-    #define JSON_HEDLEY_GNUC_VERSION JSON_HEDLEY_VERSION_ENCODE(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__)
+-#elif defined(__GNUC__)
+-    #define JSON_HEDLEY_GNUC_VERSION JSON_HEDLEY_VERSION_ENCODE(__GNUC__, __GNUC_MINOR__, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_GNUC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_GNUC_VERSION)
+-    #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GNUC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MSVC_VERSION)
+-    #undef JSON_HEDLEY_MSVC_VERSION
+-#endif
+-#if defined(_MSC_FULL_VER) && (_MSC_FULL_VER >= 140000000) && !defined(__ICL)
+-    #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_FULL_VER / 10000000, (_MSC_FULL_VER % 10000000) / 100000, (_MSC_FULL_VER % 100000) / 100)
+-#elif defined(_MSC_FULL_VER) && !defined(__ICL)
+-    #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_FULL_VER / 1000000, (_MSC_FULL_VER % 1000000) / 10000, (_MSC_FULL_VER % 10000) / 10)
+-#elif defined(_MSC_VER) && !defined(__ICL)
+-    #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_VER / 100, _MSC_VER % 100, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MSVC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_MSVC_VERSION_CHECK
+-#endif
+-#if !defined(JSON_HEDLEY_MSVC_VERSION)
+-    #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (0)
+-#elif defined(_MSC_VER) && (_MSC_VER >= 1400)
+-    #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch)))
+-#elif defined(_MSC_VER) && (_MSC_VER >= 1200)
+-    #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch)))
+-#else
+-    #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_VER >= ((major * 100) + (minor)))
+-#endif
+-
+-#if defined(JSON_HEDLEY_INTEL_VERSION)
+-    #undef JSON_HEDLEY_INTEL_VERSION
+-#endif
+-#if defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE) && !defined(__ICL)
+-    #define JSON_HEDLEY_INTEL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, __INTEL_COMPILER_UPDATE)
+-#elif defined(__INTEL_COMPILER) && !defined(__ICL)
+-    #define JSON_HEDLEY_INTEL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_INTEL_VERSION_CHECK)
+-    #undef JSON_HEDLEY_INTEL_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_INTEL_VERSION)
+-    #define JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_INTEL_CL_VERSION)
+-    #undef JSON_HEDLEY_INTEL_CL_VERSION
+-#endif
+-#if defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE) && defined(__ICL)
+-    #define JSON_HEDLEY_INTEL_CL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER, __INTEL_COMPILER_UPDATE, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_INTEL_CL_VERSION_CHECK)
+-    #undef JSON_HEDLEY_INTEL_CL_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_INTEL_CL_VERSION)
+-    #define JSON_HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_CL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_PGI_VERSION)
+-    #undef JSON_HEDLEY_PGI_VERSION
+-#endif
+-#if defined(__PGI) && defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__)
+-    #define JSON_HEDLEY_PGI_VERSION JSON_HEDLEY_VERSION_ENCODE(__PGIC__, __PGIC_MINOR__, __PGIC_PATCHLEVEL__)
+-#endif
+-
+-#if defined(JSON_HEDLEY_PGI_VERSION_CHECK)
+-    #undef JSON_HEDLEY_PGI_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_PGI_VERSION)
+-    #define JSON_HEDLEY_PGI_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_PGI_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_PGI_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_SUNPRO_VERSION)
+-    #undef JSON_HEDLEY_SUNPRO_VERSION
+-#endif
+-#if defined(__SUNPRO_C) && (__SUNPRO_C > 0x1000)
+-    #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((((__SUNPRO_C >> 16) & 0xf) * 10) + ((__SUNPRO_C >> 12) & 0xf), (((__SUNPRO_C >> 8) & 0xf) * 10) + ((__SUNPRO_C >> 4) & 0xf), (__SUNPRO_C & 0xf) * 10)
+-#elif defined(__SUNPRO_C)
+-    #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((__SUNPRO_C >> 8) & 0xf, (__SUNPRO_C >> 4) & 0xf, (__SUNPRO_C) & 0xf)
+-#elif defined(__SUNPRO_CC) && (__SUNPRO_CC > 0x1000)
+-    #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((((__SUNPRO_CC >> 16) & 0xf) * 10) + ((__SUNPRO_CC >> 12) & 0xf), (((__SUNPRO_CC >> 8) & 0xf) * 10) + ((__SUNPRO_CC >> 4) & 0xf), (__SUNPRO_CC & 0xf) * 10)
+-#elif defined(__SUNPRO_CC)
+-    #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((__SUNPRO_CC >> 8) & 0xf, (__SUNPRO_CC >> 4) & 0xf, (__SUNPRO_CC) & 0xf)
+-#endif
+-
+-#if defined(JSON_HEDLEY_SUNPRO_VERSION_CHECK)
+-    #undef JSON_HEDLEY_SUNPRO_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_SUNPRO_VERSION)
+-    #define JSON_HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_SUNPRO_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION)
+-    #undef JSON_HEDLEY_EMSCRIPTEN_VERSION
+-#endif
+-#if defined(__EMSCRIPTEN__)
+-    #define JSON_HEDLEY_EMSCRIPTEN_VERSION JSON_HEDLEY_VERSION_ENCODE(__EMSCRIPTEN_major__, __EMSCRIPTEN_minor__, __EMSCRIPTEN_tiny__)
+-#endif
+-
+-#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK)
+-    #undef JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION)
+-    #define JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_EMSCRIPTEN_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_ARM_VERSION)
+-    #undef JSON_HEDLEY_ARM_VERSION
+-#endif
+-#if defined(__CC_ARM) && defined(__ARMCOMPILER_VERSION)
+-    #define JSON_HEDLEY_ARM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ARMCOMPILER_VERSION / 1000000, (__ARMCOMPILER_VERSION % 1000000) / 10000, (__ARMCOMPILER_VERSION % 10000) / 100)
+-#elif defined(__CC_ARM) && defined(__ARMCC_VERSION)
+-    #define JSON_HEDLEY_ARM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ARMCC_VERSION / 1000000, (__ARMCC_VERSION % 1000000) / 10000, (__ARMCC_VERSION % 10000) / 100)
+-#endif
+-
+-#if defined(JSON_HEDLEY_ARM_VERSION_CHECK)
+-    #undef JSON_HEDLEY_ARM_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_ARM_VERSION)
+-    #define JSON_HEDLEY_ARM_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_ARM_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_ARM_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_IBM_VERSION)
+-    #undef JSON_HEDLEY_IBM_VERSION
+-#endif
+-#if defined(__ibmxl__)
+-    #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ibmxl_version__, __ibmxl_release__, __ibmxl_modification__)
+-#elif defined(__xlC__) && defined(__xlC_ver__)
+-    #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__xlC__ >> 8, __xlC__ & 0xff, (__xlC_ver__ >> 8) & 0xff)
+-#elif defined(__xlC__)
+-    #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__xlC__ >> 8, __xlC__ & 0xff, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_IBM_VERSION_CHECK)
+-    #undef JSON_HEDLEY_IBM_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_IBM_VERSION)
+-    #define JSON_HEDLEY_IBM_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_IBM_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_IBM_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_VERSION)
+-    #undef JSON_HEDLEY_TI_VERSION
+-#endif
+-#if \
+-    defined(__TI_COMPILER_VERSION__) && \
+-    ( \
+-      defined(__TMS470__) || defined(__TI_ARM__) || \
+-      defined(__MSP430__) || \
+-      defined(__TMS320C2000__) \
+-    )
+-#if (__TI_COMPILER_VERSION__ >= 16000000)
+-    #define JSON_HEDLEY_TI_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_VERSION)
+-    #define JSON_HEDLEY_TI_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL2000_VERSION)
+-    #undef JSON_HEDLEY_TI_CL2000_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__TMS320C2000__)
+-    #define JSON_HEDLEY_TI_CL2000_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL2000_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CL2000_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CL2000_VERSION)
+-    #define JSON_HEDLEY_TI_CL2000_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL2000_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CL2000_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL430_VERSION)
+-    #undef JSON_HEDLEY_TI_CL430_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__MSP430__)
+-    #define JSON_HEDLEY_TI_CL430_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL430_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CL430_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CL430_VERSION)
+-    #define JSON_HEDLEY_TI_CL430_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL430_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CL430_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_ARMCL_VERSION)
+-    #undef JSON_HEDLEY_TI_ARMCL_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && (defined(__TMS470__) || defined(__TI_ARM__))
+-    #define JSON_HEDLEY_TI_ARMCL_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_ARMCL_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_ARMCL_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_ARMCL_VERSION)
+-    #define JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_ARMCL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL6X_VERSION)
+-    #undef JSON_HEDLEY_TI_CL6X_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__TMS320C6X__)
+-    #define JSON_HEDLEY_TI_CL6X_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL6X_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CL6X_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CL6X_VERSION)
+-    #define JSON_HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL6X_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL7X_VERSION)
+-    #undef JSON_HEDLEY_TI_CL7X_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__C7000__)
+-    #define JSON_HEDLEY_TI_CL7X_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL7X_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CL7X_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CL7X_VERSION)
+-    #define JSON_HEDLEY_TI_CL7X_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL7X_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CL7X_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CLPRU_VERSION)
+-    #undef JSON_HEDLEY_TI_CLPRU_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__PRU__)
+-    #define JSON_HEDLEY_TI_CLPRU_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CLPRU_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CLPRU_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CLPRU_VERSION)
+-    #define JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CLPRU_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_CRAY_VERSION)
+-    #undef JSON_HEDLEY_CRAY_VERSION
+-#endif
+-#if defined(_CRAYC)
+-    #if defined(_RELEASE_PATCHLEVEL)
+-        #define JSON_HEDLEY_CRAY_VERSION JSON_HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, _RELEASE_PATCHLEVEL)
+-    #else
+-        #define JSON_HEDLEY_CRAY_VERSION JSON_HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, 0)
+-    #endif
+-#endif
+-
+-#if defined(JSON_HEDLEY_CRAY_VERSION_CHECK)
+-    #undef JSON_HEDLEY_CRAY_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_CRAY_VERSION)
+-    #define JSON_HEDLEY_CRAY_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_CRAY_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_CRAY_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_IAR_VERSION)
+-    #undef JSON_HEDLEY_IAR_VERSION
+-#endif
+-#if defined(__IAR_SYSTEMS_ICC__)
+-    #if __VER__ > 1000
+-        #define JSON_HEDLEY_IAR_VERSION JSON_HEDLEY_VERSION_ENCODE((__VER__ / 1000000), ((__VER__ / 1000) % 1000), (__VER__ % 1000))
+-    #else
+-        #define JSON_HEDLEY_IAR_VERSION JSON_HEDLEY_VERSION_ENCODE(__VER__ / 100, __VER__ % 100, 0)
+-    #endif
+-#endif
+-
+-#if defined(JSON_HEDLEY_IAR_VERSION_CHECK)
+-    #undef JSON_HEDLEY_IAR_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_IAR_VERSION)
+-    #define JSON_HEDLEY_IAR_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_IAR_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_IAR_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TINYC_VERSION)
+-    #undef JSON_HEDLEY_TINYC_VERSION
+-#endif
+-#if defined(__TINYC__)
+-    #define JSON_HEDLEY_TINYC_VERSION JSON_HEDLEY_VERSION_ENCODE(__TINYC__ / 1000, (__TINYC__ / 100) % 10, __TINYC__ % 100)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TINYC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TINYC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TINYC_VERSION)
+-    #define JSON_HEDLEY_TINYC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TINYC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TINYC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_DMC_VERSION)
+-    #undef JSON_HEDLEY_DMC_VERSION
+-#endif
+-#if defined(__DMC__)
+-    #define JSON_HEDLEY_DMC_VERSION JSON_HEDLEY_VERSION_ENCODE(__DMC__ >> 8, (__DMC__ >> 4) & 0xf, __DMC__ & 0xf)
+-#endif
+-
+-#if defined(JSON_HEDLEY_DMC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_DMC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_DMC_VERSION)
+-    #define JSON_HEDLEY_DMC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_DMC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_DMC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_COMPCERT_VERSION)
+-    #undef JSON_HEDLEY_COMPCERT_VERSION
+-#endif
+-#if defined(__COMPCERT_VERSION__)
+-    #define JSON_HEDLEY_COMPCERT_VERSION JSON_HEDLEY_VERSION_ENCODE(__COMPCERT_VERSION__ / 10000, (__COMPCERT_VERSION__ / 100) % 100, __COMPCERT_VERSION__ % 100)
+-#endif
+-
+-#if defined(JSON_HEDLEY_COMPCERT_VERSION_CHECK)
+-    #undef JSON_HEDLEY_COMPCERT_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_COMPCERT_VERSION)
+-    #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_COMPCERT_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_PELLES_VERSION)
+-    #undef JSON_HEDLEY_PELLES_VERSION
+-#endif
+-#if defined(__POCC__)
+-    #define JSON_HEDLEY_PELLES_VERSION JSON_HEDLEY_VERSION_ENCODE(__POCC__ / 100, __POCC__ % 100, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_PELLES_VERSION_CHECK)
+-    #undef JSON_HEDLEY_PELLES_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_PELLES_VERSION)
+-    #define JSON_HEDLEY_PELLES_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_PELLES_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_PELLES_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MCST_LCC_VERSION)
+-    #undef JSON_HEDLEY_MCST_LCC_VERSION
+-#endif
+-#if defined(__LCC__) && defined(__LCC_MINOR__)
+-    #define JSON_HEDLEY_MCST_LCC_VERSION JSON_HEDLEY_VERSION_ENCODE(__LCC__ / 100, __LCC__ % 100, __LCC_MINOR__)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MCST_LCC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_MCST_LCC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_MCST_LCC_VERSION)
+-    #define JSON_HEDLEY_MCST_LCC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_MCST_LCC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_MCST_LCC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_VERSION)
+-    #undef JSON_HEDLEY_GCC_VERSION
+-#endif
+-#if \
+-    defined(JSON_HEDLEY_GNUC_VERSION) && \
+-    !defined(__clang__) && \
+-    !defined(JSON_HEDLEY_INTEL_VERSION) && \
+-    !defined(JSON_HEDLEY_PGI_VERSION) && \
+-    !defined(JSON_HEDLEY_ARM_VERSION) && \
+-    !defined(JSON_HEDLEY_CRAY_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_ARMCL_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CL430_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CL2000_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CL6X_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CL7X_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CLPRU_VERSION) && \
+-    !defined(__COMPCERT__) && \
+-    !defined(JSON_HEDLEY_MCST_LCC_VERSION)
+-    #define JSON_HEDLEY_GCC_VERSION JSON_HEDLEY_GNUC_VERSION
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_GCC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_GCC_VERSION)
+-    #define JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GCC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_ATTRIBUTE)
+-    #undef JSON_HEDLEY_HAS_ATTRIBUTE
+-#endif
+-#if \
+-  defined(__has_attribute) && \
+-  ( \
+-    (!defined(JSON_HEDLEY_IAR_VERSION) || JSON_HEDLEY_IAR_VERSION_CHECK(8,5,9)) \
+-  )
+-#  define JSON_HEDLEY_HAS_ATTRIBUTE(attribute) __has_attribute(attribute)
+-#else
+-#  define JSON_HEDLEY_HAS_ATTRIBUTE(attribute) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GNUC_HAS_ATTRIBUTE
+-#endif
+-#if defined(__has_attribute)
+-    #define JSON_HEDLEY_GNUC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_HAS_ATTRIBUTE(attribute)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GCC_HAS_ATTRIBUTE
+-#endif
+-#if defined(__has_attribute)
+-    #define JSON_HEDLEY_GCC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_HAS_ATTRIBUTE(attribute)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_CPP_ATTRIBUTE)
+-    #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE
+-#endif
+-#if \
+-    defined(__has_cpp_attribute) && \
+-    defined(__cplusplus) && \
+-    (!defined(JSON_HEDLEY_SUNPRO_VERSION) || JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0))
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute) __has_cpp_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS)
+-    #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS
+-#endif
+-#if !defined(__cplusplus) || !defined(__has_cpp_attribute)
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) (0)
+-#elif \
+-    !defined(JSON_HEDLEY_PGI_VERSION) && \
+-    !defined(JSON_HEDLEY_IAR_VERSION) && \
+-    (!defined(JSON_HEDLEY_SUNPRO_VERSION) || JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0)) && \
+-    (!defined(JSON_HEDLEY_MSVC_VERSION) || JSON_HEDLEY_MSVC_VERSION_CHECK(19,20,0))
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) JSON_HEDLEY_HAS_CPP_ATTRIBUTE(ns::attribute)
+-#else
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE
+-#endif
+-#if defined(__has_cpp_attribute) && defined(__cplusplus)
+-    #define JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) __has_cpp_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE
+-#endif
+-#if defined(__has_cpp_attribute) && defined(__cplusplus)
+-    #define JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) __has_cpp_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_BUILTIN)
+-    #undef JSON_HEDLEY_HAS_BUILTIN
+-#endif
+-#if defined(__has_builtin)
+-    #define JSON_HEDLEY_HAS_BUILTIN(builtin) __has_builtin(builtin)
+-#else
+-    #define JSON_HEDLEY_HAS_BUILTIN(builtin) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_BUILTIN)
+-    #undef JSON_HEDLEY_GNUC_HAS_BUILTIN
+-#endif
+-#if defined(__has_builtin)
+-    #define JSON_HEDLEY_GNUC_HAS_BUILTIN(builtin,major,minor,patch) __has_builtin(builtin)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_BUILTIN(builtin,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_BUILTIN)
+-    #undef JSON_HEDLEY_GCC_HAS_BUILTIN
+-#endif
+-#if defined(__has_builtin)
+-    #define JSON_HEDLEY_GCC_HAS_BUILTIN(builtin,major,minor,patch) __has_builtin(builtin)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_BUILTIN(builtin,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_FEATURE)
+-    #undef JSON_HEDLEY_HAS_FEATURE
+-#endif
+-#if defined(__has_feature)
+-    #define JSON_HEDLEY_HAS_FEATURE(feature) __has_feature(feature)
+-#else
+-    #define JSON_HEDLEY_HAS_FEATURE(feature) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_FEATURE)
+-    #undef JSON_HEDLEY_GNUC_HAS_FEATURE
+-#endif
+-#if defined(__has_feature)
+-    #define JSON_HEDLEY_GNUC_HAS_FEATURE(feature,major,minor,patch) __has_feature(feature)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_FEATURE(feature,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_FEATURE)
+-    #undef JSON_HEDLEY_GCC_HAS_FEATURE
+-#endif
+-#if defined(__has_feature)
+-    #define JSON_HEDLEY_GCC_HAS_FEATURE(feature,major,minor,patch) __has_feature(feature)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_FEATURE(feature,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_EXTENSION)
+-    #undef JSON_HEDLEY_HAS_EXTENSION
+-#endif
+-#if defined(__has_extension)
+-    #define JSON_HEDLEY_HAS_EXTENSION(extension) __has_extension(extension)
+-#else
+-    #define JSON_HEDLEY_HAS_EXTENSION(extension) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_EXTENSION)
+-    #undef JSON_HEDLEY_GNUC_HAS_EXTENSION
+-#endif
+-#if defined(__has_extension)
+-    #define JSON_HEDLEY_GNUC_HAS_EXTENSION(extension,major,minor,patch) __has_extension(extension)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_EXTENSION(extension,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_EXTENSION)
+-    #undef JSON_HEDLEY_GCC_HAS_EXTENSION
+-#endif
+-#if defined(__has_extension)
+-    #define JSON_HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) __has_extension(extension)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE)
+-    #undef JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE
+-#endif
+-#if defined(__has_declspec_attribute)
+-    #define JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) __has_declspec_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE
+-#endif
+-#if defined(__has_declspec_attribute)
+-    #define JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) __has_declspec_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE
+-#endif
+-#if defined(__has_declspec_attribute)
+-    #define JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) __has_declspec_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_WARNING)
+-    #undef JSON_HEDLEY_HAS_WARNING
+-#endif
+-#if defined(__has_warning)
+-    #define JSON_HEDLEY_HAS_WARNING(warning) __has_warning(warning)
+-#else
+-    #define JSON_HEDLEY_HAS_WARNING(warning) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_WARNING)
+-    #undef JSON_HEDLEY_GNUC_HAS_WARNING
+-#endif
+-#if defined(__has_warning)
+-    #define JSON_HEDLEY_GNUC_HAS_WARNING(warning,major,minor,patch) __has_warning(warning)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_WARNING(warning,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_WARNING)
+-    #undef JSON_HEDLEY_GCC_HAS_WARNING
+-#endif
+-#if defined(__has_warning)
+-    #define JSON_HEDLEY_GCC_HAS_WARNING(warning,major,minor,patch) __has_warning(warning)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_WARNING(warning,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if \
+-    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \
+-    defined(__clang__) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(18,4,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,7,0) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(2,0,1) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,1,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,0,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_CRAY_VERSION_CHECK(5,0,0) || \
+-    JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,17) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(8,0,0) || \
+-    (JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) && defined(__C99_PRAGMA_OPERATOR))
+-    #define JSON_HEDLEY_PRAGMA(value) _Pragma(#value)
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0)
+-    #define JSON_HEDLEY_PRAGMA(value) __pragma(value)
+-#else
+-    #define JSON_HEDLEY_PRAGMA(value)
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_PUSH)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_PUSH
+-#endif
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_POP)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_POP
+-#endif
+-#if defined(__clang__)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("clang diagnostic push")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("clang diagnostic pop")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("warning(push)")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("warning(pop)")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("GCC diagnostic push")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("GCC diagnostic pop")
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH __pragma(warning(push))
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP __pragma(warning(pop))
+-#elif JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("push")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("pop")
+-#elif \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,4,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,1,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("diag_push")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("diag_pop")
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,90,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("warning(push)")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("warning(pop)")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP
+-#endif
+-
+-/* JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_ is for
+-   HEDLEY INTERNAL USE ONLY.  API subject to change without notice. */
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_
+-#endif
+-#if defined(__cplusplus)
+-#  if JSON_HEDLEY_HAS_WARNING("-Wc++98-compat")
+-#    if JSON_HEDLEY_HAS_WARNING("-Wc++17-extensions")
+-#      if JSON_HEDLEY_HAS_WARNING("-Wc++1z-extensions")
+-#        define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \
+-    _Pragma("clang diagnostic ignored \"-Wc++17-extensions\"") \
+-    _Pragma("clang diagnostic ignored \"-Wc++1z-extensions\"") \
+-    xpr \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#      else
+-#        define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \
+-    _Pragma("clang diagnostic ignored \"-Wc++17-extensions\"") \
+-    xpr \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#      endif
+-#    else
+-#      define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \
+-    xpr \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#    endif
+-#  endif
+-#endif
+-#if !defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(x) x
+-#endif
+-
+-#if defined(JSON_HEDLEY_CONST_CAST)
+-    #undef JSON_HEDLEY_CONST_CAST
+-#endif
+-#if defined(__cplusplus)
+-#  define JSON_HEDLEY_CONST_CAST(T, expr) (const_cast<T>(expr))
+-#elif \
+-  JSON_HEDLEY_HAS_WARNING("-Wcast-qual") || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-#  define JSON_HEDLEY_CONST_CAST(T, expr) (__extension__ ({ \
+-        JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-        JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL \
+-        ((T) (expr)); \
+-        JSON_HEDLEY_DIAGNOSTIC_POP \
+-    }))
+-#else
+-#  define JSON_HEDLEY_CONST_CAST(T, expr) ((T) (expr))
+-#endif
+-
+-#if defined(JSON_HEDLEY_REINTERPRET_CAST)
+-    #undef JSON_HEDLEY_REINTERPRET_CAST
+-#endif
+-#if defined(__cplusplus)
+-    #define JSON_HEDLEY_REINTERPRET_CAST(T, expr) (reinterpret_cast<T>(expr))
+-#else
+-    #define JSON_HEDLEY_REINTERPRET_CAST(T, expr) ((T) (expr))
+-#endif
+-
+-#if defined(JSON_HEDLEY_STATIC_CAST)
+-    #undef JSON_HEDLEY_STATIC_CAST
+-#endif
+-#if defined(__cplusplus)
+-    #define JSON_HEDLEY_STATIC_CAST(T, expr) (static_cast<T>(expr))
+-#else
+-    #define JSON_HEDLEY_STATIC_CAST(T, expr) ((T) (expr))
+-#endif
+-
+-#if defined(JSON_HEDLEY_CPP_CAST)
+-    #undef JSON_HEDLEY_CPP_CAST
+-#endif
+-#if defined(__cplusplus)
+-#  if JSON_HEDLEY_HAS_WARNING("-Wold-style-cast")
+-#    define JSON_HEDLEY_CPP_CAST(T, expr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wold-style-cast\"") \
+-    ((T) (expr)) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#  elif JSON_HEDLEY_IAR_VERSION_CHECK(8,3,0)
+-#    define JSON_HEDLEY_CPP_CAST(T, expr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("diag_suppress=Pe137") \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#  else
+-#    define JSON_HEDLEY_CPP_CAST(T, expr) ((T) (expr))
+-#  endif
+-#else
+-#  define JSON_HEDLEY_CPP_CAST(T, expr) (expr)
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wdeprecated-declarations")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("warning(disable:1478 1786)")
+-#elif JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED __pragma(warning(disable:1478 1786))
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(20,7,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1216,1444,1445")
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1444")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED __pragma(warning(disable:4996))
+-#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1444")
+-#elif \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1291,1718")
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) && !defined(__cplusplus)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("error_messages(off,E_DEPRECATED_ATT,E_DEPRECATED_ATT_MESS)")
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) && defined(__cplusplus)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("error_messages(off,symdeprecated,symdeprecated2)")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress=Pe1444,Pe1215")
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,90,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("warn(disable:2241)")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("clang diagnostic ignored \"-Wunknown-pragmas\"")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("warning(disable:161)")
+-#elif JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS __pragma(warning(disable:161))
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 1675")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("GCC diagnostic ignored \"-Wunknown-pragmas\"")
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS __pragma(warning(disable:4068))
+-#elif \
+-    JSON_HEDLEY_TI_VERSION_CHECK(16,9,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,3,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 163")
+-#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 163")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress=Pe161")
+-#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 161")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunknown-attributes")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("clang diagnostic ignored \"-Wunknown-attributes\"")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(17,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("warning(disable:1292)")
+-#elif JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES __pragma(warning(disable:1292))
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(19,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES __pragma(warning(disable:5030))
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(20,7,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097,1098")
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097")
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,14,0) && defined(__cplusplus)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("error_messages(off,attrskipunsup)")
+-#elif \
+-    JSON_HEDLEY_TI_VERSION_CHECK(18,1,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,3,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1173")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress=Pe1097")
+-#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wcast-qual")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("clang diagnostic ignored \"-Wcast-qual\"")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("warning(disable:2203 2331)")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("GCC diagnostic ignored \"-Wcast-qual\"")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunused-function")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("clang diagnostic ignored \"-Wunused-function\"")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("GCC diagnostic ignored \"-Wunused-function\"")
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(1,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION __pragma(warning(disable:4505))
+-#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("diag_suppress 3142")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION
+-#endif
+-
+-#if defined(JSON_HEDLEY_DEPRECATED)
+-    #undef JSON_HEDLEY_DEPRECATED
+-#endif
+-#if defined(JSON_HEDLEY_DEPRECATED_FOR)
+-    #undef JSON_HEDLEY_DEPRECATED_FOR
+-#endif
+-#if \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DEPRECATED(since) __declspec(deprecated("Since " # since))
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __declspec(deprecated("Since " #since "; use " #replacement))
+-#elif \
+-    (JSON_HEDLEY_HAS_EXTENSION(attribute_deprecated_with_message) && !defined(JSON_HEDLEY_IAR_VERSION)) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,5,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(18,1,0) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(18,1,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,3,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,3,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DEPRECATED(since) __attribute__((__deprecated__("Since " #since)))
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __attribute__((__deprecated__("Since " #since "; use " #replacement)))
+-#elif defined(__cplusplus) && (__cplusplus >= 201402L)
+-    #define JSON_HEDLEY_DEPRECATED(since) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[deprecated("Since " #since)]])
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[deprecated("Since " #since "; use " #replacement)]])
+-#elif \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(deprecated) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0)
+-    #define JSON_HEDLEY_DEPRECATED(since) __attribute__((__deprecated__))
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __attribute__((__deprecated__))
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
+-    JSON_HEDLEY_PELLES_VERSION_CHECK(6,50,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DEPRECATED(since) __declspec(deprecated)
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __declspec(deprecated)
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DEPRECATED(since) _Pragma("deprecated")
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) _Pragma("deprecated")
+-#else
+-    #define JSON_HEDLEY_DEPRECATED(since)
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement)
+-#endif
+-
+-#if defined(JSON_HEDLEY_UNAVAILABLE)
+-    #undef JSON_HEDLEY_UNAVAILABLE
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(warning) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_UNAVAILABLE(available_since) __attribute__((__warning__("Not available until " #available_since)))
+-#else
+-    #define JSON_HEDLEY_UNAVAILABLE(available_since)
+-#endif
+-
+-#if defined(JSON_HEDLEY_WARN_UNUSED_RESULT)
+-    #undef JSON_HEDLEY_WARN_UNUSED_RESULT
+-#endif
+-#if defined(JSON_HEDLEY_WARN_UNUSED_RESULT_MSG)
+-    #undef JSON_HEDLEY_WARN_UNUSED_RESULT_MSG
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(warn_unused_result) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0) && defined(__cplusplus)) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) __attribute__((__warn_unused_result__))
+-#elif (JSON_HEDLEY_HAS_CPP_ATTRIBUTE(nodiscard) >= 201907L)
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]])
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard(msg)]])
+-#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE(nodiscard)
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]])
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]])
+-#elif defined(_Check_return_) /* SAL */
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT _Check_return_
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) _Check_return_
+-#else
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg)
+-#endif
+-
+-#if defined(JSON_HEDLEY_SENTINEL)
+-    #undef JSON_HEDLEY_SENTINEL
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(sentinel) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(5,4,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_SENTINEL(position) __attribute__((__sentinel__(position)))
+-#else
+-    #define JSON_HEDLEY_SENTINEL(position)
+-#endif
+-
+-#if defined(JSON_HEDLEY_NO_RETURN)
+-    #undef JSON_HEDLEY_NO_RETURN
+-#endif
+-#if JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_NO_RETURN __noreturn
+-#elif \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_NO_RETURN __attribute__((__noreturn__))
+-#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
+-    #define JSON_HEDLEY_NO_RETURN _Noreturn
+-#elif defined(__cplusplus) && (__cplusplus >= 201103L)
+-    #define JSON_HEDLEY_NO_RETURN JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[noreturn]])
+-#elif \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(noreturn) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,2,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0)
+-    #define JSON_HEDLEY_NO_RETURN __attribute__((__noreturn__))
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
+-    #define JSON_HEDLEY_NO_RETURN _Pragma("does_not_return")
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_NO_RETURN __declspec(noreturn)
+-#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,0,0) && defined(__cplusplus)
+-    #define JSON_HEDLEY_NO_RETURN _Pragma("FUNC_NEVER_RETURNS;")
+-#elif JSON_HEDLEY_COMPCERT_VERSION_CHECK(3,2,0)
+-    #define JSON_HEDLEY_NO_RETURN __attribute((noreturn))
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(9,0,0)
+-    #define JSON_HEDLEY_NO_RETURN __declspec(noreturn)
+-#else
+-    #define JSON_HEDLEY_NO_RETURN
+-#endif
+-
+-#if defined(JSON_HEDLEY_NO_ESCAPE)
+-    #undef JSON_HEDLEY_NO_ESCAPE
+-#endif
+-#if JSON_HEDLEY_HAS_ATTRIBUTE(noescape)
+-    #define JSON_HEDLEY_NO_ESCAPE __attribute__((__noescape__))
+-#else
+-    #define JSON_HEDLEY_NO_ESCAPE
+-#endif
+-
+-#if defined(JSON_HEDLEY_UNREACHABLE)
+-    #undef JSON_HEDLEY_UNREACHABLE
+-#endif
+-#if defined(JSON_HEDLEY_UNREACHABLE_RETURN)
+-    #undef JSON_HEDLEY_UNREACHABLE_RETURN
+-#endif
+-#if defined(JSON_HEDLEY_ASSUME)
+-    #undef JSON_HEDLEY_ASSUME
+-#endif
+-#if \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_ASSUME(expr) __assume(expr)
+-#elif JSON_HEDLEY_HAS_BUILTIN(__builtin_assume)
+-    #define JSON_HEDLEY_ASSUME(expr) __builtin_assume(expr)
+-#elif \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0)
+-    #if defined(__cplusplus)
+-        #define JSON_HEDLEY_ASSUME(expr) std::_nassert(expr)
+-    #else
+-        #define JSON_HEDLEY_ASSUME(expr) _nassert(expr)
+-    #endif
+-#endif
+-#if \
+-    (JSON_HEDLEY_HAS_BUILTIN(__builtin_unreachable) && (!defined(JSON_HEDLEY_ARM_VERSION))) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,5,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(18,10,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(13,1,5) || \
+-    JSON_HEDLEY_CRAY_VERSION_CHECK(10,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_UNREACHABLE() __builtin_unreachable()
+-#elif defined(JSON_HEDLEY_ASSUME)
+-    #define JSON_HEDLEY_UNREACHABLE() JSON_HEDLEY_ASSUME(0)
+-#endif
+-#if !defined(JSON_HEDLEY_ASSUME)
+-    #if defined(JSON_HEDLEY_UNREACHABLE)
+-        #define JSON_HEDLEY_ASSUME(expr) JSON_HEDLEY_STATIC_CAST(void, ((expr) ? 1 : (JSON_HEDLEY_UNREACHABLE(), 1)))
+-    #else
+-        #define JSON_HEDLEY_ASSUME(expr) JSON_HEDLEY_STATIC_CAST(void, expr)
+-    #endif
+-#endif
+-#if defined(JSON_HEDLEY_UNREACHABLE)
+-    #if  \
+-        JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \
+-        JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0)
+-        #define JSON_HEDLEY_UNREACHABLE_RETURN(value) return (JSON_HEDLEY_STATIC_CAST(void, JSON_HEDLEY_ASSUME(0)), (value))
+-    #else
+-        #define JSON_HEDLEY_UNREACHABLE_RETURN(value) JSON_HEDLEY_UNREACHABLE()
+-    #endif
+-#else
+-    #define JSON_HEDLEY_UNREACHABLE_RETURN(value) return (value)
+-#endif
+-#if !defined(JSON_HEDLEY_UNREACHABLE)
+-    #define JSON_HEDLEY_UNREACHABLE() JSON_HEDLEY_ASSUME(0)
+-#endif
+-
+-JSON_HEDLEY_DIAGNOSTIC_PUSH
+-#if JSON_HEDLEY_HAS_WARNING("-Wpedantic")
+-    #pragma clang diagnostic ignored "-Wpedantic"
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wc++98-compat-pedantic") && defined(__cplusplus)
+-    #pragma clang diagnostic ignored "-Wc++98-compat-pedantic"
+-#endif
+-#if JSON_HEDLEY_GCC_HAS_WARNING("-Wvariadic-macros",4,0,0)
+-    #if defined(__clang__)
+-        #pragma clang diagnostic ignored "-Wvariadic-macros"
+-    #elif defined(JSON_HEDLEY_GCC_VERSION)
+-        #pragma GCC diagnostic ignored "-Wvariadic-macros"
+-    #endif
+-#endif
+-#if defined(JSON_HEDLEY_NON_NULL)
+-    #undef JSON_HEDLEY_NON_NULL
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(nonnull) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0)
+-    #define JSON_HEDLEY_NON_NULL(...) __attribute__((__nonnull__(__VA_ARGS__)))
+-#else
+-    #define JSON_HEDLEY_NON_NULL(...)
+-#endif
+-JSON_HEDLEY_DIAGNOSTIC_POP
+-
+-#if defined(JSON_HEDLEY_PRINTF_FORMAT)
+-    #undef JSON_HEDLEY_PRINTF_FORMAT
+-#endif
+-#if defined(__MINGW32__) && JSON_HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && !defined(__USE_MINGW_ANSI_STDIO)
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(ms_printf, string_idx, first_to_check)))
+-#elif defined(__MINGW32__) && JSON_HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && defined(__USE_MINGW_ANSI_STDIO)
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(gnu_printf, string_idx, first_to_check)))
+-#elif \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(format) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(__printf__, string_idx, first_to_check)))
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(6,0,0)
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __declspec(vaformat(printf,string_idx,first_to_check))
+-#else
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check)
+-#endif
+-
+-#if defined(JSON_HEDLEY_CONSTEXPR)
+-    #undef JSON_HEDLEY_CONSTEXPR
+-#endif
+-#if defined(__cplusplus)
+-    #if __cplusplus >= 201103L
+-        #define JSON_HEDLEY_CONSTEXPR JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(constexpr)
+-    #endif
+-#endif
+-#if !defined(JSON_HEDLEY_CONSTEXPR)
+-    #define JSON_HEDLEY_CONSTEXPR
+-#endif
+-
+-#if defined(JSON_HEDLEY_PREDICT)
+-    #undef JSON_HEDLEY_PREDICT
+-#endif
+-#if defined(JSON_HEDLEY_LIKELY)
+-    #undef JSON_HEDLEY_LIKELY
+-#endif
+-#if defined(JSON_HEDLEY_UNLIKELY)
+-    #undef JSON_HEDLEY_UNLIKELY
+-#endif
+-#if defined(JSON_HEDLEY_UNPREDICTABLE)
+-    #undef JSON_HEDLEY_UNPREDICTABLE
+-#endif
+-#if JSON_HEDLEY_HAS_BUILTIN(__builtin_unpredictable)
+-    #define JSON_HEDLEY_UNPREDICTABLE(expr) __builtin_unpredictable((expr))
+-#endif
+-#if \
+-  (JSON_HEDLEY_HAS_BUILTIN(__builtin_expect_with_probability) && !defined(JSON_HEDLEY_PGI_VERSION)) || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(9,0,0) || \
+-  JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-#  define JSON_HEDLEY_PREDICT(expr, value, probability) __builtin_expect_with_probability(  (expr), (value), (probability))
+-#  define JSON_HEDLEY_PREDICT_TRUE(expr, probability)   __builtin_expect_with_probability(!!(expr),    1   , (probability))
+-#  define JSON_HEDLEY_PREDICT_FALSE(expr, probability)  __builtin_expect_with_probability(!!(expr),    0   , (probability))
+-#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
+-#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
+-#elif \
+-  (JSON_HEDLEY_HAS_BUILTIN(__builtin_expect) && !defined(JSON_HEDLEY_INTEL_CL_VERSION)) || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-  (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0) && defined(__cplusplus)) || \
+-  JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-  JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-  JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-  JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,7,0) || \
+-  JSON_HEDLEY_TI_CL430_VERSION_CHECK(3,1,0) || \
+-  JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,1,0) || \
+-  JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \
+-  JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-  JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-  JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,27) || \
+-  JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \
+-  JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-#  define JSON_HEDLEY_PREDICT(expr, expected, probability) \
+-    (((probability) >= 0.9) ? __builtin_expect((expr), (expected)) : (JSON_HEDLEY_STATIC_CAST(void, expected), (expr)))
+-#  define JSON_HEDLEY_PREDICT_TRUE(expr, probability) \
+-    (__extension__ ({ \
+-        double hedley_probability_ = (probability); \
+-        ((hedley_probability_ >= 0.9) ? __builtin_expect(!!(expr), 1) : ((hedley_probability_ <= 0.1) ? __builtin_expect(!!(expr), 0) : !!(expr))); \
+-    }))
+-#  define JSON_HEDLEY_PREDICT_FALSE(expr, probability) \
+-    (__extension__ ({ \
+-        double hedley_probability_ = (probability); \
+-        ((hedley_probability_ >= 0.9) ? __builtin_expect(!!(expr), 0) : ((hedley_probability_ <= 0.1) ? __builtin_expect(!!(expr), 1) : !!(expr))); \
+-    }))
+-#  define JSON_HEDLEY_LIKELY(expr)   __builtin_expect(!!(expr), 1)
+-#  define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect(!!(expr), 0)
+-#else
+-#  define JSON_HEDLEY_PREDICT(expr, expected, probability) (JSON_HEDLEY_STATIC_CAST(void, expected), (expr))
+-#  define JSON_HEDLEY_PREDICT_TRUE(expr, probability) (!!(expr))
+-#  define JSON_HEDLEY_PREDICT_FALSE(expr, probability) (!!(expr))
+-#  define JSON_HEDLEY_LIKELY(expr) (!!(expr))
+-#  define JSON_HEDLEY_UNLIKELY(expr) (!!(expr))
+-#endif
+-#if !defined(JSON_HEDLEY_UNPREDICTABLE)
+-    #define JSON_HEDLEY_UNPREDICTABLE(expr) JSON_HEDLEY_PREDICT(expr, 1, 0.5)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MALLOC)
+-    #undef JSON_HEDLEY_MALLOC
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(malloc) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(12,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_MALLOC __attribute__((__malloc__))
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
+-    #define JSON_HEDLEY_MALLOC _Pragma("returns_new_memory")
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_MALLOC __declspec(restrict)
+-#else
+-    #define JSON_HEDLEY_MALLOC
+-#endif
+-
+-#if defined(JSON_HEDLEY_PURE)
+-    #undef JSON_HEDLEY_PURE
+-#endif
+-#if \
+-  JSON_HEDLEY_HAS_ATTRIBUTE(pure) || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(2,96,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-  JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-  JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-  JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-  JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-  (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-  (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-  (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-  (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-  JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-  JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-  JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-  JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-#  define JSON_HEDLEY_PURE __attribute__((__pure__))
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
+-#  define JSON_HEDLEY_PURE _Pragma("does_not_write_global_data")
+-#elif defined(__cplusplus) && \
+-    ( \
+-      JSON_HEDLEY_TI_CL430_VERSION_CHECK(2,0,1) || \
+-      JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0) || \
+-      JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) \
+-    )
+-#  define JSON_HEDLEY_PURE _Pragma("FUNC_IS_PURE;")
+-#else
+-#  define JSON_HEDLEY_PURE
+-#endif
+-
+-#if defined(JSON_HEDLEY_CONST)
+-    #undef JSON_HEDLEY_CONST
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(const) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(2,5,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_CONST __attribute__((__const__))
+-#elif \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
+-    #define JSON_HEDLEY_CONST _Pragma("no_side_effect")
+-#else
+-    #define JSON_HEDLEY_CONST JSON_HEDLEY_PURE
+-#endif
+-
+-#if defined(JSON_HEDLEY_RESTRICT)
+-    #undef JSON_HEDLEY_RESTRICT
+-#endif
+-#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && !defined(__cplusplus)
+-    #define JSON_HEDLEY_RESTRICT restrict
+-#elif \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,4) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,1,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,14,0) && defined(__cplusplus)) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) || \
+-    defined(__clang__) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_RESTRICT __restrict
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,3,0) && !defined(__cplusplus)
+-    #define JSON_HEDLEY_RESTRICT _Restrict
+-#else
+-    #define JSON_HEDLEY_RESTRICT
+-#endif
+-
+-#if defined(JSON_HEDLEY_INLINE)
+-    #undef JSON_HEDLEY_INLINE
+-#endif
+-#if \
+-    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \
+-    (defined(__cplusplus) && (__cplusplus >= 199711L))
+-    #define JSON_HEDLEY_INLINE inline
+-#elif \
+-    defined(JSON_HEDLEY_GCC_VERSION) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(6,2,0)
+-    #define JSON_HEDLEY_INLINE __inline__
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(12,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,1,0) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_INLINE __inline
+-#else
+-    #define JSON_HEDLEY_INLINE
+-#endif
+-
+-#if defined(JSON_HEDLEY_ALWAYS_INLINE)
+-    #undef JSON_HEDLEY_ALWAYS_INLINE
+-#endif
+-#if \
+-  JSON_HEDLEY_HAS_ATTRIBUTE(always_inline) || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-  JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-  JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-  JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-  JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-  (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-  (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-  (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-  (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-  JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-  JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-  JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \
+-  JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0)
+-#  define JSON_HEDLEY_ALWAYS_INLINE __attribute__((__always_inline__)) JSON_HEDLEY_INLINE
+-#elif \
+-  JSON_HEDLEY_MSVC_VERSION_CHECK(12,0,0) || \
+-  JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-#  define JSON_HEDLEY_ALWAYS_INLINE __forceinline
+-#elif defined(__cplusplus) && \
+-    ( \
+-      JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-      JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-      JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-      JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \
+-      JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-      JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) \
+-    )
+-#  define JSON_HEDLEY_ALWAYS_INLINE _Pragma("FUNC_ALWAYS_INLINE;")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-#  define JSON_HEDLEY_ALWAYS_INLINE _Pragma("inline=forced")
+-#else
+-#  define JSON_HEDLEY_ALWAYS_INLINE JSON_HEDLEY_INLINE
+-#endif
+-
+-#if defined(JSON_HEDLEY_NEVER_INLINE)
+-    #undef JSON_HEDLEY_NEVER_INLINE
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(noinline) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0)
+-    #define JSON_HEDLEY_NEVER_INLINE __attribute__((__noinline__))
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_NEVER_INLINE __declspec(noinline)
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(10,2,0)
+-    #define JSON_HEDLEY_NEVER_INLINE _Pragma("noinline")
+-#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,0,0) && defined(__cplusplus)
+-    #define JSON_HEDLEY_NEVER_INLINE _Pragma("FUNC_CANNOT_INLINE;")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_NEVER_INLINE _Pragma("inline=never")
+-#elif JSON_HEDLEY_COMPCERT_VERSION_CHECK(3,2,0)
+-    #define JSON_HEDLEY_NEVER_INLINE __attribute((noinline))
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(9,0,0)
+-    #define JSON_HEDLEY_NEVER_INLINE __declspec(noinline)
+-#else
+-    #define JSON_HEDLEY_NEVER_INLINE
+-#endif
+-
+-#if defined(JSON_HEDLEY_PRIVATE)
+-    #undef JSON_HEDLEY_PRIVATE
+-#endif
+-#if defined(JSON_HEDLEY_PUBLIC)
+-    #undef JSON_HEDLEY_PUBLIC
+-#endif
+-#if defined(JSON_HEDLEY_IMPORT)
+-    #undef JSON_HEDLEY_IMPORT
+-#endif
+-#if defined(_WIN32) || defined(__CYGWIN__)
+-#  define JSON_HEDLEY_PRIVATE
+-#  define JSON_HEDLEY_PUBLIC   __declspec(dllexport)
+-#  define JSON_HEDLEY_IMPORT   __declspec(dllimport)
+-#else
+-#  if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(visibility) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \
+-    ( \
+-      defined(__TI_EABI__) && \
+-      ( \
+-        (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-        JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) \
+-      ) \
+-    ) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-#    define JSON_HEDLEY_PRIVATE __attribute__((__visibility__("hidden")))
+-#    define JSON_HEDLEY_PUBLIC  __attribute__((__visibility__("default")))
+-#  else
+-#    define JSON_HEDLEY_PRIVATE
+-#    define JSON_HEDLEY_PUBLIC
+-#  endif
+-#  define JSON_HEDLEY_IMPORT    extern
+-#endif
+-
+-#if defined(JSON_HEDLEY_NO_THROW)
+-    #undef JSON_HEDLEY_NO_THROW
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(nothrow) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_NO_THROW __attribute__((__nothrow__))
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,1,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0)
+-    #define JSON_HEDLEY_NO_THROW __declspec(nothrow)
+-#else
+-    #define JSON_HEDLEY_NO_THROW
+-#endif
+-
+-#if defined(JSON_HEDLEY_FALL_THROUGH)
+-    #undef JSON_HEDLEY_FALL_THROUGH
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(fallthrough) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(7,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_FALL_THROUGH __attribute__((__fallthrough__))
+-#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(clang,fallthrough)
+-    #define JSON_HEDLEY_FALL_THROUGH JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[clang::fallthrough]])
+-#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE(fallthrough)
+-    #define JSON_HEDLEY_FALL_THROUGH JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[fallthrough]])
+-#elif defined(__fallthrough) /* SAL */
+-    #define JSON_HEDLEY_FALL_THROUGH __fallthrough
+-#else
+-    #define JSON_HEDLEY_FALL_THROUGH
+-#endif
+-
+-#if defined(JSON_HEDLEY_RETURNS_NON_NULL)
+-    #undef JSON_HEDLEY_RETURNS_NON_NULL
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(returns_nonnull) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_RETURNS_NON_NULL __attribute__((__returns_nonnull__))
+-#elif defined(_Ret_notnull_) /* SAL */
+-    #define JSON_HEDLEY_RETURNS_NON_NULL _Ret_notnull_
+-#else
+-    #define JSON_HEDLEY_RETURNS_NON_NULL
+-#endif
+-
+-#if defined(JSON_HEDLEY_ARRAY_PARAM)
+-    #undef JSON_HEDLEY_ARRAY_PARAM
+-#endif
+-#if \
+-    defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && \
+-    !defined(__STDC_NO_VLA__) && \
+-    !defined(__cplusplus) && \
+-    !defined(JSON_HEDLEY_PGI_VERSION) && \
+-    !defined(JSON_HEDLEY_TINYC_VERSION)
+-    #define JSON_HEDLEY_ARRAY_PARAM(name) (name)
+-#else
+-    #define JSON_HEDLEY_ARRAY_PARAM(name)
+-#endif
+-
+-#if defined(JSON_HEDLEY_IS_CONSTANT)
+-    #undef JSON_HEDLEY_IS_CONSTANT
+-#endif
+-#if defined(JSON_HEDLEY_REQUIRE_CONSTEXPR)
+-    #undef JSON_HEDLEY_REQUIRE_CONSTEXPR
+-#endif
+-/* JSON_HEDLEY_IS_CONSTEXPR_ is for
+-   HEDLEY INTERNAL USE ONLY.  API subject to change without notice. */
+-#if defined(JSON_HEDLEY_IS_CONSTEXPR_)
+-    #undef JSON_HEDLEY_IS_CONSTEXPR_
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_BUILTIN(__builtin_constant_p) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,19) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \
+-    (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) && !defined(__cplusplus)) || \
+-    JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_IS_CONSTANT(expr) __builtin_constant_p(expr)
+-#endif
+-#if !defined(__cplusplus)
+-#  if \
+-       JSON_HEDLEY_HAS_BUILTIN(__builtin_types_compatible_p) || \
+-       JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \
+-       JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-       JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \
+-       JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \
+-       JSON_HEDLEY_ARM_VERSION_CHECK(5,4,0) || \
+-       JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,24)
+-#if defined(__INTPTR_TYPE__)
+-    #define JSON_HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0)), int*)
+-#else
+-    #include <stdint.h>
+-    #define JSON_HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((intptr_t) ((expr) * 0)) : (int*) 0)), int*)
+-#endif
+-#  elif \
+-       ( \
+-          defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) && \
+-          !defined(JSON_HEDLEY_SUNPRO_VERSION) && \
+-          !defined(JSON_HEDLEY_PGI_VERSION) && \
+-          !defined(JSON_HEDLEY_IAR_VERSION)) || \
+-       (JSON_HEDLEY_HAS_EXTENSION(c_generic_selections) && !defined(JSON_HEDLEY_IAR_VERSION)) || \
+-       JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0) || \
+-       JSON_HEDLEY_INTEL_VERSION_CHECK(17,0,0) || \
+-       JSON_HEDLEY_IBM_VERSION_CHECK(12,1,0) || \
+-       JSON_HEDLEY_ARM_VERSION_CHECK(5,3,0)
+-#if defined(__INTPTR_TYPE__)
+-    #define JSON_HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0), int*: 1, void*: 0)
+-#else
+-    #include <stdint.h>
+-    #define JSON_HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((intptr_t) * 0) : (int*) 0), int*: 1, void*: 0)
+-#endif
+-#  elif \
+-       defined(JSON_HEDLEY_GCC_VERSION) || \
+-       defined(JSON_HEDLEY_INTEL_VERSION) || \
+-       defined(JSON_HEDLEY_TINYC_VERSION) || \
+-       defined(JSON_HEDLEY_TI_ARMCL_VERSION) || \
+-       JSON_HEDLEY_TI_CL430_VERSION_CHECK(18,12,0) || \
+-       defined(JSON_HEDLEY_TI_CL2000_VERSION) || \
+-       defined(JSON_HEDLEY_TI_CL6X_VERSION) || \
+-       defined(JSON_HEDLEY_TI_CL7X_VERSION) || \
+-       defined(JSON_HEDLEY_TI_CLPRU_VERSION) || \
+-       defined(__clang__)
+-#    define JSON_HEDLEY_IS_CONSTEXPR_(expr) ( \
+-        sizeof(void) != \
+-        sizeof(*( \
+-                  1 ? \
+-                  ((void*) ((expr) * 0L) ) : \
+-((struct { char v[sizeof(void) * 2]; } *) 1) \
+-                ) \
+-              ) \
+-                                            )
+-#  endif
+-#endif
+-#if defined(JSON_HEDLEY_IS_CONSTEXPR_)
+-    #if !defined(JSON_HEDLEY_IS_CONSTANT)
+-        #define JSON_HEDLEY_IS_CONSTANT(expr) JSON_HEDLEY_IS_CONSTEXPR_(expr)
+-    #endif
+-    #define JSON_HEDLEY_REQUIRE_CONSTEXPR(expr) (JSON_HEDLEY_IS_CONSTEXPR_(expr) ? (expr) : (-1))
+-#else
+-    #if !defined(JSON_HEDLEY_IS_CONSTANT)
+-        #define JSON_HEDLEY_IS_CONSTANT(expr) (0)
+-    #endif
+-    #define JSON_HEDLEY_REQUIRE_CONSTEXPR(expr) (expr)
+-#endif
+-
+-#if defined(JSON_HEDLEY_BEGIN_C_DECLS)
+-    #undef JSON_HEDLEY_BEGIN_C_DECLS
+-#endif
+-#if defined(JSON_HEDLEY_END_C_DECLS)
+-    #undef JSON_HEDLEY_END_C_DECLS
+-#endif
+-#if defined(JSON_HEDLEY_C_DECL)
+-    #undef JSON_HEDLEY_C_DECL
+-#endif
+-#if defined(__cplusplus)
+-    #define JSON_HEDLEY_BEGIN_C_DECLS extern "C" {
+-    #define JSON_HEDLEY_END_C_DECLS }
+-    #define JSON_HEDLEY_C_DECL extern "C"
+-#else
+-    #define JSON_HEDLEY_BEGIN_C_DECLS
+-    #define JSON_HEDLEY_END_C_DECLS
+-    #define JSON_HEDLEY_C_DECL
+-#endif
+-
+-#if defined(JSON_HEDLEY_STATIC_ASSERT)
+-    #undef JSON_HEDLEY_STATIC_ASSERT
+-#endif
+-#if \
+-  !defined(__cplusplus) && ( \
+-      (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)) || \
+-      (JSON_HEDLEY_HAS_FEATURE(c_static_assert) && !defined(JSON_HEDLEY_INTEL_CL_VERSION)) || \
+-      JSON_HEDLEY_GCC_VERSION_CHECK(6,0,0) || \
+-      JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-      defined(_Static_assert) \
+-    )
+-#  define JSON_HEDLEY_STATIC_ASSERT(expr, message) _Static_assert(expr, message)
+-#elif \
+-  (defined(__cplusplus) && (__cplusplus >= 201103L)) || \
+-  JSON_HEDLEY_MSVC_VERSION_CHECK(16,0,0) || \
+-  JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-#  define JSON_HEDLEY_STATIC_ASSERT(expr, message) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(static_assert(expr, message))
+-#else
+-#  define JSON_HEDLEY_STATIC_ASSERT(expr, message)
+-#endif
+-
+-#if defined(JSON_HEDLEY_NULL)
+-    #undef JSON_HEDLEY_NULL
+-#endif
+-#if defined(__cplusplus)
+-    #if __cplusplus >= 201103L
+-        #define JSON_HEDLEY_NULL JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(nullptr)
+-    #elif defined(NULL)
+-        #define JSON_HEDLEY_NULL NULL
+-    #else
+-        #define JSON_HEDLEY_NULL JSON_HEDLEY_STATIC_CAST(void*, 0)
+-    #endif
+-#elif defined(NULL)
+-    #define JSON_HEDLEY_NULL NULL
+-#else
+-    #define JSON_HEDLEY_NULL ((void*) 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MESSAGE)
+-    #undef JSON_HEDLEY_MESSAGE
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas")
+-#  define JSON_HEDLEY_MESSAGE(msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS \
+-    JSON_HEDLEY_PRAGMA(message msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#elif \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(4,4,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-#  define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message msg)
+-#elif JSON_HEDLEY_CRAY_VERSION_CHECK(5,0,0)
+-#  define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(_CRI message msg)
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-#  define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message(msg))
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,0,0)
+-#  define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message(msg))
+-#else
+-#  define JSON_HEDLEY_MESSAGE(msg)
+-#endif
+-
+-#if defined(JSON_HEDLEY_WARNING)
+-    #undef JSON_HEDLEY_WARNING
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas")
+-#  define JSON_HEDLEY_WARNING(msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS \
+-    JSON_HEDLEY_PRAGMA(clang warning msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#elif \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(4,8,0) || \
+-  JSON_HEDLEY_PGI_VERSION_CHECK(18,4,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-#  define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_PRAGMA(GCC warning msg)
+-#elif \
+-  JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) || \
+-  JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-#  define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_PRAGMA(message(msg))
+-#else
+-#  define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_MESSAGE(msg)
+-#endif
+-
+-#if defined(JSON_HEDLEY_REQUIRE)
+-    #undef JSON_HEDLEY_REQUIRE
+-#endif
+-#if defined(JSON_HEDLEY_REQUIRE_MSG)
+-    #undef JSON_HEDLEY_REQUIRE_MSG
+-#endif
+-#if JSON_HEDLEY_HAS_ATTRIBUTE(diagnose_if)
+-#  if JSON_HEDLEY_HAS_WARNING("-Wgcc-compat")
+-#    define JSON_HEDLEY_REQUIRE(expr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wgcc-compat\"") \
+-    __attribute__((diagnose_if(!(expr), #expr, "error"))) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#    define JSON_HEDLEY_REQUIRE_MSG(expr,msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wgcc-compat\"") \
+-    __attribute__((diagnose_if(!(expr), msg, "error"))) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#  else
+-#    define JSON_HEDLEY_REQUIRE(expr) __attribute__((diagnose_if(!(expr), #expr, "error")))
+-#    define JSON_HEDLEY_REQUIRE_MSG(expr,msg) __attribute__((diagnose_if(!(expr), msg, "error")))
+-#  endif
+-#else
+-#  define JSON_HEDLEY_REQUIRE(expr)
+-#  define JSON_HEDLEY_REQUIRE_MSG(expr,msg)
+-#endif
+-
+-#if defined(JSON_HEDLEY_FLAGS)
+-    #undef JSON_HEDLEY_FLAGS
+-#endif
+-#if JSON_HEDLEY_HAS_ATTRIBUTE(flag_enum) && (!defined(__cplusplus) || JSON_HEDLEY_HAS_WARNING("-Wbitfield-enum-conversion"))
+-    #define JSON_HEDLEY_FLAGS __attribute__((__flag_enum__))
+-#else
+-    #define JSON_HEDLEY_FLAGS
+-#endif
+-
+-#if defined(JSON_HEDLEY_FLAGS_CAST)
+-    #undef JSON_HEDLEY_FLAGS_CAST
+-#endif
+-#if JSON_HEDLEY_INTEL_VERSION_CHECK(19,0,0)
+-#  define JSON_HEDLEY_FLAGS_CAST(T, expr) (__extension__ ({ \
+-        JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-        _Pragma("warning(disable:188)") \
+-        ((T) (expr)); \
+-        JSON_HEDLEY_DIAGNOSTIC_POP \
+-    }))
+-#else
+-#  define JSON_HEDLEY_FLAGS_CAST(T, expr) JSON_HEDLEY_STATIC_CAST(T, expr)
+-#endif
+-
+-#if defined(JSON_HEDLEY_EMPTY_BASES)
+-    #undef JSON_HEDLEY_EMPTY_BASES
+-#endif
+-#if \
+-    (JSON_HEDLEY_MSVC_VERSION_CHECK(19,0,23918) && !JSON_HEDLEY_MSVC_VERSION_CHECK(20,0,0)) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_EMPTY_BASES __declspec(empty_bases)
+-#else
+-    #define JSON_HEDLEY_EMPTY_BASES
+-#endif
+-
+-/* Remaining macros are deprecated. */
+-
+-#if defined(JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK)
+-    #undef JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK
+-#endif
+-#if defined(__clang__)
+-    #define JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK(major,minor,patch) (0)
+-#else
+-    #define JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK(major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_ATTRIBUTE)
+-    #undef JSON_HEDLEY_CLANG_HAS_ATTRIBUTE
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_ATTRIBUTE(attribute)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE)
+-    #undef JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_BUILTIN)
+-    #undef JSON_HEDLEY_CLANG_HAS_BUILTIN
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_BUILTIN(builtin) JSON_HEDLEY_HAS_BUILTIN(builtin)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_FEATURE)
+-    #undef JSON_HEDLEY_CLANG_HAS_FEATURE
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_FEATURE(feature) JSON_HEDLEY_HAS_FEATURE(feature)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_EXTENSION)
+-    #undef JSON_HEDLEY_CLANG_HAS_EXTENSION
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_EXTENSION(extension) JSON_HEDLEY_HAS_EXTENSION(extension)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE)
+-    #undef JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_DECLSPEC_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_WARNING)
+-    #undef JSON_HEDLEY_CLANG_HAS_WARNING
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_WARNING(warning) JSON_HEDLEY_HAS_WARNING(warning)
+-
+-#endif /* !defined(JSON_HEDLEY_VERSION) || (JSON_HEDLEY_VERSION < X) */
+-
+-// #include <nlohmann/detail/meta/detected.hpp>
+-
+-
+-#include <type_traits>
+-
+-// #include <nlohmann/detail/meta/void_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename ...Ts> struct make_void
+-{
+-    using type = void;
+-};
+-template<typename ...Ts> using void_t = typename make_void<Ts...>::type;
+-} // namespace detail
+-}  // namespace nlohmann
+-
+-
+-// https://en.cppreference.com/w/cpp/experimental/is_detected
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-struct nonesuch
+-{
+-    nonesuch() = delete;
+-    ~nonesuch() = delete;
+-    nonesuch(nonesuch const&) = delete;
+-    nonesuch(nonesuch const&&) = delete;
+-    void operator=(nonesuch const&) = delete;
+-    void operator=(nonesuch&&) = delete;
+-};
+-
+-template<class Default,
+-         class AlwaysVoid,
+-         template<class...> class Op,
+-         class... Args>
+-struct detector
+-{
+-    using value_t = std::false_type;
+-    using type = Default;
+-};
+-
+-template<class Default, template<class...> class Op, class... Args>
+-struct detector<Default, void_t<Op<Args...>>, Op, Args...>
+-{
+-    using value_t = std::true_type;
+-    using type = Op<Args...>;
+-};
+-
+-template<template<class...> class Op, class... Args>
+-using is_detected = typename detector<nonesuch, void, Op, Args...>::value_t;
+-
+-template<template<class...> class Op, class... Args>
+-struct is_detected_lazy : is_detected<Op, Args...> { };
+-
+-template<template<class...> class Op, class... Args>
+-using detected_t = typename detector<nonesuch, void, Op, Args...>::type;
+-
+-template<class Default, template<class...> class Op, class... Args>
+-using detected_or = detector<Default, void, Op, Args...>;
+-
+-template<class Default, template<class...> class Op, class... Args>
+-using detected_or_t = typename detected_or<Default, Op, Args...>::type;
+-
+-template<class Expected, template<class...> class Op, class... Args>
+-using is_detected_exact = std::is_same<Expected, detected_t<Op, Args...>>;
+-
+-template<class To, template<class...> class Op, class... Args>
+-using is_detected_convertible =
+-    std::is_convertible<detected_t<Op, Args...>, To>;
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-
+-// This file contains all internal macro definitions
+-// You MUST include macro_unscope.hpp at the end of json.hpp to undef all of them
+-
+-// exclude unsupported compilers
+-#if !defined(JSON_SKIP_UNSUPPORTED_COMPILER_CHECK)
+-    #if defined(__clang__)
+-        #if (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__) < 30400
+-            #error "unsupported Clang version - see https://github.com/nlohmann/json#supported-compilers"
+-        #endif
+-    #elif defined(__GNUC__) && !(defined(__ICC) || defined(__INTEL_COMPILER))
+-        #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) < 40800
+-            #error "unsupported GCC version - see https://github.com/nlohmann/json#supported-compilers"
+-        #endif
+-    #endif
+-#endif
+-
+-// C++ language standard detection
+-// if the user manually specified the used c++ version this is skipped
+-#if !defined(JSON_HAS_CPP_20) && !defined(JSON_HAS_CPP_17) && !defined(JSON_HAS_CPP_14) && !defined(JSON_HAS_CPP_11)
+-    #if (defined(__cplusplus) && __cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L)
+-        #define JSON_HAS_CPP_20
+-        #define JSON_HAS_CPP_17
+-        #define JSON_HAS_CPP_14
+-    #elif (defined(__cplusplus) && __cplusplus >= 201703L) || (defined(_HAS_CXX17) && _HAS_CXX17 == 1) // fix for issue #464
+-        #define JSON_HAS_CPP_17
+-        #define JSON_HAS_CPP_14
+-    #elif (defined(__cplusplus) && __cplusplus >= 201402L) || (defined(_HAS_CXX14) && _HAS_CXX14 == 1)
+-        #define JSON_HAS_CPP_14
+-    #endif
+-    // the cpp 11 flag is always specified because it is the minimal required version
+-    #define JSON_HAS_CPP_11
+-#endif
+-
+-#if !defined(JSON_HAS_FILESYSTEM) && !defined(JSON_HAS_EXPERIMENTAL_FILESYSTEM)
+-    #ifdef JSON_HAS_CPP_17
+-        #if defined(__cpp_lib_filesystem)
+-            #define JSON_HAS_FILESYSTEM 1
+-        #elif defined(__cpp_lib_experimental_filesystem)
+-            #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1
+-        #elif !defined(__has_include)
+-            #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1
+-        #elif __has_include(<filesystem>)
+-            #define JSON_HAS_FILESYSTEM 1
+-        #elif __has_include(<experimental/filesystem>)
+-            #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1
+-        #endif
+-
+-        // std::filesystem does not work on MinGW GCC 8: https://sourceforge.net/p/mingw-w64/bugs/737/
+-        #if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ == 8
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before GCC 8: https://en.cppreference.com/w/cpp/compiler_support
+-        #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before Clang 7: https://en.cppreference.com/w/cpp/compiler_support
+-        #if defined(__clang_major__) && __clang_major__ < 7
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before MSVC 19.14: https://en.cppreference.com/w/cpp/compiler_support
+-        #if defined(_MSC_VER) && _MSC_VER < 1940
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before iOS 13
+-        #if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED < 130000
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before macOS Catalina
+-        #if defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101500
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-    #endif
+-#endif
+-
+-#ifndef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-    #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 0
+-#endif
+-
+-#ifndef JSON_HAS_FILESYSTEM
+-    #define JSON_HAS_FILESYSTEM 0
+-#endif
+-
+-// disable documentation warnings on clang
+-#if defined(__clang__)
+-    #pragma clang diagnostic push
+-    #pragma clang diagnostic ignored "-Wdocumentation"
+-    #pragma clang diagnostic ignored "-Wdocumentation-unknown-command"
+-#endif
+-
+-// allow disabling exceptions
+-#if (defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND)) && !defined(JSON_NOEXCEPTION)
+-    #define JSON_THROW(exception) throw exception
+-    #define JSON_TRY try
+-    #define JSON_CATCH(exception) catch(exception)
+-    #define JSON_INTERNAL_CATCH(exception) catch(exception)
+-#else
+-    #include <cstdlib>
+-    #define JSON_THROW(exception) std::abort()
+-    #define JSON_TRY if(true)
+-    #define JSON_CATCH(exception) if(false)
+-    #define JSON_INTERNAL_CATCH(exception) if(false)
+-#endif
+-
+-// override exception macros
+-#if defined(JSON_THROW_USER)
+-    #undef JSON_THROW
+-    #define JSON_THROW JSON_THROW_USER
+-#endif
+-#if defined(JSON_TRY_USER)
+-    #undef JSON_TRY
+-    #define JSON_TRY JSON_TRY_USER
+-#endif
+-#if defined(JSON_CATCH_USER)
+-    #undef JSON_CATCH
+-    #define JSON_CATCH JSON_CATCH_USER
+-    #undef JSON_INTERNAL_CATCH
+-    #define JSON_INTERNAL_CATCH JSON_CATCH_USER
+-#endif
+-#if defined(JSON_INTERNAL_CATCH_USER)
+-    #undef JSON_INTERNAL_CATCH
+-    #define JSON_INTERNAL_CATCH JSON_INTERNAL_CATCH_USER
+-#endif
+-
+-// allow overriding assert
+-#if !defined(JSON_ASSERT)
+-    #include <cassert> // assert
+-    #define JSON_ASSERT(x) assert(x)
+-#endif
+-
+-// allow to access some private functions (needed by the test suite)
+-#if defined(JSON_TESTS_PRIVATE)
+-    #define JSON_PRIVATE_UNLESS_TESTED public
+-#else
+-    #define JSON_PRIVATE_UNLESS_TESTED private
+-#endif
+-
+-/*!
+-@brief macro to briefly define a mapping between an enum and JSON
+-@def NLOHMANN_JSON_SERIALIZE_ENUM
+-@since version 3.4.0
+-*/
+-#define NLOHMANN_JSON_SERIALIZE_ENUM(ENUM_TYPE, ...)                                            \
+-    template<typename BasicJsonType>                                                            \
+-    inline void to_json(BasicJsonType& j, const ENUM_TYPE& e)                                   \
+-    {                                                                                           \
+-        static_assert(std::is_enum<ENUM_TYPE>::value, #ENUM_TYPE " must be an enum!");          \
+-        static const std::pair<ENUM_TYPE, BasicJsonType> m[] = __VA_ARGS__;                     \
+-        auto it = std::find_if(std::begin(m), std::end(m),                                      \
+-                               [e](const std::pair<ENUM_TYPE, BasicJsonType>& ej_pair) -> bool  \
+-        {                                                                                       \
+-            return ej_pair.first == e;                                                          \
+-        });                                                                                     \
+-        j = ((it != std::end(m)) ? it : std::begin(m))->second;                                 \
+-    }                                                                                           \
+-    template<typename BasicJsonType>                                                            \
+-    inline void from_json(const BasicJsonType& j, ENUM_TYPE& e)                                 \
+-    {                                                                                           \
+-        static_assert(std::is_enum<ENUM_TYPE>::value, #ENUM_TYPE " must be an enum!");          \
+-        static const std::pair<ENUM_TYPE, BasicJsonType> m[] = __VA_ARGS__;                     \
+-        auto it = std::find_if(std::begin(m), std::end(m),                                      \
+-                               [&j](const std::pair<ENUM_TYPE, BasicJsonType>& ej_pair) -> bool \
+-        {                                                                                       \
+-            return ej_pair.second == j;                                                         \
+-        });                                                                                     \
+-        e = ((it != std::end(m)) ? it : std::begin(m))->first;                                  \
+-    }
+-
+-// Ugly macros to avoid uglier copy-paste when specializing basic_json. They
+-// may be removed in the future once the class is split.
+-
+-#define NLOHMANN_BASIC_JSON_TPL_DECLARATION                                \
+-    template<template<typename, typename, typename...> class ObjectType,   \
+-             template<typename, typename...> class ArrayType,              \
+-             class StringType, class BooleanType, class NumberIntegerType, \
+-             class NumberUnsignedType, class NumberFloatType,              \
+-             template<typename> class AllocatorType,                       \
+-             template<typename, typename = void> class JSONSerializer,     \
+-             class BinaryType>
+-
+-#define NLOHMANN_BASIC_JSON_TPL                                            \
+-    basic_json<ObjectType, ArrayType, StringType, BooleanType,             \
+-    NumberIntegerType, NumberUnsignedType, NumberFloatType,                \
+-    AllocatorType, JSONSerializer, BinaryType>
+-
+-// Macros to simplify conversion from/to types
+-
+-#define NLOHMANN_JSON_EXPAND( x ) x
+-#define NLOHMANN_JSON_GET_MACRO(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, NAME,...) NAME
+-#define NLOHMANN_JSON_PASTE(...) NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_GET_MACRO(__VA_ARGS__, \
+-        NLOHMANN_JSON_PASTE64, \
+-        NLOHMANN_JSON_PASTE63, \
+-        NLOHMANN_JSON_PASTE62, \
+-        NLOHMANN_JSON_PASTE61, \
+-        NLOHMANN_JSON_PASTE60, \
+-        NLOHMANN_JSON_PASTE59, \
+-        NLOHMANN_JSON_PASTE58, \
+-        NLOHMANN_JSON_PASTE57, \
+-        NLOHMANN_JSON_PASTE56, \
+-        NLOHMANN_JSON_PASTE55, \
+-        NLOHMANN_JSON_PASTE54, \
+-        NLOHMANN_JSON_PASTE53, \
+-        NLOHMANN_JSON_PASTE52, \
+-        NLOHMANN_JSON_PASTE51, \
+-        NLOHMANN_JSON_PASTE50, \
+-        NLOHMANN_JSON_PASTE49, \
+-        NLOHMANN_JSON_PASTE48, \
+-        NLOHMANN_JSON_PASTE47, \
+-        NLOHMANN_JSON_PASTE46, \
+-        NLOHMANN_JSON_PASTE45, \
+-        NLOHMANN_JSON_PASTE44, \
+-        NLOHMANN_JSON_PASTE43, \
+-        NLOHMANN_JSON_PASTE42, \
+-        NLOHMANN_JSON_PASTE41, \
+-        NLOHMANN_JSON_PASTE40, \
+-        NLOHMANN_JSON_PASTE39, \
+-        NLOHMANN_JSON_PASTE38, \
+-        NLOHMANN_JSON_PASTE37, \
+-        NLOHMANN_JSON_PASTE36, \
+-        NLOHMANN_JSON_PASTE35, \
+-        NLOHMANN_JSON_PASTE34, \
+-        NLOHMANN_JSON_PASTE33, \
+-        NLOHMANN_JSON_PASTE32, \
+-        NLOHMANN_JSON_PASTE31, \
+-        NLOHMANN_JSON_PASTE30, \
+-        NLOHMANN_JSON_PASTE29, \
+-        NLOHMANN_JSON_PASTE28, \
+-        NLOHMANN_JSON_PASTE27, \
+-        NLOHMANN_JSON_PASTE26, \
+-        NLOHMANN_JSON_PASTE25, \
+-        NLOHMANN_JSON_PASTE24, \
+-        NLOHMANN_JSON_PASTE23, \
+-        NLOHMANN_JSON_PASTE22, \
+-        NLOHMANN_JSON_PASTE21, \
+-        NLOHMANN_JSON_PASTE20, \
+-        NLOHMANN_JSON_PASTE19, \
+-        NLOHMANN_JSON_PASTE18, \
+-        NLOHMANN_JSON_PASTE17, \
+-        NLOHMANN_JSON_PASTE16, \
+-        NLOHMANN_JSON_PASTE15, \
+-        NLOHMANN_JSON_PASTE14, \
+-        NLOHMANN_JSON_PASTE13, \
+-        NLOHMANN_JSON_PASTE12, \
+-        NLOHMANN_JSON_PASTE11, \
+-        NLOHMANN_JSON_PASTE10, \
+-        NLOHMANN_JSON_PASTE9, \
+-        NLOHMANN_JSON_PASTE8, \
+-        NLOHMANN_JSON_PASTE7, \
+-        NLOHMANN_JSON_PASTE6, \
+-        NLOHMANN_JSON_PASTE5, \
+-        NLOHMANN_JSON_PASTE4, \
+-        NLOHMANN_JSON_PASTE3, \
+-        NLOHMANN_JSON_PASTE2, \
+-        NLOHMANN_JSON_PASTE1)(__VA_ARGS__))
+-#define NLOHMANN_JSON_PASTE2(func, v1) func(v1)
+-#define NLOHMANN_JSON_PASTE3(func, v1, v2) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE2(func, v2)
+-#define NLOHMANN_JSON_PASTE4(func, v1, v2, v3) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE3(func, v2, v3)
+-#define NLOHMANN_JSON_PASTE5(func, v1, v2, v3, v4) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE4(func, v2, v3, v4)
+-#define NLOHMANN_JSON_PASTE6(func, v1, v2, v3, v4, v5) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE5(func, v2, v3, v4, v5)
+-#define NLOHMANN_JSON_PASTE7(func, v1, v2, v3, v4, v5, v6) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE6(func, v2, v3, v4, v5, v6)
+-#define NLOHMANN_JSON_PASTE8(func, v1, v2, v3, v4, v5, v6, v7) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE7(func, v2, v3, v4, v5, v6, v7)
+-#define NLOHMANN_JSON_PASTE9(func, v1, v2, v3, v4, v5, v6, v7, v8) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE8(func, v2, v3, v4, v5, v6, v7, v8)
+-#define NLOHMANN_JSON_PASTE10(func, v1, v2, v3, v4, v5, v6, v7, v8, v9) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE9(func, v2, v3, v4, v5, v6, v7, v8, v9)
+-#define NLOHMANN_JSON_PASTE11(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE10(func, v2, v3, v4, v5, v6, v7, v8, v9, v10)
+-#define NLOHMANN_JSON_PASTE12(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE11(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11)
+-#define NLOHMANN_JSON_PASTE13(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE12(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12)
+-#define NLOHMANN_JSON_PASTE14(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE13(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13)
+-#define NLOHMANN_JSON_PASTE15(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE14(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14)
+-#define NLOHMANN_JSON_PASTE16(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE15(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15)
+-#define NLOHMANN_JSON_PASTE17(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE16(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16)
+-#define NLOHMANN_JSON_PASTE18(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE17(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17)
+-#define NLOHMANN_JSON_PASTE19(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE18(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18)
+-#define NLOHMANN_JSON_PASTE20(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE19(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19)
+-#define NLOHMANN_JSON_PASTE21(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE20(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20)
+-#define NLOHMANN_JSON_PASTE22(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE21(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21)
+-#define NLOHMANN_JSON_PASTE23(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE22(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22)
+-#define NLOHMANN_JSON_PASTE24(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE23(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23)
+-#define NLOHMANN_JSON_PASTE25(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE24(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24)
+-#define NLOHMANN_JSON_PASTE26(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE25(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25)
+-#define NLOHMANN_JSON_PASTE27(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE26(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26)
+-#define NLOHMANN_JSON_PASTE28(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE27(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27)
+-#define NLOHMANN_JSON_PASTE29(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE28(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28)
+-#define NLOHMANN_JSON_PASTE30(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE29(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29)
+-#define NLOHMANN_JSON_PASTE31(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE30(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30)
+-#define NLOHMANN_JSON_PASTE32(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE31(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31)
+-#define NLOHMANN_JSON_PASTE33(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE32(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32)
+-#define NLOHMANN_JSON_PASTE34(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE33(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33)
+-#define NLOHMANN_JSON_PASTE35(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE34(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34)
+-#define NLOHMANN_JSON_PASTE36(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE35(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35)
+-#define NLOHMANN_JSON_PASTE37(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE36(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36)
+-#define NLOHMANN_JSON_PASTE38(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE37(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37)
+-#define NLOHMANN_JSON_PASTE39(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE38(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38)
+-#define NLOHMANN_JSON_PASTE40(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE39(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39)
+-#define NLOHMANN_JSON_PASTE41(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE40(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40)
+-#define NLOHMANN_JSON_PASTE42(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE41(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41)
+-#define NLOHMANN_JSON_PASTE43(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE42(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42)
+-#define NLOHMANN_JSON_PASTE44(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE43(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43)
+-#define NLOHMANN_JSON_PASTE45(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE44(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44)
+-#define NLOHMANN_JSON_PASTE46(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE45(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45)
+-#define NLOHMANN_JSON_PASTE47(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE46(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46)
+-#define NLOHMANN_JSON_PASTE48(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE47(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47)
+-#define NLOHMANN_JSON_PASTE49(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE48(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48)
+-#define NLOHMANN_JSON_PASTE50(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE49(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49)
+-#define NLOHMANN_JSON_PASTE51(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE50(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50)
+-#define NLOHMANN_JSON_PASTE52(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE51(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51)
+-#define NLOHMANN_JSON_PASTE53(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE52(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52)
+-#define NLOHMANN_JSON_PASTE54(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE53(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53)
+-#define NLOHMANN_JSON_PASTE55(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE54(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54)
+-#define NLOHMANN_JSON_PASTE56(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE55(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55)
+-#define NLOHMANN_JSON_PASTE57(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE56(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56)
+-#define NLOHMANN_JSON_PASTE58(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE57(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57)
+-#define NLOHMANN_JSON_PASTE59(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE58(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58)
+-#define NLOHMANN_JSON_PASTE60(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE59(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59)
+-#define NLOHMANN_JSON_PASTE61(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE60(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60)
+-#define NLOHMANN_JSON_PASTE62(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE61(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61)
+-#define NLOHMANN_JSON_PASTE63(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE62(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62)
+-#define NLOHMANN_JSON_PASTE64(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE63(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63)
+-
+-#define NLOHMANN_JSON_TO(v1) nlohmann_json_j[#v1] = nlohmann_json_t.v1;
+-#define NLOHMANN_JSON_FROM(v1) nlohmann_json_j.at(#v1).get_to(nlohmann_json_t.v1);
+-
+-/*!
+-@brief macro
+-@def NLOHMANN_DEFINE_TYPE_INTRUSIVE
+-@since version 3.9.0
+-*/
+-#define NLOHMANN_DEFINE_TYPE_INTRUSIVE(Type, ...)  \
+-    friend void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \
+-    friend void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) }
+-
+-/*!
+-@brief macro
+-@def NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE
+-@since version 3.9.0
+-*/
+-#define NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Type, ...)  \
+-    inline void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \
+-    inline void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) }
+-
+-
+-// inspired from https://stackoverflow.com/a/26745591
+-// allows to call any std function as if (e.g. with begin):
+-// using std::begin; begin(x);
+-//
+-// it allows using the detected idiom to retrieve the return type
+-// of such an expression
+-#define NLOHMANN_CAN_CALL_STD_FUNC_IMPL(std_name)                                 \
+-    namespace detail {                                                            \
+-    using std::std_name;                                                          \
+-    \
+-    template<typename... T>                                                       \
+-    using result_of_##std_name = decltype(std_name(std::declval<T>()...));        \
+-    }                                                                             \
+-    \
+-    namespace detail2 {                                                           \
+-    struct std_name##_tag                                                         \
+-    {                                                                             \
+-    };                                                                            \
+-    \
+-    template<typename... T>                                                       \
+-    std_name##_tag std_name(T&&...);                                              \
+-    \
+-    template<typename... T>                                                       \
+-    using result_of_##std_name = decltype(std_name(std::declval<T>()...));        \
+-    \
+-    template<typename... T>                                                       \
+-    struct would_call_std_##std_name                                              \
+-    {                                                                             \
+-        static constexpr auto const value = ::nlohmann::detail::                  \
+-                                            is_detected_exact<std_name##_tag, result_of_##std_name, T...>::value; \
+-    };                                                                            \
+-    } /* namespace detail2 */ \
+-    \
+-    template<typename... T>                                                       \
+-    struct would_call_std_##std_name : detail2::would_call_std_##std_name<T...>   \
+-    {                                                                             \
+-    }
+-
+-#ifndef JSON_USE_IMPLICIT_CONVERSIONS
+-    #define JSON_USE_IMPLICIT_CONVERSIONS 1
+-#endif
+-
+-#if JSON_USE_IMPLICIT_CONVERSIONS
+-    #define JSON_EXPLICIT
+-#else
+-    #define JSON_EXPLICIT explicit
+-#endif
+-
+-#ifndef JSON_DIAGNOSTICS
+-    #define JSON_DIAGNOSTICS 0
+-#endif
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-/*!
+-@brief replace all occurrences of a substring by another string
+-
+-@param[in,out] s  the string to manipulate; changed so that all
+-               occurrences of @a f are replaced with @a t
+-@param[in]     f  the substring to replace with @a t
+-@param[in]     t  the string to replace @a f
+-
+-@pre The search string @a f must not be empty. **This precondition is
+-enforced with an assertion.**
+-
+-@since version 2.0.0
+-*/
+-inline void replace_substring(std::string& s, const std::string& f,
+-                              const std::string& t)
+-{
+-    JSON_ASSERT(!f.empty());
+-    for (auto pos = s.find(f);                // find first occurrence of f
+-            pos != std::string::npos;         // make sure f was found
+-            s.replace(pos, f.size(), t),      // replace with t, and
+-            pos = s.find(f, pos + t.size()))  // find next occurrence of f
+-    {}
+-}
+-
+-/*!
+- * @brief string escaping as described in RFC 6901 (Sect. 4)
+- * @param[in] s string to escape
+- * @return    escaped string
+- *
+- * Note the order of escaping "~" to "~0" and "/" to "~1" is important.
+- */
+-inline std::string escape(std::string s)
+-{
+-    replace_substring(s, "~", "~0");
+-    replace_substring(s, "/", "~1");
+-    return s;
+-}
+-
+-/*!
+- * @brief string unescaping as described in RFC 6901 (Sect. 4)
+- * @param[in] s string to unescape
+- * @return    unescaped string
+- *
+- * Note the order of escaping "~1" to "/" and "~0" to "~" is important.
+- */
+-static void unescape(std::string& s)
+-{
+-    replace_substring(s, "~1", "/");
+-    replace_substring(s, "~0", "~");
+-}
+-
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/position_t.hpp>
+-
+-
+-#include <cstddef> // size_t
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/// struct to capture the start position of the current token
+-struct position_t
+-{
+-    /// the total number of characters read
+-    std::size_t chars_read_total = 0;
+-    /// the number of characters read in the current line
+-    std::size_t chars_read_current_line = 0;
+-    /// the number of lines read
+-    std::size_t lines_read = 0;
+-
+-    /// conversion to size_t to preserve SAX interface
+-    constexpr operator size_t() const
+-    {
+-        return chars_read_total;
+-    }
+-};
+-
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-////////////////
+-// exceptions //
+-////////////////
+-
+-/// @brief general exception of the @ref basic_json class
+-/// @sa https://json.nlohmann.me/api/basic_json/exception/
+-class exception : public std::exception
+-{
+-  public:
+-    /// returns the explanatory string
+-    const char* what() const noexcept override
+-    {
+-        return m.what();
+-    }
+-
+-    /// the id of the exception
+-    const int id; // NOLINT(cppcoreguidelines-non-private-member-variables-in-classes)
+-
+-  protected:
+-    JSON_HEDLEY_NON_NULL(3)
+-    exception(int id_, const char* what_arg) : id(id_), m(what_arg) {} // NOLINT(bugprone-throw-keyword-missing)
+-
+-    static std::string name(const std::string& ename, int id_)
+-    {
+-        return "[json.exception." + ename + "." + std::to_string(id_) + "] ";
+-    }
+-
+-    template<typename BasicJsonType>
+-    static std::string diagnostics(const BasicJsonType& leaf_element)
+-    {
+-#if JSON_DIAGNOSTICS
+-        std::vector<std::string> tokens;
+-        for (const auto* current = &leaf_element; current->m_parent != nullptr; current = current->m_parent)
+-        {
+-            switch (current->m_parent->type())
+-            {
+-                case value_t::array:
+-                {
+-                    for (std::size_t i = 0; i < current->m_parent->m_value.array->size(); ++i)
+-                    {
+-                        if (&current->m_parent->m_value.array->operator[](i) == current)
+-                        {
+-                            tokens.emplace_back(std::to_string(i));
+-                            break;
+-                        }
+-                    }
+-                    break;
+-                }
+-
+-                case value_t::object:
+-                {
+-                    for (const auto& element : *current->m_parent->m_value.object)
+-                    {
+-                        if (&element.second == current)
+-                        {
+-                            tokens.emplace_back(element.first.c_str());
+-                            break;
+-                        }
+-                    }
+-                    break;
+-                }
+-
+-                case value_t::null: // LCOV_EXCL_LINE
+-                case value_t::string: // LCOV_EXCL_LINE
+-                case value_t::boolean: // LCOV_EXCL_LINE
+-                case value_t::number_integer: // LCOV_EXCL_LINE
+-                case value_t::number_unsigned: // LCOV_EXCL_LINE
+-                case value_t::number_float: // LCOV_EXCL_LINE
+-                case value_t::binary: // LCOV_EXCL_LINE
+-                case value_t::discarded: // LCOV_EXCL_LINE
+-                default:   // LCOV_EXCL_LINE
+-                    break; // LCOV_EXCL_LINE
+-            }
+-        }
+-
+-        if (tokens.empty())
+-        {
+-            return "";
+-        }
+-
+-        return "(" + std::accumulate(tokens.rbegin(), tokens.rend(), std::string{},
+-                                     [](const std::string & a, const std::string & b)
+-        {
+-            return a + "/" + detail::escape(b);
+-        }) + ") ";
+-#else
+-        static_cast<void>(leaf_element);
+-        return "";
+-#endif
+-    }
+-
+-  private:
+-    /// an exception object as storage for error messages
+-    std::runtime_error m;
+-};
+-
+-/// @brief exception indicating a parse error
+-/// @sa https://json.nlohmann.me/api/basic_json/parse_error/
+-class parse_error : public exception
+-{
+-  public:
+-    /*!
+-    @brief create a parse error exception
+-    @param[in] id_       the id of the exception
+-    @param[in] pos       the position where the error occurred (or with
+-                         chars_read_total=0 if the position cannot be
+-                         determined)
+-    @param[in] what_arg  the explanatory string
+-    @return parse_error object
+-    */
+-    template<typename BasicJsonType>
+-    static parse_error create(int id_, const position_t& pos, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("parse_error", id_) + "parse error" +
+-                        position_string(pos) + ": " + exception::diagnostics(context) + what_arg;
+-        return {id_, pos.chars_read_total, w.c_str()};
+-    }
+-
+-    template<typename BasicJsonType>
+-    static parse_error create(int id_, std::size_t byte_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("parse_error", id_) + "parse error" +
+-                        (byte_ != 0 ? (" at byte " + std::to_string(byte_)) : "") +
+-                        ": " + exception::diagnostics(context) + what_arg;
+-        return {id_, byte_, w.c_str()};
+-    }
+-
+-    /*!
+-    @brief byte index of the parse error
+-
+-    The byte index of the last read character in the input file.
+-
+-    @note For an input with n bytes, 1 is the index of the first character and
+-          n+1 is the index of the terminating null byte or the end of file.
+-          This also holds true when reading a byte vector (CBOR or MessagePack).
+-    */
+-    const std::size_t byte;
+-
+-  private:
+-    parse_error(int id_, std::size_t byte_, const char* what_arg)
+-        : exception(id_, what_arg), byte(byte_) {}
+-
+-    static std::string position_string(const position_t& pos)
+-    {
+-        return " at line " + std::to_string(pos.lines_read + 1) +
+-               ", column " + std::to_string(pos.chars_read_current_line);
+-    }
+-};
+-
+-/// @brief exception indicating errors with iterators
+-/// @sa https://json.nlohmann.me/api/basic_json/invalid_iterator/
+-class invalid_iterator : public exception
+-{
+-  public:
+-    template<typename BasicJsonType>
+-    static invalid_iterator create(int id_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("invalid_iterator", id_) + exception::diagnostics(context) + what_arg;
+-        return {id_, w.c_str()};
+-    }
+-
+-  private:
+-    JSON_HEDLEY_NON_NULL(3)
+-    invalid_iterator(int id_, const char* what_arg)
+-        : exception(id_, what_arg) {}
+-};
+-
+-/// @brief exception indicating executing a member function with a wrong type
+-/// @sa https://json.nlohmann.me/api/basic_json/type_error/
+-class type_error : public exception
+-{
+-  public:
+-    template<typename BasicJsonType>
+-    static type_error create(int id_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("type_error", id_) + exception::diagnostics(context) + what_arg;
+-        return {id_, w.c_str()};
+-    }
+-
+-  private:
+-    JSON_HEDLEY_NON_NULL(3)
+-    type_error(int id_, const char* what_arg) : exception(id_, what_arg) {}
+-};
+-
+-/// @brief exception indicating access out of the defined range
+-/// @sa https://json.nlohmann.me/api/basic_json/out_of_range/
+-class out_of_range : public exception
+-{
+-  public:
+-    template<typename BasicJsonType>
+-    static out_of_range create(int id_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("out_of_range", id_) + exception::diagnostics(context) + what_arg;
+-        return {id_, w.c_str()};
+-    }
+-
+-  private:
+-    JSON_HEDLEY_NON_NULL(3)
+-    out_of_range(int id_, const char* what_arg) : exception(id_, what_arg) {}
+-};
+-
+-/// @brief exception indicating other library errors
+-/// @sa https://json.nlohmann.me/api/basic_json/other_error/
+-class other_error : public exception
+-{
+-  public:
+-    template<typename BasicJsonType>
+-    static other_error create(int id_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("other_error", id_) + exception::diagnostics(context) + what_arg;
+-        return {id_, w.c_str()};
+-    }
+-
+-  private:
+-    JSON_HEDLEY_NON_NULL(3)
+-    other_error(int id_, const char* what_arg) : exception(id_, what_arg) {}
+-};
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-
+-#include <cstddef> // size_t
+-#include <type_traits> // conditional, enable_if, false_type, integral_constant, is_constructible, is_integral, is_same, remove_cv, remove_reference, true_type
+-#include <utility> // index_sequence, make_index_sequence, index_sequence_for
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-template<typename T>
+-using uncvref_t = typename std::remove_cv<typename std::remove_reference<T>::type>::type;
+-
+-#ifdef JSON_HAS_CPP_14
+-
+-// the following utilities are natively available in C++14
+-using std::enable_if_t;
+-using std::index_sequence;
+-using std::make_index_sequence;
+-using std::index_sequence_for;
+-
+-#else
+-
+-// alias templates to reduce boilerplate
+-template<bool B, typename T = void>
+-using enable_if_t = typename std::enable_if<B, T>::type;
+-
+-// The following code is taken from https://github.com/abseil/abseil-cpp/blob/10cb35e459f5ecca5b2ff107635da0bfa41011b4/absl/utility/utility.h
+-// which is part of Google Abseil (https://github.com/abseil/abseil-cpp), licensed under the Apache License 2.0.
+-
+-//// START OF CODE FROM GOOGLE ABSEIL
+-
+-// integer_sequence
+-//
+-// Class template representing a compile-time integer sequence. An instantiation
+-// of `integer_sequence<T, Ints...>` has a sequence of integers encoded in its
+-// type through its template arguments (which is a common need when
+-// working with C++11 variadic templates). `absl::integer_sequence` is designed
+-// to be a drop-in replacement for C++14's `std::integer_sequence`.
+-//
+-// Example:
+-//
+-//   template< class T, T... Ints >
+-//   void user_function(integer_sequence<T, Ints...>);
+-//
+-//   int main()
+-//   {
+-//     // user_function's `T` will be deduced to `int` and `Ints...`
+-//     // will be deduced to `0, 1, 2, 3, 4`.
+-//     user_function(make_integer_sequence<int, 5>());
+-//   }
+-template <typename T, T... Ints>
+-struct integer_sequence
+-{
+-    using value_type = T;
+-    static constexpr std::size_t size() noexcept
+-    {
+-        return sizeof...(Ints);
+-    }
+-};
+-
+-// index_sequence
+-//
+-// A helper template for an `integer_sequence` of `size_t`,
+-// `absl::index_sequence` is designed to be a drop-in replacement for C++14's
+-// `std::index_sequence`.
+-template <size_t... Ints>
+-using index_sequence = integer_sequence<size_t, Ints...>;
+-
+-namespace utility_internal
+-{
+-
+-template <typename Seq, size_t SeqSize, size_t Rem>
+-struct Extend;
+-
+-// Note that SeqSize == sizeof...(Ints). It's passed explicitly for efficiency.
+-template <typename T, T... Ints, size_t SeqSize>
+-struct Extend<integer_sequence<T, Ints...>, SeqSize, 0>
+-{
+-    using type = integer_sequence < T, Ints..., (Ints + SeqSize)... >;
+-};
+-
+-template <typename T, T... Ints, size_t SeqSize>
+-struct Extend<integer_sequence<T, Ints...>, SeqSize, 1>
+-{
+-    using type = integer_sequence < T, Ints..., (Ints + SeqSize)..., 2 * SeqSize >;
+-};
+-
+-// Recursion helper for 'make_integer_sequence<T, N>'.
+-// 'Gen<T, N>::type' is an alias for 'integer_sequence<T, 0, 1, ... N-1>'.
+-template <typename T, size_t N>
+-struct Gen
+-{
+-    using type =
+-        typename Extend < typename Gen < T, N / 2 >::type, N / 2, N % 2 >::type;
+-};
+-
+-template <typename T>
+-struct Gen<T, 0>
+-{
+-    using type = integer_sequence<T>;
+-};
+-
+-}  // namespace utility_internal
+-
+-// Compile-time sequences of integers
+-
+-// make_integer_sequence
+-//
+-// This template alias is equivalent to
+-// `integer_sequence<int, 0, 1, ..., N-1>`, and is designed to be a drop-in
+-// replacement for C++14's `std::make_integer_sequence`.
+-template <typename T, T N>
+-using make_integer_sequence = typename utility_internal::Gen<T, N>::type;
+-
+-// make_index_sequence
+-//
+-// This template alias is equivalent to `index_sequence<0, 1, ..., N-1>`,
+-// and is designed to be a drop-in replacement for C++14's
+-// `std::make_index_sequence`.
+-template <size_t N>
+-using make_index_sequence = make_integer_sequence<size_t, N>;
+-
+-// index_sequence_for
+-//
+-// Converts a typename pack into an index sequence of the same length, and
+-// is designed to be a drop-in replacement for C++14's
+-// `std::index_sequence_for()`
+-template <typename... Ts>
+-using index_sequence_for = make_index_sequence<sizeof...(Ts)>;
+-
+-//// END OF CODE FROM GOOGLE ABSEIL
+-
+-#endif
+-
+-// dispatch utility (taken from ranges-v3)
+-template<unsigned N> struct priority_tag : priority_tag < N - 1 > {};
+-template<> struct priority_tag<0> {};
+-
+-// taken from ranges-v3
+-template<typename T>
+-struct static_const
+-{
+-    static constexpr T value{};
+-};
+-
+-template<typename T>
+-constexpr T static_const<T>::value; // NOLINT(readability-redundant-declaration)
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/identity_tag.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-// dispatching helper struct
+-template <class T> struct identity_tag {};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-
+-#include <limits> // numeric_limits
+-#include <type_traits> // false_type, is_constructible, is_integral, is_same, true_type
+-#include <utility> // declval
+-#include <tuple> // tuple
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-// #include <nlohmann/detail/iterators/iterator_traits.hpp>
+-
+-
+-#include <iterator> // random_access_iterator_tag
+-
+-// #include <nlohmann/detail/meta/void_t.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename It, typename = void>
+-struct iterator_types {};
+-
+-template<typename It>
+-struct iterator_types <
+-    It,
+-    void_t<typename It::difference_type, typename It::value_type, typename It::pointer,
+-    typename It::reference, typename It::iterator_category >>
+-{
+-    using difference_type = typename It::difference_type;
+-    using value_type = typename It::value_type;
+-    using pointer = typename It::pointer;
+-    using reference = typename It::reference;
+-    using iterator_category = typename It::iterator_category;
+-};
+-
+-// This is required as some compilers implement std::iterator_traits in a way that
+-// doesn't work with SFINAE. See https://github.com/nlohmann/json/issues/1341.
+-template<typename T, typename = void>
+-struct iterator_traits
+-{
+-};
+-
+-template<typename T>
+-struct iterator_traits < T, enable_if_t < !std::is_pointer<T>::value >>
+-            : iterator_types<T>
+-{
+-};
+-
+-template<typename T>
+-struct iterator_traits<T*, enable_if_t<std::is_object<T>::value>>
+-{
+-    using iterator_category = std::random_access_iterator_tag;
+-    using value_type = T;
+-    using difference_type = ptrdiff_t;
+-    using pointer = T*;
+-    using reference = T&;
+-};
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/call_std/begin.hpp>
+-
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-NLOHMANN_CAN_CALL_STD_FUNC_IMPL(begin);
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/call_std/end.hpp>
+-
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-NLOHMANN_CAN_CALL_STD_FUNC_IMPL(end);
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/meta/detected.hpp>
+-
+-// #include <nlohmann/json_fwd.hpp>
+-#ifndef INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-#define INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-
+-#include <cstdint> // int64_t, uint64_t
+-#include <map> // map
+-#include <memory> // allocator
+-#include <string> // string
+-#include <vector> // vector
+-
+-/*!
+-@brief namespace for Niels Lohmann
+-@see https://github.com/nlohmann
+-@since version 1.0.0
+-*/
+-namespace nlohmann
+-{
+-/*!
+-@brief default JSONSerializer template argument
+-
+-This serializer ignores the template arguments and uses ADL
+-([argument-dependent lookup](https://en.cppreference.com/w/cpp/language/adl))
+-for serialization.
+-*/
+-template<typename T = void, typename SFINAE = void>
+-struct adl_serializer;
+-
+-/// a class to store JSON values
+-/// @sa https://json.nlohmann.me/api/basic_json/
+-template<template<typename U, typename V, typename... Args> class ObjectType =
+-         std::map,
+-         template<typename U, typename... Args> class ArrayType = std::vector,
+-         class StringType = std::string, class BooleanType = bool,
+-         class NumberIntegerType = std::int64_t,
+-         class NumberUnsignedType = std::uint64_t,
+-         class NumberFloatType = double,
+-         template<typename U> class AllocatorType = std::allocator,
+-         template<typename T, typename SFINAE = void> class JSONSerializer =
+-         adl_serializer,
+-         class BinaryType = std::vector<std::uint8_t>>
+-class basic_json;
+-
+-/// @brief JSON Pointer defines a string syntax for identifying a specific value within a JSON document
+-/// @sa https://json.nlohmann.me/api/json_pointer/
+-template<typename BasicJsonType>
+-class json_pointer;
+-
+-/*!
+-@brief default specialization
+-@sa https://json.nlohmann.me/api/json/
+-*/
+-using json = basic_json<>;
+-
+-/// @brief a minimal map-like container that preserves insertion order
+-/// @sa https://json.nlohmann.me/api/ordered_map/
+-template<class Key, class T, class IgnoredLess, class Allocator>
+-struct ordered_map;
+-
+-/// @brief specialization that maintains the insertion order of object keys
+-/// @sa https://json.nlohmann.me/api/ordered_json/
+-using ordered_json = basic_json<nlohmann::ordered_map>;
+-
+-}  // namespace nlohmann
+-
+-#endif  // INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-
+-
+-namespace nlohmann
+-{
+-/*!
+-@brief detail namespace with internal helper functions
+-
+-This namespace collects functions that should not be exposed,
+-implementations of some @ref basic_json methods, and meta-programming helpers.
+-
+-@since version 2.1.0
+-*/
+-namespace detail
+-{
+-/////////////
+-// helpers //
+-/////////////
+-
+-// Note to maintainers:
+-//
+-// Every trait in this file expects a non CV-qualified type.
+-// The only exceptions are in the 'aliases for detected' section
+-// (i.e. those of the form: decltype(T::member_function(std::declval<T>())))
+-//
+-// In this case, T has to be properly CV-qualified to constraint the function arguments
+-// (e.g. to_json(BasicJsonType&, const T&))
+-
+-template<typename> struct is_basic_json : std::false_type {};
+-
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-struct is_basic_json<NLOHMANN_BASIC_JSON_TPL> : std::true_type {};
+-
+-//////////////////////
+-// json_ref helpers //
+-//////////////////////
+-
+-template<typename>
+-class json_ref;
+-
+-template<typename>
+-struct is_json_ref : std::false_type {};
+-
+-template<typename T>
+-struct is_json_ref<json_ref<T>> : std::true_type {};
+-
+-//////////////////////////
+-// aliases for detected //
+-//////////////////////////
+-
+-template<typename T>
+-using mapped_type_t = typename T::mapped_type;
+-
+-template<typename T>
+-using key_type_t = typename T::key_type;
+-
+-template<typename T>
+-using value_type_t = typename T::value_type;
+-
+-template<typename T>
+-using difference_type_t = typename T::difference_type;
+-
+-template<typename T>
+-using pointer_t = typename T::pointer;
+-
+-template<typename T>
+-using reference_t = typename T::reference;
+-
+-template<typename T>
+-using iterator_category_t = typename T::iterator_category;
+-
+-template<typename T, typename... Args>
+-using to_json_function = decltype(T::to_json(std::declval<Args>()...));
+-
+-template<typename T, typename... Args>
+-using from_json_function = decltype(T::from_json(std::declval<Args>()...));
+-
+-template<typename T, typename U>
+-using get_template_function = decltype(std::declval<T>().template get<U>());
+-
+-// trait checking if JSONSerializer<T>::from_json(json const&, udt&) exists
+-template<typename BasicJsonType, typename T, typename = void>
+-struct has_from_json : std::false_type {};
+-
+-// trait checking if j.get<T> is valid
+-// use this trait instead of std::is_constructible or std::is_convertible,
+-// both rely on, or make use of implicit conversions, and thus fail when T
+-// has several constructors/operator= (see https://github.com/nlohmann/json/issues/958)
+-template <typename BasicJsonType, typename T>
+-struct is_getable
+-{
+-    static constexpr bool value = is_detected<get_template_function, const BasicJsonType&, T>::value;
+-};
+-
+-template<typename BasicJsonType, typename T>
+-struct has_from_json < BasicJsonType, T, enable_if_t < !is_basic_json<T>::value >>
+-{
+-    using serializer = typename BasicJsonType::template json_serializer<T, void>;
+-
+-    static constexpr bool value =
+-        is_detected_exact<void, from_json_function, serializer,
+-        const BasicJsonType&, T&>::value;
+-};
+-
+-// This trait checks if JSONSerializer<T>::from_json(json const&) exists
+-// this overload is used for non-default-constructible user-defined-types
+-template<typename BasicJsonType, typename T, typename = void>
+-struct has_non_default_from_json : std::false_type {};
+-
+-template<typename BasicJsonType, typename T>
+-struct has_non_default_from_json < BasicJsonType, T, enable_if_t < !is_basic_json<T>::value >>
+-{
+-    using serializer = typename BasicJsonType::template json_serializer<T, void>;
+-
+-    static constexpr bool value =
+-        is_detected_exact<T, from_json_function, serializer,
+-        const BasicJsonType&>::value;
+-};
+-
+-// This trait checks if BasicJsonType::json_serializer<T>::to_json exists
+-// Do not evaluate the trait when T is a basic_json type, to avoid template instantiation infinite recursion.
+-template<typename BasicJsonType, typename T, typename = void>
+-struct has_to_json : std::false_type {};
+-
+-template<typename BasicJsonType, typename T>
+-struct has_to_json < BasicJsonType, T, enable_if_t < !is_basic_json<T>::value >>
+-{
+-    using serializer = typename BasicJsonType::template json_serializer<T, void>;
+-
+-    static constexpr bool value =
+-        is_detected_exact<void, to_json_function, serializer, BasicJsonType&,
+-        T>::value;
+-};
+-
+-
+-///////////////////
+-// is_ functions //
+-///////////////////
+-
+-// https://en.cppreference.com/w/cpp/types/conjunction
+-template<class...> struct conjunction : std::true_type { };
+-template<class B1> struct conjunction<B1> : B1 { };
+-template<class B1, class... Bn>
+-struct conjunction<B1, Bn...>
+-: std::conditional<bool(B1::value), conjunction<Bn...>, B1>::type {};
+-
+-// https://en.cppreference.com/w/cpp/types/negation
+-template<class B> struct negation : std::integral_constant < bool, !B::value > { };
+-
+-// Reimplementation of is_constructible and is_default_constructible, due to them being broken for
+-// std::pair and std::tuple until LWG 2367 fix (see https://cplusplus.github.io/LWG/lwg-defects.html#2367).
+-// This causes compile errors in e.g. clang 3.5 or gcc 4.9.
+-template <typename T>
+-struct is_default_constructible : std::is_default_constructible<T> {};
+-
+-template <typename T1, typename T2>
+-struct is_default_constructible<std::pair<T1, T2>>
+-            : conjunction<is_default_constructible<T1>, is_default_constructible<T2>> {};
+-
+-template <typename T1, typename T2>
+-struct is_default_constructible<const std::pair<T1, T2>>
+-            : conjunction<is_default_constructible<T1>, is_default_constructible<T2>> {};
+-
+-template <typename... Ts>
+-struct is_default_constructible<std::tuple<Ts...>>
+-            : conjunction<is_default_constructible<Ts>...> {};
+-
+-template <typename... Ts>
+-struct is_default_constructible<const std::tuple<Ts...>>
+-            : conjunction<is_default_constructible<Ts>...> {};
+-
+-
+-template <typename T, typename... Args>
+-struct is_constructible : std::is_constructible<T, Args...> {};
+-
+-template <typename T1, typename T2>
+-struct is_constructible<std::pair<T1, T2>> : is_default_constructible<std::pair<T1, T2>> {};
+-
+-template <typename T1, typename T2>
+-struct is_constructible<const std::pair<T1, T2>> : is_default_constructible<const std::pair<T1, T2>> {};
+-
+-template <typename... Ts>
+-struct is_constructible<std::tuple<Ts...>> : is_default_constructible<std::tuple<Ts...>> {};
+-
+-template <typename... Ts>
+-struct is_constructible<const std::tuple<Ts...>> : is_default_constructible<const std::tuple<Ts...>> {};
+-
+-
+-template<typename T, typename = void>
+-struct is_iterator_traits : std::false_type {};
+-
+-template<typename T>
+-struct is_iterator_traits<iterator_traits<T>>
+-{
+-  private:
+-    using traits = iterator_traits<T>;
+-
+-  public:
+-    static constexpr auto value =
+-        is_detected<value_type_t, traits>::value &&
+-        is_detected<difference_type_t, traits>::value &&
+-        is_detected<pointer_t, traits>::value &&
+-        is_detected<iterator_category_t, traits>::value &&
+-        is_detected<reference_t, traits>::value;
+-};
+-
+-template<typename T>
+-struct is_range
+-{
+-  private:
+-    using t_ref = typename std::add_lvalue_reference<T>::type;
+-
+-    using iterator = detected_t<result_of_begin, t_ref>;
+-    using sentinel = detected_t<result_of_end, t_ref>;
+-
+-    // to be 100% correct, it should use https://en.cppreference.com/w/cpp/iterator/input_or_output_iterator
+-    // and https://en.cppreference.com/w/cpp/iterator/sentinel_for
+-    // but reimplementing these would be too much work, as a lot of other concepts are used underneath
+-    static constexpr auto is_iterator_begin =
+-        is_iterator_traits<iterator_traits<iterator>>::value;
+-
+-  public:
+-    static constexpr bool value = !std::is_same<iterator, nonesuch>::value && !std::is_same<sentinel, nonesuch>::value && is_iterator_begin;
+-};
+-
+-template<typename R>
+-using iterator_t = enable_if_t<is_range<R>::value, result_of_begin<decltype(std::declval<R&>())>>;
+-
+-template<typename T>
+-using range_value_t = value_type_t<iterator_traits<iterator_t<T>>>;
+-
+-// The following implementation of is_complete_type is taken from
+-// https://blogs.msdn.microsoft.com/vcblog/2015/12/02/partial-support-for-expression-sfinae-in-vs-2015-update-1/
+-// and is written by Xiang Fan who agreed to using it in this library.
+-
+-template<typename T, typename = void>
+-struct is_complete_type : std::false_type {};
+-
+-template<typename T>
+-struct is_complete_type<T, decltype(void(sizeof(T)))> : std::true_type {};
+-
+-template<typename BasicJsonType, typename CompatibleObjectType,
+-         typename = void>
+-struct is_compatible_object_type_impl : std::false_type {};
+-
+-template<typename BasicJsonType, typename CompatibleObjectType>
+-struct is_compatible_object_type_impl <
+-    BasicJsonType, CompatibleObjectType,
+-    enable_if_t < is_detected<mapped_type_t, CompatibleObjectType>::value&&
+-    is_detected<key_type_t, CompatibleObjectType>::value >>
+-{
+-    using object_t = typename BasicJsonType::object_t;
+-
+-    // macOS's is_constructible does not play well with nonesuch...
+-    static constexpr bool value =
+-        is_constructible<typename object_t::key_type,
+-        typename CompatibleObjectType::key_type>::value &&
+-        is_constructible<typename object_t::mapped_type,
+-        typename CompatibleObjectType::mapped_type>::value;
+-};
+-
+-template<typename BasicJsonType, typename CompatibleObjectType>
+-struct is_compatible_object_type
+-    : is_compatible_object_type_impl<BasicJsonType, CompatibleObjectType> {};
+-
+-template<typename BasicJsonType, typename ConstructibleObjectType,
+-         typename = void>
+-struct is_constructible_object_type_impl : std::false_type {};
+-
+-template<typename BasicJsonType, typename ConstructibleObjectType>
+-struct is_constructible_object_type_impl <
+-    BasicJsonType, ConstructibleObjectType,
+-    enable_if_t < is_detected<mapped_type_t, ConstructibleObjectType>::value&&
+-    is_detected<key_type_t, ConstructibleObjectType>::value >>
+-{
+-    using object_t = typename BasicJsonType::object_t;
+-
+-    static constexpr bool value =
+-        (is_default_constructible<ConstructibleObjectType>::value &&
+-         (std::is_move_assignable<ConstructibleObjectType>::value ||
+-          std::is_copy_assignable<ConstructibleObjectType>::value) &&
+-         (is_constructible<typename ConstructibleObjectType::key_type,
+-          typename object_t::key_type>::value &&
+-          std::is_same <
+-          typename object_t::mapped_type,
+-          typename ConstructibleObjectType::mapped_type >::value)) ||
+-        (has_from_json<BasicJsonType,
+-         typename ConstructibleObjectType::mapped_type>::value ||
+-         has_non_default_from_json <
+-         BasicJsonType,
+-         typename ConstructibleObjectType::mapped_type >::value);
+-};
+-
+-template<typename BasicJsonType, typename ConstructibleObjectType>
+-struct is_constructible_object_type
+-    : is_constructible_object_type_impl<BasicJsonType,
+-      ConstructibleObjectType> {};
+-
+-template<typename BasicJsonType, typename CompatibleStringType>
+-struct is_compatible_string_type
+-{
+-    static constexpr auto value =
+-        is_constructible<typename BasicJsonType::string_t, CompatibleStringType>::value;
+-};
+-
+-template<typename BasicJsonType, typename ConstructibleStringType>
+-struct is_constructible_string_type
+-{
+-    static constexpr auto value =
+-        is_constructible<ConstructibleStringType,
+-        typename BasicJsonType::string_t>::value;
+-};
+-
+-template<typename BasicJsonType, typename CompatibleArrayType, typename = void>
+-struct is_compatible_array_type_impl : std::false_type {};
+-
+-template<typename BasicJsonType, typename CompatibleArrayType>
+-struct is_compatible_array_type_impl <
+-    BasicJsonType, CompatibleArrayType,
+-    enable_if_t <
+-    is_detected<iterator_t, CompatibleArrayType>::value&&
+-    is_iterator_traits<iterator_traits<detected_t<iterator_t, CompatibleArrayType>>>::value&&
+-// special case for types like std::filesystem::path whose iterator's value_type are themselves
+-// c.f. https://github.com/nlohmann/json/pull/3073
+-    !std::is_same<CompatibleArrayType, detected_t<range_value_t, CompatibleArrayType>>::value >>
+-{
+-    static constexpr bool value =
+-        is_constructible<BasicJsonType,
+-        range_value_t<CompatibleArrayType>>::value;
+-};
+-
+-template<typename BasicJsonType, typename CompatibleArrayType>
+-struct is_compatible_array_type
+-    : is_compatible_array_type_impl<BasicJsonType, CompatibleArrayType> {};
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType, typename = void>
+-struct is_constructible_array_type_impl : std::false_type {};
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType>
+-struct is_constructible_array_type_impl <
+-    BasicJsonType, ConstructibleArrayType,
+-    enable_if_t<std::is_same<ConstructibleArrayType,
+-    typename BasicJsonType::value_type>::value >>
+-            : std::true_type {};
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType>
+-struct is_constructible_array_type_impl <
+-    BasicJsonType, ConstructibleArrayType,
+-    enable_if_t < !std::is_same<ConstructibleArrayType,
+-    typename BasicJsonType::value_type>::value&&
+-    !is_compatible_string_type<BasicJsonType, ConstructibleArrayType>::value&&
+-    is_default_constructible<ConstructibleArrayType>::value&&
+-(std::is_move_assignable<ConstructibleArrayType>::value ||
+- std::is_copy_assignable<ConstructibleArrayType>::value)&&
+-is_detected<iterator_t, ConstructibleArrayType>::value&&
+-is_iterator_traits<iterator_traits<detected_t<iterator_t, ConstructibleArrayType>>>::value&&
+-is_detected<range_value_t, ConstructibleArrayType>::value&&
+-// special case for types like std::filesystem::path whose iterator's value_type are themselves
+-// c.f. https://github.com/nlohmann/json/pull/3073
+-!std::is_same<ConstructibleArrayType, detected_t<range_value_t, ConstructibleArrayType>>::value&&
+-        is_complete_type <
+-        detected_t<range_value_t, ConstructibleArrayType >>::value >>
+-{
+-    using value_type = range_value_t<ConstructibleArrayType>;
+-
+-    static constexpr bool value =
+-        std::is_same<value_type,
+-        typename BasicJsonType::array_t::value_type>::value ||
+-        has_from_json<BasicJsonType,
+-        value_type>::value ||
+-        has_non_default_from_json <
+-        BasicJsonType,
+-        value_type >::value;
+-};
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType>
+-struct is_constructible_array_type
+-    : is_constructible_array_type_impl<BasicJsonType, ConstructibleArrayType> {};
+-
+-template<typename RealIntegerType, typename CompatibleNumberIntegerType,
+-         typename = void>
+-struct is_compatible_integer_type_impl : std::false_type {};
+-
+-template<typename RealIntegerType, typename CompatibleNumberIntegerType>
+-struct is_compatible_integer_type_impl <
+-    RealIntegerType, CompatibleNumberIntegerType,
+-    enable_if_t < std::is_integral<RealIntegerType>::value&&
+-    std::is_integral<CompatibleNumberIntegerType>::value&&
+-    !std::is_same<bool, CompatibleNumberIntegerType>::value >>
+-{
+-    // is there an assert somewhere on overflows?
+-    using RealLimits = std::numeric_limits<RealIntegerType>;
+-    using CompatibleLimits = std::numeric_limits<CompatibleNumberIntegerType>;
+-
+-    static constexpr auto value =
+-        is_constructible<RealIntegerType,
+-        CompatibleNumberIntegerType>::value &&
+-        CompatibleLimits::is_integer &&
+-        RealLimits::is_signed == CompatibleLimits::is_signed;
+-};
+-
+-template<typename RealIntegerType, typename CompatibleNumberIntegerType>
+-struct is_compatible_integer_type
+-    : is_compatible_integer_type_impl<RealIntegerType,
+-      CompatibleNumberIntegerType> {};
+-
+-template<typename BasicJsonType, typename CompatibleType, typename = void>
+-struct is_compatible_type_impl: std::false_type {};
+-
+-template<typename BasicJsonType, typename CompatibleType>
+-struct is_compatible_type_impl <
+-    BasicJsonType, CompatibleType,
+-    enable_if_t<is_complete_type<CompatibleType>::value >>
+-{
+-    static constexpr bool value =
+-        has_to_json<BasicJsonType, CompatibleType>::value;
+-};
+-
+-template<typename BasicJsonType, typename CompatibleType>
+-struct is_compatible_type
+-    : is_compatible_type_impl<BasicJsonType, CompatibleType> {};
+-
+-template<typename T1, typename T2>
+-struct is_constructible_tuple : std::false_type {};
+-
+-template<typename T1, typename... Args>
+-struct is_constructible_tuple<T1, std::tuple<Args...>> : conjunction<is_constructible<T1, Args>...> {};
+-
+-// a naive helper to check if a type is an ordered_map (exploits the fact that
+-// ordered_map inherits capacity() from std::vector)
+-template <typename T>
+-struct is_ordered_map
+-{
+-    using one = char;
+-
+-    struct two
+-    {
+-        char x[2]; // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-    };
+-
+-    template <typename C> static one test( decltype(&C::capacity) ) ;
+-    template <typename C> static two test(...);
+-
+-    enum { value = sizeof(test<T>(nullptr)) == sizeof(char) }; // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-};
+-
+-// to avoid useless casts (see https://github.com/nlohmann/json/issues/2893#issuecomment-889152324)
+-template < typename T, typename U, enable_if_t < !std::is_same<T, U>::value, int > = 0 >
+-T conditional_static_cast(U value)
+-{
+-    return static_cast<T>(value);
+-}
+-
+-template<typename T, typename U, enable_if_t<std::is_same<T, U>::value, int> = 0>
+-T conditional_static_cast(U value)
+-{
+-    return value;
+-}
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-#if JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-#include <experimental/filesystem>
+-namespace nlohmann::detail
+-{
+-namespace std_fs = std::experimental::filesystem;
+-} // namespace nlohmann::detail
+-#elif JSON_HAS_FILESYSTEM
+-#include <filesystem>
+-namespace nlohmann::detail
+-{
+-namespace std_fs = std::filesystem;
+-} // namespace nlohmann::detail
+-#endif
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename std::nullptr_t& n)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_null()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be null, but is " + std::string(j.type_name()), j));
+-    }
+-    n = nullptr;
+-}
+-
+-// overloads for basic_json template parameters
+-template < typename BasicJsonType, typename ArithmeticType,
+-           enable_if_t < std::is_arithmetic<ArithmeticType>::value&&
+-                         !std::is_same<ArithmeticType, typename BasicJsonType::boolean_t>::value,
+-                         int > = 0 >
+-void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val)
+-{
+-    switch (static_cast<value_t>(j))
+-    {
+-        case value_t::number_unsigned:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
+-            break;
+-        }
+-        case value_t::number_integer:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
+-            break;
+-        }
+-        case value_t::number_float:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
+-            break;
+-        }
+-
+-        case value_t::null:
+-        case value_t::object:
+-        case value_t::array:
+-        case value_t::string:
+-        case value_t::boolean:
+-        case value_t::binary:
+-        case value_t::discarded:
+-        default:
+-            JSON_THROW(type_error::create(302, "type must be number, but is " + std::string(j.type_name()), j));
+-    }
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::boolean_t& b)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_boolean()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be boolean, but is " + std::string(j.type_name()), j));
+-    }
+-    b = *j.template get_ptr<const typename BasicJsonType::boolean_t*>();
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::string_t& s)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be string, but is " + std::string(j.type_name()), j));
+-    }
+-    s = *j.template get_ptr<const typename BasicJsonType::string_t*>();
+-}
+-
+-template <
+-    typename BasicJsonType, typename ConstructibleStringType,
+-    enable_if_t <
+-        is_constructible_string_type<BasicJsonType, ConstructibleStringType>::value&&
+-        !std::is_same<typename BasicJsonType::string_t,
+-                      ConstructibleStringType>::value,
+-        int > = 0 >
+-void from_json(const BasicJsonType& j, ConstructibleStringType& s)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be string, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    s = *j.template get_ptr<const typename BasicJsonType::string_t*>();
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::number_float_t& val)
+-{
+-    get_arithmetic_value(j, val);
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::number_unsigned_t& val)
+-{
+-    get_arithmetic_value(j, val);
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::number_integer_t& val)
+-{
+-    get_arithmetic_value(j, val);
+-}
+-
+-template<typename BasicJsonType, typename EnumType,
+-         enable_if_t<std::is_enum<EnumType>::value, int> = 0>
+-void from_json(const BasicJsonType& j, EnumType& e)
+-{
+-    typename std::underlying_type<EnumType>::type val;
+-    get_arithmetic_value(j, val);
+-    e = static_cast<EnumType>(val);
+-}
+-
+-// forward_list doesn't have an insert method
+-template<typename BasicJsonType, typename T, typename Allocator,
+-         enable_if_t<is_getable<BasicJsonType, T>::value, int> = 0>
+-void from_json(const BasicJsonType& j, std::forward_list<T, Allocator>& l)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-    l.clear();
+-    std::transform(j.rbegin(), j.rend(),
+-                   std::front_inserter(l), [](const BasicJsonType & i)
+-    {
+-        return i.template get<T>();
+-    });
+-}
+-
+-// valarray doesn't have an insert method
+-template<typename BasicJsonType, typename T,
+-         enable_if_t<is_getable<BasicJsonType, T>::value, int> = 0>
+-void from_json(const BasicJsonType& j, std::valarray<T>& l)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-    l.resize(j.size());
+-    std::transform(j.begin(), j.end(), std::begin(l),
+-                   [](const BasicJsonType & elem)
+-    {
+-        return elem.template get<T>();
+-    });
+-}
+-
+-template<typename BasicJsonType, typename T, std::size_t N>
+-auto from_json(const BasicJsonType& j, T (&arr)[N])  // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+--> decltype(j.template get<T>(), void())
+-{
+-    for (std::size_t i = 0; i < N; ++i)
+-    {
+-        arr[i] = j.at(i).template get<T>();
+-    }
+-}
+-
+-template<typename BasicJsonType>
+-void from_json_array_impl(const BasicJsonType& j, typename BasicJsonType::array_t& arr, priority_tag<3> /*unused*/)
+-{
+-    arr = *j.template get_ptr<const typename BasicJsonType::array_t*>();
+-}
+-
+-template<typename BasicJsonType, typename T, std::size_t N>
+-auto from_json_array_impl(const BasicJsonType& j, std::array<T, N>& arr,
+-                          priority_tag<2> /*unused*/)
+--> decltype(j.template get<T>(), void())
+-{
+-    for (std::size_t i = 0; i < N; ++i)
+-    {
+-        arr[i] = j.at(i).template get<T>();
+-    }
+-}
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType,
+-         enable_if_t<
+-             std::is_assignable<ConstructibleArrayType&, ConstructibleArrayType>::value,
+-             int> = 0>
+-auto from_json_array_impl(const BasicJsonType& j, ConstructibleArrayType& arr, priority_tag<1> /*unused*/)
+--> decltype(
+-    arr.reserve(std::declval<typename ConstructibleArrayType::size_type>()),
+-    j.template get<typename ConstructibleArrayType::value_type>(),
+-    void())
+-{
+-    using std::end;
+-
+-    ConstructibleArrayType ret;
+-    ret.reserve(j.size());
+-    std::transform(j.begin(), j.end(),
+-                   std::inserter(ret, end(ret)), [](const BasicJsonType & i)
+-    {
+-        // get<BasicJsonType>() returns *this, this won't call a from_json
+-        // method when value_type is BasicJsonType
+-        return i.template get<typename ConstructibleArrayType::value_type>();
+-    });
+-    arr = std::move(ret);
+-}
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType,
+-         enable_if_t<
+-             std::is_assignable<ConstructibleArrayType&, ConstructibleArrayType>::value,
+-             int> = 0>
+-void from_json_array_impl(const BasicJsonType& j, ConstructibleArrayType& arr,
+-                          priority_tag<0> /*unused*/)
+-{
+-    using std::end;
+-
+-    ConstructibleArrayType ret;
+-    std::transform(
+-        j.begin(), j.end(), std::inserter(ret, end(ret)),
+-        [](const BasicJsonType & i)
+-    {
+-        // get<BasicJsonType>() returns *this, this won't call a from_json
+-        // method when value_type is BasicJsonType
+-        return i.template get<typename ConstructibleArrayType::value_type>();
+-    });
+-    arr = std::move(ret);
+-}
+-
+-template < typename BasicJsonType, typename ConstructibleArrayType,
+-           enable_if_t <
+-               is_constructible_array_type<BasicJsonType, ConstructibleArrayType>::value&&
+-               !is_constructible_object_type<BasicJsonType, ConstructibleArrayType>::value&&
+-               !is_constructible_string_type<BasicJsonType, ConstructibleArrayType>::value&&
+-               !std::is_same<ConstructibleArrayType, typename BasicJsonType::binary_t>::value&&
+-               !is_basic_json<ConstructibleArrayType>::value,
+-               int > = 0 >
+-auto from_json(const BasicJsonType& j, ConstructibleArrayType& arr)
+--> decltype(from_json_array_impl(j, arr, priority_tag<3> {}),
+-j.template get<typename ConstructibleArrayType::value_type>(),
+-void())
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    from_json_array_impl(j, arr, priority_tag<3> {});
+-}
+-
+-template < typename BasicJsonType, typename T, std::size_t... Idx >
+-std::array<T, sizeof...(Idx)> from_json_inplace_array_impl(BasicJsonType&& j,
+-        identity_tag<std::array<T, sizeof...(Idx)>> /*unused*/, index_sequence<Idx...> /*unused*/)
+-{
+-    return { { std::forward<BasicJsonType>(j).at(Idx).template get<T>()... } };
+-}
+-
+-template < typename BasicJsonType, typename T, std::size_t N >
+-auto from_json(BasicJsonType&& j, identity_tag<std::array<T, N>> tag)
+--> decltype(from_json_inplace_array_impl(std::forward<BasicJsonType>(j), tag, make_index_sequence<N> {}))
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    return from_json_inplace_array_impl(std::forward<BasicJsonType>(j), tag, make_index_sequence<N> {});
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::binary_t& bin)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_binary()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    bin = *j.template get_ptr<const typename BasicJsonType::binary_t*>();
+-}
+-
+-template<typename BasicJsonType, typename ConstructibleObjectType,
+-         enable_if_t<is_constructible_object_type<BasicJsonType, ConstructibleObjectType>::value, int> = 0>
+-void from_json(const BasicJsonType& j, ConstructibleObjectType& obj)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_object()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be object, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    ConstructibleObjectType ret;
+-    const auto* inner_object = j.template get_ptr<const typename BasicJsonType::object_t*>();
+-    using value_type = typename ConstructibleObjectType::value_type;
+-    std::transform(
+-        inner_object->begin(), inner_object->end(),
+-        std::inserter(ret, ret.begin()),
+-        [](typename BasicJsonType::object_t::value_type const & p)
+-    {
+-        return value_type(p.first, p.second.template get<typename ConstructibleObjectType::mapped_type>());
+-    });
+-    obj = std::move(ret);
+-}
+-
+-// overload for arithmetic types, not chosen for basic_json template arguments
+-// (BooleanType, etc..); note: Is it really necessary to provide explicit
+-// overloads for boolean_t etc. in case of a custom BooleanType which is not
+-// an arithmetic type?
+-template < typename BasicJsonType, typename ArithmeticType,
+-           enable_if_t <
+-               std::is_arithmetic<ArithmeticType>::value&&
+-               !std::is_same<ArithmeticType, typename BasicJsonType::number_unsigned_t>::value&&
+-               !std::is_same<ArithmeticType, typename BasicJsonType::number_integer_t>::value&&
+-               !std::is_same<ArithmeticType, typename BasicJsonType::number_float_t>::value&&
+-               !std::is_same<ArithmeticType, typename BasicJsonType::boolean_t>::value,
+-               int > = 0 >
+-void from_json(const BasicJsonType& j, ArithmeticType& val)
+-{
+-    switch (static_cast<value_t>(j))
+-    {
+-        case value_t::number_unsigned:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
+-            break;
+-        }
+-        case value_t::number_integer:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
+-            break;
+-        }
+-        case value_t::number_float:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
+-            break;
+-        }
+-        case value_t::boolean:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::boolean_t*>());
+-            break;
+-        }
+-
+-        case value_t::null:
+-        case value_t::object:
+-        case value_t::array:
+-        case value_t::string:
+-        case value_t::binary:
+-        case value_t::discarded:
+-        default:
+-            JSON_THROW(type_error::create(302, "type must be number, but is " + std::string(j.type_name()), j));
+-    }
+-}
+-
+-template<typename BasicJsonType, typename... Args, std::size_t... Idx>
+-std::tuple<Args...> from_json_tuple_impl_base(BasicJsonType&& j, index_sequence<Idx...> /*unused*/)
+-{
+-    return std::make_tuple(std::forward<BasicJsonType>(j).at(Idx).template get<Args>()...);
+-}
+-
+-template < typename BasicJsonType, class A1, class A2 >
+-std::pair<A1, A2> from_json_tuple_impl(BasicJsonType&& j, identity_tag<std::pair<A1, A2>> /*unused*/, priority_tag<0> /*unused*/)
+-{
+-    return {std::forward<BasicJsonType>(j).at(0).template get<A1>(),
+-            std::forward<BasicJsonType>(j).at(1).template get<A2>()};
+-}
+-
+-template<typename BasicJsonType, typename A1, typename A2>
+-void from_json_tuple_impl(BasicJsonType&& j, std::pair<A1, A2>& p, priority_tag<1> /*unused*/)
+-{
+-    p = from_json_tuple_impl(std::forward<BasicJsonType>(j), identity_tag<std::pair<A1, A2>> {}, priority_tag<0> {});
+-}
+-
+-template<typename BasicJsonType, typename... Args>
+-std::tuple<Args...> from_json_tuple_impl(BasicJsonType&& j, identity_tag<std::tuple<Args...>> /*unused*/, priority_tag<2> /*unused*/)
+-{
+-    return from_json_tuple_impl_base<BasicJsonType, Args...>(std::forward<BasicJsonType>(j), index_sequence_for<Args...> {});
+-}
+-
+-template<typename BasicJsonType, typename... Args>
+-void from_json_tuple_impl(BasicJsonType&& j, std::tuple<Args...>& t, priority_tag<3> /*unused*/)
+-{
+-    t = from_json_tuple_impl_base<BasicJsonType, Args...>(std::forward<BasicJsonType>(j), index_sequence_for<Args...> {});
+-}
+-
+-template<typename BasicJsonType, typename TupleRelated>
+-auto from_json(BasicJsonType&& j, TupleRelated&& t)
+--> decltype(from_json_tuple_impl(std::forward<BasicJsonType>(j), std::forward<TupleRelated>(t), priority_tag<3> {}))
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    return from_json_tuple_impl(std::forward<BasicJsonType>(j), std::forward<TupleRelated>(t), priority_tag<3> {});
+-}
+-
+-template < typename BasicJsonType, typename Key, typename Value, typename Compare, typename Allocator,
+-           typename = enable_if_t < !std::is_constructible <
+-                                        typename BasicJsonType::string_t, Key >::value >>
+-void from_json(const BasicJsonType& j, std::map<Key, Value, Compare, Allocator>& m)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-    m.clear();
+-    for (const auto& p : j)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!p.is_array()))
+-        {
+-            JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(p.type_name()), j));
+-        }
+-        m.emplace(p.at(0).template get<Key>(), p.at(1).template get<Value>());
+-    }
+-}
+-
+-template < typename BasicJsonType, typename Key, typename Value, typename Hash, typename KeyEqual, typename Allocator,
+-           typename = enable_if_t < !std::is_constructible <
+-                                        typename BasicJsonType::string_t, Key >::value >>
+-void from_json(const BasicJsonType& j, std::unordered_map<Key, Value, Hash, KeyEqual, Allocator>& m)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-    m.clear();
+-    for (const auto& p : j)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!p.is_array()))
+-        {
+-            JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(p.type_name()), j));
+-        }
+-        m.emplace(p.at(0).template get<Key>(), p.at(1).template get<Value>());
+-    }
+-}
+-
+-#if JSON_HAS_FILESYSTEM || JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, std_fs::path& p)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be string, but is " + std::string(j.type_name()), j));
+-    }
+-    p = *j.template get_ptr<const typename BasicJsonType::string_t*>();
+-}
+-#endif
+-
+-struct from_json_fn
+-{
+-    template<typename BasicJsonType, typename T>
+-    auto operator()(const BasicJsonType& j, T&& val) const
+-    noexcept(noexcept(from_json(j, std::forward<T>(val))))
+-    -> decltype(from_json(j, std::forward<T>(val)))
+-    {
+-        return from_json(j, std::forward<T>(val));
+-    }
+-};
+-}  // namespace detail
+-
+-/// namespace to hold default `from_json` function
+-/// to see why this is required:
+-/// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4381.html
+-namespace // NOLINT(cert-dcl59-cpp,fuchsia-header-anon-namespaces,google-build-namespaces)
+-{
+-constexpr const auto& from_json = detail::static_const<detail::from_json_fn>::value; // NOLINT(misc-definitions-in-headers)
+-} // namespace
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/conversions/to_json.hpp>
+-
+-
+-#include <algorithm> // copy
+-#include <iterator> // begin, end
+-#include <string> // string
+-#include <tuple> // tuple, get
+-#include <type_traits> // is_same, is_constructible, is_floating_point, is_enum, underlying_type
+-#include <utility> // move, forward, declval, pair
+-#include <valarray> // valarray
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/iterators/iteration_proxy.hpp>
+-
+-
+-#include <cstddef> // size_t
+-#include <iterator> // input_iterator_tag
+-#include <string> // string, to_string
+-#include <tuple> // tuple_size, get, tuple_element
+-#include <utility> // move
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename string_type>
+-void int_to_string( string_type& target, std::size_t value )
+-{
+-    // For ADL
+-    using std::to_string;
+-    target = to_string(value);
+-}
+-template<typename IteratorType> class iteration_proxy_value
+-{
+-  public:
+-    using difference_type = std::ptrdiff_t;
+-    using value_type = iteration_proxy_value;
+-    using pointer = value_type * ;
+-    using reference = value_type & ;
+-    using iterator_category = std::input_iterator_tag;
+-    using string_type = typename std::remove_cv< typename std::remove_reference<decltype( std::declval<IteratorType>().key() ) >::type >::type;
+-
+-  private:
+-    /// the iterator
+-    IteratorType anchor;
+-    /// an index for arrays (used to create key names)
+-    std::size_t array_index = 0;
+-    /// last stringified array index
+-    mutable std::size_t array_index_last = 0;
+-    /// a string representation of the array index
+-    mutable string_type array_index_str = "0";
+-    /// an empty string (to return a reference for primitive values)
+-    const string_type empty_str{};
+-
+-  public:
+-    explicit iteration_proxy_value(IteratorType it) noexcept
+-        : anchor(std::move(it))
+-    {}
+-
+-    /// dereference operator (needed for range-based for)
+-    iteration_proxy_value& operator*()
+-    {
+-        return *this;
+-    }
+-
+-    /// increment operator (needed for range-based for)
+-    iteration_proxy_value& operator++()
+-    {
+-        ++anchor;
+-        ++array_index;
+-
+-        return *this;
+-    }
+-
+-    /// equality operator (needed for InputIterator)
+-    bool operator==(const iteration_proxy_value& o) const
+-    {
+-        return anchor == o.anchor;
+-    }
+-
+-    /// inequality operator (needed for range-based for)
+-    bool operator!=(const iteration_proxy_value& o) const
+-    {
+-        return anchor != o.anchor;
+-    }
+-
+-    /// return key of the iterator
+-    const string_type& key() const
+-    {
+-        JSON_ASSERT(anchor.m_object != nullptr);
+-
+-        switch (anchor.m_object->type())
+-        {
+-            // use integer array index as key
+-            case value_t::array:
+-            {
+-                if (array_index != array_index_last)
+-                {
+-                    int_to_string( array_index_str, array_index );
+-                    array_index_last = array_index;
+-                }
+-                return array_index_str;
+-            }
+-
+-            // use key from the object
+-            case value_t::object:
+-                return anchor.key();
+-
+-            // use an empty key for all primitive types
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                return empty_str;
+-        }
+-    }
+-
+-    /// return value of the iterator
+-    typename IteratorType::reference value() const
+-    {
+-        return anchor.value();
+-    }
+-};
+-
+-/// proxy class for the items() function
+-template<typename IteratorType> class iteration_proxy
+-{
+-  private:
+-    /// the container to iterate
+-    typename IteratorType::reference container;
+-
+-  public:
+-    /// construct iteration proxy from a container
+-    explicit iteration_proxy(typename IteratorType::reference cont) noexcept
+-        : container(cont) {}
+-
+-    /// return iterator begin (needed for range-based for)
+-    iteration_proxy_value<IteratorType> begin() noexcept
+-    {
+-        return iteration_proxy_value<IteratorType>(container.begin());
+-    }
+-
+-    /// return iterator end (needed for range-based for)
+-    iteration_proxy_value<IteratorType> end() noexcept
+-    {
+-        return iteration_proxy_value<IteratorType>(container.end());
+-    }
+-};
+-// Structured Bindings Support
+-// For further reference see https://blog.tartanllama.xyz/structured-bindings/
+-// And see https://github.com/nlohmann/json/pull/1391
+-template<std::size_t N, typename IteratorType, enable_if_t<N == 0, int> = 0>
+-auto get(const nlohmann::detail::iteration_proxy_value<IteratorType>& i) -> decltype(i.key())
+-{
+-    return i.key();
+-}
+-// Structured Bindings Support
+-// For further reference see https://blog.tartanllama.xyz/structured-bindings/
+-// And see https://github.com/nlohmann/json/pull/1391
+-template<std::size_t N, typename IteratorType, enable_if_t<N == 1, int> = 0>
+-auto get(const nlohmann::detail::iteration_proxy_value<IteratorType>& i) -> decltype(i.value())
+-{
+-    return i.value();
+-}
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// The Addition to the STD Namespace is required to add
+-// Structured Bindings Support to the iteration_proxy_value class
+-// For further reference see https://blog.tartanllama.xyz/structured-bindings/
+-// And see https://github.com/nlohmann/json/pull/1391
+-namespace std
+-{
+-#if defined(__clang__)
+-    // Fix: https://github.com/nlohmann/json/issues/1401
+-    #pragma clang diagnostic push
+-    #pragma clang diagnostic ignored "-Wmismatched-tags"
+-#endif
+-template<typename IteratorType>
+-class tuple_size<::nlohmann::detail::iteration_proxy_value<IteratorType>>
+-            : public std::integral_constant<std::size_t, 2> {};
+-
+-template<std::size_t N, typename IteratorType>
+-class tuple_element<N, ::nlohmann::detail::iteration_proxy_value<IteratorType >>
+-{
+-  public:
+-    using type = decltype(
+-                     get<N>(std::declval <
+-                            ::nlohmann::detail::iteration_proxy_value<IteratorType >> ()));
+-};
+-#if defined(__clang__)
+-    #pragma clang diagnostic pop
+-#endif
+-} // namespace std
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-#if JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-#include <experimental/filesystem>
+-namespace nlohmann::detail
+-{
+-namespace std_fs = std::experimental::filesystem;
+-} // namespace nlohmann::detail
+-#elif JSON_HAS_FILESYSTEM
+-#include <filesystem>
+-namespace nlohmann::detail
+-{
+-namespace std_fs = std::filesystem;
+-} // namespace nlohmann::detail
+-#endif
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-//////////////////
+-// constructors //
+-//////////////////
+-
+-/*
+- * Note all external_constructor<>::construct functions need to call
+- * j.m_value.destroy(j.m_type) to avoid a memory leak in case j contains an
+- * allocated value (e.g., a string). See bug issue
+- * https://github.com/nlohmann/json/issues/2865 for more information.
+- */
+-
+-template<value_t> struct external_constructor;
+-
+-template<>
+-struct external_constructor<value_t::boolean>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::boolean_t b) noexcept
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::boolean;
+-        j.m_value = b;
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::string>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const typename BasicJsonType::string_t& s)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::string;
+-        j.m_value = s;
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::string_t&& s)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::string;
+-        j.m_value = std::move(s);
+-        j.assert_invariant();
+-    }
+-
+-    template < typename BasicJsonType, typename CompatibleStringType,
+-               enable_if_t < !std::is_same<CompatibleStringType, typename BasicJsonType::string_t>::value,
+-                             int > = 0 >
+-    static void construct(BasicJsonType& j, const CompatibleStringType& str)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::string;
+-        j.m_value.string = j.template create<typename BasicJsonType::string_t>(str);
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::binary>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const typename BasicJsonType::binary_t& b)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::binary;
+-        j.m_value = typename BasicJsonType::binary_t(b);
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::binary_t&& b)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::binary;
+-        j.m_value = typename BasicJsonType::binary_t(std::move(b));
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::number_float>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::number_float_t val) noexcept
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::number_float;
+-        j.m_value = val;
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::number_unsigned>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::number_unsigned_t val) noexcept
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::number_unsigned;
+-        j.m_value = val;
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::number_integer>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::number_integer_t val) noexcept
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::number_integer;
+-        j.m_value = val;
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::array>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const typename BasicJsonType::array_t& arr)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value = arr;
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::array_t&& arr)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value = std::move(arr);
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template < typename BasicJsonType, typename CompatibleArrayType,
+-               enable_if_t < !std::is_same<CompatibleArrayType, typename BasicJsonType::array_t>::value,
+-                             int > = 0 >
+-    static void construct(BasicJsonType& j, const CompatibleArrayType& arr)
+-    {
+-        using std::begin;
+-        using std::end;
+-
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value.array = j.template create<typename BasicJsonType::array_t>(begin(arr), end(arr));
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const std::vector<bool>& arr)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value = value_t::array;
+-        j.m_value.array->reserve(arr.size());
+-        for (const bool x : arr)
+-        {
+-            j.m_value.array->push_back(x);
+-            j.set_parent(j.m_value.array->back());
+-        }
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType, typename T,
+-             enable_if_t<std::is_convertible<T, BasicJsonType>::value, int> = 0>
+-    static void construct(BasicJsonType& j, const std::valarray<T>& arr)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value = value_t::array;
+-        j.m_value.array->resize(arr.size());
+-        if (arr.size() > 0)
+-        {
+-            std::copy(std::begin(arr), std::end(arr), j.m_value.array->begin());
+-        }
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::object>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const typename BasicJsonType::object_t& obj)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::object;
+-        j.m_value = obj;
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::object_t&& obj)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::object;
+-        j.m_value = std::move(obj);
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template < typename BasicJsonType, typename CompatibleObjectType,
+-               enable_if_t < !std::is_same<CompatibleObjectType, typename BasicJsonType::object_t>::value, int > = 0 >
+-    static void construct(BasicJsonType& j, const CompatibleObjectType& obj)
+-    {
+-        using std::begin;
+-        using std::end;
+-
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::object;
+-        j.m_value.object = j.template create<typename BasicJsonType::object_t>(begin(obj), end(obj));
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-};
+-
+-/////////////
+-// to_json //
+-/////////////
+-
+-template<typename BasicJsonType, typename T,
+-         enable_if_t<std::is_same<T, typename BasicJsonType::boolean_t>::value, int> = 0>
+-void to_json(BasicJsonType& j, T b) noexcept
+-{
+-    external_constructor<value_t::boolean>::construct(j, b);
+-}
+-
+-template<typename BasicJsonType, typename CompatibleString,
+-         enable_if_t<std::is_constructible<typename BasicJsonType::string_t, CompatibleString>::value, int> = 0>
+-void to_json(BasicJsonType& j, const CompatibleString& s)
+-{
+-    external_constructor<value_t::string>::construct(j, s);
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, typename BasicJsonType::string_t&& s)
+-{
+-    external_constructor<value_t::string>::construct(j, std::move(s));
+-}
+-
+-template<typename BasicJsonType, typename FloatType,
+-         enable_if_t<std::is_floating_point<FloatType>::value, int> = 0>
+-void to_json(BasicJsonType& j, FloatType val) noexcept
+-{
+-    external_constructor<value_t::number_float>::construct(j, static_cast<typename BasicJsonType::number_float_t>(val));
+-}
+-
+-template<typename BasicJsonType, typename CompatibleNumberUnsignedType,
+-         enable_if_t<is_compatible_integer_type<typename BasicJsonType::number_unsigned_t, CompatibleNumberUnsignedType>::value, int> = 0>
+-void to_json(BasicJsonType& j, CompatibleNumberUnsignedType val) noexcept
+-{
+-    external_constructor<value_t::number_unsigned>::construct(j, static_cast<typename BasicJsonType::number_unsigned_t>(val));
+-}
+-
+-template<typename BasicJsonType, typename CompatibleNumberIntegerType,
+-         enable_if_t<is_compatible_integer_type<typename BasicJsonType::number_integer_t, CompatibleNumberIntegerType>::value, int> = 0>
+-void to_json(BasicJsonType& j, CompatibleNumberIntegerType val) noexcept
+-{
+-    external_constructor<value_t::number_integer>::construct(j, static_cast<typename BasicJsonType::number_integer_t>(val));
+-}
+-
+-template<typename BasicJsonType, typename EnumType,
+-         enable_if_t<std::is_enum<EnumType>::value, int> = 0>
+-void to_json(BasicJsonType& j, EnumType e) noexcept
+-{
+-    using underlying_type = typename std::underlying_type<EnumType>::type;
+-    external_constructor<value_t::number_integer>::construct(j, static_cast<underlying_type>(e));
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, const std::vector<bool>& e)
+-{
+-    external_constructor<value_t::array>::construct(j, e);
+-}
+-
+-template < typename BasicJsonType, typename CompatibleArrayType,
+-           enable_if_t < is_compatible_array_type<BasicJsonType,
+-                         CompatibleArrayType>::value&&
+-                         !is_compatible_object_type<BasicJsonType, CompatibleArrayType>::value&&
+-                         !is_compatible_string_type<BasicJsonType, CompatibleArrayType>::value&&
+-                         !std::is_same<typename BasicJsonType::binary_t, CompatibleArrayType>::value&&
+-                         !is_basic_json<CompatibleArrayType>::value,
+-                         int > = 0 >
+-void to_json(BasicJsonType& j, const CompatibleArrayType& arr)
+-{
+-    external_constructor<value_t::array>::construct(j, arr);
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, const typename BasicJsonType::binary_t& bin)
+-{
+-    external_constructor<value_t::binary>::construct(j, bin);
+-}
+-
+-template<typename BasicJsonType, typename T,
+-         enable_if_t<std::is_convertible<T, BasicJsonType>::value, int> = 0>
+-void to_json(BasicJsonType& j, const std::valarray<T>& arr)
+-{
+-    external_constructor<value_t::array>::construct(j, std::move(arr));
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, typename BasicJsonType::array_t&& arr)
+-{
+-    external_constructor<value_t::array>::construct(j, std::move(arr));
+-}
+-
+-template < typename BasicJsonType, typename CompatibleObjectType,
+-           enable_if_t < is_compatible_object_type<BasicJsonType, CompatibleObjectType>::value&& !is_basic_json<CompatibleObjectType>::value, int > = 0 >
+-void to_json(BasicJsonType& j, const CompatibleObjectType& obj)
+-{
+-    external_constructor<value_t::object>::construct(j, obj);
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, typename BasicJsonType::object_t&& obj)
+-{
+-    external_constructor<value_t::object>::construct(j, std::move(obj));
+-}
+-
+-template <
+-    typename BasicJsonType, typename T, std::size_t N,
+-    enable_if_t < !std::is_constructible<typename BasicJsonType::string_t,
+-                  const T(&)[N]>::value, // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-                  int > = 0 >
+-void to_json(BasicJsonType& j, const T(&arr)[N]) // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-{
+-    external_constructor<value_t::array>::construct(j, arr);
+-}
+-
+-template < typename BasicJsonType, typename T1, typename T2, enable_if_t < std::is_constructible<BasicJsonType, T1>::value&& std::is_constructible<BasicJsonType, T2>::value, int > = 0 >
+-void to_json(BasicJsonType& j, const std::pair<T1, T2>& p)
+-{
+-    j = { p.first, p.second };
+-}
+-
+-// for https://github.com/nlohmann/json/pull/1134
+-template<typename BasicJsonType, typename T,
+-         enable_if_t<std::is_same<T, iteration_proxy_value<typename BasicJsonType::iterator>>::value, int> = 0>
+-void to_json(BasicJsonType& j, const T& b)
+-{
+-    j = { {b.key(), b.value()} };
+-}
+-
+-template<typename BasicJsonType, typename Tuple, std::size_t... Idx>
+-void to_json_tuple_impl(BasicJsonType& j, const Tuple& t, index_sequence<Idx...> /*unused*/)
+-{
+-    j = { std::get<Idx>(t)... };
+-}
+-
+-template<typename BasicJsonType, typename T, enable_if_t<is_constructible_tuple<BasicJsonType, T>::value, int > = 0>
+-void to_json(BasicJsonType& j, const T& t)
+-{
+-    to_json_tuple_impl(j, t, make_index_sequence<std::tuple_size<T>::value> {});
+-}
+-
+-#if JSON_HAS_FILESYSTEM || JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, const std_fs::path& p)
+-{
+-    j = p.string();
+-}
+-#endif
+-
+-struct to_json_fn
+-{
+-    template<typename BasicJsonType, typename T>
+-    auto operator()(BasicJsonType& j, T&& val) const noexcept(noexcept(to_json(j, std::forward<T>(val))))
+-    -> decltype(to_json(j, std::forward<T>(val)), void())
+-    {
+-        return to_json(j, std::forward<T>(val));
+-    }
+-};
+-}  // namespace detail
+-
+-/// namespace to hold default `to_json` function
+-/// to see why this is required:
+-/// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4381.html
+-namespace // NOLINT(cert-dcl59-cpp,fuchsia-header-anon-namespaces,google-build-namespaces)
+-{
+-constexpr const auto& to_json = detail::static_const<detail::to_json_fn>::value; // NOLINT(misc-definitions-in-headers)
+-} // namespace
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/identity_tag.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-
+-namespace nlohmann
+-{
+-
+-/// @sa https://json.nlohmann.me/api/adl_serializer/
+-template<typename ValueType, typename>
+-struct adl_serializer
+-{
+-    /// @brief convert a JSON value to any value type
+-    /// @sa https://json.nlohmann.me/api/adl_serializer/from_json/
+-    template<typename BasicJsonType, typename TargetType = ValueType>
+-    static auto from_json(BasicJsonType && j, TargetType& val) noexcept(
+-        noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), val)))
+-    -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), val), void())
+-    {
+-        ::nlohmann::from_json(std::forward<BasicJsonType>(j), val);
+-    }
+-
+-    /// @brief convert a JSON value to any value type
+-    /// @sa https://json.nlohmann.me/api/adl_serializer/from_json/
+-    template<typename BasicJsonType, typename TargetType = ValueType>
+-    static auto from_json(BasicJsonType && j) noexcept(
+-    noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {})))
+-    -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {}))
+-    {
+-        return ::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {});
+-    }
+-
+-    /// @brief convert any value type to a JSON value
+-    /// @sa https://json.nlohmann.me/api/adl_serializer/to_json/
+-    template<typename BasicJsonType, typename TargetType = ValueType>
+-    static auto to_json(BasicJsonType& j, TargetType && val) noexcept(
+-        noexcept(::nlohmann::to_json(j, std::forward<TargetType>(val))))
+-    -> decltype(::nlohmann::to_json(j, std::forward<TargetType>(val)), void())
+-    {
+-        ::nlohmann::to_json(j, std::forward<TargetType>(val));
+-    }
+-};
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/byte_container_with_subtype.hpp>
+-
+-
+-#include <cstdint> // uint8_t, uint64_t
+-#include <tuple> // tie
+-#include <utility> // move
+-
+-namespace nlohmann
+-{
+-
+-/// @brief an internal type for a backed binary type
+-/// @sa https://json.nlohmann.me/api/byte_container_with_subtype/
+-template<typename BinaryType>
+-class byte_container_with_subtype : public BinaryType
+-{
+-  public:
+-    using container_type = BinaryType;
+-    using subtype_type = std::uint64_t;
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype() noexcept(noexcept(container_type()))
+-        : container_type()
+-    {}
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype(const container_type& b) noexcept(noexcept(container_type(b)))
+-        : container_type(b)
+-    {}
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype(container_type&& b) noexcept(noexcept(container_type(std::move(b))))
+-        : container_type(std::move(b))
+-    {}
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype(const container_type& b, subtype_type subtype_) noexcept(noexcept(container_type(b)))
+-        : container_type(b)
+-        , m_subtype(subtype_)
+-        , m_has_subtype(true)
+-    {}
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype(container_type&& b, subtype_type subtype_) noexcept(noexcept(container_type(std::move(b))))
+-        : container_type(std::move(b))
+-        , m_subtype(subtype_)
+-        , m_has_subtype(true)
+-    {}
+-
+-    bool operator==(const byte_container_with_subtype& rhs) const
+-    {
+-        return std::tie(static_cast<const BinaryType&>(*this), m_subtype, m_has_subtype) ==
+-               std::tie(static_cast<const BinaryType&>(rhs), rhs.m_subtype, rhs.m_has_subtype);
+-    }
+-
+-    bool operator!=(const byte_container_with_subtype& rhs) const
+-    {
+-        return !(rhs == *this);
+-    }
+-
+-    /// @brief sets the binary subtype
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/set_subtype/
+-    void set_subtype(subtype_type subtype_) noexcept
+-    {
+-        m_subtype = subtype_;
+-        m_has_subtype = true;
+-    }
+-
+-    /// @brief return the binary subtype
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/subtype/
+-    constexpr subtype_type subtype() const noexcept
+-    {
+-        return m_has_subtype ? m_subtype : static_cast<subtype_type>(-1);
+-    }
+-
+-    /// @brief return whether the value has a subtype
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/has_subtype/
+-    constexpr bool has_subtype() const noexcept
+-    {
+-        return m_has_subtype;
+-    }
+-
+-    /// @brief clears the binary subtype
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/clear_subtype/
+-    void clear_subtype() noexcept
+-    {
+-        m_subtype = 0;
+-        m_has_subtype = false;
+-    }
+-
+-  private:
+-    subtype_type m_subtype = 0;
+-    bool m_has_subtype = false;
+-};
+-
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/conversions/from_json.hpp>
+-
+-// #include <nlohmann/detail/conversions/to_json.hpp>
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/hash.hpp>
+-
+-
+-#include <cstdint> // uint8_t
+-#include <cstddef> // size_t
+-#include <functional> // hash
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-// boost::hash_combine
+-inline std::size_t combine(std::size_t seed, std::size_t h) noexcept
+-{
+-    seed ^= h + 0x9e3779b9 + (seed << 6U) + (seed >> 2U);
+-    return seed;
+-}
+-
+-/*!
+-@brief hash a JSON value
+-
+-The hash function tries to rely on std::hash where possible. Furthermore, the
+-type of the JSON value is taken into account to have different hash values for
+-null, 0, 0U, and false, etc.
+-
+-@tparam BasicJsonType basic_json specialization
+-@param j JSON value to hash
+-@return hash value of j
+-*/
+-template<typename BasicJsonType>
+-std::size_t hash(const BasicJsonType& j)
+-{
+-    using string_t = typename BasicJsonType::string_t;
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-
+-    const auto type = static_cast<std::size_t>(j.type());
+-    switch (j.type())
+-    {
+-        case BasicJsonType::value_t::null:
+-        case BasicJsonType::value_t::discarded:
+-        {
+-            return combine(type, 0);
+-        }
+-
+-        case BasicJsonType::value_t::object:
+-        {
+-            auto seed = combine(type, j.size());
+-            for (const auto& element : j.items())
+-            {
+-                const auto h = std::hash<string_t> {}(element.key());
+-                seed = combine(seed, h);
+-                seed = combine(seed, hash(element.value()));
+-            }
+-            return seed;
+-        }
+-
+-        case BasicJsonType::value_t::array:
+-        {
+-            auto seed = combine(type, j.size());
+-            for (const auto& element : j)
+-            {
+-                seed = combine(seed, hash(element));
+-            }
+-            return seed;
+-        }
+-
+-        case BasicJsonType::value_t::string:
+-        {
+-            const auto h = std::hash<string_t> {}(j.template get_ref<const string_t&>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::boolean:
+-        {
+-            const auto h = std::hash<bool> {}(j.template get<bool>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::number_integer:
+-        {
+-            const auto h = std::hash<number_integer_t> {}(j.template get<number_integer_t>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::number_unsigned:
+-        {
+-            const auto h = std::hash<number_unsigned_t> {}(j.template get<number_unsigned_t>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::number_float:
+-        {
+-            const auto h = std::hash<number_float_t> {}(j.template get<number_float_t>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::binary:
+-        {
+-            auto seed = combine(type, j.get_binary().size());
+-            const auto h = std::hash<bool> {}(j.get_binary().has_subtype());
+-            seed = combine(seed, h);
+-            seed = combine(seed, static_cast<std::size_t>(j.get_binary().subtype()));
+-            for (const auto byte : j.get_binary())
+-            {
+-                seed = combine(seed, std::hash<std::uint8_t> {}(byte));
+-            }
+-            return seed;
+-        }
+-
+-        default:                   // LCOV_EXCL_LINE
+-            JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-            return 0;              // LCOV_EXCL_LINE
+-    }
+-}
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/binary_reader.hpp>
+-
+-
+-#include <algorithm> // generate_n
+-#include <array> // array
+-#include <cmath> // ldexp
+-#include <cstddef> // size_t
+-#include <cstdint> // uint8_t, uint16_t, uint32_t, uint64_t
+-#include <cstdio> // snprintf
+-#include <cstring> // memcpy
+-#include <iterator> // back_inserter
+-#include <limits> // numeric_limits
+-#include <string> // char_traits, string
+-#include <utility> // make_pair, move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/input/input_adapters.hpp>
+-
+-
+-#include <array> // array
+-#include <cstddef> // size_t
+-#include <cstring> // strlen
+-#include <iterator> // begin, end, iterator_traits, random_access_iterator_tag, distance, next
+-#include <memory> // shared_ptr, make_shared, addressof
+-#include <numeric> // accumulate
+-#include <string> // string, char_traits
+-#include <type_traits> // enable_if, is_base_of, is_pointer, is_integral, remove_pointer
+-#include <utility> // pair, declval
+-
+-#ifndef JSON_NO_IO
+-    #include <cstdio>   // FILE *
+-    #include <istream>  // istream
+-#endif                  // JSON_NO_IO
+-
+-// #include <nlohmann/detail/iterators/iterator_traits.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/// the supported input formats
+-enum class input_format_t { json, cbor, msgpack, ubjson, bson };
+-
+-////////////////////
+-// input adapters //
+-////////////////////
+-
+-#ifndef JSON_NO_IO
+-/*!
+-Input adapter for stdio file access. This adapter read only 1 byte and do not use any
+- buffer. This adapter is a very low level adapter.
+-*/
+-class file_input_adapter
+-{
+-  public:
+-    using char_type = char;
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    explicit file_input_adapter(std::FILE* f) noexcept
+-        : m_file(f)
+-    {}
+-
+-    // make class move-only
+-    file_input_adapter(const file_input_adapter&) = delete;
+-    file_input_adapter(file_input_adapter&&) noexcept = default;
+-    file_input_adapter& operator=(const file_input_adapter&) = delete;
+-    file_input_adapter& operator=(file_input_adapter&&) = delete;
+-    ~file_input_adapter() = default;
+-
+-    std::char_traits<char>::int_type get_character() noexcept
+-    {
+-        return std::fgetc(m_file);
+-    }
+-
+-  private:
+-    /// the file pointer to read from
+-    std::FILE* m_file;
+-};
+-
+-
+-/*!
+-Input adapter for a (caching) istream. Ignores a UFT Byte Order Mark at
+-beginning of input. Does not support changing the underlying std::streambuf
+-in mid-input. Maintains underlying std::istream and std::streambuf to support
+-subsequent use of standard std::istream operations to process any input
+-characters following those used in parsing the JSON input.  Clears the
+-std::istream flags; any input errors (e.g., EOF) will be detected by the first
+-subsequent call for input from the std::istream.
+-*/
+-class input_stream_adapter
+-{
+-  public:
+-    using char_type = char;
+-
+-    ~input_stream_adapter()
+-    {
+-        // clear stream flags; we use underlying streambuf I/O, do not
+-        // maintain ifstream flags, except eof
+-        if (is != nullptr)
+-        {
+-            is->clear(is->rdstate() & std::ios::eofbit);
+-        }
+-    }
+-
+-    explicit input_stream_adapter(std::istream& i)
+-        : is(&i), sb(i.rdbuf())
+-    {}
+-
+-    // delete because of pointer members
+-    input_stream_adapter(const input_stream_adapter&) = delete;
+-    input_stream_adapter& operator=(input_stream_adapter&) = delete;
+-    input_stream_adapter& operator=(input_stream_adapter&&) = delete;
+-
+-    input_stream_adapter(input_stream_adapter&& rhs) noexcept
+-        : is(rhs.is), sb(rhs.sb)
+-    {
+-        rhs.is = nullptr;
+-        rhs.sb = nullptr;
+-    }
+-
+-    // std::istream/std::streambuf use std::char_traits<char>::to_int_type, to
+-    // ensure that std::char_traits<char>::eof() and the character 0xFF do not
+-    // end up as the same value, e.g. 0xFFFFFFFF.
+-    std::char_traits<char>::int_type get_character()
+-    {
+-        auto res = sb->sbumpc();
+-        // set eof manually, as we don't use the istream interface.
+-        if (JSON_HEDLEY_UNLIKELY(res == std::char_traits<char>::eof()))
+-        {
+-            is->clear(is->rdstate() | std::ios::eofbit);
+-        }
+-        return res;
+-    }
+-
+-  private:
+-    /// the associated input stream
+-    std::istream* is = nullptr;
+-    std::streambuf* sb = nullptr;
+-};
+-#endif  // JSON_NO_IO
+-
+-// General-purpose iterator-based adapter. It might not be as fast as
+-// theoretically possible for some containers, but it is extremely versatile.
+-template<typename IteratorType>
+-class iterator_input_adapter
+-{
+-  public:
+-    using char_type = typename std::iterator_traits<IteratorType>::value_type;
+-
+-    iterator_input_adapter(IteratorType first, IteratorType last)
+-        : current(std::move(first)), end(std::move(last))
+-    {}
+-
+-    typename std::char_traits<char_type>::int_type get_character()
+-    {
+-        if (JSON_HEDLEY_LIKELY(current != end))
+-        {
+-            auto result = std::char_traits<char_type>::to_int_type(*current);
+-            std::advance(current, 1);
+-            return result;
+-        }
+-
+-        return std::char_traits<char_type>::eof();
+-    }
+-
+-  private:
+-    IteratorType current;
+-    IteratorType end;
+-
+-    template<typename BaseInputAdapter, size_t T>
+-    friend struct wide_string_input_helper;
+-
+-    bool empty() const
+-    {
+-        return current == end;
+-    }
+-};
+-
+-
+-template<typename BaseInputAdapter, size_t T>
+-struct wide_string_input_helper;
+-
+-template<typename BaseInputAdapter>
+-struct wide_string_input_helper<BaseInputAdapter, 4>
+-{
+-    // UTF-32
+-    static void fill_buffer(BaseInputAdapter& input,
+-                            std::array<std::char_traits<char>::int_type, 4>& utf8_bytes,
+-                            size_t& utf8_bytes_index,
+-                            size_t& utf8_bytes_filled)
+-    {
+-        utf8_bytes_index = 0;
+-
+-        if (JSON_HEDLEY_UNLIKELY(input.empty()))
+-        {
+-            utf8_bytes[0] = std::char_traits<char>::eof();
+-            utf8_bytes_filled = 1;
+-        }
+-        else
+-        {
+-            // get the current character
+-            const auto wc = input.get_character();
+-
+-            // UTF-32 to UTF-8 encoding
+-            if (wc < 0x80)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(wc);
+-                utf8_bytes_filled = 1;
+-            }
+-            else if (wc <= 0x7FF)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xC0u | ((static_cast<unsigned int>(wc) >> 6u) & 0x1Fu));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 2;
+-            }
+-            else if (wc <= 0xFFFF)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xE0u | ((static_cast<unsigned int>(wc) >> 12u) & 0x0Fu));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | ((static_cast<unsigned int>(wc) >> 6u) & 0x3Fu));
+-                utf8_bytes[2] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 3;
+-            }
+-            else if (wc <= 0x10FFFF)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xF0u | ((static_cast<unsigned int>(wc) >> 18u) & 0x07u));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | ((static_cast<unsigned int>(wc) >> 12u) & 0x3Fu));
+-                utf8_bytes[2] = static_cast<std::char_traits<char>::int_type>(0x80u | ((static_cast<unsigned int>(wc) >> 6u) & 0x3Fu));
+-                utf8_bytes[3] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 4;
+-            }
+-            else
+-            {
+-                // unknown character
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(wc);
+-                utf8_bytes_filled = 1;
+-            }
+-        }
+-    }
+-};
+-
+-template<typename BaseInputAdapter>
+-struct wide_string_input_helper<BaseInputAdapter, 2>
+-{
+-    // UTF-16
+-    static void fill_buffer(BaseInputAdapter& input,
+-                            std::array<std::char_traits<char>::int_type, 4>& utf8_bytes,
+-                            size_t& utf8_bytes_index,
+-                            size_t& utf8_bytes_filled)
+-    {
+-        utf8_bytes_index = 0;
+-
+-        if (JSON_HEDLEY_UNLIKELY(input.empty()))
+-        {
+-            utf8_bytes[0] = std::char_traits<char>::eof();
+-            utf8_bytes_filled = 1;
+-        }
+-        else
+-        {
+-            // get the current character
+-            const auto wc = input.get_character();
+-
+-            // UTF-16 to UTF-8 encoding
+-            if (wc < 0x80)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(wc);
+-                utf8_bytes_filled = 1;
+-            }
+-            else if (wc <= 0x7FF)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xC0u | ((static_cast<unsigned int>(wc) >> 6u)));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 2;
+-            }
+-            else if (0xD800 > wc || wc >= 0xE000)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xE0u | ((static_cast<unsigned int>(wc) >> 12u)));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | ((static_cast<unsigned int>(wc) >> 6u) & 0x3Fu));
+-                utf8_bytes[2] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 3;
+-            }
+-            else
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!input.empty()))
+-                {
+-                    const auto wc2 = static_cast<unsigned int>(input.get_character());
+-                    const auto charcode = 0x10000u + (((static_cast<unsigned int>(wc) & 0x3FFu) << 10u) | (wc2 & 0x3FFu));
+-                    utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xF0u | (charcode >> 18u));
+-                    utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | ((charcode >> 12u) & 0x3Fu));
+-                    utf8_bytes[2] = static_cast<std::char_traits<char>::int_type>(0x80u | ((charcode >> 6u) & 0x3Fu));
+-                    utf8_bytes[3] = static_cast<std::char_traits<char>::int_type>(0x80u | (charcode & 0x3Fu));
+-                    utf8_bytes_filled = 4;
+-                }
+-                else
+-                {
+-                    utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(wc);
+-                    utf8_bytes_filled = 1;
+-                }
+-            }
+-        }
+-    }
+-};
+-
+-// Wraps another input apdater to convert wide character types into individual bytes.
+-template<typename BaseInputAdapter, typename WideCharType>
+-class wide_string_input_adapter
+-{
+-  public:
+-    using char_type = char;
+-
+-    wide_string_input_adapter(BaseInputAdapter base)
+-        : base_adapter(base) {}
+-
+-    typename std::char_traits<char>::int_type get_character() noexcept
+-    {
+-        // check if buffer needs to be filled
+-        if (utf8_bytes_index == utf8_bytes_filled)
+-        {
+-            fill_buffer<sizeof(WideCharType)>();
+-
+-            JSON_ASSERT(utf8_bytes_filled > 0);
+-            JSON_ASSERT(utf8_bytes_index == 0);
+-        }
+-
+-        // use buffer
+-        JSON_ASSERT(utf8_bytes_filled > 0);
+-        JSON_ASSERT(utf8_bytes_index < utf8_bytes_filled);
+-        return utf8_bytes[utf8_bytes_index++];
+-    }
+-
+-  private:
+-    BaseInputAdapter base_adapter;
+-
+-    template<size_t T>
+-    void fill_buffer()
+-    {
+-        wide_string_input_helper<BaseInputAdapter, T>::fill_buffer(base_adapter, utf8_bytes, utf8_bytes_index, utf8_bytes_filled);
+-    }
+-
+-    /// a buffer for UTF-8 bytes
+-    std::array<std::char_traits<char>::int_type, 4> utf8_bytes = {{0, 0, 0, 0}};
+-
+-    /// index to the utf8_codes array for the next valid byte
+-    std::size_t utf8_bytes_index = 0;
+-    /// number of valid bytes in the utf8_codes array
+-    std::size_t utf8_bytes_filled = 0;
+-};
+-
+-
+-template<typename IteratorType, typename Enable = void>
+-struct iterator_input_adapter_factory
+-{
+-    using iterator_type = IteratorType;
+-    using char_type = typename std::iterator_traits<iterator_type>::value_type;
+-    using adapter_type = iterator_input_adapter<iterator_type>;
+-
+-    static adapter_type create(IteratorType first, IteratorType last)
+-    {
+-        return adapter_type(std::move(first), std::move(last));
+-    }
+-};
+-
+-template<typename T>
+-struct is_iterator_of_multibyte
+-{
+-    using value_type = typename std::iterator_traits<T>::value_type;
+-    enum
+-    {
+-        value = sizeof(value_type) > 1
+-    };
+-};
+-
+-template<typename IteratorType>
+-struct iterator_input_adapter_factory<IteratorType, enable_if_t<is_iterator_of_multibyte<IteratorType>::value>>
+-{
+-    using iterator_type = IteratorType;
+-    using char_type = typename std::iterator_traits<iterator_type>::value_type;
+-    using base_adapter_type = iterator_input_adapter<iterator_type>;
+-    using adapter_type = wide_string_input_adapter<base_adapter_type, char_type>;
+-
+-    static adapter_type create(IteratorType first, IteratorType last)
+-    {
+-        return adapter_type(base_adapter_type(std::move(first), std::move(last)));
+-    }
+-};
+-
+-// General purpose iterator-based input
+-template<typename IteratorType>
+-typename iterator_input_adapter_factory<IteratorType>::adapter_type input_adapter(IteratorType first, IteratorType last)
+-{
+-    using factory_type = iterator_input_adapter_factory<IteratorType>;
+-    return factory_type::create(first, last);
+-}
+-
+-// Convenience shorthand from container to iterator
+-// Enables ADL on begin(container) and end(container)
+-// Encloses the using declarations in namespace for not to leak them to outside scope
+-
+-namespace container_input_adapter_factory_impl
+-{
+-
+-using std::begin;
+-using std::end;
+-
+-template<typename ContainerType, typename Enable = void>
+-struct container_input_adapter_factory {};
+-
+-template<typename ContainerType>
+-struct container_input_adapter_factory< ContainerType,
+-       void_t<decltype(begin(std::declval<ContainerType>()), end(std::declval<ContainerType>()))>>
+-       {
+-           using adapter_type = decltype(input_adapter(begin(std::declval<ContainerType>()), end(std::declval<ContainerType>())));
+-
+-           static adapter_type create(const ContainerType& container)
+-{
+-    return input_adapter(begin(container), end(container));
+-}
+-       };
+-
+-} // namespace container_input_adapter_factory_impl
+-
+-template<typename ContainerType>
+-typename container_input_adapter_factory_impl::container_input_adapter_factory<ContainerType>::adapter_type input_adapter(const ContainerType& container)
+-{
+-    return container_input_adapter_factory_impl::container_input_adapter_factory<ContainerType>::create(container);
+-}
+-
+-#ifndef JSON_NO_IO
+-// Special cases with fast paths
+-inline file_input_adapter input_adapter(std::FILE* file)
+-{
+-    return file_input_adapter(file);
+-}
+-
+-inline input_stream_adapter input_adapter(std::istream& stream)
+-{
+-    return input_stream_adapter(stream);
+-}
+-
+-inline input_stream_adapter input_adapter(std::istream&& stream)
+-{
+-    return input_stream_adapter(stream);
+-}
+-#endif  // JSON_NO_IO
+-
+-using contiguous_bytes_input_adapter = decltype(input_adapter(std::declval<const char*>(), std::declval<const char*>()));
+-
+-// Null-delimited strings, and the like.
+-template < typename CharT,
+-           typename std::enable_if <
+-               std::is_pointer<CharT>::value&&
+-               !std::is_array<CharT>::value&&
+-               std::is_integral<typename std::remove_pointer<CharT>::type>::value&&
+-               sizeof(typename std::remove_pointer<CharT>::type) == 1,
+-               int >::type = 0 >
+-contiguous_bytes_input_adapter input_adapter(CharT b)
+-{
+-    auto length = std::strlen(reinterpret_cast<const char*>(b));
+-    const auto* ptr = reinterpret_cast<const char*>(b);
+-    return input_adapter(ptr, ptr + length);
+-}
+-
+-template<typename T, std::size_t N>
+-auto input_adapter(T (&array)[N]) -> decltype(input_adapter(array, array + N)) // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-{
+-    return input_adapter(array, array + N);
+-}
+-
+-// This class only handles inputs of input_buffer_adapter type.
+-// It's required so that expressions like {ptr, len} can be implicitly cast
+-// to the correct adapter.
+-class span_input_adapter
+-{
+-  public:
+-    template < typename CharT,
+-               typename std::enable_if <
+-                   std::is_pointer<CharT>::value&&
+-                   std::is_integral<typename std::remove_pointer<CharT>::type>::value&&
+-                   sizeof(typename std::remove_pointer<CharT>::type) == 1,
+-                   int >::type = 0 >
+-    span_input_adapter(CharT b, std::size_t l)
+-        : ia(reinterpret_cast<const char*>(b), reinterpret_cast<const char*>(b) + l) {}
+-
+-    template<class IteratorType,
+-             typename std::enable_if<
+-                 std::is_same<typename iterator_traits<IteratorType>::iterator_category, std::random_access_iterator_tag>::value,
+-                 int>::type = 0>
+-    span_input_adapter(IteratorType first, IteratorType last)
+-        : ia(input_adapter(first, last)) {}
+-
+-    contiguous_bytes_input_adapter&& get()
+-    {
+-        return std::move(ia); // NOLINT(hicpp-move-const-arg,performance-move-const-arg)
+-    }
+-
+-  private:
+-    contiguous_bytes_input_adapter ia;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/json_sax.hpp>
+-
+-
+-#include <cstddef>
+-#include <string> // string
+-#include <utility> // move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-
+-/*!
+-@brief SAX interface
+-
+-This class describes the SAX interface used by @ref nlohmann::json::sax_parse.
+-Each function is called in different situations while the input is parsed. The
+-boolean return value informs the parser whether to continue processing the
+-input.
+-*/
+-template<typename BasicJsonType>
+-struct json_sax
+-{
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-
+-    /*!
+-    @brief a null value was read
+-    @return whether parsing should proceed
+-    */
+-    virtual bool null() = 0;
+-
+-    /*!
+-    @brief a boolean value was read
+-    @param[in] val  boolean value
+-    @return whether parsing should proceed
+-    */
+-    virtual bool boolean(bool val) = 0;
+-
+-    /*!
+-    @brief an integer number was read
+-    @param[in] val  integer value
+-    @return whether parsing should proceed
+-    */
+-    virtual bool number_integer(number_integer_t val) = 0;
+-
+-    /*!
+-    @brief an unsigned integer number was read
+-    @param[in] val  unsigned integer value
+-    @return whether parsing should proceed
+-    */
+-    virtual bool number_unsigned(number_unsigned_t val) = 0;
+-
+-    /*!
+-    @brief a floating-point number was read
+-    @param[in] val  floating-point value
+-    @param[in] s    raw token value
+-    @return whether parsing should proceed
+-    */
+-    virtual bool number_float(number_float_t val, const string_t& s) = 0;
+-
+-    /*!
+-    @brief a string value was read
+-    @param[in] val  string value
+-    @return whether parsing should proceed
+-    @note It is safe to move the passed string value.
+-    */
+-    virtual bool string(string_t& val) = 0;
+-
+-    /*!
+-    @brief a binary value was read
+-    @param[in] val  binary value
+-    @return whether parsing should proceed
+-    @note It is safe to move the passed binary value.
+-    */
+-    virtual bool binary(binary_t& val) = 0;
+-
+-    /*!
+-    @brief the beginning of an object was read
+-    @param[in] elements  number of object elements or -1 if unknown
+-    @return whether parsing should proceed
+-    @note binary formats may report the number of elements
+-    */
+-    virtual bool start_object(std::size_t elements) = 0;
+-
+-    /*!
+-    @brief an object key was read
+-    @param[in] val  object key
+-    @return whether parsing should proceed
+-    @note It is safe to move the passed string.
+-    */
+-    virtual bool key(string_t& val) = 0;
+-
+-    /*!
+-    @brief the end of an object was read
+-    @return whether parsing should proceed
+-    */
+-    virtual bool end_object() = 0;
+-
+-    /*!
+-    @brief the beginning of an array was read
+-    @param[in] elements  number of array elements or -1 if unknown
+-    @return whether parsing should proceed
+-    @note binary formats may report the number of elements
+-    */
+-    virtual bool start_array(std::size_t elements) = 0;
+-
+-    /*!
+-    @brief the end of an array was read
+-    @return whether parsing should proceed
+-    */
+-    virtual bool end_array() = 0;
+-
+-    /*!
+-    @brief a parse error occurred
+-    @param[in] position    the position in the input where the error occurs
+-    @param[in] last_token  the last read token
+-    @param[in] ex          an exception object describing the error
+-    @return whether parsing should proceed (must return false)
+-    */
+-    virtual bool parse_error(std::size_t position,
+-                             const std::string& last_token,
+-                             const detail::exception& ex) = 0;
+-
+-    json_sax() = default;
+-    json_sax(const json_sax&) = default;
+-    json_sax(json_sax&&) noexcept = default;
+-    json_sax& operator=(const json_sax&) = default;
+-    json_sax& operator=(json_sax&&) noexcept = default;
+-    virtual ~json_sax() = default;
+-};
+-
+-
+-namespace detail
+-{
+-/*!
+-@brief SAX implementation to create a JSON value from SAX events
+-
+-This class implements the @ref json_sax interface and processes the SAX events
+-to create a JSON value which makes it basically a DOM parser. The structure or
+-hierarchy of the JSON value is managed by the stack `ref_stack` which contains
+-a pointer to the respective array or object for each recursion depth.
+-
+-After successful parsing, the value that is passed by reference to the
+-constructor contains the parsed value.
+-
+-@tparam BasicJsonType  the JSON type
+-*/
+-template<typename BasicJsonType>
+-class json_sax_dom_parser
+-{
+-  public:
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-
+-    /*!
+-    @param[in,out] r  reference to a JSON value that is manipulated while
+-                       parsing
+-    @param[in] allow_exceptions_  whether parse errors yield exceptions
+-    */
+-    explicit json_sax_dom_parser(BasicJsonType& r, const bool allow_exceptions_ = true)
+-        : root(r), allow_exceptions(allow_exceptions_)
+-    {}
+-
+-    // make class move-only
+-    json_sax_dom_parser(const json_sax_dom_parser&) = delete;
+-    json_sax_dom_parser(json_sax_dom_parser&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    json_sax_dom_parser& operator=(const json_sax_dom_parser&) = delete;
+-    json_sax_dom_parser& operator=(json_sax_dom_parser&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    ~json_sax_dom_parser() = default;
+-
+-    bool null()
+-    {
+-        handle_value(nullptr);
+-        return true;
+-    }
+-
+-    bool boolean(bool val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_integer(number_integer_t val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_unsigned(number_unsigned_t val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_float(number_float_t val, const string_t& /*unused*/)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool string(string_t& val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool binary(binary_t& val)
+-    {
+-        handle_value(std::move(val));
+-        return true;
+-    }
+-
+-    bool start_object(std::size_t len)
+-    {
+-        ref_stack.push_back(handle_value(BasicJsonType::value_t::object));
+-
+-        if (JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
+-        {
+-            JSON_THROW(out_of_range::create(408, "excessive object size: " + std::to_string(len), *ref_stack.back()));
+-        }
+-
+-        return true;
+-    }
+-
+-    bool key(string_t& val)
+-    {
+-        // add null at given key and store the reference for later
+-        object_element = &(ref_stack.back()->m_value.object->operator[](val));
+-        return true;
+-    }
+-
+-    bool end_object()
+-    {
+-        ref_stack.back()->set_parents();
+-        ref_stack.pop_back();
+-        return true;
+-    }
+-
+-    bool start_array(std::size_t len)
+-    {
+-        ref_stack.push_back(handle_value(BasicJsonType::value_t::array));
+-
+-        if (JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
+-        {
+-            JSON_THROW(out_of_range::create(408, "excessive array size: " + std::to_string(len), *ref_stack.back()));
+-        }
+-
+-        return true;
+-    }
+-
+-    bool end_array()
+-    {
+-        ref_stack.back()->set_parents();
+-        ref_stack.pop_back();
+-        return true;
+-    }
+-
+-    template<class Exception>
+-    bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/,
+-                     const Exception& ex)
+-    {
+-        errored = true;
+-        static_cast<void>(ex);
+-        if (allow_exceptions)
+-        {
+-            JSON_THROW(ex);
+-        }
+-        return false;
+-    }
+-
+-    constexpr bool is_errored() const
+-    {
+-        return errored;
+-    }
+-
+-  private:
+-    /*!
+-    @invariant If the ref stack is empty, then the passed value will be the new
+-               root.
+-    @invariant If the ref stack contains a value, then it is an array or an
+-               object to which we can add elements
+-    */
+-    template<typename Value>
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    BasicJsonType* handle_value(Value&& v)
+-    {
+-        if (ref_stack.empty())
+-        {
+-            root = BasicJsonType(std::forward<Value>(v));
+-            return &root;
+-        }
+-
+-        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
+-
+-        if (ref_stack.back()->is_array())
+-        {
+-            ref_stack.back()->m_value.array->emplace_back(std::forward<Value>(v));
+-            return &(ref_stack.back()->m_value.array->back());
+-        }
+-
+-        JSON_ASSERT(ref_stack.back()->is_object());
+-        JSON_ASSERT(object_element);
+-        *object_element = BasicJsonType(std::forward<Value>(v));
+-        return object_element;
+-    }
+-
+-    /// the parsed JSON value
+-    BasicJsonType& root;
+-    /// stack to model hierarchy of values
+-    std::vector<BasicJsonType*> ref_stack {};
+-    /// helper to hold the reference for the next object element
+-    BasicJsonType* object_element = nullptr;
+-    /// whether a syntax error occurred
+-    bool errored = false;
+-    /// whether to throw exceptions in case of errors
+-    const bool allow_exceptions = true;
+-};
+-
+-template<typename BasicJsonType>
+-class json_sax_dom_callback_parser
+-{
+-  public:
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using parser_callback_t = typename BasicJsonType::parser_callback_t;
+-    using parse_event_t = typename BasicJsonType::parse_event_t;
+-
+-    json_sax_dom_callback_parser(BasicJsonType& r,
+-                                 const parser_callback_t cb,
+-                                 const bool allow_exceptions_ = true)
+-        : root(r), callback(cb), allow_exceptions(allow_exceptions_)
+-    {
+-        keep_stack.push_back(true);
+-    }
+-
+-    // make class move-only
+-    json_sax_dom_callback_parser(const json_sax_dom_callback_parser&) = delete;
+-    json_sax_dom_callback_parser(json_sax_dom_callback_parser&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    json_sax_dom_callback_parser& operator=(const json_sax_dom_callback_parser&) = delete;
+-    json_sax_dom_callback_parser& operator=(json_sax_dom_callback_parser&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    ~json_sax_dom_callback_parser() = default;
+-
+-    bool null()
+-    {
+-        handle_value(nullptr);
+-        return true;
+-    }
+-
+-    bool boolean(bool val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_integer(number_integer_t val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_unsigned(number_unsigned_t val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_float(number_float_t val, const string_t& /*unused*/)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool string(string_t& val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool binary(binary_t& val)
+-    {
+-        handle_value(std::move(val));
+-        return true;
+-    }
+-
+-    bool start_object(std::size_t len)
+-    {
+-        // check callback for object start
+-        const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::object_start, discarded);
+-        keep_stack.push_back(keep);
+-
+-        auto val = handle_value(BasicJsonType::value_t::object, true);
+-        ref_stack.push_back(val.second);
+-
+-        // check object limit
+-        if (ref_stack.back() && JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
+-        {
+-            JSON_THROW(out_of_range::create(408, "excessive object size: " + std::to_string(len), *ref_stack.back()));
+-        }
+-
+-        return true;
+-    }
+-
+-    bool key(string_t& val)
+-    {
+-        BasicJsonType k = BasicJsonType(val);
+-
+-        // check callback for key
+-        const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::key, k);
+-        key_keep_stack.push_back(keep);
+-
+-        // add discarded value at given key and store the reference for later
+-        if (keep && ref_stack.back())
+-        {
+-            object_element = &(ref_stack.back()->m_value.object->operator[](val) = discarded);
+-        }
+-
+-        return true;
+-    }
+-
+-    bool end_object()
+-    {
+-        if (ref_stack.back())
+-        {
+-            if (!callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back()))
+-            {
+-                // discard object
+-                *ref_stack.back() = discarded;
+-            }
+-            else
+-            {
+-                ref_stack.back()->set_parents();
+-            }
+-        }
+-
+-        JSON_ASSERT(!ref_stack.empty());
+-        JSON_ASSERT(!keep_stack.empty());
+-        ref_stack.pop_back();
+-        keep_stack.pop_back();
+-
+-        if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured())
+-        {
+-            // remove discarded value
+-            for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it)
+-            {
+-                if (it->is_discarded())
+-                {
+-                    ref_stack.back()->erase(it);
+-                    break;
+-                }
+-            }
+-        }
+-
+-        return true;
+-    }
+-
+-    bool start_array(std::size_t len)
+-    {
+-        const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::array_start, discarded);
+-        keep_stack.push_back(keep);
+-
+-        auto val = handle_value(BasicJsonType::value_t::array, true);
+-        ref_stack.push_back(val.second);
+-
+-        // check array limit
+-        if (ref_stack.back() && JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
+-        {
+-            JSON_THROW(out_of_range::create(408, "excessive array size: " + std::to_string(len), *ref_stack.back()));
+-        }
+-
+-        return true;
+-    }
+-
+-    bool end_array()
+-    {
+-        bool keep = true;
+-
+-        if (ref_stack.back())
+-        {
+-            keep = callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::array_end, *ref_stack.back());
+-            if (keep)
+-            {
+-                ref_stack.back()->set_parents();
+-            }
+-            else
+-            {
+-                // discard array
+-                *ref_stack.back() = discarded;
+-            }
+-        }
+-
+-        JSON_ASSERT(!ref_stack.empty());
+-        JSON_ASSERT(!keep_stack.empty());
+-        ref_stack.pop_back();
+-        keep_stack.pop_back();
+-
+-        // remove discarded value
+-        if (!keep && !ref_stack.empty() && ref_stack.back()->is_array())
+-        {
+-            ref_stack.back()->m_value.array->pop_back();
+-        }
+-
+-        return true;
+-    }
+-
+-    template<class Exception>
+-    bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/,
+-                     const Exception& ex)
+-    {
+-        errored = true;
+-        static_cast<void>(ex);
+-        if (allow_exceptions)
+-        {
+-            JSON_THROW(ex);
+-        }
+-        return false;
+-    }
+-
+-    constexpr bool is_errored() const
+-    {
+-        return errored;
+-    }
+-
+-  private:
+-    /*!
+-    @param[in] v  value to add to the JSON value we build during parsing
+-    @param[in] skip_callback  whether we should skip calling the callback
+-               function; this is required after start_array() and
+-               start_object() SAX events, because otherwise we would call the
+-               callback function with an empty array or object, respectively.
+-
+-    @invariant If the ref stack is empty, then the passed value will be the new
+-               root.
+-    @invariant If the ref stack contains a value, then it is an array or an
+-               object to which we can add elements
+-
+-    @return pair of boolean (whether value should be kept) and pointer (to the
+-            passed value in the ref_stack hierarchy; nullptr if not kept)
+-    */
+-    template<typename Value>
+-    std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
+-    {
+-        JSON_ASSERT(!keep_stack.empty());
+-
+-        // do not handle this value if we know it would be added to a discarded
+-        // container
+-        if (!keep_stack.back())
+-        {
+-            return {false, nullptr};
+-        }
+-
+-        // create value
+-        auto value = BasicJsonType(std::forward<Value>(v));
+-
+-        // check callback
+-        const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
+-
+-        // do not handle this value if we just learnt it shall be discarded
+-        if (!keep)
+-        {
+-            return {false, nullptr};
+-        }
+-
+-        if (ref_stack.empty())
+-        {
+-            root = std::move(value);
+-            return {true, &root};
+-        }
+-
+-        // skip this value if we already decided to skip the parent
+-        // (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
+-        if (!ref_stack.back())
+-        {
+-            return {false, nullptr};
+-        }
+-
+-        // we now only expect arrays and objects
+-        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
+-
+-        // array
+-        if (ref_stack.back()->is_array())
+-        {
+-            ref_stack.back()->m_value.array->emplace_back(std::move(value));
+-            return {true, &(ref_stack.back()->m_value.array->back())};
+-        }
+-
+-        // object
+-        JSON_ASSERT(ref_stack.back()->is_object());
+-        // check if we should store an element for the current key
+-        JSON_ASSERT(!key_keep_stack.empty());
+-        const bool store_element = key_keep_stack.back();
+-        key_keep_stack.pop_back();
+-
+-        if (!store_element)
+-        {
+-            return {false, nullptr};
+-        }
+-
+-        JSON_ASSERT(object_element);
+-        *object_element = std::move(value);
+-        return {true, object_element};
+-    }
+-
+-    /// the parsed JSON value
+-    BasicJsonType& root;
+-    /// stack to model hierarchy of values
+-    std::vector<BasicJsonType*> ref_stack {};
+-    /// stack to manage which values to keep
+-    std::vector<bool> keep_stack {};
+-    /// stack to manage which object keys to keep
+-    std::vector<bool> key_keep_stack {};
+-    /// helper to hold the reference for the next object element
+-    BasicJsonType* object_element = nullptr;
+-    /// whether a syntax error occurred
+-    bool errored = false;
+-    /// callback function
+-    const parser_callback_t callback = nullptr;
+-    /// whether to throw exceptions in case of errors
+-    const bool allow_exceptions = true;
+-    /// a discarded value for the callback
+-    BasicJsonType discarded = BasicJsonType::value_t::discarded;
+-};
+-
+-template<typename BasicJsonType>
+-class json_sax_acceptor
+-{
+-  public:
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-
+-    bool null()
+-    {
+-        return true;
+-    }
+-
+-    bool boolean(bool /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool number_integer(number_integer_t /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool number_unsigned(number_unsigned_t /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool number_float(number_float_t /*unused*/, const string_t& /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool string(string_t& /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool binary(binary_t& /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool start_object(std::size_t /*unused*/ = static_cast<std::size_t>(-1))
+-    {
+-        return true;
+-    }
+-
+-    bool key(string_t& /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool end_object()
+-    {
+-        return true;
+-    }
+-
+-    bool start_array(std::size_t /*unused*/ = static_cast<std::size_t>(-1))
+-    {
+-        return true;
+-    }
+-
+-    bool end_array()
+-    {
+-        return true;
+-    }
+-
+-    bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, const detail::exception& /*unused*/)
+-    {
+-        return false;
+-    }
+-};
+-}  // namespace detail
+-
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/lexer.hpp>
+-
+-
+-#include <array> // array
+-#include <clocale> // localeconv
+-#include <cstddef> // size_t
+-#include <cstdio> // snprintf
+-#include <cstdlib> // strtof, strtod, strtold, strtoll, strtoull
+-#include <initializer_list> // initializer_list
+-#include <string> // char_traits, string
+-#include <utility> // move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/input/input_adapters.hpp>
+-
+-// #include <nlohmann/detail/input/position_t.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-///////////
+-// lexer //
+-///////////
+-
+-template<typename BasicJsonType>
+-class lexer_base
+-{
+-  public:
+-    /// token types for the parser
+-    enum class token_type
+-    {
+-        uninitialized,    ///< indicating the scanner is uninitialized
+-        literal_true,     ///< the `true` literal
+-        literal_false,    ///< the `false` literal
+-        literal_null,     ///< the `null` literal
+-        value_string,     ///< a string -- use get_string() for actual value
+-        value_unsigned,   ///< an unsigned integer -- use get_number_unsigned() for actual value
+-        value_integer,    ///< a signed integer -- use get_number_integer() for actual value
+-        value_float,      ///< an floating point number -- use get_number_float() for actual value
+-        begin_array,      ///< the character for array begin `[`
+-        begin_object,     ///< the character for object begin `{`
+-        end_array,        ///< the character for array end `]`
+-        end_object,       ///< the character for object end `}`
+-        name_separator,   ///< the name separator `:`
+-        value_separator,  ///< the value separator `,`
+-        parse_error,      ///< indicating a parse error
+-        end_of_input,     ///< indicating the end of the input buffer
+-        literal_or_value  ///< a literal or the begin of a value (only for diagnostics)
+-    };
+-
+-    /// return name of values of type token_type (only used for errors)
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    JSON_HEDLEY_CONST
+-    static const char* token_type_name(const token_type t) noexcept
+-    {
+-        switch (t)
+-        {
+-            case token_type::uninitialized:
+-                return "<uninitialized>";
+-            case token_type::literal_true:
+-                return "true literal";
+-            case token_type::literal_false:
+-                return "false literal";
+-            case token_type::literal_null:
+-                return "null literal";
+-            case token_type::value_string:
+-                return "string literal";
+-            case token_type::value_unsigned:
+-            case token_type::value_integer:
+-            case token_type::value_float:
+-                return "number literal";
+-            case token_type::begin_array:
+-                return "'['";
+-            case token_type::begin_object:
+-                return "'{'";
+-            case token_type::end_array:
+-                return "']'";
+-            case token_type::end_object:
+-                return "'}'";
+-            case token_type::name_separator:
+-                return "':'";
+-            case token_type::value_separator:
+-                return "','";
+-            case token_type::parse_error:
+-                return "<parse error>";
+-            case token_type::end_of_input:
+-                return "end of input";
+-            case token_type::literal_or_value:
+-                return "'[', '{', or a literal";
+-            // LCOV_EXCL_START
+-            default: // catch non-enum values
+-                return "unknown token";
+-                // LCOV_EXCL_STOP
+-        }
+-    }
+-};
+-/*!
+-@brief lexical analysis
+-
+-This class organizes the lexical analysis during JSON deserialization.
+-*/
+-template<typename BasicJsonType, typename InputAdapterType>
+-class lexer : public lexer_base<BasicJsonType>
+-{
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using char_type = typename InputAdapterType::char_type;
+-    using char_int_type = typename std::char_traits<char_type>::int_type;
+-
+-  public:
+-    using token_type = typename lexer_base<BasicJsonType>::token_type;
+-
+-    explicit lexer(InputAdapterType&& adapter, bool ignore_comments_ = false) noexcept
+-        : ia(std::move(adapter))
+-        , ignore_comments(ignore_comments_)
+-        , decimal_point_char(static_cast<char_int_type>(get_decimal_point()))
+-    {}
+-
+-    // delete because of pointer members
+-    lexer(const lexer&) = delete;
+-    lexer(lexer&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    lexer& operator=(lexer&) = delete;
+-    lexer& operator=(lexer&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    ~lexer() = default;
+-
+-  private:
+-    /////////////////////
+-    // locales
+-    /////////////////////
+-
+-    /// return the locale-dependent decimal point
+-    JSON_HEDLEY_PURE
+-    static char get_decimal_point() noexcept
+-    {
+-        const auto* loc = localeconv();
+-        JSON_ASSERT(loc != nullptr);
+-        return (loc->decimal_point == nullptr) ? '.' : *(loc->decimal_point);
+-    }
+-
+-    /////////////////////
+-    // scan functions
+-    /////////////////////
+-
+-    /*!
+-    @brief get codepoint from 4 hex characters following `\u`
+-
+-    For input "\u c1 c2 c3 c4" the codepoint is:
+-      (c1 * 0x1000) + (c2 * 0x0100) + (c3 * 0x0010) + c4
+-    = (c1 << 12) + (c2 << 8) + (c3 << 4) + (c4 << 0)
+-
+-    Furthermore, the possible characters '0'..'9', 'A'..'F', and 'a'..'f'
+-    must be converted to the integers 0x0..0x9, 0xA..0xF, 0xA..0xF, resp. The
+-    conversion is done by subtracting the offset (0x30, 0x37, and 0x57)
+-    between the ASCII value of the character and the desired integer value.
+-
+-    @return codepoint (0x0000..0xFFFF) or -1 in case of an error (e.g. EOF or
+-            non-hex character)
+-    */
+-    int get_codepoint()
+-    {
+-        // this function only makes sense after reading `\u`
+-        JSON_ASSERT(current == 'u');
+-        int codepoint = 0;
+-
+-        const auto factors = { 12u, 8u, 4u, 0u };
+-        for (const auto factor : factors)
+-        {
+-            get();
+-
+-            if (current >= '0' && current <= '9')
+-            {
+-                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x30u) << factor);
+-            }
+-            else if (current >= 'A' && current <= 'F')
+-            {
+-                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x37u) << factor);
+-            }
+-            else if (current >= 'a' && current <= 'f')
+-            {
+-                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x57u) << factor);
+-            }
+-            else
+-            {
+-                return -1;
+-            }
+-        }
+-
+-        JSON_ASSERT(0x0000 <= codepoint && codepoint <= 0xFFFF);
+-        return codepoint;
+-    }
+-
+-    /*!
+-    @brief check if the next byte(s) are inside a given range
+-
+-    Adds the current byte and, for each passed range, reads a new byte and
+-    checks if it is inside the range. If a violation was detected, set up an
+-    error message and return false. Otherwise, return true.
+-
+-    @param[in] ranges  list of integers; interpreted as list of pairs of
+-                       inclusive lower and upper bound, respectively
+-
+-    @pre The passed list @a ranges must have 2, 4, or 6 elements; that is,
+-         1, 2, or 3 pairs. This precondition is enforced by an assertion.
+-
+-    @return true if and only if no range violation was detected
+-    */
+-    bool next_byte_in_range(std::initializer_list<char_int_type> ranges)
+-    {
+-        JSON_ASSERT(ranges.size() == 2 || ranges.size() == 4 || ranges.size() == 6);
+-        add(current);
+-
+-        for (auto range = ranges.begin(); range != ranges.end(); ++range)
+-        {
+-            get();
+-            if (JSON_HEDLEY_LIKELY(*range <= current && current <= *(++range)))
+-            {
+-                add(current);
+-            }
+-            else
+-            {
+-                error_message = "invalid string: ill-formed UTF-8 byte";
+-                return false;
+-            }
+-        }
+-
+-        return true;
+-    }
+-
+-    /*!
+-    @brief scan a string literal
+-
+-    This function scans a string according to Sect. 7 of RFC 8259. While
+-    scanning, bytes are escaped and copied into buffer token_buffer. Then the
+-    function returns successfully, token_buffer is *not* null-terminated (as it
+-    may contain \0 bytes), and token_buffer.size() is the number of bytes in the
+-    string.
+-
+-    @return token_type::value_string if string could be successfully scanned,
+-            token_type::parse_error otherwise
+-
+-    @note In case of errors, variable error_message contains a textual
+-          description.
+-    */
+-    token_type scan_string()
+-    {
+-        // reset token_buffer (ignore opening quote)
+-        reset();
+-
+-        // we entered the function by reading an open quote
+-        JSON_ASSERT(current == '\"');
+-
+-        while (true)
+-        {
+-            // get next character
+-            switch (get())
+-            {
+-                // end of file while parsing string
+-                case std::char_traits<char_type>::eof():
+-                {
+-                    error_message = "invalid string: missing closing quote";
+-                    return token_type::parse_error;
+-                }
+-
+-                // closing quote
+-                case '\"':
+-                {
+-                    return token_type::value_string;
+-                }
+-
+-                // escapes
+-                case '\\':
+-                {
+-                    switch (get())
+-                    {
+-                        // quotation mark
+-                        case '\"':
+-                            add('\"');
+-                            break;
+-                        // reverse solidus
+-                        case '\\':
+-                            add('\\');
+-                            break;
+-                        // solidus
+-                        case '/':
+-                            add('/');
+-                            break;
+-                        // backspace
+-                        case 'b':
+-                            add('\b');
+-                            break;
+-                        // form feed
+-                        case 'f':
+-                            add('\f');
+-                            break;
+-                        // line feed
+-                        case 'n':
+-                            add('\n');
+-                            break;
+-                        // carriage return
+-                        case 'r':
+-                            add('\r');
+-                            break;
+-                        // tab
+-                        case 't':
+-                            add('\t');
+-                            break;
+-
+-                        // unicode escapes
+-                        case 'u':
+-                        {
+-                            const int codepoint1 = get_codepoint();
+-                            int codepoint = codepoint1; // start with codepoint1
+-
+-                            if (JSON_HEDLEY_UNLIKELY(codepoint1 == -1))
+-                            {
+-                                error_message = "invalid string: '\\u' must be followed by 4 hex digits";
+-                                return token_type::parse_error;
+-                            }
+-
+-                            // check if code point is a high surrogate
+-                            if (0xD800 <= codepoint1 && codepoint1 <= 0xDBFF)
+-                            {
+-                                // expect next \uxxxx entry
+-                                if (JSON_HEDLEY_LIKELY(get() == '\\' && get() == 'u'))
+-                                {
+-                                    const int codepoint2 = get_codepoint();
+-
+-                                    if (JSON_HEDLEY_UNLIKELY(codepoint2 == -1))
+-                                    {
+-                                        error_message = "invalid string: '\\u' must be followed by 4 hex digits";
+-                                        return token_type::parse_error;
+-                                    }
+-
+-                                    // check if codepoint2 is a low surrogate
+-                                    if (JSON_HEDLEY_LIKELY(0xDC00 <= codepoint2 && codepoint2 <= 0xDFFF))
+-                                    {
+-                                        // overwrite codepoint
+-                                        codepoint = static_cast<int>(
+-                                                        // high surrogate occupies the most significant 22 bits
+-                                                        (static_cast<unsigned int>(codepoint1) << 10u)
+-                                                        // low surrogate occupies the least significant 15 bits
+-                                                        + static_cast<unsigned int>(codepoint2)
+-                                                        // there is still the 0xD800, 0xDC00 and 0x10000 noise
+-                                                        // in the result, so we have to subtract with:
+-                                                        // (0xD800 << 10) + DC00 - 0x10000 = 0x35FDC00
+-                                                        - 0x35FDC00u);
+-                                    }
+-                                    else
+-                                    {
+-                                        error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
+-                                        return token_type::parse_error;
+-                                    }
+-                                }
+-                                else
+-                                {
+-                                    error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
+-                                    return token_type::parse_error;
+-                                }
+-                            }
+-                            else
+-                            {
+-                                if (JSON_HEDLEY_UNLIKELY(0xDC00 <= codepoint1 && codepoint1 <= 0xDFFF))
+-                                {
+-                                    error_message = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
+-                                    return token_type::parse_error;
+-                                }
+-                            }
+-
+-                            // result of the above calculation yields a proper codepoint
+-                            JSON_ASSERT(0x00 <= codepoint && codepoint <= 0x10FFFF);
+-
+-                            // translate codepoint into bytes
+-                            if (codepoint < 0x80)
+-                            {
+-                                // 1-byte characters: 0xxxxxxx (ASCII)
+-                                add(static_cast<char_int_type>(codepoint));
+-                            }
+-                            else if (codepoint <= 0x7FF)
+-                            {
+-                                // 2-byte characters: 110xxxxx 10xxxxxx
+-                                add(static_cast<char_int_type>(0xC0u | (static_cast<unsigned int>(codepoint) >> 6u)));
+-                                add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
+-                            }
+-                            else if (codepoint <= 0xFFFF)
+-                            {
+-                                // 3-byte characters: 1110xxxx 10xxxxxx 10xxxxxx
+-                                add(static_cast<char_int_type>(0xE0u | (static_cast<unsigned int>(codepoint) >> 12u)));
+-                                add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu)));
+-                                add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
+-                            }
+-                            else
+-                            {
+-                                // 4-byte characters: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
+-                                add(static_cast<char_int_type>(0xF0u | (static_cast<unsigned int>(codepoint) >> 18u)));
+-                                add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 12u) & 0x3Fu)));
+-                                add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu)));
+-                                add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
+-                            }
+-
+-                            break;
+-                        }
+-
+-                        // other characters after escape
+-                        default:
+-                            error_message = "invalid string: forbidden character after backslash";
+-                            return token_type::parse_error;
+-                    }
+-
+-                    break;
+-                }
+-
+-                // invalid control characters
+-                case 0x00:
+-                {
+-                    error_message = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x01:
+-                {
+-                    error_message = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x02:
+-                {
+-                    error_message = "invalid string: control character U+0002 (STX) must be escaped to \\u0002";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x03:
+-                {
+-                    error_message = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x04:
+-                {
+-                    error_message = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x05:
+-                {
+-                    error_message = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x06:
+-                {
+-                    error_message = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x07:
+-                {
+-                    error_message = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x08:
+-                {
+-                    error_message = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x09:
+-                {
+-                    error_message = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0A:
+-                {
+-                    error_message = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0B:
+-                {
+-                    error_message = "invalid string: control character U+000B (VT) must be escaped to \\u000B";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0C:
+-                {
+-                    error_message = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0D:
+-                {
+-                    error_message = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0E:
+-                {
+-                    error_message = "invalid string: control character U+000E (SO) must be escaped to \\u000E";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0F:
+-                {
+-                    error_message = "invalid string: control character U+000F (SI) must be escaped to \\u000F";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x10:
+-                {
+-                    error_message = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x11:
+-                {
+-                    error_message = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x12:
+-                {
+-                    error_message = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x13:
+-                {
+-                    error_message = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x14:
+-                {
+-                    error_message = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x15:
+-                {
+-                    error_message = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x16:
+-                {
+-                    error_message = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x17:
+-                {
+-                    error_message = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x18:
+-                {
+-                    error_message = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x19:
+-                {
+-                    error_message = "invalid string: control character U+0019 (EM) must be escaped to \\u0019";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1A:
+-                {
+-                    error_message = "invalid string: control character U+001A (SUB) must be escaped to \\u001A";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1B:
+-                {
+-                    error_message = "invalid string: control character U+001B (ESC) must be escaped to \\u001B";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1C:
+-                {
+-                    error_message = "invalid string: control character U+001C (FS) must be escaped to \\u001C";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1D:
+-                {
+-                    error_message = "invalid string: control character U+001D (GS) must be escaped to \\u001D";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1E:
+-                {
+-                    error_message = "invalid string: control character U+001E (RS) must be escaped to \\u001E";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1F:
+-                {
+-                    error_message = "invalid string: control character U+001F (US) must be escaped to \\u001F";
+-                    return token_type::parse_error;
+-                }
+-
+-                // U+0020..U+007F (except U+0022 (quote) and U+005C (backspace))
+-                case 0x20:
+-                case 0x21:
+-                case 0x23:
+-                case 0x24:
+-                case 0x25:
+-                case 0x26:
+-                case 0x27:
+-                case 0x28:
+-                case 0x29:
+-                case 0x2A:
+-                case 0x2B:
+-                case 0x2C:
+-                case 0x2D:
+-                case 0x2E:
+-                case 0x2F:
+-                case 0x30:
+-                case 0x31:
+-                case 0x32:
+-                case 0x33:
+-                case 0x34:
+-                case 0x35:
+-                case 0x36:
+-                case 0x37:
+-                case 0x38:
+-                case 0x39:
+-                case 0x3A:
+-                case 0x3B:
+-                case 0x3C:
+-                case 0x3D:
+-                case 0x3E:
+-                case 0x3F:
+-                case 0x40:
+-                case 0x41:
+-                case 0x42:
+-                case 0x43:
+-                case 0x44:
+-                case 0x45:
+-                case 0x46:
+-                case 0x47:
+-                case 0x48:
+-                case 0x49:
+-                case 0x4A:
+-                case 0x4B:
+-                case 0x4C:
+-                case 0x4D:
+-                case 0x4E:
+-                case 0x4F:
+-                case 0x50:
+-                case 0x51:
+-                case 0x52:
+-                case 0x53:
+-                case 0x54:
+-                case 0x55:
+-                case 0x56:
+-                case 0x57:
+-                case 0x58:
+-                case 0x59:
+-                case 0x5A:
+-                case 0x5B:
+-                case 0x5D:
+-                case 0x5E:
+-                case 0x5F:
+-                case 0x60:
+-                case 0x61:
+-                case 0x62:
+-                case 0x63:
+-                case 0x64:
+-                case 0x65:
+-                case 0x66:
+-                case 0x67:
+-                case 0x68:
+-                case 0x69:
+-                case 0x6A:
+-                case 0x6B:
+-                case 0x6C:
+-                case 0x6D:
+-                case 0x6E:
+-                case 0x6F:
+-                case 0x70:
+-                case 0x71:
+-                case 0x72:
+-                case 0x73:
+-                case 0x74:
+-                case 0x75:
+-                case 0x76:
+-                case 0x77:
+-                case 0x78:
+-                case 0x79:
+-                case 0x7A:
+-                case 0x7B:
+-                case 0x7C:
+-                case 0x7D:
+-                case 0x7E:
+-                case 0x7F:
+-                {
+-                    add(current);
+-                    break;
+-                }
+-
+-                // U+0080..U+07FF: bytes C2..DF 80..BF
+-                case 0xC2:
+-                case 0xC3:
+-                case 0xC4:
+-                case 0xC5:
+-                case 0xC6:
+-                case 0xC7:
+-                case 0xC8:
+-                case 0xC9:
+-                case 0xCA:
+-                case 0xCB:
+-                case 0xCC:
+-                case 0xCD:
+-                case 0xCE:
+-                case 0xCF:
+-                case 0xD0:
+-                case 0xD1:
+-                case 0xD2:
+-                case 0xD3:
+-                case 0xD4:
+-                case 0xD5:
+-                case 0xD6:
+-                case 0xD7:
+-                case 0xD8:
+-                case 0xD9:
+-                case 0xDA:
+-                case 0xDB:
+-                case 0xDC:
+-                case 0xDD:
+-                case 0xDE:
+-                case 0xDF:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!next_byte_in_range({0x80, 0xBF})))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+0800..U+0FFF: bytes E0 A0..BF 80..BF
+-                case 0xE0:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0xA0, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+1000..U+CFFF: bytes E1..EC 80..BF 80..BF
+-                // U+E000..U+FFFF: bytes EE..EF 80..BF 80..BF
+-                case 0xE1:
+-                case 0xE2:
+-                case 0xE3:
+-                case 0xE4:
+-                case 0xE5:
+-                case 0xE6:
+-                case 0xE7:
+-                case 0xE8:
+-                case 0xE9:
+-                case 0xEA:
+-                case 0xEB:
+-                case 0xEC:
+-                case 0xEE:
+-                case 0xEF:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+D000..U+D7FF: bytes ED 80..9F 80..BF
+-                case 0xED:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x9F, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+10000..U+3FFFF F0 90..BF 80..BF 80..BF
+-                case 0xF0:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x90, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+40000..U+FFFFF F1..F3 80..BF 80..BF 80..BF
+-                case 0xF1:
+-                case 0xF2:
+-                case 0xF3:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+100000..U+10FFFF F4 80..8F 80..BF 80..BF
+-                case 0xF4:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x8F, 0x80, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // remaining bytes (80..C1 and F5..FF) are ill-formed
+-                default:
+-                {
+-                    error_message = "invalid string: ill-formed UTF-8 byte";
+-                    return token_type::parse_error;
+-                }
+-            }
+-        }
+-    }
+-
+-    /*!
+-     * @brief scan a comment
+-     * @return whether comment could be scanned successfully
+-     */
+-    bool scan_comment()
+-    {
+-        switch (get())
+-        {
+-            // single-line comments skip input until a newline or EOF is read
+-            case '/':
+-            {
+-                while (true)
+-                {
+-                    switch (get())
+-                    {
+-                        case '\n':
+-                        case '\r':
+-                        case std::char_traits<char_type>::eof():
+-                        case '\0':
+-                            return true;
+-
+-                        default:
+-                            break;
+-                    }
+-                }
+-            }
+-
+-            // multi-line comments skip input until */ is read
+-            case '*':
+-            {
+-                while (true)
+-                {
+-                    switch (get())
+-                    {
+-                        case std::char_traits<char_type>::eof():
+-                        case '\0':
+-                        {
+-                            error_message = "invalid comment; missing closing '*/'";
+-                            return false;
+-                        }
+-
+-                        case '*':
+-                        {
+-                            switch (get())
+-                            {
+-                                case '/':
+-                                    return true;
+-
+-                                default:
+-                                {
+-                                    unget();
+-                                    continue;
+-                                }
+-                            }
+-                        }
+-
+-                        default:
+-                            continue;
+-                    }
+-                }
+-            }
+-
+-            // unexpected character after reading '/'
+-            default:
+-            {
+-                error_message = "invalid comment; expecting '/' or '*' after '/'";
+-                return false;
+-            }
+-        }
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    static void strtof(float& f, const char* str, char** endptr) noexcept
+-    {
+-        f = std::strtof(str, endptr);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    static void strtof(double& f, const char* str, char** endptr) noexcept
+-    {
+-        f = std::strtod(str, endptr);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    static void strtof(long double& f, const char* str, char** endptr) noexcept
+-    {
+-        f = std::strtold(str, endptr);
+-    }
+-
+-    /*!
+-    @brief scan a number literal
+-
+-    This function scans a string according to Sect. 6 of RFC 8259.
+-
+-    The function is realized with a deterministic finite state machine derived
+-    from the grammar described in RFC 8259. Starting in state "init", the
+-    input is read and used to determined the next state. Only state "done"
+-    accepts the number. State "error" is a trap state to model errors. In the
+-    table below, "anything" means any character but the ones listed before.
+-
+-    state    | 0        | 1-9      | e E      | +       | -       | .        | anything
+-    ---------|----------|----------|----------|---------|---------|----------|-----------
+-    init     | zero     | any1     | [error]  | [error] | minus   | [error]  | [error]
+-    minus    | zero     | any1     | [error]  | [error] | [error] | [error]  | [error]
+-    zero     | done     | done     | exponent | done    | done    | decimal1 | done
+-    any1     | any1     | any1     | exponent | done    | done    | decimal1 | done
+-    decimal1 | decimal2 | decimal2 | [error]  | [error] | [error] | [error]  | [error]
+-    decimal2 | decimal2 | decimal2 | exponent | done    | done    | done     | done
+-    exponent | any2     | any2     | [error]  | sign    | sign    | [error]  | [error]
+-    sign     | any2     | any2     | [error]  | [error] | [error] | [error]  | [error]
+-    any2     | any2     | any2     | done     | done    | done    | done     | done
+-
+-    The state machine is realized with one label per state (prefixed with
+-    "scan_number_") and `goto` statements between them. The state machine
+-    contains cycles, but any cycle can be left when EOF is read. Therefore,
+-    the function is guaranteed to terminate.
+-
+-    During scanning, the read bytes are stored in token_buffer. This string is
+-    then converted to a signed integer, an unsigned integer, or a
+-    floating-point number.
+-
+-    @return token_type::value_unsigned, token_type::value_integer, or
+-            token_type::value_float if number could be successfully scanned,
+-            token_type::parse_error otherwise
+-
+-    @note The scanner is independent of the current locale. Internally, the
+-          locale's decimal point is used instead of `.` to work with the
+-          locale-dependent converters.
+-    */
+-    token_type scan_number()  // lgtm [cpp/use-of-goto]
+-    {
+-        // reset token_buffer to store the number's bytes
+-        reset();
+-
+-        // the type of the parsed number; initially set to unsigned; will be
+-        // changed if minus sign, decimal point or exponent is read
+-        token_type number_type = token_type::value_unsigned;
+-
+-        // state (init): we just found out we need to scan a number
+-        switch (current)
+-        {
+-            case '-':
+-            {
+-                add(current);
+-                goto scan_number_minus;
+-            }
+-
+-            case '0':
+-            {
+-                add(current);
+-                goto scan_number_zero;
+-            }
+-
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any1;
+-            }
+-
+-            // all other characters are rejected outside scan_number()
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-
+-scan_number_minus:
+-        // state: we just parsed a leading minus sign
+-        number_type = token_type::value_integer;
+-        switch (get())
+-        {
+-            case '0':
+-            {
+-                add(current);
+-                goto scan_number_zero;
+-            }
+-
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any1;
+-            }
+-
+-            default:
+-            {
+-                error_message = "invalid number; expected digit after '-'";
+-                return token_type::parse_error;
+-            }
+-        }
+-
+-scan_number_zero:
+-        // state: we just parse a zero (maybe with a leading minus sign)
+-        switch (get())
+-        {
+-            case '.':
+-            {
+-                add(decimal_point_char);
+-                goto scan_number_decimal1;
+-            }
+-
+-            case 'e':
+-            case 'E':
+-            {
+-                add(current);
+-                goto scan_number_exponent;
+-            }
+-
+-            default:
+-                goto scan_number_done;
+-        }
+-
+-scan_number_any1:
+-        // state: we just parsed a number 0-9 (maybe with a leading minus sign)
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any1;
+-            }
+-
+-            case '.':
+-            {
+-                add(decimal_point_char);
+-                goto scan_number_decimal1;
+-            }
+-
+-            case 'e':
+-            case 'E':
+-            {
+-                add(current);
+-                goto scan_number_exponent;
+-            }
+-
+-            default:
+-                goto scan_number_done;
+-        }
+-
+-scan_number_decimal1:
+-        // state: we just parsed a decimal point
+-        number_type = token_type::value_float;
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_decimal2;
+-            }
+-
+-            default:
+-            {
+-                error_message = "invalid number; expected digit after '.'";
+-                return token_type::parse_error;
+-            }
+-        }
+-
+-scan_number_decimal2:
+-        // we just parsed at least one number after a decimal point
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_decimal2;
+-            }
+-
+-            case 'e':
+-            case 'E':
+-            {
+-                add(current);
+-                goto scan_number_exponent;
+-            }
+-
+-            default:
+-                goto scan_number_done;
+-        }
+-
+-scan_number_exponent:
+-        // we just parsed an exponent
+-        number_type = token_type::value_float;
+-        switch (get())
+-        {
+-            case '+':
+-            case '-':
+-            {
+-                add(current);
+-                goto scan_number_sign;
+-            }
+-
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any2;
+-            }
+-
+-            default:
+-            {
+-                error_message =
+-                    "invalid number; expected '+', '-', or digit after exponent";
+-                return token_type::parse_error;
+-            }
+-        }
+-
+-scan_number_sign:
+-        // we just parsed an exponent sign
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any2;
+-            }
+-
+-            default:
+-            {
+-                error_message = "invalid number; expected digit after exponent sign";
+-                return token_type::parse_error;
+-            }
+-        }
+-
+-scan_number_any2:
+-        // we just parsed a number after the exponent or exponent sign
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any2;
+-            }
+-
+-            default:
+-                goto scan_number_done;
+-        }
+-
+-scan_number_done:
+-        // unget the character after the number (we only read it to know that
+-        // we are done scanning a number)
+-        unget();
+-
+-        char* endptr = nullptr; // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-        errno = 0;
+-
+-        // try to parse integers first and fall back to floats
+-        if (number_type == token_type::value_unsigned)
+-        {
+-            const auto x = std::strtoull(token_buffer.data(), &endptr, 10);
+-
+-            // we checked the number format before
+-            JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
+-
+-            if (errno == 0)
+-            {
+-                value_unsigned = static_cast<number_unsigned_t>(x);
+-                if (value_unsigned == x)
+-                {
+-                    return token_type::value_unsigned;
+-                }
+-            }
+-        }
+-        else if (number_type == token_type::value_integer)
+-        {
+-            const auto x = std::strtoll(token_buffer.data(), &endptr, 10);
+-
+-            // we checked the number format before
+-            JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
+-
+-            if (errno == 0)
+-            {
+-                value_integer = static_cast<number_integer_t>(x);
+-                if (value_integer == x)
+-                {
+-                    return token_type::value_integer;
+-                }
+-            }
+-        }
+-
+-        // this code is reached if we parse a floating-point number or if an
+-        // integer conversion above failed
+-        strtof(value_float, token_buffer.data(), &endptr);
+-
+-        // we checked the number format before
+-        JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
+-
+-        return token_type::value_float;
+-    }
+-
+-    /*!
+-    @param[in] literal_text  the literal text to expect
+-    @param[in] length        the length of the passed literal text
+-    @param[in] return_type   the token type to return on success
+-    */
+-    JSON_HEDLEY_NON_NULL(2)
+-    token_type scan_literal(const char_type* literal_text, const std::size_t length,
+-                            token_type return_type)
+-    {
+-        JSON_ASSERT(std::char_traits<char_type>::to_char_type(current) == literal_text[0]);
+-        for (std::size_t i = 1; i < length; ++i)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(std::char_traits<char_type>::to_char_type(get()) != literal_text[i]))
+-            {
+-                error_message = "invalid literal";
+-                return token_type::parse_error;
+-            }
+-        }
+-        return return_type;
+-    }
+-
+-    /////////////////////
+-    // input management
+-    /////////////////////
+-
+-    /// reset token_buffer; current character is beginning of token
+-    void reset() noexcept
+-    {
+-        token_buffer.clear();
+-        token_string.clear();
+-        token_string.push_back(std::char_traits<char_type>::to_char_type(current));
+-    }
+-
+-    /*
+-    @brief get next character from the input
+-
+-    This function provides the interface to the used input adapter. It does
+-    not throw in case the input reached EOF, but returns a
+-    `std::char_traits<char>::eof()` in that case.  Stores the scanned characters
+-    for use in error messages.
+-
+-    @return character read from the input
+-    */
+-    char_int_type get()
+-    {
+-        ++position.chars_read_total;
+-        ++position.chars_read_current_line;
+-
+-        if (next_unget)
+-        {
+-            // just reset the next_unget variable and work with current
+-            next_unget = false;
+-        }
+-        else
+-        {
+-            current = ia.get_character();
+-        }
+-
+-        if (JSON_HEDLEY_LIKELY(current != std::char_traits<char_type>::eof()))
+-        {
+-            token_string.push_back(std::char_traits<char_type>::to_char_type(current));
+-        }
+-
+-        if (current == '\n')
+-        {
+-            ++position.lines_read;
+-            position.chars_read_current_line = 0;
+-        }
+-
+-        return current;
+-    }
+-
+-    /*!
+-    @brief unget current character (read it again on next get)
+-
+-    We implement unget by setting variable next_unget to true. The input is not
+-    changed - we just simulate ungetting by modifying chars_read_total,
+-    chars_read_current_line, and token_string. The next call to get() will
+-    behave as if the unget character is read again.
+-    */
+-    void unget()
+-    {
+-        next_unget = true;
+-
+-        --position.chars_read_total;
+-
+-        // in case we "unget" a newline, we have to also decrement the lines_read
+-        if (position.chars_read_current_line == 0)
+-        {
+-            if (position.lines_read > 0)
+-            {
+-                --position.lines_read;
+-            }
+-        }
+-        else
+-        {
+-            --position.chars_read_current_line;
+-        }
+-
+-        if (JSON_HEDLEY_LIKELY(current != std::char_traits<char_type>::eof()))
+-        {
+-            JSON_ASSERT(!token_string.empty());
+-            token_string.pop_back();
+-        }
+-    }
+-
+-    /// add a character to token_buffer
+-    void add(char_int_type c)
+-    {
+-        token_buffer.push_back(static_cast<typename string_t::value_type>(c));
+-    }
+-
+-  public:
+-    /////////////////////
+-    // value getters
+-    /////////////////////
+-
+-    /// return integer value
+-    constexpr number_integer_t get_number_integer() const noexcept
+-    {
+-        return value_integer;
+-    }
+-
+-    /// return unsigned integer value
+-    constexpr number_unsigned_t get_number_unsigned() const noexcept
+-    {
+-        return value_unsigned;
+-    }
+-
+-    /// return floating-point value
+-    constexpr number_float_t get_number_float() const noexcept
+-    {
+-        return value_float;
+-    }
+-
+-    /// return current string value (implicitly resets the token; useful only once)
+-    string_t& get_string()
+-    {
+-        return token_buffer;
+-    }
+-
+-    /////////////////////
+-    // diagnostics
+-    /////////////////////
+-
+-    /// return position of last read token
+-    constexpr position_t get_position() const noexcept
+-    {
+-        return position;
+-    }
+-
+-    /// return the last read token (for errors only).  Will never contain EOF
+-    /// (an arbitrary value that is not a valid char value, often -1), because
+-    /// 255 may legitimately occur.  May contain NUL, which should be escaped.
+-    std::string get_token_string() const
+-    {
+-        // escape control characters
+-        std::string result;
+-        for (const auto c : token_string)
+-        {
+-            if (static_cast<unsigned char>(c) <= '\x1F')
+-            {
+-                // escape control characters
+-                std::array<char, 9> cs{{}};
+-                static_cast<void>((std::snprintf)(cs.data(), cs.size(), "<U+%.4X>", static_cast<unsigned char>(c))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-                result += cs.data();
+-            }
+-            else
+-            {
+-                // add character as is
+-                result.push_back(static_cast<std::string::value_type>(c));
+-            }
+-        }
+-
+-        return result;
+-    }
+-
+-    /// return syntax error message
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    constexpr const char* get_error_message() const noexcept
+-    {
+-        return error_message;
+-    }
+-
+-    /////////////////////
+-    // actual scanner
+-    /////////////////////
+-
+-    /*!
+-    @brief skip the UTF-8 byte order mark
+-    @return true iff there is no BOM or the correct BOM has been skipped
+-    */
+-    bool skip_bom()
+-    {
+-        if (get() == 0xEF)
+-        {
+-            // check if we completely parse the BOM
+-            return get() == 0xBB && get() == 0xBF;
+-        }
+-
+-        // the first character is not the beginning of the BOM; unget it to
+-        // process is later
+-        unget();
+-        return true;
+-    }
+-
+-    void skip_whitespace()
+-    {
+-        do
+-        {
+-            get();
+-        }
+-        while (current == ' ' || current == '\t' || current == '\n' || current == '\r');
+-    }
+-
+-    token_type scan()
+-    {
+-        // initially, skip the BOM
+-        if (position.chars_read_total == 0 && !skip_bom())
+-        {
+-            error_message = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
+-            return token_type::parse_error;
+-        }
+-
+-        // read next character and ignore whitespace
+-        skip_whitespace();
+-
+-        // ignore comments
+-        while (ignore_comments && current == '/')
+-        {
+-            if (!scan_comment())
+-            {
+-                return token_type::parse_error;
+-            }
+-
+-            // skip following whitespace
+-            skip_whitespace();
+-        }
+-
+-        switch (current)
+-        {
+-            // structural characters
+-            case '[':
+-                return token_type::begin_array;
+-            case ']':
+-                return token_type::end_array;
+-            case '{':
+-                return token_type::begin_object;
+-            case '}':
+-                return token_type::end_object;
+-            case ':':
+-                return token_type::name_separator;
+-            case ',':
+-                return token_type::value_separator;
+-
+-            // literals
+-            case 't':
+-            {
+-                std::array<char_type, 4> true_literal = {{static_cast<char_type>('t'), static_cast<char_type>('r'), static_cast<char_type>('u'), static_cast<char_type>('e')}};
+-                return scan_literal(true_literal.data(), true_literal.size(), token_type::literal_true);
+-            }
+-            case 'f':
+-            {
+-                std::array<char_type, 5> false_literal = {{static_cast<char_type>('f'), static_cast<char_type>('a'), static_cast<char_type>('l'), static_cast<char_type>('s'), static_cast<char_type>('e')}};
+-                return scan_literal(false_literal.data(), false_literal.size(), token_type::literal_false);
+-            }
+-            case 'n':
+-            {
+-                std::array<char_type, 4> null_literal = {{static_cast<char_type>('n'), static_cast<char_type>('u'), static_cast<char_type>('l'), static_cast<char_type>('l')}};
+-                return scan_literal(null_literal.data(), null_literal.size(), token_type::literal_null);
+-            }
+-
+-            // string
+-            case '\"':
+-                return scan_string();
+-
+-            // number
+-            case '-':
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-                return scan_number();
+-
+-            // end of input (the null byte is needed when parsing from
+-            // string literals)
+-            case '\0':
+-            case std::char_traits<char_type>::eof():
+-                return token_type::end_of_input;
+-
+-            // error
+-            default:
+-                error_message = "invalid literal";
+-                return token_type::parse_error;
+-        }
+-    }
+-
+-  private:
+-    /// input adapter
+-    InputAdapterType ia;
+-
+-    /// whether comments should be ignored (true) or signaled as errors (false)
+-    const bool ignore_comments = false;
+-
+-    /// the current character
+-    char_int_type current = std::char_traits<char_type>::eof();
+-
+-    /// whether the next get() call should just return current
+-    bool next_unget = false;
+-
+-    /// the start position of the current token
+-    position_t position {};
+-
+-    /// raw input token string (for error messages)
+-    std::vector<char_type> token_string {};
+-
+-    /// buffer for variable-length tokens (numbers, strings)
+-    string_t token_buffer {};
+-
+-    /// a description of occurred lexer errors
+-    const char* error_message = "";
+-
+-    // number values
+-    number_integer_t value_integer = 0;
+-    number_unsigned_t value_unsigned = 0;
+-    number_float_t value_float = 0;
+-
+-    /// the decimal point
+-    const char_int_type decimal_point_char = '.';
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/is_sax.hpp>
+-
+-
+-#include <cstdint> // size_t
+-#include <utility> // declval
+-#include <string> // string
+-
+-// #include <nlohmann/detail/meta/detected.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename T>
+-using null_function_t = decltype(std::declval<T&>().null());
+-
+-template<typename T>
+-using boolean_function_t =
+-    decltype(std::declval<T&>().boolean(std::declval<bool>()));
+-
+-template<typename T, typename Integer>
+-using number_integer_function_t =
+-    decltype(std::declval<T&>().number_integer(std::declval<Integer>()));
+-
+-template<typename T, typename Unsigned>
+-using number_unsigned_function_t =
+-    decltype(std::declval<T&>().number_unsigned(std::declval<Unsigned>()));
+-
+-template<typename T, typename Float, typename String>
+-using number_float_function_t = decltype(std::declval<T&>().number_float(
+-                                    std::declval<Float>(), std::declval<const String&>()));
+-
+-template<typename T, typename String>
+-using string_function_t =
+-    decltype(std::declval<T&>().string(std::declval<String&>()));
+-
+-template<typename T, typename Binary>
+-using binary_function_t =
+-    decltype(std::declval<T&>().binary(std::declval<Binary&>()));
+-
+-template<typename T>
+-using start_object_function_t =
+-    decltype(std::declval<T&>().start_object(std::declval<std::size_t>()));
+-
+-template<typename T, typename String>
+-using key_function_t =
+-    decltype(std::declval<T&>().key(std::declval<String&>()));
+-
+-template<typename T>
+-using end_object_function_t = decltype(std::declval<T&>().end_object());
+-
+-template<typename T>
+-using start_array_function_t =
+-    decltype(std::declval<T&>().start_array(std::declval<std::size_t>()));
+-
+-template<typename T>
+-using end_array_function_t = decltype(std::declval<T&>().end_array());
+-
+-template<typename T, typename Exception>
+-using parse_error_function_t = decltype(std::declval<T&>().parse_error(
+-        std::declval<std::size_t>(), std::declval<const std::string&>(),
+-        std::declval<const Exception&>()));
+-
+-template<typename SAX, typename BasicJsonType>
+-struct is_sax
+-{
+-  private:
+-    static_assert(is_basic_json<BasicJsonType>::value,
+-                  "BasicJsonType must be of type basic_json<...>");
+-
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using exception_t = typename BasicJsonType::exception;
+-
+-  public:
+-    static constexpr bool value =
+-        is_detected_exact<bool, null_function_t, SAX>::value &&
+-        is_detected_exact<bool, boolean_function_t, SAX>::value &&
+-        is_detected_exact<bool, number_integer_function_t, SAX, number_integer_t>::value &&
+-        is_detected_exact<bool, number_unsigned_function_t, SAX, number_unsigned_t>::value &&
+-        is_detected_exact<bool, number_float_function_t, SAX, number_float_t, string_t>::value &&
+-        is_detected_exact<bool, string_function_t, SAX, string_t>::value &&
+-        is_detected_exact<bool, binary_function_t, SAX, binary_t>::value &&
+-        is_detected_exact<bool, start_object_function_t, SAX>::value &&
+-        is_detected_exact<bool, key_function_t, SAX, string_t>::value &&
+-        is_detected_exact<bool, end_object_function_t, SAX>::value &&
+-        is_detected_exact<bool, start_array_function_t, SAX>::value &&
+-        is_detected_exact<bool, end_array_function_t, SAX>::value &&
+-        is_detected_exact<bool, parse_error_function_t, SAX, exception_t>::value;
+-};
+-
+-template<typename SAX, typename BasicJsonType>
+-struct is_sax_static_asserts
+-{
+-  private:
+-    static_assert(is_basic_json<BasicJsonType>::value,
+-                  "BasicJsonType must be of type basic_json<...>");
+-
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using exception_t = typename BasicJsonType::exception;
+-
+-  public:
+-    static_assert(is_detected_exact<bool, null_function_t, SAX>::value,
+-                  "Missing/invalid function: bool null()");
+-    static_assert(is_detected_exact<bool, boolean_function_t, SAX>::value,
+-                  "Missing/invalid function: bool boolean(bool)");
+-    static_assert(is_detected_exact<bool, boolean_function_t, SAX>::value,
+-                  "Missing/invalid function: bool boolean(bool)");
+-    static_assert(
+-        is_detected_exact<bool, number_integer_function_t, SAX,
+-        number_integer_t>::value,
+-        "Missing/invalid function: bool number_integer(number_integer_t)");
+-    static_assert(
+-        is_detected_exact<bool, number_unsigned_function_t, SAX,
+-        number_unsigned_t>::value,
+-        "Missing/invalid function: bool number_unsigned(number_unsigned_t)");
+-    static_assert(is_detected_exact<bool, number_float_function_t, SAX,
+-                  number_float_t, string_t>::value,
+-                  "Missing/invalid function: bool number_float(number_float_t, const string_t&)");
+-    static_assert(
+-        is_detected_exact<bool, string_function_t, SAX, string_t>::value,
+-        "Missing/invalid function: bool string(string_t&)");
+-    static_assert(
+-        is_detected_exact<bool, binary_function_t, SAX, binary_t>::value,
+-        "Missing/invalid function: bool binary(binary_t&)");
+-    static_assert(is_detected_exact<bool, start_object_function_t, SAX>::value,
+-                  "Missing/invalid function: bool start_object(std::size_t)");
+-    static_assert(is_detected_exact<bool, key_function_t, SAX, string_t>::value,
+-                  "Missing/invalid function: bool key(string_t&)");
+-    static_assert(is_detected_exact<bool, end_object_function_t, SAX>::value,
+-                  "Missing/invalid function: bool end_object()");
+-    static_assert(is_detected_exact<bool, start_array_function_t, SAX>::value,
+-                  "Missing/invalid function: bool start_array(std::size_t)");
+-    static_assert(is_detected_exact<bool, end_array_function_t, SAX>::value,
+-                  "Missing/invalid function: bool end_array()");
+-    static_assert(
+-        is_detected_exact<bool, parse_error_function_t, SAX, exception_t>::value,
+-        "Missing/invalid function: bool parse_error(std::size_t, const "
+-        "std::string&, const exception&)");
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-/// how to treat CBOR tags
+-enum class cbor_tag_handler_t
+-{
+-    error,   ///< throw a parse_error exception in case of a tag
+-    ignore,  ///< ignore tags
+-    store    ///< store tags as binary type
+-};
+-
+-/*!
+-@brief determine system byte order
+-
+-@return true if and only if system's byte order is little endian
+-
+-@note from https://stackoverflow.com/a/1001328/266378
+-*/
+-static inline bool little_endianness(int num = 1) noexcept
+-{
+-    return *reinterpret_cast<char*>(&num) == 1;
+-}
+-
+-
+-///////////////////
+-// binary reader //
+-///////////////////
+-
+-/*!
+-@brief deserialization of CBOR, MessagePack, and UBJSON values
+-*/
+-template<typename BasicJsonType, typename InputAdapterType, typename SAX = json_sax_dom_parser<BasicJsonType>>
+-class binary_reader
+-{
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using json_sax_t = SAX;
+-    using char_type = typename InputAdapterType::char_type;
+-    using char_int_type = typename std::char_traits<char_type>::int_type;
+-
+-  public:
+-    /*!
+-    @brief create a binary reader
+-
+-    @param[in] adapter  input adapter to read from
+-    */
+-    explicit binary_reader(InputAdapterType&& adapter) noexcept : ia(std::move(adapter))
+-    {
+-        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
+-    }
+-
+-    // make class move-only
+-    binary_reader(const binary_reader&) = delete;
+-    binary_reader(binary_reader&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    binary_reader& operator=(const binary_reader&) = delete;
+-    binary_reader& operator=(binary_reader&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    ~binary_reader() = default;
+-
+-    /*!
+-    @param[in] format  the binary format to parse
+-    @param[in] sax_    a SAX event processor
+-    @param[in] strict  whether to expect the input to be consumed completed
+-    @param[in] tag_handler  how to treat CBOR tags
+-
+-    @return whether parsing was successful
+-    */
+-    JSON_HEDLEY_NON_NULL(3)
+-    bool sax_parse(const input_format_t format,
+-                   json_sax_t* sax_,
+-                   const bool strict = true,
+-                   const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        sax = sax_;
+-        bool result = false;
+-
+-        switch (format)
+-        {
+-            case input_format_t::bson:
+-                result = parse_bson_internal();
+-                break;
+-
+-            case input_format_t::cbor:
+-                result = parse_cbor_internal(true, tag_handler);
+-                break;
+-
+-            case input_format_t::msgpack:
+-                result = parse_msgpack_internal();
+-                break;
+-
+-            case input_format_t::ubjson:
+-                result = parse_ubjson_internal();
+-                break;
+-
+-            case input_format_t::json: // LCOV_EXCL_LINE
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-
+-        // strict mode: next byte must be EOF
+-        if (result && strict)
+-        {
+-            if (format == input_format_t::ubjson)
+-            {
+-                get_ignore_noop();
+-            }
+-            else
+-            {
+-                get();
+-            }
+-
+-            if (JSON_HEDLEY_UNLIKELY(current != std::char_traits<char_type>::eof()))
+-            {
+-                return sax->parse_error(chars_read, get_token_string(),
+-                                        parse_error::create(110, chars_read, exception_message(format, "expected end of input; last byte: 0x" + get_token_string(), "value"), BasicJsonType()));
+-            }
+-        }
+-
+-        return result;
+-    }
+-
+-  private:
+-    //////////
+-    // BSON //
+-    //////////
+-
+-    /*!
+-    @brief Reads in a BSON-object and passes it to the SAX-parser.
+-    @return whether a valid BSON-value was passed to the SAX parser
+-    */
+-    bool parse_bson_internal()
+-    {
+-        std::int32_t document_size{};
+-        get_number<std::int32_t, true>(input_format_t::bson, document_size);
+-
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_object(static_cast<std::size_t>(-1))))
+-        {
+-            return false;
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_list(/*is_array*/false)))
+-        {
+-            return false;
+-        }
+-
+-        return sax->end_object();
+-    }
+-
+-    /*!
+-    @brief Parses a C-style string from the BSON input.
+-    @param[in,out] result  A reference to the string variable where the read
+-                            string is to be stored.
+-    @return `true` if the \x00-byte indicating the end of the string was
+-             encountered before the EOF; false` indicates an unexpected EOF.
+-    */
+-    bool get_bson_cstr(string_t& result)
+-    {
+-        auto out = std::back_inserter(result);
+-        while (true)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::bson, "cstring")))
+-            {
+-                return false;
+-            }
+-            if (current == 0x00)
+-            {
+-                return true;
+-            }
+-            *out++ = static_cast<typename string_t::value_type>(current);
+-        }
+-    }
+-
+-    /*!
+-    @brief Parses a zero-terminated string of length @a len from the BSON
+-           input.
+-    @param[in] len  The length (including the zero-byte at the end) of the
+-                    string to be read.
+-    @param[in,out] result  A reference to the string variable where the read
+-                            string is to be stored.
+-    @tparam NumberType The type of the length @a len
+-    @pre len >= 1
+-    @return `true` if the string was successfully parsed
+-    */
+-    template<typename NumberType>
+-    bool get_bson_string(const NumberType len, string_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(len < 1))
+-        {
+-            auto last_token = get_token_string();
+-            return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::bson, "string length must be at least 1, is " + std::to_string(len), "string"), BasicJsonType()));
+-        }
+-
+-        return get_string(input_format_t::bson, len - static_cast<NumberType>(1), result) && get() != std::char_traits<char_type>::eof();
+-    }
+-
+-    /*!
+-    @brief Parses a byte array input of length @a len from the BSON input.
+-    @param[in] len  The length of the byte array to be read.
+-    @param[in,out] result  A reference to the binary variable where the read
+-                            array is to be stored.
+-    @tparam NumberType The type of the length @a len
+-    @pre len >= 0
+-    @return `true` if the byte array was successfully parsed
+-    */
+-    template<typename NumberType>
+-    bool get_bson_binary(const NumberType len, binary_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(len < 0))
+-        {
+-            auto last_token = get_token_string();
+-            return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::bson, "byte array length cannot be negative, is " + std::to_string(len), "binary"), BasicJsonType()));
+-        }
+-
+-        // All BSON binary values have a subtype
+-        std::uint8_t subtype{};
+-        get_number<std::uint8_t>(input_format_t::bson, subtype);
+-        result.set_subtype(subtype);
+-
+-        return get_binary(input_format_t::bson, len, result);
+-    }
+-
+-    /*!
+-    @brief Read a BSON document element of the given @a element_type.
+-    @param[in] element_type The BSON element type, c.f. http://bsonspec.org/spec.html
+-    @param[in] element_type_parse_position The position in the input stream,
+-               where the `element_type` was read.
+-    @warning Not all BSON element types are supported yet. An unsupported
+-             @a element_type will give rise to a parse_error.114:
+-             Unsupported BSON record type 0x...
+-    @return whether a valid BSON-object/array was passed to the SAX parser
+-    */
+-    bool parse_bson_element_internal(const char_int_type element_type,
+-                                     const std::size_t element_type_parse_position)
+-    {
+-        switch (element_type)
+-        {
+-            case 0x01: // double
+-            {
+-                double number{};
+-                return get_number<double, true>(input_format_t::bson, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 0x02: // string
+-            {
+-                std::int32_t len{};
+-                string_t value;
+-                return get_number<std::int32_t, true>(input_format_t::bson, len) && get_bson_string(len, value) && sax->string(value);
+-            }
+-
+-            case 0x03: // object
+-            {
+-                return parse_bson_internal();
+-            }
+-
+-            case 0x04: // array
+-            {
+-                return parse_bson_array();
+-            }
+-
+-            case 0x05: // binary
+-            {
+-                std::int32_t len{};
+-                binary_t value;
+-                return get_number<std::int32_t, true>(input_format_t::bson, len) && get_bson_binary(len, value) && sax->binary(value);
+-            }
+-
+-            case 0x08: // boolean
+-            {
+-                return sax->boolean(get() != 0);
+-            }
+-
+-            case 0x0A: // null
+-            {
+-                return sax->null();
+-            }
+-
+-            case 0x10: // int32
+-            {
+-                std::int32_t value{};
+-                return get_number<std::int32_t, true>(input_format_t::bson, value) && sax->number_integer(value);
+-            }
+-
+-            case 0x12: // int64
+-            {
+-                std::int64_t value{};
+-                return get_number<std::int64_t, true>(input_format_t::bson, value) && sax->number_integer(value);
+-            }
+-
+-            default: // anything else not supported (yet)
+-            {
+-                std::array<char, 3> cr{{}};
+-                static_cast<void>((std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(element_type))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-                return sax->parse_error(element_type_parse_position, std::string(cr.data()), parse_error::create(114, element_type_parse_position, "Unsupported BSON record type 0x" + std::string(cr.data()), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief Read a BSON element list (as specified in the BSON-spec)
+-
+-    The same binary layout is used for objects and arrays, hence it must be
+-    indicated with the argument @a is_array which one is expected
+-    (true --> array, false --> object).
+-
+-    @param[in] is_array Determines if the element list being read is to be
+-                        treated as an object (@a is_array == false), or as an
+-                        array (@a is_array == true).
+-    @return whether a valid BSON-object/array was passed to the SAX parser
+-    */
+-    bool parse_bson_element_list(const bool is_array)
+-    {
+-        string_t key;
+-
+-        while (auto element_type = get())
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::bson, "element list")))
+-            {
+-                return false;
+-            }
+-
+-            const std::size_t element_type_parse_position = chars_read;
+-            if (JSON_HEDLEY_UNLIKELY(!get_bson_cstr(key)))
+-            {
+-                return false;
+-            }
+-
+-            if (!is_array && !sax->key(key))
+-            {
+-                return false;
+-            }
+-
+-            if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_internal(element_type, element_type_parse_position)))
+-            {
+-                return false;
+-            }
+-
+-            // get_bson_cstr only appends
+-            key.clear();
+-        }
+-
+-        return true;
+-    }
+-
+-    /*!
+-    @brief Reads an array from the BSON input and passes it to the SAX-parser.
+-    @return whether a valid BSON-array was passed to the SAX parser
+-    */
+-    bool parse_bson_array()
+-    {
+-        std::int32_t document_size{};
+-        get_number<std::int32_t, true>(input_format_t::bson, document_size);
+-
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_array(static_cast<std::size_t>(-1))))
+-        {
+-            return false;
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_list(/*is_array*/true)))
+-        {
+-            return false;
+-        }
+-
+-        return sax->end_array();
+-    }
+-
+-    //////////
+-    // CBOR //
+-    //////////
+-
+-    /*!
+-    @param[in] get_char  whether a new character should be retrieved from the
+-                         input (true) or whether the last read character should
+-                         be considered instead (false)
+-    @param[in] tag_handler how CBOR tags should be treated
+-
+-    @return whether a valid CBOR value was passed to the SAX parser
+-    */
+-    bool parse_cbor_internal(const bool get_char,
+-                             const cbor_tag_handler_t tag_handler)
+-    {
+-        switch (get_char ? get() : current)
+-        {
+-            // EOF
+-            case std::char_traits<char_type>::eof():
+-                return unexpect_eof(input_format_t::cbor, "value");
+-
+-            // Integer 0x00..0x17 (0..23)
+-            case 0x00:
+-            case 0x01:
+-            case 0x02:
+-            case 0x03:
+-            case 0x04:
+-            case 0x05:
+-            case 0x06:
+-            case 0x07:
+-            case 0x08:
+-            case 0x09:
+-            case 0x0A:
+-            case 0x0B:
+-            case 0x0C:
+-            case 0x0D:
+-            case 0x0E:
+-            case 0x0F:
+-            case 0x10:
+-            case 0x11:
+-            case 0x12:
+-            case 0x13:
+-            case 0x14:
+-            case 0x15:
+-            case 0x16:
+-            case 0x17:
+-                return sax->number_unsigned(static_cast<number_unsigned_t>(current));
+-
+-            case 0x18: // Unsigned integer (one-byte uint8_t follows)
+-            {
+-                std::uint8_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0x19: // Unsigned integer (two-byte uint16_t follows)
+-            {
+-                std::uint16_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0x1A: // Unsigned integer (four-byte uint32_t follows)
+-            {
+-                std::uint32_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0x1B: // Unsigned integer (eight-byte uint64_t follows)
+-            {
+-                std::uint64_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_unsigned(number);
+-            }
+-
+-            // Negative integer -1-0x00..-1-0x17 (-1..-24)
+-            case 0x20:
+-            case 0x21:
+-            case 0x22:
+-            case 0x23:
+-            case 0x24:
+-            case 0x25:
+-            case 0x26:
+-            case 0x27:
+-            case 0x28:
+-            case 0x29:
+-            case 0x2A:
+-            case 0x2B:
+-            case 0x2C:
+-            case 0x2D:
+-            case 0x2E:
+-            case 0x2F:
+-            case 0x30:
+-            case 0x31:
+-            case 0x32:
+-            case 0x33:
+-            case 0x34:
+-            case 0x35:
+-            case 0x36:
+-            case 0x37:
+-                return sax->number_integer(static_cast<std::int8_t>(0x20 - 1 - current));
+-
+-            case 0x38: // Negative integer (one-byte uint8_t follows)
+-            {
+-                std::uint8_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1) - number);
+-            }
+-
+-            case 0x39: // Negative integer -1-n (two-byte uint16_t follows)
+-            {
+-                std::uint16_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1) - number);
+-            }
+-
+-            case 0x3A: // Negative integer -1-n (four-byte uint32_t follows)
+-            {
+-                std::uint32_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1) - number);
+-            }
+-
+-            case 0x3B: // Negative integer -1-n (eight-byte uint64_t follows)
+-            {
+-                std::uint64_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1)
+-                        - static_cast<number_integer_t>(number));
+-            }
+-
+-            // Binary data (0x00..0x17 bytes follow)
+-            case 0x40:
+-            case 0x41:
+-            case 0x42:
+-            case 0x43:
+-            case 0x44:
+-            case 0x45:
+-            case 0x46:
+-            case 0x47:
+-            case 0x48:
+-            case 0x49:
+-            case 0x4A:
+-            case 0x4B:
+-            case 0x4C:
+-            case 0x4D:
+-            case 0x4E:
+-            case 0x4F:
+-            case 0x50:
+-            case 0x51:
+-            case 0x52:
+-            case 0x53:
+-            case 0x54:
+-            case 0x55:
+-            case 0x56:
+-            case 0x57:
+-            case 0x58: // Binary data (one-byte uint8_t for n follows)
+-            case 0x59: // Binary data (two-byte uint16_t for n follow)
+-            case 0x5A: // Binary data (four-byte uint32_t for n follow)
+-            case 0x5B: // Binary data (eight-byte uint64_t for n follow)
+-            case 0x5F: // Binary data (indefinite length)
+-            {
+-                binary_t b;
+-                return get_cbor_binary(b) && sax->binary(b);
+-            }
+-
+-            // UTF-8 string (0x00..0x17 bytes follow)
+-            case 0x60:
+-            case 0x61:
+-            case 0x62:
+-            case 0x63:
+-            case 0x64:
+-            case 0x65:
+-            case 0x66:
+-            case 0x67:
+-            case 0x68:
+-            case 0x69:
+-            case 0x6A:
+-            case 0x6B:
+-            case 0x6C:
+-            case 0x6D:
+-            case 0x6E:
+-            case 0x6F:
+-            case 0x70:
+-            case 0x71:
+-            case 0x72:
+-            case 0x73:
+-            case 0x74:
+-            case 0x75:
+-            case 0x76:
+-            case 0x77:
+-            case 0x78: // UTF-8 string (one-byte uint8_t for n follows)
+-            case 0x79: // UTF-8 string (two-byte uint16_t for n follow)
+-            case 0x7A: // UTF-8 string (four-byte uint32_t for n follow)
+-            case 0x7B: // UTF-8 string (eight-byte uint64_t for n follow)
+-            case 0x7F: // UTF-8 string (indefinite length)
+-            {
+-                string_t s;
+-                return get_cbor_string(s) && sax->string(s);
+-            }
+-
+-            // array (0x00..0x17 data items follow)
+-            case 0x80:
+-            case 0x81:
+-            case 0x82:
+-            case 0x83:
+-            case 0x84:
+-            case 0x85:
+-            case 0x86:
+-            case 0x87:
+-            case 0x88:
+-            case 0x89:
+-            case 0x8A:
+-            case 0x8B:
+-            case 0x8C:
+-            case 0x8D:
+-            case 0x8E:
+-            case 0x8F:
+-            case 0x90:
+-            case 0x91:
+-            case 0x92:
+-            case 0x93:
+-            case 0x94:
+-            case 0x95:
+-            case 0x96:
+-            case 0x97:
+-                return get_cbor_array(static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x1Fu), tag_handler);
+-
+-            case 0x98: // array (one-byte uint8_t for n follows)
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0x99: // array (two-byte uint16_t for n follow)
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0x9A: // array (four-byte uint32_t for n follow)
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0x9B: // array (eight-byte uint64_t for n follow)
+-            {
+-                std::uint64_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_array(detail::conditional_static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0x9F: // array (indefinite length)
+-                return get_cbor_array(static_cast<std::size_t>(-1), tag_handler);
+-
+-            // map (0x00..0x17 pairs of data items follow)
+-            case 0xA0:
+-            case 0xA1:
+-            case 0xA2:
+-            case 0xA3:
+-            case 0xA4:
+-            case 0xA5:
+-            case 0xA6:
+-            case 0xA7:
+-            case 0xA8:
+-            case 0xA9:
+-            case 0xAA:
+-            case 0xAB:
+-            case 0xAC:
+-            case 0xAD:
+-            case 0xAE:
+-            case 0xAF:
+-            case 0xB0:
+-            case 0xB1:
+-            case 0xB2:
+-            case 0xB3:
+-            case 0xB4:
+-            case 0xB5:
+-            case 0xB6:
+-            case 0xB7:
+-                return get_cbor_object(static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x1Fu), tag_handler);
+-
+-            case 0xB8: // map (one-byte uint8_t for n follows)
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0xB9: // map (two-byte uint16_t for n follow)
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0xBA: // map (four-byte uint32_t for n follow)
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0xBB: // map (eight-byte uint64_t for n follow)
+-            {
+-                std::uint64_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_object(detail::conditional_static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0xBF: // map (indefinite length)
+-                return get_cbor_object(static_cast<std::size_t>(-1), tag_handler);
+-
+-            case 0xC6: // tagged item
+-            case 0xC7:
+-            case 0xC8:
+-            case 0xC9:
+-            case 0xCA:
+-            case 0xCB:
+-            case 0xCC:
+-            case 0xCD:
+-            case 0xCE:
+-            case 0xCF:
+-            case 0xD0:
+-            case 0xD1:
+-            case 0xD2:
+-            case 0xD3:
+-            case 0xD4:
+-            case 0xD8: // tagged item (1 bytes follow)
+-            case 0xD9: // tagged item (2 bytes follow)
+-            case 0xDA: // tagged item (4 bytes follow)
+-            case 0xDB: // tagged item (8 bytes follow)
+-            {
+-                switch (tag_handler)
+-                {
+-                    case cbor_tag_handler_t::error:
+-                    {
+-                        auto last_token = get_token_string();
+-                        return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::cbor, "invalid byte: 0x" + last_token, "value"), BasicJsonType()));
+-                    }
+-
+-                    case cbor_tag_handler_t::ignore:
+-                    {
+-                        // ignore binary subtype
+-                        switch (current)
+-                        {
+-                            case 0xD8:
+-                            {
+-                                std::uint8_t subtype_to_ignore{};
+-                                get_number(input_format_t::cbor, subtype_to_ignore);
+-                                break;
+-                            }
+-                            case 0xD9:
+-                            {
+-                                std::uint16_t subtype_to_ignore{};
+-                                get_number(input_format_t::cbor, subtype_to_ignore);
+-                                break;
+-                            }
+-                            case 0xDA:
+-                            {
+-                                std::uint32_t subtype_to_ignore{};
+-                                get_number(input_format_t::cbor, subtype_to_ignore);
+-                                break;
+-                            }
+-                            case 0xDB:
+-                            {
+-                                std::uint64_t subtype_to_ignore{};
+-                                get_number(input_format_t::cbor, subtype_to_ignore);
+-                                break;
+-                            }
+-                            default:
+-                                break;
+-                        }
+-                        return parse_cbor_internal(true, tag_handler);
+-                    }
+-
+-                    case cbor_tag_handler_t::store:
+-                    {
+-                        binary_t b;
+-                        // use binary subtype and store in binary container
+-                        switch (current)
+-                        {
+-                            case 0xD8:
+-                            {
+-                                std::uint8_t subtype{};
+-                                get_number(input_format_t::cbor, subtype);
+-                                b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype));
+-                                break;
+-                            }
+-                            case 0xD9:
+-                            {
+-                                std::uint16_t subtype{};
+-                                get_number(input_format_t::cbor, subtype);
+-                                b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype));
+-                                break;
+-                            }
+-                            case 0xDA:
+-                            {
+-                                std::uint32_t subtype{};
+-                                get_number(input_format_t::cbor, subtype);
+-                                b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype));
+-                                break;
+-                            }
+-                            case 0xDB:
+-                            {
+-                                std::uint64_t subtype{};
+-                                get_number(input_format_t::cbor, subtype);
+-                                b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype));
+-                                break;
+-                            }
+-                            default:
+-                                return parse_cbor_internal(true, tag_handler);
+-                        }
+-                        get();
+-                        return get_cbor_binary(b) && sax->binary(b);
+-                    }
+-
+-                    default:                 // LCOV_EXCL_LINE
+-                        JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-                        return false;        // LCOV_EXCL_LINE
+-                }
+-            }
+-
+-            case 0xF4: // false
+-                return sax->boolean(false);
+-
+-            case 0xF5: // true
+-                return sax->boolean(true);
+-
+-            case 0xF6: // null
+-                return sax->null();
+-
+-            case 0xF9: // Half-Precision Float (two-byte IEEE 754)
+-            {
+-                const auto byte1_raw = get();
+-                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "number")))
+-                {
+-                    return false;
+-                }
+-                const auto byte2_raw = get();
+-                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "number")))
+-                {
+-                    return false;
+-                }
+-
+-                const auto byte1 = static_cast<unsigned char>(byte1_raw);
+-                const auto byte2 = static_cast<unsigned char>(byte2_raw);
+-
+-                // code from RFC 7049, Appendix D, Figure 3:
+-                // As half-precision floating-point numbers were only added
+-                // to IEEE 754 in 2008, today's programming platforms often
+-                // still only have limited support for them. It is very
+-                // easy to include at least decoding support for them even
+-                // without such support. An example of a small decoder for
+-                // half-precision floating-point numbers in the C language
+-                // is shown in Fig. 3.
+-                const auto half = static_cast<unsigned int>((byte1 << 8u) + byte2);
+-                const double val = [&half]
+-                {
+-                    const int exp = (half >> 10u) & 0x1Fu;
+-                    const unsigned int mant = half & 0x3FFu;
+-                    JSON_ASSERT(0 <= exp&& exp <= 32);
+-                    JSON_ASSERT(mant <= 1024);
+-                    switch (exp)
+-                    {
+-                        case 0:
+-                            return std::ldexp(mant, -24);
+-                        case 31:
+-                            return (mant == 0)
+-                            ? std::numeric_limits<double>::infinity()
+-                            : std::numeric_limits<double>::quiet_NaN();
+-                        default:
+-                            return std::ldexp(mant + 1024, exp - 25);
+-                    }
+-                }();
+-                return sax->number_float((half & 0x8000u) != 0
+-                                         ? static_cast<number_float_t>(-val)
+-                                         : static_cast<number_float_t>(val), "");
+-            }
+-
+-            case 0xFA: // Single-Precision Float (four-byte IEEE 754)
+-            {
+-                float number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 0xFB: // Double-Precision Float (eight-byte IEEE 754)
+-            {
+-                double number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            default: // anything else (0xFF is handled inside the other types)
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::cbor, "invalid byte: 0x" + last_token, "value"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief reads a CBOR string
+-
+-    This function first reads starting bytes to determine the expected
+-    string length and then copies this number of bytes into a string.
+-    Additionally, CBOR's strings with indefinite lengths are supported.
+-
+-    @param[out] result  created string
+-
+-    @return whether string creation completed
+-    */
+-    bool get_cbor_string(string_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "string")))
+-        {
+-            return false;
+-        }
+-
+-        switch (current)
+-        {
+-            // UTF-8 string (0x00..0x17 bytes follow)
+-            case 0x60:
+-            case 0x61:
+-            case 0x62:
+-            case 0x63:
+-            case 0x64:
+-            case 0x65:
+-            case 0x66:
+-            case 0x67:
+-            case 0x68:
+-            case 0x69:
+-            case 0x6A:
+-            case 0x6B:
+-            case 0x6C:
+-            case 0x6D:
+-            case 0x6E:
+-            case 0x6F:
+-            case 0x70:
+-            case 0x71:
+-            case 0x72:
+-            case 0x73:
+-            case 0x74:
+-            case 0x75:
+-            case 0x76:
+-            case 0x77:
+-            {
+-                return get_string(input_format_t::cbor, static_cast<unsigned int>(current) & 0x1Fu, result);
+-            }
+-
+-            case 0x78: // UTF-8 string (one-byte uint8_t for n follows)
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x79: // UTF-8 string (two-byte uint16_t for n follow)
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x7A: // UTF-8 string (four-byte uint32_t for n follow)
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x7B: // UTF-8 string (eight-byte uint64_t for n follow)
+-            {
+-                std::uint64_t len{};
+-                return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x7F: // UTF-8 string (indefinite length)
+-            {
+-                while (get() != 0xFF)
+-                {
+-                    string_t chunk;
+-                    if (!get_cbor_string(chunk))
+-                    {
+-                        return false;
+-                    }
+-                    result.append(chunk);
+-                }
+-                return true;
+-            }
+-
+-            default:
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::cbor, "expected length specification (0x60-0x7B) or indefinite string type (0x7F); last byte: 0x" + last_token, "string"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief reads a CBOR byte array
+-
+-    This function first reads starting bytes to determine the expected
+-    byte array length and then copies this number of bytes into the byte array.
+-    Additionally, CBOR's byte arrays with indefinite lengths are supported.
+-
+-    @param[out] result  created byte array
+-
+-    @return whether byte array creation completed
+-    */
+-    bool get_cbor_binary(binary_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "binary")))
+-        {
+-            return false;
+-        }
+-
+-        switch (current)
+-        {
+-            // Binary data (0x00..0x17 bytes follow)
+-            case 0x40:
+-            case 0x41:
+-            case 0x42:
+-            case 0x43:
+-            case 0x44:
+-            case 0x45:
+-            case 0x46:
+-            case 0x47:
+-            case 0x48:
+-            case 0x49:
+-            case 0x4A:
+-            case 0x4B:
+-            case 0x4C:
+-            case 0x4D:
+-            case 0x4E:
+-            case 0x4F:
+-            case 0x50:
+-            case 0x51:
+-            case 0x52:
+-            case 0x53:
+-            case 0x54:
+-            case 0x55:
+-            case 0x56:
+-            case 0x57:
+-            {
+-                return get_binary(input_format_t::cbor, static_cast<unsigned int>(current) & 0x1Fu, result);
+-            }
+-
+-            case 0x58: // Binary data (one-byte uint8_t for n follows)
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::cbor, len) &&
+-                       get_binary(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x59: // Binary data (two-byte uint16_t for n follow)
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::cbor, len) &&
+-                       get_binary(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x5A: // Binary data (four-byte uint32_t for n follow)
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::cbor, len) &&
+-                       get_binary(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x5B: // Binary data (eight-byte uint64_t for n follow)
+-            {
+-                std::uint64_t len{};
+-                return get_number(input_format_t::cbor, len) &&
+-                       get_binary(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x5F: // Binary data (indefinite length)
+-            {
+-                while (get() != 0xFF)
+-                {
+-                    binary_t chunk;
+-                    if (!get_cbor_binary(chunk))
+-                    {
+-                        return false;
+-                    }
+-                    result.insert(result.end(), chunk.begin(), chunk.end());
+-                }
+-                return true;
+-            }
+-
+-            default:
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::cbor, "expected length specification (0x40-0x5B) or indefinite binary array type (0x5F); last byte: 0x" + last_token, "binary"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @param[in] len  the length of the array or static_cast<std::size_t>(-1) for an
+-                    array of indefinite size
+-    @param[in] tag_handler how CBOR tags should be treated
+-    @return whether array creation completed
+-    */
+-    bool get_cbor_array(const std::size_t len,
+-                        const cbor_tag_handler_t tag_handler)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len)))
+-        {
+-            return false;
+-        }
+-
+-        if (len != static_cast<std::size_t>(-1))
+-        {
+-            for (std::size_t i = 0; i < len; ++i)
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(true, tag_handler)))
+-                {
+-                    return false;
+-                }
+-            }
+-        }
+-        else
+-        {
+-            while (get() != 0xFF)
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(false, tag_handler)))
+-                {
+-                    return false;
+-                }
+-            }
+-        }
+-
+-        return sax->end_array();
+-    }
+-
+-    /*!
+-    @param[in] len  the length of the object or static_cast<std::size_t>(-1) for an
+-                    object of indefinite size
+-    @param[in] tag_handler how CBOR tags should be treated
+-    @return whether object creation completed
+-    */
+-    bool get_cbor_object(const std::size_t len,
+-                         const cbor_tag_handler_t tag_handler)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_object(len)))
+-        {
+-            return false;
+-        }
+-
+-        if (len != 0)
+-        {
+-            string_t key;
+-            if (len != static_cast<std::size_t>(-1))
+-            {
+-                for (std::size_t i = 0; i < len; ++i)
+-                {
+-                    get();
+-                    if (JSON_HEDLEY_UNLIKELY(!get_cbor_string(key) || !sax->key(key)))
+-                    {
+-                        return false;
+-                    }
+-
+-                    if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(true, tag_handler)))
+-                    {
+-                        return false;
+-                    }
+-                    key.clear();
+-                }
+-            }
+-            else
+-            {
+-                while (get() != 0xFF)
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!get_cbor_string(key) || !sax->key(key)))
+-                    {
+-                        return false;
+-                    }
+-
+-                    if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(true, tag_handler)))
+-                    {
+-                        return false;
+-                    }
+-                    key.clear();
+-                }
+-            }
+-        }
+-
+-        return sax->end_object();
+-    }
+-
+-    /////////////
+-    // MsgPack //
+-    /////////////
+-
+-    /*!
+-    @return whether a valid MessagePack value was passed to the SAX parser
+-    */
+-    bool parse_msgpack_internal()
+-    {
+-        switch (get())
+-        {
+-            // EOF
+-            case std::char_traits<char_type>::eof():
+-                return unexpect_eof(input_format_t::msgpack, "value");
+-
+-            // positive fixint
+-            case 0x00:
+-            case 0x01:
+-            case 0x02:
+-            case 0x03:
+-            case 0x04:
+-            case 0x05:
+-            case 0x06:
+-            case 0x07:
+-            case 0x08:
+-            case 0x09:
+-            case 0x0A:
+-            case 0x0B:
+-            case 0x0C:
+-            case 0x0D:
+-            case 0x0E:
+-            case 0x0F:
+-            case 0x10:
+-            case 0x11:
+-            case 0x12:
+-            case 0x13:
+-            case 0x14:
+-            case 0x15:
+-            case 0x16:
+-            case 0x17:
+-            case 0x18:
+-            case 0x19:
+-            case 0x1A:
+-            case 0x1B:
+-            case 0x1C:
+-            case 0x1D:
+-            case 0x1E:
+-            case 0x1F:
+-            case 0x20:
+-            case 0x21:
+-            case 0x22:
+-            case 0x23:
+-            case 0x24:
+-            case 0x25:
+-            case 0x26:
+-            case 0x27:
+-            case 0x28:
+-            case 0x29:
+-            case 0x2A:
+-            case 0x2B:
+-            case 0x2C:
+-            case 0x2D:
+-            case 0x2E:
+-            case 0x2F:
+-            case 0x30:
+-            case 0x31:
+-            case 0x32:
+-            case 0x33:
+-            case 0x34:
+-            case 0x35:
+-            case 0x36:
+-            case 0x37:
+-            case 0x38:
+-            case 0x39:
+-            case 0x3A:
+-            case 0x3B:
+-            case 0x3C:
+-            case 0x3D:
+-            case 0x3E:
+-            case 0x3F:
+-            case 0x40:
+-            case 0x41:
+-            case 0x42:
+-            case 0x43:
+-            case 0x44:
+-            case 0x45:
+-            case 0x46:
+-            case 0x47:
+-            case 0x48:
+-            case 0x49:
+-            case 0x4A:
+-            case 0x4B:
+-            case 0x4C:
+-            case 0x4D:
+-            case 0x4E:
+-            case 0x4F:
+-            case 0x50:
+-            case 0x51:
+-            case 0x52:
+-            case 0x53:
+-            case 0x54:
+-            case 0x55:
+-            case 0x56:
+-            case 0x57:
+-            case 0x58:
+-            case 0x59:
+-            case 0x5A:
+-            case 0x5B:
+-            case 0x5C:
+-            case 0x5D:
+-            case 0x5E:
+-            case 0x5F:
+-            case 0x60:
+-            case 0x61:
+-            case 0x62:
+-            case 0x63:
+-            case 0x64:
+-            case 0x65:
+-            case 0x66:
+-            case 0x67:
+-            case 0x68:
+-            case 0x69:
+-            case 0x6A:
+-            case 0x6B:
+-            case 0x6C:
+-            case 0x6D:
+-            case 0x6E:
+-            case 0x6F:
+-            case 0x70:
+-            case 0x71:
+-            case 0x72:
+-            case 0x73:
+-            case 0x74:
+-            case 0x75:
+-            case 0x76:
+-            case 0x77:
+-            case 0x78:
+-            case 0x79:
+-            case 0x7A:
+-            case 0x7B:
+-            case 0x7C:
+-            case 0x7D:
+-            case 0x7E:
+-            case 0x7F:
+-                return sax->number_unsigned(static_cast<number_unsigned_t>(current));
+-
+-            // fixmap
+-            case 0x80:
+-            case 0x81:
+-            case 0x82:
+-            case 0x83:
+-            case 0x84:
+-            case 0x85:
+-            case 0x86:
+-            case 0x87:
+-            case 0x88:
+-            case 0x89:
+-            case 0x8A:
+-            case 0x8B:
+-            case 0x8C:
+-            case 0x8D:
+-            case 0x8E:
+-            case 0x8F:
+-                return get_msgpack_object(static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x0Fu));
+-
+-            // fixarray
+-            case 0x90:
+-            case 0x91:
+-            case 0x92:
+-            case 0x93:
+-            case 0x94:
+-            case 0x95:
+-            case 0x96:
+-            case 0x97:
+-            case 0x98:
+-            case 0x99:
+-            case 0x9A:
+-            case 0x9B:
+-            case 0x9C:
+-            case 0x9D:
+-            case 0x9E:
+-            case 0x9F:
+-                return get_msgpack_array(static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x0Fu));
+-
+-            // fixstr
+-            case 0xA0:
+-            case 0xA1:
+-            case 0xA2:
+-            case 0xA3:
+-            case 0xA4:
+-            case 0xA5:
+-            case 0xA6:
+-            case 0xA7:
+-            case 0xA8:
+-            case 0xA9:
+-            case 0xAA:
+-            case 0xAB:
+-            case 0xAC:
+-            case 0xAD:
+-            case 0xAE:
+-            case 0xAF:
+-            case 0xB0:
+-            case 0xB1:
+-            case 0xB2:
+-            case 0xB3:
+-            case 0xB4:
+-            case 0xB5:
+-            case 0xB6:
+-            case 0xB7:
+-            case 0xB8:
+-            case 0xB9:
+-            case 0xBA:
+-            case 0xBB:
+-            case 0xBC:
+-            case 0xBD:
+-            case 0xBE:
+-            case 0xBF:
+-            case 0xD9: // str 8
+-            case 0xDA: // str 16
+-            case 0xDB: // str 32
+-            {
+-                string_t s;
+-                return get_msgpack_string(s) && sax->string(s);
+-            }
+-
+-            case 0xC0: // nil
+-                return sax->null();
+-
+-            case 0xC2: // false
+-                return sax->boolean(false);
+-
+-            case 0xC3: // true
+-                return sax->boolean(true);
+-
+-            case 0xC4: // bin 8
+-            case 0xC5: // bin 16
+-            case 0xC6: // bin 32
+-            case 0xC7: // ext 8
+-            case 0xC8: // ext 16
+-            case 0xC9: // ext 32
+-            case 0xD4: // fixext 1
+-            case 0xD5: // fixext 2
+-            case 0xD6: // fixext 4
+-            case 0xD7: // fixext 8
+-            case 0xD8: // fixext 16
+-            {
+-                binary_t b;
+-                return get_msgpack_binary(b) && sax->binary(b);
+-            }
+-
+-            case 0xCA: // float 32
+-            {
+-                float number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 0xCB: // float 64
+-            {
+-                double number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 0xCC: // uint 8
+-            {
+-                std::uint8_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0xCD: // uint 16
+-            {
+-                std::uint16_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0xCE: // uint 32
+-            {
+-                std::uint32_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0xCF: // uint 64
+-            {
+-                std::uint64_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0xD0: // int 8
+-            {
+-                std::int8_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_integer(number);
+-            }
+-
+-            case 0xD1: // int 16
+-            {
+-                std::int16_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_integer(number);
+-            }
+-
+-            case 0xD2: // int 32
+-            {
+-                std::int32_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_integer(number);
+-            }
+-
+-            case 0xD3: // int 64
+-            {
+-                std::int64_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_integer(number);
+-            }
+-
+-            case 0xDC: // array 16
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_msgpack_array(static_cast<std::size_t>(len));
+-            }
+-
+-            case 0xDD: // array 32
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_msgpack_array(static_cast<std::size_t>(len));
+-            }
+-
+-            case 0xDE: // map 16
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_msgpack_object(static_cast<std::size_t>(len));
+-            }
+-
+-            case 0xDF: // map 32
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_msgpack_object(static_cast<std::size_t>(len));
+-            }
+-
+-            // negative fixint
+-            case 0xE0:
+-            case 0xE1:
+-            case 0xE2:
+-            case 0xE3:
+-            case 0xE4:
+-            case 0xE5:
+-            case 0xE6:
+-            case 0xE7:
+-            case 0xE8:
+-            case 0xE9:
+-            case 0xEA:
+-            case 0xEB:
+-            case 0xEC:
+-            case 0xED:
+-            case 0xEE:
+-            case 0xEF:
+-            case 0xF0:
+-            case 0xF1:
+-            case 0xF2:
+-            case 0xF3:
+-            case 0xF4:
+-            case 0xF5:
+-            case 0xF6:
+-            case 0xF7:
+-            case 0xF8:
+-            case 0xF9:
+-            case 0xFA:
+-            case 0xFB:
+-            case 0xFC:
+-            case 0xFD:
+-            case 0xFE:
+-            case 0xFF:
+-                return sax->number_integer(static_cast<std::int8_t>(current));
+-
+-            default: // anything else
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::msgpack, "invalid byte: 0x" + last_token, "value"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief reads a MessagePack string
+-
+-    This function first reads starting bytes to determine the expected
+-    string length and then copies this number of bytes into a string.
+-
+-    @param[out] result  created string
+-
+-    @return whether string creation completed
+-    */
+-    bool get_msgpack_string(string_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::msgpack, "string")))
+-        {
+-            return false;
+-        }
+-
+-        switch (current)
+-        {
+-            // fixstr
+-            case 0xA0:
+-            case 0xA1:
+-            case 0xA2:
+-            case 0xA3:
+-            case 0xA4:
+-            case 0xA5:
+-            case 0xA6:
+-            case 0xA7:
+-            case 0xA8:
+-            case 0xA9:
+-            case 0xAA:
+-            case 0xAB:
+-            case 0xAC:
+-            case 0xAD:
+-            case 0xAE:
+-            case 0xAF:
+-            case 0xB0:
+-            case 0xB1:
+-            case 0xB2:
+-            case 0xB3:
+-            case 0xB4:
+-            case 0xB5:
+-            case 0xB6:
+-            case 0xB7:
+-            case 0xB8:
+-            case 0xB9:
+-            case 0xBA:
+-            case 0xBB:
+-            case 0xBC:
+-            case 0xBD:
+-            case 0xBE:
+-            case 0xBF:
+-            {
+-                return get_string(input_format_t::msgpack, static_cast<unsigned int>(current) & 0x1Fu, result);
+-            }
+-
+-            case 0xD9: // str 8
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_string(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xDA: // str 16
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_string(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xDB: // str 32
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_string(input_format_t::msgpack, len, result);
+-            }
+-
+-            default:
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::msgpack, "expected length specification (0xA0-0xBF, 0xD9-0xDB); last byte: 0x" + last_token, "string"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief reads a MessagePack byte array
+-
+-    This function first reads starting bytes to determine the expected
+-    byte array length and then copies this number of bytes into a byte array.
+-
+-    @param[out] result  created byte array
+-
+-    @return whether byte array creation completed
+-    */
+-    bool get_msgpack_binary(binary_t& result)
+-    {
+-        // helper function to set the subtype
+-        auto assign_and_return_true = [&result](std::int8_t subtype)
+-        {
+-            result.set_subtype(static_cast<std::uint8_t>(subtype));
+-            return true;
+-        };
+-
+-        switch (current)
+-        {
+-            case 0xC4: // bin 8
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_binary(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xC5: // bin 16
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_binary(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xC6: // bin 32
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_binary(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xC7: // ext 8
+-            {
+-                std::uint8_t len{};
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, len, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xC8: // ext 16
+-            {
+-                std::uint16_t len{};
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, len, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xC9: // ext 32
+-            {
+-                std::uint32_t len{};
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, len, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD4: // fixext 1
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 1, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD5: // fixext 2
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 2, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD6: // fixext 4
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 4, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD7: // fixext 8
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 8, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD8: // fixext 16
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 16, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            default:           // LCOV_EXCL_LINE
+-                return false;  // LCOV_EXCL_LINE
+-        }
+-    }
+-
+-    /*!
+-    @param[in] len  the length of the array
+-    @return whether array creation completed
+-    */
+-    bool get_msgpack_array(const std::size_t len)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len)))
+-        {
+-            return false;
+-        }
+-
+-        for (std::size_t i = 0; i < len; ++i)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
+-            {
+-                return false;
+-            }
+-        }
+-
+-        return sax->end_array();
+-    }
+-
+-    /*!
+-    @param[in] len  the length of the object
+-    @return whether object creation completed
+-    */
+-    bool get_msgpack_object(const std::size_t len)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_object(len)))
+-        {
+-            return false;
+-        }
+-
+-        string_t key;
+-        for (std::size_t i = 0; i < len; ++i)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!get_msgpack_string(key) || !sax->key(key)))
+-            {
+-                return false;
+-            }
+-
+-            if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
+-            {
+-                return false;
+-            }
+-            key.clear();
+-        }
+-
+-        return sax->end_object();
+-    }
+-
+-    ////////////
+-    // UBJSON //
+-    ////////////
+-
+-    /*!
+-    @param[in] get_char  whether a new character should be retrieved from the
+-                         input (true, default) or whether the last read
+-                         character should be considered instead
+-
+-    @return whether a valid UBJSON value was passed to the SAX parser
+-    */
+-    bool parse_ubjson_internal(const bool get_char = true)
+-    {
+-        return get_ubjson_value(get_char ? get_ignore_noop() : current);
+-    }
+-
+-    /*!
+-    @brief reads a UBJSON string
+-
+-    This function is either called after reading the 'S' byte explicitly
+-    indicating a string, or in case of an object key where the 'S' byte can be
+-    left out.
+-
+-    @param[out] result   created string
+-    @param[in] get_char  whether a new character should be retrieved from the
+-                         input (true, default) or whether the last read
+-                         character should be considered instead
+-
+-    @return whether string creation completed
+-    */
+-    bool get_ubjson_string(string_t& result, const bool get_char = true)
+-    {
+-        if (get_char)
+-        {
+-            get();  // TODO(niels): may we ignore N here?
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "value")))
+-        {
+-            return false;
+-        }
+-
+-        switch (current)
+-        {
+-            case 'U':
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            case 'i':
+-            {
+-                std::int8_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            case 'I':
+-            {
+-                std::int16_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            case 'l':
+-            {
+-                std::int32_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            case 'L':
+-            {
+-                std::int64_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            default:
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::ubjson, "expected length type specification (U, i, I, l, L); last byte: 0x" + last_token, "string"), BasicJsonType()));
+-        }
+-    }
+-
+-    /*!
+-    @param[out] result  determined size
+-    @return whether size determination completed
+-    */
+-    bool get_ubjson_size_value(std::size_t& result)
+-    {
+-        switch (get_ignore_noop())
+-        {
+-            case 'U':
+-            {
+-                std::uint8_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number);
+-                return true;
+-            }
+-
+-            case 'i':
+-            {
+-                std::int8_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
+-                return true;
+-            }
+-
+-            case 'I':
+-            {
+-                std::int16_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number);
+-                return true;
+-            }
+-
+-            case 'l':
+-            {
+-                std::int32_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number);
+-                return true;
+-            }
+-
+-            case 'L':
+-            {
+-                std::int64_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number);
+-                return true;
+-            }
+-
+-            default:
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::ubjson, "expected length type specification (U, i, I, l, L) after '#'; last byte: 0x" + last_token, "size"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief determine the type and size for a container
+-
+-    In the optimized UBJSON format, a type and a size can be provided to allow
+-    for a more compact representation.
+-
+-    @param[out] result  pair of the size and the type
+-
+-    @return whether pair creation completed
+-    */
+-    bool get_ubjson_size_type(std::pair<std::size_t, char_int_type>& result)
+-    {
+-        result.first = string_t::npos; // size
+-        result.second = 0; // type
+-
+-        get_ignore_noop();
+-
+-        if (current == '$')
+-        {
+-            result.second = get();  // must not ignore 'N', because 'N' maybe the type
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "type")))
+-            {
+-                return false;
+-            }
+-
+-            get_ignore_noop();
+-            if (JSON_HEDLEY_UNLIKELY(current != '#'))
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "value")))
+-                {
+-                    return false;
+-                }
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::ubjson, "expected '#' after type information; last byte: 0x" + last_token, "size"), BasicJsonType()));
+-            }
+-
+-            return get_ubjson_size_value(result.first);
+-        }
+-
+-        if (current == '#')
+-        {
+-            return get_ubjson_size_value(result.first);
+-        }
+-
+-        return true;
+-    }
+-
+-    /*!
+-    @param prefix  the previously read or set type prefix
+-    @return whether value creation completed
+-    */
+-    bool get_ubjson_value(const char_int_type prefix)
+-    {
+-        switch (prefix)
+-        {
+-            case std::char_traits<char_type>::eof():  // EOF
+-                return unexpect_eof(input_format_t::ubjson, "value");
+-
+-            case 'T':  // true
+-                return sax->boolean(true);
+-            case 'F':  // false
+-                return sax->boolean(false);
+-
+-            case 'Z':  // null
+-                return sax->null();
+-
+-            case 'U':
+-            {
+-                std::uint8_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 'i':
+-            {
+-                std::int8_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_integer(number);
+-            }
+-
+-            case 'I':
+-            {
+-                std::int16_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_integer(number);
+-            }
+-
+-            case 'l':
+-            {
+-                std::int32_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_integer(number);
+-            }
+-
+-            case 'L':
+-            {
+-                std::int64_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_integer(number);
+-            }
+-
+-            case 'd':
+-            {
+-                float number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 'D':
+-            {
+-                double number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 'H':
+-            {
+-                return get_ubjson_high_precision_number();
+-            }
+-
+-            case 'C':  // char
+-            {
+-                get();
+-                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "char")))
+-                {
+-                    return false;
+-                }
+-                if (JSON_HEDLEY_UNLIKELY(current > 127))
+-                {
+-                    auto last_token = get_token_string();
+-                    return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::ubjson, "byte after 'C' must be in range 0x00..0x7F; last byte: 0x" + last_token, "char"), BasicJsonType()));
+-                }
+-                string_t s(1, static_cast<typename string_t::value_type>(current));
+-                return sax->string(s);
+-            }
+-
+-            case 'S':  // string
+-            {
+-                string_t s;
+-                return get_ubjson_string(s) && sax->string(s);
+-            }
+-
+-            case '[':  // array
+-                return get_ubjson_array();
+-
+-            case '{':  // object
+-                return get_ubjson_object();
+-
+-            default: // anything else
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::ubjson, "invalid byte: 0x" + last_token, "value"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @return whether array creation completed
+-    */
+-    bool get_ubjson_array()
+-    {
+-        std::pair<std::size_t, char_int_type> size_and_type;
+-        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
+-        {
+-            return false;
+-        }
+-
+-        if (size_and_type.first != string_t::npos)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!sax->start_array(size_and_type.first)))
+-            {
+-                return false;
+-            }
+-
+-            if (size_and_type.second != 0)
+-            {
+-                if (size_and_type.second != 'N')
+-                {
+-                    for (std::size_t i = 0; i < size_and_type.first; ++i)
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second)))
+-                        {
+-                            return false;
+-                        }
+-                    }
+-                }
+-            }
+-            else
+-            {
+-                for (std::size_t i = 0; i < size_and_type.first; ++i)
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal()))
+-                    {
+-                        return false;
+-                    }
+-                }
+-            }
+-        }
+-        else
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!sax->start_array(static_cast<std::size_t>(-1))))
+-            {
+-                return false;
+-            }
+-
+-            while (current != ']')
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal(false)))
+-                {
+-                    return false;
+-                }
+-                get_ignore_noop();
+-            }
+-        }
+-
+-        return sax->end_array();
+-    }
+-
+-    /*!
+-    @return whether object creation completed
+-    */
+-    bool get_ubjson_object()
+-    {
+-        std::pair<std::size_t, char_int_type> size_and_type;
+-        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
+-        {
+-            return false;
+-        }
+-
+-        string_t key;
+-        if (size_and_type.first != string_t::npos)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!sax->start_object(size_and_type.first)))
+-            {
+-                return false;
+-            }
+-
+-            if (size_and_type.second != 0)
+-            {
+-                for (std::size_t i = 0; i < size_and_type.first; ++i)
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key) || !sax->key(key)))
+-                    {
+-                        return false;
+-                    }
+-                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second)))
+-                    {
+-                        return false;
+-                    }
+-                    key.clear();
+-                }
+-            }
+-            else
+-            {
+-                for (std::size_t i = 0; i < size_and_type.first; ++i)
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key) || !sax->key(key)))
+-                    {
+-                        return false;
+-                    }
+-                    if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal()))
+-                    {
+-                        return false;
+-                    }
+-                    key.clear();
+-                }
+-            }
+-        }
+-        else
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!sax->start_object(static_cast<std::size_t>(-1))))
+-            {
+-                return false;
+-            }
+-
+-            while (current != '}')
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, false) || !sax->key(key)))
+-                {
+-                    return false;
+-                }
+-                if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal()))
+-                {
+-                    return false;
+-                }
+-                get_ignore_noop();
+-                key.clear();
+-            }
+-        }
+-
+-        return sax->end_object();
+-    }
+-
+-    // Note, no reader for UBJSON binary types is implemented because they do
+-    // not exist
+-
+-    bool get_ubjson_high_precision_number()
+-    {
+-        // get size of following number string
+-        std::size_t size{};
+-        auto res = get_ubjson_size_value(size);
+-        if (JSON_HEDLEY_UNLIKELY(!res))
+-        {
+-            return res;
+-        }
+-
+-        // get number string
+-        std::vector<char> number_vector;
+-        for (std::size_t i = 0; i < size; ++i)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "number")))
+-            {
+-                return false;
+-            }
+-            number_vector.push_back(static_cast<char>(current));
+-        }
+-
+-        // parse number string
+-        using ia_type = decltype(detail::input_adapter(number_vector));
+-        auto number_lexer = detail::lexer<BasicJsonType, ia_type>(detail::input_adapter(number_vector), false);
+-        const auto result_number = number_lexer.scan();
+-        const auto number_string = number_lexer.get_token_string();
+-        const auto result_remainder = number_lexer.scan();
+-
+-        using token_type = typename detail::lexer_base<BasicJsonType>::token_type;
+-
+-        if (JSON_HEDLEY_UNLIKELY(result_remainder != token_type::end_of_input))
+-        {
+-            return sax->parse_error(chars_read, number_string, parse_error::create(115, chars_read, exception_message(input_format_t::ubjson, "invalid number text: " + number_lexer.get_token_string(), "high-precision number"), BasicJsonType()));
+-        }
+-
+-        switch (result_number)
+-        {
+-            case token_type::value_integer:
+-                return sax->number_integer(number_lexer.get_number_integer());
+-            case token_type::value_unsigned:
+-                return sax->number_unsigned(number_lexer.get_number_unsigned());
+-            case token_type::value_float:
+-                return sax->number_float(number_lexer.get_number_float(), std::move(number_string));
+-            case token_type::uninitialized:
+-            case token_type::literal_true:
+-            case token_type::literal_false:
+-            case token_type::literal_null:
+-            case token_type::value_string:
+-            case token_type::begin_array:
+-            case token_type::begin_object:
+-            case token_type::end_array:
+-            case token_type::end_object:
+-            case token_type::name_separator:
+-            case token_type::value_separator:
+-            case token_type::parse_error:
+-            case token_type::end_of_input:
+-            case token_type::literal_or_value:
+-            default:
+-                return sax->parse_error(chars_read, number_string, parse_error::create(115, chars_read, exception_message(input_format_t::ubjson, "invalid number text: " + number_lexer.get_token_string(), "high-precision number"), BasicJsonType()));
+-        }
+-    }
+-
+-    ///////////////////////
+-    // Utility functions //
+-    ///////////////////////
+-
+-    /*!
+-    @brief get next character from the input
+-
+-    This function provides the interface to the used input adapter. It does
+-    not throw in case the input reached EOF, but returns a -'ve valued
+-    `std::char_traits<char_type>::eof()` in that case.
+-
+-    @return character read from the input
+-    */
+-    char_int_type get()
+-    {
+-        ++chars_read;
+-        return current = ia.get_character();
+-    }
+-
+-    /*!
+-    @return character read from the input after ignoring all 'N' entries
+-    */
+-    char_int_type get_ignore_noop()
+-    {
+-        do
+-        {
+-            get();
+-        }
+-        while (current == 'N');
+-
+-        return current;
+-    }
+-
+-    /*
+-    @brief read a number from the input
+-
+-    @tparam NumberType the type of the number
+-    @param[in] format   the current format (for diagnostics)
+-    @param[out] result  number of type @a NumberType
+-
+-    @return whether conversion completed
+-
+-    @note This function needs to respect the system's endianness, because
+-          bytes in CBOR, MessagePack, and UBJSON are stored in network order
+-          (big endian) and therefore need reordering on little endian systems.
+-    */
+-    template<typename NumberType, bool InputIsLittleEndian = false>
+-    bool get_number(const input_format_t format, NumberType& result)
+-    {
+-        // step 1: read input into array with system's byte order
+-        std::array<std::uint8_t, sizeof(NumberType)> vec{};
+-        for (std::size_t i = 0; i < sizeof(NumberType); ++i)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "number")))
+-            {
+-                return false;
+-            }
+-
+-            // reverse byte order prior to conversion if necessary
+-            if (is_little_endian != InputIsLittleEndian)
+-            {
+-                vec[sizeof(NumberType) - i - 1] = static_cast<std::uint8_t>(current);
+-            }
+-            else
+-            {
+-                vec[i] = static_cast<std::uint8_t>(current); // LCOV_EXCL_LINE
+-            }
+-        }
+-
+-        // step 2: convert array into number of type T and return
+-        std::memcpy(&result, vec.data(), sizeof(NumberType));
+-        return true;
+-    }
+-
+-    /*!
+-    @brief create a string by reading characters from the input
+-
+-    @tparam NumberType the type of the number
+-    @param[in] format the current format (for diagnostics)
+-    @param[in] len number of characters to read
+-    @param[out] result string created by reading @a len bytes
+-
+-    @return whether string creation completed
+-
+-    @note We can not reserve @a len bytes for the result, because @a len
+-          may be too large. Usually, @ref unexpect_eof() detects the end of
+-          the input before we run out of string memory.
+-    */
+-    template<typename NumberType>
+-    bool get_string(const input_format_t format,
+-                    const NumberType len,
+-                    string_t& result)
+-    {
+-        bool success = true;
+-        for (NumberType i = 0; i < len; i++)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "string")))
+-            {
+-                success = false;
+-                break;
+-            }
+-            result.push_back(static_cast<typename string_t::value_type>(current));
+-        }
+-        return success;
+-    }
+-
+-    /*!
+-    @brief create a byte array by reading bytes from the input
+-
+-    @tparam NumberType the type of the number
+-    @param[in] format the current format (for diagnostics)
+-    @param[in] len number of bytes to read
+-    @param[out] result byte array created by reading @a len bytes
+-
+-    @return whether byte array creation completed
+-
+-    @note We can not reserve @a len bytes for the result, because @a len
+-          may be too large. Usually, @ref unexpect_eof() detects the end of
+-          the input before we run out of memory.
+-    */
+-    template<typename NumberType>
+-    bool get_binary(const input_format_t format,
+-                    const NumberType len,
+-                    binary_t& result)
+-    {
+-        bool success = true;
+-        for (NumberType i = 0; i < len; i++)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "binary")))
+-            {
+-                success = false;
+-                break;
+-            }
+-            result.push_back(static_cast<std::uint8_t>(current));
+-        }
+-        return success;
+-    }
+-
+-    /*!
+-    @param[in] format   the current format (for diagnostics)
+-    @param[in] context  further context information (for diagnostics)
+-    @return whether the last read character is not EOF
+-    */
+-    JSON_HEDLEY_NON_NULL(3)
+-    bool unexpect_eof(const input_format_t format, const char* context) const
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(current == std::char_traits<char_type>::eof()))
+-        {
+-            return sax->parse_error(chars_read, "<end of file>",
+-                                    parse_error::create(110, chars_read, exception_message(format, "unexpected end of input", context), BasicJsonType()));
+-        }
+-        return true;
+-    }
+-
+-    /*!
+-    @return a string representation of the last read byte
+-    */
+-    std::string get_token_string() const
+-    {
+-        std::array<char, 3> cr{{}};
+-        static_cast<void>((std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(current))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-        return std::string{cr.data()};
+-    }
+-
+-    /*!
+-    @param[in] format   the current format
+-    @param[in] detail   a detailed error message
+-    @param[in] context  further context information
+-    @return a message string to use in the parse_error exceptions
+-    */
+-    std::string exception_message(const input_format_t format,
+-                                  const std::string& detail,
+-                                  const std::string& context) const
+-    {
+-        std::string error_msg = "syntax error while parsing ";
+-
+-        switch (format)
+-        {
+-            case input_format_t::cbor:
+-                error_msg += "CBOR";
+-                break;
+-
+-            case input_format_t::msgpack:
+-                error_msg += "MessagePack";
+-                break;
+-
+-            case input_format_t::ubjson:
+-                error_msg += "UBJSON";
+-                break;
+-
+-            case input_format_t::bson:
+-                error_msg += "BSON";
+-                break;
+-
+-            case input_format_t::json: // LCOV_EXCL_LINE
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-
+-        return error_msg + " " + context + ": " + detail;
+-    }
+-
+-  private:
+-    /// input adapter
+-    InputAdapterType ia;
+-
+-    /// the current character
+-    char_int_type current = std::char_traits<char_type>::eof();
+-
+-    /// the number of characters read
+-    std::size_t chars_read = 0;
+-
+-    /// whether we can assume little endianness
+-    const bool is_little_endian = little_endianness();
+-
+-    /// the SAX parser
+-    json_sax_t* sax = nullptr;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/input_adapters.hpp>
+-
+-// #include <nlohmann/detail/input/lexer.hpp>
+-
+-// #include <nlohmann/detail/input/parser.hpp>
+-
+-
+-#include <cmath> // isfinite
+-#include <cstdint> // uint8_t
+-#include <functional> // function
+-#include <string> // string
+-#include <utility> // move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/input/input_adapters.hpp>
+-
+-// #include <nlohmann/detail/input/json_sax.hpp>
+-
+-// #include <nlohmann/detail/input/lexer.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/is_sax.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-////////////
+-// parser //
+-////////////
+-
+-enum class parse_event_t : std::uint8_t
+-{
+-    /// the parser read `{` and started to process a JSON object
+-    object_start,
+-    /// the parser read `}` and finished processing a JSON object
+-    object_end,
+-    /// the parser read `[` and started to process a JSON array
+-    array_start,
+-    /// the parser read `]` and finished processing a JSON array
+-    array_end,
+-    /// the parser read a key of a value in an object
+-    key,
+-    /// the parser finished reading a JSON value
+-    value
+-};
+-
+-template<typename BasicJsonType>
+-using parser_callback_t =
+-    std::function<bool(int /*depth*/, parse_event_t /*event*/, BasicJsonType& /*parsed*/)>;
+-
+-/*!
+-@brief syntax analysis
+-
+-This class implements a recursive descent parser.
+-*/
+-template<typename BasicJsonType, typename InputAdapterType>
+-class parser
+-{
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using lexer_t = lexer<BasicJsonType, InputAdapterType>;
+-    using token_type = typename lexer_t::token_type;
+-
+-  public:
+-    /// a parser reading from an input adapter
+-    explicit parser(InputAdapterType&& adapter,
+-                    const parser_callback_t<BasicJsonType> cb = nullptr,
+-                    const bool allow_exceptions_ = true,
+-                    const bool skip_comments = false)
+-        : callback(cb)
+-        , m_lexer(std::move(adapter), skip_comments)
+-        , allow_exceptions(allow_exceptions_)
+-    {
+-        // read first token
+-        get_token();
+-    }
+-
+-    /*!
+-    @brief public parser interface
+-
+-    @param[in] strict      whether to expect the last token to be EOF
+-    @param[in,out] result  parsed JSON value
+-
+-    @throw parse_error.101 in case of an unexpected token
+-    @throw parse_error.102 if to_unicode fails or surrogate error
+-    @throw parse_error.103 if to_unicode fails
+-    */
+-    void parse(const bool strict, BasicJsonType& result)
+-    {
+-        if (callback)
+-        {
+-            json_sax_dom_callback_parser<BasicJsonType> sdp(result, callback, allow_exceptions);
+-            sax_parse_internal(&sdp);
+-
+-            // in strict mode, input must be completely read
+-            if (strict && (get_token() != token_type::end_of_input))
+-            {
+-                sdp.parse_error(m_lexer.get_position(),
+-                                m_lexer.get_token_string(),
+-                                parse_error::create(101, m_lexer.get_position(),
+-                                                    exception_message(token_type::end_of_input, "value"), BasicJsonType()));
+-            }
+-
+-            // in case of an error, return discarded value
+-            if (sdp.is_errored())
+-            {
+-                result = value_t::discarded;
+-                return;
+-            }
+-
+-            // set top-level value to null if it was discarded by the callback
+-            // function
+-            if (result.is_discarded())
+-            {
+-                result = nullptr;
+-            }
+-        }
+-        else
+-        {
+-            json_sax_dom_parser<BasicJsonType> sdp(result, allow_exceptions);
+-            sax_parse_internal(&sdp);
+-
+-            // in strict mode, input must be completely read
+-            if (strict && (get_token() != token_type::end_of_input))
+-            {
+-                sdp.parse_error(m_lexer.get_position(),
+-                                m_lexer.get_token_string(),
+-                                parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), BasicJsonType()));
+-            }
+-
+-            // in case of an error, return discarded value
+-            if (sdp.is_errored())
+-            {
+-                result = value_t::discarded;
+-                return;
+-            }
+-        }
+-
+-        result.assert_invariant();
+-    }
+-
+-    /*!
+-    @brief public accept interface
+-
+-    @param[in] strict  whether to expect the last token to be EOF
+-    @return whether the input is a proper JSON text
+-    */
+-    bool accept(const bool strict = true)
+-    {
+-        json_sax_acceptor<BasicJsonType> sax_acceptor;
+-        return sax_parse(&sax_acceptor, strict);
+-    }
+-
+-    template<typename SAX>
+-    JSON_HEDLEY_NON_NULL(2)
+-    bool sax_parse(SAX* sax, const bool strict = true)
+-    {
+-        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
+-        const bool result = sax_parse_internal(sax);
+-
+-        // strict mode: next byte must be EOF
+-        if (result && strict && (get_token() != token_type::end_of_input))
+-        {
+-            return sax->parse_error(m_lexer.get_position(),
+-                                    m_lexer.get_token_string(),
+-                                    parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), BasicJsonType()));
+-        }
+-
+-        return result;
+-    }
+-
+-  private:
+-    template<typename SAX>
+-    JSON_HEDLEY_NON_NULL(2)
+-    bool sax_parse_internal(SAX* sax)
+-    {
+-        // stack to remember the hierarchy of structured values we are parsing
+-        // true = array; false = object
+-        std::vector<bool> states;
+-        // value to avoid a goto (see comment where set to true)
+-        bool skip_to_state_evaluation = false;
+-
+-        while (true)
+-        {
+-            if (!skip_to_state_evaluation)
+-            {
+-                // invariant: get_token() was called before each iteration
+-                switch (last_token)
+-                {
+-                    case token_type::begin_object:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->start_object(static_cast<std::size_t>(-1))))
+-                        {
+-                            return false;
+-                        }
+-
+-                        // closing } -> we are done
+-                        if (get_token() == token_type::end_object)
+-                        {
+-                            if (JSON_HEDLEY_UNLIKELY(!sax->end_object()))
+-                            {
+-                                return false;
+-                            }
+-                            break;
+-                        }
+-
+-                        // parse key
+-                        if (JSON_HEDLEY_UNLIKELY(last_token != token_type::value_string))
+-                        {
+-                            return sax->parse_error(m_lexer.get_position(),
+-                                                    m_lexer.get_token_string(),
+-                                                    parse_error::create(101, m_lexer.get_position(), exception_message(token_type::value_string, "object key"), BasicJsonType()));
+-                        }
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->key(m_lexer.get_string())))
+-                        {
+-                            return false;
+-                        }
+-
+-                        // parse separator (:)
+-                        if (JSON_HEDLEY_UNLIKELY(get_token() != token_type::name_separator))
+-                        {
+-                            return sax->parse_error(m_lexer.get_position(),
+-                                                    m_lexer.get_token_string(),
+-                                                    parse_error::create(101, m_lexer.get_position(), exception_message(token_type::name_separator, "object separator"), BasicJsonType()));
+-                        }
+-
+-                        // remember we are now inside an object
+-                        states.push_back(false);
+-
+-                        // parse values
+-                        get_token();
+-                        continue;
+-                    }
+-
+-                    case token_type::begin_array:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->start_array(static_cast<std::size_t>(-1))))
+-                        {
+-                            return false;
+-                        }
+-
+-                        // closing ] -> we are done
+-                        if (get_token() == token_type::end_array)
+-                        {
+-                            if (JSON_HEDLEY_UNLIKELY(!sax->end_array()))
+-                            {
+-                                return false;
+-                            }
+-                            break;
+-                        }
+-
+-                        // remember we are now inside an array
+-                        states.push_back(true);
+-
+-                        // parse values (no need to call get_token)
+-                        continue;
+-                    }
+-
+-                    case token_type::value_float:
+-                    {
+-                        const auto res = m_lexer.get_number_float();
+-
+-                        if (JSON_HEDLEY_UNLIKELY(!std::isfinite(res)))
+-                        {
+-                            return sax->parse_error(m_lexer.get_position(),
+-                                                    m_lexer.get_token_string(),
+-                                                    out_of_range::create(406, "number overflow parsing '" + m_lexer.get_token_string() + "'", BasicJsonType()));
+-                        }
+-
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->number_float(res, m_lexer.get_string())))
+-                        {
+-                            return false;
+-                        }
+-
+-                        break;
+-                    }
+-
+-                    case token_type::literal_false:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->boolean(false)))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::literal_null:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->null()))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::literal_true:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->boolean(true)))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::value_integer:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->number_integer(m_lexer.get_number_integer())))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::value_string:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->string(m_lexer.get_string())))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::value_unsigned:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->number_unsigned(m_lexer.get_number_unsigned())))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::parse_error:
+-                    {
+-                        // using "uninitialized" to avoid "expected" message
+-                        return sax->parse_error(m_lexer.get_position(),
+-                                                m_lexer.get_token_string(),
+-                                                parse_error::create(101, m_lexer.get_position(), exception_message(token_type::uninitialized, "value"), BasicJsonType()));
+-                    }
+-
+-                    case token_type::uninitialized:
+-                    case token_type::end_array:
+-                    case token_type::end_object:
+-                    case token_type::name_separator:
+-                    case token_type::value_separator:
+-                    case token_type::end_of_input:
+-                    case token_type::literal_or_value:
+-                    default: // the last token was unexpected
+-                    {
+-                        return sax->parse_error(m_lexer.get_position(),
+-                                                m_lexer.get_token_string(),
+-                                                parse_error::create(101, m_lexer.get_position(), exception_message(token_type::literal_or_value, "value"), BasicJsonType()));
+-                    }
+-                }
+-            }
+-            else
+-            {
+-                skip_to_state_evaluation = false;
+-            }
+-
+-            // we reached this line after we successfully parsed a value
+-            if (states.empty())
+-            {
+-                // empty stack: we reached the end of the hierarchy: done
+-                return true;
+-            }
+-
+-            if (states.back())  // array
+-            {
+-                // comma -> next value
+-                if (get_token() == token_type::value_separator)
+-                {
+-                    // parse a new value
+-                    get_token();
+-                    continue;
+-                }
+-
+-                // closing ]
+-                if (JSON_HEDLEY_LIKELY(last_token == token_type::end_array))
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!sax->end_array()))
+-                    {
+-                        return false;
+-                    }
+-
+-                    // We are done with this array. Before we can parse a
+-                    // new value, we need to evaluate the new state first.
+-                    // By setting skip_to_state_evaluation to false, we
+-                    // are effectively jumping to the beginning of this if.
+-                    JSON_ASSERT(!states.empty());
+-                    states.pop_back();
+-                    skip_to_state_evaluation = true;
+-                    continue;
+-                }
+-
+-                return sax->parse_error(m_lexer.get_position(),
+-                                        m_lexer.get_token_string(),
+-                                        parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_array, "array"), BasicJsonType()));
+-            }
+-
+-            // states.back() is false -> object
+-
+-            // comma -> next value
+-            if (get_token() == token_type::value_separator)
+-            {
+-                // parse key
+-                if (JSON_HEDLEY_UNLIKELY(get_token() != token_type::value_string))
+-                {
+-                    return sax->parse_error(m_lexer.get_position(),
+-                                            m_lexer.get_token_string(),
+-                                            parse_error::create(101, m_lexer.get_position(), exception_message(token_type::value_string, "object key"), BasicJsonType()));
+-                }
+-
+-                if (JSON_HEDLEY_UNLIKELY(!sax->key(m_lexer.get_string())))
+-                {
+-                    return false;
+-                }
+-
+-                // parse separator (:)
+-                if (JSON_HEDLEY_UNLIKELY(get_token() != token_type::name_separator))
+-                {
+-                    return sax->parse_error(m_lexer.get_position(),
+-                                            m_lexer.get_token_string(),
+-                                            parse_error::create(101, m_lexer.get_position(), exception_message(token_type::name_separator, "object separator"), BasicJsonType()));
+-                }
+-
+-                // parse values
+-                get_token();
+-                continue;
+-            }
+-
+-            // closing }
+-            if (JSON_HEDLEY_LIKELY(last_token == token_type::end_object))
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!sax->end_object()))
+-                {
+-                    return false;
+-                }
+-
+-                // We are done with this object. Before we can parse a
+-                // new value, we need to evaluate the new state first.
+-                // By setting skip_to_state_evaluation to false, we
+-                // are effectively jumping to the beginning of this if.
+-                JSON_ASSERT(!states.empty());
+-                states.pop_back();
+-                skip_to_state_evaluation = true;
+-                continue;
+-            }
+-
+-            return sax->parse_error(m_lexer.get_position(),
+-                                    m_lexer.get_token_string(),
+-                                    parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_object, "object"), BasicJsonType()));
+-        }
+-    }
+-
+-    /// get next token from lexer
+-    token_type get_token()
+-    {
+-        return last_token = m_lexer.scan();
+-    }
+-
+-    std::string exception_message(const token_type expected, const std::string& context)
+-    {
+-        std::string error_msg = "syntax error ";
+-
+-        if (!context.empty())
+-        {
+-            error_msg += "while parsing " + context + " ";
+-        }
+-
+-        error_msg += "- ";
+-
+-        if (last_token == token_type::parse_error)
+-        {
+-            error_msg += std::string(m_lexer.get_error_message()) + "; last read: '" +
+-                         m_lexer.get_token_string() + "'";
+-        }
+-        else
+-        {
+-            error_msg += "unexpected " + std::string(lexer_t::token_type_name(last_token));
+-        }
+-
+-        if (expected != token_type::uninitialized)
+-        {
+-            error_msg += "; expected " + std::string(lexer_t::token_type_name(expected));
+-        }
+-
+-        return error_msg;
+-    }
+-
+-  private:
+-    /// callback function
+-    const parser_callback_t<BasicJsonType> callback = nullptr;
+-    /// the type of the last read token
+-    token_type last_token = token_type::uninitialized;
+-    /// the lexer
+-    lexer_t m_lexer;
+-    /// whether to throw exceptions in case of errors
+-    const bool allow_exceptions = true;
+-};
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/iterators/internal_iterator.hpp>
+-
+-
+-// #include <nlohmann/detail/iterators/primitive_iterator.hpp>
+-
+-
+-#include <cstddef> // ptrdiff_t
+-#include <limits>  // numeric_limits
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/*
+-@brief an iterator for primitive JSON types
+-
+-This class models an iterator for primitive JSON types (boolean, number,
+-string). It's only purpose is to allow the iterator/const_iterator classes
+-to "iterate" over primitive values. Internally, the iterator is modeled by
+-a `difference_type` variable. Value begin_value (`0`) models the begin,
+-end_value (`1`) models past the end.
+-*/
+-class primitive_iterator_t
+-{
+-  private:
+-    using difference_type = std::ptrdiff_t;
+-    static constexpr difference_type begin_value = 0;
+-    static constexpr difference_type end_value = begin_value + 1;
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /// iterator as signed integer type
+-    difference_type m_it = (std::numeric_limits<std::ptrdiff_t>::min)();
+-
+-  public:
+-    constexpr difference_type get_value() const noexcept
+-    {
+-        return m_it;
+-    }
+-
+-    /// set iterator to a defined beginning
+-    void set_begin() noexcept
+-    {
+-        m_it = begin_value;
+-    }
+-
+-    /// set iterator to a defined past the end
+-    void set_end() noexcept
+-    {
+-        m_it = end_value;
+-    }
+-
+-    /// return whether the iterator can be dereferenced
+-    constexpr bool is_begin() const noexcept
+-    {
+-        return m_it == begin_value;
+-    }
+-
+-    /// return whether the iterator is at end
+-    constexpr bool is_end() const noexcept
+-    {
+-        return m_it == end_value;
+-    }
+-
+-    friend constexpr bool operator==(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept
+-    {
+-        return lhs.m_it == rhs.m_it;
+-    }
+-
+-    friend constexpr bool operator<(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept
+-    {
+-        return lhs.m_it < rhs.m_it;
+-    }
+-
+-    primitive_iterator_t operator+(difference_type n) noexcept
+-    {
+-        auto result = *this;
+-        result += n;
+-        return result;
+-    }
+-
+-    friend constexpr difference_type operator-(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept
+-    {
+-        return lhs.m_it - rhs.m_it;
+-    }
+-
+-    primitive_iterator_t& operator++() noexcept
+-    {
+-        ++m_it;
+-        return *this;
+-    }
+-
+-    primitive_iterator_t const operator++(int) noexcept // NOLINT(readability-const-return-type)
+-    {
+-        auto result = *this;
+-        ++m_it;
+-        return result;
+-    }
+-
+-    primitive_iterator_t& operator--() noexcept
+-    {
+-        --m_it;
+-        return *this;
+-    }
+-
+-    primitive_iterator_t const operator--(int) noexcept // NOLINT(readability-const-return-type)
+-    {
+-        auto result = *this;
+-        --m_it;
+-        return result;
+-    }
+-
+-    primitive_iterator_t& operator+=(difference_type n) noexcept
+-    {
+-        m_it += n;
+-        return *this;
+-    }
+-
+-    primitive_iterator_t& operator-=(difference_type n) noexcept
+-    {
+-        m_it -= n;
+-        return *this;
+-    }
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/*!
+-@brief an iterator value
+-
+-@note This structure could easily be a union, but MSVC currently does not allow
+-unions members with complex constructors, see https://github.com/nlohmann/json/pull/105.
+-*/
+-template<typename BasicJsonType> struct internal_iterator
+-{
+-    /// iterator for JSON objects
+-    typename BasicJsonType::object_t::iterator object_iterator {};
+-    /// iterator for JSON arrays
+-    typename BasicJsonType::array_t::iterator array_iterator {};
+-    /// generic iterator for all other types
+-    primitive_iterator_t primitive_iterator {};
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/iterators/iter_impl.hpp>
+-
+-
+-#include <iterator> // iterator, random_access_iterator_tag, bidirectional_iterator_tag, advance, next
+-#include <type_traits> // conditional, is_const, remove_const
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/iterators/internal_iterator.hpp>
+-
+-// #include <nlohmann/detail/iterators/primitive_iterator.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-// forward declare, to be able to friend it later on
+-template<typename IteratorType> class iteration_proxy;
+-template<typename IteratorType> class iteration_proxy_value;
+-
+-/*!
+-@brief a template for a bidirectional iterator for the @ref basic_json class
+-This class implements a both iterators (iterator and const_iterator) for the
+-@ref basic_json class.
+-@note An iterator is called *initialized* when a pointer to a JSON value has
+-      been set (e.g., by a constructor or a copy assignment). If the iterator is
+-      default-constructed, it is *uninitialized* and most methods are undefined.
+-      **The library uses assertions to detect calls on uninitialized iterators.**
+-@requirement The class satisfies the following concept requirements:
+--
+-[BidirectionalIterator](https://en.cppreference.com/w/cpp/named_req/BidirectionalIterator):
+-  The iterator that can be moved can be moved in both directions (i.e.
+-  incremented and decremented).
+-@since version 1.0.0, simplified in version 2.0.9, change to bidirectional
+-       iterators in version 3.0.0 (see https://github.com/nlohmann/json/issues/593)
+-*/
+-template<typename BasicJsonType>
+-class iter_impl // NOLINT(cppcoreguidelines-special-member-functions,hicpp-special-member-functions)
+-{
+-    /// the iterator with BasicJsonType of different const-ness
+-    using other_iter_impl = iter_impl<typename std::conditional<std::is_const<BasicJsonType>::value, typename std::remove_const<BasicJsonType>::type, const BasicJsonType>::type>;
+-    /// allow basic_json to access private members
+-    friend other_iter_impl;
+-    friend BasicJsonType;
+-    friend iteration_proxy<iter_impl>;
+-    friend iteration_proxy_value<iter_impl>;
+-
+-    using object_t = typename BasicJsonType::object_t;
+-    using array_t = typename BasicJsonType::array_t;
+-    // make sure BasicJsonType is basic_json or const basic_json
+-    static_assert(is_basic_json<typename std::remove_const<BasicJsonType>::type>::value,
+-                  "iter_impl only accepts (const) basic_json");
+-
+-  public:
+-
+-    /// The std::iterator class template (used as a base class to provide typedefs) is deprecated in C++17.
+-    /// The C++ Standard has never required user-defined iterators to derive from std::iterator.
+-    /// A user-defined iterator should provide publicly accessible typedefs named
+-    /// iterator_category, value_type, difference_type, pointer, and reference.
+-    /// Note that value_type is required to be non-const, even for constant iterators.
+-    using iterator_category = std::bidirectional_iterator_tag;
+-
+-    /// the type of the values when the iterator is dereferenced
+-    using value_type = typename BasicJsonType::value_type;
+-    /// a type to represent differences between iterators
+-    using difference_type = typename BasicJsonType::difference_type;
+-    /// defines a pointer to the type iterated over (value_type)
+-    using pointer = typename std::conditional<std::is_const<BasicJsonType>::value,
+-          typename BasicJsonType::const_pointer,
+-          typename BasicJsonType::pointer>::type;
+-    /// defines a reference to the type iterated over (value_type)
+-    using reference =
+-        typename std::conditional<std::is_const<BasicJsonType>::value,
+-        typename BasicJsonType::const_reference,
+-        typename BasicJsonType::reference>::type;
+-
+-    iter_impl() = default;
+-    ~iter_impl() = default;
+-    iter_impl(iter_impl&&) noexcept = default;
+-    iter_impl& operator=(iter_impl&&) noexcept = default;
+-
+-    /*!
+-    @brief constructor for a given JSON instance
+-    @param[in] object  pointer to a JSON object for this iterator
+-    @pre object != nullptr
+-    @post The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    explicit iter_impl(pointer object) noexcept : m_object(object)
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                m_it.object_iterator = typename object_t::iterator();
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_it.array_iterator = typename array_t::iterator();
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                m_it.primitive_iterator = primitive_iterator_t();
+-                break;
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @note The conventional copy constructor and copy assignment are implicitly
+-          defined. Combined with the following converting constructor and
+-          assignment, they support: (1) copy from iterator to iterator, (2)
+-          copy from const iterator to const iterator, and (3) conversion from
+-          iterator to const iterator. However conversion from const iterator
+-          to iterator is not defined.
+-    */
+-
+-    /*!
+-    @brief const copy constructor
+-    @param[in] other const iterator to copy from
+-    @note This copy constructor had to be defined explicitly to circumvent a bug
+-          occurring on msvc v19.0 compiler (VS 2015) debug build. For more
+-          information refer to: https://github.com/nlohmann/json/issues/1608
+-    */
+-    iter_impl(const iter_impl<const BasicJsonType>& other) noexcept
+-        : m_object(other.m_object), m_it(other.m_it)
+-    {}
+-
+-    /*!
+-    @brief converting assignment
+-    @param[in] other const iterator to copy from
+-    @return const/non-const iterator
+-    @note It is not checked whether @a other is initialized.
+-    */
+-    iter_impl& operator=(const iter_impl<const BasicJsonType>& other) noexcept
+-    {
+-        if (&other != this)
+-        {
+-            m_object = other.m_object;
+-            m_it = other.m_it;
+-        }
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief converting constructor
+-    @param[in] other  non-const iterator to copy from
+-    @note It is not checked whether @a other is initialized.
+-    */
+-    iter_impl(const iter_impl<typename std::remove_const<BasicJsonType>::type>& other) noexcept
+-        : m_object(other.m_object), m_it(other.m_it)
+-    {}
+-
+-    /*!
+-    @brief converting assignment
+-    @param[in] other  non-const iterator to copy from
+-    @return const/non-const iterator
+-    @note It is not checked whether @a other is initialized.
+-    */
+-    iter_impl& operator=(const iter_impl<typename std::remove_const<BasicJsonType>::type>& other) noexcept // NOLINT(cert-oop54-cpp)
+-    {
+-        m_object = other.m_object;
+-        m_it = other.m_it;
+-        return *this;
+-    }
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /*!
+-    @brief set the iterator to the first value
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    void set_begin() noexcept
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                m_it.object_iterator = m_object->m_value.object->begin();
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_it.array_iterator = m_object->m_value.array->begin();
+-                break;
+-            }
+-
+-            case value_t::null:
+-            {
+-                // set to end so begin()==end() is true: null is empty
+-                m_it.primitive_iterator.set_end();
+-                break;
+-            }
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                m_it.primitive_iterator.set_begin();
+-                break;
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief set the iterator past the last value
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    void set_end() noexcept
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                m_it.object_iterator = m_object->m_value.object->end();
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_it.array_iterator = m_object->m_value.array->end();
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                m_it.primitive_iterator.set_end();
+-                break;
+-            }
+-        }
+-    }
+-
+-  public:
+-    /*!
+-    @brief return a reference to the value pointed to by the iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    reference operator*() const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                JSON_ASSERT(m_it.object_iterator != m_object->m_value.object->end());
+-                return m_it.object_iterator->second;
+-            }
+-
+-            case value_t::array:
+-            {
+-                JSON_ASSERT(m_it.array_iterator != m_object->m_value.array->end());
+-                return *m_it.array_iterator;
+-            }
+-
+-            case value_t::null:
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.is_begin()))
+-                {
+-                    return *m_object;
+-                }
+-
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief dereference the iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    pointer operator->() const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                JSON_ASSERT(m_it.object_iterator != m_object->m_value.object->end());
+-                return &(m_it.object_iterator->second);
+-            }
+-
+-            case value_t::array:
+-            {
+-                JSON_ASSERT(m_it.array_iterator != m_object->m_value.array->end());
+-                return &*m_it.array_iterator;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.is_begin()))
+-                {
+-                    return m_object;
+-                }
+-
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief post-increment (it++)
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl const operator++(int) // NOLINT(readability-const-return-type)
+-    {
+-        auto result = *this;
+-        ++(*this);
+-        return result;
+-    }
+-
+-    /*!
+-    @brief pre-increment (++it)
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl& operator++()
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                std::advance(m_it.object_iterator, 1);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                std::advance(m_it.array_iterator, 1);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                ++m_it.primitive_iterator;
+-                break;
+-            }
+-        }
+-
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief post-decrement (it--)
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl const operator--(int) // NOLINT(readability-const-return-type)
+-    {
+-        auto result = *this;
+-        --(*this);
+-        return result;
+-    }
+-
+-    /*!
+-    @brief pre-decrement (--it)
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl& operator--()
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                std::advance(m_it.object_iterator, -1);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                std::advance(m_it.array_iterator, -1);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                --m_it.primitive_iterator;
+-                break;
+-            }
+-        }
+-
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief comparison: equal
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    template < typename IterImpl, detail::enable_if_t < (std::is_same<IterImpl, iter_impl>::value || std::is_same<IterImpl, other_iter_impl>::value), std::nullptr_t > = nullptr >
+-    bool operator==(const IterImpl& other) const
+-    {
+-        // if objects are not the same, the comparison is undefined
+-        if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", *m_object));
+-        }
+-
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                return (m_it.object_iterator == other.m_it.object_iterator);
+-
+-            case value_t::array:
+-                return (m_it.array_iterator == other.m_it.array_iterator);
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                return (m_it.primitive_iterator == other.m_it.primitive_iterator);
+-        }
+-    }
+-
+-    /*!
+-    @brief comparison: not equal
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    template < typename IterImpl, detail::enable_if_t < (std::is_same<IterImpl, iter_impl>::value || std::is_same<IterImpl, other_iter_impl>::value), std::nullptr_t > = nullptr >
+-    bool operator!=(const IterImpl& other) const
+-    {
+-        return !operator==(other);
+-    }
+-
+-    /*!
+-    @brief comparison: smaller
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    bool operator<(const iter_impl& other) const
+-    {
+-        // if objects are not the same, the comparison is undefined
+-        if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", *m_object));
+-        }
+-
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                JSON_THROW(invalid_iterator::create(213, "cannot compare order of object iterators", *m_object));
+-
+-            case value_t::array:
+-                return (m_it.array_iterator < other.m_it.array_iterator);
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                return (m_it.primitive_iterator < other.m_it.primitive_iterator);
+-        }
+-    }
+-
+-    /*!
+-    @brief comparison: less than or equal
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    bool operator<=(const iter_impl& other) const
+-    {
+-        return !other.operator < (*this);
+-    }
+-
+-    /*!
+-    @brief comparison: greater than
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    bool operator>(const iter_impl& other) const
+-    {
+-        return !operator<=(other);
+-    }
+-
+-    /*!
+-    @brief comparison: greater than or equal
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    bool operator>=(const iter_impl& other) const
+-    {
+-        return !operator<(other);
+-    }
+-
+-    /*!
+-    @brief add to iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl& operator+=(difference_type i)
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                JSON_THROW(invalid_iterator::create(209, "cannot use offsets with object iterators", *m_object));
+-
+-            case value_t::array:
+-            {
+-                std::advance(m_it.array_iterator, i);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                m_it.primitive_iterator += i;
+-                break;
+-            }
+-        }
+-
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief subtract from iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl& operator-=(difference_type i)
+-    {
+-        return operator+=(-i);
+-    }
+-
+-    /*!
+-    @brief add to iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl operator+(difference_type i) const
+-    {
+-        auto result = *this;
+-        result += i;
+-        return result;
+-    }
+-
+-    /*!
+-    @brief addition of distance and iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    friend iter_impl operator+(difference_type i, const iter_impl& it)
+-    {
+-        auto result = it;
+-        result += i;
+-        return result;
+-    }
+-
+-    /*!
+-    @brief subtract from iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl operator-(difference_type i) const
+-    {
+-        auto result = *this;
+-        result -= i;
+-        return result;
+-    }
+-
+-    /*!
+-    @brief return difference
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    difference_type operator-(const iter_impl& other) const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                JSON_THROW(invalid_iterator::create(209, "cannot use offsets with object iterators", *m_object));
+-
+-            case value_t::array:
+-                return m_it.array_iterator - other.m_it.array_iterator;
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                return m_it.primitive_iterator - other.m_it.primitive_iterator;
+-        }
+-    }
+-
+-    /*!
+-    @brief access to successor
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    reference operator[](difference_type n) const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                JSON_THROW(invalid_iterator::create(208, "cannot use operator[] for object iterators", *m_object));
+-
+-            case value_t::array:
+-                return *std::next(m_it.array_iterator, n);
+-
+-            case value_t::null:
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.get_value() == -n))
+-                {
+-                    return *m_object;
+-                }
+-
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief return the key of an object iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    const typename object_t::key_type& key() const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        if (JSON_HEDLEY_LIKELY(m_object->is_object()))
+-        {
+-            return m_it.object_iterator->first;
+-        }
+-
+-        JSON_THROW(invalid_iterator::create(207, "cannot use key() for non-object iterators", *m_object));
+-    }
+-
+-    /*!
+-    @brief return the value of an iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    reference value() const
+-    {
+-        return operator*();
+-    }
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /// associated JSON instance
+-    pointer m_object = nullptr;
+-    /// the actual iterator of the associated instance
+-    internal_iterator<typename std::remove_const<BasicJsonType>::type> m_it {};
+-};
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/iterators/iteration_proxy.hpp>
+-
+-// #include <nlohmann/detail/iterators/json_reverse_iterator.hpp>
+-
+-
+-#include <cstddef> // ptrdiff_t
+-#include <iterator> // reverse_iterator
+-#include <utility> // declval
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-//////////////////////
+-// reverse_iterator //
+-//////////////////////
+-
+-/*!
+-@brief a template for a reverse iterator class
+-
+-@tparam Base the base iterator type to reverse. Valid types are @ref
+-iterator (to create @ref reverse_iterator) and @ref const_iterator (to
+-create @ref const_reverse_iterator).
+-
+-@requirement The class satisfies the following concept requirements:
+--
+-[BidirectionalIterator](https://en.cppreference.com/w/cpp/named_req/BidirectionalIterator):
+-  The iterator that can be moved can be moved in both directions (i.e.
+-  incremented and decremented).
+-- [OutputIterator](https://en.cppreference.com/w/cpp/named_req/OutputIterator):
+-  It is possible to write to the pointed-to element (only if @a Base is
+-  @ref iterator).
+-
+-@since version 1.0.0
+-*/
+-template<typename Base>
+-class json_reverse_iterator : public std::reverse_iterator<Base>
+-{
+-  public:
+-    using difference_type = std::ptrdiff_t;
+-    /// shortcut to the reverse iterator adapter
+-    using base_iterator = std::reverse_iterator<Base>;
+-    /// the reference type for the pointed-to element
+-    using reference = typename Base::reference;
+-
+-    /// create reverse iterator from iterator
+-    explicit json_reverse_iterator(const typename base_iterator::iterator_type& it) noexcept
+-        : base_iterator(it) {}
+-
+-    /// create reverse iterator from base class
+-    explicit json_reverse_iterator(const base_iterator& it) noexcept : base_iterator(it) {}
+-
+-    /// post-increment (it++)
+-    json_reverse_iterator const operator++(int) // NOLINT(readability-const-return-type)
+-    {
+-        return static_cast<json_reverse_iterator>(base_iterator::operator++(1));
+-    }
+-
+-    /// pre-increment (++it)
+-    json_reverse_iterator& operator++()
+-    {
+-        return static_cast<json_reverse_iterator&>(base_iterator::operator++());
+-    }
+-
+-    /// post-decrement (it--)
+-    json_reverse_iterator const operator--(int) // NOLINT(readability-const-return-type)
+-    {
+-        return static_cast<json_reverse_iterator>(base_iterator::operator--(1));
+-    }
+-
+-    /// pre-decrement (--it)
+-    json_reverse_iterator& operator--()
+-    {
+-        return static_cast<json_reverse_iterator&>(base_iterator::operator--());
+-    }
+-
+-    /// add to iterator
+-    json_reverse_iterator& operator+=(difference_type i)
+-    {
+-        return static_cast<json_reverse_iterator&>(base_iterator::operator+=(i));
+-    }
+-
+-    /// add to iterator
+-    json_reverse_iterator operator+(difference_type i) const
+-    {
+-        return static_cast<json_reverse_iterator>(base_iterator::operator+(i));
+-    }
+-
+-    /// subtract from iterator
+-    json_reverse_iterator operator-(difference_type i) const
+-    {
+-        return static_cast<json_reverse_iterator>(base_iterator::operator-(i));
+-    }
+-
+-    /// return difference
+-    difference_type operator-(const json_reverse_iterator& other) const
+-    {
+-        return base_iterator(*this) - base_iterator(other);
+-    }
+-
+-    /// access to successor
+-    reference operator[](difference_type n) const
+-    {
+-        return *(this->operator+(n));
+-    }
+-
+-    /// return the key of an object iterator
+-    auto key() const -> decltype(std::declval<Base>().key())
+-    {
+-        auto it = --this->base();
+-        return it.key();
+-    }
+-
+-    /// return the value of an iterator
+-    reference value() const
+-    {
+-        auto it = --this->base();
+-        return it.operator * ();
+-    }
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/iterators/primitive_iterator.hpp>
+-
+-// #include <nlohmann/detail/json_pointer.hpp>
+-
+-
+-#include <algorithm> // all_of
+-#include <cctype> // isdigit
+-#include <limits> // max
+-#include <numeric> // accumulate
+-#include <string> // string
+-#include <utility> // move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/string_escape.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-
+-/// @brief JSON Pointer defines a string syntax for identifying a specific value within a JSON document
+-/// @sa https://json.nlohmann.me/api/json_pointer/
+-template<typename BasicJsonType>
+-class json_pointer
+-{
+-    // allow basic_json to access private members
+-    NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-    friend class basic_json;
+-
+-  public:
+-    /// @brief create JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/json_pointer/
+-    explicit json_pointer(const std::string& s = "")
+-        : reference_tokens(split(s))
+-    {}
+-
+-    /// @brief return a string representation of the JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/to_string/
+-    std::string to_string() const
+-    {
+-        return std::accumulate(reference_tokens.begin(), reference_tokens.end(),
+-                               std::string{},
+-                               [](const std::string & a, const std::string & b)
+-        {
+-            return a + "/" + detail::escape(b);
+-        });
+-    }
+-
+-    /// @brief return a string representation of the JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_string/
+-    operator std::string() const
+-    {
+-        return to_string();
+-    }
+-
+-    /// @brief append another JSON pointer at the end of this JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slasheq/
+-    json_pointer& operator/=(const json_pointer& ptr)
+-    {
+-        reference_tokens.insert(reference_tokens.end(),
+-                                ptr.reference_tokens.begin(),
+-                                ptr.reference_tokens.end());
+-        return *this;
+-    }
+-
+-    /// @brief append an unescaped reference token at the end of this JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slasheq/
+-    json_pointer& operator/=(std::string token)
+-    {
+-        push_back(std::move(token));
+-        return *this;
+-    }
+-
+-    /// @brief append an array index at the end of this JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slasheq/
+-    json_pointer& operator/=(std::size_t array_idx)
+-    {
+-        return *this /= std::to_string(array_idx);
+-    }
+-
+-    /// @brief create a new JSON pointer by appending the right JSON pointer at the end of the left JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slash/
+-    friend json_pointer operator/(const json_pointer& lhs,
+-                                  const json_pointer& rhs)
+-    {
+-        return json_pointer(lhs) /= rhs;
+-    }
+-
+-    /// @brief create a new JSON pointer by appending the unescaped token at the end of the JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slash/
+-    friend json_pointer operator/(const json_pointer& lhs, std::string token) // NOLINT(performance-unnecessary-value-param)
+-    {
+-        return json_pointer(lhs) /= std::move(token);
+-    }
+-
+-    /// @brief create a new JSON pointer by appending the array-index-token at the end of the JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slash/
+-    friend json_pointer operator/(const json_pointer& lhs, std::size_t array_idx)
+-    {
+-        return json_pointer(lhs) /= array_idx;
+-    }
+-
+-    /// @brief returns the parent of this JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/parent_pointer/
+-    json_pointer parent_pointer() const
+-    {
+-        if (empty())
+-        {
+-            return *this;
+-        }
+-
+-        json_pointer res = *this;
+-        res.pop_back();
+-        return res;
+-    }
+-
+-    /// @brief remove last reference token
+-    /// @sa https://json.nlohmann.me/api/json_pointer/pop_back/
+-    void pop_back()
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(empty()))
+-        {
+-            JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", BasicJsonType()));
+-        }
+-
+-        reference_tokens.pop_back();
+-    }
+-
+-    /// @brief return last reference token
+-    /// @sa https://json.nlohmann.me/api/json_pointer/back/
+-    const std::string& back() const
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(empty()))
+-        {
+-            JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", BasicJsonType()));
+-        }
+-
+-        return reference_tokens.back();
+-    }
+-
+-    /// @brief append an unescaped token at the end of the reference pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/push_back/
+-    void push_back(const std::string& token)
+-    {
+-        reference_tokens.push_back(token);
+-    }
+-
+-    /// @brief append an unescaped token at the end of the reference pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/push_back/
+-    void push_back(std::string&& token)
+-    {
+-        reference_tokens.push_back(std::move(token));
+-    }
+-
+-    /// @brief return whether pointer points to the root document
+-    /// @sa https://json.nlohmann.me/api/json_pointer/empty/
+-    bool empty() const noexcept
+-    {
+-        return reference_tokens.empty();
+-    }
+-
+-  private:
+-    /*!
+-    @param[in] s  reference token to be converted into an array index
+-
+-    @return integer representation of @a s
+-
+-    @throw parse_error.106  if an array index begins with '0'
+-    @throw parse_error.109  if an array index begins not with a digit
+-    @throw out_of_range.404 if string @a s could not be converted to an integer
+-    @throw out_of_range.410 if an array index exceeds size_type
+-    */
+-    static typename BasicJsonType::size_type array_index(const std::string& s)
+-    {
+-        using size_type = typename BasicJsonType::size_type;
+-
+-        // error condition (cf. RFC 6901, Sect. 4)
+-        if (JSON_HEDLEY_UNLIKELY(s.size() > 1 && s[0] == '0'))
+-        {
+-            JSON_THROW(detail::parse_error::create(106, 0, "array index '" + s + "' must not begin with '0'", BasicJsonType()));
+-        }
+-
+-        // error condition (cf. RFC 6901, Sect. 4)
+-        if (JSON_HEDLEY_UNLIKELY(s.size() > 1 && !(s[0] >= '1' && s[0] <= '9')))
+-        {
+-            JSON_THROW(detail::parse_error::create(109, 0, "array index '" + s + "' is not a number", BasicJsonType()));
+-        }
+-
+-        std::size_t processed_chars = 0;
+-        unsigned long long res = 0;  // NOLINT(runtime/int)
+-        JSON_TRY
+-        {
+-            res = std::stoull(s, &processed_chars);
+-        }
+-        JSON_CATCH(std::out_of_range&)
+-        {
+-            JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + s + "'", BasicJsonType()));
+-        }
+-
+-        // check if the string was completely read
+-        if (JSON_HEDLEY_UNLIKELY(processed_chars != s.size()))
+-        {
+-            JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + s + "'", BasicJsonType()));
+-        }
+-
+-        // only triggered on special platforms (like 32bit), see also
+-        // https://github.com/nlohmann/json/pull/2203
+-        if (res >= static_cast<unsigned long long>((std::numeric_limits<size_type>::max)()))  // NOLINT(runtime/int)
+-        {
+-            JSON_THROW(detail::out_of_range::create(410, "array index " + s + " exceeds size_type", BasicJsonType())); // LCOV_EXCL_LINE
+-        }
+-
+-        return static_cast<size_type>(res);
+-    }
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    json_pointer top() const
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(empty()))
+-        {
+-            JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", BasicJsonType()));
+-        }
+-
+-        json_pointer result = *this;
+-        result.reference_tokens = {reference_tokens[0]};
+-        return result;
+-    }
+-
+-  private:
+-    /*!
+-    @brief create and return a reference to the pointed to value
+-
+-    @complexity Linear in the number of reference tokens.
+-
+-    @throw parse_error.109 if array index is not a number
+-    @throw type_error.313 if value cannot be unflattened
+-    */
+-    BasicJsonType& get_and_create(BasicJsonType& j) const
+-    {
+-        auto* result = &j;
+-
+-        // in case no reference tokens exist, return a reference to the JSON value
+-        // j which will be overwritten by a primitive value
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (result->type())
+-            {
+-                case detail::value_t::null:
+-                {
+-                    if (reference_token == "0")
+-                    {
+-                        // start a new array if reference token is 0
+-                        result = &result->operator[](0);
+-                    }
+-                    else
+-                    {
+-                        // start a new object otherwise
+-                        result = &result->operator[](reference_token);
+-                    }
+-                    break;
+-                }
+-
+-                case detail::value_t::object:
+-                {
+-                    // create an entry in the object
+-                    result = &result->operator[](reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    // create an entry in the array
+-                    result = &result->operator[](array_index(reference_token));
+-                    break;
+-                }
+-
+-                /*
+-                The following code is only reached if there exists a reference
+-                token _and_ the current value is primitive. In this case, we have
+-                an error situation, because primitive values may only occur as
+-                single value; that is, with an empty list of reference tokens.
+-                */
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::type_error::create(313, "invalid value to unflatten", j));
+-            }
+-        }
+-
+-        return *result;
+-    }
+-
+-    /*!
+-    @brief return a reference to the pointed to value
+-
+-    @note This version does not throw if a value is not present, but tries to
+-          create nested values instead. For instance, calling this function
+-          with pointer `"/this/that"` on a null value is equivalent to calling
+-          `operator[]("this").operator[]("that")` on that value, effectively
+-          changing the null value to an object.
+-
+-    @param[in] ptr  a JSON value
+-
+-    @return reference to the JSON value pointed to by the JSON pointer
+-
+-    @complexity Linear in the length of the JSON pointer.
+-
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    @throw out_of_range.404  if the JSON pointer can not be resolved
+-    */
+-    BasicJsonType& get_unchecked(BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            // convert null values to arrays or objects before continuing
+-            if (ptr->is_null())
+-            {
+-                // check if reference token is a number
+-                const bool nums =
+-                    std::all_of(reference_token.begin(), reference_token.end(),
+-                                [](const unsigned char x)
+-                {
+-                    return std::isdigit(x);
+-                });
+-
+-                // change value to array for numbers or "-" or to object otherwise
+-                *ptr = (nums || reference_token == "-")
+-                       ? detail::value_t::array
+-                       : detail::value_t::object;
+-            }
+-
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    // use unchecked object access
+-                    ptr = &ptr->operator[](reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (reference_token == "-")
+-                    {
+-                        // explicitly treat "-" as index beyond the end
+-                        ptr = &ptr->operator[](ptr->m_value.array->size());
+-                    }
+-                    else
+-                    {
+-                        // convert array index to number; unchecked access
+-                        ptr = &ptr->operator[](array_index(reference_token));
+-                    }
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'", *ptr));
+-            }
+-        }
+-
+-        return *ptr;
+-    }
+-
+-    /*!
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    @throw out_of_range.402  if the array index '-' is used
+-    @throw out_of_range.404  if the JSON pointer can not be resolved
+-    */
+-    BasicJsonType& get_checked(BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    // note: at performs range check
+-                    ptr = &ptr->at(reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
+-                    {
+-                        // "-" always fails the range check
+-                        JSON_THROW(detail::out_of_range::create(402,
+-                                                                "array index '-' (" + std::to_string(ptr->m_value.array->size()) +
+-                                                                ") is out of range", *ptr));
+-                    }
+-
+-                    // note: at performs range check
+-                    ptr = &ptr->at(array_index(reference_token));
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'", *ptr));
+-            }
+-        }
+-
+-        return *ptr;
+-    }
+-
+-    /*!
+-    @brief return a const reference to the pointed to value
+-
+-    @param[in] ptr  a JSON value
+-
+-    @return const reference to the JSON value pointed to by the JSON
+-    pointer
+-
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    @throw out_of_range.402  if the array index '-' is used
+-    @throw out_of_range.404  if the JSON pointer can not be resolved
+-    */
+-    const BasicJsonType& get_unchecked(const BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    // use unchecked object access
+-                    ptr = &ptr->operator[](reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
+-                    {
+-                        // "-" cannot be used for const access
+-                        JSON_THROW(detail::out_of_range::create(402, "array index '-' (" + std::to_string(ptr->m_value.array->size()) + ") is out of range", *ptr));
+-                    }
+-
+-                    // use unchecked array access
+-                    ptr = &ptr->operator[](array_index(reference_token));
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'", *ptr));
+-            }
+-        }
+-
+-        return *ptr;
+-    }
+-
+-    /*!
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    @throw out_of_range.402  if the array index '-' is used
+-    @throw out_of_range.404  if the JSON pointer can not be resolved
+-    */
+-    const BasicJsonType& get_checked(const BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    // note: at performs range check
+-                    ptr = &ptr->at(reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
+-                    {
+-                        // "-" always fails the range check
+-                        JSON_THROW(detail::out_of_range::create(402,
+-                                                                "array index '-' (" + std::to_string(ptr->m_value.array->size()) +
+-                                                                ") is out of range", *ptr));
+-                    }
+-
+-                    // note: at performs range check
+-                    ptr = &ptr->at(array_index(reference_token));
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'", *ptr));
+-            }
+-        }
+-
+-        return *ptr;
+-    }
+-
+-    /*!
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    */
+-    bool contains(const BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    if (!ptr->contains(reference_token))
+-                    {
+-                        // we did not find the key in the object
+-                        return false;
+-                    }
+-
+-                    ptr = &ptr->operator[](reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
+-                    {
+-                        // "-" always fails the range check
+-                        return false;
+-                    }
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token.size() == 1 && !("0" <= reference_token && reference_token <= "9")))
+-                    {
+-                        // invalid char
+-                        return false;
+-                    }
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token.size() > 1))
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!('1' <= reference_token[0] && reference_token[0] <= '9')))
+-                        {
+-                            // first char should be between '1' and '9'
+-                            return false;
+-                        }
+-                        for (std::size_t i = 1; i < reference_token.size(); i++)
+-                        {
+-                            if (JSON_HEDLEY_UNLIKELY(!('0' <= reference_token[i] && reference_token[i] <= '9')))
+-                            {
+-                                // other char should be between '0' and '9'
+-                                return false;
+-                            }
+-                        }
+-                    }
+-
+-                    const auto idx = array_index(reference_token);
+-                    if (idx >= ptr->size())
+-                    {
+-                        // index out of range
+-                        return false;
+-                    }
+-
+-                    ptr = &ptr->operator[](idx);
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                {
+-                    // we do not expect primitive values if there is still a
+-                    // reference token to process
+-                    return false;
+-                }
+-            }
+-        }
+-
+-        // no reference token left means we found a primitive value
+-        return true;
+-    }
+-
+-    /*!
+-    @brief split the string input to reference tokens
+-
+-    @note This function is only called by the json_pointer constructor.
+-          All exceptions below are documented there.
+-
+-    @throw parse_error.107  if the pointer is not empty or begins with '/'
+-    @throw parse_error.108  if character '~' is not followed by '0' or '1'
+-    */
+-    static std::vector<std::string> split(const std::string& reference_string)
+-    {
+-        std::vector<std::string> result;
+-
+-        // special case: empty reference string -> no reference tokens
+-        if (reference_string.empty())
+-        {
+-            return result;
+-        }
+-
+-        // check if nonempty reference string begins with slash
+-        if (JSON_HEDLEY_UNLIKELY(reference_string[0] != '/'))
+-        {
+-            JSON_THROW(detail::parse_error::create(107, 1, "JSON pointer must be empty or begin with '/' - was: '" + reference_string + "'", BasicJsonType()));
+-        }
+-
+-        // extract the reference tokens:
+-        // - slash: position of the last read slash (or end of string)
+-        // - start: position after the previous slash
+-        for (
+-            // search for the first slash after the first character
+-            std::size_t slash = reference_string.find_first_of('/', 1),
+-            // set the beginning of the first reference token
+-            start = 1;
+-            // we can stop if start == 0 (if slash == std::string::npos)
+-            start != 0;
+-            // set the beginning of the next reference token
+-            // (will eventually be 0 if slash == std::string::npos)
+-            start = (slash == std::string::npos) ? 0 : slash + 1,
+-            // find next slash
+-            slash = reference_string.find_first_of('/', start))
+-        {
+-            // use the text between the beginning of the reference token
+-            // (start) and the last slash (slash).
+-            auto reference_token = reference_string.substr(start, slash - start);
+-
+-            // check reference tokens are properly escaped
+-            for (std::size_t pos = reference_token.find_first_of('~');
+-                    pos != std::string::npos;
+-                    pos = reference_token.find_first_of('~', pos + 1))
+-            {
+-                JSON_ASSERT(reference_token[pos] == '~');
+-
+-                // ~ must be followed by 0 or 1
+-                if (JSON_HEDLEY_UNLIKELY(pos == reference_token.size() - 1 ||
+-                                         (reference_token[pos + 1] != '0' &&
+-                                          reference_token[pos + 1] != '1')))
+-                {
+-                    JSON_THROW(detail::parse_error::create(108, 0, "escape character '~' must be followed with '0' or '1'", BasicJsonType()));
+-                }
+-            }
+-
+-            // finally, store the reference token
+-            detail::unescape(reference_token);
+-            result.push_back(reference_token);
+-        }
+-
+-        return result;
+-    }
+-
+-  private:
+-    /*!
+-    @param[in] reference_string  the reference string to the current value
+-    @param[in] value             the value to consider
+-    @param[in,out] result        the result object to insert values to
+-
+-    @note Empty objects or arrays are flattened to `null`.
+-    */
+-    static void flatten(const std::string& reference_string,
+-                        const BasicJsonType& value,
+-                        BasicJsonType& result)
+-    {
+-        switch (value.type())
+-        {
+-            case detail::value_t::array:
+-            {
+-                if (value.m_value.array->empty())
+-                {
+-                    // flatten empty array as null
+-                    result[reference_string] = nullptr;
+-                }
+-                else
+-                {
+-                    // iterate array and use index as reference string
+-                    for (std::size_t i = 0; i < value.m_value.array->size(); ++i)
+-                    {
+-                        flatten(reference_string + "/" + std::to_string(i),
+-                                value.m_value.array->operator[](i), result);
+-                    }
+-                }
+-                break;
+-            }
+-
+-            case detail::value_t::object:
+-            {
+-                if (value.m_value.object->empty())
+-                {
+-                    // flatten empty object as null
+-                    result[reference_string] = nullptr;
+-                }
+-                else
+-                {
+-                    // iterate object and use keys as reference string
+-                    for (const auto& element : *value.m_value.object)
+-                    {
+-                        flatten(reference_string + "/" + detail::escape(element.first), element.second, result);
+-                    }
+-                }
+-                break;
+-            }
+-
+-            case detail::value_t::null:
+-            case detail::value_t::string:
+-            case detail::value_t::boolean:
+-            case detail::value_t::number_integer:
+-            case detail::value_t::number_unsigned:
+-            case detail::value_t::number_float:
+-            case detail::value_t::binary:
+-            case detail::value_t::discarded:
+-            default:
+-            {
+-                // add primitive value with its reference string
+-                result[reference_string] = value;
+-                break;
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @param[in] value  flattened JSON
+-
+-    @return unflattened JSON
+-
+-    @throw parse_error.109 if array index is not a number
+-    @throw type_error.314  if value is not an object
+-    @throw type_error.315  if object values are not primitive
+-    @throw type_error.313  if value cannot be unflattened
+-    */
+-    static BasicJsonType
+-    unflatten(const BasicJsonType& value)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!value.is_object()))
+-        {
+-            JSON_THROW(detail::type_error::create(314, "only objects can be unflattened", value));
+-        }
+-
+-        BasicJsonType result;
+-
+-        // iterate the JSON object values
+-        for (const auto& element : *value.m_value.object)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!element.second.is_primitive()))
+-            {
+-                JSON_THROW(detail::type_error::create(315, "values in object must be primitive", element.second));
+-            }
+-
+-            // assign value to reference pointed to by JSON pointer; Note that if
+-            // the JSON pointer is "" (i.e., points to the whole value), function
+-            // get_and_create returns a reference to result itself. An assignment
+-            // will then create a primitive value.
+-            json_pointer(element.first).get_and_create(result) = element.second;
+-        }
+-
+-        return result;
+-    }
+-
+-    /*!
+-    @brief compares two JSON pointers for equality
+-
+-    @param[in] lhs  JSON pointer to compare
+-    @param[in] rhs  JSON pointer to compare
+-    @return whether @a lhs is equal to @a rhs
+-
+-    @complexity Linear in the length of the JSON pointer
+-
+-    @exceptionsafety No-throw guarantee: this function never throws exceptions.
+-    */
+-    friend bool operator==(json_pointer const& lhs,
+-                           json_pointer const& rhs) noexcept
+-    {
+-        return lhs.reference_tokens == rhs.reference_tokens;
+-    }
+-
+-    /*!
+-    @brief compares two JSON pointers for inequality
+-
+-    @param[in] lhs  JSON pointer to compare
+-    @param[in] rhs  JSON pointer to compare
+-    @return whether @a lhs is not equal @a rhs
+-
+-    @complexity Linear in the length of the JSON pointer
+-
+-    @exceptionsafety No-throw guarantee: this function never throws exceptions.
+-    */
+-    friend bool operator!=(json_pointer const& lhs,
+-                           json_pointer const& rhs) noexcept
+-    {
+-        return !(lhs == rhs);
+-    }
+-
+-    /// the reference tokens
+-    std::vector<std::string> reference_tokens;
+-};
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/json_ref.hpp>
+-
+-
+-#include <initializer_list>
+-#include <utility>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename BasicJsonType>
+-class json_ref
+-{
+-  public:
+-    using value_type = BasicJsonType;
+-
+-    json_ref(value_type&& value)
+-        : owned_value(std::move(value))
+-    {}
+-
+-    json_ref(const value_type& value)
+-        : value_ref(&value)
+-    {}
+-
+-    json_ref(std::initializer_list<json_ref> init)
+-        : owned_value(init)
+-    {}
+-
+-    template <
+-        class... Args,
+-        enable_if_t<std::is_constructible<value_type, Args...>::value, int> = 0 >
+-    json_ref(Args && ... args)
+-        : owned_value(std::forward<Args>(args)...)
+-    {}
+-
+-    // class should be movable only
+-    json_ref(json_ref&&) noexcept = default;
+-    json_ref(const json_ref&) = delete;
+-    json_ref& operator=(const json_ref&) = delete;
+-    json_ref& operator=(json_ref&&) = delete;
+-    ~json_ref() = default;
+-
+-    value_type moved_or_copied() const
+-    {
+-        if (value_ref == nullptr)
+-        {
+-            return std::move(owned_value);
+-        }
+-        return *value_ref;
+-    }
+-
+-    value_type const& operator*() const
+-    {
+-        return value_ref ? *value_ref : owned_value;
+-    }
+-
+-    value_type const* operator->() const
+-    {
+-        return &** this;
+-    }
+-
+-  private:
+-    mutable value_type owned_value = nullptr;
+-    value_type const* value_ref = nullptr;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/string_escape.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/output/binary_writer.hpp>
+-
+-
+-#include <algorithm> // reverse
+-#include <array> // array
+-#include <cmath> // isnan, isinf
+-#include <cstdint> // uint8_t, uint16_t, uint32_t, uint64_t
+-#include <cstring> // memcpy
+-#include <limits> // numeric_limits
+-#include <string> // string
+-#include <utility> // move
+-
+-// #include <nlohmann/detail/input/binary_reader.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/output/output_adapters.hpp>
+-
+-
+-#include <algorithm> // copy
+-#include <cstddef> // size_t
+-#include <iterator> // back_inserter
+-#include <memory> // shared_ptr, make_shared
+-#include <string> // basic_string
+-#include <vector> // vector
+-
+-#ifndef JSON_NO_IO
+-    #include <ios>      // streamsize
+-    #include <ostream>  // basic_ostream
+-#endif  // JSON_NO_IO
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/// abstract output adapter interface
+-template<typename CharType> struct output_adapter_protocol
+-{
+-    virtual void write_character(CharType c) = 0;
+-    virtual void write_characters(const CharType* s, std::size_t length) = 0;
+-    virtual ~output_adapter_protocol() = default;
+-
+-    output_adapter_protocol() = default;
+-    output_adapter_protocol(const output_adapter_protocol&) = default;
+-    output_adapter_protocol(output_adapter_protocol&&) noexcept = default;
+-    output_adapter_protocol& operator=(const output_adapter_protocol&) = default;
+-    output_adapter_protocol& operator=(output_adapter_protocol&&) noexcept = default;
+-};
+-
+-/// a type to simplify interfaces
+-template<typename CharType>
+-using output_adapter_t = std::shared_ptr<output_adapter_protocol<CharType>>;
+-
+-/// output adapter for byte vectors
+-template<typename CharType, typename AllocatorType = std::allocator<CharType>>
+-class output_vector_adapter : public output_adapter_protocol<CharType>
+-{
+-  public:
+-    explicit output_vector_adapter(std::vector<CharType, AllocatorType>& vec) noexcept
+-        : v(vec)
+-    {}
+-
+-    void write_character(CharType c) override
+-    {
+-        v.push_back(c);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    void write_characters(const CharType* s, std::size_t length) override
+-    {
+-        std::copy(s, s + length, std::back_inserter(v));
+-    }
+-
+-  private:
+-    std::vector<CharType, AllocatorType>& v;
+-};
+-
+-#ifndef JSON_NO_IO
+-/// output adapter for output streams
+-template<typename CharType>
+-class output_stream_adapter : public output_adapter_protocol<CharType>
+-{
+-  public:
+-    explicit output_stream_adapter(std::basic_ostream<CharType>& s) noexcept
+-        : stream(s)
+-    {}
+-
+-    void write_character(CharType c) override
+-    {
+-        stream.put(c);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    void write_characters(const CharType* s, std::size_t length) override
+-    {
+-        stream.write(s, static_cast<std::streamsize>(length));
+-    }
+-
+-  private:
+-    std::basic_ostream<CharType>& stream;
+-};
+-#endif  // JSON_NO_IO
+-
+-/// output adapter for basic_string
+-template<typename CharType, typename StringType = std::basic_string<CharType>>
+-class output_string_adapter : public output_adapter_protocol<CharType>
+-{
+-  public:
+-    explicit output_string_adapter(StringType& s) noexcept
+-        : str(s)
+-    {}
+-
+-    void write_character(CharType c) override
+-    {
+-        str.push_back(c);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    void write_characters(const CharType* s, std::size_t length) override
+-    {
+-        str.append(s, length);
+-    }
+-
+-  private:
+-    StringType& str;
+-};
+-
+-template<typename CharType, typename StringType = std::basic_string<CharType>>
+-class output_adapter
+-{
+-  public:
+-    template<typename AllocatorType = std::allocator<CharType>>
+-    output_adapter(std::vector<CharType, AllocatorType>& vec)
+-        : oa(std::make_shared<output_vector_adapter<CharType, AllocatorType>>(vec)) {}
+-
+-#ifndef JSON_NO_IO
+-    output_adapter(std::basic_ostream<CharType>& s)
+-        : oa(std::make_shared<output_stream_adapter<CharType>>(s)) {}
+-#endif  // JSON_NO_IO
+-
+-    output_adapter(StringType& s)
+-        : oa(std::make_shared<output_string_adapter<CharType, StringType>>(s)) {}
+-
+-    operator output_adapter_t<CharType>()
+-    {
+-        return oa;
+-    }
+-
+-  private:
+-    output_adapter_t<CharType> oa = nullptr;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-///////////////////
+-// binary writer //
+-///////////////////
+-
+-/*!
+-@brief serialization to CBOR and MessagePack values
+-*/
+-template<typename BasicJsonType, typename CharType>
+-class binary_writer
+-{
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-
+-  public:
+-    /*!
+-    @brief create a binary writer
+-
+-    @param[in] adapter  output adapter to write to
+-    */
+-    explicit binary_writer(output_adapter_t<CharType> adapter) : oa(std::move(adapter))
+-    {
+-        JSON_ASSERT(oa);
+-    }
+-
+-    /*!
+-    @param[in] j  JSON value to serialize
+-    @pre       j.type() == value_t::object
+-    */
+-    void write_bson(const BasicJsonType& j)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::object:
+-            {
+-                write_bson_object(*j.m_value.object);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::array:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                JSON_THROW(type_error::create(317, "to serialize to BSON, top-level type must be object, but is " + std::string(j.type_name()), j));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @param[in] j  JSON value to serialize
+-    */
+-    void write_cbor(const BasicJsonType& j)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::null:
+-            {
+-                oa->write_character(to_char_type(0xF6));
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                oa->write_character(j.m_value.boolean
+-                                    ? to_char_type(0xF5)
+-                                    : to_char_type(0xF4));
+-                break;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                if (j.m_value.number_integer >= 0)
+-                {
+-                    // CBOR does not differentiate between positive signed
+-                    // integers and unsigned integers. Therefore, we used the
+-                    // code from the value_t::number_unsigned case here.
+-                    if (j.m_value.number_integer <= 0x17)
+-                    {
+-                        write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer <= (std::numeric_limits<std::uint8_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x18));
+-                        write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer <= (std::numeric_limits<std::uint16_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x19));
+-                        write_number(static_cast<std::uint16_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer <= (std::numeric_limits<std::uint32_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x1A));
+-                        write_number(static_cast<std::uint32_t>(j.m_value.number_integer));
+-                    }
+-                    else
+-                    {
+-                        oa->write_character(to_char_type(0x1B));
+-                        write_number(static_cast<std::uint64_t>(j.m_value.number_integer));
+-                    }
+-                }
+-                else
+-                {
+-                    // The conversions below encode the sign in the first
+-                    // byte, and the value is converted to a positive number.
+-                    const auto positive_number = -1 - j.m_value.number_integer;
+-                    if (j.m_value.number_integer >= -24)
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0x20 + positive_number));
+-                    }
+-                    else if (positive_number <= (std::numeric_limits<std::uint8_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x38));
+-                        write_number(static_cast<std::uint8_t>(positive_number));
+-                    }
+-                    else if (positive_number <= (std::numeric_limits<std::uint16_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x39));
+-                        write_number(static_cast<std::uint16_t>(positive_number));
+-                    }
+-                    else if (positive_number <= (std::numeric_limits<std::uint32_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x3A));
+-                        write_number(static_cast<std::uint32_t>(positive_number));
+-                    }
+-                    else
+-                    {
+-                        oa->write_character(to_char_type(0x3B));
+-                        write_number(static_cast<std::uint64_t>(positive_number));
+-                    }
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                if (j.m_value.number_unsigned <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(j.m_value.number_unsigned));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x18));
+-                    write_number(static_cast<std::uint8_t>(j.m_value.number_unsigned));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x19));
+-                    write_number(static_cast<std::uint16_t>(j.m_value.number_unsigned));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x1A));
+-                    write_number(static_cast<std::uint32_t>(j.m_value.number_unsigned));
+-                }
+-                else
+-                {
+-                    oa->write_character(to_char_type(0x1B));
+-                    write_number(static_cast<std::uint64_t>(j.m_value.number_unsigned));
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                if (std::isnan(j.m_value.number_float))
+-                {
+-                    // NaN is 0xf97e00 in CBOR
+-                    oa->write_character(to_char_type(0xF9));
+-                    oa->write_character(to_char_type(0x7E));
+-                    oa->write_character(to_char_type(0x00));
+-                }
+-                else if (std::isinf(j.m_value.number_float))
+-                {
+-                    // Infinity is 0xf97c00, -Infinity is 0xf9fc00
+-                    oa->write_character(to_char_type(0xf9));
+-                    oa->write_character(j.m_value.number_float > 0 ? to_char_type(0x7C) : to_char_type(0xFC));
+-                    oa->write_character(to_char_type(0x00));
+-                }
+-                else
+-                {
+-                    write_compact_float(j.m_value.number_float, detail::input_format_t::cbor);
+-                }
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                // step 1: write control byte and the string length
+-                const auto N = j.m_value.string->size();
+-                if (N <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(0x60 + N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x78));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x79));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x7A));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-                // LCOV_EXCL_START
+-                else if (N <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x7B));
+-                    write_number(static_cast<std::uint64_t>(N));
+-                }
+-                // LCOV_EXCL_STOP
+-
+-                // step 2: write the string
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.string->c_str()),
+-                    j.m_value.string->size());
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                // step 1: write control byte and the array size
+-                const auto N = j.m_value.array->size();
+-                if (N <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(0x80 + N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x98));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x99));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x9A));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-                // LCOV_EXCL_START
+-                else if (N <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x9B));
+-                    write_number(static_cast<std::uint64_t>(N));
+-                }
+-                // LCOV_EXCL_STOP
+-
+-                // step 2: write each element
+-                for (const auto& el : *j.m_value.array)
+-                {
+-                    write_cbor(el);
+-                }
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                if (j.m_value.binary->has_subtype())
+-                {
+-                    if (j.m_value.binary->subtype() <= (std::numeric_limits<std::uint8_t>::max)())
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0xd8));
+-                        write_number(static_cast<std::uint8_t>(j.m_value.binary->subtype()));
+-                    }
+-                    else if (j.m_value.binary->subtype() <= (std::numeric_limits<std::uint16_t>::max)())
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0xd9));
+-                        write_number(static_cast<std::uint16_t>(j.m_value.binary->subtype()));
+-                    }
+-                    else if (j.m_value.binary->subtype() <= (std::numeric_limits<std::uint32_t>::max)())
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0xda));
+-                        write_number(static_cast<std::uint32_t>(j.m_value.binary->subtype()));
+-                    }
+-                    else if (j.m_value.binary->subtype() <= (std::numeric_limits<std::uint64_t>::max)())
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0xdb));
+-                        write_number(static_cast<std::uint64_t>(j.m_value.binary->subtype()));
+-                    }
+-                }
+-
+-                // step 1: write control byte and the binary array size
+-                const auto N = j.m_value.binary->size();
+-                if (N <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(0x40 + N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x58));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x59));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x5A));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-                // LCOV_EXCL_START
+-                else if (N <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x5B));
+-                    write_number(static_cast<std::uint64_t>(N));
+-                }
+-                // LCOV_EXCL_STOP
+-
+-                // step 2: write each element
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.binary->data()),
+-                    N);
+-
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                // step 1: write control byte and the object size
+-                const auto N = j.m_value.object->size();
+-                if (N <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(0xA0 + N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0xB8));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0xB9));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0xBA));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-                // LCOV_EXCL_START
+-                else if (N <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0xBB));
+-                    write_number(static_cast<std::uint64_t>(N));
+-                }
+-                // LCOV_EXCL_STOP
+-
+-                // step 2: write each element
+-                for (const auto& el : *j.m_value.object)
+-                {
+-                    write_cbor(el.first);
+-                    write_cbor(el.second);
+-                }
+-                break;
+-            }
+-
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-    }
+-
+-    /*!
+-    @param[in] j  JSON value to serialize
+-    */
+-    void write_msgpack(const BasicJsonType& j)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::null: // nil
+-            {
+-                oa->write_character(to_char_type(0xC0));
+-                break;
+-            }
+-
+-            case value_t::boolean: // true and false
+-            {
+-                oa->write_character(j.m_value.boolean
+-                                    ? to_char_type(0xC3)
+-                                    : to_char_type(0xC2));
+-                break;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                if (j.m_value.number_integer >= 0)
+-                {
+-                    // MessagePack does not differentiate between positive
+-                    // signed integers and unsigned integers. Therefore, we used
+-                    // the code from the value_t::number_unsigned case here.
+-                    if (j.m_value.number_unsigned < 128)
+-                    {
+-                        // positive fixnum
+-                        write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint8_t>::max)())
+-                    {
+-                        // uint 8
+-                        oa->write_character(to_char_type(0xCC));
+-                        write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint16_t>::max)())
+-                    {
+-                        // uint 16
+-                        oa->write_character(to_char_type(0xCD));
+-                        write_number(static_cast<std::uint16_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint32_t>::max)())
+-                    {
+-                        // uint 32
+-                        oa->write_character(to_char_type(0xCE));
+-                        write_number(static_cast<std::uint32_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint64_t>::max)())
+-                    {
+-                        // uint 64
+-                        oa->write_character(to_char_type(0xCF));
+-                        write_number(static_cast<std::uint64_t>(j.m_value.number_integer));
+-                    }
+-                }
+-                else
+-                {
+-                    if (j.m_value.number_integer >= -32)
+-                    {
+-                        // negative fixnum
+-                        write_number(static_cast<std::int8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer >= (std::numeric_limits<std::int8_t>::min)() &&
+-                             j.m_value.number_integer <= (std::numeric_limits<std::int8_t>::max)())
+-                    {
+-                        // int 8
+-                        oa->write_character(to_char_type(0xD0));
+-                        write_number(static_cast<std::int8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer >= (std::numeric_limits<std::int16_t>::min)() &&
+-                             j.m_value.number_integer <= (std::numeric_limits<std::int16_t>::max)())
+-                    {
+-                        // int 16
+-                        oa->write_character(to_char_type(0xD1));
+-                        write_number(static_cast<std::int16_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer >= (std::numeric_limits<std::int32_t>::min)() &&
+-                             j.m_value.number_integer <= (std::numeric_limits<std::int32_t>::max)())
+-                    {
+-                        // int 32
+-                        oa->write_character(to_char_type(0xD2));
+-                        write_number(static_cast<std::int32_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer >= (std::numeric_limits<std::int64_t>::min)() &&
+-                             j.m_value.number_integer <= (std::numeric_limits<std::int64_t>::max)())
+-                    {
+-                        // int 64
+-                        oa->write_character(to_char_type(0xD3));
+-                        write_number(static_cast<std::int64_t>(j.m_value.number_integer));
+-                    }
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                if (j.m_value.number_unsigned < 128)
+-                {
+-                    // positive fixnum
+-                    write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    // uint 8
+-                    oa->write_character(to_char_type(0xCC));
+-                    write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    // uint 16
+-                    oa->write_character(to_char_type(0xCD));
+-                    write_number(static_cast<std::uint16_t>(j.m_value.number_integer));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    // uint 32
+-                    oa->write_character(to_char_type(0xCE));
+-                    write_number(static_cast<std::uint32_t>(j.m_value.number_integer));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    // uint 64
+-                    oa->write_character(to_char_type(0xCF));
+-                    write_number(static_cast<std::uint64_t>(j.m_value.number_integer));
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                write_compact_float(j.m_value.number_float, detail::input_format_t::msgpack);
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                // step 1: write control byte and the string length
+-                const auto N = j.m_value.string->size();
+-                if (N <= 31)
+-                {
+-                    // fixstr
+-                    write_number(static_cast<std::uint8_t>(0xA0 | N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    // str 8
+-                    oa->write_character(to_char_type(0xD9));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    // str 16
+-                    oa->write_character(to_char_type(0xDA));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    // str 32
+-                    oa->write_character(to_char_type(0xDB));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-
+-                // step 2: write the string
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.string->c_str()),
+-                    j.m_value.string->size());
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                // step 1: write control byte and the array size
+-                const auto N = j.m_value.array->size();
+-                if (N <= 15)
+-                {
+-                    // fixarray
+-                    write_number(static_cast<std::uint8_t>(0x90 | N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    // array 16
+-                    oa->write_character(to_char_type(0xDC));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    // array 32
+-                    oa->write_character(to_char_type(0xDD));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-
+-                // step 2: write each element
+-                for (const auto& el : *j.m_value.array)
+-                {
+-                    write_msgpack(el);
+-                }
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                // step 0: determine if the binary type has a set subtype to
+-                // determine whether or not to use the ext or fixext types
+-                const bool use_ext = j.m_value.binary->has_subtype();
+-
+-                // step 1: write control byte and the byte string length
+-                const auto N = j.m_value.binary->size();
+-                if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    std::uint8_t output_type{};
+-                    bool fixed = true;
+-                    if (use_ext)
+-                    {
+-                        switch (N)
+-                        {
+-                            case 1:
+-                                output_type = 0xD4; // fixext 1
+-                                break;
+-                            case 2:
+-                                output_type = 0xD5; // fixext 2
+-                                break;
+-                            case 4:
+-                                output_type = 0xD6; // fixext 4
+-                                break;
+-                            case 8:
+-                                output_type = 0xD7; // fixext 8
+-                                break;
+-                            case 16:
+-                                output_type = 0xD8; // fixext 16
+-                                break;
+-                            default:
+-                                output_type = 0xC7; // ext 8
+-                                fixed = false;
+-                                break;
+-                        }
+-
+-                    }
+-                    else
+-                    {
+-                        output_type = 0xC4; // bin 8
+-                        fixed = false;
+-                    }
+-
+-                    oa->write_character(to_char_type(output_type));
+-                    if (!fixed)
+-                    {
+-                        write_number(static_cast<std::uint8_t>(N));
+-                    }
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    std::uint8_t output_type = use_ext
+-                                               ? 0xC8 // ext 16
+-                                               : 0xC5; // bin 16
+-
+-                    oa->write_character(to_char_type(output_type));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    std::uint8_t output_type = use_ext
+-                                               ? 0xC9 // ext 32
+-                                               : 0xC6; // bin 32
+-
+-                    oa->write_character(to_char_type(output_type));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-
+-                // step 1.5: if this is an ext type, write the subtype
+-                if (use_ext)
+-                {
+-                    write_number(static_cast<std::int8_t>(j.m_value.binary->subtype()));
+-                }
+-
+-                // step 2: write the byte string
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.binary->data()),
+-                    N);
+-
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                // step 1: write control byte and the object size
+-                const auto N = j.m_value.object->size();
+-                if (N <= 15)
+-                {
+-                    // fixmap
+-                    write_number(static_cast<std::uint8_t>(0x80 | (N & 0xF)));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    // map 16
+-                    oa->write_character(to_char_type(0xDE));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    // map 32
+-                    oa->write_character(to_char_type(0xDF));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-
+-                // step 2: write each element
+-                for (const auto& el : *j.m_value.object)
+-                {
+-                    write_msgpack(el.first);
+-                    write_msgpack(el.second);
+-                }
+-                break;
+-            }
+-
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-    }
+-
+-    /*!
+-    @param[in] j  JSON value to serialize
+-    @param[in] use_count   whether to use '#' prefixes (optimized format)
+-    @param[in] use_type    whether to use '$' prefixes (optimized format)
+-    @param[in] add_prefix  whether prefixes need to be used for this value
+-    */
+-    void write_ubjson(const BasicJsonType& j, const bool use_count,
+-                      const bool use_type, const bool add_prefix = true)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::null:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('Z'));
+-                }
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(j.m_value.boolean
+-                                        ? to_char_type('T')
+-                                        : to_char_type('F'));
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                write_number_with_ubjson_prefix(j.m_value.number_integer, add_prefix);
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                write_number_with_ubjson_prefix(j.m_value.number_unsigned, add_prefix);
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                write_number_with_ubjson_prefix(j.m_value.number_float, add_prefix);
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('S'));
+-                }
+-                write_number_with_ubjson_prefix(j.m_value.string->size(), true);
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.string->c_str()),
+-                    j.m_value.string->size());
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('['));
+-                }
+-
+-                bool prefix_required = true;
+-                if (use_type && !j.m_value.array->empty())
+-                {
+-                    JSON_ASSERT(use_count);
+-                    const CharType first_prefix = ubjson_prefix(j.front());
+-                    const bool same_prefix = std::all_of(j.begin() + 1, j.end(),
+-                                                         [this, first_prefix](const BasicJsonType & v)
+-                    {
+-                        return ubjson_prefix(v) == first_prefix;
+-                    });
+-
+-                    if (same_prefix)
+-                    {
+-                        prefix_required = false;
+-                        oa->write_character(to_char_type('$'));
+-                        oa->write_character(first_prefix);
+-                    }
+-                }
+-
+-                if (use_count)
+-                {
+-                    oa->write_character(to_char_type('#'));
+-                    write_number_with_ubjson_prefix(j.m_value.array->size(), true);
+-                }
+-
+-                for (const auto& el : *j.m_value.array)
+-                {
+-                    write_ubjson(el, use_count, use_type, prefix_required);
+-                }
+-
+-                if (!use_count)
+-                {
+-                    oa->write_character(to_char_type(']'));
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('['));
+-                }
+-
+-                if (use_type && !j.m_value.binary->empty())
+-                {
+-                    JSON_ASSERT(use_count);
+-                    oa->write_character(to_char_type('$'));
+-                    oa->write_character('U');
+-                }
+-
+-                if (use_count)
+-                {
+-                    oa->write_character(to_char_type('#'));
+-                    write_number_with_ubjson_prefix(j.m_value.binary->size(), true);
+-                }
+-
+-                if (use_type)
+-                {
+-                    oa->write_characters(
+-                        reinterpret_cast<const CharType*>(j.m_value.binary->data()),
+-                        j.m_value.binary->size());
+-                }
+-                else
+-                {
+-                    for (size_t i = 0; i < j.m_value.binary->size(); ++i)
+-                    {
+-                        oa->write_character(to_char_type('U'));
+-                        oa->write_character(j.m_value.binary->data()[i]);
+-                    }
+-                }
+-
+-                if (!use_count)
+-                {
+-                    oa->write_character(to_char_type(']'));
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('{'));
+-                }
+-
+-                bool prefix_required = true;
+-                if (use_type && !j.m_value.object->empty())
+-                {
+-                    JSON_ASSERT(use_count);
+-                    const CharType first_prefix = ubjson_prefix(j.front());
+-                    const bool same_prefix = std::all_of(j.begin(), j.end(),
+-                                                         [this, first_prefix](const BasicJsonType & v)
+-                    {
+-                        return ubjson_prefix(v) == first_prefix;
+-                    });
+-
+-                    if (same_prefix)
+-                    {
+-                        prefix_required = false;
+-                        oa->write_character(to_char_type('$'));
+-                        oa->write_character(first_prefix);
+-                    }
+-                }
+-
+-                if (use_count)
+-                {
+-                    oa->write_character(to_char_type('#'));
+-                    write_number_with_ubjson_prefix(j.m_value.object->size(), true);
+-                }
+-
+-                for (const auto& el : *j.m_value.object)
+-                {
+-                    write_number_with_ubjson_prefix(el.first.size(), true);
+-                    oa->write_characters(
+-                        reinterpret_cast<const CharType*>(el.first.c_str()),
+-                        el.first.size());
+-                    write_ubjson(el.second, use_count, use_type, prefix_required);
+-                }
+-
+-                if (!use_count)
+-                {
+-                    oa->write_character(to_char_type('}'));
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-    }
+-
+-  private:
+-    //////////
+-    // BSON //
+-    //////////
+-
+-    /*!
+-    @return The size of a BSON document entry header, including the id marker
+-            and the entry name size (and its null-terminator).
+-    */
+-    static std::size_t calc_bson_entry_header_size(const string_t& name, const BasicJsonType& j)
+-    {
+-        const auto it = name.find(static_cast<typename string_t::value_type>(0));
+-        if (JSON_HEDLEY_UNLIKELY(it != BasicJsonType::string_t::npos))
+-        {
+-            JSON_THROW(out_of_range::create(409, "BSON key cannot contain code point U+0000 (at byte " + std::to_string(it) + ")", j));
+-            static_cast<void>(j);
+-        }
+-
+-        return /*id*/ 1ul + name.size() + /*zero-terminator*/1u;
+-    }
+-
+-    /*!
+-    @brief Writes the given @a element_type and @a name to the output adapter
+-    */
+-    void write_bson_entry_header(const string_t& name,
+-                                 const std::uint8_t element_type)
+-    {
+-        oa->write_character(to_char_type(element_type)); // boolean
+-        oa->write_characters(
+-            reinterpret_cast<const CharType*>(name.c_str()),
+-            name.size() + 1u);
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and boolean value @a value
+-    */
+-    void write_bson_boolean(const string_t& name,
+-                            const bool value)
+-    {
+-        write_bson_entry_header(name, 0x08);
+-        oa->write_character(value ? to_char_type(0x01) : to_char_type(0x00));
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and double value @a value
+-    */
+-    void write_bson_double(const string_t& name,
+-                           const double value)
+-    {
+-        write_bson_entry_header(name, 0x01);
+-        write_number<double, true>(value);
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded string in @a value
+-    */
+-    static std::size_t calc_bson_string_size(const string_t& value)
+-    {
+-        return sizeof(std::int32_t) + value.size() + 1ul;
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and string value @a value
+-    */
+-    void write_bson_string(const string_t& name,
+-                           const string_t& value)
+-    {
+-        write_bson_entry_header(name, 0x02);
+-
+-        write_number<std::int32_t, true>(static_cast<std::int32_t>(value.size() + 1ul));
+-        oa->write_characters(
+-            reinterpret_cast<const CharType*>(value.c_str()),
+-            value.size() + 1);
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and null value
+-    */
+-    void write_bson_null(const string_t& name)
+-    {
+-        write_bson_entry_header(name, 0x0A);
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded integer @a value
+-    */
+-    static std::size_t calc_bson_integer_size(const std::int64_t value)
+-    {
+-        return (std::numeric_limits<std::int32_t>::min)() <= value && value <= (std::numeric_limits<std::int32_t>::max)()
+-               ? sizeof(std::int32_t)
+-               : sizeof(std::int64_t);
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and integer @a value
+-    */
+-    void write_bson_integer(const string_t& name,
+-                            const std::int64_t value)
+-    {
+-        if ((std::numeric_limits<std::int32_t>::min)() <= value && value <= (std::numeric_limits<std::int32_t>::max)())
+-        {
+-            write_bson_entry_header(name, 0x10); // int32
+-            write_number<std::int32_t, true>(static_cast<std::int32_t>(value));
+-        }
+-        else
+-        {
+-            write_bson_entry_header(name, 0x12); // int64
+-            write_number<std::int64_t, true>(static_cast<std::int64_t>(value));
+-        }
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded unsigned integer in @a j
+-    */
+-    static constexpr std::size_t calc_bson_unsigned_size(const std::uint64_t value) noexcept
+-    {
+-        return (value <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
+-               ? sizeof(std::int32_t)
+-               : sizeof(std::int64_t);
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and unsigned @a value
+-    */
+-    void write_bson_unsigned(const string_t& name,
+-                             const BasicJsonType& j)
+-    {
+-        if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
+-        {
+-            write_bson_entry_header(name, 0x10 /* int32 */);
+-            write_number<std::int32_t, true>(static_cast<std::int32_t>(j.m_value.number_unsigned));
+-        }
+-        else if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int64_t>::max)()))
+-        {
+-            write_bson_entry_header(name, 0x12 /* int64 */);
+-            write_number<std::int64_t, true>(static_cast<std::int64_t>(j.m_value.number_unsigned));
+-        }
+-        else
+-        {
+-            JSON_THROW(out_of_range::create(407, "integer number " + std::to_string(j.m_value.number_unsigned) + " cannot be represented by BSON as it does not fit int64", j));
+-        }
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and object @a value
+-    */
+-    void write_bson_object_entry(const string_t& name,
+-                                 const typename BasicJsonType::object_t& value)
+-    {
+-        write_bson_entry_header(name, 0x03); // object
+-        write_bson_object(value);
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded array @a value
+-    */
+-    static std::size_t calc_bson_array_size(const typename BasicJsonType::array_t& value)
+-    {
+-        std::size_t array_index = 0ul;
+-
+-        const std::size_t embedded_document_size = std::accumulate(std::begin(value), std::end(value), static_cast<std::size_t>(0), [&array_index](std::size_t result, const typename BasicJsonType::array_t::value_type & el)
+-        {
+-            return result + calc_bson_element_size(std::to_string(array_index++), el);
+-        });
+-
+-        return sizeof(std::int32_t) + embedded_document_size + 1ul;
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded binary array @a value
+-    */
+-    static std::size_t calc_bson_binary_size(const typename BasicJsonType::binary_t& value)
+-    {
+-        return sizeof(std::int32_t) + value.size() + 1ul;
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and array @a value
+-    */
+-    void write_bson_array(const string_t& name,
+-                          const typename BasicJsonType::array_t& value)
+-    {
+-        write_bson_entry_header(name, 0x04); // array
+-        write_number<std::int32_t, true>(static_cast<std::int32_t>(calc_bson_array_size(value)));
+-
+-        std::size_t array_index = 0ul;
+-
+-        for (const auto& el : value)
+-        {
+-            write_bson_element(std::to_string(array_index++), el);
+-        }
+-
+-        oa->write_character(to_char_type(0x00));
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and binary value @a value
+-    */
+-    void write_bson_binary(const string_t& name,
+-                           const binary_t& value)
+-    {
+-        write_bson_entry_header(name, 0x05);
+-
+-        write_number<std::int32_t, true>(static_cast<std::int32_t>(value.size()));
+-        write_number(value.has_subtype() ? static_cast<std::uint8_t>(value.subtype()) : static_cast<std::uint8_t>(0x00));
+-
+-        oa->write_characters(reinterpret_cast<const CharType*>(value.data()), value.size());
+-    }
+-
+-    /*!
+-    @brief Calculates the size necessary to serialize the JSON value @a j with its @a name
+-    @return The calculated size for the BSON document entry for @a j with the given @a name.
+-    */
+-    static std::size_t calc_bson_element_size(const string_t& name,
+-            const BasicJsonType& j)
+-    {
+-        const auto header_size = calc_bson_entry_header_size(name, j);
+-        switch (j.type())
+-        {
+-            case value_t::object:
+-                return header_size + calc_bson_object_size(*j.m_value.object);
+-
+-            case value_t::array:
+-                return header_size + calc_bson_array_size(*j.m_value.array);
+-
+-            case value_t::binary:
+-                return header_size + calc_bson_binary_size(*j.m_value.binary);
+-
+-            case value_t::boolean:
+-                return header_size + 1ul;
+-
+-            case value_t::number_float:
+-                return header_size + 8ul;
+-
+-            case value_t::number_integer:
+-                return header_size + calc_bson_integer_size(j.m_value.number_integer);
+-
+-            case value_t::number_unsigned:
+-                return header_size + calc_bson_unsigned_size(j.m_value.number_unsigned);
+-
+-            case value_t::string:
+-                return header_size + calc_bson_string_size(*j.m_value.string);
+-
+-            case value_t::null:
+-                return header_size + 0ul;
+-
+-            // LCOV_EXCL_START
+-            case value_t::discarded:
+-            default:
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert)
+-                return 0ul;
+-                // LCOV_EXCL_STOP
+-        }
+-    }
+-
+-    /*!
+-    @brief Serializes the JSON value @a j to BSON and associates it with the
+-           key @a name.
+-    @param name The name to associate with the JSON entity @a j within the
+-                current BSON document
+-    */
+-    void write_bson_element(const string_t& name,
+-                            const BasicJsonType& j)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::object:
+-                return write_bson_object_entry(name, *j.m_value.object);
+-
+-            case value_t::array:
+-                return write_bson_array(name, *j.m_value.array);
+-
+-            case value_t::binary:
+-                return write_bson_binary(name, *j.m_value.binary);
+-
+-            case value_t::boolean:
+-                return write_bson_boolean(name, j.m_value.boolean);
+-
+-            case value_t::number_float:
+-                return write_bson_double(name, j.m_value.number_float);
+-
+-            case value_t::number_integer:
+-                return write_bson_integer(name, j.m_value.number_integer);
+-
+-            case value_t::number_unsigned:
+-                return write_bson_unsigned(name, j);
+-
+-            case value_t::string:
+-                return write_bson_string(name, *j.m_value.string);
+-
+-            case value_t::null:
+-                return write_bson_null(name);
+-
+-            // LCOV_EXCL_START
+-            case value_t::discarded:
+-            default:
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert)
+-                return;
+-                // LCOV_EXCL_STOP
+-        }
+-    }
+-
+-    /*!
+-    @brief Calculates the size of the BSON serialization of the given
+-           JSON-object @a j.
+-    @param[in] value  JSON value to serialize
+-    @pre       value.type() == value_t::object
+-    */
+-    static std::size_t calc_bson_object_size(const typename BasicJsonType::object_t& value)
+-    {
+-        std::size_t document_size = std::accumulate(value.begin(), value.end(), static_cast<std::size_t>(0),
+-                                    [](size_t result, const typename BasicJsonType::object_t::value_type & el)
+-        {
+-            return result += calc_bson_element_size(el.first, el.second);
+-        });
+-
+-        return sizeof(std::int32_t) + document_size + 1ul;
+-    }
+-
+-    /*!
+-    @param[in] value  JSON value to serialize
+-    @pre       value.type() == value_t::object
+-    */
+-    void write_bson_object(const typename BasicJsonType::object_t& value)
+-    {
+-        write_number<std::int32_t, true>(static_cast<std::int32_t>(calc_bson_object_size(value)));
+-
+-        for (const auto& el : value)
+-        {
+-            write_bson_element(el.first, el.second);
+-        }
+-
+-        oa->write_character(to_char_type(0x00));
+-    }
+-
+-    //////////
+-    // CBOR //
+-    //////////
+-
+-    static constexpr CharType get_cbor_float_prefix(float /*unused*/)
+-    {
+-        return to_char_type(0xFA);  // Single-Precision Float
+-    }
+-
+-    static constexpr CharType get_cbor_float_prefix(double /*unused*/)
+-    {
+-        return to_char_type(0xFB);  // Double-Precision Float
+-    }
+-
+-    /////////////
+-    // MsgPack //
+-    /////////////
+-
+-    static constexpr CharType get_msgpack_float_prefix(float /*unused*/)
+-    {
+-        return to_char_type(0xCA);  // float 32
+-    }
+-
+-    static constexpr CharType get_msgpack_float_prefix(double /*unused*/)
+-    {
+-        return to_char_type(0xCB);  // float 64
+-    }
+-
+-    ////////////
+-    // UBJSON //
+-    ////////////
+-
+-    // UBJSON: write number (floating point)
+-    template<typename NumberType, typename std::enable_if<
+-                 std::is_floating_point<NumberType>::value, int>::type = 0>
+-    void write_number_with_ubjson_prefix(const NumberType n,
+-                                         const bool add_prefix)
+-    {
+-        if (add_prefix)
+-        {
+-            oa->write_character(get_ubjson_float_prefix(n));
+-        }
+-        write_number(n);
+-    }
+-
+-    // UBJSON: write number (unsigned integer)
+-    template<typename NumberType, typename std::enable_if<
+-                 std::is_unsigned<NumberType>::value, int>::type = 0>
+-    void write_number_with_ubjson_prefix(const NumberType n,
+-                                         const bool add_prefix)
+-    {
+-        if (n <= static_cast<std::uint64_t>((std::numeric_limits<std::int8_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('i'));  // int8
+-            }
+-            write_number(static_cast<std::uint8_t>(n));
+-        }
+-        else if (n <= (std::numeric_limits<std::uint8_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('U'));  // uint8
+-            }
+-            write_number(static_cast<std::uint8_t>(n));
+-        }
+-        else if (n <= static_cast<std::uint64_t>((std::numeric_limits<std::int16_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('I'));  // int16
+-            }
+-            write_number(static_cast<std::int16_t>(n));
+-        }
+-        else if (n <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('l'));  // int32
+-            }
+-            write_number(static_cast<std::int32_t>(n));
+-        }
+-        else if (n <= static_cast<std::uint64_t>((std::numeric_limits<std::int64_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('L'));  // int64
+-            }
+-            write_number(static_cast<std::int64_t>(n));
+-        }
+-        else
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('H'));  // high-precision number
+-            }
+-
+-            const auto number = BasicJsonType(n).dump();
+-            write_number_with_ubjson_prefix(number.size(), true);
+-            for (std::size_t i = 0; i < number.size(); ++i)
+-            {
+-                oa->write_character(to_char_type(static_cast<std::uint8_t>(number[i])));
+-            }
+-        }
+-    }
+-
+-    // UBJSON: write number (signed integer)
+-    template < typename NumberType, typename std::enable_if <
+-                   std::is_signed<NumberType>::value&&
+-                   !std::is_floating_point<NumberType>::value, int >::type = 0 >
+-    void write_number_with_ubjson_prefix(const NumberType n,
+-                                         const bool add_prefix)
+-    {
+-        if ((std::numeric_limits<std::int8_t>::min)() <= n && n <= (std::numeric_limits<std::int8_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('i'));  // int8
+-            }
+-            write_number(static_cast<std::int8_t>(n));
+-        }
+-        else if (static_cast<std::int64_t>((std::numeric_limits<std::uint8_t>::min)()) <= n && n <= static_cast<std::int64_t>((std::numeric_limits<std::uint8_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('U'));  // uint8
+-            }
+-            write_number(static_cast<std::uint8_t>(n));
+-        }
+-        else if ((std::numeric_limits<std::int16_t>::min)() <= n && n <= (std::numeric_limits<std::int16_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('I'));  // int16
+-            }
+-            write_number(static_cast<std::int16_t>(n));
+-        }
+-        else if ((std::numeric_limits<std::int32_t>::min)() <= n && n <= (std::numeric_limits<std::int32_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('l'));  // int32
+-            }
+-            write_number(static_cast<std::int32_t>(n));
+-        }
+-        else if ((std::numeric_limits<std::int64_t>::min)() <= n && n <= (std::numeric_limits<std::int64_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('L'));  // int64
+-            }
+-            write_number(static_cast<std::int64_t>(n));
+-        }
+-        // LCOV_EXCL_START
+-        else
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('H'));  // high-precision number
+-            }
+-
+-            const auto number = BasicJsonType(n).dump();
+-            write_number_with_ubjson_prefix(number.size(), true);
+-            for (std::size_t i = 0; i < number.size(); ++i)
+-            {
+-                oa->write_character(to_char_type(static_cast<std::uint8_t>(number[i])));
+-            }
+-        }
+-        // LCOV_EXCL_STOP
+-    }
+-
+-    /*!
+-    @brief determine the type prefix of container values
+-    */
+-    CharType ubjson_prefix(const BasicJsonType& j) const noexcept
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::null:
+-                return 'Z';
+-
+-            case value_t::boolean:
+-                return j.m_value.boolean ? 'T' : 'F';
+-
+-            case value_t::number_integer:
+-            {
+-                if ((std::numeric_limits<std::int8_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::int8_t>::max)())
+-                {
+-                    return 'i';
+-                }
+-                if ((std::numeric_limits<std::uint8_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    return 'U';
+-                }
+-                if ((std::numeric_limits<std::int16_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::int16_t>::max)())
+-                {
+-                    return 'I';
+-                }
+-                if ((std::numeric_limits<std::int32_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::int32_t>::max)())
+-                {
+-                    return 'l';
+-                }
+-                if ((std::numeric_limits<std::int64_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::int64_t>::max)())
+-                {
+-                    return 'L';
+-                }
+-                // anything else is treated as high-precision number
+-                return 'H'; // LCOV_EXCL_LINE
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int8_t>::max)()))
+-                {
+-                    return 'i';
+-                }
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::uint8_t>::max)()))
+-                {
+-                    return 'U';
+-                }
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int16_t>::max)()))
+-                {
+-                    return 'I';
+-                }
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
+-                {
+-                    return 'l';
+-                }
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int64_t>::max)()))
+-                {
+-                    return 'L';
+-                }
+-                // anything else is treated as high-precision number
+-                return 'H'; // LCOV_EXCL_LINE
+-            }
+-
+-            case value_t::number_float:
+-                return get_ubjson_float_prefix(j.m_value.number_float);
+-
+-            case value_t::string:
+-                return 'S';
+-
+-            case value_t::array: // fallthrough
+-            case value_t::binary:
+-                return '[';
+-
+-            case value_t::object:
+-                return '{';
+-
+-            case value_t::discarded:
+-            default:  // discarded values
+-                return 'N';
+-        }
+-    }
+-
+-    static constexpr CharType get_ubjson_float_prefix(float /*unused*/)
+-    {
+-        return 'd';  // float 32
+-    }
+-
+-    static constexpr CharType get_ubjson_float_prefix(double /*unused*/)
+-    {
+-        return 'D';  // float 64
+-    }
+-
+-    ///////////////////////
+-    // Utility functions //
+-    ///////////////////////
+-
+-    /*
+-    @brief write a number to output input
+-    @param[in] n number of type @a NumberType
+-    @tparam NumberType the type of the number
+-    @tparam OutputIsLittleEndian Set to true if output data is
+-                                 required to be little endian
+-
+-    @note This function needs to respect the system's endianness, because bytes
+-          in CBOR, MessagePack, and UBJSON are stored in network order (big
+-          endian) and therefore need reordering on little endian systems.
+-    */
+-    template<typename NumberType, bool OutputIsLittleEndian = false>
+-    void write_number(const NumberType n)
+-    {
+-        // step 1: write number to array of length NumberType
+-        std::array<CharType, sizeof(NumberType)> vec{};
+-        std::memcpy(vec.data(), &n, sizeof(NumberType));
+-
+-        // step 2: write array to output (with possible reordering)
+-        if (is_little_endian != OutputIsLittleEndian)
+-        {
+-            // reverse byte order prior to conversion if necessary
+-            std::reverse(vec.begin(), vec.end());
+-        }
+-
+-        oa->write_characters(vec.data(), sizeof(NumberType));
+-    }
+-
+-    void write_compact_float(const number_float_t n, detail::input_format_t format)
+-    {
+-#ifdef __GNUC__
+-#pragma GCC diagnostic push
+-#pragma GCC diagnostic ignored "-Wfloat-equal"
+-#endif
+-        if (static_cast<double>(n) >= static_cast<double>(std::numeric_limits<float>::lowest()) &&
+-                static_cast<double>(n) <= static_cast<double>((std::numeric_limits<float>::max)()) &&
+-                static_cast<double>(static_cast<float>(n)) == static_cast<double>(n))
+-        {
+-            oa->write_character(format == detail::input_format_t::cbor
+-                                ? get_cbor_float_prefix(static_cast<float>(n))
+-                                : get_msgpack_float_prefix(static_cast<float>(n)));
+-            write_number(static_cast<float>(n));
+-        }
+-        else
+-        {
+-            oa->write_character(format == detail::input_format_t::cbor
+-                                ? get_cbor_float_prefix(n)
+-                                : get_msgpack_float_prefix(n));
+-            write_number(n);
+-        }
+-#ifdef __GNUC__
+-#pragma GCC diagnostic pop
+-#endif
+-    }
+-
+-  public:
+-    // The following to_char_type functions are implement the conversion
+-    // between uint8_t and CharType. In case CharType is not unsigned,
+-    // such a conversion is required to allow values greater than 128.
+-    // See <https://github.com/nlohmann/json/issues/1286> for a discussion.
+-    template < typename C = CharType,
+-               enable_if_t < std::is_signed<C>::value && std::is_signed<char>::value > * = nullptr >
+-    static constexpr CharType to_char_type(std::uint8_t x) noexcept
+-    {
+-        return *reinterpret_cast<char*>(&x);
+-    }
+-
+-    template < typename C = CharType,
+-               enable_if_t < std::is_signed<C>::value && std::is_unsigned<char>::value > * = nullptr >
+-    static CharType to_char_type(std::uint8_t x) noexcept
+-    {
+-        static_assert(sizeof(std::uint8_t) == sizeof(CharType), "size of CharType must be equal to std::uint8_t");
+-        static_assert(std::is_trivial<CharType>::value, "CharType must be trivial");
+-        CharType result;
+-        std::memcpy(&result, &x, sizeof(x));
+-        return result;
+-    }
+-
+-    template<typename C = CharType,
+-             enable_if_t<std::is_unsigned<C>::value>* = nullptr>
+-    static constexpr CharType to_char_type(std::uint8_t x) noexcept
+-    {
+-        return x;
+-    }
+-
+-    template < typename InputCharType, typename C = CharType,
+-               enable_if_t <
+-                   std::is_signed<C>::value &&
+-                   std::is_signed<char>::value &&
+-                   std::is_same<char, typename std::remove_cv<InputCharType>::type>::value
+-                   > * = nullptr >
+-    static constexpr CharType to_char_type(InputCharType x) noexcept
+-    {
+-        return x;
+-    }
+-
+-  private:
+-    /// whether we can assume little endianness
+-    const bool is_little_endian = little_endianness();
+-
+-    /// the output
+-    output_adapter_t<CharType> oa = nullptr;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/output/output_adapters.hpp>
+-
+-// #include <nlohmann/detail/output/serializer.hpp>
+-
+-
+-#include <algorithm> // reverse, remove, fill, find, none_of
+-#include <array> // array
+-#include <clocale> // localeconv, lconv
+-#include <cmath> // labs, isfinite, isnan, signbit
+-#include <cstddef> // size_t, ptrdiff_t
+-#include <cstdint> // uint8_t
+-#include <cstdio> // snprintf
+-#include <limits> // numeric_limits
+-#include <string> // string, char_traits
+-#include <iomanip> // setfill, setw
+-#include <sstream> // stringstream
+-#include <type_traits> // is_same
+-#include <utility> // move
+-
+-// #include <nlohmann/detail/conversions/to_chars.hpp>
+-
+-
+-#include <array> // array
+-#include <cmath>   // signbit, isfinite
+-#include <cstdint> // intN_t, uintN_t
+-#include <cstring> // memcpy, memmove
+-#include <limits> // numeric_limits
+-#include <type_traits> // conditional
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-/*!
+-@brief implements the Grisu2 algorithm for binary to decimal floating-point
+-conversion.
+-
+-This implementation is a slightly modified version of the reference
+-implementation which may be obtained from
+-http://florian.loitsch.com/publications (bench.tar.gz).
+-
+-The code is distributed under the MIT license, Copyright (c) 2009 Florian Loitsch.
+-
+-For a detailed description of the algorithm see:
+-
+-[1] Loitsch, "Printing Floating-Point Numbers Quickly and Accurately with
+-    Integers", Proceedings of the ACM SIGPLAN 2010 Conference on Programming
+-    Language Design and Implementation, PLDI 2010
+-[2] Burger, Dybvig, "Printing Floating-Point Numbers Quickly and Accurately",
+-    Proceedings of the ACM SIGPLAN 1996 Conference on Programming Language
+-    Design and Implementation, PLDI 1996
+-*/
+-namespace dtoa_impl
+-{
+-
+-template<typename Target, typename Source>
+-Target reinterpret_bits(const Source source)
+-{
+-    static_assert(sizeof(Target) == sizeof(Source), "size mismatch");
+-
+-    Target target;
+-    std::memcpy(&target, &source, sizeof(Source));
+-    return target;
+-}
+-
+-struct diyfp // f * 2^e
+-{
+-    static constexpr int kPrecision = 64; // = q
+-
+-    std::uint64_t f = 0;
+-    int e = 0;
+-
+-    constexpr diyfp(std::uint64_t f_, int e_) noexcept : f(f_), e(e_) {}
+-
+-    /*!
+-    @brief returns x - y
+-    @pre x.e == y.e and x.f >= y.f
+-    */
+-    static diyfp sub(const diyfp& x, const diyfp& y) noexcept
+-    {
+-        JSON_ASSERT(x.e == y.e);
+-        JSON_ASSERT(x.f >= y.f);
+-
+-        return {x.f - y.f, x.e};
+-    }
+-
+-    /*!
+-    @brief returns x * y
+-    @note The result is rounded. (Only the upper q bits are returned.)
+-    */
+-    static diyfp mul(const diyfp& x, const diyfp& y) noexcept
+-    {
+-        static_assert(kPrecision == 64, "internal error");
+-
+-        // Computes:
+-        //  f = round((x.f * y.f) / 2^q)
+-        //  e = x.e + y.e + q
+-
+-        // Emulate the 64-bit * 64-bit multiplication:
+-        //
+-        // p = u * v
+-        //   = (u_lo + 2^32 u_hi) (v_lo + 2^32 v_hi)
+-        //   = (u_lo v_lo         ) + 2^32 ((u_lo v_hi         ) + (u_hi v_lo         )) + 2^64 (u_hi v_hi         )
+-        //   = (p0                ) + 2^32 ((p1                ) + (p2                )) + 2^64 (p3                )
+-        //   = (p0_lo + 2^32 p0_hi) + 2^32 ((p1_lo + 2^32 p1_hi) + (p2_lo + 2^32 p2_hi)) + 2^64 (p3                )
+-        //   = (p0_lo             ) + 2^32 (p0_hi + p1_lo + p2_lo                      ) + 2^64 (p1_hi + p2_hi + p3)
+-        //   = (p0_lo             ) + 2^32 (Q                                          ) + 2^64 (H                 )
+-        //   = (p0_lo             ) + 2^32 (Q_lo + 2^32 Q_hi                           ) + 2^64 (H                 )
+-        //
+-        // (Since Q might be larger than 2^32 - 1)
+-        //
+-        //   = (p0_lo + 2^32 Q_lo) + 2^64 (Q_hi + H)
+-        //
+-        // (Q_hi + H does not overflow a 64-bit int)
+-        //
+-        //   = p_lo + 2^64 p_hi
+-
+-        const std::uint64_t u_lo = x.f & 0xFFFFFFFFu;
+-        const std::uint64_t u_hi = x.f >> 32u;
+-        const std::uint64_t v_lo = y.f & 0xFFFFFFFFu;
+-        const std::uint64_t v_hi = y.f >> 32u;
+-
+-        const std::uint64_t p0 = u_lo * v_lo;
+-        const std::uint64_t p1 = u_lo * v_hi;
+-        const std::uint64_t p2 = u_hi * v_lo;
+-        const std::uint64_t p3 = u_hi * v_hi;
+-
+-        const std::uint64_t p0_hi = p0 >> 32u;
+-        const std::uint64_t p1_lo = p1 & 0xFFFFFFFFu;
+-        const std::uint64_t p1_hi = p1 >> 32u;
+-        const std::uint64_t p2_lo = p2 & 0xFFFFFFFFu;
+-        const std::uint64_t p2_hi = p2 >> 32u;
+-
+-        std::uint64_t Q = p0_hi + p1_lo + p2_lo;
+-
+-        // The full product might now be computed as
+-        //
+-        // p_hi = p3 + p2_hi + p1_hi + (Q >> 32)
+-        // p_lo = p0_lo + (Q << 32)
+-        //
+-        // But in this particular case here, the full p_lo is not required.
+-        // Effectively we only need to add the highest bit in p_lo to p_hi (and
+-        // Q_hi + 1 does not overflow).
+-
+-        Q += std::uint64_t{1} << (64u - 32u - 1u); // round, ties up
+-
+-        const std::uint64_t h = p3 + p2_hi + p1_hi + (Q >> 32u);
+-
+-        return {h, x.e + y.e + 64};
+-    }
+-
+-    /*!
+-    @brief normalize x such that the significand is >= 2^(q-1)
+-    @pre x.f != 0
+-    */
+-    static diyfp normalize(diyfp x) noexcept
+-    {
+-        JSON_ASSERT(x.f != 0);
+-
+-        while ((x.f >> 63u) == 0)
+-        {
+-            x.f <<= 1u;
+-            x.e--;
+-        }
+-
+-        return x;
+-    }
+-
+-    /*!
+-    @brief normalize x such that the result has the exponent E
+-    @pre e >= x.e and the upper e - x.e bits of x.f must be zero.
+-    */
+-    static diyfp normalize_to(const diyfp& x, const int target_exponent) noexcept
+-    {
+-        const int delta = x.e - target_exponent;
+-
+-        JSON_ASSERT(delta >= 0);
+-        JSON_ASSERT(((x.f << delta) >> delta) == x.f);
+-
+-        return {x.f << delta, target_exponent};
+-    }
+-};
+-
+-struct boundaries
+-{
+-    diyfp w;
+-    diyfp minus;
+-    diyfp plus;
+-};
+-
+-/*!
+-Compute the (normalized) diyfp representing the input number 'value' and its
+-boundaries.
+-
+-@pre value must be finite and positive
+-*/
+-template<typename FloatType>
+-boundaries compute_boundaries(FloatType value)
+-{
+-    JSON_ASSERT(std::isfinite(value));
+-    JSON_ASSERT(value > 0);
+-
+-    // Convert the IEEE representation into a diyfp.
+-    //
+-    // If v is denormal:
+-    //      value = 0.F * 2^(1 - bias) = (          F) * 2^(1 - bias - (p-1))
+-    // If v is normalized:
+-    //      value = 1.F * 2^(E - bias) = (2^(p-1) + F) * 2^(E - bias - (p-1))
+-
+-    static_assert(std::numeric_limits<FloatType>::is_iec559,
+-                  "internal error: dtoa_short requires an IEEE-754 floating-point implementation");
+-
+-    constexpr int      kPrecision = std::numeric_limits<FloatType>::digits; // = p (includes the hidden bit)
+-    constexpr int      kBias      = std::numeric_limits<FloatType>::max_exponent - 1 + (kPrecision - 1);
+-    constexpr int      kMinExp    = 1 - kBias;
+-    constexpr std::uint64_t kHiddenBit = std::uint64_t{1} << (kPrecision - 1); // = 2^(p-1)
+-
+-    using bits_type = typename std::conditional<kPrecision == 24, std::uint32_t, std::uint64_t >::type;
+-
+-    const auto bits = static_cast<std::uint64_t>(reinterpret_bits<bits_type>(value));
+-    const std::uint64_t E = bits >> (kPrecision - 1);
+-    const std::uint64_t F = bits & (kHiddenBit - 1);
+-
+-    const bool is_denormal = E == 0;
+-    const diyfp v = is_denormal
+-                    ? diyfp(F, kMinExp)
+-                    : diyfp(F + kHiddenBit, static_cast<int>(E) - kBias);
+-
+-    // Compute the boundaries m- and m+ of the floating-point value
+-    // v = f * 2^e.
+-    //
+-    // Determine v- and v+, the floating-point predecessor and successor if v,
+-    // respectively.
+-    //
+-    //      v- = v - 2^e        if f != 2^(p-1) or e == e_min                (A)
+-    //         = v - 2^(e-1)    if f == 2^(p-1) and e > e_min                (B)
+-    //
+-    //      v+ = v + 2^e
+-    //
+-    // Let m- = (v- + v) / 2 and m+ = (v + v+) / 2. All real numbers _strictly_
+-    // between m- and m+ round to v, regardless of how the input rounding
+-    // algorithm breaks ties.
+-    //
+-    //      ---+-------------+-------------+-------------+-------------+---  (A)
+-    //         v-            m-            v             m+            v+
+-    //
+-    //      -----------------+------+------+-------------+-------------+---  (B)
+-    //                       v-     m-     v             m+            v+
+-
+-    const bool lower_boundary_is_closer = F == 0 && E > 1;
+-    const diyfp m_plus = diyfp(2 * v.f + 1, v.e - 1);
+-    const diyfp m_minus = lower_boundary_is_closer
+-                          ? diyfp(4 * v.f - 1, v.e - 2)  // (B)
+-                          : diyfp(2 * v.f - 1, v.e - 1); // (A)
+-
+-    // Determine the normalized w+ = m+.
+-    const diyfp w_plus = diyfp::normalize(m_plus);
+-
+-    // Determine w- = m- such that e_(w-) = e_(w+).
+-    const diyfp w_minus = diyfp::normalize_to(m_minus, w_plus.e);
+-
+-    return {diyfp::normalize(v), w_minus, w_plus};
+-}
+-
+-// Given normalized diyfp w, Grisu needs to find a (normalized) cached
+-// power-of-ten c, such that the exponent of the product c * w = f * 2^e lies
+-// within a certain range [alpha, gamma] (Definition 3.2 from [1])
+-//
+-//      alpha <= e = e_c + e_w + q <= gamma
+-//
+-// or
+-//
+-//      f_c * f_w * 2^alpha <= f_c 2^(e_c) * f_w 2^(e_w) * 2^q
+-//                          <= f_c * f_w * 2^gamma
+-//
+-// Since c and w are normalized, i.e. 2^(q-1) <= f < 2^q, this implies
+-//
+-//      2^(q-1) * 2^(q-1) * 2^alpha <= c * w * 2^q < 2^q * 2^q * 2^gamma
+-//
+-// or
+-//
+-//      2^(q - 2 + alpha) <= c * w < 2^(q + gamma)
+-//
+-// The choice of (alpha,gamma) determines the size of the table and the form of
+-// the digit generation procedure. Using (alpha,gamma)=(-60,-32) works out well
+-// in practice:
+-//
+-// The idea is to cut the number c * w = f * 2^e into two parts, which can be
+-// processed independently: An integral part p1, and a fractional part p2:
+-//
+-//      f * 2^e = ( (f div 2^-e) * 2^-e + (f mod 2^-e) ) * 2^e
+-//              = (f div 2^-e) + (f mod 2^-e) * 2^e
+-//              = p1 + p2 * 2^e
+-//
+-// The conversion of p1 into decimal form requires a series of divisions and
+-// modulos by (a power of) 10. These operations are faster for 32-bit than for
+-// 64-bit integers, so p1 should ideally fit into a 32-bit integer. This can be
+-// achieved by choosing
+-//
+-//      -e >= 32   or   e <= -32 := gamma
+-//
+-// In order to convert the fractional part
+-//
+-//      p2 * 2^e = p2 / 2^-e = d[-1] / 10^1 + d[-2] / 10^2 + ...
+-//
+-// into decimal form, the fraction is repeatedly multiplied by 10 and the digits
+-// d[-i] are extracted in order:
+-//
+-//      (10 * p2) div 2^-e = d[-1]
+-//      (10 * p2) mod 2^-e = d[-2] / 10^1 + ...
+-//
+-// The multiplication by 10 must not overflow. It is sufficient to choose
+-//
+-//      10 * p2 < 16 * p2 = 2^4 * p2 <= 2^64.
+-//
+-// Since p2 = f mod 2^-e < 2^-e,
+-//
+-//      -e <= 60   or   e >= -60 := alpha
+-
+-constexpr int kAlpha = -60;
+-constexpr int kGamma = -32;
+-
+-struct cached_power // c = f * 2^e ~= 10^k
+-{
+-    std::uint64_t f;
+-    int e;
+-    int k;
+-};
+-
+-/*!
+-For a normalized diyfp w = f * 2^e, this function returns a (normalized) cached
+-power-of-ten c = f_c * 2^e_c, such that the exponent of the product w * c
+-satisfies (Definition 3.2 from [1])
+-
+-     alpha <= e_c + e + q <= gamma.
+-*/
+-inline cached_power get_cached_power_for_binary_exponent(int e)
+-{
+-    // Now
+-    //
+-    //      alpha <= e_c + e + q <= gamma                                    (1)
+-    //      ==> f_c * 2^alpha <= c * 2^e * 2^q
+-    //
+-    // and since the c's are normalized, 2^(q-1) <= f_c,
+-    //
+-    //      ==> 2^(q - 1 + alpha) <= c * 2^(e + q)
+-    //      ==> 2^(alpha - e - 1) <= c
+-    //
+-    // If c were an exact power of ten, i.e. c = 10^k, one may determine k as
+-    //
+-    //      k = ceil( log_10( 2^(alpha - e - 1) ) )
+-    //        = ceil( (alpha - e - 1) * log_10(2) )
+-    //
+-    // From the paper:
+-    // "In theory the result of the procedure could be wrong since c is rounded,
+-    //  and the computation itself is approximated [...]. In practice, however,
+-    //  this simple function is sufficient."
+-    //
+-    // For IEEE double precision floating-point numbers converted into
+-    // normalized diyfp's w = f * 2^e, with q = 64,
+-    //
+-    //      e >= -1022      (min IEEE exponent)
+-    //           -52        (p - 1)
+-    //           -52        (p - 1, possibly normalize denormal IEEE numbers)
+-    //           -11        (normalize the diyfp)
+-    //         = -1137
+-    //
+-    // and
+-    //
+-    //      e <= +1023      (max IEEE exponent)
+-    //           -52        (p - 1)
+-    //           -11        (normalize the diyfp)
+-    //         = 960
+-    //
+-    // This binary exponent range [-1137,960] results in a decimal exponent
+-    // range [-307,324]. One does not need to store a cached power for each
+-    // k in this range. For each such k it suffices to find a cached power
+-    // such that the exponent of the product lies in [alpha,gamma].
+-    // This implies that the difference of the decimal exponents of adjacent
+-    // table entries must be less than or equal to
+-    //
+-    //      floor( (gamma - alpha) * log_10(2) ) = 8.
+-    //
+-    // (A smaller distance gamma-alpha would require a larger table.)
+-
+-    // NB:
+-    // Actually this function returns c, such that -60 <= e_c + e + 64 <= -34.
+-
+-    constexpr int kCachedPowersMinDecExp = -300;
+-    constexpr int kCachedPowersDecStep = 8;
+-
+-    static constexpr std::array<cached_power, 79> kCachedPowers =
+-    {
+-        {
+-            { 0xAB70FE17C79AC6CA, -1060, -300 },
+-            { 0xFF77B1FCBEBCDC4F, -1034, -292 },
+-            { 0xBE5691EF416BD60C, -1007, -284 },
+-            { 0x8DD01FAD907FFC3C,  -980, -276 },
+-            { 0xD3515C2831559A83,  -954, -268 },
+-            { 0x9D71AC8FADA6C9B5,  -927, -260 },
+-            { 0xEA9C227723EE8BCB,  -901, -252 },
+-            { 0xAECC49914078536D,  -874, -244 },
+-            { 0x823C12795DB6CE57,  -847, -236 },
+-            { 0xC21094364DFB5637,  -821, -228 },
+-            { 0x9096EA6F3848984F,  -794, -220 },
+-            { 0xD77485CB25823AC7,  -768, -212 },
+-            { 0xA086CFCD97BF97F4,  -741, -204 },
+-            { 0xEF340A98172AACE5,  -715, -196 },
+-            { 0xB23867FB2A35B28E,  -688, -188 },
+-            { 0x84C8D4DFD2C63F3B,  -661, -180 },
+-            { 0xC5DD44271AD3CDBA,  -635, -172 },
+-            { 0x936B9FCEBB25C996,  -608, -164 },
+-            { 0xDBAC6C247D62A584,  -582, -156 },
+-            { 0xA3AB66580D5FDAF6,  -555, -148 },
+-            { 0xF3E2F893DEC3F126,  -529, -140 },
+-            { 0xB5B5ADA8AAFF80B8,  -502, -132 },
+-            { 0x87625F056C7C4A8B,  -475, -124 },
+-            { 0xC9BCFF6034C13053,  -449, -116 },
+-            { 0x964E858C91BA2655,  -422, -108 },
+-            { 0xDFF9772470297EBD,  -396, -100 },
+-            { 0xA6DFBD9FB8E5B88F,  -369,  -92 },
+-            { 0xF8A95FCF88747D94,  -343,  -84 },
+-            { 0xB94470938FA89BCF,  -316,  -76 },
+-            { 0x8A08F0F8BF0F156B,  -289,  -68 },
+-            { 0xCDB02555653131B6,  -263,  -60 },
+-            { 0x993FE2C6D07B7FAC,  -236,  -52 },
+-            { 0xE45C10C42A2B3B06,  -210,  -44 },
+-            { 0xAA242499697392D3,  -183,  -36 },
+-            { 0xFD87B5F28300CA0E,  -157,  -28 },
+-            { 0xBCE5086492111AEB,  -130,  -20 },
+-            { 0x8CBCCC096F5088CC,  -103,  -12 },
+-            { 0xD1B71758E219652C,   -77,   -4 },
+-            { 0x9C40000000000000,   -50,    4 },
+-            { 0xE8D4A51000000000,   -24,   12 },
+-            { 0xAD78EBC5AC620000,     3,   20 },
+-            { 0x813F3978F8940984,    30,   28 },
+-            { 0xC097CE7BC90715B3,    56,   36 },
+-            { 0x8F7E32CE7BEA5C70,    83,   44 },
+-            { 0xD5D238A4ABE98068,   109,   52 },
+-            { 0x9F4F2726179A2245,   136,   60 },
+-            { 0xED63A231D4C4FB27,   162,   68 },
+-            { 0xB0DE65388CC8ADA8,   189,   76 },
+-            { 0x83C7088E1AAB65DB,   216,   84 },
+-            { 0xC45D1DF942711D9A,   242,   92 },
+-            { 0x924D692CA61BE758,   269,  100 },
+-            { 0xDA01EE641A708DEA,   295,  108 },
+-            { 0xA26DA3999AEF774A,   322,  116 },
+-            { 0xF209787BB47D6B85,   348,  124 },
+-            { 0xB454E4A179DD1877,   375,  132 },
+-            { 0x865B86925B9BC5C2,   402,  140 },
+-            { 0xC83553C5C8965D3D,   428,  148 },
+-            { 0x952AB45CFA97A0B3,   455,  156 },
+-            { 0xDE469FBD99A05FE3,   481,  164 },
+-            { 0xA59BC234DB398C25,   508,  172 },
+-            { 0xF6C69A72A3989F5C,   534,  180 },
+-            { 0xB7DCBF5354E9BECE,   561,  188 },
+-            { 0x88FCF317F22241E2,   588,  196 },
+-            { 0xCC20CE9BD35C78A5,   614,  204 },
+-            { 0x98165AF37B2153DF,   641,  212 },
+-            { 0xE2A0B5DC971F303A,   667,  220 },
+-            { 0xA8D9D1535CE3B396,   694,  228 },
+-            { 0xFB9B7CD9A4A7443C,   720,  236 },
+-            { 0xBB764C4CA7A44410,   747,  244 },
+-            { 0x8BAB8EEFB6409C1A,   774,  252 },
+-            { 0xD01FEF10A657842C,   800,  260 },
+-            { 0x9B10A4E5E9913129,   827,  268 },
+-            { 0xE7109BFBA19C0C9D,   853,  276 },
+-            { 0xAC2820D9623BF429,   880,  284 },
+-            { 0x80444B5E7AA7CF85,   907,  292 },
+-            { 0xBF21E44003ACDD2D,   933,  300 },
+-            { 0x8E679C2F5E44FF8F,   960,  308 },
+-            { 0xD433179D9C8CB841,   986,  316 },
+-            { 0x9E19DB92B4E31BA9,  1013,  324 },
+-        }
+-    };
+-
+-    // This computation gives exactly the same results for k as
+-    //      k = ceil((kAlpha - e - 1) * 0.30102999566398114)
+-    // for |e| <= 1500, but doesn't require floating-point operations.
+-    // NB: log_10(2) ~= 78913 / 2^18
+-    JSON_ASSERT(e >= -1500);
+-    JSON_ASSERT(e <=  1500);
+-    const int f = kAlpha - e - 1;
+-    const int k = (f * 78913) / (1 << 18) + static_cast<int>(f > 0);
+-
+-    const int index = (-kCachedPowersMinDecExp + k + (kCachedPowersDecStep - 1)) / kCachedPowersDecStep;
+-    JSON_ASSERT(index >= 0);
+-    JSON_ASSERT(static_cast<std::size_t>(index) < kCachedPowers.size());
+-
+-    const cached_power cached = kCachedPowers[static_cast<std::size_t>(index)];
+-    JSON_ASSERT(kAlpha <= cached.e + e + 64);
+-    JSON_ASSERT(kGamma >= cached.e + e + 64);
+-
+-    return cached;
+-}
+-
+-/*!
+-For n != 0, returns k, such that pow10 := 10^(k-1) <= n < 10^k.
+-For n == 0, returns 1 and sets pow10 := 1.
+-*/
+-inline int find_largest_pow10(const std::uint32_t n, std::uint32_t& pow10)
+-{
+-    // LCOV_EXCL_START
+-    if (n >= 1000000000)
+-    {
+-        pow10 = 1000000000;
+-        return 10;
+-    }
+-    // LCOV_EXCL_STOP
+-    if (n >= 100000000)
+-    {
+-        pow10 = 100000000;
+-        return  9;
+-    }
+-    if (n >= 10000000)
+-    {
+-        pow10 = 10000000;
+-        return  8;
+-    }
+-    if (n >= 1000000)
+-    {
+-        pow10 = 1000000;
+-        return  7;
+-    }
+-    if (n >= 100000)
+-    {
+-        pow10 = 100000;
+-        return  6;
+-    }
+-    if (n >= 10000)
+-    {
+-        pow10 = 10000;
+-        return  5;
+-    }
+-    if (n >= 1000)
+-    {
+-        pow10 = 1000;
+-        return  4;
+-    }
+-    if (n >= 100)
+-    {
+-        pow10 = 100;
+-        return  3;
+-    }
+-    if (n >= 10)
+-    {
+-        pow10 = 10;
+-        return  2;
+-    }
+-
+-    pow10 = 1;
+-    return 1;
+-}
+-
+-inline void grisu2_round(char* buf, int len, std::uint64_t dist, std::uint64_t delta,
+-                         std::uint64_t rest, std::uint64_t ten_k)
+-{
+-    JSON_ASSERT(len >= 1);
+-    JSON_ASSERT(dist <= delta);
+-    JSON_ASSERT(rest <= delta);
+-    JSON_ASSERT(ten_k > 0);
+-
+-    //               <--------------------------- delta ---->
+-    //                                  <---- dist --------->
+-    // --------------[------------------+-------------------]--------------
+-    //               M-                 w                   M+
+-    //
+-    //                                  ten_k
+-    //                                <------>
+-    //                                       <---- rest ---->
+-    // --------------[------------------+----+--------------]--------------
+-    //                                  w    V
+-    //                                       = buf * 10^k
+-    //
+-    // ten_k represents a unit-in-the-last-place in the decimal representation
+-    // stored in buf.
+-    // Decrement buf by ten_k while this takes buf closer to w.
+-
+-    // The tests are written in this order to avoid overflow in unsigned
+-    // integer arithmetic.
+-
+-    while (rest < dist
+-            && delta - rest >= ten_k
+-            && (rest + ten_k < dist || dist - rest > rest + ten_k - dist))
+-    {
+-        JSON_ASSERT(buf[len - 1] != '0');
+-        buf[len - 1]--;
+-        rest += ten_k;
+-    }
+-}
+-
+-/*!
+-Generates V = buffer * 10^decimal_exponent, such that M- <= V <= M+.
+-M- and M+ must be normalized and share the same exponent -60 <= e <= -32.
+-*/
+-inline void grisu2_digit_gen(char* buffer, int& length, int& decimal_exponent,
+-                             diyfp M_minus, diyfp w, diyfp M_plus)
+-{
+-    static_assert(kAlpha >= -60, "internal error");
+-    static_assert(kGamma <= -32, "internal error");
+-
+-    // Generates the digits (and the exponent) of a decimal floating-point
+-    // number V = buffer * 10^decimal_exponent in the range [M-, M+]. The diyfp's
+-    // w, M- and M+ share the same exponent e, which satisfies alpha <= e <= gamma.
+-    //
+-    //               <--------------------------- delta ---->
+-    //                                  <---- dist --------->
+-    // --------------[------------------+-------------------]--------------
+-    //               M-                 w                   M+
+-    //
+-    // Grisu2 generates the digits of M+ from left to right and stops as soon as
+-    // V is in [M-,M+].
+-
+-    JSON_ASSERT(M_plus.e >= kAlpha);
+-    JSON_ASSERT(M_plus.e <= kGamma);
+-
+-    std::uint64_t delta = diyfp::sub(M_plus, M_minus).f; // (significand of (M+ - M-), implicit exponent is e)
+-    std::uint64_t dist  = diyfp::sub(M_plus, w      ).f; // (significand of (M+ - w ), implicit exponent is e)
+-
+-    // Split M+ = f * 2^e into two parts p1 and p2 (note: e < 0):
+-    //
+-    //      M+ = f * 2^e
+-    //         = ((f div 2^-e) * 2^-e + (f mod 2^-e)) * 2^e
+-    //         = ((p1        ) * 2^-e + (p2        )) * 2^e
+-    //         = p1 + p2 * 2^e
+-
+-    const diyfp one(std::uint64_t{1} << -M_plus.e, M_plus.e);
+-
+-    auto p1 = static_cast<std::uint32_t>(M_plus.f >> -one.e); // p1 = f div 2^-e (Since -e >= 32, p1 fits into a 32-bit int.)
+-    std::uint64_t p2 = M_plus.f & (one.f - 1);                    // p2 = f mod 2^-e
+-
+-    // 1)
+-    //
+-    // Generate the digits of the integral part p1 = d[n-1]...d[1]d[0]
+-
+-    JSON_ASSERT(p1 > 0);
+-
+-    std::uint32_t pow10{};
+-    const int k = find_largest_pow10(p1, pow10);
+-
+-    //      10^(k-1) <= p1 < 10^k, pow10 = 10^(k-1)
+-    //
+-    //      p1 = (p1 div 10^(k-1)) * 10^(k-1) + (p1 mod 10^(k-1))
+-    //         = (d[k-1]         ) * 10^(k-1) + (p1 mod 10^(k-1))
+-    //
+-    //      M+ = p1                                             + p2 * 2^e
+-    //         = d[k-1] * 10^(k-1) + (p1 mod 10^(k-1))          + p2 * 2^e
+-    //         = d[k-1] * 10^(k-1) + ((p1 mod 10^(k-1)) * 2^-e + p2) * 2^e
+-    //         = d[k-1] * 10^(k-1) + (                         rest) * 2^e
+-    //
+-    // Now generate the digits d[n] of p1 from left to right (n = k-1,...,0)
+-    //
+-    //      p1 = d[k-1]...d[n] * 10^n + d[n-1]...d[0]
+-    //
+-    // but stop as soon as
+-    //
+-    //      rest * 2^e = (d[n-1]...d[0] * 2^-e + p2) * 2^e <= delta * 2^e
+-
+-    int n = k;
+-    while (n > 0)
+-    {
+-        // Invariants:
+-        //      M+ = buffer * 10^n + (p1 + p2 * 2^e)    (buffer = 0 for n = k)
+-        //      pow10 = 10^(n-1) <= p1 < 10^n
+-        //
+-        const std::uint32_t d = p1 / pow10;  // d = p1 div 10^(n-1)
+-        const std::uint32_t r = p1 % pow10;  // r = p1 mod 10^(n-1)
+-        //
+-        //      M+ = buffer * 10^n + (d * 10^(n-1) + r) + p2 * 2^e
+-        //         = (buffer * 10 + d) * 10^(n-1) + (r + p2 * 2^e)
+-        //
+-        JSON_ASSERT(d <= 9);
+-        buffer[length++] = static_cast<char>('0' + d); // buffer := buffer * 10 + d
+-        //
+-        //      M+ = buffer * 10^(n-1) + (r + p2 * 2^e)
+-        //
+-        p1 = r;
+-        n--;
+-        //
+-        //      M+ = buffer * 10^n + (p1 + p2 * 2^e)
+-        //      pow10 = 10^n
+-        //
+-
+-        // Now check if enough digits have been generated.
+-        // Compute
+-        //
+-        //      p1 + p2 * 2^e = (p1 * 2^-e + p2) * 2^e = rest * 2^e
+-        //
+-        // Note:
+-        // Since rest and delta share the same exponent e, it suffices to
+-        // compare the significands.
+-        const std::uint64_t rest = (std::uint64_t{p1} << -one.e) + p2;
+-        if (rest <= delta)
+-        {
+-            // V = buffer * 10^n, with M- <= V <= M+.
+-
+-            decimal_exponent += n;
+-
+-            // We may now just stop. But instead look if the buffer could be
+-            // decremented to bring V closer to w.
+-            //
+-            // pow10 = 10^n is now 1 ulp in the decimal representation V.
+-            // The rounding procedure works with diyfp's with an implicit
+-            // exponent of e.
+-            //
+-            //      10^n = (10^n * 2^-e) * 2^e = ulp * 2^e
+-            //
+-            const std::uint64_t ten_n = std::uint64_t{pow10} << -one.e;
+-            grisu2_round(buffer, length, dist, delta, rest, ten_n);
+-
+-            return;
+-        }
+-
+-        pow10 /= 10;
+-        //
+-        //      pow10 = 10^(n-1) <= p1 < 10^n
+-        // Invariants restored.
+-    }
+-
+-    // 2)
+-    //
+-    // The digits of the integral part have been generated:
+-    //
+-    //      M+ = d[k-1]...d[1]d[0] + p2 * 2^e
+-    //         = buffer            + p2 * 2^e
+-    //
+-    // Now generate the digits of the fractional part p2 * 2^e.
+-    //
+-    // Note:
+-    // No decimal point is generated: the exponent is adjusted instead.
+-    //
+-    // p2 actually represents the fraction
+-    //
+-    //      p2 * 2^e
+-    //          = p2 / 2^-e
+-    //          = d[-1] / 10^1 + d[-2] / 10^2 + ...
+-    //
+-    // Now generate the digits d[-m] of p1 from left to right (m = 1,2,...)
+-    //
+-    //      p2 * 2^e = d[-1]d[-2]...d[-m] * 10^-m
+-    //                      + 10^-m * (d[-m-1] / 10^1 + d[-m-2] / 10^2 + ...)
+-    //
+-    // using
+-    //
+-    //      10^m * p2 = ((10^m * p2) div 2^-e) * 2^-e + ((10^m * p2) mod 2^-e)
+-    //                = (                   d) * 2^-e + (                   r)
+-    //
+-    // or
+-    //      10^m * p2 * 2^e = d + r * 2^e
+-    //
+-    // i.e.
+-    //
+-    //      M+ = buffer + p2 * 2^e
+-    //         = buffer + 10^-m * (d + r * 2^e)
+-    //         = (buffer * 10^m + d) * 10^-m + 10^-m * r * 2^e
+-    //
+-    // and stop as soon as 10^-m * r * 2^e <= delta * 2^e
+-
+-    JSON_ASSERT(p2 > delta);
+-
+-    int m = 0;
+-    for (;;)
+-    {
+-        // Invariant:
+-        //      M+ = buffer * 10^-m + 10^-m * (d[-m-1] / 10 + d[-m-2] / 10^2 + ...) * 2^e
+-        //         = buffer * 10^-m + 10^-m * (p2                                 ) * 2^e
+-        //         = buffer * 10^-m + 10^-m * (1/10 * (10 * p2)                   ) * 2^e
+-        //         = buffer * 10^-m + 10^-m * (1/10 * ((10*p2 div 2^-e) * 2^-e + (10*p2 mod 2^-e)) * 2^e
+-        //
+-        JSON_ASSERT(p2 <= (std::numeric_limits<std::uint64_t>::max)() / 10);
+-        p2 *= 10;
+-        const std::uint64_t d = p2 >> -one.e;     // d = (10 * p2) div 2^-e
+-        const std::uint64_t r = p2 & (one.f - 1); // r = (10 * p2) mod 2^-e
+-        //
+-        //      M+ = buffer * 10^-m + 10^-m * (1/10 * (d * 2^-e + r) * 2^e
+-        //         = buffer * 10^-m + 10^-m * (1/10 * (d + r * 2^e))
+-        //         = (buffer * 10 + d) * 10^(-m-1) + 10^(-m-1) * r * 2^e
+-        //
+-        JSON_ASSERT(d <= 9);
+-        buffer[length++] = static_cast<char>('0' + d); // buffer := buffer * 10 + d
+-        //
+-        //      M+ = buffer * 10^(-m-1) + 10^(-m-1) * r * 2^e
+-        //
+-        p2 = r;
+-        m++;
+-        //
+-        //      M+ = buffer * 10^-m + 10^-m * p2 * 2^e
+-        // Invariant restored.
+-
+-        // Check if enough digits have been generated.
+-        //
+-        //      10^-m * p2 * 2^e <= delta * 2^e
+-        //              p2 * 2^e <= 10^m * delta * 2^e
+-        //                    p2 <= 10^m * delta
+-        delta *= 10;
+-        dist  *= 10;
+-        if (p2 <= delta)
+-        {
+-            break;
+-        }
+-    }
+-
+-    // V = buffer * 10^-m, with M- <= V <= M+.
+-
+-    decimal_exponent -= m;
+-
+-    // 1 ulp in the decimal representation is now 10^-m.
+-    // Since delta and dist are now scaled by 10^m, we need to do the
+-    // same with ulp in order to keep the units in sync.
+-    //
+-    //      10^m * 10^-m = 1 = 2^-e * 2^e = ten_m * 2^e
+-    //
+-    const std::uint64_t ten_m = one.f;
+-    grisu2_round(buffer, length, dist, delta, p2, ten_m);
+-
+-    // By construction this algorithm generates the shortest possible decimal
+-    // number (Loitsch, Theorem 6.2) which rounds back to w.
+-    // For an input number of precision p, at least
+-    //
+-    //      N = 1 + ceil(p * log_10(2))
+-    //
+-    // decimal digits are sufficient to identify all binary floating-point
+-    // numbers (Matula, "In-and-Out conversions").
+-    // This implies that the algorithm does not produce more than N decimal
+-    // digits.
+-    //
+-    //      N = 17 for p = 53 (IEEE double precision)
+-    //      N = 9  for p = 24 (IEEE single precision)
+-}
+-
+-/*!
+-v = buf * 10^decimal_exponent
+-len is the length of the buffer (number of decimal digits)
+-The buffer must be large enough, i.e. >= max_digits10.
+-*/
+-JSON_HEDLEY_NON_NULL(1)
+-inline void grisu2(char* buf, int& len, int& decimal_exponent,
+-                   diyfp m_minus, diyfp v, diyfp m_plus)
+-{
+-    JSON_ASSERT(m_plus.e == m_minus.e);
+-    JSON_ASSERT(m_plus.e == v.e);
+-
+-    //  --------(-----------------------+-----------------------)--------    (A)
+-    //          m-                      v                       m+
+-    //
+-    //  --------------------(-----------+-----------------------)--------    (B)
+-    //                      m-          v                       m+
+-    //
+-    // First scale v (and m- and m+) such that the exponent is in the range
+-    // [alpha, gamma].
+-
+-    const cached_power cached = get_cached_power_for_binary_exponent(m_plus.e);
+-
+-    const diyfp c_minus_k(cached.f, cached.e); // = c ~= 10^-k
+-
+-    // The exponent of the products is = v.e + c_minus_k.e + q and is in the range [alpha,gamma]
+-    const diyfp w       = diyfp::mul(v,       c_minus_k);
+-    const diyfp w_minus = diyfp::mul(m_minus, c_minus_k);
+-    const diyfp w_plus  = diyfp::mul(m_plus,  c_minus_k);
+-
+-    //  ----(---+---)---------------(---+---)---------------(---+---)----
+-    //          w-                      w                       w+
+-    //          = c*m-                  = c*v                   = c*m+
+-    //
+-    // diyfp::mul rounds its result and c_minus_k is approximated too. w, w- and
+-    // w+ are now off by a small amount.
+-    // In fact:
+-    //
+-    //      w - v * 10^k < 1 ulp
+-    //
+-    // To account for this inaccuracy, add resp. subtract 1 ulp.
+-    //
+-    //  --------+---[---------------(---+---)---------------]---+--------
+-    //          w-  M-                  w                   M+  w+
+-    //
+-    // Now any number in [M-, M+] (bounds included) will round to w when input,
+-    // regardless of how the input rounding algorithm breaks ties.
+-    //
+-    // And digit_gen generates the shortest possible such number in [M-, M+].
+-    // Note that this does not mean that Grisu2 always generates the shortest
+-    // possible number in the interval (m-, m+).
+-    const diyfp M_minus(w_minus.f + 1, w_minus.e);
+-    const diyfp M_plus (w_plus.f  - 1, w_plus.e );
+-
+-    decimal_exponent = -cached.k; // = -(-k) = k
+-
+-    grisu2_digit_gen(buf, len, decimal_exponent, M_minus, w, M_plus);
+-}
+-
+-/*!
+-v = buf * 10^decimal_exponent
+-len is the length of the buffer (number of decimal digits)
+-The buffer must be large enough, i.e. >= max_digits10.
+-*/
+-template<typename FloatType>
+-JSON_HEDLEY_NON_NULL(1)
+-void grisu2(char* buf, int& len, int& decimal_exponent, FloatType value)
+-{
+-    static_assert(diyfp::kPrecision >= std::numeric_limits<FloatType>::digits + 3,
+-                  "internal error: not enough precision");
+-
+-    JSON_ASSERT(std::isfinite(value));
+-    JSON_ASSERT(value > 0);
+-
+-    // If the neighbors (and boundaries) of 'value' are always computed for double-precision
+-    // numbers, all float's can be recovered using strtod (and strtof). However, the resulting
+-    // decimal representations are not exactly "short".
+-    //
+-    // The documentation for 'std::to_chars' (https://en.cppreference.com/w/cpp/utility/to_chars)
+-    // says "value is converted to a string as if by std::sprintf in the default ("C") locale"
+-    // and since sprintf promotes floats to doubles, I think this is exactly what 'std::to_chars'
+-    // does.
+-    // On the other hand, the documentation for 'std::to_chars' requires that "parsing the
+-    // representation using the corresponding std::from_chars function recovers value exactly". That
+-    // indicates that single precision floating-point numbers should be recovered using
+-    // 'std::strtof'.
+-    //
+-    // NB: If the neighbors are computed for single-precision numbers, there is a single float
+-    //     (7.0385307e-26f) which can't be recovered using strtod. The resulting double precision
+-    //     value is off by 1 ulp.
+-#if 0
+-    const boundaries w = compute_boundaries(static_cast<double>(value));
+-#else
+-    const boundaries w = compute_boundaries(value);
+-#endif
+-
+-    grisu2(buf, len, decimal_exponent, w.minus, w.w, w.plus);
+-}
+-
+-/*!
+-@brief appends a decimal representation of e to buf
+-@return a pointer to the element following the exponent.
+-@pre -1000 < e < 1000
+-*/
+-JSON_HEDLEY_NON_NULL(1)
+-JSON_HEDLEY_RETURNS_NON_NULL
+-inline char* append_exponent(char* buf, int e)
+-{
+-    JSON_ASSERT(e > -1000);
+-    JSON_ASSERT(e <  1000);
+-
+-    if (e < 0)
+-    {
+-        e = -e;
+-        *buf++ = '-';
+-    }
+-    else
+-    {
+-        *buf++ = '+';
+-    }
+-
+-    auto k = static_cast<std::uint32_t>(e);
+-    if (k < 10)
+-    {
+-        // Always print at least two digits in the exponent.
+-        // This is for compatibility with printf("%g").
+-        *buf++ = '0';
+-        *buf++ = static_cast<char>('0' + k);
+-    }
+-    else if (k < 100)
+-    {
+-        *buf++ = static_cast<char>('0' + k / 10);
+-        k %= 10;
+-        *buf++ = static_cast<char>('0' + k);
+-    }
+-    else
+-    {
+-        *buf++ = static_cast<char>('0' + k / 100);
+-        k %= 100;
+-        *buf++ = static_cast<char>('0' + k / 10);
+-        k %= 10;
+-        *buf++ = static_cast<char>('0' + k);
+-    }
+-
+-    return buf;
+-}
+-
+-/*!
+-@brief prettify v = buf * 10^decimal_exponent
+-
+-If v is in the range [10^min_exp, 10^max_exp) it will be printed in fixed-point
+-notation. Otherwise it will be printed in exponential notation.
+-
+-@pre min_exp < 0
+-@pre max_exp > 0
+-*/
+-JSON_HEDLEY_NON_NULL(1)
+-JSON_HEDLEY_RETURNS_NON_NULL
+-inline char* format_buffer(char* buf, int len, int decimal_exponent,
+-                           int min_exp, int max_exp)
+-{
+-    JSON_ASSERT(min_exp < 0);
+-    JSON_ASSERT(max_exp > 0);
+-
+-    const int k = len;
+-    const int n = len + decimal_exponent;
+-
+-    // v = buf * 10^(n-k)
+-    // k is the length of the buffer (number of decimal digits)
+-    // n is the position of the decimal point relative to the start of the buffer.
+-
+-    if (k <= n && n <= max_exp)
+-    {
+-        // digits[000]
+-        // len <= max_exp + 2
+-
+-        std::memset(buf + k, '0', static_cast<size_t>(n) - static_cast<size_t>(k));
+-        // Make it look like a floating-point number (#362, #378)
+-        buf[n + 0] = '.';
+-        buf[n + 1] = '0';
+-        return buf + (static_cast<size_t>(n) + 2);
+-    }
+-
+-    if (0 < n && n <= max_exp)
+-    {
+-        // dig.its
+-        // len <= max_digits10 + 1
+-
+-        JSON_ASSERT(k > n);
+-
+-        std::memmove(buf + (static_cast<size_t>(n) + 1), buf + n, static_cast<size_t>(k) - static_cast<size_t>(n));
+-        buf[n] = '.';
+-        return buf + (static_cast<size_t>(k) + 1U);
+-    }
+-
+-    if (min_exp < n && n <= 0)
+-    {
+-        // 0.[000]digits
+-        // len <= 2 + (-min_exp - 1) + max_digits10
+-
+-        std::memmove(buf + (2 + static_cast<size_t>(-n)), buf, static_cast<size_t>(k));
+-        buf[0] = '0';
+-        buf[1] = '.';
+-        std::memset(buf + 2, '0', static_cast<size_t>(-n));
+-        return buf + (2U + static_cast<size_t>(-n) + static_cast<size_t>(k));
+-    }
+-
+-    if (k == 1)
+-    {
+-        // dE+123
+-        // len <= 1 + 5
+-
+-        buf += 1;
+-    }
+-    else
+-    {
+-        // d.igitsE+123
+-        // len <= max_digits10 + 1 + 5
+-
+-        std::memmove(buf + 2, buf + 1, static_cast<size_t>(k) - 1);
+-        buf[1] = '.';
+-        buf += 1 + static_cast<size_t>(k);
+-    }
+-
+-    *buf++ = 'e';
+-    return append_exponent(buf, n - 1);
+-}
+-
+-} // namespace dtoa_impl
+-
+-/*!
+-@brief generates a decimal representation of the floating-point number value in [first, last).
+-
+-The format of the resulting decimal representation is similar to printf's %g
+-format. Returns an iterator pointing past-the-end of the decimal representation.
+-
+-@note The input number must be finite, i.e. NaN's and Inf's are not supported.
+-@note The buffer must be large enough.
+-@note The result is NOT null-terminated.
+-*/
+-template<typename FloatType>
+-JSON_HEDLEY_NON_NULL(1, 2)
+-JSON_HEDLEY_RETURNS_NON_NULL
+-char* to_chars(char* first, const char* last, FloatType value)
+-{
+-    static_cast<void>(last); // maybe unused - fix warning
+-    JSON_ASSERT(std::isfinite(value));
+-
+-    // Use signbit(value) instead of (value < 0) since signbit works for -0.
+-    if (std::signbit(value))
+-    {
+-        value = -value;
+-        *first++ = '-';
+-    }
+-
+-#ifdef __GNUC__
+-#pragma GCC diagnostic push
+-#pragma GCC diagnostic ignored "-Wfloat-equal"
+-#endif
+-    if (value == 0) // +-0
+-    {
+-        *first++ = '0';
+-        // Make it look like a floating-point number (#362, #378)
+-        *first++ = '.';
+-        *first++ = '0';
+-        return first;
+-    }
+-#ifdef __GNUC__
+-#pragma GCC diagnostic pop
+-#endif
+-
+-    JSON_ASSERT(last - first >= std::numeric_limits<FloatType>::max_digits10);
+-
+-    // Compute v = buffer * 10^decimal_exponent.
+-    // The decimal digits are stored in the buffer, which needs to be interpreted
+-    // as an unsigned decimal integer.
+-    // len is the length of the buffer, i.e. the number of decimal digits.
+-    int len = 0;
+-    int decimal_exponent = 0;
+-    dtoa_impl::grisu2(first, len, decimal_exponent, value);
+-
+-    JSON_ASSERT(len <= std::numeric_limits<FloatType>::max_digits10);
+-
+-    // Format the buffer like printf("%.*g", prec, value)
+-    constexpr int kMinExp = -4;
+-    // Use digits10 here to increase compatibility with version 2.
+-    constexpr int kMaxExp = std::numeric_limits<FloatType>::digits10;
+-
+-    JSON_ASSERT(last - first >= kMaxExp + 2);
+-    JSON_ASSERT(last - first >= 2 + (-kMinExp - 1) + std::numeric_limits<FloatType>::max_digits10);
+-    JSON_ASSERT(last - first >= std::numeric_limits<FloatType>::max_digits10 + 6);
+-
+-    return dtoa_impl::format_buffer(first, len, decimal_exponent, kMinExp, kMaxExp);
+-}
+-
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/output/binary_writer.hpp>
+-
+-// #include <nlohmann/detail/output/output_adapters.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-///////////////////
+-// serialization //
+-///////////////////
+-
+-/// how to treat decoding errors
+-enum class error_handler_t
+-{
+-    strict,  ///< throw a type_error exception in case of invalid UTF-8
+-    replace, ///< replace invalid UTF-8 sequences with U+FFFD
+-    ignore   ///< ignore invalid UTF-8 sequences
+-};
+-
+-template<typename BasicJsonType>
+-class serializer
+-{
+-    using string_t = typename BasicJsonType::string_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using binary_char_t = typename BasicJsonType::binary_t::value_type;
+-    static constexpr std::uint8_t UTF8_ACCEPT = 0;
+-    static constexpr std::uint8_t UTF8_REJECT = 1;
+-
+-  public:
+-    /*!
+-    @param[in] s  output stream to serialize to
+-    @param[in] ichar  indentation character to use
+-    @param[in] error_handler_  how to react on decoding errors
+-    */
+-    serializer(output_adapter_t<char> s, const char ichar,
+-               error_handler_t error_handler_ = error_handler_t::strict)
+-        : o(std::move(s))
+-        , loc(std::localeconv())
+-        , thousands_sep(loc->thousands_sep == nullptr ? '\0' : std::char_traits<char>::to_char_type(* (loc->thousands_sep)))
+-        , decimal_point(loc->decimal_point == nullptr ? '\0' : std::char_traits<char>::to_char_type(* (loc->decimal_point)))
+-        , indent_char(ichar)
+-        , indent_string(512, indent_char)
+-        , error_handler(error_handler_)
+-    {}
+-
+-    // delete because of pointer members
+-    serializer(const serializer&) = delete;
+-    serializer& operator=(const serializer&) = delete;
+-    serializer(serializer&&) = delete;
+-    serializer& operator=(serializer&&) = delete;
+-    ~serializer() = default;
+-
+-    /*!
+-    @brief internal implementation of the serialization function
+-
+-    This function is called by the public member function dump and organizes
+-    the serialization internally. The indentation level is propagated as
+-    additional parameter. In case of arrays and objects, the function is
+-    called recursively.
+-
+-    - strings and object keys are escaped using `escape_string()`
+-    - integer numbers are converted implicitly via `operator<<`
+-    - floating-point numbers are converted to a string using `"%g"` format
+-    - binary values are serialized as objects containing the subtype and the
+-      byte array
+-
+-    @param[in] val               value to serialize
+-    @param[in] pretty_print      whether the output shall be pretty-printed
+-    @param[in] ensure_ascii If @a ensure_ascii is true, all non-ASCII characters
+-    in the output are escaped with `\uXXXX` sequences, and the result consists
+-    of ASCII characters only.
+-    @param[in] indent_step       the indent level
+-    @param[in] current_indent    the current indent level (only used internally)
+-    */
+-    void dump(const BasicJsonType& val,
+-              const bool pretty_print,
+-              const bool ensure_ascii,
+-              const unsigned int indent_step,
+-              const unsigned int current_indent = 0)
+-    {
+-        switch (val.m_type)
+-        {
+-            case value_t::object:
+-            {
+-                if (val.m_value.object->empty())
+-                {
+-                    o->write_characters("{}", 2);
+-                    return;
+-                }
+-
+-                if (pretty_print)
+-                {
+-                    o->write_characters("{\n", 2);
+-
+-                    // variable to hold indentation for recursive calls
+-                    const auto new_indent = current_indent + indent_step;
+-                    if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent))
+-                    {
+-                        indent_string.resize(indent_string.size() * 2, ' ');
+-                    }
+-
+-                    // first n-1 elements
+-                    auto i = val.m_value.object->cbegin();
+-                    for (std::size_t cnt = 0; cnt < val.m_value.object->size() - 1; ++cnt, ++i)
+-                    {
+-                        o->write_characters(indent_string.c_str(), new_indent);
+-                        o->write_character('\"');
+-                        dump_escaped(i->first, ensure_ascii);
+-                        o->write_characters("\": ", 3);
+-                        dump(i->second, true, ensure_ascii, indent_step, new_indent);
+-                        o->write_characters(",\n", 2);
+-                    }
+-
+-                    // last element
+-                    JSON_ASSERT(i != val.m_value.object->cend());
+-                    JSON_ASSERT(std::next(i) == val.m_value.object->cend());
+-                    o->write_characters(indent_string.c_str(), new_indent);
+-                    o->write_character('\"');
+-                    dump_escaped(i->first, ensure_ascii);
+-                    o->write_characters("\": ", 3);
+-                    dump(i->second, true, ensure_ascii, indent_step, new_indent);
+-
+-                    o->write_character('\n');
+-                    o->write_characters(indent_string.c_str(), current_indent);
+-                    o->write_character('}');
+-                }
+-                else
+-                {
+-                    o->write_character('{');
+-
+-                    // first n-1 elements
+-                    auto i = val.m_value.object->cbegin();
+-                    for (std::size_t cnt = 0; cnt < val.m_value.object->size() - 1; ++cnt, ++i)
+-                    {
+-                        o->write_character('\"');
+-                        dump_escaped(i->first, ensure_ascii);
+-                        o->write_characters("\":", 2);
+-                        dump(i->second, false, ensure_ascii, indent_step, current_indent);
+-                        o->write_character(',');
+-                    }
+-
+-                    // last element
+-                    JSON_ASSERT(i != val.m_value.object->cend());
+-                    JSON_ASSERT(std::next(i) == val.m_value.object->cend());
+-                    o->write_character('\"');
+-                    dump_escaped(i->first, ensure_ascii);
+-                    o->write_characters("\":", 2);
+-                    dump(i->second, false, ensure_ascii, indent_step, current_indent);
+-
+-                    o->write_character('}');
+-                }
+-
+-                return;
+-            }
+-
+-            case value_t::array:
+-            {
+-                if (val.m_value.array->empty())
+-                {
+-                    o->write_characters("[]", 2);
+-                    return;
+-                }
+-
+-                if (pretty_print)
+-                {
+-                    o->write_characters("[\n", 2);
+-
+-                    // variable to hold indentation for recursive calls
+-                    const auto new_indent = current_indent + indent_step;
+-                    if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent))
+-                    {
+-                        indent_string.resize(indent_string.size() * 2, ' ');
+-                    }
+-
+-                    // first n-1 elements
+-                    for (auto i = val.m_value.array->cbegin();
+-                            i != val.m_value.array->cend() - 1; ++i)
+-                    {
+-                        o->write_characters(indent_string.c_str(), new_indent);
+-                        dump(*i, true, ensure_ascii, indent_step, new_indent);
+-                        o->write_characters(",\n", 2);
+-                    }
+-
+-                    // last element
+-                    JSON_ASSERT(!val.m_value.array->empty());
+-                    o->write_characters(indent_string.c_str(), new_indent);
+-                    dump(val.m_value.array->back(), true, ensure_ascii, indent_step, new_indent);
+-
+-                    o->write_character('\n');
+-                    o->write_characters(indent_string.c_str(), current_indent);
+-                    o->write_character(']');
+-                }
+-                else
+-                {
+-                    o->write_character('[');
+-
+-                    // first n-1 elements
+-                    for (auto i = val.m_value.array->cbegin();
+-                            i != val.m_value.array->cend() - 1; ++i)
+-                    {
+-                        dump(*i, false, ensure_ascii, indent_step, current_indent);
+-                        o->write_character(',');
+-                    }
+-
+-                    // last element
+-                    JSON_ASSERT(!val.m_value.array->empty());
+-                    dump(val.m_value.array->back(), false, ensure_ascii, indent_step, current_indent);
+-
+-                    o->write_character(']');
+-                }
+-
+-                return;
+-            }
+-
+-            case value_t::string:
+-            {
+-                o->write_character('\"');
+-                dump_escaped(*val.m_value.string, ensure_ascii);
+-                o->write_character('\"');
+-                return;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                if (pretty_print)
+-                {
+-                    o->write_characters("{\n", 2);
+-
+-                    // variable to hold indentation for recursive calls
+-                    const auto new_indent = current_indent + indent_step;
+-                    if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent))
+-                    {
+-                        indent_string.resize(indent_string.size() * 2, ' ');
+-                    }
+-
+-                    o->write_characters(indent_string.c_str(), new_indent);
+-
+-                    o->write_characters("\"bytes\": [", 10);
+-
+-                    if (!val.m_value.binary->empty())
+-                    {
+-                        for (auto i = val.m_value.binary->cbegin();
+-                                i != val.m_value.binary->cend() - 1; ++i)
+-                        {
+-                            dump_integer(*i);
+-                            o->write_characters(", ", 2);
+-                        }
+-                        dump_integer(val.m_value.binary->back());
+-                    }
+-
+-                    o->write_characters("],\n", 3);
+-                    o->write_characters(indent_string.c_str(), new_indent);
+-
+-                    o->write_characters("\"subtype\": ", 11);
+-                    if (val.m_value.binary->has_subtype())
+-                    {
+-                        dump_integer(val.m_value.binary->subtype());
+-                    }
+-                    else
+-                    {
+-                        o->write_characters("null", 4);
+-                    }
+-                    o->write_character('\n');
+-                    o->write_characters(indent_string.c_str(), current_indent);
+-                    o->write_character('}');
+-                }
+-                else
+-                {
+-                    o->write_characters("{\"bytes\":[", 10);
+-
+-                    if (!val.m_value.binary->empty())
+-                    {
+-                        for (auto i = val.m_value.binary->cbegin();
+-                                i != val.m_value.binary->cend() - 1; ++i)
+-                        {
+-                            dump_integer(*i);
+-                            o->write_character(',');
+-                        }
+-                        dump_integer(val.m_value.binary->back());
+-                    }
+-
+-                    o->write_characters("],\"subtype\":", 12);
+-                    if (val.m_value.binary->has_subtype())
+-                    {
+-                        dump_integer(val.m_value.binary->subtype());
+-                        o->write_character('}');
+-                    }
+-                    else
+-                    {
+-                        o->write_characters("null}", 5);
+-                    }
+-                }
+-                return;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                if (val.m_value.boolean)
+-                {
+-                    o->write_characters("true", 4);
+-                }
+-                else
+-                {
+-                    o->write_characters("false", 5);
+-                }
+-                return;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                dump_integer(val.m_value.number_integer);
+-                return;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                dump_integer(val.m_value.number_unsigned);
+-                return;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                dump_float(val.m_value.number_float);
+-                return;
+-            }
+-
+-            case value_t::discarded:
+-            {
+-                o->write_characters("<discarded>", 11);
+-                return;
+-            }
+-
+-            case value_t::null:
+-            {
+-                o->write_characters("null", 4);
+-                return;
+-            }
+-
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-    }
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /*!
+-    @brief dump escaped string
+-
+-    Escape a string by replacing certain special characters by a sequence of an
+-    escape character (backslash) and another character and other control
+-    characters by a sequence of "\u" followed by a four-digit hex
+-    representation. The escaped string is written to output stream @a o.
+-
+-    @param[in] s  the string to escape
+-    @param[in] ensure_ascii  whether to escape non-ASCII characters with
+-                             \uXXXX sequences
+-
+-    @complexity Linear in the length of string @a s.
+-    */
+-    void dump_escaped(const string_t& s, const bool ensure_ascii)
+-    {
+-        std::uint32_t codepoint{};
+-        std::uint8_t state = UTF8_ACCEPT;
+-        std::size_t bytes = 0;  // number of bytes written to string_buffer
+-
+-        // number of bytes written at the point of the last valid byte
+-        std::size_t bytes_after_last_accept = 0;
+-        std::size_t undumped_chars = 0;
+-
+-        for (std::size_t i = 0; i < s.size(); ++i)
+-        {
+-            const auto byte = static_cast<std::uint8_t>(s[i]);
+-
+-            switch (decode(state, codepoint, byte))
+-            {
+-                case UTF8_ACCEPT:  // decode found a new code point
+-                {
+-                    switch (codepoint)
+-                    {
+-                        case 0x08: // backspace
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 'b';
+-                            break;
+-                        }
+-
+-                        case 0x09: // horizontal tab
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 't';
+-                            break;
+-                        }
+-
+-                        case 0x0A: // newline
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 'n';
+-                            break;
+-                        }
+-
+-                        case 0x0C: // formfeed
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 'f';
+-                            break;
+-                        }
+-
+-                        case 0x0D: // carriage return
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 'r';
+-                            break;
+-                        }
+-
+-                        case 0x22: // quotation mark
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = '\"';
+-                            break;
+-                        }
+-
+-                        case 0x5C: // reverse solidus
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = '\\';
+-                            break;
+-                        }
+-
+-                        default:
+-                        {
+-                            // escape control characters (0x00..0x1F) or, if
+-                            // ensure_ascii parameter is used, non-ASCII characters
+-                            if ((codepoint <= 0x1F) || (ensure_ascii && (codepoint >= 0x7F)))
+-                            {
+-                                if (codepoint <= 0xFFFF)
+-                                {
+-                                    // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-                                    static_cast<void>((std::snprintf)(string_buffer.data() + bytes, 7, "\\u%04x",
+-                                                                      static_cast<std::uint16_t>(codepoint)));
+-                                    bytes += 6;
+-                                }
+-                                else
+-                                {
+-                                    // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-                                    static_cast<void>((std::snprintf)(string_buffer.data() + bytes, 13, "\\u%04x\\u%04x",
+-                                                                      static_cast<std::uint16_t>(0xD7C0u + (codepoint >> 10u)),
+-                                                                      static_cast<std::uint16_t>(0xDC00u + (codepoint & 0x3FFu))));
+-                                    bytes += 12;
+-                                }
+-                            }
+-                            else
+-                            {
+-                                // copy byte to buffer (all previous bytes
+-                                // been copied have in default case above)
+-                                string_buffer[bytes++] = s[i];
+-                            }
+-                            break;
+-                        }
+-                    }
+-
+-                    // write buffer and reset index; there must be 13 bytes
+-                    // left, as this is the maximal number of bytes to be
+-                    // written ("\uxxxx\uxxxx\0") for one code point
+-                    if (string_buffer.size() - bytes < 13)
+-                    {
+-                        o->write_characters(string_buffer.data(), bytes);
+-                        bytes = 0;
+-                    }
+-
+-                    // remember the byte position of this accept
+-                    bytes_after_last_accept = bytes;
+-                    undumped_chars = 0;
+-                    break;
+-                }
+-
+-                case UTF8_REJECT:  // decode found invalid UTF-8 byte
+-                {
+-                    switch (error_handler)
+-                    {
+-                        case error_handler_t::strict:
+-                        {
+-                            std::stringstream ss;
+-                            ss << std::uppercase << std::setfill('0') << std::setw(2) << std::hex << (byte | 0);
+-                            JSON_THROW(type_error::create(316, "invalid UTF-8 byte at index " + std::to_string(i) + ": 0x" + ss.str(), BasicJsonType()));
+-                        }
+-
+-                        case error_handler_t::ignore:
+-                        case error_handler_t::replace:
+-                        {
+-                            // in case we saw this character the first time, we
+-                            // would like to read it again, because the byte
+-                            // may be OK for itself, but just not OK for the
+-                            // previous sequence
+-                            if (undumped_chars > 0)
+-                            {
+-                                --i;
+-                            }
+-
+-                            // reset length buffer to the last accepted index;
+-                            // thus removing/ignoring the invalid characters
+-                            bytes = bytes_after_last_accept;
+-
+-                            if (error_handler == error_handler_t::replace)
+-                            {
+-                                // add a replacement character
+-                                if (ensure_ascii)
+-                                {
+-                                    string_buffer[bytes++] = '\\';
+-                                    string_buffer[bytes++] = 'u';
+-                                    string_buffer[bytes++] = 'f';
+-                                    string_buffer[bytes++] = 'f';
+-                                    string_buffer[bytes++] = 'f';
+-                                    string_buffer[bytes++] = 'd';
+-                                }
+-                                else
+-                                {
+-                                    string_buffer[bytes++] = detail::binary_writer<BasicJsonType, char>::to_char_type('\xEF');
+-                                    string_buffer[bytes++] = detail::binary_writer<BasicJsonType, char>::to_char_type('\xBF');
+-                                    string_buffer[bytes++] = detail::binary_writer<BasicJsonType, char>::to_char_type('\xBD');
+-                                }
+-
+-                                // write buffer and reset index; there must be 13 bytes
+-                                // left, as this is the maximal number of bytes to be
+-                                // written ("\uxxxx\uxxxx\0") for one code point
+-                                if (string_buffer.size() - bytes < 13)
+-                                {
+-                                    o->write_characters(string_buffer.data(), bytes);
+-                                    bytes = 0;
+-                                }
+-
+-                                bytes_after_last_accept = bytes;
+-                            }
+-
+-                            undumped_chars = 0;
+-
+-                            // continue processing the string
+-                            state = UTF8_ACCEPT;
+-                            break;
+-                        }
+-
+-                        default:            // LCOV_EXCL_LINE
+-                            JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-                    }
+-                    break;
+-                }
+-
+-                default:  // decode found yet incomplete multi-byte code point
+-                {
+-                    if (!ensure_ascii)
+-                    {
+-                        // code point will not be escaped - copy byte to buffer
+-                        string_buffer[bytes++] = s[i];
+-                    }
+-                    ++undumped_chars;
+-                    break;
+-                }
+-            }
+-        }
+-
+-        // we finished processing the string
+-        if (JSON_HEDLEY_LIKELY(state == UTF8_ACCEPT))
+-        {
+-            // write buffer
+-            if (bytes > 0)
+-            {
+-                o->write_characters(string_buffer.data(), bytes);
+-            }
+-        }
+-        else
+-        {
+-            // we finish reading, but do not accept: string was incomplete
+-            switch (error_handler)
+-            {
+-                case error_handler_t::strict:
+-                {
+-                    std::stringstream ss;
+-                    ss << std::uppercase << std::setfill('0') << std::setw(2) << std::hex << (static_cast<std::uint8_t>(s.back()) | 0);
+-                    JSON_THROW(type_error::create(316, "incomplete UTF-8 string; last byte: 0x" + ss.str(), BasicJsonType()));
+-                }
+-
+-                case error_handler_t::ignore:
+-                {
+-                    // write all accepted bytes
+-                    o->write_characters(string_buffer.data(), bytes_after_last_accept);
+-                    break;
+-                }
+-
+-                case error_handler_t::replace:
+-                {
+-                    // write all accepted bytes
+-                    o->write_characters(string_buffer.data(), bytes_after_last_accept);
+-                    // add a replacement character
+-                    if (ensure_ascii)
+-                    {
+-                        o->write_characters("\\ufffd", 6);
+-                    }
+-                    else
+-                    {
+-                        o->write_characters("\xEF\xBF\xBD", 3);
+-                    }
+-                    break;
+-                }
+-
+-                default:            // LCOV_EXCL_LINE
+-                    JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-            }
+-        }
+-    }
+-
+-  private:
+-    /*!
+-    @brief count digits
+-
+-    Count the number of decimal (base 10) digits for an input unsigned integer.
+-
+-    @param[in] x  unsigned integer number to count its digits
+-    @return    number of decimal digits
+-    */
+-    inline unsigned int count_digits(number_unsigned_t x) noexcept
+-    {
+-        unsigned int n_digits = 1;
+-        for (;;)
+-        {
+-            if (x < 10)
+-            {
+-                return n_digits;
+-            }
+-            if (x < 100)
+-            {
+-                return n_digits + 1;
+-            }
+-            if (x < 1000)
+-            {
+-                return n_digits + 2;
+-            }
+-            if (x < 10000)
+-            {
+-                return n_digits + 3;
+-            }
+-            x = x / 10000u;
+-            n_digits += 4;
+-        }
+-    }
+-
+-    // templates to avoid warnings about useless casts
+-    template <typename NumberType, enable_if_t<std::is_signed<NumberType>::value, int> = 0>
+-    bool is_negative_number(NumberType x)
+-    {
+-        return x < 0;
+-    }
+-
+-    template < typename NumberType, enable_if_t <std::is_unsigned<NumberType>::value, int > = 0 >
+-    bool is_negative_number(NumberType /*unused*/)
+-    {
+-        return false;
+-    }
+-
+-    /*!
+-    @brief dump an integer
+-
+-    Dump a given integer to output stream @a o. Works internally with
+-    @a number_buffer.
+-
+-    @param[in] x  integer number (signed or unsigned) to dump
+-    @tparam NumberType either @a number_integer_t or @a number_unsigned_t
+-    */
+-    template < typename NumberType, detail::enable_if_t <
+-                   std::is_integral<NumberType>::value ||
+-                   std::is_same<NumberType, number_unsigned_t>::value ||
+-                   std::is_same<NumberType, number_integer_t>::value ||
+-                   std::is_same<NumberType, binary_char_t>::value,
+-                   int > = 0 >
+-    void dump_integer(NumberType x)
+-    {
+-        static constexpr std::array<std::array<char, 2>, 100> digits_to_99
+-        {
+-            {
+-                {{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}},
+-                {{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}},
+-                {{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}},
+-                {{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}},
+-                {{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}},
+-                {{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}},
+-                {{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}},
+-                {{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}},
+-                {{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}},
+-                {{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}},
+-            }
+-        };
+-
+-        // special case for "0"
+-        if (x == 0)
+-        {
+-            o->write_character('0');
+-            return;
+-        }
+-
+-        // use a pointer to fill the buffer
+-        auto buffer_ptr = number_buffer.begin(); // NOLINT(llvm-qualified-auto,readability-qualified-auto,cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-
+-        number_unsigned_t abs_value;
+-
+-        unsigned int n_chars{};
+-
+-        if (is_negative_number(x))
+-        {
+-            *buffer_ptr = '-';
+-            abs_value = remove_sign(static_cast<number_integer_t>(x));
+-
+-            // account one more byte for the minus sign
+-            n_chars = 1 + count_digits(abs_value);
+-        }
+-        else
+-        {
+-            abs_value = static_cast<number_unsigned_t>(x);
+-            n_chars = count_digits(abs_value);
+-        }
+-
+-        // spare 1 byte for '\0'
+-        JSON_ASSERT(n_chars < number_buffer.size() - 1);
+-
+-        // jump to the end to generate the string from backward,
+-        // so we later avoid reversing the result
+-        buffer_ptr += n_chars;
+-
+-        // Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
+-        // See: https://www.youtube.com/watch?v=o4-CwDo2zpg
+-        while (abs_value >= 100)
+-        {
+-            const auto digits_index = static_cast<unsigned>((abs_value % 100));
+-            abs_value /= 100;
+-            *(--buffer_ptr) = digits_to_99[digits_index][1];
+-            *(--buffer_ptr) = digits_to_99[digits_index][0];
+-        }
+-
+-        if (abs_value >= 10)
+-        {
+-            const auto digits_index = static_cast<unsigned>(abs_value);
+-            *(--buffer_ptr) = digits_to_99[digits_index][1];
+-            *(--buffer_ptr) = digits_to_99[digits_index][0];
+-        }
+-        else
+-        {
+-            *(--buffer_ptr) = static_cast<char>('0' + abs_value);
+-        }
+-
+-        o->write_characters(number_buffer.data(), n_chars);
+-    }
+-
+-    /*!
+-    @brief dump a floating-point number
+-
+-    Dump a given floating-point number to output stream @a o. Works internally
+-    with @a number_buffer.
+-
+-    @param[in] x  floating-point number to dump
+-    */
+-    void dump_float(number_float_t x)
+-    {
+-        // NaN / inf
+-        if (!std::isfinite(x))
+-        {
+-            o->write_characters("null", 4);
+-            return;
+-        }
+-
+-        // If number_float_t is an IEEE-754 single or double precision number,
+-        // use the Grisu2 algorithm to produce short numbers which are
+-        // guaranteed to round-trip, using strtof and strtod, resp.
+-        //
+-        // NB: The test below works if <long double> == <double>.
+-        static constexpr bool is_ieee_single_or_double
+-            = (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 24 && std::numeric_limits<number_float_t>::max_exponent == 128) ||
+-              (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 53 && std::numeric_limits<number_float_t>::max_exponent == 1024);
+-
+-        dump_float(x, std::integral_constant<bool, is_ieee_single_or_double>());
+-    }
+-
+-    void dump_float(number_float_t x, std::true_type /*is_ieee_single_or_double*/)
+-    {
+-        auto* begin = number_buffer.data();
+-        auto* end = ::nlohmann::detail::to_chars(begin, begin + number_buffer.size(), x);
+-
+-        o->write_characters(begin, static_cast<size_t>(end - begin));
+-    }
+-
+-    void dump_float(number_float_t x, std::false_type /*is_ieee_single_or_double*/)
+-    {
+-        // get number of digits for a float -> text -> float round-trip
+-        static constexpr auto d = std::numeric_limits<number_float_t>::max_digits10;
+-
+-        // the actual conversion
+-        // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-        std::ptrdiff_t len = (std::snprintf)(number_buffer.data(), number_buffer.size(), "%.*g", d, x);
+-
+-        // negative value indicates an error
+-        JSON_ASSERT(len > 0);
+-        // check if buffer was large enough
+-        JSON_ASSERT(static_cast<std::size_t>(len) < number_buffer.size());
+-
+-        // erase thousands separator
+-        if (thousands_sep != '\0')
+-        {
+-            // NOLINTNEXTLINE(readability-qualified-auto,llvm-qualified-auto): std::remove returns an iterator, see https://github.com/nlohmann/json/issues/3081
+-            const auto end = std::remove(number_buffer.begin(), number_buffer.begin() + len, thousands_sep);
+-            std::fill(end, number_buffer.end(), '\0');
+-            JSON_ASSERT((end - number_buffer.begin()) <= len);
+-            len = (end - number_buffer.begin());
+-        }
+-
+-        // convert decimal point to '.'
+-        if (decimal_point != '\0' && decimal_point != '.')
+-        {
+-            // NOLINTNEXTLINE(readability-qualified-auto,llvm-qualified-auto): std::find returns an iterator, see https://github.com/nlohmann/json/issues/3081
+-            const auto dec_pos = std::find(number_buffer.begin(), number_buffer.end(), decimal_point);
+-            if (dec_pos != number_buffer.end())
+-            {
+-                *dec_pos = '.';
+-            }
+-        }
+-
+-        o->write_characters(number_buffer.data(), static_cast<std::size_t>(len));
+-
+-        // determine if we need to append ".0"
+-        const bool value_is_int_like =
+-            std::none_of(number_buffer.begin(), number_buffer.begin() + len + 1,
+-                         [](char c)
+-        {
+-            return c == '.' || c == 'e';
+-        });
+-
+-        if (value_is_int_like)
+-        {
+-            o->write_characters(".0", 2);
+-        }
+-    }
+-
+-    /*!
+-    @brief check whether a string is UTF-8 encoded
+-
+-    The function checks each byte of a string whether it is UTF-8 encoded. The
+-    result of the check is stored in the @a state parameter. The function must
+-    be called initially with state 0 (accept). State 1 means the string must
+-    be rejected, because the current byte is not allowed. If the string is
+-    completely processed, but the state is non-zero, the string ended
+-    prematurely; that is, the last byte indicated more bytes should have
+-    followed.
+-
+-    @param[in,out] state  the state of the decoding
+-    @param[in,out] codep  codepoint (valid only if resulting state is UTF8_ACCEPT)
+-    @param[in] byte       next byte to decode
+-    @return               new state
+-
+-    @note The function has been edited: a std::array is used.
+-
+-    @copyright Copyright (c) 2008-2009 Bjoern Hoehrmann <bjoern@hoehrmann.de>
+-    @sa http://bjoern.hoehrmann.de/utf-8/decoder/dfa/
+-    */
+-    static std::uint8_t decode(std::uint8_t& state, std::uint32_t& codep, const std::uint8_t byte) noexcept
+-    {
+-        static const std::array<std::uint8_t, 400> utf8d =
+-        {
+-            {
+-                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 00..1F
+-                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 20..3F
+-                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 40..5F
+-                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 60..7F
+-                1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, // 80..9F
+-                7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // A0..BF
+-                8, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, // C0..DF
+-                0xA, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x4, 0x3, 0x3, // E0..EF
+-                0xB, 0x6, 0x6, 0x6, 0x5, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, // F0..FF
+-                0x0, 0x1, 0x2, 0x3, 0x5, 0x8, 0x7, 0x1, 0x1, 0x1, 0x4, 0x6, 0x1, 0x1, 0x1, 0x1, // s0..s0
+-                1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, // s1..s2
+-                1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, // s3..s4
+-                1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, // s5..s6
+-                1, 3, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 // s7..s8
+-            }
+-        };
+-
+-        JSON_ASSERT(byte < utf8d.size());
+-        const std::uint8_t type = utf8d[byte];
+-
+-        codep = (state != UTF8_ACCEPT)
+-                ? (byte & 0x3fu) | (codep << 6u)
+-                : (0xFFu >> type) & (byte);
+-
+-        std::size_t index = 256u + static_cast<size_t>(state) * 16u + static_cast<size_t>(type);
+-        JSON_ASSERT(index < 400);
+-        state = utf8d[index];
+-        return state;
+-    }
+-
+-    /*
+-     * Overload to make the compiler happy while it is instantiating
+-     * dump_integer for number_unsigned_t.
+-     * Must never be called.
+-     */
+-    number_unsigned_t remove_sign(number_unsigned_t x)
+-    {
+-        JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        return x; // LCOV_EXCL_LINE
+-    }
+-
+-    /*
+-     * Helper function for dump_integer
+-     *
+-     * This function takes a negative signed integer and returns its absolute
+-     * value as unsigned integer. The plus/minus shuffling is necessary as we can
+-     * not directly remove the sign of an arbitrary signed integer as the
+-     * absolute values of INT_MIN and INT_MAX are usually not the same. See
+-     * #1708 for details.
+-     */
+-    inline number_unsigned_t remove_sign(number_integer_t x) noexcept
+-    {
+-        JSON_ASSERT(x < 0 && x < (std::numeric_limits<number_integer_t>::max)()); // NOLINT(misc-redundant-expression)
+-        return static_cast<number_unsigned_t>(-(x + 1)) + 1;
+-    }
+-
+-  private:
+-    /// the output of the serializer
+-    output_adapter_t<char> o = nullptr;
+-
+-    /// a (hopefully) large enough character buffer
+-    std::array<char, 64> number_buffer{{}};
+-
+-    /// the locale
+-    const std::lconv* loc = nullptr;
+-    /// the locale's thousand separator character
+-    const char thousands_sep = '\0';
+-    /// the locale's decimal point character
+-    const char decimal_point = '\0';
+-
+-    /// string buffer
+-    std::array<char, 512> string_buffer{{}};
+-
+-    /// the indentation character
+-    const char indent_char;
+-    /// the indentation string
+-    string_t indent_string;
+-
+-    /// error_handler how to react on decoding errors
+-    const error_handler_t error_handler;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-// #include <nlohmann/json_fwd.hpp>
+-
+-// #include <nlohmann/ordered_map.hpp>
+-
+-
+-#include <functional> // less
+-#include <initializer_list> // initializer_list
+-#include <iterator> // input_iterator_tag, iterator_traits
+-#include <memory> // allocator
+-#include <stdexcept> // for out_of_range
+-#include <type_traits> // enable_if, is_convertible
+-#include <utility> // pair
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-
+-/// ordered_map: a minimal map-like container that preserves insertion order
+-/// for use within nlohmann::basic_json<ordered_map>
+-template <class Key, class T, class IgnoredLess = std::less<Key>,
+-          class Allocator = std::allocator<std::pair<const Key, T>>>
+-                  struct ordered_map : std::vector<std::pair<const Key, T>, Allocator>
+-{
+-    using key_type = Key;
+-    using mapped_type = T;
+-    using Container = std::vector<std::pair<const Key, T>, Allocator>;
+-    using iterator = typename Container::iterator;
+-    using const_iterator = typename Container::const_iterator;
+-    using size_type = typename Container::size_type;
+-    using value_type = typename Container::value_type;
+-
+-    // Explicit constructors instead of `using Container::Container`
+-    // otherwise older compilers choke on it (GCC <= 5.5, xcode <= 9.4)
+-    ordered_map(const Allocator& alloc = Allocator()) : Container{alloc} {}
+-    template <class It>
+-    ordered_map(It first, It last, const Allocator& alloc = Allocator())
+-        : Container{first, last, alloc} {}
+-    ordered_map(std::initializer_list<T> init, const Allocator& alloc = Allocator() )
+-        : Container{init, alloc} {}
+-
+-    std::pair<iterator, bool> emplace(const key_type& key, T&& t)
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return {it, false};
+-            }
+-        }
+-        Container::emplace_back(key, t);
+-        return {--this->end(), true};
+-    }
+-
+-    T& operator[](const Key& key)
+-    {
+-        return emplace(key, T{}).first->second;
+-    }
+-
+-    const T& operator[](const Key& key) const
+-    {
+-        return at(key);
+-    }
+-
+-    T& at(const Key& key)
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return it->second;
+-            }
+-        }
+-
+-        JSON_THROW(std::out_of_range("key not found"));
+-    }
+-
+-    const T& at(const Key& key) const
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return it->second;
+-            }
+-        }
+-
+-        JSON_THROW(std::out_of_range("key not found"));
+-    }
+-
+-    size_type erase(const Key& key)
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                // Since we cannot move const Keys, re-construct them in place
+-                for (auto next = it; ++next != this->end(); ++it)
+-                {
+-                    it->~value_type(); // Destroy but keep allocation
+-                    new (&*it) value_type{std::move(*next)};
+-                }
+-                Container::pop_back();
+-                return 1;
+-            }
+-        }
+-        return 0;
+-    }
+-
+-    iterator erase(iterator pos)
+-    {
+-        return erase(pos, std::next(pos));
+-    }
+-
+-    iterator erase(iterator first, iterator last)
+-    {
+-        const auto elements_affected = std::distance(first, last);
+-        const auto offset = std::distance(Container::begin(), first);
+-
+-        // This is the start situation. We need to delete elements_affected
+-        // elements (3 in this example: e, f, g), and need to return an
+-        // iterator past the last deleted element (h in this example).
+-        // Note that offset is the distance from the start of the vector
+-        // to first. We will need this later.
+-
+-        // [ a, b, c, d, e, f, g, h, i, j ]
+-        //               ^        ^
+-        //             first    last
+-
+-        // Since we cannot move const Keys, we re-construct them in place.
+-        // We start at first and re-construct (viz. copy) the elements from
+-        // the back of the vector. Example for first iteration:
+-
+-        //               ,--------.
+-        //               v        |   destroy e and re-construct with h
+-        // [ a, b, c, d, e, f, g, h, i, j ]
+-        //               ^        ^
+-        //               it       it + elements_affected
+-
+-        for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it)
+-        {
+-            it->~value_type(); // destroy but keep allocation
+-            new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it
+-        }
+-
+-        // [ a, b, c, d, h, i, j, h, i, j ]
+-        //               ^        ^
+-        //             first    last
+-
+-        // remove the unneeded elements at the end of the vector
+-        Container::resize(this->size() - static_cast<size_type>(elements_affected));
+-
+-        // [ a, b, c, d, h, i, j ]
+-        //               ^        ^
+-        //             first    last
+-
+-        // first is now pointing past the last deleted element, but we cannot
+-        // use this iterator, because it may have been invalidated by the
+-        // resize call. Instead, we can return begin() + offset.
+-        return Container::begin() + offset;
+-    }
+-
+-    size_type count(const Key& key) const
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return 1;
+-            }
+-        }
+-        return 0;
+-    }
+-
+-    iterator find(const Key& key)
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return it;
+-            }
+-        }
+-        return Container::end();
+-    }
+-
+-    const_iterator find(const Key& key) const
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return it;
+-            }
+-        }
+-        return Container::end();
+-    }
+-
+-    std::pair<iterator, bool> insert( value_type&& value )
+-    {
+-        return emplace(value.first, std::move(value.second));
+-    }
+-
+-    std::pair<iterator, bool> insert( const value_type& value )
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == value.first)
+-            {
+-                return {it, false};
+-            }
+-        }
+-        Container::push_back(value);
+-        return {--this->end(), true};
+-    }
+-
+-    template<typename InputIt>
+-    using require_input_iter = typename std::enable_if<std::is_convertible<typename std::iterator_traits<InputIt>::iterator_category,
+-            std::input_iterator_tag>::value>::type;
+-
+-    template<typename InputIt, typename = require_input_iter<InputIt>>
+-    void insert(InputIt first, InputIt last)
+-    {
+-        for (auto it = first; it != last; ++it)
+-        {
+-            insert(*it);
+-        }
+-    }
+-};
+-
+-}  // namespace nlohmann
+-
+-
+-#if defined(JSON_HAS_CPP_17)
+-    #include <string_view>
+-#endif
+-
+-/*!
+-@brief namespace for Niels Lohmann
+-@see https://github.com/nlohmann
+-@since version 1.0.0
+-*/
+-namespace nlohmann
+-{
+-
+-/*!
+-@brief a class to store JSON values
+-
+-@internal
+-@invariant The member variables @a m_value and @a m_type have the following
+-relationship:
+-- If `m_type == value_t::object`, then `m_value.object != nullptr`.
+-- If `m_type == value_t::array`, then `m_value.array != nullptr`.
+-- If `m_type == value_t::string`, then `m_value.string != nullptr`.
+-The invariants are checked by member function assert_invariant().
+-
+-@note ObjectType trick from https://stackoverflow.com/a/9860911
+-@endinternal
+-
+-@since version 1.0.0
+-
+-@nosubgrouping
+-*/
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-special-member-functions)
+-{
+-  private:
+-    template<detail::value_t> friend struct detail::external_constructor;
+-    friend ::nlohmann::json_pointer<basic_json>;
+-
+-    template<typename BasicJsonType, typename InputType>
+-    friend class ::nlohmann::detail::parser;
+-    friend ::nlohmann::detail::serializer<basic_json>;
+-    template<typename BasicJsonType>
+-    friend class ::nlohmann::detail::iter_impl;
+-    template<typename BasicJsonType, typename CharType>
+-    friend class ::nlohmann::detail::binary_writer;
+-    template<typename BasicJsonType, typename InputType, typename SAX>
+-    friend class ::nlohmann::detail::binary_reader;
+-    template<typename BasicJsonType>
+-    friend class ::nlohmann::detail::json_sax_dom_parser;
+-    template<typename BasicJsonType>
+-    friend class ::nlohmann::detail::json_sax_dom_callback_parser;
+-    friend class ::nlohmann::detail::exception;
+-
+-    /// workaround type for MSVC
+-    using basic_json_t = NLOHMANN_BASIC_JSON_TPL;
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    // convenience aliases for types residing in namespace detail;
+-    using lexer = ::nlohmann::detail::lexer_base<basic_json>;
+-
+-    template<typename InputAdapterType>
+-    static ::nlohmann::detail::parser<basic_json, InputAdapterType> parser(
+-        InputAdapterType adapter,
+-        detail::parser_callback_t<basic_json>cb = nullptr,
+-        const bool allow_exceptions = true,
+-        const bool ignore_comments = false
+-                                 )
+-    {
+-        return ::nlohmann::detail::parser<basic_json, InputAdapterType>(std::move(adapter),
+-                std::move(cb), allow_exceptions, ignore_comments);
+-    }
+-
+-  private:
+-    using primitive_iterator_t = ::nlohmann::detail::primitive_iterator_t;
+-    template<typename BasicJsonType>
+-    using internal_iterator = ::nlohmann::detail::internal_iterator<BasicJsonType>;
+-    template<typename BasicJsonType>
+-    using iter_impl = ::nlohmann::detail::iter_impl<BasicJsonType>;
+-    template<typename Iterator>
+-    using iteration_proxy = ::nlohmann::detail::iteration_proxy<Iterator>;
+-    template<typename Base> using json_reverse_iterator = ::nlohmann::detail::json_reverse_iterator<Base>;
+-
+-    template<typename CharType>
+-    using output_adapter_t = ::nlohmann::detail::output_adapter_t<CharType>;
+-
+-    template<typename InputType>
+-    using binary_reader = ::nlohmann::detail::binary_reader<basic_json, InputType>;
+-    template<typename CharType> using binary_writer = ::nlohmann::detail::binary_writer<basic_json, CharType>;
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    using serializer = ::nlohmann::detail::serializer<basic_json>;
+-
+-  public:
+-    using value_t = detail::value_t;
+-    /// JSON Pointer, see @ref nlohmann::json_pointer
+-    using json_pointer = ::nlohmann::json_pointer<basic_json>;
+-    template<typename T, typename SFINAE>
+-    using json_serializer = JSONSerializer<T, SFINAE>;
+-    /// how to treat decoding errors
+-    using error_handler_t = detail::error_handler_t;
+-    /// how to treat CBOR tags
+-    using cbor_tag_handler_t = detail::cbor_tag_handler_t;
+-    /// helper type for initializer lists of basic_json values
+-    using initializer_list_t = std::initializer_list<detail::json_ref<basic_json>>;
+-
+-    using input_format_t = detail::input_format_t;
+-    /// SAX interface type, see @ref nlohmann::json_sax
+-    using json_sax_t = json_sax<basic_json>;
+-
+-    ////////////////
+-    // exceptions //
+-    ////////////////
+-
+-    /// @name exceptions
+-    /// Classes to implement user-defined exceptions.
+-    /// @{
+-
+-    using exception = detail::exception;
+-    using parse_error = detail::parse_error;
+-    using invalid_iterator = detail::invalid_iterator;
+-    using type_error = detail::type_error;
+-    using out_of_range = detail::out_of_range;
+-    using other_error = detail::other_error;
+-
+-    /// @}
+-
+-
+-    /////////////////////
+-    // container types //
+-    /////////////////////
+-
+-    /// @name container types
+-    /// The canonic container types to use @ref basic_json like any other STL
+-    /// container.
+-    /// @{
+-
+-    /// the type of elements in a basic_json container
+-    using value_type = basic_json;
+-
+-    /// the type of an element reference
+-    using reference = value_type&;
+-    /// the type of an element const reference
+-    using const_reference = const value_type&;
+-
+-    /// a type to represent differences between iterators
+-    using difference_type = std::ptrdiff_t;
+-    /// a type to represent container sizes
+-    using size_type = std::size_t;
+-
+-    /// the allocator type
+-    using allocator_type = AllocatorType<basic_json>;
+-
+-    /// the type of an element pointer
+-    using pointer = typename std::allocator_traits<allocator_type>::pointer;
+-    /// the type of an element const pointer
+-    using const_pointer = typename std::allocator_traits<allocator_type>::const_pointer;
+-
+-    /// an iterator for a basic_json container
+-    using iterator = iter_impl<basic_json>;
+-    /// a const iterator for a basic_json container
+-    using const_iterator = iter_impl<const basic_json>;
+-    /// a reverse iterator for a basic_json container
+-    using reverse_iterator = json_reverse_iterator<typename basic_json::iterator>;
+-    /// a const reverse iterator for a basic_json container
+-    using const_reverse_iterator = json_reverse_iterator<typename basic_json::const_iterator>;
+-
+-    /// @}
+-
+-
+-    /// @brief returns the allocator associated with the container
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_allocator/
+-    static allocator_type get_allocator()
+-    {
+-        return allocator_type();
+-    }
+-
+-    /// @brief returns version information on the library
+-    /// @sa https://json.nlohmann.me/api/basic_json/meta/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json meta()
+-    {
+-        basic_json result;
+-
+-        result["copyright"] = "(C) 2013-2022 Niels Lohmann";
+-        result["name"] = "JSON for Modern C++";
+-        result["url"] = "https://github.com/nlohmann/json";
+-        result["version"]["string"] =
+-            std::to_string(NLOHMANN_JSON_VERSION_MAJOR) + "." +
+-            std::to_string(NLOHMANN_JSON_VERSION_MINOR) + "." +
+-            std::to_string(NLOHMANN_JSON_VERSION_PATCH);
+-        result["version"]["major"] = NLOHMANN_JSON_VERSION_MAJOR;
+-        result["version"]["minor"] = NLOHMANN_JSON_VERSION_MINOR;
+-        result["version"]["patch"] = NLOHMANN_JSON_VERSION_PATCH;
+-
+-#ifdef _WIN32
+-        result["platform"] = "win32";
+-#elif defined __linux__
+-        result["platform"] = "linux";
+-#elif defined __APPLE__
+-        result["platform"] = "apple";
+-#elif defined __unix__
+-        result["platform"] = "unix";
+-#else
+-        result["platform"] = "unknown";
+-#endif
+-
+-#if defined(__ICC) || defined(__INTEL_COMPILER)
+-        result["compiler"] = {{"family", "icc"}, {"version", __INTEL_COMPILER}};
+-#elif defined(__clang__)
+-        result["compiler"] = {{"family", "clang"}, {"version", __clang_version__}};
+-#elif defined(__GNUC__) || defined(__GNUG__)
+-        result["compiler"] = {{"family", "gcc"}, {"version", std::to_string(__GNUC__) + "." + std::to_string(__GNUC_MINOR__) + "." + std::to_string(__GNUC_PATCHLEVEL__)}};
+-#elif defined(__HP_cc) || defined(__HP_aCC)
+-        result["compiler"] = "hp"
+-#elif defined(__IBMCPP__)
+-        result["compiler"] = {{"family", "ilecpp"}, {"version", __IBMCPP__}};
+-#elif defined(_MSC_VER)
+-        result["compiler"] = {{"family", "msvc"}, {"version", _MSC_VER}};
+-#elif defined(__PGI)
+-        result["compiler"] = {{"family", "pgcpp"}, {"version", __PGI}};
+-#elif defined(__SUNPRO_CC)
+-        result["compiler"] = {{"family", "sunpro"}, {"version", __SUNPRO_CC}};
+-#else
+-        result["compiler"] = {{"family", "unknown"}, {"version", "unknown"}};
+-#endif
+-
+-#ifdef __cplusplus
+-        result["compiler"]["c++"] = std::to_string(__cplusplus);
+-#else
+-        result["compiler"]["c++"] = "unknown";
+-#endif
+-        return result;
+-    }
+-
+-
+-    ///////////////////////////
+-    // JSON value data types //
+-    ///////////////////////////
+-
+-    /// @name JSON value data types
+-    /// The data types to store a JSON value. These types are derived from
+-    /// the template arguments passed to class @ref basic_json.
+-    /// @{
+-
+-    /// @brief object key comparator type
+-    /// @sa https://json.nlohmann.me/api/basic_json/object_comparator_t/
+-#if defined(JSON_HAS_CPP_14)
+-    // Use transparent comparator if possible, combined with perfect forwarding
+-    // on find() and count() calls prevents unnecessary string construction.
+-    using object_comparator_t = std::less<>;
+-#else
+-    using object_comparator_t = std::less<StringType>;
+-#endif
+-
+-    /// @brief a type for an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/object_t/
+-    using object_t = ObjectType<StringType,
+-          basic_json,
+-          object_comparator_t,
+-          AllocatorType<std::pair<const StringType,
+-          basic_json>>>;
+-
+-    /// @brief a type for an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/array_t/
+-    using array_t = ArrayType<basic_json, AllocatorType<basic_json>>;
+-
+-    /// @brief a type for a string
+-    /// @sa https://json.nlohmann.me/api/basic_json/string_t/
+-    using string_t = StringType;
+-
+-    /// @brief a type for a boolean
+-    /// @sa https://json.nlohmann.me/api/basic_json/boolean_t/
+-    using boolean_t = BooleanType;
+-
+-    /// @brief a type for a number (integer)
+-    /// @sa https://json.nlohmann.me/api/basic_json/number_integer_t/
+-    using number_integer_t = NumberIntegerType;
+-
+-    /// @brief a type for a number (unsigned)
+-    /// @sa https://json.nlohmann.me/api/basic_json/number_unsigned_t/
+-    using number_unsigned_t = NumberUnsignedType;
+-
+-    /// @brief a type for a number (floating-point)
+-    /// @sa https://json.nlohmann.me/api/basic_json/number_float_t/
+-    using number_float_t = NumberFloatType;
+-
+-    /// @brief a type for a packed binary type
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary_t/
+-    using binary_t = nlohmann::byte_container_with_subtype<BinaryType>;
+-
+-    /// @}
+-
+-  private:
+-
+-    /// helper for exception-safe object creation
+-    template<typename T, typename... Args>
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    static T* create(Args&& ... args)
+-    {
+-        AllocatorType<T> alloc;
+-        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
+-
+-        auto deleter = [&](T * obj)
+-        {
+-            AllocatorTraits::deallocate(alloc, obj, 1);
+-        };
+-        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
+-        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
+-        JSON_ASSERT(obj != nullptr);
+-        return obj.release();
+-    }
+-
+-    ////////////////////////
+-    // JSON value storage //
+-    ////////////////////////
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /*!
+-    @brief a JSON value
+-
+-    The actual storage for a JSON value of the @ref basic_json class. This
+-    union combines the different storage types for the JSON value types
+-    defined in @ref value_t.
+-
+-    JSON type | value_t type    | used type
+-    --------- | --------------- | ------------------------
+-    object    | object          | pointer to @ref object_t
+-    array     | array           | pointer to @ref array_t
+-    string    | string          | pointer to @ref string_t
+-    boolean   | boolean         | @ref boolean_t
+-    number    | number_integer  | @ref number_integer_t
+-    number    | number_unsigned | @ref number_unsigned_t
+-    number    | number_float    | @ref number_float_t
+-    binary    | binary          | pointer to @ref binary_t
+-    null      | null            | *no value is stored*
+-
+-    @note Variable-length types (objects, arrays, and strings) are stored as
+-    pointers. The size of the union should not exceed 64 bits if the default
+-    value types are used.
+-
+-    @since version 1.0.0
+-    */
+-    union json_value
+-    {
+-        /// object (stored with pointer to save storage)
+-        object_t* object;
+-        /// array (stored with pointer to save storage)
+-        array_t* array;
+-        /// string (stored with pointer to save storage)
+-        string_t* string;
+-        /// binary (stored with pointer to save storage)
+-        binary_t* binary;
+-        /// boolean
+-        boolean_t boolean;
+-        /// number (integer)
+-        number_integer_t number_integer;
+-        /// number (unsigned integer)
+-        number_unsigned_t number_unsigned;
+-        /// number (floating-point)
+-        number_float_t number_float;
+-
+-        /// default constructor (for null values)
+-        json_value() = default;
+-        /// constructor for booleans
+-        json_value(boolean_t v) noexcept : boolean(v) {}
+-        /// constructor for numbers (integer)
+-        json_value(number_integer_t v) noexcept : number_integer(v) {}
+-        /// constructor for numbers (unsigned)
+-        json_value(number_unsigned_t v) noexcept : number_unsigned(v) {}
+-        /// constructor for numbers (floating-point)
+-        json_value(number_float_t v) noexcept : number_float(v) {}
+-        /// constructor for empty values of a given type
+-        json_value(value_t t)
+-        {
+-            switch (t)
+-            {
+-                case value_t::object:
+-                {
+-                    object = create<object_t>();
+-                    break;
+-                }
+-
+-                case value_t::array:
+-                {
+-                    array = create<array_t>();
+-                    break;
+-                }
+-
+-                case value_t::string:
+-                {
+-                    string = create<string_t>("");
+-                    break;
+-                }
+-
+-                case value_t::binary:
+-                {
+-                    binary = create<binary_t>();
+-                    break;
+-                }
+-
+-                case value_t::boolean:
+-                {
+-                    boolean = static_cast<boolean_t>(false);
+-                    break;
+-                }
+-
+-                case value_t::number_integer:
+-                {
+-                    number_integer = static_cast<number_integer_t>(0);
+-                    break;
+-                }
+-
+-                case value_t::number_unsigned:
+-                {
+-                    number_unsigned = static_cast<number_unsigned_t>(0);
+-                    break;
+-                }
+-
+-                case value_t::number_float:
+-                {
+-                    number_float = static_cast<number_float_t>(0.0);
+-                    break;
+-                }
+-
+-                case value_t::null:
+-                {
+-                    object = nullptr;  // silence warning, see #821
+-                    break;
+-                }
+-
+-                case value_t::discarded:
+-                default:
+-                {
+-                    object = nullptr;  // silence warning, see #821
+-                    if (JSON_HEDLEY_UNLIKELY(t == value_t::null))
+-                    {
+-                        JSON_THROW(other_error::create(500, "961c151d2e87f2686a955a9be24d316f1362bf21 3.10.5", basic_json())); // LCOV_EXCL_LINE
+-                    }
+-                    break;
+-                }
+-            }
+-        }
+-
+-        /// constructor for strings
+-        json_value(const string_t& value) : string(create<string_t>(value)) {}
+-
+-        /// constructor for rvalue strings
+-        json_value(string_t&& value) : string(create<string_t>(std::move(value))) {}
+-
+-        /// constructor for objects
+-        json_value(const object_t& value) : object(create<object_t>(value)) {}
+-
+-        /// constructor for rvalue objects
+-        json_value(object_t&& value) : object(create<object_t>(std::move(value))) {}
+-
+-        /// constructor for arrays
+-        json_value(const array_t& value) : array(create<array_t>(value)) {}
+-
+-        /// constructor for rvalue arrays
+-        json_value(array_t&& value) : array(create<array_t>(std::move(value))) {}
+-
+-        /// constructor for binary arrays
+-        json_value(const typename binary_t::container_type& value) : binary(create<binary_t>(value)) {}
+-
+-        /// constructor for rvalue binary arrays
+-        json_value(typename binary_t::container_type&& value) : binary(create<binary_t>(std::move(value))) {}
+-
+-        /// constructor for binary arrays (internal type)
+-        json_value(const binary_t& value) : binary(create<binary_t>(value)) {}
+-
+-        /// constructor for rvalue binary arrays (internal type)
+-        json_value(binary_t&& value) : binary(create<binary_t>(std::move(value))) {}
+-
+-        void destroy(value_t t)
+-        {
+-            if (t == value_t::array || t == value_t::object)
+-            {
+-                // flatten the current json_value to a heap-allocated stack
+-                std::vector<basic_json> stack;
+-
+-                // move the top-level items to stack
+-                if (t == value_t::array)
+-                {
+-                    stack.reserve(array->size());
+-                    std::move(array->begin(), array->end(), std::back_inserter(stack));
+-                }
+-                else
+-                {
+-                    stack.reserve(object->size());
+-                    for (auto&& it : *object)
+-                    {
+-                        stack.push_back(std::move(it.second));
+-                    }
+-                }
+-
+-                while (!stack.empty())
+-                {
+-                    // move the last item to local variable to be processed
+-                    basic_json current_item(std::move(stack.back()));
+-                    stack.pop_back();
+-
+-                    // if current_item is array/object, move
+-                    // its children to the stack to be processed later
+-                    if (current_item.is_array())
+-                    {
+-                        std::move(current_item.m_value.array->begin(), current_item.m_value.array->end(), std::back_inserter(stack));
+-
+-                        current_item.m_value.array->clear();
+-                    }
+-                    else if (current_item.is_object())
+-                    {
+-                        for (auto&& it : *current_item.m_value.object)
+-                        {
+-                            stack.push_back(std::move(it.second));
+-                        }
+-
+-                        current_item.m_value.object->clear();
+-                    }
+-
+-                    // it's now safe that current_item get destructed
+-                    // since it doesn't have any children
+-                }
+-            }
+-
+-            switch (t)
+-            {
+-                case value_t::object:
+-                {
+-                    AllocatorType<object_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, object);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1);
+-                    break;
+-                }
+-
+-                case value_t::array:
+-                {
+-                    AllocatorType<array_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, array);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1);
+-                    break;
+-                }
+-
+-                case value_t::string:
+-                {
+-                    AllocatorType<string_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, string);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1);
+-                    break;
+-                }
+-
+-                case value_t::binary:
+-                {
+-                    AllocatorType<binary_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, binary);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1);
+-                    break;
+-                }
+-
+-                case value_t::null:
+-                case value_t::boolean:
+-                case value_t::number_integer:
+-                case value_t::number_unsigned:
+-                case value_t::number_float:
+-                case value_t::discarded:
+-                default:
+-                {
+-                    break;
+-                }
+-            }
+-        }
+-    };
+-
+-  private:
+-    /*!
+-    @brief checks the class invariants
+-
+-    This function asserts the class invariants. It needs to be called at the
+-    end of every constructor to make sure that created objects respect the
+-    invariant. Furthermore, it has to be called each time the type of a JSON
+-    value is changed, because the invariant expresses a relationship between
+-    @a m_type and @a m_value.
+-
+-    Furthermore, the parent relation is checked for arrays and objects: If
+-    @a check_parents true and the value is an array or object, then the
+-    container's elements must have the current value as parent.
+-
+-    @param[in] check_parents  whether the parent relation should be checked.
+-               The value is true by default and should only be set to false
+-               during destruction of objects when the invariant does not
+-               need to hold.
+-    */
+-    void assert_invariant(bool check_parents = true) const noexcept
+-    {
+-        JSON_ASSERT(m_type != value_t::object || m_value.object != nullptr);
+-        JSON_ASSERT(m_type != value_t::array || m_value.array != nullptr);
+-        JSON_ASSERT(m_type != value_t::string || m_value.string != nullptr);
+-        JSON_ASSERT(m_type != value_t::binary || m_value.binary != nullptr);
+-
+-#if JSON_DIAGNOSTICS
+-        JSON_TRY
+-        {
+-            // cppcheck-suppress assertWithSideEffect
+-            JSON_ASSERT(!check_parents || !is_structured() || std::all_of(begin(), end(), [this](const basic_json & j)
+-            {
+-                return j.m_parent == this;
+-            }));
+-        }
+-        JSON_CATCH(...) {} // LCOV_EXCL_LINE
+-#endif
+-        static_cast<void>(check_parents);
+-    }
+-
+-    void set_parents()
+-    {
+-#if JSON_DIAGNOSTICS
+-        switch (m_type)
+-        {
+-            case value_t::array:
+-            {
+-                for (auto& element : *m_value.array)
+-                {
+-                    element.m_parent = this;
+-                }
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                for (auto& element : *m_value.object)
+-                {
+-                    element.second.m_parent = this;
+-                }
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-#endif
+-    }
+-
+-    iterator set_parents(iterator it, typename iterator::difference_type count_set_parents)
+-    {
+-#if JSON_DIAGNOSTICS
+-        for (typename iterator::difference_type i = 0; i < count_set_parents; ++i)
+-        {
+-            (it + i)->m_parent = this;
+-        }
+-#else
+-        static_cast<void>(count_set_parents);
+-#endif
+-        return it;
+-    }
+-
+-    reference set_parent(reference j, std::size_t old_capacity = static_cast<std::size_t>(-1))
+-    {
+-#if JSON_DIAGNOSTICS
+-        if (old_capacity != static_cast<std::size_t>(-1))
+-        {
+-            // see https://github.com/nlohmann/json/issues/2838
+-            JSON_ASSERT(type() == value_t::array);
+-            if (JSON_HEDLEY_UNLIKELY(m_value.array->capacity() != old_capacity))
+-            {
+-                // capacity has changed: update all parents
+-                set_parents();
+-                return j;
+-            }
+-        }
+-
+-        // ordered_json uses a vector internally, so pointers could have
+-        // been invalidated; see https://github.com/nlohmann/json/issues/2962
+-#ifdef JSON_HEDLEY_MSVC_VERSION
+-#pragma warning(push )
+-#pragma warning(disable : 4127) // ignore warning to replace if with if constexpr
+-#endif
+-        if (detail::is_ordered_map<object_t>::value)
+-        {
+-            set_parents();
+-            return j;
+-        }
+-#ifdef JSON_HEDLEY_MSVC_VERSION
+-#pragma warning( pop )
+-#endif
+-
+-        j.m_parent = this;
+-#else
+-        static_cast<void>(j);
+-        static_cast<void>(old_capacity);
+-#endif
+-        return j;
+-    }
+-
+-  public:
+-    //////////////////////////
+-    // JSON parser callback //
+-    //////////////////////////
+-
+-    /// @brief parser event types
+-    /// @sa https://json.nlohmann.me/api/basic_json/parse_event_t/
+-    using parse_event_t = detail::parse_event_t;
+-
+-    /// @brief per-element parser callback type
+-    /// @sa https://json.nlohmann.me/api/basic_json/parser_callback_t/
+-    using parser_callback_t = detail::parser_callback_t<basic_json>;
+-
+-    //////////////////
+-    // constructors //
+-    //////////////////
+-
+-    /// @name constructors and destructors
+-    /// Constructors of class @ref basic_json, copy/move constructor, copy
+-    /// assignment, static functions creating objects, and the destructor.
+-    /// @{
+-
+-    /// @brief create an empty value with a given type
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(const value_t v)
+-        : m_type(v), m_value(v)
+-    {
+-        assert_invariant();
+-    }
+-
+-    /// @brief create a null object
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(std::nullptr_t = nullptr) noexcept
+-        : basic_json(value_t::null)
+-    {
+-        assert_invariant();
+-    }
+-
+-    /// @brief create a JSON value from compatible types
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    template < typename CompatibleType,
+-               typename U = detail::uncvref_t<CompatibleType>,
+-               detail::enable_if_t <
+-                   !detail::is_basic_json<U>::value && detail::is_compatible_type<basic_json_t, U>::value, int > = 0 >
+-    basic_json(CompatibleType && val) noexcept(noexcept( // NOLINT(bugprone-forwarding-reference-overload,bugprone-exception-escape)
+-                JSONSerializer<U>::to_json(std::declval<basic_json_t&>(),
+-                                           std::forward<CompatibleType>(val))))
+-    {
+-        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief create a JSON value from an existing one
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    template < typename BasicJsonType,
+-               detail::enable_if_t <
+-                   detail::is_basic_json<BasicJsonType>::value&& !std::is_same<basic_json, BasicJsonType>::value, int > = 0 >
+-    basic_json(const BasicJsonType& val)
+-    {
+-        using other_boolean_t = typename BasicJsonType::boolean_t;
+-        using other_number_float_t = typename BasicJsonType::number_float_t;
+-        using other_number_integer_t = typename BasicJsonType::number_integer_t;
+-        using other_number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-        using other_string_t = typename BasicJsonType::string_t;
+-        using other_object_t = typename BasicJsonType::object_t;
+-        using other_array_t = typename BasicJsonType::array_t;
+-        using other_binary_t = typename BasicJsonType::binary_t;
+-
+-        switch (val.type())
+-        {
+-            case value_t::boolean:
+-                JSONSerializer<other_boolean_t>::to_json(*this, val.template get<other_boolean_t>());
+-                break;
+-            case value_t::number_float:
+-                JSONSerializer<other_number_float_t>::to_json(*this, val.template get<other_number_float_t>());
+-                break;
+-            case value_t::number_integer:
+-                JSONSerializer<other_number_integer_t>::to_json(*this, val.template get<other_number_integer_t>());
+-                break;
+-            case value_t::number_unsigned:
+-                JSONSerializer<other_number_unsigned_t>::to_json(*this, val.template get<other_number_unsigned_t>());
+-                break;
+-            case value_t::string:
+-                JSONSerializer<other_string_t>::to_json(*this, val.template get_ref<const other_string_t&>());
+-                break;
+-            case value_t::object:
+-                JSONSerializer<other_object_t>::to_json(*this, val.template get_ref<const other_object_t&>());
+-                break;
+-            case value_t::array:
+-                JSONSerializer<other_array_t>::to_json(*this, val.template get_ref<const other_array_t&>());
+-                break;
+-            case value_t::binary:
+-                JSONSerializer<other_binary_t>::to_json(*this, val.template get_ref<const other_binary_t&>());
+-                break;
+-            case value_t::null:
+-                *this = nullptr;
+-                break;
+-            case value_t::discarded:
+-                m_type = value_t::discarded;
+-                break;
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief create a container (array or object) from an initializer list
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(initializer_list_t init,
+-               bool type_deduction = true,
+-               value_t manual_type = value_t::array)
+-    {
+-        // check if each element is an array with two elements whose first
+-        // element is a string
+-        bool is_an_object = std::all_of(init.begin(), init.end(),
+-                                        [](const detail::json_ref<basic_json>& element_ref)
+-        {
+-            return element_ref->is_array() && element_ref->size() == 2 && (*element_ref)[0].is_string();
+-        });
+-
+-        // adjust type if type deduction is not wanted
+-        if (!type_deduction)
+-        {
+-            // if array is wanted, do not create an object though possible
+-            if (manual_type == value_t::array)
+-            {
+-                is_an_object = false;
+-            }
+-
+-            // if object is wanted but impossible, throw an exception
+-            if (JSON_HEDLEY_UNLIKELY(manual_type == value_t::object && !is_an_object))
+-            {
+-                JSON_THROW(type_error::create(301, "cannot create object from initializer list", basic_json()));
+-            }
+-        }
+-
+-        if (is_an_object)
+-        {
+-            // the initializer list is a list of pairs -> create object
+-            m_type = value_t::object;
+-            m_value = value_t::object;
+-
+-            for (auto& element_ref : init)
+-            {
+-                auto element = element_ref.moved_or_copied();
+-                m_value.object->emplace(
+-                    std::move(*((*element.m_value.array)[0].m_value.string)),
+-                    std::move((*element.m_value.array)[1]));
+-            }
+-        }
+-        else
+-        {
+-            // the initializer list describes an array -> create array
+-            m_type = value_t::array;
+-            m_value.array = create<array_t>(init.begin(), init.end());
+-        }
+-
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief explicitly create a binary array (without subtype)
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json binary(const typename binary_t::container_type& init)
+-    {
+-        auto res = basic_json();
+-        res.m_type = value_t::binary;
+-        res.m_value = init;
+-        return res;
+-    }
+-
+-    /// @brief explicitly create a binary array (with subtype)
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json binary(const typename binary_t::container_type& init, typename binary_t::subtype_type subtype)
+-    {
+-        auto res = basic_json();
+-        res.m_type = value_t::binary;
+-        res.m_value = binary_t(init, subtype);
+-        return res;
+-    }
+-
+-    /// @brief explicitly create a binary array
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json binary(typename binary_t::container_type&& init)
+-    {
+-        auto res = basic_json();
+-        res.m_type = value_t::binary;
+-        res.m_value = std::move(init);
+-        return res;
+-    }
+-
+-    /// @brief explicitly create a binary array (with subtype)
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json binary(typename binary_t::container_type&& init, typename binary_t::subtype_type subtype)
+-    {
+-        auto res = basic_json();
+-        res.m_type = value_t::binary;
+-        res.m_value = binary_t(std::move(init), subtype);
+-        return res;
+-    }
+-
+-    /// @brief explicitly create an array from an initializer list
+-    /// @sa https://json.nlohmann.me/api/basic_json/array/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json array(initializer_list_t init = {})
+-    {
+-        return basic_json(init, false, value_t::array);
+-    }
+-
+-    /// @brief explicitly create an object from an initializer list
+-    /// @sa https://json.nlohmann.me/api/basic_json/object/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json object(initializer_list_t init = {})
+-    {
+-        return basic_json(init, false, value_t::object);
+-    }
+-
+-    /// @brief construct an array with count copies of given value
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(size_type cnt, const basic_json& val)
+-        : m_type(value_t::array)
+-    {
+-        m_value.array = create<array_t>(cnt, val);
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief construct a JSON container given an iterator range
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    template < class InputIT, typename std::enable_if <
+-                   std::is_same<InputIT, typename basic_json_t::iterator>::value ||
+-                   std::is_same<InputIT, typename basic_json_t::const_iterator>::value, int >::type = 0 >
+-    basic_json(InputIT first, InputIT last)
+-    {
+-        JSON_ASSERT(first.m_object != nullptr);
+-        JSON_ASSERT(last.m_object != nullptr);
+-
+-        // make sure iterator fits the current value
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(201, "iterators are not compatible", basic_json()));
+-        }
+-
+-        // copy type from first iterator
+-        m_type = first.m_object->m_type;
+-
+-        // check if iterator range is complete for primitive values
+-        switch (m_type)
+-        {
+-            case value_t::boolean:
+-            case value_t::number_float:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::string:
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!first.m_it.primitive_iterator.is_begin()
+-                                         || !last.m_it.primitive_iterator.is_end()))
+-                {
+-                    JSON_THROW(invalid_iterator::create(204, "iterators out of range", *first.m_object));
+-                }
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::object:
+-            case value_t::array:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-
+-        switch (m_type)
+-        {
+-            case value_t::number_integer:
+-            {
+-                m_value.number_integer = first.m_object->m_value.number_integer;
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                m_value.number_unsigned = first.m_object->m_value.number_unsigned;
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                m_value.number_float = first.m_object->m_value.number_float;
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                m_value.boolean = first.m_object->m_value.boolean;
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                m_value = *first.m_object->m_value.string;
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                m_value.object = create<object_t>(first.m_it.object_iterator,
+-                                                  last.m_it.object_iterator);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_value.array = create<array_t>(first.m_it.array_iterator,
+-                                                last.m_it.array_iterator);
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                m_value = *first.m_object->m_value.binary;
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                JSON_THROW(invalid_iterator::create(206, "cannot construct with iterators from " + std::string(first.m_object->type_name()), *first.m_object));
+-        }
+-
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-
+-    ///////////////////////////////////////
+-    // other constructors and destructor //
+-    ///////////////////////////////////////
+-
+-    template<typename JsonRef,
+-             detail::enable_if_t<detail::conjunction<detail::is_json_ref<JsonRef>,
+-                                 std::is_same<typename JsonRef::value_type, basic_json>>::value, int> = 0 >
+-    basic_json(const JsonRef& ref) : basic_json(ref.moved_or_copied()) {}
+-
+-    /// @brief copy constructor
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(const basic_json& other)
+-        : m_type(other.m_type)
+-    {
+-        // check of passed value is valid
+-        other.assert_invariant();
+-
+-        switch (m_type)
+-        {
+-            case value_t::object:
+-            {
+-                m_value = *other.m_value.object;
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_value = *other.m_value.array;
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                m_value = *other.m_value.string;
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                m_value = other.m_value.boolean;
+-                break;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                m_value = other.m_value.number_integer;
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                m_value = other.m_value.number_unsigned;
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                m_value = other.m_value.number_float;
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                m_value = *other.m_value.binary;
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief move constructor
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(basic_json&& other) noexcept
+-        : m_type(std::move(other.m_type)),
+-          m_value(std::move(other.m_value))
+-    {
+-        // check that passed value is valid
+-        other.assert_invariant(false);
+-
+-        // invalidate payload
+-        other.m_type = value_t::null;
+-        other.m_value = {};
+-
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief copy assignment
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator=/
+-    basic_json& operator=(basic_json other) noexcept (
+-        std::is_nothrow_move_constructible<value_t>::value&&
+-        std::is_nothrow_move_assignable<value_t>::value&&
+-        std::is_nothrow_move_constructible<json_value>::value&&
+-        std::is_nothrow_move_assignable<json_value>::value
+-    )
+-    {
+-        // check that passed value is valid
+-        other.assert_invariant();
+-
+-        using std::swap;
+-        swap(m_type, other.m_type);
+-        swap(m_value, other.m_value);
+-
+-        set_parents();
+-        assert_invariant();
+-        return *this;
+-    }
+-
+-    /// @brief destructor
+-    /// @sa https://json.nlohmann.me/api/basic_json/~basic_json/
+-    ~basic_json() noexcept
+-    {
+-        assert_invariant(false);
+-        m_value.destroy(m_type);
+-    }
+-
+-    /// @}
+-
+-  public:
+-    ///////////////////////
+-    // object inspection //
+-    ///////////////////////
+-
+-    /// @name object inspection
+-    /// Functions to inspect the type of a JSON value.
+-    /// @{
+-
+-    /// @brief serialization
+-    /// @sa https://json.nlohmann.me/api/basic_json/dump/
+-    string_t dump(const int indent = -1,
+-                  const char indent_char = ' ',
+-                  const bool ensure_ascii = false,
+-                  const error_handler_t error_handler = error_handler_t::strict) const
+-    {
+-        string_t result;
+-        serializer s(detail::output_adapter<char, string_t>(result), indent_char, error_handler);
+-
+-        if (indent >= 0)
+-        {
+-            s.dump(*this, true, ensure_ascii, static_cast<unsigned int>(indent));
+-        }
+-        else
+-        {
+-            s.dump(*this, false, ensure_ascii, 0);
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief return the type of the JSON value (explicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/type/
+-    constexpr value_t type() const noexcept
+-    {
+-        return m_type;
+-    }
+-
+-    /// @brief return whether type is primitive
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_primitive/
+-    constexpr bool is_primitive() const noexcept
+-    {
+-        return is_null() || is_string() || is_boolean() || is_number() || is_binary();
+-    }
+-
+-    /// @brief return whether type is structured
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_structured/
+-    constexpr bool is_structured() const noexcept
+-    {
+-        return is_array() || is_object();
+-    }
+-
+-    /// @brief return whether value is null
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_null/
+-    constexpr bool is_null() const noexcept
+-    {
+-        return m_type == value_t::null;
+-    }
+-
+-    /// @brief return whether value is a boolean
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_boolean/
+-    constexpr bool is_boolean() const noexcept
+-    {
+-        return m_type == value_t::boolean;
+-    }
+-
+-    /// @brief return whether value is a number
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_number/
+-    constexpr bool is_number() const noexcept
+-    {
+-        return is_number_integer() || is_number_float();
+-    }
+-
+-    /// @brief return whether value is an integer number
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_number_integer/
+-    constexpr bool is_number_integer() const noexcept
+-    {
+-        return m_type == value_t::number_integer || m_type == value_t::number_unsigned;
+-    }
+-
+-    /// @brief return whether value is an unsigned integer number
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_number_unsigned/
+-    constexpr bool is_number_unsigned() const noexcept
+-    {
+-        return m_type == value_t::number_unsigned;
+-    }
+-
+-    /// @brief return whether value is a floating-point number
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_number_float/
+-    constexpr bool is_number_float() const noexcept
+-    {
+-        return m_type == value_t::number_float;
+-    }
+-
+-    /// @brief return whether value is an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_object/
+-    constexpr bool is_object() const noexcept
+-    {
+-        return m_type == value_t::object;
+-    }
+-
+-    /// @brief return whether value is an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_array/
+-    constexpr bool is_array() const noexcept
+-    {
+-        return m_type == value_t::array;
+-    }
+-
+-    /// @brief return whether value is a string
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_string/
+-    constexpr bool is_string() const noexcept
+-    {
+-        return m_type == value_t::string;
+-    }
+-
+-    /// @brief return whether value is a binary array
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_binary/
+-    constexpr bool is_binary() const noexcept
+-    {
+-        return m_type == value_t::binary;
+-    }
+-
+-    /// @brief return whether value is discarded
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_discarded/
+-    constexpr bool is_discarded() const noexcept
+-    {
+-        return m_type == value_t::discarded;
+-    }
+-
+-    /// @brief return the type of the JSON value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_value_t/
+-    constexpr operator value_t() const noexcept
+-    {
+-        return m_type;
+-    }
+-
+-    /// @}
+-
+-  private:
+-    //////////////////
+-    // value access //
+-    //////////////////
+-
+-    /// get a boolean (explicit)
+-    boolean_t get_impl(boolean_t* /*unused*/) const
+-    {
+-        if (JSON_HEDLEY_LIKELY(is_boolean()))
+-        {
+-            return m_value.boolean;
+-        }
+-
+-        JSON_THROW(type_error::create(302, "type must be boolean, but is " + std::string(type_name()), *this));
+-    }
+-
+-    /// get a pointer to the value (object)
+-    object_t* get_impl_ptr(object_t* /*unused*/) noexcept
+-    {
+-        return is_object() ? m_value.object : nullptr;
+-    }
+-
+-    /// get a pointer to the value (object)
+-    constexpr const object_t* get_impl_ptr(const object_t* /*unused*/) const noexcept
+-    {
+-        return is_object() ? m_value.object : nullptr;
+-    }
+-
+-    /// get a pointer to the value (array)
+-    array_t* get_impl_ptr(array_t* /*unused*/) noexcept
+-    {
+-        return is_array() ? m_value.array : nullptr;
+-    }
+-
+-    /// get a pointer to the value (array)
+-    constexpr const array_t* get_impl_ptr(const array_t* /*unused*/) const noexcept
+-    {
+-        return is_array() ? m_value.array : nullptr;
+-    }
+-
+-    /// get a pointer to the value (string)
+-    string_t* get_impl_ptr(string_t* /*unused*/) noexcept
+-    {
+-        return is_string() ? m_value.string : nullptr;
+-    }
+-
+-    /// get a pointer to the value (string)
+-    constexpr const string_t* get_impl_ptr(const string_t* /*unused*/) const noexcept
+-    {
+-        return is_string() ? m_value.string : nullptr;
+-    }
+-
+-    /// get a pointer to the value (boolean)
+-    boolean_t* get_impl_ptr(boolean_t* /*unused*/) noexcept
+-    {
+-        return is_boolean() ? &m_value.boolean : nullptr;
+-    }
+-
+-    /// get a pointer to the value (boolean)
+-    constexpr const boolean_t* get_impl_ptr(const boolean_t* /*unused*/) const noexcept
+-    {
+-        return is_boolean() ? &m_value.boolean : nullptr;
+-    }
+-
+-    /// get a pointer to the value (integer number)
+-    number_integer_t* get_impl_ptr(number_integer_t* /*unused*/) noexcept
+-    {
+-        return is_number_integer() ? &m_value.number_integer : nullptr;
+-    }
+-
+-    /// get a pointer to the value (integer number)
+-    constexpr const number_integer_t* get_impl_ptr(const number_integer_t* /*unused*/) const noexcept
+-    {
+-        return is_number_integer() ? &m_value.number_integer : nullptr;
+-    }
+-
+-    /// get a pointer to the value (unsigned number)
+-    number_unsigned_t* get_impl_ptr(number_unsigned_t* /*unused*/) noexcept
+-    {
+-        return is_number_unsigned() ? &m_value.number_unsigned : nullptr;
+-    }
+-
+-    /// get a pointer to the value (unsigned number)
+-    constexpr const number_unsigned_t* get_impl_ptr(const number_unsigned_t* /*unused*/) const noexcept
+-    {
+-        return is_number_unsigned() ? &m_value.number_unsigned : nullptr;
+-    }
+-
+-    /// get a pointer to the value (floating-point number)
+-    number_float_t* get_impl_ptr(number_float_t* /*unused*/) noexcept
+-    {
+-        return is_number_float() ? &m_value.number_float : nullptr;
+-    }
+-
+-    /// get a pointer to the value (floating-point number)
+-    constexpr const number_float_t* get_impl_ptr(const number_float_t* /*unused*/) const noexcept
+-    {
+-        return is_number_float() ? &m_value.number_float : nullptr;
+-    }
+-
+-    /// get a pointer to the value (binary)
+-    binary_t* get_impl_ptr(binary_t* /*unused*/) noexcept
+-    {
+-        return is_binary() ? m_value.binary : nullptr;
+-    }
+-
+-    /// get a pointer to the value (binary)
+-    constexpr const binary_t* get_impl_ptr(const binary_t* /*unused*/) const noexcept
+-    {
+-        return is_binary() ? m_value.binary : nullptr;
+-    }
+-
+-    /*!
+-    @brief helper function to implement get_ref()
+-
+-    This function helps to implement get_ref() without code duplication for
+-    const and non-const overloads
+-
+-    @tparam ThisType will be deduced as `basic_json` or `const basic_json`
+-
+-    @throw type_error.303 if ReferenceType does not match underlying value
+-    type of the current JSON
+-    */
+-    template<typename ReferenceType, typename ThisType>
+-    static ReferenceType get_ref_impl(ThisType& obj)
+-    {
+-        // delegate the call to get_ptr<>()
+-        auto* ptr = obj.template get_ptr<typename std::add_pointer<ReferenceType>::type>();
+-
+-        if (JSON_HEDLEY_LIKELY(ptr != nullptr))
+-        {
+-            return *ptr;
+-        }
+-
+-        JSON_THROW(type_error::create(303, "incompatible ReferenceType for get_ref, actual type is " + std::string(obj.type_name()), obj));
+-    }
+-
+-  public:
+-    /// @name value access
+-    /// Direct access to the stored value of a JSON value.
+-    /// @{
+-
+-    /// @brief get a pointer value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_ptr/
+-    template<typename PointerType, typename std::enable_if<
+-                 std::is_pointer<PointerType>::value, int>::type = 0>
+-    auto get_ptr() noexcept -> decltype(std::declval<basic_json_t&>().get_impl_ptr(std::declval<PointerType>()))
+-    {
+-        // delegate the call to get_impl_ptr<>()
+-        return get_impl_ptr(static_cast<PointerType>(nullptr));
+-    }
+-
+-    /// @brief get a pointer value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_ptr/
+-    template < typename PointerType, typename std::enable_if <
+-                   std::is_pointer<PointerType>::value&&
+-                   std::is_const<typename std::remove_pointer<PointerType>::type>::value, int >::type = 0 >
+-    constexpr auto get_ptr() const noexcept -> decltype(std::declval<const basic_json_t&>().get_impl_ptr(std::declval<PointerType>()))
+-    {
+-        // delegate the call to get_impl_ptr<>() const
+-        return get_impl_ptr(static_cast<PointerType>(nullptr));
+-    }
+-
+-  private:
+-    /*!
+-    @brief get a value (explicit)
+-
+-    Explicit type conversion between the JSON value and a compatible value
+-    which is [CopyConstructible](https://en.cppreference.com/w/cpp/named_req/CopyConstructible)
+-    and [DefaultConstructible](https://en.cppreference.com/w/cpp/named_req/DefaultConstructible).
+-    The value is converted by calling the @ref json_serializer<ValueType>
+-    `from_json()` method.
+-
+-    The function is equivalent to executing
+-    @code {.cpp}
+-    ValueType ret;
+-    JSONSerializer<ValueType>::from_json(*this, ret);
+-    return ret;
+-    @endcode
+-
+-    This overloads is chosen if:
+-    - @a ValueType is not @ref basic_json,
+-    - @ref json_serializer<ValueType> has a `from_json()` method of the form
+-      `void from_json(const basic_json&, ValueType&)`, and
+-    - @ref json_serializer<ValueType> does not have a `from_json()` method of
+-      the form `ValueType from_json(const basic_json&)`
+-
+-    @tparam ValueType the returned value type
+-
+-    @return copy of the JSON value, converted to @a ValueType
+-
+-    @throw what @ref json_serializer<ValueType> `from_json()` method throws
+-
+-    @liveexample{The example below shows several conversions from JSON values
+-    to other types. There a few things to note: (1) Floating-point numbers can
+-    be converted to integers\, (2) A JSON array can be converted to a standard
+-    `std::vector<short>`\, (3) A JSON object can be converted to C++
+-    associative containers such as `std::unordered_map<std::string\,
+-    json>`.,get__ValueType_const}
+-
+-    @since version 2.1.0
+-    */
+-    template < typename ValueType,
+-               detail::enable_if_t <
+-                   detail::is_default_constructible<ValueType>::value&&
+-                   detail::has_from_json<basic_json_t, ValueType>::value,
+-                   int > = 0 >
+-    ValueType get_impl(detail::priority_tag<0> /*unused*/) const noexcept(noexcept(
+-                JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>(), std::declval<ValueType&>())))
+-    {
+-        auto ret = ValueType();
+-        JSONSerializer<ValueType>::from_json(*this, ret);
+-        return ret;
+-    }
+-
+-    /*!
+-    @brief get a value (explicit); special case
+-
+-    Explicit type conversion between the JSON value and a compatible value
+-    which is **not** [CopyConstructible](https://en.cppreference.com/w/cpp/named_req/CopyConstructible)
+-    and **not** [DefaultConstructible](https://en.cppreference.com/w/cpp/named_req/DefaultConstructible).
+-    The value is converted by calling the @ref json_serializer<ValueType>
+-    `from_json()` method.
+-
+-    The function is equivalent to executing
+-    @code {.cpp}
+-    return JSONSerializer<ValueType>::from_json(*this);
+-    @endcode
+-
+-    This overloads is chosen if:
+-    - @a ValueType is not @ref basic_json and
+-    - @ref json_serializer<ValueType> has a `from_json()` method of the form
+-      `ValueType from_json(const basic_json&)`
+-
+-    @note If @ref json_serializer<ValueType> has both overloads of
+-    `from_json()`, this one is chosen.
+-
+-    @tparam ValueType the returned value type
+-
+-    @return copy of the JSON value, converted to @a ValueType
+-
+-    @throw what @ref json_serializer<ValueType> `from_json()` method throws
+-
+-    @since version 2.1.0
+-    */
+-    template < typename ValueType,
+-               detail::enable_if_t <
+-                   detail::has_non_default_from_json<basic_json_t, ValueType>::value,
+-                   int > = 0 >
+-    ValueType get_impl(detail::priority_tag<1> /*unused*/) const noexcept(noexcept(
+-                JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>())))
+-    {
+-        return JSONSerializer<ValueType>::from_json(*this);
+-    }
+-
+-    /*!
+-    @brief get special-case overload
+-
+-    This overloads converts the current @ref basic_json in a different
+-    @ref basic_json type
+-
+-    @tparam BasicJsonType == @ref basic_json
+-
+-    @return a copy of *this, converted into @a BasicJsonType
+-
+-    @complexity Depending on the implementation of the called `from_json()`
+-                method.
+-
+-    @since version 3.2.0
+-    */
+-    template < typename BasicJsonType,
+-               detail::enable_if_t <
+-                   detail::is_basic_json<BasicJsonType>::value,
+-                   int > = 0 >
+-    BasicJsonType get_impl(detail::priority_tag<2> /*unused*/) const
+-    {
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief get special-case overload
+-
+-    This overloads avoids a lot of template boilerplate, it can be seen as the
+-    identity method
+-
+-    @tparam BasicJsonType == @ref basic_json
+-
+-    @return a copy of *this
+-
+-    @complexity Constant.
+-
+-    @since version 2.1.0
+-    */
+-    template<typename BasicJsonType,
+-             detail::enable_if_t<
+-                 std::is_same<BasicJsonType, basic_json_t>::value,
+-                 int> = 0>
+-    basic_json get_impl(detail::priority_tag<3> /*unused*/) const
+-    {
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief get a pointer value (explicit)
+-    @copydoc get()
+-    */
+-    template<typename PointerType,
+-             detail::enable_if_t<
+-                 std::is_pointer<PointerType>::value,
+-                 int> = 0>
+-    constexpr auto get_impl(detail::priority_tag<4> /*unused*/) const noexcept
+-    -> decltype(std::declval<const basic_json_t&>().template get_ptr<PointerType>())
+-    {
+-        // delegate the call to get_ptr
+-        return get_ptr<PointerType>();
+-    }
+-
+-  public:
+-    /*!
+-    @brief get a (pointer) value (explicit)
+-
+-    Performs explicit type conversion between the JSON value and a compatible value if required.
+-
+-    - If the requested type is a pointer to the internally stored JSON value that pointer is returned.
+-    No copies are made.
+-
+-    - If the requested type is the current @ref basic_json, or a different @ref basic_json convertible
+-    from the current @ref basic_json.
+-
+-    - Otherwise the value is converted by calling the @ref json_serializer<ValueType> `from_json()`
+-    method.
+-
+-    @tparam ValueTypeCV the provided value type
+-    @tparam ValueType the returned value type
+-
+-    @return copy of the JSON value, converted to @tparam ValueType if necessary
+-
+-    @throw what @ref json_serializer<ValueType> `from_json()` method throws if conversion is required
+-
+-    @since version 2.1.0
+-    */
+-    template < typename ValueTypeCV, typename ValueType = detail::uncvref_t<ValueTypeCV>>
+-#if defined(JSON_HAS_CPP_14)
+-    constexpr
+-#endif
+-    auto get() const noexcept(
+-    noexcept(std::declval<const basic_json_t&>().template get_impl<ValueType>(detail::priority_tag<4> {})))
+-    -> decltype(std::declval<const basic_json_t&>().template get_impl<ValueType>(detail::priority_tag<4> {}))
+-    {
+-        // we cannot static_assert on ValueTypeCV being non-const, because
+-        // there is support for get<const basic_json_t>(), which is why we
+-        // still need the uncvref
+-        static_assert(!std::is_reference<ValueTypeCV>::value,
+-                      "get() cannot be used with reference types, you might want to use get_ref()");
+-        return get_impl<ValueType>(detail::priority_tag<4> {});
+-    }
+-
+-    /*!
+-    @brief get a pointer value (explicit)
+-
+-    Explicit pointer access to the internally stored JSON value. No copies are
+-    made.
+-
+-    @warning The pointer becomes invalid if the underlying JSON object
+-    changes.
+-
+-    @tparam PointerType pointer type; must be a pointer to @ref array_t, @ref
+-    object_t, @ref string_t, @ref boolean_t, @ref number_integer_t,
+-    @ref number_unsigned_t, or @ref number_float_t.
+-
+-    @return pointer to the internally stored JSON value if the requested
+-    pointer type @a PointerType fits to the JSON value; `nullptr` otherwise
+-
+-    @complexity Constant.
+-
+-    @liveexample{The example below shows how pointers to internal values of a
+-    JSON value can be requested. Note that no type conversions are made and a
+-    `nullptr` is returned if the value and the requested pointer type does not
+-    match.,get__PointerType}
+-
+-    @sa see @ref get_ptr() for explicit pointer-member access
+-
+-    @since version 1.0.0
+-    */
+-    template<typename PointerType, typename std::enable_if<
+-                 std::is_pointer<PointerType>::value, int>::type = 0>
+-    auto get() noexcept -> decltype(std::declval<basic_json_t&>().template get_ptr<PointerType>())
+-    {
+-        // delegate the call to get_ptr
+-        return get_ptr<PointerType>();
+-    }
+-
+-    /// @brief get a value (explicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_to/
+-    template < typename ValueType,
+-               detail::enable_if_t <
+-                   !detail::is_basic_json<ValueType>::value&&
+-                   detail::has_from_json<basic_json_t, ValueType>::value,
+-                   int > = 0 >
+-    ValueType & get_to(ValueType& v) const noexcept(noexcept(
+-                JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>(), v)))
+-    {
+-        JSONSerializer<ValueType>::from_json(*this, v);
+-        return v;
+-    }
+-
+-    // specialization to allow calling get_to with a basic_json value
+-    // see https://github.com/nlohmann/json/issues/2175
+-    template<typename ValueType,
+-             detail::enable_if_t <
+-                 detail::is_basic_json<ValueType>::value,
+-                 int> = 0>
+-    ValueType & get_to(ValueType& v) const
+-    {
+-        v = *this;
+-        return v;
+-    }
+-
+-    template <
+-        typename T, std::size_t N,
+-        typename Array = T (&)[N], // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-        detail::enable_if_t <
+-            detail::has_from_json<basic_json_t, Array>::value, int > = 0 >
+-    Array get_to(T (&v)[N]) const // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-    noexcept(noexcept(JSONSerializer<Array>::from_json(
+-                          std::declval<const basic_json_t&>(), v)))
+-    {
+-        JSONSerializer<Array>::from_json(*this, v);
+-        return v;
+-    }
+-
+-    /// @brief get a reference value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_ref/
+-    template<typename ReferenceType, typename std::enable_if<
+-                 std::is_reference<ReferenceType>::value, int>::type = 0>
+-    ReferenceType get_ref()
+-    {
+-        // delegate call to get_ref_impl
+-        return get_ref_impl<ReferenceType>(*this);
+-    }
+-
+-    /// @brief get a reference value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_ref/
+-    template < typename ReferenceType, typename std::enable_if <
+-                   std::is_reference<ReferenceType>::value&&
+-                   std::is_const<typename std::remove_reference<ReferenceType>::type>::value, int >::type = 0 >
+-    ReferenceType get_ref() const
+-    {
+-        // delegate call to get_ref_impl
+-        return get_ref_impl<ReferenceType>(*this);
+-    }
+-
+-    /*!
+-    @brief get a value (implicit)
+-
+-    Implicit type conversion between the JSON value and a compatible value.
+-    The call is realized by calling @ref get() const.
+-
+-    @tparam ValueType non-pointer type compatible to the JSON value, for
+-    instance `int` for JSON integer numbers, `bool` for JSON booleans, or
+-    `std::vector` types for JSON arrays. The character type of @ref string_t
+-    as well as an initializer list of this type is excluded to avoid
+-    ambiguities as these types implicitly convert to `std::string`.
+-
+-    @return copy of the JSON value, converted to type @a ValueType
+-
+-    @throw type_error.302 in case passed type @a ValueType is incompatible
+-    to the JSON value type (e.g., the JSON value is of type boolean, but a
+-    string is requested); see example below
+-
+-    @complexity Linear in the size of the JSON value.
+-
+-    @liveexample{The example below shows several conversions from JSON values
+-    to other types. There a few things to note: (1) Floating-point numbers can
+-    be converted to integers\, (2) A JSON array can be converted to a standard
+-    `std::vector<short>`\, (3) A JSON object can be converted to C++
+-    associative containers such as `std::unordered_map<std::string\,
+-    json>`.,operator__ValueType}
+-
+-    @since version 1.0.0
+-    */
+-    template < typename ValueType, typename std::enable_if <
+-                   detail::conjunction <
+-                       detail::negation<std::is_pointer<ValueType>>,
+-                       detail::negation<std::is_same<ValueType, detail::json_ref<basic_json>>>,
+-                                        detail::negation<std::is_same<ValueType, typename string_t::value_type>>,
+-                                        detail::negation<detail::is_basic_json<ValueType>>,
+-                                        detail::negation<std::is_same<ValueType, std::initializer_list<typename string_t::value_type>>>,
+-
+-#if defined(JSON_HAS_CPP_17) && (defined(__GNUC__) || (defined(_MSC_VER) && _MSC_VER >= 1910 && _MSC_VER <= 1914))
+-                                                detail::negation<std::is_same<ValueType, std::string_view>>,
+-#endif
+-                                                detail::is_detected_lazy<detail::get_template_function, const basic_json_t&, ValueType>
+-                                                >::value, int >::type = 0 >
+-                                        JSON_EXPLICIT operator ValueType() const
+-    {
+-        // delegate the call to get<>() const
+-        return get<ValueType>();
+-    }
+-
+-    /// @brief get a binary value
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_binary/
+-    binary_t& get_binary()
+-    {
+-        if (!is_binary())
+-        {
+-            JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(type_name()), *this));
+-        }
+-
+-        return *get_ptr<binary_t*>();
+-    }
+-
+-    /// @brief get a binary value
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_binary/
+-    const binary_t& get_binary() const
+-    {
+-        if (!is_binary())
+-        {
+-            JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(type_name()), *this));
+-        }
+-
+-        return *get_ptr<const binary_t*>();
+-    }
+-
+-    /// @}
+-
+-
+-    ////////////////////
+-    // element access //
+-    ////////////////////
+-
+-    /// @name element access
+-    /// Access to the JSON value.
+-    /// @{
+-
+-    /// @brief access specified array element with bounds checking
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    reference at(size_type idx)
+-    {
+-        // at only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            JSON_TRY
+-            {
+-                return set_parent(m_value.array->at(idx));
+-            }
+-            JSON_CATCH (std::out_of_range&)
+-            {
+-                // create better exception explanation
+-                JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range", *this));
+-            }
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief access specified array element with bounds checking
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    const_reference at(size_type idx) const
+-    {
+-        // at only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            JSON_TRY
+-            {
+-                return m_value.array->at(idx);
+-            }
+-            JSON_CATCH (std::out_of_range&)
+-            {
+-                // create better exception explanation
+-                JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range", *this));
+-            }
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief access specified object element with bounds checking
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    reference at(const typename object_t::key_type& key)
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            JSON_TRY
+-            {
+-                return set_parent(m_value.object->at(key));
+-            }
+-            JSON_CATCH (std::out_of_range&)
+-            {
+-                // create better exception explanation
+-                JSON_THROW(out_of_range::create(403, "key '" + key + "' not found", *this));
+-            }
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief access specified object element with bounds checking
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    const_reference at(const typename object_t::key_type& key) const
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            JSON_TRY
+-            {
+-                return m_value.object->at(key);
+-            }
+-            JSON_CATCH (std::out_of_range&)
+-            {
+-                // create better exception explanation
+-                JSON_THROW(out_of_range::create(403, "key '" + key + "' not found", *this));
+-            }
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief access specified array element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    reference operator[](size_type idx)
+-    {
+-        // implicitly convert null value to an empty array
+-        if (is_null())
+-        {
+-            m_type = value_t::array;
+-            m_value.array = create<array_t>();
+-            assert_invariant();
+-        }
+-
+-        // operator[] only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            // fill up array with null values if given idx is outside range
+-            if (idx >= m_value.array->size())
+-            {
+-#if JSON_DIAGNOSTICS
+-                // remember array size & capacity before resizing
+-                const auto old_size = m_value.array->size();
+-                const auto old_capacity = m_value.array->capacity();
+-#endif
+-                m_value.array->resize(idx + 1);
+-
+-#if JSON_DIAGNOSTICS
+-                if (JSON_HEDLEY_UNLIKELY(m_value.array->capacity() != old_capacity))
+-                {
+-                    // capacity has changed: update all parents
+-                    set_parents();
+-                }
+-                else
+-                {
+-                    // set parent for values added above
+-                    set_parents(begin() + static_cast<typename iterator::difference_type>(old_size), static_cast<typename iterator::difference_type>(idx + 1 - old_size));
+-                }
+-#endif
+-                assert_invariant();
+-            }
+-
+-            return m_value.array->operator[](idx);
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a numeric argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified array element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    const_reference operator[](size_type idx) const
+-    {
+-        // const operator[] only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            return m_value.array->operator[](idx);
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a numeric argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    reference operator[](const typename object_t::key_type& key)
+-    {
+-        // implicitly convert null value to an empty object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value.object = create<object_t>();
+-            assert_invariant();
+-        }
+-
+-        // operator[] only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            return set_parent(m_value.object->operator[](key));
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    const_reference operator[](const typename object_t::key_type& key) const
+-    {
+-        // const operator[] only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            JSON_ASSERT(m_value.object->find(key) != m_value.object->end());
+-            return m_value.object->find(key)->second;
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    template<typename T>
+-    JSON_HEDLEY_NON_NULL(2)
+-    reference operator[](T* key)
+-    {
+-        // implicitly convert null to object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value = value_t::object;
+-            assert_invariant();
+-        }
+-
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            return set_parent(m_value.object->operator[](key));
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    template<typename T>
+-    JSON_HEDLEY_NON_NULL(2)
+-    const_reference operator[](T* key) const
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            JSON_ASSERT(m_value.object->find(key) != m_value.object->end());
+-            return m_value.object->find(key)->second;
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element with default value
+-    /// @sa https://json.nlohmann.me/api/basic_json/value/
+-    /// using std::is_convertible in a std::enable_if will fail when using explicit conversions
+-    template < class ValueType, typename std::enable_if <
+-                   detail::is_getable<basic_json_t, ValueType>::value
+-                   && !std::is_same<value_t, ValueType>::value, int >::type = 0 >
+-    ValueType value(const typename object_t::key_type& key, const ValueType& default_value) const
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            // if key is found, return value and given default value otherwise
+-            const auto it = find(key);
+-            if (it != end())
+-            {
+-                return it->template get<ValueType>();
+-            }
+-
+-            return default_value;
+-        }
+-
+-        JSON_THROW(type_error::create(306, "cannot use value() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element with default value
+-    /// @sa https://json.nlohmann.me/api/basic_json/value/
+-    /// overload for a default value of type const char*
+-    string_t value(const typename object_t::key_type& key, const char* default_value) const
+-    {
+-        return value(key, string_t(default_value));
+-    }
+-
+-    /// @brief access specified object element via JSON Pointer with default value
+-    /// @sa https://json.nlohmann.me/api/basic_json/value/
+-    template<class ValueType, typename std::enable_if<
+-                 detail::is_getable<basic_json_t, ValueType>::value, int>::type = 0>
+-    ValueType value(const json_pointer& ptr, const ValueType& default_value) const
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            // if pointer resolves a value, return it or use default value
+-            JSON_TRY
+-            {
+-                return ptr.get_checked(this).template get<ValueType>();
+-            }
+-            JSON_INTERNAL_CATCH (out_of_range&)
+-            {
+-                return default_value;
+-            }
+-        }
+-
+-        JSON_THROW(type_error::create(306, "cannot use value() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element via JSON Pointer with default value
+-    /// @sa https://json.nlohmann.me/api/basic_json/value/
+-    /// overload for a default value of type const char*
+-    JSON_HEDLEY_NON_NULL(3)
+-    string_t value(const json_pointer& ptr, const char* default_value) const
+-    {
+-        return value(ptr, string_t(default_value));
+-    }
+-
+-    /// @brief access the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/front/
+-    reference front()
+-    {
+-        return *begin();
+-    }
+-
+-    /// @brief access the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/front/
+-    const_reference front() const
+-    {
+-        return *cbegin();
+-    }
+-
+-    /// @brief access the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/back/
+-    reference back()
+-    {
+-        auto tmp = end();
+-        --tmp;
+-        return *tmp;
+-    }
+-
+-    /// @brief access the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/back/
+-    const_reference back() const
+-    {
+-        auto tmp = cend();
+-        --tmp;
+-        return *tmp;
+-    }
+-
+-    /// @brief remove element given an iterator
+-    /// @sa https://json.nlohmann.me/api/basic_json/erase/
+-    template < class IteratorType, typename std::enable_if <
+-                   std::is_same<IteratorType, typename basic_json_t::iterator>::value ||
+-                   std::is_same<IteratorType, typename basic_json_t::const_iterator>::value, int >::type
+-               = 0 >
+-    IteratorType erase(IteratorType pos)
+-    {
+-        // make sure iterator fits the current value
+-        if (JSON_HEDLEY_UNLIKELY(this != pos.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-        }
+-
+-        IteratorType result = end();
+-
+-        switch (m_type)
+-        {
+-            case value_t::boolean:
+-            case value_t::number_float:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::string:
+-            case value_t::binary:
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!pos.m_it.primitive_iterator.is_begin()))
+-                {
+-                    JSON_THROW(invalid_iterator::create(205, "iterator out of range", *this));
+-                }
+-
+-                if (is_string())
+-                {
+-                    AllocatorType<string_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.string);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.string, 1);
+-                    m_value.string = nullptr;
+-                }
+-                else if (is_binary())
+-                {
+-                    AllocatorType<binary_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.binary);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.binary, 1);
+-                    m_value.binary = nullptr;
+-                }
+-
+-                m_type = value_t::null;
+-                assert_invariant();
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                result.m_it.object_iterator = m_value.object->erase(pos.m_it.object_iterator);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                result.m_it.array_iterator = m_value.array->erase(pos.m_it.array_iterator);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief remove elements given an iterator range
+-    /// @sa https://json.nlohmann.me/api/basic_json/erase/
+-    template < class IteratorType, typename std::enable_if <
+-                   std::is_same<IteratorType, typename basic_json_t::iterator>::value ||
+-                   std::is_same<IteratorType, typename basic_json_t::const_iterator>::value, int >::type
+-               = 0 >
+-    IteratorType erase(IteratorType first, IteratorType last)
+-    {
+-        // make sure iterator fits the current value
+-        if (JSON_HEDLEY_UNLIKELY(this != first.m_object || this != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(203, "iterators do not fit current value", *this));
+-        }
+-
+-        IteratorType result = end();
+-
+-        switch (m_type)
+-        {
+-            case value_t::boolean:
+-            case value_t::number_float:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::string:
+-            case value_t::binary:
+-            {
+-                if (JSON_HEDLEY_LIKELY(!first.m_it.primitive_iterator.is_begin()
+-                                       || !last.m_it.primitive_iterator.is_end()))
+-                {
+-                    JSON_THROW(invalid_iterator::create(204, "iterators out of range", *this));
+-                }
+-
+-                if (is_string())
+-                {
+-                    AllocatorType<string_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.string);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.string, 1);
+-                    m_value.string = nullptr;
+-                }
+-                else if (is_binary())
+-                {
+-                    AllocatorType<binary_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.binary);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.binary, 1);
+-                    m_value.binary = nullptr;
+-                }
+-
+-                m_type = value_t::null;
+-                assert_invariant();
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                result.m_it.object_iterator = m_value.object->erase(first.m_it.object_iterator,
+-                                              last.m_it.object_iterator);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                result.m_it.array_iterator = m_value.array->erase(first.m_it.array_iterator,
+-                                             last.m_it.array_iterator);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief remove element from a JSON object given a key
+-    /// @sa https://json.nlohmann.me/api/basic_json/erase/
+-    size_type erase(const typename object_t::key_type& key)
+-    {
+-        // this erase only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            return m_value.object->erase(key);
+-        }
+-
+-        JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief remove element from a JSON array given an index
+-    /// @sa https://json.nlohmann.me/api/basic_json/erase/
+-    void erase(const size_type idx)
+-    {
+-        // this erase only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(idx >= size()))
+-            {
+-                JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range", *this));
+-            }
+-
+-            m_value.array->erase(m_value.array->begin() + static_cast<difference_type>(idx));
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @}
+-
+-
+-    ////////////
+-    // lookup //
+-    ////////////
+-
+-    /// @name lookup
+-    /// @{
+-
+-    /// @brief find an element in a JSON object
+-    /// @sa https://json.nlohmann.me/api/basic_json/find/
+-    template<typename KeyT>
+-    iterator find(KeyT&& key)
+-    {
+-        auto result = end();
+-
+-        if (is_object())
+-        {
+-            result.m_it.object_iterator = m_value.object->find(std::forward<KeyT>(key));
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief find an element in a JSON object
+-    /// @sa https://json.nlohmann.me/api/basic_json/find/
+-    template<typename KeyT>
+-    const_iterator find(KeyT&& key) const
+-    {
+-        auto result = cend();
+-
+-        if (is_object())
+-        {
+-            result.m_it.object_iterator = m_value.object->find(std::forward<KeyT>(key));
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief returns the number of occurrences of a key in a JSON object
+-    /// @sa https://json.nlohmann.me/api/basic_json/count/
+-    template<typename KeyT>
+-    size_type count(KeyT&& key) const
+-    {
+-        // return 0 for all nonobject types
+-        return is_object() ? m_value.object->count(std::forward<KeyT>(key)) : 0;
+-    }
+-
+-    /// @brief check the existence of an element in a JSON object
+-    /// @sa https://json.nlohmann.me/api/basic_json/contains/
+-    template < typename KeyT, typename std::enable_if <
+-                   !std::is_same<typename std::decay<KeyT>::type, json_pointer>::value, int >::type = 0 >
+-    bool contains(KeyT && key) const
+-    {
+-        return is_object() && m_value.object->find(std::forward<KeyT>(key)) != m_value.object->end();
+-    }
+-
+-    /// @brief check the existence of an element in a JSON object given a JSON pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/contains/
+-    bool contains(const json_pointer& ptr) const
+-    {
+-        return ptr.contains(this);
+-    }
+-
+-    /// @}
+-
+-
+-    ///////////////
+-    // iterators //
+-    ///////////////
+-
+-    /// @name iterators
+-    /// @{
+-
+-    /// @brief returns an iterator to the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/begin/
+-    iterator begin() noexcept
+-    {
+-        iterator result(this);
+-        result.set_begin();
+-        return result;
+-    }
+-
+-    /// @brief returns an iterator to the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/begin/
+-    const_iterator begin() const noexcept
+-    {
+-        return cbegin();
+-    }
+-
+-    /// @brief returns a const iterator to the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/cbegin/
+-    const_iterator cbegin() const noexcept
+-    {
+-        const_iterator result(this);
+-        result.set_begin();
+-        return result;
+-    }
+-
+-    /// @brief returns an iterator to one past the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/end/
+-    iterator end() noexcept
+-    {
+-        iterator result(this);
+-        result.set_end();
+-        return result;
+-    }
+-
+-    /// @brief returns an iterator to one past the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/end/
+-    const_iterator end() const noexcept
+-    {
+-        return cend();
+-    }
+-
+-    /// @brief returns an iterator to one past the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/cend/
+-    const_iterator cend() const noexcept
+-    {
+-        const_iterator result(this);
+-        result.set_end();
+-        return result;
+-    }
+-
+-    /// @brief returns an iterator to the reverse-beginning
+-    /// @sa https://json.nlohmann.me/api/basic_json/rbegin/
+-    reverse_iterator rbegin() noexcept
+-    {
+-        return reverse_iterator(end());
+-    }
+-
+-    /// @brief returns an iterator to the reverse-beginning
+-    /// @sa https://json.nlohmann.me/api/basic_json/rbegin/
+-    const_reverse_iterator rbegin() const noexcept
+-    {
+-        return crbegin();
+-    }
+-
+-    /// @brief returns an iterator to the reverse-end
+-    /// @sa https://json.nlohmann.me/api/basic_json/rend/
+-    reverse_iterator rend() noexcept
+-    {
+-        return reverse_iterator(begin());
+-    }
+-
+-    /// @brief returns an iterator to the reverse-end
+-    /// @sa https://json.nlohmann.me/api/basic_json/rend/
+-    const_reverse_iterator rend() const noexcept
+-    {
+-        return crend();
+-    }
+-
+-    /// @brief returns a const reverse iterator to the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/crbegin/
+-    const_reverse_iterator crbegin() const noexcept
+-    {
+-        return const_reverse_iterator(cend());
+-    }
+-
+-    /// @brief returns a const reverse iterator to one before the first
+-    /// @sa https://json.nlohmann.me/api/basic_json/crend/
+-    const_reverse_iterator crend() const noexcept
+-    {
+-        return const_reverse_iterator(cbegin());
+-    }
+-
+-  public:
+-    /// @brief wrapper to access iterator member functions in range-based for
+-    /// @sa https://json.nlohmann.me/api/basic_json/items/
+-    /// @deprecated This function is deprecated since 3.1.0 and will be removed in
+-    ///             version 4.0.0 of the library. Please use @ref items() instead;
+-    ///             that is, replace `json::iterator_wrapper(j)` with `j.items()`.
+-    JSON_HEDLEY_DEPRECATED_FOR(3.1.0, items())
+-    static iteration_proxy<iterator> iterator_wrapper(reference ref) noexcept
+-    {
+-        return ref.items();
+-    }
+-
+-    /// @brief wrapper to access iterator member functions in range-based for
+-    /// @sa https://json.nlohmann.me/api/basic_json/items/
+-    /// @deprecated This function is deprecated since 3.1.0 and will be removed in
+-    ///         version 4.0.0 of the library. Please use @ref items() instead;
+-    ///         that is, replace `json::iterator_wrapper(j)` with `j.items()`.
+-    JSON_HEDLEY_DEPRECATED_FOR(3.1.0, items())
+-    static iteration_proxy<const_iterator> iterator_wrapper(const_reference ref) noexcept
+-    {
+-        return ref.items();
+-    }
+-
+-    /// @brief helper to access iterator member functions in range-based for
+-    /// @sa https://json.nlohmann.me/api/basic_json/items/
+-    iteration_proxy<iterator> items() noexcept
+-    {
+-        return iteration_proxy<iterator>(*this);
+-    }
+-
+-    /// @brief helper to access iterator member functions in range-based for
+-    /// @sa https://json.nlohmann.me/api/basic_json/items/
+-    iteration_proxy<const_iterator> items() const noexcept
+-    {
+-        return iteration_proxy<const_iterator>(*this);
+-    }
+-
+-    /// @}
+-
+-
+-    //////////////
+-    // capacity //
+-    //////////////
+-
+-    /// @name capacity
+-    /// @{
+-
+-    /// @brief checks whether the container is empty.
+-    /// @sa https://json.nlohmann.me/api/basic_json/empty/
+-    bool empty() const noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::null:
+-            {
+-                // null values are empty
+-                return true;
+-            }
+-
+-            case value_t::array:
+-            {
+-                // delegate call to array_t::empty()
+-                return m_value.array->empty();
+-            }
+-
+-            case value_t::object:
+-            {
+-                // delegate call to object_t::empty()
+-                return m_value.object->empty();
+-            }
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                // all other types are nonempty
+-                return false;
+-            }
+-        }
+-    }
+-
+-    /// @brief returns the number of elements
+-    /// @sa https://json.nlohmann.me/api/basic_json/size/
+-    size_type size() const noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::null:
+-            {
+-                // null values are empty
+-                return 0;
+-            }
+-
+-            case value_t::array:
+-            {
+-                // delegate call to array_t::size()
+-                return m_value.array->size();
+-            }
+-
+-            case value_t::object:
+-            {
+-                // delegate call to object_t::size()
+-                return m_value.object->size();
+-            }
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                // all other types have size 1
+-                return 1;
+-            }
+-        }
+-    }
+-
+-    /// @brief returns the maximum possible number of elements
+-    /// @sa https://json.nlohmann.me/api/basic_json/max_size/
+-    size_type max_size() const noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::array:
+-            {
+-                // delegate call to array_t::max_size()
+-                return m_value.array->max_size();
+-            }
+-
+-            case value_t::object:
+-            {
+-                // delegate call to object_t::max_size()
+-                return m_value.object->max_size();
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                // all other types have max_size() == size()
+-                return size();
+-            }
+-        }
+-    }
+-
+-    /// @}
+-
+-
+-    ///////////////
+-    // modifiers //
+-    ///////////////
+-
+-    /// @name modifiers
+-    /// @{
+-
+-    /// @brief clears the contents
+-    /// @sa https://json.nlohmann.me/api/basic_json/clear/
+-    void clear() noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::number_integer:
+-            {
+-                m_value.number_integer = 0;
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                m_value.number_unsigned = 0;
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                m_value.number_float = 0.0;
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                m_value.boolean = false;
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                m_value.string->clear();
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                m_value.binary->clear();
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_value.array->clear();
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                m_value.object->clear();
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/push_back/
+-    void push_back(basic_json&& val)
+-    {
+-        // push_back only works for null objects or arrays
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array())))
+-        {
+-            JSON_THROW(type_error::create(308, "cannot use push_back() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an array
+-        if (is_null())
+-        {
+-            m_type = value_t::array;
+-            m_value = value_t::array;
+-            assert_invariant();
+-        }
+-
+-        // add element to array (move semantics)
+-        const auto old_capacity = m_value.array->capacity();
+-        m_value.array->push_back(std::move(val));
+-        set_parent(m_value.array->back(), old_capacity);
+-        // if val is moved from, basic_json move constructor marks it null, so we do not call the destructor
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
+-    reference operator+=(basic_json&& val)
+-    {
+-        push_back(std::move(val));
+-        return *this;
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/push_back/
+-    void push_back(const basic_json& val)
+-    {
+-        // push_back only works for null objects or arrays
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array())))
+-        {
+-            JSON_THROW(type_error::create(308, "cannot use push_back() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an array
+-        if (is_null())
+-        {
+-            m_type = value_t::array;
+-            m_value = value_t::array;
+-            assert_invariant();
+-        }
+-
+-        // add element to array
+-        const auto old_capacity = m_value.array->capacity();
+-        m_value.array->push_back(val);
+-        set_parent(m_value.array->back(), old_capacity);
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
+-    reference operator+=(const basic_json& val)
+-    {
+-        push_back(val);
+-        return *this;
+-    }
+-
+-    /// @brief add an object to an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/push_back/
+-    void push_back(const typename object_t::value_type& val)
+-    {
+-        // push_back only works for null objects or objects
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_object())))
+-        {
+-            JSON_THROW(type_error::create(308, "cannot use push_back() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value = value_t::object;
+-            assert_invariant();
+-        }
+-
+-        // add element to object
+-        auto res = m_value.object->insert(val);
+-        set_parent(res.first->second);
+-    }
+-
+-    /// @brief add an object to an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
+-    reference operator+=(const typename object_t::value_type& val)
+-    {
+-        push_back(val);
+-        return *this;
+-    }
+-
+-    /// @brief add an object to an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/push_back/
+-    void push_back(initializer_list_t init)
+-    {
+-        if (is_object() && init.size() == 2 && (*init.begin())->is_string())
+-        {
+-            basic_json&& key = init.begin()->moved_or_copied();
+-            push_back(typename object_t::value_type(
+-                          std::move(key.get_ref<string_t&>()), (init.begin() + 1)->moved_or_copied()));
+-        }
+-        else
+-        {
+-            push_back(basic_json(init));
+-        }
+-    }
+-
+-    /// @brief add an object to an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
+-    reference operator+=(initializer_list_t init)
+-    {
+-        push_back(init);
+-        return *this;
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/emplace_back/
+-    template<class... Args>
+-    reference emplace_back(Args&& ... args)
+-    {
+-        // emplace_back only works for null objects or arrays
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array())))
+-        {
+-            JSON_THROW(type_error::create(311, "cannot use emplace_back() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an array
+-        if (is_null())
+-        {
+-            m_type = value_t::array;
+-            m_value = value_t::array;
+-            assert_invariant();
+-        }
+-
+-        // add element to array (perfect forwarding)
+-        const auto old_capacity = m_value.array->capacity();
+-        m_value.array->emplace_back(std::forward<Args>(args)...);
+-        return set_parent(m_value.array->back(), old_capacity);
+-    }
+-
+-    /// @brief add an object to an object if key does not exist
+-    /// @sa https://json.nlohmann.me/api/basic_json/emplace/
+-    template<class... Args>
+-    std::pair<iterator, bool> emplace(Args&& ... args)
+-    {
+-        // emplace only works for null objects or arrays
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_object())))
+-        {
+-            JSON_THROW(type_error::create(311, "cannot use emplace() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value = value_t::object;
+-            assert_invariant();
+-        }
+-
+-        // add element to array (perfect forwarding)
+-        auto res = m_value.object->emplace(std::forward<Args>(args)...);
+-        set_parent(res.first->second);
+-
+-        // create result iterator and set iterator to the result of emplace
+-        auto it = begin();
+-        it.m_it.object_iterator = res.first;
+-
+-        // return pair of iterator and boolean
+-        return {it, res.second};
+-    }
+-
+-    /// Helper for insertion of an iterator
+-    /// @note: This uses std::distance to support GCC 4.8,
+-    ///        see https://github.com/nlohmann/json/pull/1257
+-    template<typename... Args>
+-    iterator insert_iterator(const_iterator pos, Args&& ... args)
+-    {
+-        iterator result(this);
+-        JSON_ASSERT(m_value.array != nullptr);
+-
+-        auto insert_pos = std::distance(m_value.array->begin(), pos.m_it.array_iterator);
+-        m_value.array->insert(pos.m_it.array_iterator, std::forward<Args>(args)...);
+-        result.m_it.array_iterator = m_value.array->begin() + insert_pos;
+-
+-        // This could have been written as:
+-        // result.m_it.array_iterator = m_value.array->insert(pos.m_it.array_iterator, cnt, val);
+-        // but the return value of insert is missing in GCC 4.8, so it is written this way instead.
+-
+-        set_parents();
+-        return result;
+-    }
+-
+-    /// @brief inserts element into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, const basic_json& val)
+-    {
+-        // insert only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            // check if iterator pos fits to this JSON value
+-            if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
+-            {
+-                JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-            }
+-
+-            // insert to array and return iterator
+-            return insert_iterator(pos, val);
+-        }
+-
+-        JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief inserts element into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, basic_json&& val)
+-    {
+-        return insert(pos, val);
+-    }
+-
+-    /// @brief inserts copies of element into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, size_type cnt, const basic_json& val)
+-    {
+-        // insert only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            // check if iterator pos fits to this JSON value
+-            if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
+-            {
+-                JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-            }
+-
+-            // insert to array and return iterator
+-            return insert_iterator(pos, cnt, val);
+-        }
+-
+-        JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief inserts range of elements into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, const_iterator first, const_iterator last)
+-    {
+-        // insert only works for arrays
+-        if (JSON_HEDLEY_UNLIKELY(!is_array()))
+-        {
+-            JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-        }
+-
+-        // check if iterator pos fits to this JSON value
+-        if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
+-        {
+-            JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-        }
+-
+-        // check if range iterators belong to the same JSON object
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(210, "iterators do not fit", *this));
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object == this))
+-        {
+-            JSON_THROW(invalid_iterator::create(211, "passed iterators may not belong to container", *this));
+-        }
+-
+-        // insert to array and return iterator
+-        return insert_iterator(pos, first.m_it.array_iterator, last.m_it.array_iterator);
+-    }
+-
+-    /// @brief inserts elements from initializer list into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, initializer_list_t ilist)
+-    {
+-        // insert only works for arrays
+-        if (JSON_HEDLEY_UNLIKELY(!is_array()))
+-        {
+-            JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-        }
+-
+-        // check if iterator pos fits to this JSON value
+-        if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
+-        {
+-            JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-        }
+-
+-        // insert to array and return iterator
+-        return insert_iterator(pos, ilist.begin(), ilist.end());
+-    }
+-
+-    /// @brief inserts range of elements into object
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    void insert(const_iterator first, const_iterator last)
+-    {
+-        // insert only works for objects
+-        if (JSON_HEDLEY_UNLIKELY(!is_object()))
+-        {
+-            JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-        }
+-
+-        // check if range iterators belong to the same JSON object
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(210, "iterators do not fit", *this));
+-        }
+-
+-        // passed iterators must belong to objects
+-        if (JSON_HEDLEY_UNLIKELY(!first.m_object->is_object()))
+-        {
+-            JSON_THROW(invalid_iterator::create(202, "iterators first and last must point to objects", *this));
+-        }
+-
+-        m_value.object->insert(first.m_it.object_iterator, last.m_it.object_iterator);
+-    }
+-
+-    /// @brief updates a JSON object from another object, overwriting existing keys
+-    /// @sa https://json.nlohmann.me/api/basic_json/update/
+-    void update(const_reference j, bool merge_objects = false)
+-    {
+-        update(j.begin(), j.end(), merge_objects);
+-    }
+-
+-    /// @brief updates a JSON object from another object, overwriting existing keys
+-    /// @sa https://json.nlohmann.me/api/basic_json/update/
+-    void update(const_iterator first, const_iterator last, bool merge_objects = false)
+-    {
+-        // implicitly convert null value to an empty object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value.object = create<object_t>();
+-            assert_invariant();
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(!is_object()))
+-        {
+-            JSON_THROW(type_error::create(312, "cannot use update() with " + std::string(type_name()), *this));
+-        }
+-
+-        // check if range iterators belong to the same JSON object
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(210, "iterators do not fit", *this));
+-        }
+-
+-        // passed iterators must belong to objects
+-        if (JSON_HEDLEY_UNLIKELY(!first.m_object->is_object()))
+-        {
+-            JSON_THROW(type_error::create(312, "cannot use update() with " + std::string(first.m_object->type_name()), *first.m_object));
+-        }
+-
+-        for (auto it = first; it != last; ++it)
+-        {
+-            if (merge_objects && it.value().is_object())
+-            {
+-                auto it2 = m_value.object->find(it.key());
+-                if (it2 != m_value.object->end())
+-                {
+-                    it2->second.update(it.value(), true);
+-                    continue;
+-                }
+-            }
+-            m_value.object->operator[](it.key()) = it.value();
+-#if JSON_DIAGNOSTICS
+-            m_value.object->operator[](it.key()).m_parent = this;
+-#endif
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(reference other) noexcept (
+-        std::is_nothrow_move_constructible<value_t>::value&&
+-        std::is_nothrow_move_assignable<value_t>::value&&
+-        std::is_nothrow_move_constructible<json_value>::value&&
+-        std::is_nothrow_move_assignable<json_value>::value
+-    )
+-    {
+-        std::swap(m_type, other.m_type);
+-        std::swap(m_value, other.m_value);
+-
+-        set_parents();
+-        other.set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    friend void swap(reference left, reference right) noexcept (
+-        std::is_nothrow_move_constructible<value_t>::value&&
+-        std::is_nothrow_move_assignable<value_t>::value&&
+-        std::is_nothrow_move_constructible<json_value>::value&&
+-        std::is_nothrow_move_assignable<json_value>::value
+-    )
+-    {
+-        left.swap(right);
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(array_t& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            std::swap(*(m_value.array), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(object_t& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            std::swap(*(m_value.object), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(string_t& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for strings
+-        if (JSON_HEDLEY_LIKELY(is_string()))
+-        {
+-            std::swap(*(m_value.string), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(binary_t& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for strings
+-        if (JSON_HEDLEY_LIKELY(is_binary()))
+-        {
+-            std::swap(*(m_value.binary), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(typename binary_t::container_type& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for strings
+-        if (JSON_HEDLEY_LIKELY(is_binary()))
+-        {
+-            std::swap(*(m_value.binary), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @}
+-
+-  public:
+-    //////////////////////////////////////////
+-    // lexicographical comparison operators //
+-    //////////////////////////////////////////
+-
+-    /// @name lexicographical comparison operators
+-    /// @{
+-
+-    /// @brief comparison: equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
+-    friend bool operator==(const_reference lhs, const_reference rhs) noexcept
+-    {
+-#ifdef __GNUC__
+-#pragma GCC diagnostic push
+-#pragma GCC diagnostic ignored "-Wfloat-equal"
+-#endif
+-        const auto lhs_type = lhs.type();
+-        const auto rhs_type = rhs.type();
+-
+-        if (lhs_type == rhs_type)
+-        {
+-            switch (lhs_type)
+-            {
+-                case value_t::array:
+-                    return *lhs.m_value.array == *rhs.m_value.array;
+-
+-                case value_t::object:
+-                    return *lhs.m_value.object == *rhs.m_value.object;
+-
+-                case value_t::null:
+-                    return true;
+-
+-                case value_t::string:
+-                    return *lhs.m_value.string == *rhs.m_value.string;
+-
+-                case value_t::boolean:
+-                    return lhs.m_value.boolean == rhs.m_value.boolean;
+-
+-                case value_t::number_integer:
+-                    return lhs.m_value.number_integer == rhs.m_value.number_integer;
+-
+-                case value_t::number_unsigned:
+-                    return lhs.m_value.number_unsigned == rhs.m_value.number_unsigned;
+-
+-                case value_t::number_float:
+-                    return lhs.m_value.number_float == rhs.m_value.number_float;
+-
+-                case value_t::binary:
+-                    return *lhs.m_value.binary == *rhs.m_value.binary;
+-
+-                case value_t::discarded:
+-                default:
+-                    return false;
+-            }
+-        }
+-        else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_float)
+-        {
+-            return static_cast<number_float_t>(lhs.m_value.number_integer) == rhs.m_value.number_float;
+-        }
+-        else if (lhs_type == value_t::number_float && rhs_type == value_t::number_integer)
+-        {
+-            return lhs.m_value.number_float == static_cast<number_float_t>(rhs.m_value.number_integer);
+-        }
+-        else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_float)
+-        {
+-            return static_cast<number_float_t>(lhs.m_value.number_unsigned) == rhs.m_value.number_float;
+-        }
+-        else if (lhs_type == value_t::number_float && rhs_type == value_t::number_unsigned)
+-        {
+-            return lhs.m_value.number_float == static_cast<number_float_t>(rhs.m_value.number_unsigned);
+-        }
+-        else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_integer)
+-        {
+-            return static_cast<number_integer_t>(lhs.m_value.number_unsigned) == rhs.m_value.number_integer;
+-        }
+-        else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_unsigned)
+-        {
+-            return lhs.m_value.number_integer == static_cast<number_integer_t>(rhs.m_value.number_unsigned);
+-        }
+-
+-        return false;
+-#ifdef __GNUC__
+-#pragma GCC diagnostic pop
+-#endif
+-    }
+-
+-    /// @brief comparison: equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator==(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs == basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator==(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) == rhs;
+-    }
+-
+-    /// @brief comparison: not equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ne/
+-    friend bool operator!=(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        return !(lhs == rhs);
+-    }
+-
+-    /// @brief comparison: not equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ne/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator!=(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs != basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: not equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ne/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator!=(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) != rhs;
+-    }
+-
+-    /// @brief comparison: less than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_lt/
+-    friend bool operator<(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        const auto lhs_type = lhs.type();
+-        const auto rhs_type = rhs.type();
+-
+-        if (lhs_type == rhs_type)
+-        {
+-            switch (lhs_type)
+-            {
+-                case value_t::array:
+-                    // note parentheses are necessary, see
+-                    // https://github.com/nlohmann/json/issues/1530
+-                    return (*lhs.m_value.array) < (*rhs.m_value.array);
+-
+-                case value_t::object:
+-                    return (*lhs.m_value.object) < (*rhs.m_value.object);
+-
+-                case value_t::null:
+-                    return false;
+-
+-                case value_t::string:
+-                    return (*lhs.m_value.string) < (*rhs.m_value.string);
+-
+-                case value_t::boolean:
+-                    return (lhs.m_value.boolean) < (rhs.m_value.boolean);
+-
+-                case value_t::number_integer:
+-                    return (lhs.m_value.number_integer) < (rhs.m_value.number_integer);
+-
+-                case value_t::number_unsigned:
+-                    return (lhs.m_value.number_unsigned) < (rhs.m_value.number_unsigned);
+-
+-                case value_t::number_float:
+-                    return (lhs.m_value.number_float) < (rhs.m_value.number_float);
+-
+-                case value_t::binary:
+-                    return (*lhs.m_value.binary) < (*rhs.m_value.binary);
+-
+-                case value_t::discarded:
+-                default:
+-                    return false;
+-            }
+-        }
+-        else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_float)
+-        {
+-            return static_cast<number_float_t>(lhs.m_value.number_integer) < rhs.m_value.number_float;
+-        }
+-        else if (lhs_type == value_t::number_float && rhs_type == value_t::number_integer)
+-        {
+-            return lhs.m_value.number_float < static_cast<number_float_t>(rhs.m_value.number_integer);
+-        }
+-        else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_float)
+-        {
+-            return static_cast<number_float_t>(lhs.m_value.number_unsigned) < rhs.m_value.number_float;
+-        }
+-        else if (lhs_type == value_t::number_float && rhs_type == value_t::number_unsigned)
+-        {
+-            return lhs.m_value.number_float < static_cast<number_float_t>(rhs.m_value.number_unsigned);
+-        }
+-        else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_unsigned)
+-        {
+-            return lhs.m_value.number_integer < static_cast<number_integer_t>(rhs.m_value.number_unsigned);
+-        }
+-        else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_integer)
+-        {
+-            return static_cast<number_integer_t>(lhs.m_value.number_unsigned) < rhs.m_value.number_integer;
+-        }
+-
+-        // We only reach this line if we cannot compare values. In that case,
+-        // we compare types. Note we have to call the operator explicitly,
+-        // because MSVC has problems otherwise.
+-        return operator<(lhs_type, rhs_type);
+-    }
+-
+-    /// @brief comparison: less than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_lt/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator<(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs < basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: less than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_lt/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator<(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) < rhs;
+-    }
+-
+-    /// @brief comparison: less than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_le/
+-    friend bool operator<=(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        return !(rhs < lhs);
+-    }
+-
+-    /// @brief comparison: less than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_le/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator<=(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs <= basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: less than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_le/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator<=(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) <= rhs;
+-    }
+-
+-    /// @brief comparison: greater than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gt/
+-    friend bool operator>(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        return !(lhs <= rhs);
+-    }
+-
+-    /// @brief comparison: greater than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gt/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator>(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs > basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: greater than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gt/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator>(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) > rhs;
+-    }
+-
+-    /// @brief comparison: greater than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ge/
+-    friend bool operator>=(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        return !(lhs < rhs);
+-    }
+-
+-    /// @brief comparison: greater than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ge/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator>=(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs >= basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: greater than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ge/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator>=(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) >= rhs;
+-    }
+-
+-    /// @}
+-
+-    ///////////////////
+-    // serialization //
+-    ///////////////////
+-
+-    /// @name serialization
+-    /// @{
+-#ifndef JSON_NO_IO
+-    /// @brief serialize to stream
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ltlt/
+-    friend std::ostream& operator<<(std::ostream& o, const basic_json& j)
+-    {
+-        // read width member and use it as indentation parameter if nonzero
+-        const bool pretty_print = o.width() > 0;
+-        const auto indentation = pretty_print ? o.width() : 0;
+-
+-        // reset width to 0 for subsequent calls to this stream
+-        o.width(0);
+-
+-        // do the actual serialization
+-        serializer s(detail::output_adapter<char>(o), o.fill());
+-        s.dump(j, pretty_print, false, static_cast<unsigned int>(indentation));
+-        return o;
+-    }
+-
+-    /// @brief serialize to stream
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ltlt/
+-    /// @deprecated This function is deprecated since 3.0.0 and will be removed in
+-    ///             version 4.0.0 of the library. Please use
+-    ///             operator<<(std::ostream&, const basic_json&) instead; that is,
+-    ///             replace calls like `j >> o;` with `o << j;`.
+-    JSON_HEDLEY_DEPRECATED_FOR(3.0.0, operator<<(std::ostream&, const basic_json&))
+-    friend std::ostream& operator>>(const basic_json& j, std::ostream& o)
+-    {
+-        return o << j;
+-    }
+-#endif  // JSON_NO_IO
+-    /// @}
+-
+-
+-    /////////////////////
+-    // deserialization //
+-    /////////////////////
+-
+-    /// @name deserialization
+-    /// @{
+-
+-    /// @brief deserialize from a compatible input
+-    /// @sa https://json.nlohmann.me/api/basic_json/parse/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json parse(InputType&& i,
+-                            const parser_callback_t cb = nullptr,
+-                            const bool allow_exceptions = true,
+-                            const bool ignore_comments = false)
+-    {
+-        basic_json result;
+-        parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result);
+-        return result;
+-    }
+-
+-    /// @brief deserialize from a pair of character iterators
+-    /// @sa https://json.nlohmann.me/api/basic_json/parse/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json parse(IteratorType first,
+-                            IteratorType last,
+-                            const parser_callback_t cb = nullptr,
+-                            const bool allow_exceptions = true,
+-                            const bool ignore_comments = false)
+-    {
+-        basic_json result;
+-        parser(detail::input_adapter(std::move(first), std::move(last)), cb, allow_exceptions, ignore_comments).parse(true, result);
+-        return result;
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, parse(ptr, ptr + len))
+-    static basic_json parse(detail::span_input_adapter&& i,
+-                            const parser_callback_t cb = nullptr,
+-                            const bool allow_exceptions = true,
+-                            const bool ignore_comments = false)
+-    {
+-        basic_json result;
+-        parser(i.get(), cb, allow_exceptions, ignore_comments).parse(true, result);
+-        return result;
+-    }
+-
+-    /// @brief check if the input is valid JSON
+-    /// @sa https://json.nlohmann.me/api/basic_json/accept/
+-    template<typename InputType>
+-    static bool accept(InputType&& i,
+-                       const bool ignore_comments = false)
+-    {
+-        return parser(detail::input_adapter(std::forward<InputType>(i)), nullptr, false, ignore_comments).accept(true);
+-    }
+-
+-    /// @brief check if the input is valid JSON
+-    /// @sa https://json.nlohmann.me/api/basic_json/accept/
+-    template<typename IteratorType>
+-    static bool accept(IteratorType first, IteratorType last,
+-                       const bool ignore_comments = false)
+-    {
+-        return parser(detail::input_adapter(std::move(first), std::move(last)), nullptr, false, ignore_comments).accept(true);
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, accept(ptr, ptr + len))
+-    static bool accept(detail::span_input_adapter&& i,
+-                       const bool ignore_comments = false)
+-    {
+-        return parser(i.get(), nullptr, false, ignore_comments).accept(true);
+-    }
+-
+-    /// @brief generate SAX events
+-    /// @sa https://json.nlohmann.me/api/basic_json/sax_parse/
+-    template <typename InputType, typename SAX>
+-    JSON_HEDLEY_NON_NULL(2)
+-    static bool sax_parse(InputType&& i, SAX* sax,
+-                          input_format_t format = input_format_t::json,
+-                          const bool strict = true,
+-                          const bool ignore_comments = false)
+-    {
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        return format == input_format_t::json
+-               ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
+-               : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict);
+-    }
+-
+-    /// @brief generate SAX events
+-    /// @sa https://json.nlohmann.me/api/basic_json/sax_parse/
+-    template<class IteratorType, class SAX>
+-    JSON_HEDLEY_NON_NULL(3)
+-    static bool sax_parse(IteratorType first, IteratorType last, SAX* sax,
+-                          input_format_t format = input_format_t::json,
+-                          const bool strict = true,
+-                          const bool ignore_comments = false)
+-    {
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        return format == input_format_t::json
+-               ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
+-               : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict);
+-    }
+-
+-    /// @brief generate SAX events
+-    /// @sa https://json.nlohmann.me/api/basic_json/sax_parse/
+-    /// @deprecated This function is deprecated since 3.8.0 and will be removed in
+-    ///             version 4.0.0 of the library. Please use
+-    ///             sax_parse(ptr, ptr + len) instead.
+-    template <typename SAX>
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, sax_parse(ptr, ptr + len, ...))
+-    JSON_HEDLEY_NON_NULL(2)
+-    static bool sax_parse(detail::span_input_adapter&& i, SAX* sax,
+-                          input_format_t format = input_format_t::json,
+-                          const bool strict = true,
+-                          const bool ignore_comments = false)
+-    {
+-        auto ia = i.get();
+-        return format == input_format_t::json
+-               // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-               ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
+-               // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-               : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict);
+-    }
+-#ifndef JSON_NO_IO
+-    /// @brief deserialize from stream
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gtgt/
+-    /// @deprecated This stream operator is deprecated since 3.0.0 and will be removed in
+-    ///             version 4.0.0 of the library. Please use
+-    ///             operator>>(std::istream&, basic_json&) instead; that is,
+-    ///             replace calls like `j << i;` with `i >> j;`.
+-    JSON_HEDLEY_DEPRECATED_FOR(3.0.0, operator>>(std::istream&, basic_json&))
+-    friend std::istream& operator<<(basic_json& j, std::istream& i)
+-    {
+-        return operator>>(i, j);
+-    }
+-
+-    /// @brief deserialize from stream
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gtgt/
+-    friend std::istream& operator>>(std::istream& i, basic_json& j)
+-    {
+-        parser(detail::input_adapter(i)).parse(false, j);
+-        return i;
+-    }
+-#endif  // JSON_NO_IO
+-    /// @}
+-
+-    ///////////////////////////
+-    // convenience functions //
+-    ///////////////////////////
+-
+-    /// @brief return the type as string
+-    /// @sa https://json.nlohmann.me/api/basic_json/type_name/
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    const char* type_name() const noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::null:
+-                return "null";
+-            case value_t::object:
+-                return "object";
+-            case value_t::array:
+-                return "array";
+-            case value_t::string:
+-                return "string";
+-            case value_t::boolean:
+-                return "boolean";
+-            case value_t::binary:
+-                return "binary";
+-            case value_t::discarded:
+-                return "discarded";
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            default:
+-                return "number";
+-        }
+-    }
+-
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    //////////////////////
+-    // member variables //
+-    //////////////////////
+-
+-    /// the type of the current element
+-    value_t m_type = value_t::null;
+-
+-    /// the value of the current element
+-    json_value m_value = {};
+-
+-#if JSON_DIAGNOSTICS
+-    /// a pointer to a parent value (for debugging purposes)
+-    basic_json* m_parent = nullptr;
+-#endif
+-
+-    //////////////////////////////////////////
+-    // binary serialization/deserialization //
+-    //////////////////////////////////////////
+-
+-    /// @name binary serialization/deserialization support
+-    /// @{
+-
+-  public:
+-    /// @brief create a CBOR serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
+-    static std::vector<std::uint8_t> to_cbor(const basic_json& j)
+-    {
+-        std::vector<std::uint8_t> result;
+-        to_cbor(j, result);
+-        return result;
+-    }
+-
+-    /// @brief create a CBOR serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
+-    static void to_cbor(const basic_json& j, detail::output_adapter<std::uint8_t> o)
+-    {
+-        binary_writer<std::uint8_t>(o).write_cbor(j);
+-    }
+-
+-    /// @brief create a CBOR serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
+-    static void to_cbor(const basic_json& j, detail::output_adapter<char> o)
+-    {
+-        binary_writer<char>(o).write_cbor(j);
+-    }
+-
+-    /// @brief create a MessagePack serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_msgpack/
+-    static std::vector<std::uint8_t> to_msgpack(const basic_json& j)
+-    {
+-        std::vector<std::uint8_t> result;
+-        to_msgpack(j, result);
+-        return result;
+-    }
+-
+-    /// @brief create a MessagePack serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_msgpack/
+-    static void to_msgpack(const basic_json& j, detail::output_adapter<std::uint8_t> o)
+-    {
+-        binary_writer<std::uint8_t>(o).write_msgpack(j);
+-    }
+-
+-    /// @brief create a MessagePack serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_msgpack/
+-    static void to_msgpack(const basic_json& j, detail::output_adapter<char> o)
+-    {
+-        binary_writer<char>(o).write_msgpack(j);
+-    }
+-
+-    /// @brief create a UBJSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_ubjson/
+-    static std::vector<std::uint8_t> to_ubjson(const basic_json& j,
+-            const bool use_size = false,
+-            const bool use_type = false)
+-    {
+-        std::vector<std::uint8_t> result;
+-        to_ubjson(j, result, use_size, use_type);
+-        return result;
+-    }
+-
+-    /// @brief create a UBJSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_ubjson/
+-    static void to_ubjson(const basic_json& j, detail::output_adapter<std::uint8_t> o,
+-                          const bool use_size = false, const bool use_type = false)
+-    {
+-        binary_writer<std::uint8_t>(o).write_ubjson(j, use_size, use_type);
+-    }
+-
+-    /// @brief create a UBJSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_ubjson/
+-    static void to_ubjson(const basic_json& j, detail::output_adapter<char> o,
+-                          const bool use_size = false, const bool use_type = false)
+-    {
+-        binary_writer<char>(o).write_ubjson(j, use_size, use_type);
+-    }
+-
+-    /// @brief create a BSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_bson/
+-    static std::vector<std::uint8_t> to_bson(const basic_json& j)
+-    {
+-        std::vector<std::uint8_t> result;
+-        to_bson(j, result);
+-        return result;
+-    }
+-
+-    /// @brief create a BSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_bson/
+-    static void to_bson(const basic_json& j, detail::output_adapter<std::uint8_t> o)
+-    {
+-        binary_writer<std::uint8_t>(o).write_bson(j);
+-    }
+-
+-    /// @brief create a BSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_bson/
+-    static void to_bson(const basic_json& j, detail::output_adapter<char> o)
+-    {
+-        binary_writer<char>(o).write_bson(j);
+-    }
+-
+-    /// @brief create a JSON value from an input in CBOR format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_cbor/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_cbor(InputType&& i,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true,
+-                                const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, strict, tag_handler);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in CBOR format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_cbor/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_cbor(IteratorType first, IteratorType last,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true,
+-                                const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, strict, tag_handler);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    template<typename T>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_cbor(ptr, ptr + len))
+-    static basic_json from_cbor(const T* ptr, std::size_t len,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true,
+-                                const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        return from_cbor(ptr, ptr + len, strict, allow_exceptions, tag_handler);
+-    }
+-
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_cbor(ptr, ptr + len))
+-    static basic_json from_cbor(detail::span_input_adapter&& i,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true,
+-                                const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = i.get();
+-        // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, strict, tag_handler);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in MessagePack format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_msgpack/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_msgpack(InputType&& i,
+-                                   const bool strict = true,
+-                                   const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::msgpack, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in MessagePack format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_msgpack/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_msgpack(IteratorType first, IteratorType last,
+-                                   const bool strict = true,
+-                                   const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::msgpack, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    template<typename T>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_msgpack(ptr, ptr + len))
+-    static basic_json from_msgpack(const T* ptr, std::size_t len,
+-                                   const bool strict = true,
+-                                   const bool allow_exceptions = true)
+-    {
+-        return from_msgpack(ptr, ptr + len, strict, allow_exceptions);
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_msgpack(ptr, ptr + len))
+-    static basic_json from_msgpack(detail::span_input_adapter&& i,
+-                                   const bool strict = true,
+-                                   const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = i.get();
+-        // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::msgpack, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in UBJSON format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_ubjson/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_ubjson(InputType&& i,
+-                                  const bool strict = true,
+-                                  const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::ubjson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in UBJSON format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_ubjson/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_ubjson(IteratorType first, IteratorType last,
+-                                  const bool strict = true,
+-                                  const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::ubjson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    template<typename T>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_ubjson(ptr, ptr + len))
+-    static basic_json from_ubjson(const T* ptr, std::size_t len,
+-                                  const bool strict = true,
+-                                  const bool allow_exceptions = true)
+-    {
+-        return from_ubjson(ptr, ptr + len, strict, allow_exceptions);
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_ubjson(ptr, ptr + len))
+-    static basic_json from_ubjson(detail::span_input_adapter&& i,
+-                                  const bool strict = true,
+-                                  const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = i.get();
+-        // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::ubjson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in BSON format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_bson/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_bson(InputType&& i,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::bson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in BSON format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_bson/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_bson(IteratorType first, IteratorType last,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::bson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    template<typename T>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_bson(ptr, ptr + len))
+-    static basic_json from_bson(const T* ptr, std::size_t len,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true)
+-    {
+-        return from_bson(ptr, ptr + len, strict, allow_exceptions);
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_bson(ptr, ptr + len))
+-    static basic_json from_bson(detail::span_input_adapter&& i,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = i.get();
+-        // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::bson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-    /// @}
+-
+-    //////////////////////////
+-    // JSON Pointer support //
+-    //////////////////////////
+-
+-    /// @name JSON Pointer functions
+-    /// @{
+-
+-    /// @brief access specified element via JSON Pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    reference operator[](const json_pointer& ptr)
+-    {
+-        return ptr.get_unchecked(this);
+-    }
+-
+-    /// @brief access specified element via JSON Pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    const_reference operator[](const json_pointer& ptr) const
+-    {
+-        return ptr.get_unchecked(this);
+-    }
+-
+-    /// @brief access specified element via JSON Pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    reference at(const json_pointer& ptr)
+-    {
+-        return ptr.get_checked(this);
+-    }
+-
+-    /// @brief access specified element via JSON Pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    const_reference at(const json_pointer& ptr) const
+-    {
+-        return ptr.get_checked(this);
+-    }
+-
+-    /// @brief return flattened JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/flatten/
+-    basic_json flatten() const
+-    {
+-        basic_json result(value_t::object);
+-        json_pointer::flatten("", *this, result);
+-        return result;
+-    }
+-
+-    /// @brief unflatten a previously flattened JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/unflatten/
+-    basic_json unflatten() const
+-    {
+-        return json_pointer::unflatten(*this);
+-    }
+-
+-    /// @}
+-
+-    //////////////////////////
+-    // JSON Patch functions //
+-    //////////////////////////
+-
+-    /// @name JSON Patch functions
+-    /// @{
+-
+-    /// @brief applies a JSON patch
+-    /// @sa https://json.nlohmann.me/api/basic_json/patch/
+-    basic_json patch(const basic_json& json_patch) const
+-    {
+-        // make a working copy to apply the patch to
+-        basic_json result = *this;
+-
+-        // the valid JSON Patch operations
+-        enum class patch_operations {add, remove, replace, move, copy, test, invalid};
+-
+-        const auto get_op = [](const std::string & op)
+-        {
+-            if (op == "add")
+-            {
+-                return patch_operations::add;
+-            }
+-            if (op == "remove")
+-            {
+-                return patch_operations::remove;
+-            }
+-            if (op == "replace")
+-            {
+-                return patch_operations::replace;
+-            }
+-            if (op == "move")
+-            {
+-                return patch_operations::move;
+-            }
+-            if (op == "copy")
+-            {
+-                return patch_operations::copy;
+-            }
+-            if (op == "test")
+-            {
+-                return patch_operations::test;
+-            }
+-
+-            return patch_operations::invalid;
+-        };
+-
+-        // wrapper for "add" operation; add value at ptr
+-        const auto operation_add = [&result](json_pointer & ptr, basic_json val)
+-        {
+-            // adding to the root of the target document means replacing it
+-            if (ptr.empty())
+-            {
+-                result = val;
+-                return;
+-            }
+-
+-            // make sure the top element of the pointer exists
+-            json_pointer top_pointer = ptr.top();
+-            if (top_pointer != ptr)
+-            {
+-                result.at(top_pointer);
+-            }
+-
+-            // get reference to parent of JSON pointer ptr
+-            const auto last_path = ptr.back();
+-            ptr.pop_back();
+-            basic_json& parent = result[ptr];
+-
+-            switch (parent.m_type)
+-            {
+-                case value_t::null:
+-                case value_t::object:
+-                {
+-                    // use operator[] to add value
+-                    parent[last_path] = val;
+-                    break;
+-                }
+-
+-                case value_t::array:
+-                {
+-                    if (last_path == "-")
+-                    {
+-                        // special case: append to back
+-                        parent.push_back(val);
+-                    }
+-                    else
+-                    {
+-                        const auto idx = json_pointer::array_index(last_path);
+-                        if (JSON_HEDLEY_UNLIKELY(idx > parent.size()))
+-                        {
+-                            // avoid undefined behavior
+-                            JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range", parent));
+-                        }
+-
+-                        // default case: insert add offset
+-                        parent.insert(parent.begin() + static_cast<difference_type>(idx), val);
+-                    }
+-                    break;
+-                }
+-
+-                // if there exists a parent it cannot be primitive
+-                case value_t::string: // LCOV_EXCL_LINE
+-                case value_t::boolean: // LCOV_EXCL_LINE
+-                case value_t::number_integer: // LCOV_EXCL_LINE
+-                case value_t::number_unsigned: // LCOV_EXCL_LINE
+-                case value_t::number_float: // LCOV_EXCL_LINE
+-                case value_t::binary: // LCOV_EXCL_LINE
+-                case value_t::discarded: // LCOV_EXCL_LINE
+-                default:            // LCOV_EXCL_LINE
+-                    JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-            }
+-        };
+-
+-        // wrapper for "remove" operation; remove value at ptr
+-        const auto operation_remove = [this, &result](json_pointer & ptr)
+-        {
+-            // get reference to parent of JSON pointer ptr
+-            const auto last_path = ptr.back();
+-            ptr.pop_back();
+-            basic_json& parent = result.at(ptr);
+-
+-            // remove child
+-            if (parent.is_object())
+-            {
+-                // perform range check
+-                auto it = parent.find(last_path);
+-                if (JSON_HEDLEY_LIKELY(it != parent.end()))
+-                {
+-                    parent.erase(it);
+-                }
+-                else
+-                {
+-                    JSON_THROW(out_of_range::create(403, "key '" + last_path + "' not found", *this));
+-                }
+-            }
+-            else if (parent.is_array())
+-            {
+-                // note erase performs range check
+-                parent.erase(json_pointer::array_index(last_path));
+-            }
+-        };
+-
+-        // type check: top level value must be an array
+-        if (JSON_HEDLEY_UNLIKELY(!json_patch.is_array()))
+-        {
+-            JSON_THROW(parse_error::create(104, 0, "JSON patch must be an array of objects", json_patch));
+-        }
+-
+-        // iterate and apply the operations
+-        for (const auto& val : json_patch)
+-        {
+-            // wrapper to get a value for an operation
+-            const auto get_value = [&val](const std::string & op,
+-                                          const std::string & member,
+-                                          bool string_type) -> basic_json &
+-            {
+-                // find value
+-                auto it = val.m_value.object->find(member);
+-
+-                // context-sensitive error message
+-                const auto error_msg = (op == "op") ? "operation" : "operation '" + op + "'";
+-
+-                // check if desired value is present
+-                if (JSON_HEDLEY_UNLIKELY(it == val.m_value.object->end()))
+-                {
+-                    // NOLINTNEXTLINE(performance-inefficient-string-concatenation)
+-                    JSON_THROW(parse_error::create(105, 0, error_msg + " must have member '" + member + "'", val));
+-                }
+-
+-                // check if result is of type string
+-                if (JSON_HEDLEY_UNLIKELY(string_type && !it->second.is_string()))
+-                {
+-                    // NOLINTNEXTLINE(performance-inefficient-string-concatenation)
+-                    JSON_THROW(parse_error::create(105, 0, error_msg + " must have string member '" + member + "'", val));
+-                }
+-
+-                // no error: return value
+-                return it->second;
+-            };
+-
+-            // type check: every element of the array must be an object
+-            if (JSON_HEDLEY_UNLIKELY(!val.is_object()))
+-            {
+-                JSON_THROW(parse_error::create(104, 0, "JSON patch must be an array of objects", val));
+-            }
+-
+-            // collect mandatory members
+-            const auto op = get_value("op", "op", true).template get<std::string>();
+-            const auto path = get_value(op, "path", true).template get<std::string>();
+-            json_pointer ptr(path);
+-
+-            switch (get_op(op))
+-            {
+-                case patch_operations::add:
+-                {
+-                    operation_add(ptr, get_value("add", "value", false));
+-                    break;
+-                }
+-
+-                case patch_operations::remove:
+-                {
+-                    operation_remove(ptr);
+-                    break;
+-                }
+-
+-                case patch_operations::replace:
+-                {
+-                    // the "path" location must exist - use at()
+-                    result.at(ptr) = get_value("replace", "value", false);
+-                    break;
+-                }
+-
+-                case patch_operations::move:
+-                {
+-                    const auto from_path = get_value("move", "from", true).template get<std::string>();
+-                    json_pointer from_ptr(from_path);
+-
+-                    // the "from" location must exist - use at()
+-                    basic_json v = result.at(from_ptr);
+-
+-                    // The move operation is functionally identical to a
+-                    // "remove" operation on the "from" location, followed
+-                    // immediately by an "add" operation at the target
+-                    // location with the value that was just removed.
+-                    operation_remove(from_ptr);
+-                    operation_add(ptr, v);
+-                    break;
+-                }
+-
+-                case patch_operations::copy:
+-                {
+-                    const auto from_path = get_value("copy", "from", true).template get<std::string>();
+-                    const json_pointer from_ptr(from_path);
+-
+-                    // the "from" location must exist - use at()
+-                    basic_json v = result.at(from_ptr);
+-
+-                    // The copy is functionally identical to an "add"
+-                    // operation at the target location using the value
+-                    // specified in the "from" member.
+-                    operation_add(ptr, v);
+-                    break;
+-                }
+-
+-                case patch_operations::test:
+-                {
+-                    bool success = false;
+-                    JSON_TRY
+-                    {
+-                        // check if "value" matches the one at "path"
+-                        // the "path" location must exist - use at()
+-                        success = (result.at(ptr) == get_value("test", "value", false));
+-                    }
+-                    JSON_INTERNAL_CATCH (out_of_range&)
+-                    {
+-                        // ignore out of range errors: success remains false
+-                    }
+-
+-                    // throw an exception if test fails
+-                    if (JSON_HEDLEY_UNLIKELY(!success))
+-                    {
+-                        JSON_THROW(other_error::create(501, "unsuccessful: " + val.dump(), val));
+-                    }
+-
+-                    break;
+-                }
+-
+-                case patch_operations::invalid:
+-                default:
+-                {
+-                    // op must be "add", "remove", "replace", "move", "copy", or
+-                    // "test"
+-                    JSON_THROW(parse_error::create(105, 0, "operation value '" + op + "' is invalid", val));
+-                }
+-            }
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief creates a diff as a JSON patch
+-    /// @sa https://json.nlohmann.me/api/basic_json/diff/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json diff(const basic_json& source, const basic_json& target,
+-                           const std::string& path = "")
+-    {
+-        // the patch
+-        basic_json result(value_t::array);
+-
+-        // if the values are the same, return empty patch
+-        if (source == target)
+-        {
+-            return result;
+-        }
+-
+-        if (source.type() != target.type())
+-        {
+-            // different types: replace value
+-            result.push_back(
+-            {
+-                {"op", "replace"}, {"path", path}, {"value", target}
+-            });
+-            return result;
+-        }
+-
+-        switch (source.type())
+-        {
+-            case value_t::array:
+-            {
+-                // first pass: traverse common elements
+-                std::size_t i = 0;
+-                while (i < source.size() && i < target.size())
+-                {
+-                    // recursive call to compare array values at index i
+-                    auto temp_diff = diff(source[i], target[i], path + "/" + std::to_string(i));
+-                    result.insert(result.end(), temp_diff.begin(), temp_diff.end());
+-                    ++i;
+-                }
+-
+-                // We now reached the end of at least one array
+-                // in a second pass, traverse the remaining elements
+-
+-                // remove my remaining elements
+-                const auto end_index = static_cast<difference_type>(result.size());
+-                while (i < source.size())
+-                {
+-                    // add operations in reverse order to avoid invalid
+-                    // indices
+-                    result.insert(result.begin() + end_index, object(
+-                    {
+-                        {"op", "remove"},
+-                        {"path", path + "/" + std::to_string(i)}
+-                    }));
+-                    ++i;
+-                }
+-
+-                // add other remaining elements
+-                while (i < target.size())
+-                {
+-                    result.push_back(
+-                    {
+-                        {"op", "add"},
+-                        {"path", path + "/-"},
+-                        {"value", target[i]}
+-                    });
+-                    ++i;
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                // first pass: traverse this object's elements
+-                for (auto it = source.cbegin(); it != source.cend(); ++it)
+-                {
+-                    // escape the key name to be used in a JSON patch
+-                    const auto path_key = path + "/" + detail::escape(it.key());
+-
+-                    if (target.find(it.key()) != target.end())
+-                    {
+-                        // recursive call to compare object values at key it
+-                        auto temp_diff = diff(it.value(), target[it.key()], path_key);
+-                        result.insert(result.end(), temp_diff.begin(), temp_diff.end());
+-                    }
+-                    else
+-                    {
+-                        // found a key that is not in o -> remove it
+-                        result.push_back(object(
+-                        {
+-                            {"op", "remove"}, {"path", path_key}
+-                        }));
+-                    }
+-                }
+-
+-                // second pass: traverse other object's elements
+-                for (auto it = target.cbegin(); it != target.cend(); ++it)
+-                {
+-                    if (source.find(it.key()) == source.end())
+-                    {
+-                        // found a key that is not in this -> add it
+-                        const auto path_key = path + "/" + detail::escape(it.key());
+-                        result.push_back(
+-                        {
+-                            {"op", "add"}, {"path", path_key},
+-                            {"value", it.value()}
+-                        });
+-                    }
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                // both primitive type: replace value
+-                result.push_back(
+-                {
+-                    {"op", "replace"}, {"path", path}, {"value", target}
+-                });
+-                break;
+-            }
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @}
+-
+-    ////////////////////////////////
+-    // JSON Merge Patch functions //
+-    ////////////////////////////////
+-
+-    /// @name JSON Merge Patch functions
+-    /// @{
+-
+-    /// @brief applies a JSON Merge Patch
+-    /// @sa https://json.nlohmann.me/api/basic_json/merge_patch/
+-    void merge_patch(const basic_json& apply_patch)
+-    {
+-        if (apply_patch.is_object())
+-        {
+-            if (!is_object())
+-            {
+-                *this = object();
+-            }
+-            for (auto it = apply_patch.begin(); it != apply_patch.end(); ++it)
+-            {
+-                if (it.value().is_null())
+-                {
+-                    erase(it.key());
+-                }
+-                else
+-                {
+-                    operator[](it.key()).merge_patch(it.value());
+-                }
+-            }
+-        }
+-        else
+-        {
+-            *this = apply_patch;
+-        }
+-    }
+-
+-    /// @}
+-};
+-
+-/// @brief user-defined to_string function for JSON values
+-/// @sa https://json.nlohmann.me/api/basic_json/to_string/
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-std::string to_string(const NLOHMANN_BASIC_JSON_TPL& j)
+-{
+-    return j.dump();
+-}
+-
+-} // namespace nlohmann
+-
+-///////////////////////
+-// nonmember support //
+-///////////////////////
+-
+-namespace std // NOLINT(cert-dcl58-cpp)
+-{
+-
+-/// @brief hash value for JSON objects
+-/// @sa https://json.nlohmann.me/api/basic_json/std_hash/
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-struct hash<nlohmann::NLOHMANN_BASIC_JSON_TPL>
+-{
+-    std::size_t operator()(const nlohmann::NLOHMANN_BASIC_JSON_TPL& j) const
+-    {
+-        return nlohmann::detail::hash(j);
+-    }
+-};
+-
+-// specialization for std::less<value_t>
+-template<>
+-struct less< ::nlohmann::detail::value_t> // do not remove the space after '<', see https://github.com/nlohmann/json/pull/679
+-{
+-    /*!
+-    @brief compare two value_t enum values
+-    @since version 3.0.0
+-    */
+-    bool operator()(nlohmann::detail::value_t lhs,
+-                    nlohmann::detail::value_t rhs) const noexcept
+-    {
+-        return nlohmann::detail::operator<(lhs, rhs);
+-    }
+-};
+-
+-// C++20 prohibit function specialization in the std namespace.
+-#ifndef JSON_HAS_CPP_20
+-
+-/// @brief exchanges the values of two JSON objects
+-/// @sa https://json.nlohmann.me/api/basic_json/std_swap/
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-inline void swap(nlohmann::NLOHMANN_BASIC_JSON_TPL& j1, nlohmann::NLOHMANN_BASIC_JSON_TPL& j2) noexcept(  // NOLINT(readability-inconsistent-declaration-parameter-name)
+-    is_nothrow_move_constructible<nlohmann::NLOHMANN_BASIC_JSON_TPL>::value&&                          // NOLINT(misc-redundant-expression)
+-    is_nothrow_move_assignable<nlohmann::NLOHMANN_BASIC_JSON_TPL>::value)
+-{
+-    j1.swap(j2);
+-}
+-
+-#endif
+-
+-} // namespace std
+-
+-/// @brief user-defined string literal for JSON values
+-/// @sa https://json.nlohmann.me/api/basic_json/operator_literal_json/
+-JSON_HEDLEY_NON_NULL(1)
+-inline nlohmann::json operator "" _json(const char* s, std::size_t n)
+-{
+-    return nlohmann::json::parse(s, s + n);
+-}
+-
+-/// @brief user-defined string literal for JSON pointer
+-/// @sa https://json.nlohmann.me/api/basic_json/operator_literal_json_pointer/
+-JSON_HEDLEY_NON_NULL(1)
+-inline nlohmann::json::json_pointer operator "" _json_pointer(const char* s, std::size_t n)
+-{
+-    return nlohmann::json::json_pointer(std::string(s, n));
+-}
+-
+-// #include <nlohmann/detail/macro_unscope.hpp>
+-
+-
+-// restore clang diagnostic settings
+-#if defined(__clang__)
+-    #pragma clang diagnostic pop
+-#endif
+-
+-// clean up
+-#undef JSON_ASSERT
+-#undef JSON_INTERNAL_CATCH
+-#undef JSON_CATCH
+-#undef JSON_THROW
+-#undef JSON_TRY
+-#undef JSON_PRIVATE_UNLESS_TESTED
+-#undef JSON_HAS_CPP_11
+-#undef JSON_HAS_CPP_14
+-#undef JSON_HAS_CPP_17
+-#undef JSON_HAS_CPP_20
+-#undef JSON_HAS_FILESYSTEM
+-#undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-#undef NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-#undef NLOHMANN_BASIC_JSON_TPL
+-#undef JSON_EXPLICIT
+-#undef NLOHMANN_CAN_CALL_STD_FUNC_IMPL
+-
+-// #include <nlohmann/thirdparty/hedley/hedley_undef.hpp>
+-
+-
+-#undef JSON_HEDLEY_ALWAYS_INLINE
+-#undef JSON_HEDLEY_ARM_VERSION
+-#undef JSON_HEDLEY_ARM_VERSION_CHECK
+-#undef JSON_HEDLEY_ARRAY_PARAM
+-#undef JSON_HEDLEY_ASSUME
+-#undef JSON_HEDLEY_BEGIN_C_DECLS
+-#undef JSON_HEDLEY_CLANG_HAS_ATTRIBUTE
+-#undef JSON_HEDLEY_CLANG_HAS_BUILTIN
+-#undef JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE
+-#undef JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE
+-#undef JSON_HEDLEY_CLANG_HAS_EXTENSION
+-#undef JSON_HEDLEY_CLANG_HAS_FEATURE
+-#undef JSON_HEDLEY_CLANG_HAS_WARNING
+-#undef JSON_HEDLEY_COMPCERT_VERSION
+-#undef JSON_HEDLEY_COMPCERT_VERSION_CHECK
+-#undef JSON_HEDLEY_CONCAT
+-#undef JSON_HEDLEY_CONCAT3
+-#undef JSON_HEDLEY_CONCAT3_EX
+-#undef JSON_HEDLEY_CONCAT_EX
+-#undef JSON_HEDLEY_CONST
+-#undef JSON_HEDLEY_CONSTEXPR
+-#undef JSON_HEDLEY_CONST_CAST
+-#undef JSON_HEDLEY_CPP_CAST
+-#undef JSON_HEDLEY_CRAY_VERSION
+-#undef JSON_HEDLEY_CRAY_VERSION_CHECK
+-#undef JSON_HEDLEY_C_DECL
+-#undef JSON_HEDLEY_DEPRECATED
+-#undef JSON_HEDLEY_DEPRECATED_FOR
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION
+-#undef JSON_HEDLEY_DIAGNOSTIC_POP
+-#undef JSON_HEDLEY_DIAGNOSTIC_PUSH
+-#undef JSON_HEDLEY_DMC_VERSION
+-#undef JSON_HEDLEY_DMC_VERSION_CHECK
+-#undef JSON_HEDLEY_EMPTY_BASES
+-#undef JSON_HEDLEY_EMSCRIPTEN_VERSION
+-#undef JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK
+-#undef JSON_HEDLEY_END_C_DECLS
+-#undef JSON_HEDLEY_FLAGS
+-#undef JSON_HEDLEY_FLAGS_CAST
+-#undef JSON_HEDLEY_GCC_HAS_ATTRIBUTE
+-#undef JSON_HEDLEY_GCC_HAS_BUILTIN
+-#undef JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE
+-#undef JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE
+-#undef JSON_HEDLEY_GCC_HAS_EXTENSION
+-#undef JSON_HEDLEY_GCC_HAS_FEATURE
+-#undef JSON_HEDLEY_GCC_HAS_WARNING
+-#undef JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK
+-#undef JSON_HEDLEY_GCC_VERSION
+-#undef JSON_HEDLEY_GCC_VERSION_CHECK
+-#undef JSON_HEDLEY_GNUC_HAS_ATTRIBUTE
+-#undef JSON_HEDLEY_GNUC_HAS_BUILTIN
+-#undef JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE
+-#undef JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE
+-#undef JSON_HEDLEY_GNUC_HAS_EXTENSION
+-#undef JSON_HEDLEY_GNUC_HAS_FEATURE
+-#undef JSON_HEDLEY_GNUC_HAS_WARNING
+-#undef JSON_HEDLEY_GNUC_VERSION
+-#undef JSON_HEDLEY_GNUC_VERSION_CHECK
+-#undef JSON_HEDLEY_HAS_ATTRIBUTE
+-#undef JSON_HEDLEY_HAS_BUILTIN
+-#undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE
+-#undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS
+-#undef JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE
+-#undef JSON_HEDLEY_HAS_EXTENSION
+-#undef JSON_HEDLEY_HAS_FEATURE
+-#undef JSON_HEDLEY_HAS_WARNING
+-#undef JSON_HEDLEY_IAR_VERSION
+-#undef JSON_HEDLEY_IAR_VERSION_CHECK
+-#undef JSON_HEDLEY_IBM_VERSION
+-#undef JSON_HEDLEY_IBM_VERSION_CHECK
+-#undef JSON_HEDLEY_IMPORT
+-#undef JSON_HEDLEY_INLINE
+-#undef JSON_HEDLEY_INTEL_CL_VERSION
+-#undef JSON_HEDLEY_INTEL_CL_VERSION_CHECK
+-#undef JSON_HEDLEY_INTEL_VERSION
+-#undef JSON_HEDLEY_INTEL_VERSION_CHECK
+-#undef JSON_HEDLEY_IS_CONSTANT
+-#undef JSON_HEDLEY_IS_CONSTEXPR_
+-#undef JSON_HEDLEY_LIKELY
+-#undef JSON_HEDLEY_MALLOC
+-#undef JSON_HEDLEY_MCST_LCC_VERSION
+-#undef JSON_HEDLEY_MCST_LCC_VERSION_CHECK
+-#undef JSON_HEDLEY_MESSAGE
+-#undef JSON_HEDLEY_MSVC_VERSION
+-#undef JSON_HEDLEY_MSVC_VERSION_CHECK
+-#undef JSON_HEDLEY_NEVER_INLINE
+-#undef JSON_HEDLEY_NON_NULL
+-#undef JSON_HEDLEY_NO_ESCAPE
+-#undef JSON_HEDLEY_NO_RETURN
+-#undef JSON_HEDLEY_NO_THROW
+-#undef JSON_HEDLEY_NULL
+-#undef JSON_HEDLEY_PELLES_VERSION
+-#undef JSON_HEDLEY_PELLES_VERSION_CHECK
+-#undef JSON_HEDLEY_PGI_VERSION
+-#undef JSON_HEDLEY_PGI_VERSION_CHECK
+-#undef JSON_HEDLEY_PREDICT
+-#undef JSON_HEDLEY_PRINTF_FORMAT
+-#undef JSON_HEDLEY_PRIVATE
+-#undef JSON_HEDLEY_PUBLIC
+-#undef JSON_HEDLEY_PURE
+-#undef JSON_HEDLEY_REINTERPRET_CAST
+-#undef JSON_HEDLEY_REQUIRE
+-#undef JSON_HEDLEY_REQUIRE_CONSTEXPR
+-#undef JSON_HEDLEY_REQUIRE_MSG
+-#undef JSON_HEDLEY_RESTRICT
+-#undef JSON_HEDLEY_RETURNS_NON_NULL
+-#undef JSON_HEDLEY_SENTINEL
+-#undef JSON_HEDLEY_STATIC_ASSERT
+-#undef JSON_HEDLEY_STATIC_CAST
+-#undef JSON_HEDLEY_STRINGIFY
+-#undef JSON_HEDLEY_STRINGIFY_EX
+-#undef JSON_HEDLEY_SUNPRO_VERSION
+-#undef JSON_HEDLEY_SUNPRO_VERSION_CHECK
+-#undef JSON_HEDLEY_TINYC_VERSION
+-#undef JSON_HEDLEY_TINYC_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_ARMCL_VERSION
+-#undef JSON_HEDLEY_TI_ARMCL_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CL2000_VERSION
+-#undef JSON_HEDLEY_TI_CL2000_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CL430_VERSION
+-#undef JSON_HEDLEY_TI_CL430_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CL6X_VERSION
+-#undef JSON_HEDLEY_TI_CL6X_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CL7X_VERSION
+-#undef JSON_HEDLEY_TI_CL7X_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CLPRU_VERSION
+-#undef JSON_HEDLEY_TI_CLPRU_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_VERSION
+-#undef JSON_HEDLEY_TI_VERSION_CHECK
+-#undef JSON_HEDLEY_UNAVAILABLE
+-#undef JSON_HEDLEY_UNLIKELY
+-#undef JSON_HEDLEY_UNPREDICTABLE
+-#undef JSON_HEDLEY_UNREACHABLE
+-#undef JSON_HEDLEY_UNREACHABLE_RETURN
+-#undef JSON_HEDLEY_VERSION
+-#undef JSON_HEDLEY_VERSION_DECODE_MAJOR
+-#undef JSON_HEDLEY_VERSION_DECODE_MINOR
+-#undef JSON_HEDLEY_VERSION_DECODE_REVISION
+-#undef JSON_HEDLEY_VERSION_ENCODE
+-#undef JSON_HEDLEY_WARNING
+-#undef JSON_HEDLEY_WARN_UNUSED_RESULT
+-#undef JSON_HEDLEY_WARN_UNUSED_RESULT_MSG
+-#undef JSON_HEDLEY_FALL_THROUGH
+-
+-
+-
+-#endif  // INCLUDE_NLOHMANN_JSON_HPP_
+diff --git a/include/dpp/nlohmann/json_fwd.hpp b/include/dpp/nlohmann/json_fwd.hpp
+deleted file mode 100755
+index 2d5ba38..0000000
+--- a/include/dpp/nlohmann/json_fwd.hpp
++++ /dev/null
+@@ -1,64 +0,0 @@
+-#ifndef INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-#define INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-
+-#include <cstdint> // int64_t, uint64_t
+-#include <map> // map
+-#include <memory> // allocator
+-#include <string> // string
+-#include <vector> // vector
+-
+-/*!
+-@brief namespace for Niels Lohmann
+-@see https://github.com/nlohmann
+-@since version 1.0.0
+-*/
+-namespace nlohmann
+-{
+-/*!
+-@brief default JSONSerializer template argument
+-
+-This serializer ignores the template arguments and uses ADL
+-([argument-dependent lookup](https://en.cppreference.com/w/cpp/language/adl))
+-for serialization.
+-*/
+-template<typename T = void, typename SFINAE = void>
+-struct adl_serializer;
+-
+-/// a class to store JSON values
+-/// @sa https://json.nlohmann.me/api/basic_json/
+-template<template<typename U, typename V, typename... Args> class ObjectType =
+-         std::map,
+-         template<typename U, typename... Args> class ArrayType = std::vector,
+-         class StringType = std::string, class BooleanType = bool,
+-         class NumberIntegerType = std::int64_t,
+-         class NumberUnsignedType = std::uint64_t,
+-         class NumberFloatType = double,
+-         template<typename U> class AllocatorType = std::allocator,
+-         template<typename T, typename SFINAE = void> class JSONSerializer =
+-         adl_serializer,
+-         class BinaryType = std::vector<std::uint8_t>>
+-class basic_json;
+-
+-/// @brief JSON Pointer defines a string syntax for identifying a specific value within a JSON document
+-/// @sa https://json.nlohmann.me/api/json_pointer/
+-template<typename BasicJsonType>
+-class json_pointer;
+-
+-/*!
+-@brief default specialization
+-@sa https://json.nlohmann.me/api/json/
+-*/
+-using json = basic_json<>;
+-
+-/// @brief a minimal map-like container that preserves insertion order
+-/// @sa https://json.nlohmann.me/api/ordered_map/
+-template<class Key, class T, class IgnoredLess, class Allocator>
+-struct ordered_map;
+-
+-/// @brief specialization that maintains the insertion order of object keys
+-/// @sa https://json.nlohmann.me/api/ordered_json/
+-using ordered_json = basic_json<nlohmann::ordered_map>;
+-
+-}  // namespace nlohmann
+-
+-#endif  // INCLUDE_NLOHMANN_JSON_FWD_HPP_
+diff --git a/include/dpp/presence.h b/include/dpp/presence.h
+index e018f92..bcf322b 100644
+--- a/include/dpp/presence.h
++++ b/include/dpp/presence.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/prune.h b/include/dpp/prune.h
+index dd1b19b..7528a37 100644
+--- a/include/dpp/prune.h
++++ b/include/dpp/prune.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/restrequest.h b/include/dpp/restrequest.h
+index 2d1915c..20a4b3d 100644
+--- a/include/dpp/restrequest.h
++++ b/include/dpp/restrequest.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/role.h b/include/dpp/role.h
+index 00d380a..389ca43 100644
+--- a/include/dpp/role.h
++++ b/include/dpp/role.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/guild.h>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/scheduled_event.h b/include/dpp/scheduled_event.h
+index 2cddd63..39be997 100644
+--- a/include/dpp/scheduled_event.h
++++ b/include/dpp/scheduled_event.h
+@@ -24,7 +24,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/user.h>
+ #include <dpp/guild.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/stage_instance.h b/include/dpp/stage_instance.h
+index 90a134f..0ab205e 100644
+--- a/include/dpp/stage_instance.h
++++ b/include/dpp/stage_instance.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/user.h b/include/dpp/user.h
+index a723941..a77fccf 100644
+--- a/include/dpp/user.h
++++ b/include/dpp/user.h
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #pragma once
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+diff --git a/include/dpp/voiceregion.h b/include/dpp/voiceregion.h
+index a1def0a..a0a88e5 100644
+--- a/include/dpp/voiceregion.h
++++ b/include/dpp/voiceregion.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <unordered_map>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/voicestate.h b/include/dpp/voicestate.h
+index 64f1517..c14461e 100644
+--- a/include/dpp/voicestate.h
++++ b/include/dpp/voicestate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/webhook.h b/include/dpp/webhook.h
+index 98fa176..95c09dc 100644
+--- a/include/dpp/webhook.h
++++ b/include/dpp/webhook.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/src/dpp/application.cpp b/src/dpp/application.cpp
+index b5eea41..5ffc9fc 100644
+--- a/src/dpp/application.cpp
++++ b/src/dpp/application.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/auditlog.cpp b/src/dpp/auditlog.cpp
+index 72ef078..2a45729 100644
+--- a/src/dpp/auditlog.cpp
++++ b/src/dpp/auditlog.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/auditlog.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/ban.cpp b/src/dpp/ban.cpp
+index b959d75..860e5a4 100644
+--- a/src/dpp/ban.cpp
++++ b/src/dpp/ban.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/ban.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/channel.cpp b/src/dpp/channel.cpp
+index 405372c..6495b10 100644
+--- a/src/dpp/channel.cpp
++++ b/src/dpp/channel.cpp
+@@ -25,7 +25,7 @@
+ #include <dpp/role.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/cluster.cpp b/src/dpp/cluster.cpp
+index 210753f..6290413 100644
+--- a/src/dpp/cluster.cpp
++++ b/src/dpp/cluster.cpp
+@@ -29,7 +29,7 @@
+ #include <dpp/sync.h>
+ #include <chrono>
+ #include <iostream>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <utility>
+ #include <dpp/fmt-minimal.h>
+ #include <algorithm>
+diff --git a/src/dpp/cluster/confirmation.cpp b/src/dpp/cluster/confirmation.cpp
+index c7e579b..fcccb4c 100644
+--- a/src/dpp/cluster/confirmation.cpp
++++ b/src/dpp/cluster/confirmation.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/cluster/timer.cpp b/src/dpp/cluster/timer.cpp
+index a4b6d83..7159574 100644
+--- a/src/dpp/cluster/timer.cpp
++++ b/src/dpp/cluster/timer.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/timer.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/discordclient.cpp b/src/dpp/discordclient.cpp
+index 9444fcb..8a498b8 100644
+--- a/src/dpp/discordclient.cpp
++++ b/src/dpp/discordclient.cpp
+@@ -26,7 +26,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+ #include <thread>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ #include <dpp/etf.h>
+ #include <zlib.h>
+diff --git a/src/dpp/discordevents.cpp b/src/dpp/discordevents.cpp
+index 92bd66d..73b2b2f 100644
+--- a/src/dpp/discordevents.cpp
++++ b/src/dpp/discordevents.cpp
+@@ -30,7 +30,7 @@
+ #include <dpp/event.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <time.h>
+ #include <iomanip>
+ #include <sstream>
+diff --git a/src/dpp/discordvoiceclient.cpp b/src/dpp/discordvoiceclient.cpp
+index a1b6247..e809d91 100644
+--- a/src/dpp/discordvoiceclient.cpp
++++ b/src/dpp/discordvoiceclient.cpp
+@@ -43,7 +43,7 @@
+ #include <dpp/discordvoiceclient.h>
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ #ifdef HAVE_VOICE
+diff --git a/src/dpp/dtemplate.cpp b/src/dpp/dtemplate.cpp
+index 31f6bbf..e3c67ea 100644
+--- a/src/dpp/dtemplate.cpp
++++ b/src/dpp/dtemplate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/dtemplate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/emoji.cpp b/src/dpp/emoji.cpp
+index c0b3613..4f00958 100644
+--- a/src/dpp/emoji.cpp
++++ b/src/dpp/emoji.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/emoji.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/etf.cpp b/src/dpp/etf.cpp
+index 6395d9b..3b6159e 100644
+--- a/src/dpp/etf.cpp
++++ b/src/dpp/etf.cpp
+@@ -34,7 +34,7 @@
+ #include <dpp/sysdep.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <zlib.h>
+ #include <iostream>
+ 
+diff --git a/src/dpp/events/channel_create.cpp b/src/dpp/events/channel_create.cpp
+index 07b0c2c..1a0b812 100644
+--- a/src/dpp/events/channel_create.cpp
++++ b/src/dpp/events/channel_create.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_delete.cpp b/src/dpp/events/channel_delete.cpp
+index 09d23a4..5e48f96 100644
+--- a/src/dpp/events/channel_delete.cpp
++++ b/src/dpp/events/channel_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_pins_update.cpp b/src/dpp/events/channel_pins_update.cpp
+index 3a4244b..cc2f908 100644
+--- a/src/dpp/events/channel_pins_update.cpp
++++ b/src/dpp/events/channel_pins_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_update.cpp b/src/dpp/events/channel_update.cpp
+index 7e05d8f..fde836a 100644
+--- a/src/dpp/events/channel_update.cpp
++++ b/src/dpp/events/channel_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_add.cpp b/src/dpp/events/guild_ban_add.cpp
+index 872b875..61dfb5b 100644
+--- a/src/dpp/events/guild_ban_add.cpp
++++ b/src/dpp/events/guild_ban_add.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_remove.cpp b/src/dpp/events/guild_ban_remove.cpp
+index e170fde..510a280 100644
+--- a/src/dpp/events/guild_ban_remove.cpp
++++ b/src/dpp/events/guild_ban_remove.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_create.cpp b/src/dpp/events/guild_create.cpp
+index 6f1e369..9de1c39 100644
+--- a/src/dpp/events/guild_create.cpp
++++ b/src/dpp/events/guild_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_delete.cpp b/src/dpp/events/guild_delete.cpp
+index 82f75d3..e39f4c8 100644
+--- a/src/dpp/events/guild_delete.cpp
++++ b/src/dpp/events/guild_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_emojis_update.cpp b/src/dpp/events/guild_emojis_update.cpp
+index 62588c0..ec4303d 100644
+--- a/src/dpp/events/guild_emojis_update.cpp
++++ b/src/dpp/events/guild_emojis_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/emoji.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_integrations_update.cpp b/src/dpp/events/guild_integrations_update.cpp
+index 58146ae..0d2036f 100644
+--- a/src/dpp/events/guild_integrations_update.cpp
++++ b/src/dpp/events/guild_integrations_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_join_request_delete.cpp b/src/dpp/events/guild_join_request_delete.cpp
+index 4b6da22..5642b4c 100644
+--- a/src/dpp/events/guild_join_request_delete.cpp
++++ b/src/dpp/events/guild_join_request_delete.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_add.cpp b/src/dpp/events/guild_member_add.cpp
+index 6c865bb..2b3b8e8 100644
+--- a/src/dpp/events/guild_member_add.cpp
++++ b/src/dpp/events/guild_member_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_remove.cpp b/src/dpp/events/guild_member_remove.cpp
+index fa23bed..46646b7 100644
+--- a/src/dpp/events/guild_member_remove.cpp
++++ b/src/dpp/events/guild_member_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_update.cpp b/src/dpp/events/guild_member_update.cpp
+index 6a9c3b7..689aac4 100644
+--- a/src/dpp/events/guild_member_update.cpp
++++ b/src/dpp/events/guild_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_members_chunk.cpp b/src/dpp/events/guild_members_chunk.cpp
+index 03e1eb3..0e68089 100644
+--- a/src/dpp/events/guild_members_chunk.cpp
++++ b/src/dpp/events/guild_members_chunk.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_create.cpp b/src/dpp/events/guild_role_create.cpp
+index b668bb5..ed8bc79 100644
+--- a/src/dpp/events/guild_role_create.cpp
++++ b/src/dpp/events/guild_role_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_delete.cpp b/src/dpp/events/guild_role_delete.cpp
+index 6c8cedc..336f11b 100644
+--- a/src/dpp/events/guild_role_delete.cpp
++++ b/src/dpp/events/guild_role_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_update.cpp b/src/dpp/events/guild_role_update.cpp
+index 29130c0..32e3146 100644
+--- a/src/dpp/events/guild_role_update.cpp
++++ b/src/dpp/events/guild_role_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_create.cpp b/src/dpp/events/guild_scheduled_event_create.cpp
+index 02b3ba9..e84c134 100644
+--- a/src/dpp/events/guild_scheduled_event_create.cpp
++++ b/src/dpp/events/guild_scheduled_event_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_delete.cpp b/src/dpp/events/guild_scheduled_event_delete.cpp
+index ea11ed9..a098a0f 100644
+--- a/src/dpp/events/guild_scheduled_event_delete.cpp
++++ b/src/dpp/events/guild_scheduled_event_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_update.cpp b/src/dpp/events/guild_scheduled_event_update.cpp
+index b43f02d..6fd2795 100644
+--- a/src/dpp/events/guild_scheduled_event_update.cpp
++++ b/src/dpp/events/guild_scheduled_event_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_add.cpp b/src/dpp/events/guild_scheduled_event_user_add.cpp
+index 38e07b6..c549c39 100644
+--- a/src/dpp/events/guild_scheduled_event_user_add.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_add.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_remove.cpp b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+index 4d6e8a0..08be1e9 100644
+--- a/src/dpp/events/guild_scheduled_event_user_remove.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_stickers_update.cpp b/src/dpp/events/guild_stickers_update.cpp
+index 7f00c23..583d936 100644
+--- a/src/dpp/events/guild_stickers_update.cpp
++++ b/src/dpp/events/guild_stickers_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_update.cpp b/src/dpp/events/guild_update.cpp
+index d80b40b..e116688 100644
+--- a/src/dpp/events/guild_update.cpp
++++ b/src/dpp/events/guild_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_create.cpp b/src/dpp/events/integration_create.cpp
+index f72193c..112320b 100644
+--- a/src/dpp/events/integration_create.cpp
++++ b/src/dpp/events/integration_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_delete.cpp b/src/dpp/events/integration_delete.cpp
+index 0438076..e0b2202 100644
+--- a/src/dpp/events/integration_delete.cpp
++++ b/src/dpp/events/integration_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_update.cpp b/src/dpp/events/integration_update.cpp
+index 8175fab..38b3eda 100644
+--- a/src/dpp/events/integration_update.cpp
++++ b/src/dpp/events/integration_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/interaction_create.cpp b/src/dpp/events/interaction_create.cpp
+index a7bf466..a8aa25b 100644
+--- a/src/dpp/events/interaction_create.cpp
++++ b/src/dpp/events/interaction_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/appcommand.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_create.cpp b/src/dpp/events/invite_create.cpp
+index 377ba3f..7d03d06 100644
+--- a/src/dpp/events/invite_create.cpp
++++ b/src/dpp/events/invite_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_delete.cpp b/src/dpp/events/invite_delete.cpp
+index 5f2f084..c9d81bb 100644
+--- a/src/dpp/events/invite_delete.cpp
++++ b/src/dpp/events/invite_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/logger.cpp b/src/dpp/events/logger.cpp
+index aefc82f..ee9d202 100644
+--- a/src/dpp/events/logger.cpp
++++ b/src/dpp/events/logger.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_create.cpp b/src/dpp/events/message_create.cpp
+index be56ef8..80481e8 100644
+--- a/src/dpp/events/message_create.cpp
++++ b/src/dpp/events/message_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete.cpp b/src/dpp/events/message_delete.cpp
+index d7ba0ea..98e7c2c 100644
+--- a/src/dpp/events/message_delete.cpp
++++ b/src/dpp/events/message_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete_bulk.cpp b/src/dpp/events/message_delete_bulk.cpp
+index a158bf1..cbffcf2 100644
+--- a/src/dpp/events/message_delete_bulk.cpp
++++ b/src/dpp/events/message_delete_bulk.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_add.cpp b/src/dpp/events/message_reaction_add.cpp
+index fac7237..5e61959 100644
+--- a/src/dpp/events/message_reaction_add.cpp
++++ b/src/dpp/events/message_reaction_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove.cpp b/src/dpp/events/message_reaction_remove.cpp
+index 1036757..1f602b1 100644
+--- a/src/dpp/events/message_reaction_remove.cpp
++++ b/src/dpp/events/message_reaction_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_all.cpp b/src/dpp/events/message_reaction_remove_all.cpp
+index 7a63660..a564afb 100644
+--- a/src/dpp/events/message_reaction_remove_all.cpp
++++ b/src/dpp/events/message_reaction_remove_all.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_emoji.cpp b/src/dpp/events/message_reaction_remove_emoji.cpp
+index c820bbe..93a3f9c 100644
+--- a/src/dpp/events/message_reaction_remove_emoji.cpp
++++ b/src/dpp/events/message_reaction_remove_emoji.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_update.cpp b/src/dpp/events/message_update.cpp
+index 3259d88..90b6418 100644
+--- a/src/dpp/events/message_update.cpp
++++ b/src/dpp/events/message_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/presence.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/presence_update.cpp b/src/dpp/events/presence_update.cpp
+index af16087..7718019 100644
+--- a/src/dpp/events/presence_update.cpp
++++ b/src/dpp/events/presence_update.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/ready.cpp b/src/dpp/events/ready.cpp
+index 1434794..b6dd917 100644
+--- a/src/dpp/events/ready.cpp
++++ b/src/dpp/events/ready.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/events/resumed.cpp b/src/dpp/events/resumed.cpp
+index e28c8d8..98e174e 100644
+--- a/src/dpp/events/resumed.cpp
++++ b/src/dpp/events/resumed.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_create.cpp b/src/dpp/events/stage_instance_create.cpp
+index bb191df..a53b3bc 100644
+--- a/src/dpp/events/stage_instance_create.cpp
++++ b/src/dpp/events/stage_instance_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_delete.cpp b/src/dpp/events/stage_instance_delete.cpp
+index 639d259..d5bb97c 100644
+--- a/src/dpp/events/stage_instance_delete.cpp
++++ b/src/dpp/events/stage_instance_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_update.cpp b/src/dpp/events/stage_instance_update.cpp
+index 8422ffb..5349aab 100644
+--- a/src/dpp/events/stage_instance_update.cpp
++++ b/src/dpp/events/stage_instance_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_create.cpp b/src/dpp/events/thread_create.cpp
+index 896999a..680bc92 100644
+--- a/src/dpp/events/thread_create.cpp
++++ b/src/dpp/events/thread_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_delete.cpp b/src/dpp/events/thread_delete.cpp
+index 3969469..d195dac 100644
+--- a/src/dpp/events/thread_delete.cpp
++++ b/src/dpp/events/thread_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_list_sync.cpp b/src/dpp/events/thread_list_sync.cpp
+index ce518f5..19eee46 100644
+--- a/src/dpp/events/thread_list_sync.cpp
++++ b/src/dpp/events/thread_list_sync.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_member_update.cpp b/src/dpp/events/thread_member_update.cpp
+index 00a5949..5868e8d 100644
+--- a/src/dpp/events/thread_member_update.cpp
++++ b/src/dpp/events/thread_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_members_update.cpp b/src/dpp/events/thread_members_update.cpp
+index c744029..ea702a2 100644
+--- a/src/dpp/events/thread_members_update.cpp
++++ b/src/dpp/events/thread_members_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_update.cpp b/src/dpp/events/thread_update.cpp
+index 6be9cb6..b97e271 100644
+--- a/src/dpp/events/thread_update.cpp
++++ b/src/dpp/events/thread_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/typing_start.cpp b/src/dpp/events/typing_start.cpp
+index fc8667b..189129a 100644
+--- a/src/dpp/events/typing_start.cpp
++++ b/src/dpp/events/typing_start.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/user_update.cpp b/src/dpp/events/user_update.cpp
+index 3236c27..63fde16 100644
+--- a/src/dpp/events/user_update.cpp
++++ b/src/dpp/events/user_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/user.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_server_update.cpp b/src/dpp/events/voice_server_update.cpp
+index a70c831..fd5d984 100644
+--- a/src/dpp/events/voice_server_update.cpp
++++ b/src/dpp/events/voice_server_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_state_update.cpp b/src/dpp/events/voice_state_update.cpp
+index 4b316d4..79895e0 100644
+--- a/src/dpp/events/voice_state_update.cpp
++++ b/src/dpp/events/voice_state_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/webhooks_update.cpp b/src/dpp/events/webhooks_update.cpp
+index e94e585..d4c49d0 100644
+--- a/src/dpp/events/webhooks_update.cpp
++++ b/src/dpp/events/webhooks_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/webhook.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/format.cpp b/src/dpp/format.cpp
+index f95ab5d..2c6a1f2 100644
+--- a/src/dpp/format.cpp
++++ b/src/dpp/format.cpp
+@@ -5,7 +5,7 @@
+ //
+ // For the license information refer to format.h.
+ 
+-#include <dpp/fmt/format-inl.h>
++#include <fmt/format-inl.h>
+ 
+ FMT_BEGIN_NAMESPACE
+ namespace detail {
+diff --git a/src/dpp/guild.cpp b/src/dpp/guild.cpp
+index 1d47e7f..da26b04 100644
+--- a/src/dpp/guild.cpp
++++ b/src/dpp/guild.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/integration.cpp b/src/dpp/integration.cpp
+index 0d7ffba..2057271 100644
+--- a/src/dpp/integration.cpp
++++ b/src/dpp/integration.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/integration.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/cache.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/invite.cpp b/src/dpp/invite.cpp
+index ec02903..9a39fee 100644
+--- a/src/dpp/invite.cpp
++++ b/src/dpp/invite.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/invite.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/message.cpp b/src/dpp/message.cpp
+index 284fd0d..252807c 100644
+--- a/src/dpp/message.cpp
++++ b/src/dpp/message.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/exception.h>
+diff --git a/src/dpp/os.cpp b/src/dpp/os.cpp
+index 9a126ca..f76e086 100644
+--- a/src/dpp/os.cpp
++++ b/src/dpp/os.cpp
+@@ -10,7 +10,7 @@
+ #  define _CRT_SECURE_NO_WARNINGS
+ #endif
+ 
+-#include <dpp/fmt/os.h>
++#include <fmt/os.h>
+ 
+ #include <climits>
+ 
+diff --git a/src/dpp/permissions.cpp b/src/dpp/permissions.cpp
+index 5985e6e..e7adab6 100644
+--- a/src/dpp/permissions.cpp
++++ b/src/dpp/permissions.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/presence.cpp b/src/dpp/presence.cpp
+index b432044..ab8b5f4 100644
+--- a/src/dpp/presence.cpp
++++ b/src/dpp/presence.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/utility.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/prune.cpp b/src/dpp/prune.cpp
+index 1d7cd49..50b0315 100644
+--- a/src/dpp/prune.cpp
++++ b/src/dpp/prune.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/prune.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/role.cpp b/src/dpp/role.cpp
+index 618e16d..3a8182b 100644
+--- a/src/dpp/role.cpp
++++ b/src/dpp/role.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/permissions.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/scheduled_event.cpp b/src/dpp/scheduled_event.cpp
+index e049889..3113260 100644
+--- a/src/dpp/scheduled_event.cpp
++++ b/src/dpp/scheduled_event.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/exception.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/slashcommand.cpp b/src/dpp/slashcommand.cpp
+index 9ae3024..2872dac 100644
+--- a/src/dpp/slashcommand.cpp
++++ b/src/dpp/slashcommand.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/stringops.h>
+ #include <dpp/cache.h>
+ #include <iostream>
+diff --git a/src/dpp/stage_instance.cpp b/src/dpp/stage_instance.cpp
+index 2b10760..34e514d 100644
+--- a/src/dpp/stage_instance.cpp
++++ b/src/dpp/stage_instance.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/stage_instance.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/user.cpp b/src/dpp/user.cpp
+index e8e4dcd..5107c0f 100644
+--- a/src/dpp/user.cpp
++++ b/src/dpp/user.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/user.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/utility.cpp b/src/dpp/utility.cpp
+index 57c9874..80a6b82 100644
+--- a/src/dpp/utility.cpp
++++ b/src/dpp/utility.cpp
+@@ -33,7 +33,7 @@
+ #include <fstream>
+ #include <streambuf>
+ #include <array>
+-#include <dpp/fmt/format.h>
++#include <fmt/format.h>
+ #include <dpp/cluster.h>
+ #include <dpp/dispatcher.h>
+ 
+diff --git a/src/dpp/voiceregion.cpp b/src/dpp/voiceregion.cpp
+index 0e13179..895f659 100644
+--- a/src/dpp/voiceregion.cpp
++++ b/src/dpp/voiceregion.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voiceregion.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/voicestate.cpp b/src/dpp/voicestate.cpp
+index e1dd521..a68865f 100644
+--- a/src/dpp/voicestate.cpp
++++ b/src/dpp/voicestate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voicestate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/webhook.cpp b/src/dpp/webhook.cpp
+index a5e5e53..ad73796 100644
+--- a/src/dpp/webhook.cpp
++++ b/src/dpp/webhook.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/webhook.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/test.h b/src/test.h
+index 0b714f9..421ccad 100644
+--- a/src/test.h
++++ b/src/test.h
+@@ -24,7 +24,7 @@ _Pragma("warning( disable : 4251 )"); // 4251 warns when we export classes or st
+ _Pragma("warning( disable : 5105 )"); // 4251 warns when we export classes or structures with stl member variables
+ #endif
+ #include <dpp/dpp.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <iomanip>
+ 
+ #ifdef _WIN32
diff --git a/srcpkgs/libdpp/files/fix-installed-cmakefiles b/srcpkgs/libdpp/files/fix-installed-cmakefiles
new file mode 100644
index 000000000000..90efc1a3938e
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-installed-cmakefiles
@@ -0,0 +1,86 @@
+diff -ruN /usr/lib/cmake/dpp/dpp-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-noconfig.cmake	2022-06-18 14:50:52.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake	2022-06-18 14:55:08.371653178 +0800
+@@ -8,12 +8,12 @@
+ # Import target "dpp::dpp" for configuration ""
+ set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+ set_target_properties(dpp::dpp PROPERTIES
+-  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.11"
++  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.11"
+   )
+ 
+ list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.11" )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake	2022-06-18 14:50:52.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake	2022-06-18 14:55:08.446653180 +0800
+@@ -6,14 +6,14 @@
+ set(CMAKE_IMPORT_FILE_VERSION 1)
+ 
+ # Import target "dpp" for configuration ""
+-set_property(TARGET dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+-set_target_properties(dpp PROPERTIES
++set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
++set_target_properties(dpp::dpp PROPERTIES
+   IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.11"
+   )
+ 
+-list(APPEND _IMPORT_CHECK_TARGETS dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11" )
++list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets.cmake /usr/lib/cmake/dpp_patch/dpp-targets.cmake
+--- /usr/lib/cmake/dpp/dpp-targets.cmake	2022-06-18 14:50:52.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets.cmake	2022-06-18 14:55:08.442653180 +0800
+@@ -47,7 +47,7 @@
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+ get_filename_component(_realOrig "/usr/lib64" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
++if(1)
+   set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+@@ -61,7 +61,7 @@
+ add_library(dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
+diff -ruN /usr/lib/cmake/dpp/dpp.cmake /usr/lib/cmake/dpp_patch/dpp.cmake
+--- /usr/lib/cmake/dpp/dpp.cmake	2022-06-18 14:50:52.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp.cmake	2022-06-18 14:55:08.380653178 +0800
+@@ -46,9 +46,9 @@
+ # Use original install prefix when loaded through a
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+-get_filename_component(_realOrig "/usr/lib64/dpp-10.0" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
+-  set(_IMPORT_PREFIX "/usr/lib64/dpp-10.0")
++get_filename_component(_realOrig "/usr/lib64" REALPATH)
++if(1)
++  set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+ unset(_realCurr)
+@@ -62,7 +62,7 @@
+ add_library(dpp::dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp::dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..e190f0485d66
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,37 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+hostmakedepends="pkg-config git"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	git apply ${FILESDIR}/fix-headers-and-cmakefiles
+}
+
+post_install() {
+	rm -r "${DESTDIR}/usr/lib/dpp-${version%.*}"
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmove usr/include
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		vcopy ${FILESDIR}/fix-installed-cmakefiles ${PKGDESTDIR}/usr/lib/cmake
+		patch -s -p0 < ${PKGDESTDIR}/usr/lib/cmake/fix-installed-cmakefiles
+		mv ${PKGDESTDIR}/usr/lib/cmake/dpp_patch ${PKGDESTDIR}/usr/lib/cmake/dpp
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (35 preceding siblings ...)
  2022-06-18  7:17 ` [PR PATCH] [Updated] " JuniorSuperTux
@ 2022-06-18  7:27 ` abenson
  2022-06-18  7:28 ` [PR PATCH] [Updated] " JuniorSuperTux
                   ` (12 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: abenson @ 2022-06-18  7:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 184 bytes --]

New comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#issuecomment-1159384571

Comment:
What was wrong with the patch I suggested?

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (36 preceding siblings ...)
  2022-06-18  7:27 ` abenson
@ 2022-06-18  7:28 ` JuniorSuperTux
  2022-06-18  7:29 ` JuniorSuperTux
                   ` (11 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-18  7:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 1468212 bytes --]

From 73d7fd1866e508ee33300c6dc862b6ec7506598c Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel                          |     1 +
 .../libdpp/files/fix-headers-and-cmakefiles   | 38772 ++++++++++++++++
 srcpkgs/libdpp/files/fix-installed-cmakefiles |    86 +
 srcpkgs/libdpp/template                       |    38 +
 4 files changed, 38897 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/files/fix-headers-and-cmakefiles
 create mode 100644 srcpkgs/libdpp/files/fix-installed-cmakefiles
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/files/fix-headers-and-cmakefiles b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
new file mode 100644
index 000000000000..f63df5313e96
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
@@ -0,0 +1,38772 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index bbcc4b3..524a3ca 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -43,7 +43,7 @@ math(EXPR DPP_VERSION_PATCH ${CMAKE_MATCH_3})
+ 
+ string(CONCAT DPP_VERSION ${DPP_VERSION_MAJOR}.${DPP_VERSION_MINOR}.${DPP_VERSION_PATCH})
+ 
+-project(libdpp VERSION ${DPP_VERSION} LANGUAGES CXX)
++project(dpp VERSION ${DPP_VERSION} LANGUAGES CXX)
+ 
+ check_cxx_symbol_exists(prctl "sys/prctl.h" HAVE_PRCTL)
+ check_cxx_symbol_exists(pthread_setname_np "pthread.h" HAVE_PTHREAD_SETNAME_NP)
+@@ -240,8 +240,8 @@ foreach (fullmodname ${subdirlist})
+ 	target_precompile_headers(
+ 		${modname}
+ 		PRIVATE
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json.hpp"
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json_fwd.hpp"
++		<nlohmann/json.hpp>
++		<nlohmann/json_fwd.hpp>
+ 	)
+ 
+ 	if (WIN32 AND NOT MINGW)
+@@ -325,14 +325,16 @@ if(NOT WIN32)
+ 	# Installation
+ 
+ 	include(GNUInstallDirs)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ 	install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -DRUN_LDCONFIG=${RUN_LDCONFIG} -DLDCONFIG_EXECUTABLE=${LDCONFIG_EXECUTABLE} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/PostInstall.cmake)")
+ 
+ 	configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dpp.pc.in" "${CMAKE_BINARY_DIR}/dpp.pc" @ONLY)
+ 	install(FILES "${CMAKE_BINARY_DIR}/dpp.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
+ elseif(MINGW)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
+ endif()
+ 
+diff --git a/cmake/CPackSetup.cmake b/cmake/CPackSetup.cmake
+index a6bcf59..73abe7e 100644
+--- a/cmake/CPackSetup.cmake
++++ b/cmake/CPackSetup.cmake
+@@ -24,7 +24,7 @@ write_basic_package_version_file(${DPP_VERSION_FILE}
+ install(DIRECTORY include/ DESTINATION ${DPP_INSTALL_INCLUDE_DIR})
+ 
+ ## Include the file which allows `find_package(libdpp)` to function.
+-install(FILES cmake/libdpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
++install(FILES cmake/dpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
+ 
+ ## Export the targets to allow other projects to easily include this project
+ install(EXPORT ${DPP_EXPORT_NAME} DESTINATION ${DPP_INSTALL_LIBRARY_DIR} NAMESPACE dpp::)
+diff --git a/cmake/libdpp-config.cmake b/cmake/libdpp-config.cmake
+deleted file mode 100644
+index d6dd5bd..0000000
+--- a/cmake/libdpp-config.cmake
++++ /dev/null
+@@ -1,21 +0,0 @@
+-# libdpp-config.cmake - package configuration file
+-
+-## Get current filesystem path (will a prefixed by where this package was installed)
+-get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+-
+-## Use this directory to include libdpp which has the rest of the project targets
+-include(${SELF_DIR}/libdpp.cmake)
+-
+-## Set OpenSSl directory for macos. It is also in our main CMakeLists.txt, but this file is independent from that.
+-if(APPLE)
+-	if(CMAKE_APPLE_SILICON_PROCESSOR)
+-		set(OPENSSL_ROOT_DIR "/opt/homebrew/opt/openssl")
+-	else()
+-		set(OPENSSL_ROOT_DIR "/usr/local/opt/openssl")
+-	endif()
+-	find_package(OpenSSL REQUIRED)
+-endif()
+-
+-# Search for libdpp dependencies
+-include(CMakeFindDependencyMacro)
+-find_dependency(OpenSSL REQUIRED)
+diff --git a/include/dpp/appcommand.h b/include/dpp/appcommand.h
+index 424823c..36f8f82 100644
+--- a/include/dpp/appcommand.h
++++ b/include/dpp/appcommand.h
+@@ -27,7 +27,7 @@
+ #include <dpp/role.h>
+ #include <dpp/user.h>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/application.h b/include/dpp/application.h
+index 7e9d80d..19fad83 100644
+--- a/include/dpp/application.h
++++ b/include/dpp/application.h
+@@ -26,7 +26,7 @@
+ #include <dpp/utility.h>
+ #include <dpp/user.h>
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/auditlog.h b/include/dpp/auditlog.h
+index 3469630..ca878da 100644
+--- a/include/dpp/auditlog.h
++++ b/include/dpp/auditlog.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <optional>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/ban.h b/include/dpp/ban.h
+index 6bbcdd2..8ad88d6 100644
+--- a/include/dpp/ban.h
++++ b/include/dpp/ban.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+ 
+diff --git a/include/dpp/channel.h b/include/dpp/channel.h
+index 7335b28..b2fcc33 100644
+--- a/include/dpp/channel.h
++++ b/include/dpp/channel.h
+@@ -25,7 +25,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+ #include <dpp/voicestate.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+diff --git a/include/dpp/cluster.h b/include/dpp/cluster.h
+index 5400695..6e7b41b 100644
+--- a/include/dpp/cluster.h
++++ b/include/dpp/cluster.h
+@@ -29,7 +29,7 @@
+ #include <dpp/dispatcher.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/timer.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/discordclient.h>
+ #include <dpp/voiceregion.h>
+ #include <dpp/dtemplate.h>
+diff --git a/include/dpp/commandhandler.h b/include/dpp/commandhandler.h
+index 29da473..0b15417 100644
+--- a/include/dpp/commandhandler.h
++++ b/include/dpp/commandhandler.h
+@@ -29,7 +29,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/utility.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <vector>
+ #include <functional>
+diff --git a/include/dpp/discordclient.h b/include/dpp/discordclient.h
+index 1eb875a..10f010e 100644
+--- a/include/dpp/discordclient.h
++++ b/include/dpp/discordclient.h
+@@ -24,7 +24,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/discordevents.h b/include/dpp/discordevents.h
+index c6474a4..1a70b18 100644
+--- a/include/dpp/discordevents.h
++++ b/include/dpp/discordevents.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ 
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/discordvoiceclient.h b/include/dpp/discordvoiceclient.h
+index e11d653..6692e54 100644
+--- a/include/dpp/discordvoiceclient.h
++++ b/include/dpp/discordvoiceclient.h
+@@ -32,7 +32,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/dtemplate.h b/include/dpp/dtemplate.h
+index 948b25d..5fbe17e 100644
+--- a/include/dpp/dtemplate.h
++++ b/include/dpp/dtemplate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/emoji.h b/include/dpp/emoji.h
+index a73e58a..9ab9c1e 100644
+--- a/include/dpp/emoji.h
++++ b/include/dpp/emoji.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/etf.h b/include/dpp/etf.h
+index 1c98e6a..1acd63b 100644
+--- a/include/dpp/etf.h
++++ b/include/dpp/etf.h
+@@ -34,7 +34,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/event.h b/include/dpp/event.h
+index cd945f5..388a0d6 100644
+--- a/include/dpp/event.h
++++ b/include/dpp/event.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ #define event_decl(x,wstype) /** @brief Internal event handler for wstype websocket events. Called for each websocket message of this type. @internal */ \
+ 	class x : public event { public: virtual void handle(dpp::discord_client* client, nlohmann::json &j, const std::string &raw); };
+diff --git a/include/dpp/fmt-minimal.h b/include/dpp/fmt-minimal.h
+index a5e7a5d..88f1e38 100644
+--- a/include/dpp/fmt-minimal.h
++++ b/include/dpp/fmt-minimal.h
+@@ -1,3 +1,3 @@
+ #pragma once
+-#include <dpp/fmt/core.h>
++#include <fmt/core.h>
+ #define FMT_STRING(s) s
+diff --git a/include/dpp/fmt/args.h b/include/dpp/fmt/args.h
+deleted file mode 100644
+index 9a8e4ed..0000000
+--- a/include/dpp/fmt/args.h
++++ /dev/null
+@@ -1,234 +0,0 @@
+-// Formatting library for C++ - dynamic format arguments
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_ARGS_H_
+-#define FMT_ARGS_H_
+-
+-#include <functional>  // std::reference_wrapper
+-#include <memory>      // std::unique_ptr
+-#include <vector>
+-
+-#include "core.h"
+-
+-FMT_BEGIN_NAMESPACE
+-
+-namespace detail {
+-
+-template <typename T> struct is_reference_wrapper : std::false_type {};
+-template <typename T>
+-struct is_reference_wrapper<std::reference_wrapper<T>> : std::true_type {};
+-
+-template <typename T> const T& unwrap(const T& v) { return v; }
+-template <typename T> const T& unwrap(const std::reference_wrapper<T>& v) {
+-  return static_cast<const T&>(v);
+-}
+-
+-class dynamic_arg_list {
+-  // Workaround for clang's -Wweak-vtables. Unlike for regular classes, for
+-  // templates it doesn't complain about inability to deduce single translation
+-  // unit for placing vtable. So storage_node_base is made a fake template.
+-  template <typename = void> struct node {
+-    virtual ~node() = default;
+-    std::unique_ptr<node<>> next;
+-  };
+-
+-  template <typename T> struct typed_node : node<> {
+-    T value;
+-
+-    template <typename Arg>
+-    FMT_CONSTEXPR typed_node(const Arg& arg) : value(arg) {}
+-
+-    template <typename Char>
+-    FMT_CONSTEXPR typed_node(const basic_string_view<Char>& arg)
+-        : value(arg.data(), arg.size()) {}
+-  };
+-
+-  std::unique_ptr<node<>> head_;
+-
+- public:
+-  template <typename T, typename Arg> const T& push(const Arg& arg) {
+-    auto new_node = std::unique_ptr<typed_node<T>>(new typed_node<T>(arg));
+-    auto& value = new_node->value;
+-    new_node->next = std::move(head_);
+-    head_ = std::move(new_node);
+-    return value;
+-  }
+-};
+-}  // namespace detail
+-
+-/**
+-  \rst
+-  A dynamic version of `fmt::format_arg_store`.
+-  It's equipped with a storage to potentially temporary objects which lifetimes
+-  could be shorter than the format arguments object.
+-
+-  It can be implicitly converted into `~fmt::basic_format_args` for passing
+-  into type-erased formatting functions such as `~fmt::vformat`.
+-  \endrst
+- */
+-template <typename Context>
+-class dynamic_format_arg_store
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-    // Workaround a GCC template argument substitution bug.
+-    : public basic_format_args<Context>
+-#endif
+-{
+- private:
+-  using char_type = typename Context::char_type;
+-
+-  template <typename T> struct need_copy {
+-    static constexpr detail::type mapped_type =
+-        detail::mapped_type_constant<T, Context>::value;
+-
+-    enum {
+-      value = !(detail::is_reference_wrapper<T>::value ||
+-                std::is_same<T, basic_string_view<char_type>>::value ||
+-                std::is_same<T, detail::std_string_view<char_type>>::value ||
+-                (mapped_type != detail::type::cstring_type &&
+-                 mapped_type != detail::type::string_type &&
+-                 mapped_type != detail::type::custom_type))
+-    };
+-  };
+-
+-  template <typename T>
+-  using stored_type = conditional_t<detail::is_string<T>::value &&
+-                                        !has_formatter<T, Context>::value &&
+-                                        !detail::is_reference_wrapper<T>::value,
+-                                    std::basic_string<char_type>, T>;
+-
+-  // Storage of basic_format_arg must be contiguous.
+-  std::vector<basic_format_arg<Context>> data_;
+-  std::vector<detail::named_arg_info<char_type>> named_info_;
+-
+-  // Storage of arguments not fitting into basic_format_arg must grow
+-  // without relocation because items in data_ refer to it.
+-  detail::dynamic_arg_list dynamic_args_;
+-
+-  friend class basic_format_args<Context>;
+-
+-  unsigned long long get_types() const {
+-    return detail::is_unpacked_bit | data_.size() |
+-           (named_info_.empty()
+-                ? 0ULL
+-                : static_cast<unsigned long long>(detail::has_named_args_bit));
+-  }
+-
+-  const basic_format_arg<Context>* data() const {
+-    return named_info_.empty() ? data_.data() : data_.data() + 1;
+-  }
+-
+-  template <typename T> void emplace_arg(const T& arg) {
+-    data_.emplace_back(detail::make_arg<Context>(arg));
+-  }
+-
+-  template <typename T>
+-  void emplace_arg(const detail::named_arg<char_type, T>& arg) {
+-    if (named_info_.empty()) {
+-      constexpr const detail::named_arg_info<char_type>* zero_ptr{nullptr};
+-      data_.insert(data_.begin(), {zero_ptr, 0});
+-    }
+-    data_.emplace_back(detail::make_arg<Context>(detail::unwrap(arg.value)));
+-    auto pop_one = [](std::vector<basic_format_arg<Context>>* data) {
+-      data->pop_back();
+-    };
+-    std::unique_ptr<std::vector<basic_format_arg<Context>>, decltype(pop_one)>
+-        guard{&data_, pop_one};
+-    named_info_.push_back({arg.name, static_cast<int>(data_.size() - 2u)});
+-    data_[0].value_.named_args = {named_info_.data(), named_info_.size()};
+-    guard.release();
+-  }
+-
+- public:
+-  constexpr dynamic_format_arg_store() = default;
+-
+-  /**
+-    \rst
+-    Adds an argument into the dynamic store for later passing to a formatting
+-    function.
+-
+-    Note that custom types and string types (but not string views) are copied
+-    into the store dynamically allocating memory if necessary.
+-
+-    **Example**::
+-
+-      fmt::dynamic_format_arg_store<fmt::format_context> store;
+-      store.push_back(42);
+-      store.push_back("abc");
+-      store.push_back(1.5f);
+-      std::string result = fmt::vformat("{} and {} and {}", store);
+-    \endrst
+-  */
+-  template <typename T> void push_back(const T& arg) {
+-    if (detail::const_check(need_copy<T>::value))
+-      emplace_arg(dynamic_args_.push<stored_type<T>>(arg));
+-    else
+-      emplace_arg(detail::unwrap(arg));
+-  }
+-
+-  /**
+-    \rst
+-    Adds a reference to the argument into the dynamic store for later passing to
+-    a formatting function.
+-
+-    **Example**::
+-
+-      fmt::dynamic_format_arg_store<fmt::format_context> store;
+-      char band[] = "Rolling Stones";
+-      store.push_back(std::cref(band));
+-      band[9] = 'c'; // Changing str affects the output.
+-      std::string result = fmt::vformat("{}", store);
+-      // result == "Rolling Scones"
+-    \endrst
+-  */
+-  template <typename T> void push_back(std::reference_wrapper<T> arg) {
+-    static_assert(
+-        need_copy<T>::value,
+-        "objects of built-in types and string views are always copied");
+-    emplace_arg(arg.get());
+-  }
+-
+-  /**
+-    Adds named argument into the dynamic store for later passing to a formatting
+-    function. ``std::reference_wrapper`` is supported to avoid copying of the
+-    argument. The name is always copied into the store.
+-  */
+-  template <typename T>
+-  void push_back(const detail::named_arg<char_type, T>& arg) {
+-    const char_type* arg_name =
+-        dynamic_args_.push<std::basic_string<char_type>>(arg.name).c_str();
+-    if (detail::const_check(need_copy<T>::value)) {
+-      emplace_arg(
+-          fmt::arg(arg_name, dynamic_args_.push<stored_type<T>>(arg.value)));
+-    } else {
+-      emplace_arg(fmt::arg(arg_name, arg.value));
+-    }
+-  }
+-
+-  /** Erase all elements from the store */
+-  void clear() {
+-    data_.clear();
+-    named_info_.clear();
+-    dynamic_args_ = detail::dynamic_arg_list();
+-  }
+-
+-  /**
+-    \rst
+-    Reserves space to store at least *new_cap* arguments including
+-    *new_cap_named* named arguments.
+-    \endrst
+-  */
+-  void reserve(size_t new_cap, size_t new_cap_named) {
+-    FMT_ASSERT(new_cap >= new_cap_named,
+-               "Set of arguments includes set of named arguments");
+-    data_.reserve(new_cap);
+-    named_info_.reserve(new_cap_named);
+-  }
+-};
+-
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_ARGS_H_
+diff --git a/include/dpp/fmt/chrono.h b/include/dpp/fmt/chrono.h
+deleted file mode 100644
+index 682efd8..0000000
+--- a/include/dpp/fmt/chrono.h
++++ /dev/null
+@@ -1,2067 +0,0 @@
+-// Formatting library for C++ - chrono support
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_CHRONO_H_
+-#define FMT_CHRONO_H_
+-
+-#include <algorithm>
+-#include <chrono>
+-#include <ctime>
+-#include <iterator>
+-#include <locale>
+-#include <ostream>
+-#include <type_traits>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-
+-// Enable tzset.
+-#ifndef FMT_USE_TZSET
+-// UWP doesn't provide _tzset.
+-#  if FMT_HAS_INCLUDE("winapifamily.h")
+-#    include <winapifamily.h>
+-#  endif
+-#  if defined(_WIN32) && (!defined(WINAPI_FAMILY) || \
+-                          (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP))
+-#    define FMT_USE_TZSET 1
+-#  else
+-#    define FMT_USE_TZSET 0
+-#  endif
+-#endif
+-
+-// Enable safe chrono durations, unless explicitly disabled.
+-#ifndef FMT_SAFE_DURATION_CAST
+-#  define FMT_SAFE_DURATION_CAST 1
+-#endif
+-#if FMT_SAFE_DURATION_CAST
+-
+-// For conversion between std::chrono::durations without undefined
+-// behaviour or erroneous results.
+-// This is a stripped down version of duration_cast, for inclusion in fmt.
+-// See https://github.com/pauldreik/safe_duration_cast
+-//
+-// Copyright Paul Dreik 2019
+-namespace safe_duration_cast {
+-
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(!std::is_same<From, To>::value &&
+-                        std::numeric_limits<From>::is_signed ==
+-                            std::numeric_limits<To>::is_signed)>
+-FMT_CONSTEXPR To lossless_integral_conversion(const From from, int& ec) {
+-  ec = 0;
+-  using F = std::numeric_limits<From>;
+-  using T = std::numeric_limits<To>;
+-  static_assert(F::is_integer, "From must be integral");
+-  static_assert(T::is_integer, "To must be integral");
+-
+-  // A and B are both signed, or both unsigned.
+-  if (detail::const_check(F::digits <= T::digits)) {
+-    // From fits in To without any problem.
+-  } else {
+-    // From does not always fit in To, resort to a dynamic check.
+-    if (from < (T::min)() || from > (T::max)()) {
+-      // outside range.
+-      ec = 1;
+-      return {};
+-    }
+-  }
+-  return static_cast<To>(from);
+-}
+-
+-/**
+- * converts From to To, without loss. If the dynamic value of from
+- * can't be converted to To without loss, ec is set.
+- */
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(!std::is_same<From, To>::value &&
+-                        std::numeric_limits<From>::is_signed !=
+-                            std::numeric_limits<To>::is_signed)>
+-FMT_CONSTEXPR To lossless_integral_conversion(const From from, int& ec) {
+-  ec = 0;
+-  using F = std::numeric_limits<From>;
+-  using T = std::numeric_limits<To>;
+-  static_assert(F::is_integer, "From must be integral");
+-  static_assert(T::is_integer, "To must be integral");
+-
+-  if (detail::const_check(F::is_signed && !T::is_signed)) {
+-    // From may be negative, not allowed!
+-    if (fmt::detail::is_negative(from)) {
+-      ec = 1;
+-      return {};
+-    }
+-    // From is positive. Can it always fit in To?
+-    if (detail::const_check(F::digits > T::digits) &&
+-        from > static_cast<From>(detail::max_value<To>())) {
+-      ec = 1;
+-      return {};
+-    }
+-  }
+-
+-  if (detail::const_check(!F::is_signed && T::is_signed &&
+-                          F::digits >= T::digits) &&
+-      from > static_cast<From>(detail::max_value<To>())) {
+-    ec = 1;
+-    return {};
+-  }
+-  return static_cast<To>(from);  // Lossless conversion.
+-}
+-
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(std::is_same<From, To>::value)>
+-FMT_CONSTEXPR To lossless_integral_conversion(const From from, int& ec) {
+-  ec = 0;
+-  return from;
+-}  // function
+-
+-// clang-format off
+-/**
+- * converts From to To if possible, otherwise ec is set.
+- *
+- * input                            |    output
+- * ---------------------------------|---------------
+- * NaN                              | NaN
+- * Inf                              | Inf
+- * normal, fits in output           | converted (possibly lossy)
+- * normal, does not fit in output   | ec is set
+- * subnormal                        | best effort
+- * -Inf                             | -Inf
+- */
+-// clang-format on
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(!std::is_same<From, To>::value)>
+-FMT_CONSTEXPR To safe_float_conversion(const From from, int& ec) {
+-  ec = 0;
+-  using T = std::numeric_limits<To>;
+-  static_assert(std::is_floating_point<From>::value, "From must be floating");
+-  static_assert(std::is_floating_point<To>::value, "To must be floating");
+-
+-  // catch the only happy case
+-  if (std::isfinite(from)) {
+-    if (from >= T::lowest() && from <= (T::max)()) {
+-      return static_cast<To>(from);
+-    }
+-    // not within range.
+-    ec = 1;
+-    return {};
+-  }
+-
+-  // nan and inf will be preserved
+-  return static_cast<To>(from);
+-}  // function
+-
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(std::is_same<From, To>::value)>
+-FMT_CONSTEXPR To safe_float_conversion(const From from, int& ec) {
+-  ec = 0;
+-  static_assert(std::is_floating_point<From>::value, "From must be floating");
+-  return from;
+-}
+-
+-/**
+- * safe duration cast between integral durations
+- */
+-template <typename To, typename FromRep, typename FromPeriod,
+-          FMT_ENABLE_IF(std::is_integral<FromRep>::value),
+-          FMT_ENABLE_IF(std::is_integral<typename To::rep>::value)>
+-To safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from,
+-                      int& ec) {
+-  using From = std::chrono::duration<FromRep, FromPeriod>;
+-  ec = 0;
+-  // the basic idea is that we need to convert from count() in the from type
+-  // to count() in the To type, by multiplying it with this:
+-  struct Factor
+-      : std::ratio_divide<typename From::period, typename To::period> {};
+-
+-  static_assert(Factor::num > 0, "num must be positive");
+-  static_assert(Factor::den > 0, "den must be positive");
+-
+-  // the conversion is like this: multiply from.count() with Factor::num
+-  // /Factor::den and convert it to To::rep, all this without
+-  // overflow/underflow. let's start by finding a suitable type that can hold
+-  // both To, From and Factor::num
+-  using IntermediateRep =
+-      typename std::common_type<typename From::rep, typename To::rep,
+-                                decltype(Factor::num)>::type;
+-
+-  // safe conversion to IntermediateRep
+-  IntermediateRep count =
+-      lossless_integral_conversion<IntermediateRep>(from.count(), ec);
+-  if (ec) return {};
+-  // multiply with Factor::num without overflow or underflow
+-  if (detail::const_check(Factor::num != 1)) {
+-    const auto max1 = detail::max_value<IntermediateRep>() / Factor::num;
+-    if (count > max1) {
+-      ec = 1;
+-      return {};
+-    }
+-    const auto min1 =
+-        (std::numeric_limits<IntermediateRep>::min)() / Factor::num;
+-    if (count < min1) {
+-      ec = 1;
+-      return {};
+-    }
+-    count *= Factor::num;
+-  }
+-
+-  if (detail::const_check(Factor::den != 1)) count /= Factor::den;
+-  auto tocount = lossless_integral_conversion<typename To::rep>(count, ec);
+-  return ec ? To() : To(tocount);
+-}
+-
+-/**
+- * safe duration_cast between floating point durations
+- */
+-template <typename To, typename FromRep, typename FromPeriod,
+-          FMT_ENABLE_IF(std::is_floating_point<FromRep>::value),
+-          FMT_ENABLE_IF(std::is_floating_point<typename To::rep>::value)>
+-To safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from,
+-                      int& ec) {
+-  using From = std::chrono::duration<FromRep, FromPeriod>;
+-  ec = 0;
+-  if (std::isnan(from.count())) {
+-    // nan in, gives nan out. easy.
+-    return To{std::numeric_limits<typename To::rep>::quiet_NaN()};
+-  }
+-  // maybe we should also check if from is denormal, and decide what to do about
+-  // it.
+-
+-  // +-inf should be preserved.
+-  if (std::isinf(from.count())) {
+-    return To{from.count()};
+-  }
+-
+-  // the basic idea is that we need to convert from count() in the from type
+-  // to count() in the To type, by multiplying it with this:
+-  struct Factor
+-      : std::ratio_divide<typename From::period, typename To::period> {};
+-
+-  static_assert(Factor::num > 0, "num must be positive");
+-  static_assert(Factor::den > 0, "den must be positive");
+-
+-  // the conversion is like this: multiply from.count() with Factor::num
+-  // /Factor::den and convert it to To::rep, all this without
+-  // overflow/underflow. let's start by finding a suitable type that can hold
+-  // both To, From and Factor::num
+-  using IntermediateRep =
+-      typename std::common_type<typename From::rep, typename To::rep,
+-                                decltype(Factor::num)>::type;
+-
+-  // force conversion of From::rep -> IntermediateRep to be safe,
+-  // even if it will never happen be narrowing in this context.
+-  IntermediateRep count =
+-      safe_float_conversion<IntermediateRep>(from.count(), ec);
+-  if (ec) {
+-    return {};
+-  }
+-
+-  // multiply with Factor::num without overflow or underflow
+-  if (detail::const_check(Factor::num != 1)) {
+-    constexpr auto max1 = detail::max_value<IntermediateRep>() /
+-                          static_cast<IntermediateRep>(Factor::num);
+-    if (count > max1) {
+-      ec = 1;
+-      return {};
+-    }
+-    constexpr auto min1 = std::numeric_limits<IntermediateRep>::lowest() /
+-                          static_cast<IntermediateRep>(Factor::num);
+-    if (count < min1) {
+-      ec = 1;
+-      return {};
+-    }
+-    count *= static_cast<IntermediateRep>(Factor::num);
+-  }
+-
+-  // this can't go wrong, right? den>0 is checked earlier.
+-  if (detail::const_check(Factor::den != 1)) {
+-    using common_t = typename std::common_type<IntermediateRep, intmax_t>::type;
+-    count /= static_cast<common_t>(Factor::den);
+-  }
+-
+-  // convert to the to type, safely
+-  using ToRep = typename To::rep;
+-
+-  const ToRep tocount = safe_float_conversion<ToRep>(count, ec);
+-  if (ec) {
+-    return {};
+-  }
+-  return To{tocount};
+-}
+-}  // namespace safe_duration_cast
+-#endif
+-
+-// Prevents expansion of a preceding token as a function-style macro.
+-// Usage: f FMT_NOMACRO()
+-#define FMT_NOMACRO
+-
+-namespace detail {
+-template <typename T = void> struct null {};
+-inline null<> localtime_r FMT_NOMACRO(...) { return null<>(); }
+-inline null<> localtime_s(...) { return null<>(); }
+-inline null<> gmtime_r(...) { return null<>(); }
+-inline null<> gmtime_s(...) { return null<>(); }
+-
+-inline const std::locale& get_classic_locale() {
+-  static const auto& locale = std::locale::classic();
+-  return locale;
+-}
+-
+-template <typename CodeUnit> struct codecvt_result {
+-  static constexpr const size_t max_size = 32;
+-  CodeUnit buf[max_size];
+-  CodeUnit* end;
+-};
+-template <typename CodeUnit>
+-constexpr const size_t codecvt_result<CodeUnit>::max_size;
+-
+-template <typename CodeUnit>
+-void write_codecvt(codecvt_result<CodeUnit>& out, string_view in_buf,
+-                   const std::locale& loc) {
+-  using codecvt = std::codecvt<CodeUnit, char, std::mbstate_t>;
+-#if FMT_CLANG_VERSION
+-#  pragma clang diagnostic push
+-#  pragma clang diagnostic ignored "-Wdeprecated"
+-  auto& f = std::use_facet<codecvt>(loc);
+-#  pragma clang diagnostic pop
+-#else
+-  auto& f = std::use_facet<codecvt>(loc);
+-#endif
+-  auto mb = std::mbstate_t();
+-  const char* from_next = nullptr;
+-  auto result = f.in(mb, in_buf.begin(), in_buf.end(), from_next,
+-                     std::begin(out.buf), std::end(out.buf), out.end);
+-  if (result != std::codecvt_base::ok)
+-    FMT_THROW(format_error("failed to format time"));
+-}
+-
+-template <typename OutputIt>
+-auto write_encoded_tm_str(OutputIt out, string_view in, const std::locale& loc)
+-    -> OutputIt {
+-  if (detail::is_utf8() && loc != get_classic_locale()) {
+-    // char16_t and char32_t codecvts are broken in MSVC (linkage errors) and
+-    // gcc-4.
+-#if FMT_MSC_VER != 0 || \
+-    (defined(__GLIBCXX__) && !defined(_GLIBCXX_USE_DUAL_ABI))
+-    // The _GLIBCXX_USE_DUAL_ABI macro is always defined in libstdc++ from gcc-5
+-    // and newer.
+-    using code_unit = wchar_t;
+-#else
+-    using code_unit = char32_t;
+-#endif
+-
+-    using unit_t = codecvt_result<code_unit>;
+-    unit_t unit;
+-    write_codecvt(unit, in, loc);
+-    // In UTF-8 is used one to four one-byte code units.
+-    auto&& buf = basic_memory_buffer<char, unit_t::max_size * 4>();
+-    for (code_unit* p = unit.buf; p != unit.end; ++p) {
+-      uint32_t c = static_cast<uint32_t>(*p);
+-      if (sizeof(code_unit) == 2 && c >= 0xd800 && c <= 0xdfff) {
+-        // surrogate pair
+-        ++p;
+-        if (p == unit.end || (c & 0xfc00) != 0xd800 ||
+-            (*p & 0xfc00) != 0xdc00) {
+-          FMT_THROW(format_error("failed to format time"));
+-        }
+-        c = (c << 10) + static_cast<uint32_t>(*p) - 0x35fdc00;
+-      }
+-      if (c < 0x80) {
+-        buf.push_back(static_cast<char>(c));
+-      } else if (c < 0x800) {
+-        buf.push_back(static_cast<char>(0xc0 | (c >> 6)));
+-        buf.push_back(static_cast<char>(0x80 | (c & 0x3f)));
+-      } else if ((c >= 0x800 && c <= 0xd7ff) || (c >= 0xe000 && c <= 0xffff)) {
+-        buf.push_back(static_cast<char>(0xe0 | (c >> 12)));
+-        buf.push_back(static_cast<char>(0x80 | ((c & 0xfff) >> 6)));
+-        buf.push_back(static_cast<char>(0x80 | (c & 0x3f)));
+-      } else if (c >= 0x10000 && c <= 0x10ffff) {
+-        buf.push_back(static_cast<char>(0xf0 | (c >> 18)));
+-        buf.push_back(static_cast<char>(0x80 | ((c & 0x3ffff) >> 12)));
+-        buf.push_back(static_cast<char>(0x80 | ((c & 0xfff) >> 6)));
+-        buf.push_back(static_cast<char>(0x80 | (c & 0x3f)));
+-      } else {
+-        FMT_THROW(format_error("failed to format time"));
+-      }
+-    }
+-    return copy_str<char>(buf.data(), buf.data() + buf.size(), out);
+-  }
+-  return copy_str<char>(in.data(), in.data() + in.size(), out);
+-}
+-
+-template <typename Char, typename OutputIt,
+-          FMT_ENABLE_IF(!std::is_same<Char, char>::value)>
+-auto write_tm_str(OutputIt out, string_view sv, const std::locale& loc)
+-    -> OutputIt {
+-  codecvt_result<Char> unit;
+-  write_codecvt(unit, sv, loc);
+-  return copy_str<Char>(unit.buf, unit.end, out);
+-}
+-
+-template <typename Char, typename OutputIt,
+-          FMT_ENABLE_IF(std::is_same<Char, char>::value)>
+-auto write_tm_str(OutputIt out, string_view sv, const std::locale& loc)
+-    -> OutputIt {
+-  return write_encoded_tm_str(out, sv, loc);
+-}
+-
+-template <typename Char>
+-inline void do_write(buffer<Char>& buf, const std::tm& time,
+-                     const std::locale& loc, char format, char modifier) {
+-  auto&& format_buf = formatbuf<std::basic_streambuf<Char>>(buf);
+-  auto&& os = std::basic_ostream<Char>(&format_buf);
+-  os.imbue(loc);
+-  using iterator = std::ostreambuf_iterator<Char>;
+-  const auto& facet = std::use_facet<std::time_put<Char, iterator>>(loc);
+-  auto end = facet.put(os, os, Char(' '), &time, format, modifier);
+-  if (end.failed()) FMT_THROW(format_error("failed to format time"));
+-}
+-
+-template <typename Char, typename OutputIt,
+-          FMT_ENABLE_IF(!std::is_same<Char, char>::value)>
+-auto write(OutputIt out, const std::tm& time, const std::locale& loc,
+-           char format, char modifier = 0) -> OutputIt {
+-  auto&& buf = get_buffer<Char>(out);
+-  do_write<Char>(buf, time, loc, format, modifier);
+-  return buf.out();
+-}
+-
+-template <typename Char, typename OutputIt,
+-          FMT_ENABLE_IF(std::is_same<Char, char>::value)>
+-auto write(OutputIt out, const std::tm& time, const std::locale& loc,
+-           char format, char modifier = 0) -> OutputIt {
+-  auto&& buf = basic_memory_buffer<Char>();
+-  do_write<char>(buf, time, loc, format, modifier);
+-  return write_encoded_tm_str(out, string_view(buf.data(), buf.size()), loc);
+-}
+-
+-}  // namespace detail
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-/**
+-  Converts given time since epoch as ``std::time_t`` value into calendar time,
+-  expressed in local time. Unlike ``std::localtime``, this function is
+-  thread-safe on most platforms.
+- */
+-inline std::tm localtime(std::time_t time) {
+-  struct dispatcher {
+-    std::time_t time_;
+-    std::tm tm_;
+-
+-    dispatcher(std::time_t t) : time_(t) {}
+-
+-    bool run() {
+-      using namespace fmt::detail;
+-      return handle(localtime_r(&time_, &tm_));
+-    }
+-
+-    bool handle(std::tm* tm) { return tm != nullptr; }
+-
+-    bool handle(detail::null<>) {
+-      using namespace fmt::detail;
+-      return fallback(localtime_s(&tm_, &time_));
+-    }
+-
+-    bool fallback(int res) { return res == 0; }
+-
+-#if !FMT_MSC_VER
+-    bool fallback(detail::null<>) {
+-      using namespace fmt::detail;
+-      std::tm* tm = std::localtime(&time_);
+-      if (tm) tm_ = *tm;
+-      return tm != nullptr;
+-    }
+-#endif
+-  };
+-  dispatcher lt(time);
+-  // Too big time values may be unsupported.
+-  if (!lt.run()) FMT_THROW(format_error("time_t value out of range"));
+-  return lt.tm_;
+-}
+-
+-inline std::tm localtime(
+-    std::chrono::time_point<std::chrono::system_clock> time_point) {
+-  return localtime(std::chrono::system_clock::to_time_t(time_point));
+-}
+-
+-/**
+-  Converts given time since epoch as ``std::time_t`` value into calendar time,
+-  expressed in Coordinated Universal Time (UTC). Unlike ``std::gmtime``, this
+-  function is thread-safe on most platforms.
+- */
+-inline std::tm gmtime(std::time_t time) {
+-  struct dispatcher {
+-    std::time_t time_;
+-    std::tm tm_;
+-
+-    dispatcher(std::time_t t) : time_(t) {}
+-
+-    bool run() {
+-      using namespace fmt::detail;
+-      return handle(gmtime_r(&time_, &tm_));
+-    }
+-
+-    bool handle(std::tm* tm) { return tm != nullptr; }
+-
+-    bool handle(detail::null<>) {
+-      using namespace fmt::detail;
+-      return fallback(gmtime_s(&tm_, &time_));
+-    }
+-
+-    bool fallback(int res) { return res == 0; }
+-
+-#if !FMT_MSC_VER
+-    bool fallback(detail::null<>) {
+-      std::tm* tm = std::gmtime(&time_);
+-      if (tm) tm_ = *tm;
+-      return tm != nullptr;
+-    }
+-#endif
+-  };
+-  dispatcher gt(time);
+-  // Too big time values may be unsupported.
+-  if (!gt.run()) FMT_THROW(format_error("time_t value out of range"));
+-  return gt.tm_;
+-}
+-
+-inline std::tm gmtime(
+-    std::chrono::time_point<std::chrono::system_clock> time_point) {
+-  return gmtime(std::chrono::system_clock::to_time_t(time_point));
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// Writes two-digit numbers a, b and c separated by sep to buf.
+-// The method by Pavel Novikov based on
+-// https://johnnylee-sde.github.io/Fast-unsigned-integer-to-time-string/.
+-inline void write_digit2_separated(char* buf, unsigned a, unsigned b,
+-                                   unsigned c, char sep) {
+-  unsigned long long digits =
+-      a | (b << 24) | (static_cast<unsigned long long>(c) << 48);
+-  // Convert each value to BCD.
+-  // We have x = a * 10 + b and we want to convert it to BCD y = a * 16 + b.
+-  // The difference is
+-  //   y - x = a * 6
+-  // a can be found from x:
+-  //   a = floor(x / 10)
+-  // then
+-  //   y = x + a * 6 = x + floor(x / 10) * 6
+-  // floor(x / 10) is (x * 205) >> 11 (needs 16 bits).
+-  digits += (((digits * 205) >> 11) & 0x000f00000f00000f) * 6;
+-  // Put low nibbles to high bytes and high nibbles to low bytes.
+-  digits = ((digits & 0x00f00000f00000f0) >> 4) |
+-           ((digits & 0x000f00000f00000f) << 8);
+-  auto usep = static_cast<unsigned long long>(sep);
+-  // Add ASCII '0' to each digit byte and insert separators.
+-  digits |= 0x3030003030003030 | (usep << 16) | (usep << 40);
+-
+-  constexpr const size_t len = 8;
+-  if (const_check(is_big_endian())) {
+-    char tmp[len];
+-    memcpy(tmp, &digits, len);
+-    std::reverse_copy(tmp, tmp + len, buf);
+-  } else {
+-    memcpy(buf, &digits, len);
+-  }
+-}
+-
+-template <typename Period> FMT_CONSTEXPR inline const char* get_units() {
+-  if (std::is_same<Period, std::atto>::value) return "as";
+-  if (std::is_same<Period, std::femto>::value) return "fs";
+-  if (std::is_same<Period, std::pico>::value) return "ps";
+-  if (std::is_same<Period, std::nano>::value) return "ns";
+-  if (std::is_same<Period, std::micro>::value) return "µs";
+-  if (std::is_same<Period, std::milli>::value) return "ms";
+-  if (std::is_same<Period, std::centi>::value) return "cs";
+-  if (std::is_same<Period, std::deci>::value) return "ds";
+-  if (std::is_same<Period, std::ratio<1>>::value) return "s";
+-  if (std::is_same<Period, std::deca>::value) return "das";
+-  if (std::is_same<Period, std::hecto>::value) return "hs";
+-  if (std::is_same<Period, std::kilo>::value) return "ks";
+-  if (std::is_same<Period, std::mega>::value) return "Ms";
+-  if (std::is_same<Period, std::giga>::value) return "Gs";
+-  if (std::is_same<Period, std::tera>::value) return "Ts";
+-  if (std::is_same<Period, std::peta>::value) return "Ps";
+-  if (std::is_same<Period, std::exa>::value) return "Es";
+-  if (std::is_same<Period, std::ratio<60>>::value) return "m";
+-  if (std::is_same<Period, std::ratio<3600>>::value) return "h";
+-  return nullptr;
+-}
+-
+-enum class numeric_system {
+-  standard,
+-  // Alternative numeric system, e.g. 十二 instead of 12 in ja_JP locale.
+-  alternative
+-};
+-
+-// Parses a put_time-like format string and invokes handler actions.
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR const Char* parse_chrono_format(const Char* begin,
+-                                              const Char* end,
+-                                              Handler&& handler) {
+-  auto ptr = begin;
+-  while (ptr != end) {
+-    auto c = *ptr;
+-    if (c == '}') break;
+-    if (c != '%') {
+-      ++ptr;
+-      continue;
+-    }
+-    if (begin != ptr) handler.on_text(begin, ptr);
+-    ++ptr;  // consume '%'
+-    if (ptr == end) FMT_THROW(format_error("invalid format"));
+-    c = *ptr++;
+-    switch (c) {
+-    case '%':
+-      handler.on_text(ptr - 1, ptr);
+-      break;
+-    case 'n': {
+-      const Char newline[] = {'\n'};
+-      handler.on_text(newline, newline + 1);
+-      break;
+-    }
+-    case 't': {
+-      const Char tab[] = {'\t'};
+-      handler.on_text(tab, tab + 1);
+-      break;
+-    }
+-    // Year:
+-    case 'Y':
+-      handler.on_year(numeric_system::standard);
+-      break;
+-    case 'y':
+-      handler.on_short_year(numeric_system::standard);
+-      break;
+-    case 'C':
+-      handler.on_century(numeric_system::standard);
+-      break;
+-    case 'G':
+-      handler.on_iso_week_based_year();
+-      break;
+-    case 'g':
+-      handler.on_iso_week_based_short_year();
+-      break;
+-    // Day of the week:
+-    case 'a':
+-      handler.on_abbr_weekday();
+-      break;
+-    case 'A':
+-      handler.on_full_weekday();
+-      break;
+-    case 'w':
+-      handler.on_dec0_weekday(numeric_system::standard);
+-      break;
+-    case 'u':
+-      handler.on_dec1_weekday(numeric_system::standard);
+-      break;
+-    // Month:
+-    case 'b':
+-    case 'h':
+-      handler.on_abbr_month();
+-      break;
+-    case 'B':
+-      handler.on_full_month();
+-      break;
+-    case 'm':
+-      handler.on_dec_month(numeric_system::standard);
+-      break;
+-    // Day of the year/month:
+-    case 'U':
+-      handler.on_dec0_week_of_year(numeric_system::standard);
+-      break;
+-    case 'W':
+-      handler.on_dec1_week_of_year(numeric_system::standard);
+-      break;
+-    case 'V':
+-      handler.on_iso_week_of_year(numeric_system::standard);
+-      break;
+-    case 'j':
+-      handler.on_day_of_year();
+-      break;
+-    case 'd':
+-      handler.on_day_of_month(numeric_system::standard);
+-      break;
+-    case 'e':
+-      handler.on_day_of_month_space(numeric_system::standard);
+-      break;
+-    // Hour, minute, second:
+-    case 'H':
+-      handler.on_24_hour(numeric_system::standard);
+-      break;
+-    case 'I':
+-      handler.on_12_hour(numeric_system::standard);
+-      break;
+-    case 'M':
+-      handler.on_minute(numeric_system::standard);
+-      break;
+-    case 'S':
+-      handler.on_second(numeric_system::standard);
+-      break;
+-    // Other:
+-    case 'c':
+-      handler.on_datetime(numeric_system::standard);
+-      break;
+-    case 'x':
+-      handler.on_loc_date(numeric_system::standard);
+-      break;
+-    case 'X':
+-      handler.on_loc_time(numeric_system::standard);
+-      break;
+-    case 'D':
+-      handler.on_us_date();
+-      break;
+-    case 'F':
+-      handler.on_iso_date();
+-      break;
+-    case 'r':
+-      handler.on_12_hour_time();
+-      break;
+-    case 'R':
+-      handler.on_24_hour_time();
+-      break;
+-    case 'T':
+-      handler.on_iso_time();
+-      break;
+-    case 'p':
+-      handler.on_am_pm();
+-      break;
+-    case 'Q':
+-      handler.on_duration_value();
+-      break;
+-    case 'q':
+-      handler.on_duration_unit();
+-      break;
+-    case 'z':
+-      handler.on_utc_offset();
+-      break;
+-    case 'Z':
+-      handler.on_tz_name();
+-      break;
+-    // Alternative representation:
+-    case 'E': {
+-      if (ptr == end) FMT_THROW(format_error("invalid format"));
+-      c = *ptr++;
+-      switch (c) {
+-      case 'Y':
+-        handler.on_year(numeric_system::alternative);
+-        break;
+-      case 'y':
+-        handler.on_offset_year();
+-        break;
+-      case 'C':
+-        handler.on_century(numeric_system::alternative);
+-        break;
+-      case 'c':
+-        handler.on_datetime(numeric_system::alternative);
+-        break;
+-      case 'x':
+-        handler.on_loc_date(numeric_system::alternative);
+-        break;
+-      case 'X':
+-        handler.on_loc_time(numeric_system::alternative);
+-        break;
+-      default:
+-        FMT_THROW(format_error("invalid format"));
+-      }
+-      break;
+-    }
+-    case 'O':
+-      if (ptr == end) FMT_THROW(format_error("invalid format"));
+-      c = *ptr++;
+-      switch (c) {
+-      case 'y':
+-        handler.on_short_year(numeric_system::alternative);
+-        break;
+-      case 'm':
+-        handler.on_dec_month(numeric_system::alternative);
+-        break;
+-      case 'U':
+-        handler.on_dec0_week_of_year(numeric_system::alternative);
+-        break;
+-      case 'W':
+-        handler.on_dec1_week_of_year(numeric_system::alternative);
+-        break;
+-      case 'V':
+-        handler.on_iso_week_of_year(numeric_system::alternative);
+-        break;
+-      case 'd':
+-        handler.on_day_of_month(numeric_system::alternative);
+-        break;
+-      case 'e':
+-        handler.on_day_of_month_space(numeric_system::alternative);
+-        break;
+-      case 'w':
+-        handler.on_dec0_weekday(numeric_system::alternative);
+-        break;
+-      case 'u':
+-        handler.on_dec1_weekday(numeric_system::alternative);
+-        break;
+-      case 'H':
+-        handler.on_24_hour(numeric_system::alternative);
+-        break;
+-      case 'I':
+-        handler.on_12_hour(numeric_system::alternative);
+-        break;
+-      case 'M':
+-        handler.on_minute(numeric_system::alternative);
+-        break;
+-      case 'S':
+-        handler.on_second(numeric_system::alternative);
+-        break;
+-      default:
+-        FMT_THROW(format_error("invalid format"));
+-      }
+-      break;
+-    default:
+-      FMT_THROW(format_error("invalid format"));
+-    }
+-    begin = ptr;
+-  }
+-  if (begin != ptr) handler.on_text(begin, ptr);
+-  return ptr;
+-}
+-
+-template <typename Derived> struct null_chrono_spec_handler {
+-  FMT_CONSTEXPR void unsupported() {
+-    static_cast<Derived*>(this)->unsupported();
+-  }
+-  FMT_CONSTEXPR void on_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_short_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_offset_year() { unsupported(); }
+-  FMT_CONSTEXPR void on_century(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_week_based_year() { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_week_based_short_year() { unsupported(); }
+-  FMT_CONSTEXPR void on_abbr_weekday() { unsupported(); }
+-  FMT_CONSTEXPR void on_full_weekday() { unsupported(); }
+-  FMT_CONSTEXPR void on_dec0_weekday(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_dec1_weekday(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_abbr_month() { unsupported(); }
+-  FMT_CONSTEXPR void on_full_month() { unsupported(); }
+-  FMT_CONSTEXPR void on_dec_month(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_dec0_week_of_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_dec1_week_of_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_week_of_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_day_of_year() { unsupported(); }
+-  FMT_CONSTEXPR void on_day_of_month(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_day_of_month_space(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_24_hour(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_12_hour(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_minute(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_second(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_datetime(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_loc_date(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_loc_time(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_us_date() { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_date() { unsupported(); }
+-  FMT_CONSTEXPR void on_12_hour_time() { unsupported(); }
+-  FMT_CONSTEXPR void on_24_hour_time() { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_time() { unsupported(); }
+-  FMT_CONSTEXPR void on_am_pm() { unsupported(); }
+-  FMT_CONSTEXPR void on_duration_value() { unsupported(); }
+-  FMT_CONSTEXPR void on_duration_unit() { unsupported(); }
+-  FMT_CONSTEXPR void on_utc_offset() { unsupported(); }
+-  FMT_CONSTEXPR void on_tz_name() { unsupported(); }
+-};
+-
+-struct tm_format_checker : null_chrono_spec_handler<tm_format_checker> {
+-  FMT_NORETURN void unsupported() { FMT_THROW(format_error("no format")); }
+-
+-  template <typename Char>
+-  FMT_CONSTEXPR void on_text(const Char*, const Char*) {}
+-  FMT_CONSTEXPR void on_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_short_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_offset_year() {}
+-  FMT_CONSTEXPR void on_century(numeric_system) {}
+-  FMT_CONSTEXPR void on_iso_week_based_year() {}
+-  FMT_CONSTEXPR void on_iso_week_based_short_year() {}
+-  FMT_CONSTEXPR void on_abbr_weekday() {}
+-  FMT_CONSTEXPR void on_full_weekday() {}
+-  FMT_CONSTEXPR void on_dec0_weekday(numeric_system) {}
+-  FMT_CONSTEXPR void on_dec1_weekday(numeric_system) {}
+-  FMT_CONSTEXPR void on_abbr_month() {}
+-  FMT_CONSTEXPR void on_full_month() {}
+-  FMT_CONSTEXPR void on_dec_month(numeric_system) {}
+-  FMT_CONSTEXPR void on_dec0_week_of_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_dec1_week_of_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_iso_week_of_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_day_of_year() {}
+-  FMT_CONSTEXPR void on_day_of_month(numeric_system) {}
+-  FMT_CONSTEXPR void on_day_of_month_space(numeric_system) {}
+-  FMT_CONSTEXPR void on_24_hour(numeric_system) {}
+-  FMT_CONSTEXPR void on_12_hour(numeric_system) {}
+-  FMT_CONSTEXPR void on_minute(numeric_system) {}
+-  FMT_CONSTEXPR void on_second(numeric_system) {}
+-  FMT_CONSTEXPR void on_datetime(numeric_system) {}
+-  FMT_CONSTEXPR void on_loc_date(numeric_system) {}
+-  FMT_CONSTEXPR void on_loc_time(numeric_system) {}
+-  FMT_CONSTEXPR void on_us_date() {}
+-  FMT_CONSTEXPR void on_iso_date() {}
+-  FMT_CONSTEXPR void on_12_hour_time() {}
+-  FMT_CONSTEXPR void on_24_hour_time() {}
+-  FMT_CONSTEXPR void on_iso_time() {}
+-  FMT_CONSTEXPR void on_am_pm() {}
+-  FMT_CONSTEXPR void on_utc_offset() {}
+-  FMT_CONSTEXPR void on_tz_name() {}
+-};
+-
+-inline const char* tm_wday_full_name(int wday) {
+-  static constexpr const char* full_name_list[] = {
+-      "Sunday",   "Monday", "Tuesday", "Wednesday",
+-      "Thursday", "Friday", "Saturday"};
+-  return wday >= 0 && wday <= 6 ? full_name_list[wday] : "?";
+-}
+-inline const char* tm_wday_short_name(int wday) {
+-  static constexpr const char* short_name_list[] = {"Sun", "Mon", "Tue", "Wed",
+-                                                    "Thu", "Fri", "Sat"};
+-  return wday >= 0 && wday <= 6 ? short_name_list[wday] : "???";
+-}
+-
+-inline const char* tm_mon_full_name(int mon) {
+-  static constexpr const char* full_name_list[] = {
+-      "January", "February", "March",     "April",   "May",      "June",
+-      "July",    "August",   "September", "October", "November", "December"};
+-  return mon >= 0 && mon <= 11 ? full_name_list[mon] : "?";
+-}
+-inline const char* tm_mon_short_name(int mon) {
+-  static constexpr const char* short_name_list[] = {
+-      "Jan", "Feb", "Mar", "Apr", "May", "Jun",
+-      "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
+-  };
+-  return mon >= 0 && mon <= 11 ? short_name_list[mon] : "???";
+-}
+-
+-template <typename T, typename = void>
+-struct has_member_data_tm_gmtoff : std::false_type {};
+-template <typename T>
+-struct has_member_data_tm_gmtoff<T, void_t<decltype(T::tm_gmtoff)>>
+-    : std::true_type {};
+-
+-template <typename T, typename = void>
+-struct has_member_data_tm_zone : std::false_type {};
+-template <typename T>
+-struct has_member_data_tm_zone<T, void_t<decltype(T::tm_zone)>>
+-    : std::true_type {};
+-
+-#if FMT_USE_TZSET
+-inline void tzset_once() {
+-  static bool init = []() -> bool {
+-    _tzset();
+-    return true;
+-  }();
+-  ignore_unused(init);
+-}
+-#endif
+-
+-template <typename OutputIt, typename Char> class tm_writer {
+- private:
+-  static constexpr int days_per_week = 7;
+-
+-  const std::locale& loc_;
+-  const bool is_classic_;
+-  OutputIt out_;
+-  const std::tm& tm_;
+-
+-  auto tm_sec() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_sec >= 0 && tm_.tm_sec <= 61, "");
+-    return tm_.tm_sec;
+-  }
+-  auto tm_min() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_min >= 0 && tm_.tm_min <= 59, "");
+-    return tm_.tm_min;
+-  }
+-  auto tm_hour() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_hour >= 0 && tm_.tm_hour <= 23, "");
+-    return tm_.tm_hour;
+-  }
+-  auto tm_mday() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_mday >= 1 && tm_.tm_mday <= 31, "");
+-    return tm_.tm_mday;
+-  }
+-  auto tm_mon() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_mon >= 0 && tm_.tm_mon <= 11, "");
+-    return tm_.tm_mon;
+-  }
+-  auto tm_year() const noexcept -> long long { return 1900ll + tm_.tm_year; }
+-  auto tm_wday() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_wday >= 0 && tm_.tm_wday <= 6, "");
+-    return tm_.tm_wday;
+-  }
+-  auto tm_yday() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_yday >= 0 && tm_.tm_yday <= 365, "");
+-    return tm_.tm_yday;
+-  }
+-
+-  auto tm_hour12() const noexcept -> int {
+-    const auto h = tm_hour();
+-    const auto z = h < 12 ? h : h - 12;
+-    return z == 0 ? 12 : z;
+-  }
+-
+-  // POSIX and the C Standard are unclear or inconsistent about what %C and %y
+-  // do if the year is negative or exceeds 9999. Use the convention that %C
+-  // concatenated with %y yields the same output as %Y, and that %Y contains at
+-  // least 4 characters, with more only if necessary.
+-  auto split_year_lower(long long year) const noexcept -> int {
+-    auto l = year % 100;
+-    if (l < 0) l = -l;  // l in [0, 99]
+-    return static_cast<int>(l);
+-  }
+-
+-  // Algorithm:
+-  // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_the_week_number_from_a_month_and_day_of_the_month_or_ordinal_date
+-  auto iso_year_weeks(long long curr_year) const noexcept -> int {
+-    const auto prev_year = curr_year - 1;
+-    const auto curr_p =
+-        (curr_year + curr_year / 4 - curr_year / 100 + curr_year / 400) %
+-        days_per_week;
+-    const auto prev_p =
+-        (prev_year + prev_year / 4 - prev_year / 100 + prev_year / 400) %
+-        days_per_week;
+-    return 52 + ((curr_p == 4 || prev_p == 3) ? 1 : 0);
+-  }
+-  auto iso_week_num(int tm_yday, int tm_wday) const noexcept -> int {
+-    return (tm_yday + 11 - (tm_wday == 0 ? days_per_week : tm_wday)) /
+-           days_per_week;
+-  }
+-  auto tm_iso_week_year() const noexcept -> long long {
+-    const auto year = tm_year();
+-    const auto w = iso_week_num(tm_yday(), tm_wday());
+-    if (w < 1) return year - 1;
+-    if (w > iso_year_weeks(year)) return year + 1;
+-    return year;
+-  }
+-  auto tm_iso_week_of_year() const noexcept -> int {
+-    const auto year = tm_year();
+-    const auto w = iso_week_num(tm_yday(), tm_wday());
+-    if (w < 1) return iso_year_weeks(year - 1);
+-    if (w > iso_year_weeks(year)) return 1;
+-    return w;
+-  }
+-
+-  void write1(int value) {
+-    *out_++ = static_cast<char>('0' + to_unsigned(value) % 10);
+-  }
+-  void write2(int value) {
+-    const char* d = digits2(to_unsigned(value) % 100);
+-    *out_++ = *d++;
+-    *out_++ = *d;
+-  }
+-
+-  void write_year_extended(long long year) {
+-    // At least 4 characters.
+-    int width = 4;
+-    if (year < 0) {
+-      *out_++ = '-';
+-      year = 0 - year;
+-      --width;
+-    }
+-    uint32_or_64_or_128_t<long long> n = to_unsigned(year);
+-    const int num_digits = count_digits(n);
+-    if (width > num_digits) out_ = std::fill_n(out_, width - num_digits, '0');
+-    out_ = format_decimal<Char>(out_, n, num_digits).end;
+-  }
+-  void write_year(long long year) {
+-    if (year >= 0 && year < 10000) {
+-      write2(static_cast<int>(year / 100));
+-      write2(static_cast<int>(year % 100));
+-    } else {
+-      write_year_extended(year);
+-    }
+-  }
+-
+-  void write_utc_offset(long offset) {
+-    if (offset < 0) {
+-      *out_++ = '-';
+-      offset = -offset;
+-    } else {
+-      *out_++ = '+';
+-    }
+-    offset /= 60;
+-    write2(static_cast<int>(offset / 60));
+-    write2(static_cast<int>(offset % 60));
+-  }
+-  template <typename T, FMT_ENABLE_IF(has_member_data_tm_gmtoff<T>::value)>
+-  void format_utc_offset_impl(const T& tm) {
+-    write_utc_offset(tm.tm_gmtoff);
+-  }
+-  template <typename T, FMT_ENABLE_IF(!has_member_data_tm_gmtoff<T>::value)>
+-  void format_utc_offset_impl(const T& tm) {
+-#if defined(_WIN32) && defined(_UCRT)
+-#  if FMT_USE_TZSET
+-    tzset_once();
+-#  endif
+-    long offset = 0;
+-    _get_timezone(&offset);
+-    if (tm.tm_isdst) {
+-      long dstbias = 0;
+-      _get_dstbias(&dstbias);
+-      offset += dstbias;
+-    }
+-    write_utc_offset(-offset);
+-#else
+-    ignore_unused(tm);
+-    format_localized('z');
+-#endif
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(has_member_data_tm_zone<T>::value)>
+-  void format_tz_name_impl(const T& tm) {
+-    if (is_classic_)
+-      out_ = write_tm_str<Char>(out_, tm.tm_zone, loc_);
+-    else
+-      format_localized('Z');
+-  }
+-  template <typename T, FMT_ENABLE_IF(!has_member_data_tm_zone<T>::value)>
+-  void format_tz_name_impl(const T&) {
+-    format_localized('Z');
+-  }
+-
+-  void format_localized(char format, char modifier = 0) {
+-    out_ = write<Char>(out_, tm_, loc_, format, modifier);
+-  }
+-
+- public:
+-  tm_writer(const std::locale& loc, OutputIt out, const std::tm& tm)
+-      : loc_(loc),
+-        is_classic_(loc_ == get_classic_locale()),
+-        out_(out),
+-        tm_(tm) {}
+-
+-  OutputIt out() const { return out_; }
+-
+-  FMT_CONSTEXPR void on_text(const Char* begin, const Char* end) {
+-    out_ = copy_str<Char>(begin, end, out_);
+-  }
+-
+-  void on_abbr_weekday() {
+-    if (is_classic_)
+-      out_ = write(out_, tm_wday_short_name(tm_wday()));
+-    else
+-      format_localized('a');
+-  }
+-  void on_full_weekday() {
+-    if (is_classic_)
+-      out_ = write(out_, tm_wday_full_name(tm_wday()));
+-    else
+-      format_localized('A');
+-  }
+-  void on_dec0_weekday(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write1(tm_wday());
+-    format_localized('w', 'O');
+-  }
+-  void on_dec1_weekday(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) {
+-      auto wday = tm_wday();
+-      write1(wday == 0 ? days_per_week : wday);
+-    } else {
+-      format_localized('u', 'O');
+-    }
+-  }
+-
+-  void on_abbr_month() {
+-    if (is_classic_)
+-      out_ = write(out_, tm_mon_short_name(tm_mon()));
+-    else
+-      format_localized('b');
+-  }
+-  void on_full_month() {
+-    if (is_classic_)
+-      out_ = write(out_, tm_mon_full_name(tm_mon()));
+-    else
+-      format_localized('B');
+-  }
+-
+-  void on_datetime(numeric_system ns) {
+-    if (is_classic_) {
+-      on_abbr_weekday();
+-      *out_++ = ' ';
+-      on_abbr_month();
+-      *out_++ = ' ';
+-      on_day_of_month_space(numeric_system::standard);
+-      *out_++ = ' ';
+-      on_iso_time();
+-      *out_++ = ' ';
+-      on_year(numeric_system::standard);
+-    } else {
+-      format_localized('c', ns == numeric_system::standard ? '\0' : 'E');
+-    }
+-  }
+-  void on_loc_date(numeric_system ns) {
+-    if (is_classic_)
+-      on_us_date();
+-    else
+-      format_localized('x', ns == numeric_system::standard ? '\0' : 'E');
+-  }
+-  void on_loc_time(numeric_system ns) {
+-    if (is_classic_)
+-      on_iso_time();
+-    else
+-      format_localized('X', ns == numeric_system::standard ? '\0' : 'E');
+-  }
+-  void on_us_date() {
+-    char buf[8];
+-    write_digit2_separated(buf, to_unsigned(tm_mon() + 1),
+-                           to_unsigned(tm_mday()),
+-                           to_unsigned(split_year_lower(tm_year())), '/');
+-    out_ = copy_str<Char>(std::begin(buf), std::end(buf), out_);
+-  }
+-  void on_iso_date() {
+-    auto year = tm_year();
+-    char buf[10];
+-    size_t offset = 0;
+-    if (year >= 0 && year < 10000) {
+-      copy2(buf, digits2(to_unsigned(year / 100)));
+-    } else {
+-      offset = 4;
+-      write_year_extended(year);
+-      year = 0;
+-    }
+-    write_digit2_separated(buf + 2, static_cast<unsigned>(year % 100),
+-                           to_unsigned(tm_mon() + 1), to_unsigned(tm_mday()),
+-                           '-');
+-    out_ = copy_str<Char>(std::begin(buf) + offset, std::end(buf), out_);
+-  }
+-
+-  void on_utc_offset() { format_utc_offset_impl(tm_); }
+-  void on_tz_name() { format_tz_name_impl(tm_); }
+-
+-  void on_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write_year(tm_year());
+-    format_localized('Y', 'E');
+-  }
+-  void on_short_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2(split_year_lower(tm_year()));
+-    format_localized('y', 'O');
+-  }
+-  void on_offset_year() {
+-    if (is_classic_) return write2(split_year_lower(tm_year()));
+-    format_localized('y', 'E');
+-  }
+-
+-  void on_century(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) {
+-      auto year = tm_year();
+-      auto upper = year / 100;
+-      if (year >= -99 && year < 0) {
+-        // Zero upper on negative year.
+-        *out_++ = '-';
+-        *out_++ = '0';
+-      } else if (upper >= 0 && upper < 100) {
+-        write2(static_cast<int>(upper));
+-      } else {
+-        out_ = write<Char>(out_, upper);
+-      }
+-    } else {
+-      format_localized('C', 'E');
+-    }
+-  }
+-
+-  void on_dec_month(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2(tm_mon() + 1);
+-    format_localized('m', 'O');
+-  }
+-
+-  void on_dec0_week_of_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2((tm_yday() + days_per_week - tm_wday()) / days_per_week);
+-    format_localized('U', 'O');
+-  }
+-  void on_dec1_week_of_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) {
+-      auto wday = tm_wday();
+-      write2((tm_yday() + days_per_week -
+-              (wday == 0 ? (days_per_week - 1) : (wday - 1))) /
+-             days_per_week);
+-    } else {
+-      format_localized('W', 'O');
+-    }
+-  }
+-  void on_iso_week_of_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2(tm_iso_week_of_year());
+-    format_localized('V', 'O');
+-  }
+-
+-  void on_iso_week_based_year() { write_year(tm_iso_week_year()); }
+-  void on_iso_week_based_short_year() {
+-    write2(split_year_lower(tm_iso_week_year()));
+-  }
+-
+-  void on_day_of_year() {
+-    auto yday = tm_yday() + 1;
+-    write1(yday / 100);
+-    write2(yday % 100);
+-  }
+-  void on_day_of_month(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write2(tm_mday());
+-    format_localized('d', 'O');
+-  }
+-  void on_day_of_month_space(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) {
+-      auto mday = to_unsigned(tm_mday()) % 100;
+-      const char* d2 = digits2(mday);
+-      *out_++ = mday < 10 ? ' ' : d2[0];
+-      *out_++ = d2[1];
+-    } else {
+-      format_localized('e', 'O');
+-    }
+-  }
+-
+-  void on_24_hour(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write2(tm_hour());
+-    format_localized('H', 'O');
+-  }
+-  void on_12_hour(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2(tm_hour12());
+-    format_localized('I', 'O');
+-  }
+-  void on_minute(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write2(tm_min());
+-    format_localized('M', 'O');
+-  }
+-  void on_second(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write2(tm_sec());
+-    format_localized('S', 'O');
+-  }
+-
+-  void on_12_hour_time() {
+-    if (is_classic_) {
+-      char buf[8];
+-      write_digit2_separated(buf, to_unsigned(tm_hour12()),
+-                             to_unsigned(tm_min()), to_unsigned(tm_sec()), ':');
+-      out_ = copy_str<Char>(std::begin(buf), std::end(buf), out_);
+-      *out_++ = ' ';
+-      on_am_pm();
+-    } else {
+-      format_localized('r');
+-    }
+-  }
+-  void on_24_hour_time() {
+-    write2(tm_hour());
+-    *out_++ = ':';
+-    write2(tm_min());
+-  }
+-  void on_iso_time() {
+-    char buf[8];
+-    write_digit2_separated(buf, to_unsigned(tm_hour()), to_unsigned(tm_min()),
+-                           to_unsigned(tm_sec()), ':');
+-    out_ = copy_str<Char>(std::begin(buf), std::end(buf), out_);
+-  }
+-
+-  void on_am_pm() {
+-    if (is_classic_) {
+-      *out_++ = tm_hour() < 12 ? 'A' : 'P';
+-      *out_++ = 'M';
+-    } else {
+-      format_localized('p');
+-    }
+-  }
+-
+-  // These apply to chrono durations but not tm.
+-  void on_duration_value() {}
+-  void on_duration_unit() {}
+-};
+-
+-struct chrono_format_checker : null_chrono_spec_handler<chrono_format_checker> {
+-  FMT_NORETURN void unsupported() { FMT_THROW(format_error("no date")); }
+-
+-  template <typename Char>
+-  FMT_CONSTEXPR void on_text(const Char*, const Char*) {}
+-  FMT_CONSTEXPR void on_24_hour(numeric_system) {}
+-  FMT_CONSTEXPR void on_12_hour(numeric_system) {}
+-  FMT_CONSTEXPR void on_minute(numeric_system) {}
+-  FMT_CONSTEXPR void on_second(numeric_system) {}
+-  FMT_CONSTEXPR void on_12_hour_time() {}
+-  FMT_CONSTEXPR void on_24_hour_time() {}
+-  FMT_CONSTEXPR void on_iso_time() {}
+-  FMT_CONSTEXPR void on_am_pm() {}
+-  FMT_CONSTEXPR void on_duration_value() {}
+-  FMT_CONSTEXPR void on_duration_unit() {}
+-};
+-
+-template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-inline bool isnan(T) {
+-  return false;
+-}
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-inline bool isnan(T value) {
+-  return std::isnan(value);
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-inline bool isfinite(T) {
+-  return true;
+-}
+-
+-// Converts value to Int and checks that it's in the range [0, upper).
+-template <typename T, typename Int, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-inline Int to_nonnegative_int(T value, Int upper) {
+-  FMT_ASSERT(value >= 0 && to_unsigned(value) <= to_unsigned(upper),
+-             "invalid value");
+-  (void)upper;
+-  return static_cast<Int>(value);
+-}
+-template <typename T, typename Int, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-inline Int to_nonnegative_int(T value, Int upper) {
+-  if (value < 0 || value > static_cast<T>(upper))
+-    FMT_THROW(format_error("invalid value"));
+-  return static_cast<Int>(value);
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-inline T mod(T x, int y) {
+-  return x % static_cast<T>(y);
+-}
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-inline T mod(T x, int y) {
+-  return std::fmod(x, static_cast<T>(y));
+-}
+-
+-// If T is an integral type, maps T to its unsigned counterpart, otherwise
+-// leaves it unchanged (unlike std::make_unsigned).
+-template <typename T, bool INTEGRAL = std::is_integral<T>::value>
+-struct make_unsigned_or_unchanged {
+-  using type = T;
+-};
+-
+-template <typename T> struct make_unsigned_or_unchanged<T, true> {
+-  using type = typename std::make_unsigned<T>::type;
+-};
+-
+-#if FMT_SAFE_DURATION_CAST
+-// throwing version of safe_duration_cast
+-template <typename To, typename FromRep, typename FromPeriod>
+-To fmt_safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from) {
+-  int ec;
+-  To to = safe_duration_cast::safe_duration_cast<To>(from, ec);
+-  if (ec) FMT_THROW(format_error("cannot format duration"));
+-  return to;
+-}
+-#endif
+-
+-template <typename Rep, typename Period,
+-          FMT_ENABLE_IF(std::is_integral<Rep>::value)>
+-inline std::chrono::duration<Rep, std::milli> get_milliseconds(
+-    std::chrono::duration<Rep, Period> d) {
+-  // this may overflow and/or the result may not fit in the
+-  // target type.
+-#if FMT_SAFE_DURATION_CAST
+-  using CommonSecondsType =
+-      typename std::common_type<decltype(d), std::chrono::seconds>::type;
+-  const auto d_as_common = fmt_safe_duration_cast<CommonSecondsType>(d);
+-  const auto d_as_whole_seconds =
+-      fmt_safe_duration_cast<std::chrono::seconds>(d_as_common);
+-  // this conversion should be nonproblematic
+-  const auto diff = d_as_common - d_as_whole_seconds;
+-  const auto ms =
+-      fmt_safe_duration_cast<std::chrono::duration<Rep, std::milli>>(diff);
+-  return ms;
+-#else
+-  auto s = std::chrono::duration_cast<std::chrono::seconds>(d);
+-  return std::chrono::duration_cast<std::chrono::milliseconds>(d - s);
+-#endif
+-}
+-
+-// Returns the number of fractional digits in the range [0, 18] according to the
+-// C++20 spec. If more than 18 fractional digits are required then returns 6 for
+-// microseconds precision.
+-constexpr int count_fractional_digits(long long num, long long den, int n = 0) {
+-  return num % den == 0
+-             ? n
+-             : (n > 18 ? 6 : count_fractional_digits(num * 10, den, n + 1));
+-}
+-
+-constexpr long long pow10(std::uint32_t n) {
+-  return n == 0 ? 1 : 10 * pow10(n - 1);
+-}
+-
+-template <class Rep, class Period,
+-          FMT_ENABLE_IF(std::numeric_limits<Rep>::is_signed)>
+-constexpr std::chrono::duration<Rep, Period> abs(
+-    std::chrono::duration<Rep, Period> d) {
+-  // We need to compare the duration using the count() method directly
+-  // due to a compiler bug in clang-11 regarding the spaceship operator,
+-  // when -Wzero-as-null-pointer-constant is enabled.
+-  // In clang-12 the bug has been fixed. See
+-  // https://bugs.llvm.org/show_bug.cgi?id=46235 and the reproducible example:
+-  // https://www.godbolt.org/z/Knbb5joYx.
+-  return d.count() >= d.zero().count() ? d : -d;
+-}
+-
+-template <class Rep, class Period,
+-          FMT_ENABLE_IF(!std::numeric_limits<Rep>::is_signed)>
+-constexpr std::chrono::duration<Rep, Period> abs(
+-    std::chrono::duration<Rep, Period> d) {
+-  return d;
+-}
+-
+-template <typename Char, typename Rep, typename OutputIt,
+-          FMT_ENABLE_IF(std::is_integral<Rep>::value)>
+-OutputIt format_duration_value(OutputIt out, Rep val, int) {
+-  return write<Char>(out, val);
+-}
+-
+-template <typename Char, typename Rep, typename OutputIt,
+-          FMT_ENABLE_IF(std::is_floating_point<Rep>::value)>
+-OutputIt format_duration_value(OutputIt out, Rep val, int precision) {
+-  auto specs = basic_format_specs<Char>();
+-  specs.precision = precision;
+-  specs.type = precision >= 0 ? presentation_type::fixed_lower
+-                              : presentation_type::general_lower;
+-  return write<Char>(out, val, specs);
+-}
+-
+-template <typename Char, typename OutputIt>
+-OutputIt copy_unit(string_view unit, OutputIt out, Char) {
+-  return std::copy(unit.begin(), unit.end(), out);
+-}
+-
+-template <typename OutputIt>
+-OutputIt copy_unit(string_view unit, OutputIt out, wchar_t) {
+-  // This works when wchar_t is UTF-32 because units only contain characters
+-  // that have the same representation in UTF-16 and UTF-32.
+-  utf8_to_utf16 u(unit);
+-  return std::copy(u.c_str(), u.c_str() + u.size(), out);
+-}
+-
+-template <typename Char, typename Period, typename OutputIt>
+-OutputIt format_duration_unit(OutputIt out) {
+-  if (const char* unit = get_units<Period>())
+-    return copy_unit(string_view(unit), out, Char());
+-  *out++ = '[';
+-  out = write<Char>(out, Period::num);
+-  if (const_check(Period::den != 1)) {
+-    *out++ = '/';
+-    out = write<Char>(out, Period::den);
+-  }
+-  *out++ = ']';
+-  *out++ = 's';
+-  return out;
+-}
+-
+-class get_locale {
+- private:
+-  union {
+-    std::locale locale_;
+-  };
+-  bool has_locale_ = false;
+-
+- public:
+-  get_locale(bool localized, locale_ref loc) : has_locale_(localized) {
+-    if (localized)
+-      ::new (&locale_) std::locale(loc.template get<std::locale>());
+-  }
+-  ~get_locale() {
+-    if (has_locale_) locale_.~locale();
+-  }
+-  operator const std::locale&() const {
+-    return has_locale_ ? locale_ : get_classic_locale();
+-  }
+-};
+-
+-template <typename FormatContext, typename OutputIt, typename Rep,
+-          typename Period>
+-struct chrono_formatter {
+-  FormatContext& context;
+-  OutputIt out;
+-  int precision;
+-  bool localized = false;
+-  // rep is unsigned to avoid overflow.
+-  using rep =
+-      conditional_t<std::is_integral<Rep>::value && sizeof(Rep) < sizeof(int),
+-                    unsigned, typename make_unsigned_or_unchanged<Rep>::type>;
+-  rep val;
+-  using seconds = std::chrono::duration<rep>;
+-  seconds s;
+-  using milliseconds = std::chrono::duration<rep, std::milli>;
+-  bool negative;
+-
+-  using char_type = typename FormatContext::char_type;
+-  using tm_writer_type = tm_writer<OutputIt, char_type>;
+-
+-  chrono_formatter(FormatContext& ctx, OutputIt o,
+-                   std::chrono::duration<Rep, Period> d)
+-      : context(ctx),
+-        out(o),
+-        val(static_cast<rep>(d.count())),
+-        negative(false) {
+-    if (d.count() < 0) {
+-      val = 0 - val;
+-      negative = true;
+-    }
+-
+-    // this may overflow and/or the result may not fit in the
+-    // target type.
+-#if FMT_SAFE_DURATION_CAST
+-    // might need checked conversion (rep!=Rep)
+-    auto tmpval = std::chrono::duration<rep, Period>(val);
+-    s = fmt_safe_duration_cast<seconds>(tmpval);
+-#else
+-    s = std::chrono::duration_cast<seconds>(
+-        std::chrono::duration<rep, Period>(val));
+-#endif
+-  }
+-
+-  // returns true if nan or inf, writes to out.
+-  bool handle_nan_inf() {
+-    if (isfinite(val)) {
+-      return false;
+-    }
+-    if (isnan(val)) {
+-      write_nan();
+-      return true;
+-    }
+-    // must be +-inf
+-    if (val > 0) {
+-      write_pinf();
+-    } else {
+-      write_ninf();
+-    }
+-    return true;
+-  }
+-
+-  Rep hour() const { return static_cast<Rep>(mod((s.count() / 3600), 24)); }
+-
+-  Rep hour12() const {
+-    Rep hour = static_cast<Rep>(mod((s.count() / 3600), 12));
+-    return hour <= 0 ? 12 : hour;
+-  }
+-
+-  Rep minute() const { return static_cast<Rep>(mod((s.count() / 60), 60)); }
+-  Rep second() const { return static_cast<Rep>(mod(s.count(), 60)); }
+-
+-  std::tm time() const {
+-    auto time = std::tm();
+-    time.tm_hour = to_nonnegative_int(hour(), 24);
+-    time.tm_min = to_nonnegative_int(minute(), 60);
+-    time.tm_sec = to_nonnegative_int(second(), 60);
+-    return time;
+-  }
+-
+-  void write_sign() {
+-    if (negative) {
+-      *out++ = '-';
+-      negative = false;
+-    }
+-  }
+-
+-  void write(Rep value, int width) {
+-    write_sign();
+-    if (isnan(value)) return write_nan();
+-    uint32_or_64_or_128_t<int> n =
+-        to_unsigned(to_nonnegative_int(value, max_value<int>()));
+-    int num_digits = detail::count_digits(n);
+-    if (width > num_digits) out = std::fill_n(out, width - num_digits, '0');
+-    out = format_decimal<char_type>(out, n, num_digits).end;
+-  }
+-
+-  template <class Duration> void write_fractional_seconds(Duration d) {
+-    constexpr auto num_fractional_digits =
+-        count_fractional_digits(Duration::period::num, Duration::period::den);
+-
+-    using subsecond_precision = std::chrono::duration<
+-        typename std::common_type<typename Duration::rep,
+-                                  std::chrono::seconds::rep>::type,
+-        std::ratio<1, detail::pow10(num_fractional_digits)>>;
+-    if (std::ratio_less<typename subsecond_precision::period,
+-                        std::chrono::seconds::period>::value) {
+-      *out++ = '.';
+-      // Don't convert long double to integer seconds to avoid overflow.
+-      using sec = conditional_t<
+-          std::is_same<typename Duration::rep, long double>::value,
+-          std::chrono::duration<long double>, std::chrono::seconds>;
+-      auto fractional = detail::abs(d) - std::chrono::duration_cast<sec>(d);
+-      const auto subseconds =
+-          std::chrono::treat_as_floating_point<
+-              typename subsecond_precision::rep>::value
+-              ? fractional.count()
+-              : std::chrono::duration_cast<subsecond_precision>(fractional)
+-                    .count();
+-      uint32_or_64_or_128_t<long long> n =
+-          to_unsigned(to_nonnegative_int(subseconds, max_value<long long>()));
+-      int num_digits = detail::count_digits(n);
+-      if (num_fractional_digits > num_digits)
+-        out = std::fill_n(out, num_fractional_digits - num_digits, '0');
+-      out = format_decimal<char_type>(out, n, num_digits).end;
+-    }
+-  }
+-
+-  void write_nan() { std::copy_n("nan", 3, out); }
+-  void write_pinf() { std::copy_n("inf", 3, out); }
+-  void write_ninf() { std::copy_n("-inf", 4, out); }
+-
+-  template <typename Callback, typename... Args>
+-  void format_tm(const tm& time, Callback cb, Args... args) {
+-    if (isnan(val)) return write_nan();
+-    get_locale loc(localized, context.locale());
+-    auto w = tm_writer_type(loc, out, time);
+-    (w.*cb)(args...);
+-    out = w.out();
+-  }
+-
+-  void on_text(const char_type* begin, const char_type* end) {
+-    std::copy(begin, end, out);
+-  }
+-
+-  // These are not implemented because durations don't have date information.
+-  void on_abbr_weekday() {}
+-  void on_full_weekday() {}
+-  void on_dec0_weekday(numeric_system) {}
+-  void on_dec1_weekday(numeric_system) {}
+-  void on_abbr_month() {}
+-  void on_full_month() {}
+-  void on_datetime(numeric_system) {}
+-  void on_loc_date(numeric_system) {}
+-  void on_loc_time(numeric_system) {}
+-  void on_us_date() {}
+-  void on_iso_date() {}
+-  void on_utc_offset() {}
+-  void on_tz_name() {}
+-  void on_year(numeric_system) {}
+-  void on_short_year(numeric_system) {}
+-  void on_offset_year() {}
+-  void on_century(numeric_system) {}
+-  void on_iso_week_based_year() {}
+-  void on_iso_week_based_short_year() {}
+-  void on_dec_month(numeric_system) {}
+-  void on_dec0_week_of_year(numeric_system) {}
+-  void on_dec1_week_of_year(numeric_system) {}
+-  void on_iso_week_of_year(numeric_system) {}
+-  void on_day_of_year() {}
+-  void on_day_of_month(numeric_system) {}
+-  void on_day_of_month_space(numeric_system) {}
+-
+-  void on_24_hour(numeric_system ns) {
+-    if (handle_nan_inf()) return;
+-
+-    if (ns == numeric_system::standard) return write(hour(), 2);
+-    auto time = tm();
+-    time.tm_hour = to_nonnegative_int(hour(), 24);
+-    format_tm(time, &tm_writer_type::on_24_hour, ns);
+-  }
+-
+-  void on_12_hour(numeric_system ns) {
+-    if (handle_nan_inf()) return;
+-
+-    if (ns == numeric_system::standard) return write(hour12(), 2);
+-    auto time = tm();
+-    time.tm_hour = to_nonnegative_int(hour12(), 12);
+-    format_tm(time, &tm_writer_type::on_12_hour, ns);
+-  }
+-
+-  void on_minute(numeric_system ns) {
+-    if (handle_nan_inf()) return;
+-
+-    if (ns == numeric_system::standard) return write(minute(), 2);
+-    auto time = tm();
+-    time.tm_min = to_nonnegative_int(minute(), 60);
+-    format_tm(time, &tm_writer_type::on_minute, ns);
+-  }
+-
+-  void on_second(numeric_system ns) {
+-    if (handle_nan_inf()) return;
+-
+-    if (ns == numeric_system::standard) {
+-      write(second(), 2);
+-      write_fractional_seconds(std::chrono::duration<rep, Period>{val});
+-      return;
+-    }
+-    auto time = tm();
+-    time.tm_sec = to_nonnegative_int(second(), 60);
+-    format_tm(time, &tm_writer_type::on_second, ns);
+-  }
+-
+-  void on_12_hour_time() {
+-    if (handle_nan_inf()) return;
+-    format_tm(time(), &tm_writer_type::on_12_hour_time);
+-  }
+-
+-  void on_24_hour_time() {
+-    if (handle_nan_inf()) {
+-      *out++ = ':';
+-      handle_nan_inf();
+-      return;
+-    }
+-
+-    write(hour(), 2);
+-    *out++ = ':';
+-    write(minute(), 2);
+-  }
+-
+-  void on_iso_time() {
+-    on_24_hour_time();
+-    *out++ = ':';
+-    if (handle_nan_inf()) return;
+-    on_second(numeric_system::standard);
+-  }
+-
+-  void on_am_pm() {
+-    if (handle_nan_inf()) return;
+-    format_tm(time(), &tm_writer_type::on_am_pm);
+-  }
+-
+-  void on_duration_value() {
+-    if (handle_nan_inf()) return;
+-    write_sign();
+-    out = format_duration_value<char_type>(out, val, precision);
+-  }
+-
+-  void on_duration_unit() {
+-    out = format_duration_unit<char_type, Period>(out);
+-  }
+-};
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-#if defined(__cpp_lib_chrono) && __cpp_lib_chrono >= 201907
+-using weekday = std::chrono::weekday;
+-#else
+-// A fallback version of weekday.
+-class weekday {
+- private:
+-  unsigned char value;
+-
+- public:
+-  weekday() = default;
+-  explicit constexpr weekday(unsigned wd) noexcept
+-      : value(static_cast<unsigned char>(wd != 7 ? wd : 0)) {}
+-  constexpr unsigned c_encoding() const noexcept { return value; }
+-};
+-
+-class year_month_day {};
+-#endif
+-
+-// A rudimentary weekday formatter.
+-template <typename Char> struct formatter<weekday, Char> {
+- private:
+-  bool localized = false;
+-
+- public:
+-  FMT_CONSTEXPR auto parse(basic_format_parse_context<Char>& ctx)
+-      -> decltype(ctx.begin()) {
+-    auto begin = ctx.begin(), end = ctx.end();
+-    if (begin != end && *begin == 'L') {
+-      ++begin;
+-      localized = true;
+-    }
+-    return begin;
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(weekday wd, FormatContext& ctx) const -> decltype(ctx.out()) {
+-    auto time = std::tm();
+-    time.tm_wday = static_cast<int>(wd.c_encoding());
+-    detail::get_locale loc(localized, ctx.locale());
+-    auto w = detail::tm_writer<decltype(ctx.out()), Char>(loc, ctx.out(), time);
+-    w.on_abbr_weekday();
+-    return w.out();
+-  }
+-};
+-
+-template <typename Rep, typename Period, typename Char>
+-struct formatter<std::chrono::duration<Rep, Period>, Char> {
+- private:
+-  basic_format_specs<Char> specs;
+-  int precision = -1;
+-  using arg_ref_type = detail::arg_ref<Char>;
+-  arg_ref_type width_ref;
+-  arg_ref_type precision_ref;
+-  bool localized = false;
+-  basic_string_view<Char> format_str;
+-  using duration = std::chrono::duration<Rep, Period>;
+-
+-  struct spec_handler {
+-    formatter& f;
+-    basic_format_parse_context<Char>& context;
+-    basic_string_view<Char> format_str;
+-
+-    template <typename Id> FMT_CONSTEXPR arg_ref_type make_arg_ref(Id arg_id) {
+-      context.check_arg_id(arg_id);
+-      return arg_ref_type(arg_id);
+-    }
+-
+-    FMT_CONSTEXPR arg_ref_type make_arg_ref(basic_string_view<Char> arg_id) {
+-      context.check_arg_id(arg_id);
+-      return arg_ref_type(arg_id);
+-    }
+-
+-    FMT_CONSTEXPR arg_ref_type make_arg_ref(detail::auto_id) {
+-      return arg_ref_type(context.next_arg_id());
+-    }
+-
+-    void on_error(const char* msg) { FMT_THROW(format_error(msg)); }
+-    FMT_CONSTEXPR void on_fill(basic_string_view<Char> fill) {
+-      f.specs.fill = fill;
+-    }
+-    FMT_CONSTEXPR void on_align(align_t align) { f.specs.align = align; }
+-    FMT_CONSTEXPR void on_width(int width) { f.specs.width = width; }
+-    FMT_CONSTEXPR void on_precision(int _precision) {
+-      f.precision = _precision;
+-    }
+-    FMT_CONSTEXPR void end_precision() {}
+-
+-    template <typename Id> FMT_CONSTEXPR void on_dynamic_width(Id arg_id) {
+-      f.width_ref = make_arg_ref(arg_id);
+-    }
+-
+-    template <typename Id> FMT_CONSTEXPR void on_dynamic_precision(Id arg_id) {
+-      f.precision_ref = make_arg_ref(arg_id);
+-    }
+-  };
+-
+-  using iterator = typename basic_format_parse_context<Char>::iterator;
+-  struct parse_range {
+-    iterator begin;
+-    iterator end;
+-  };
+-
+-  FMT_CONSTEXPR parse_range do_parse(basic_format_parse_context<Char>& ctx) {
+-    auto begin = ctx.begin(), end = ctx.end();
+-    if (begin == end || *begin == '}') return {begin, begin};
+-    spec_handler handler{*this, ctx, format_str};
+-    begin = detail::parse_align(begin, end, handler);
+-    if (begin == end) return {begin, begin};
+-    begin = detail::parse_width(begin, end, handler);
+-    if (begin == end) return {begin, begin};
+-    if (*begin == '.') {
+-      if (std::is_floating_point<Rep>::value)
+-        begin = detail::parse_precision(begin, end, handler);
+-      else
+-        handler.on_error("precision not allowed for this argument type");
+-    }
+-    if (begin != end && *begin == 'L') {
+-      ++begin;
+-      localized = true;
+-    }
+-    end = detail::parse_chrono_format(begin, end,
+-                                      detail::chrono_format_checker());
+-    return {begin, end};
+-  }
+-
+- public:
+-  FMT_CONSTEXPR auto parse(basic_format_parse_context<Char>& ctx)
+-      -> decltype(ctx.begin()) {
+-    auto range = do_parse(ctx);
+-    format_str = basic_string_view<Char>(
+-        &*range.begin, detail::to_unsigned(range.end - range.begin));
+-    return range.end;
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(const duration& d, FormatContext& ctx) const
+-      -> decltype(ctx.out()) {
+-    auto specs_copy = specs;
+-    auto precision_copy = precision;
+-    auto begin = format_str.begin(), end = format_str.end();
+-    // As a possible future optimization, we could avoid extra copying if width
+-    // is not specified.
+-    basic_memory_buffer<Char> buf;
+-    auto out = std::back_inserter(buf);
+-    detail::handle_dynamic_spec<detail::width_checker>(specs_copy.width,
+-                                                       width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(precision_copy,
+-                                                           precision_ref, ctx);
+-    if (begin == end || *begin == '}') {
+-      out = detail::format_duration_value<Char>(out, d.count(), precision_copy);
+-      detail::format_duration_unit<Char, Period>(out);
+-    } else {
+-      detail::chrono_formatter<FormatContext, decltype(out), Rep, Period> f(
+-          ctx, out, d);
+-      f.precision = precision_copy;
+-      f.localized = localized;
+-      detail::parse_chrono_format(begin, end, f);
+-    }
+-    return detail::write(
+-        ctx.out(), basic_string_view<Char>(buf.data(), buf.size()), specs_copy);
+-  }
+-};
+-
+-template <typename Char, typename Duration>
+-struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
+-                 Char> : formatter<std::tm, Char> {
+-  FMT_CONSTEXPR formatter() {
+-    this->do_parse(default_specs,
+-                   default_specs + sizeof(default_specs) / sizeof(Char));
+-  }
+-
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return this->do_parse(ctx.begin(), ctx.end(), true);
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(std::chrono::time_point<std::chrono::system_clock> val,
+-              FormatContext& ctx) const -> decltype(ctx.out()) {
+-    return formatter<std::tm, Char>::format(localtime(val), ctx);
+-  }
+-
+-  static constexpr const Char default_specs[] = {'%', 'F', ' ', '%', 'T'};
+-};
+-
+-template <typename Char, typename Duration>
+-constexpr const Char
+-    formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
+-              Char>::default_specs[];
+-
+-template <typename Char> struct formatter<std::tm, Char> {
+- private:
+-  enum class spec {
+-    unknown,
+-    year_month_day,
+-    hh_mm_ss,
+-  };
+-  spec spec_ = spec::unknown;
+-  basic_string_view<Char> specs;
+-
+- protected:
+-  template <typename It>
+-  FMT_CONSTEXPR auto do_parse(It begin, It end, bool with_default = false)
+-      -> It {
+-    if (begin != end && *begin == ':') ++begin;
+-    end = detail::parse_chrono_format(begin, end, detail::tm_format_checker());
+-    if (!with_default || end != begin)
+-      specs = {begin, detail::to_unsigned(end - begin)};
+-    // basic_string_view<>::compare isn't constexpr before C++17.
+-    if (specs.size() == 2 && specs[0] == Char('%')) {
+-      if (specs[1] == Char('F'))
+-        spec_ = spec::year_month_day;
+-      else if (specs[1] == Char('T'))
+-        spec_ = spec::hh_mm_ss;
+-    }
+-    return end;
+-  }
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return this->do_parse(ctx.begin(), ctx.end());
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(const std::tm& tm, FormatContext& ctx) const
+-      -> decltype(ctx.out()) {
+-    const auto loc_ref = ctx.locale();
+-    detail::get_locale loc(static_cast<bool>(loc_ref), loc_ref);
+-    auto w = detail::tm_writer<decltype(ctx.out()), Char>(loc, ctx.out(), tm);
+-    if (spec_ == spec::year_month_day)
+-      w.on_iso_date();
+-    else if (spec_ == spec::hh_mm_ss)
+-      w.on_iso_time();
+-    else
+-      detail::parse_chrono_format(specs.begin(), specs.end(), w);
+-    return w.out();
+-  }
+-};
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_CHRONO_H_
+diff --git a/include/dpp/fmt/color.h b/include/dpp/fmt/color.h
+deleted file mode 100644
+index dfbe482..0000000
+--- a/include/dpp/fmt/color.h
++++ /dev/null
+@@ -1,638 +0,0 @@
+-// Formatting library for C++ - color support
+-//
+-// Copyright (c) 2018 - present, Victor Zverovich and fmt contributors
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_COLOR_H_
+-#define FMT_COLOR_H_
+-
+-#include "format.h"
+-
+-// __declspec(deprecated) is broken in some MSVC versions.
+-#if FMT_MSC_VER
+-#  define FMT_DEPRECATED_NONMSVC
+-#else
+-#  define FMT_DEPRECATED_NONMSVC FMT_DEPRECATED
+-#endif
+-
+-FMT_BEGIN_NAMESPACE
+-FMT_MODULE_EXPORT_BEGIN
+-
+-enum class color : uint32_t {
+-  alice_blue = 0xF0F8FF,               // rgb(240,248,255)
+-  antique_white = 0xFAEBD7,            // rgb(250,235,215)
+-  aqua = 0x00FFFF,                     // rgb(0,255,255)
+-  aquamarine = 0x7FFFD4,               // rgb(127,255,212)
+-  azure = 0xF0FFFF,                    // rgb(240,255,255)
+-  beige = 0xF5F5DC,                    // rgb(245,245,220)
+-  bisque = 0xFFE4C4,                   // rgb(255,228,196)
+-  black = 0x000000,                    // rgb(0,0,0)
+-  blanched_almond = 0xFFEBCD,          // rgb(255,235,205)
+-  blue = 0x0000FF,                     // rgb(0,0,255)
+-  blue_violet = 0x8A2BE2,              // rgb(138,43,226)
+-  brown = 0xA52A2A,                    // rgb(165,42,42)
+-  burly_wood = 0xDEB887,               // rgb(222,184,135)
+-  cadet_blue = 0x5F9EA0,               // rgb(95,158,160)
+-  chartreuse = 0x7FFF00,               // rgb(127,255,0)
+-  chocolate = 0xD2691E,                // rgb(210,105,30)
+-  coral = 0xFF7F50,                    // rgb(255,127,80)
+-  cornflower_blue = 0x6495ED,          // rgb(100,149,237)
+-  cornsilk = 0xFFF8DC,                 // rgb(255,248,220)
+-  crimson = 0xDC143C,                  // rgb(220,20,60)
+-  cyan = 0x00FFFF,                     // rgb(0,255,255)
+-  dark_blue = 0x00008B,                // rgb(0,0,139)
+-  dark_cyan = 0x008B8B,                // rgb(0,139,139)
+-  dark_golden_rod = 0xB8860B,          // rgb(184,134,11)
+-  dark_gray = 0xA9A9A9,                // rgb(169,169,169)
+-  dark_green = 0x006400,               // rgb(0,100,0)
+-  dark_khaki = 0xBDB76B,               // rgb(189,183,107)
+-  dark_magenta = 0x8B008B,             // rgb(139,0,139)
+-  dark_olive_green = 0x556B2F,         // rgb(85,107,47)
+-  dark_orange = 0xFF8C00,              // rgb(255,140,0)
+-  dark_orchid = 0x9932CC,              // rgb(153,50,204)
+-  dark_red = 0x8B0000,                 // rgb(139,0,0)
+-  dark_salmon = 0xE9967A,              // rgb(233,150,122)
+-  dark_sea_green = 0x8FBC8F,           // rgb(143,188,143)
+-  dark_slate_blue = 0x483D8B,          // rgb(72,61,139)
+-  dark_slate_gray = 0x2F4F4F,          // rgb(47,79,79)
+-  dark_turquoise = 0x00CED1,           // rgb(0,206,209)
+-  dark_violet = 0x9400D3,              // rgb(148,0,211)
+-  deep_pink = 0xFF1493,                // rgb(255,20,147)
+-  deep_sky_blue = 0x00BFFF,            // rgb(0,191,255)
+-  dim_gray = 0x696969,                 // rgb(105,105,105)
+-  dodger_blue = 0x1E90FF,              // rgb(30,144,255)
+-  fire_brick = 0xB22222,               // rgb(178,34,34)
+-  floral_white = 0xFFFAF0,             // rgb(255,250,240)
+-  forest_green = 0x228B22,             // rgb(34,139,34)
+-  fuchsia = 0xFF00FF,                  // rgb(255,0,255)
+-  gainsboro = 0xDCDCDC,                // rgb(220,220,220)
+-  ghost_white = 0xF8F8FF,              // rgb(248,248,255)
+-  gold = 0xFFD700,                     // rgb(255,215,0)
+-  golden_rod = 0xDAA520,               // rgb(218,165,32)
+-  gray = 0x808080,                     // rgb(128,128,128)
+-  green = 0x008000,                    // rgb(0,128,0)
+-  green_yellow = 0xADFF2F,             // rgb(173,255,47)
+-  honey_dew = 0xF0FFF0,                // rgb(240,255,240)
+-  hot_pink = 0xFF69B4,                 // rgb(255,105,180)
+-  indian_red = 0xCD5C5C,               // rgb(205,92,92)
+-  indigo = 0x4B0082,                   // rgb(75,0,130)
+-  ivory = 0xFFFFF0,                    // rgb(255,255,240)
+-  khaki = 0xF0E68C,                    // rgb(240,230,140)
+-  lavender = 0xE6E6FA,                 // rgb(230,230,250)
+-  lavender_blush = 0xFFF0F5,           // rgb(255,240,245)
+-  lawn_green = 0x7CFC00,               // rgb(124,252,0)
+-  lemon_chiffon = 0xFFFACD,            // rgb(255,250,205)
+-  light_blue = 0xADD8E6,               // rgb(173,216,230)
+-  light_coral = 0xF08080,              // rgb(240,128,128)
+-  light_cyan = 0xE0FFFF,               // rgb(224,255,255)
+-  light_golden_rod_yellow = 0xFAFAD2,  // rgb(250,250,210)
+-  light_gray = 0xD3D3D3,               // rgb(211,211,211)
+-  light_green = 0x90EE90,              // rgb(144,238,144)
+-  light_pink = 0xFFB6C1,               // rgb(255,182,193)
+-  light_salmon = 0xFFA07A,             // rgb(255,160,122)
+-  light_sea_green = 0x20B2AA,          // rgb(32,178,170)
+-  light_sky_blue = 0x87CEFA,           // rgb(135,206,250)
+-  light_slate_gray = 0x778899,         // rgb(119,136,153)
+-  light_steel_blue = 0xB0C4DE,         // rgb(176,196,222)
+-  light_yellow = 0xFFFFE0,             // rgb(255,255,224)
+-  lime = 0x00FF00,                     // rgb(0,255,0)
+-  lime_green = 0x32CD32,               // rgb(50,205,50)
+-  linen = 0xFAF0E6,                    // rgb(250,240,230)
+-  magenta = 0xFF00FF,                  // rgb(255,0,255)
+-  maroon = 0x800000,                   // rgb(128,0,0)
+-  medium_aquamarine = 0x66CDAA,        // rgb(102,205,170)
+-  medium_blue = 0x0000CD,              // rgb(0,0,205)
+-  medium_orchid = 0xBA55D3,            // rgb(186,85,211)
+-  medium_purple = 0x9370DB,            // rgb(147,112,219)
+-  medium_sea_green = 0x3CB371,         // rgb(60,179,113)
+-  medium_slate_blue = 0x7B68EE,        // rgb(123,104,238)
+-  medium_spring_green = 0x00FA9A,      // rgb(0,250,154)
+-  medium_turquoise = 0x48D1CC,         // rgb(72,209,204)
+-  medium_violet_red = 0xC71585,        // rgb(199,21,133)
+-  midnight_blue = 0x191970,            // rgb(25,25,112)
+-  mint_cream = 0xF5FFFA,               // rgb(245,255,250)
+-  misty_rose = 0xFFE4E1,               // rgb(255,228,225)
+-  moccasin = 0xFFE4B5,                 // rgb(255,228,181)
+-  navajo_white = 0xFFDEAD,             // rgb(255,222,173)
+-  navy = 0x000080,                     // rgb(0,0,128)
+-  old_lace = 0xFDF5E6,                 // rgb(253,245,230)
+-  olive = 0x808000,                    // rgb(128,128,0)
+-  olive_drab = 0x6B8E23,               // rgb(107,142,35)
+-  orange = 0xFFA500,                   // rgb(255,165,0)
+-  orange_red = 0xFF4500,               // rgb(255,69,0)
+-  orchid = 0xDA70D6,                   // rgb(218,112,214)
+-  pale_golden_rod = 0xEEE8AA,          // rgb(238,232,170)
+-  pale_green = 0x98FB98,               // rgb(152,251,152)
+-  pale_turquoise = 0xAFEEEE,           // rgb(175,238,238)
+-  pale_violet_red = 0xDB7093,          // rgb(219,112,147)
+-  papaya_whip = 0xFFEFD5,              // rgb(255,239,213)
+-  peach_puff = 0xFFDAB9,               // rgb(255,218,185)
+-  peru = 0xCD853F,                     // rgb(205,133,63)
+-  pink = 0xFFC0CB,                     // rgb(255,192,203)
+-  plum = 0xDDA0DD,                     // rgb(221,160,221)
+-  powder_blue = 0xB0E0E6,              // rgb(176,224,230)
+-  purple = 0x800080,                   // rgb(128,0,128)
+-  rebecca_purple = 0x663399,           // rgb(102,51,153)
+-  red = 0xFF0000,                      // rgb(255,0,0)
+-  rosy_brown = 0xBC8F8F,               // rgb(188,143,143)
+-  royal_blue = 0x4169E1,               // rgb(65,105,225)
+-  saddle_brown = 0x8B4513,             // rgb(139,69,19)
+-  salmon = 0xFA8072,                   // rgb(250,128,114)
+-  sandy_brown = 0xF4A460,              // rgb(244,164,96)
+-  sea_green = 0x2E8B57,                // rgb(46,139,87)
+-  sea_shell = 0xFFF5EE,                // rgb(255,245,238)
+-  sienna = 0xA0522D,                   // rgb(160,82,45)
+-  silver = 0xC0C0C0,                   // rgb(192,192,192)
+-  sky_blue = 0x87CEEB,                 // rgb(135,206,235)
+-  slate_blue = 0x6A5ACD,               // rgb(106,90,205)
+-  slate_gray = 0x708090,               // rgb(112,128,144)
+-  snow = 0xFFFAFA,                     // rgb(255,250,250)
+-  spring_green = 0x00FF7F,             // rgb(0,255,127)
+-  steel_blue = 0x4682B4,               // rgb(70,130,180)
+-  tan = 0xD2B48C,                      // rgb(210,180,140)
+-  teal = 0x008080,                     // rgb(0,128,128)
+-  thistle = 0xD8BFD8,                  // rgb(216,191,216)
+-  tomato = 0xFF6347,                   // rgb(255,99,71)
+-  turquoise = 0x40E0D0,                // rgb(64,224,208)
+-  violet = 0xEE82EE,                   // rgb(238,130,238)
+-  wheat = 0xF5DEB3,                    // rgb(245,222,179)
+-  white = 0xFFFFFF,                    // rgb(255,255,255)
+-  white_smoke = 0xF5F5F5,              // rgb(245,245,245)
+-  yellow = 0xFFFF00,                   // rgb(255,255,0)
+-  yellow_green = 0x9ACD32              // rgb(154,205,50)
+-};                                     // enum class color
+-
+-enum class terminal_color : uint8_t {
+-  black = 30,
+-  red,
+-  green,
+-  yellow,
+-  blue,
+-  magenta,
+-  cyan,
+-  white,
+-  bright_black = 90,
+-  bright_red,
+-  bright_green,
+-  bright_yellow,
+-  bright_blue,
+-  bright_magenta,
+-  bright_cyan,
+-  bright_white
+-};
+-
+-enum class emphasis : uint8_t {
+-  bold = 1,
+-  faint = 1 << 1,
+-  italic = 1 << 2,
+-  underline = 1 << 3,
+-  blink = 1 << 4,
+-  reverse = 1 << 5,
+-  conceal = 1 << 6,
+-  strikethrough = 1 << 7,
+-};
+-
+-// rgb is a struct for red, green and blue colors.
+-// Using the name "rgb" makes some editors show the color in a tooltip.
+-struct rgb {
+-  FMT_CONSTEXPR rgb() : r(0), g(0), b(0) {}
+-  FMT_CONSTEXPR rgb(uint8_t r_, uint8_t g_, uint8_t b_) : r(r_), g(g_), b(b_) {}
+-  FMT_CONSTEXPR rgb(uint32_t hex)
+-      : r((hex >> 16) & 0xFF), g((hex >> 8) & 0xFF), b(hex & 0xFF) {}
+-  FMT_CONSTEXPR rgb(color hex)
+-      : r((uint32_t(hex) >> 16) & 0xFF),
+-        g((uint32_t(hex) >> 8) & 0xFF),
+-        b(uint32_t(hex) & 0xFF) {}
+-  uint8_t r;
+-  uint8_t g;
+-  uint8_t b;
+-};
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// color is a struct of either a rgb color or a terminal color.
+-struct color_type {
+-  FMT_CONSTEXPR color_type() FMT_NOEXCEPT : is_rgb(), value{} {}
+-  FMT_CONSTEXPR color_type(color rgb_color) FMT_NOEXCEPT : is_rgb(true),
+-                                                           value{} {
+-    value.rgb_color = static_cast<uint32_t>(rgb_color);
+-  }
+-  FMT_CONSTEXPR color_type(rgb rgb_color) FMT_NOEXCEPT : is_rgb(true), value{} {
+-    value.rgb_color = (static_cast<uint32_t>(rgb_color.r) << 16) |
+-                      (static_cast<uint32_t>(rgb_color.g) << 8) | rgb_color.b;
+-  }
+-  FMT_CONSTEXPR color_type(terminal_color term_color) FMT_NOEXCEPT : is_rgb(),
+-                                                                     value{} {
+-    value.term_color = static_cast<uint8_t>(term_color);
+-  }
+-  bool is_rgb;
+-  union color_union {
+-    uint8_t term_color;
+-    uint32_t rgb_color;
+-  } value;
+-};
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-/** A text style consisting of foreground and background colors and emphasis. */
+-class text_style {
+- public:
+-  FMT_CONSTEXPR text_style(emphasis em = emphasis()) FMT_NOEXCEPT
+-      : set_foreground_color(),
+-        set_background_color(),
+-        ems(em) {}
+-
+-  FMT_CONSTEXPR text_style& operator|=(const text_style& rhs) {
+-    if (!set_foreground_color) {
+-      set_foreground_color = rhs.set_foreground_color;
+-      foreground_color = rhs.foreground_color;
+-    } else if (rhs.set_foreground_color) {
+-      if (!foreground_color.is_rgb || !rhs.foreground_color.is_rgb)
+-        FMT_THROW(format_error("can't OR a terminal color"));
+-      foreground_color.value.rgb_color |= rhs.foreground_color.value.rgb_color;
+-    }
+-
+-    if (!set_background_color) {
+-      set_background_color = rhs.set_background_color;
+-      background_color = rhs.background_color;
+-    } else if (rhs.set_background_color) {
+-      if (!background_color.is_rgb || !rhs.background_color.is_rgb)
+-        FMT_THROW(format_error("can't OR a terminal color"));
+-      background_color.value.rgb_color |= rhs.background_color.value.rgb_color;
+-    }
+-
+-    ems = static_cast<emphasis>(static_cast<uint8_t>(ems) |
+-                                static_cast<uint8_t>(rhs.ems));
+-    return *this;
+-  }
+-
+-  friend FMT_CONSTEXPR text_style operator|(text_style lhs,
+-                                            const text_style& rhs) {
+-    return lhs |= rhs;
+-  }
+-
+-  FMT_DEPRECATED_NONMSVC FMT_CONSTEXPR text_style& operator&=(
+-      const text_style& rhs) {
+-    return and_assign(rhs);
+-  }
+-
+-  FMT_DEPRECATED_NONMSVC friend FMT_CONSTEXPR text_style
+-  operator&(text_style lhs, const text_style& rhs) {
+-    return lhs.and_assign(rhs);
+-  }
+-
+-  FMT_CONSTEXPR bool has_foreground() const FMT_NOEXCEPT {
+-    return set_foreground_color;
+-  }
+-  FMT_CONSTEXPR bool has_background() const FMT_NOEXCEPT {
+-    return set_background_color;
+-  }
+-  FMT_CONSTEXPR bool has_emphasis() const FMT_NOEXCEPT {
+-    return static_cast<uint8_t>(ems) != 0;
+-  }
+-  FMT_CONSTEXPR detail::color_type get_foreground() const FMT_NOEXCEPT {
+-    FMT_ASSERT(has_foreground(), "no foreground specified for this style");
+-    return foreground_color;
+-  }
+-  FMT_CONSTEXPR detail::color_type get_background() const FMT_NOEXCEPT {
+-    FMT_ASSERT(has_background(), "no background specified for this style");
+-    return background_color;
+-  }
+-  FMT_CONSTEXPR emphasis get_emphasis() const FMT_NOEXCEPT {
+-    FMT_ASSERT(has_emphasis(), "no emphasis specified for this style");
+-    return ems;
+-  }
+-
+- private:
+-  FMT_CONSTEXPR text_style(bool is_foreground,
+-                           detail::color_type text_color) FMT_NOEXCEPT
+-      : set_foreground_color(),
+-        set_background_color(),
+-        ems() {
+-    if (is_foreground) {
+-      foreground_color = text_color;
+-      set_foreground_color = true;
+-    } else {
+-      background_color = text_color;
+-      set_background_color = true;
+-    }
+-  }
+-
+-  // DEPRECATED!
+-  FMT_CONSTEXPR text_style& and_assign(const text_style& rhs) {
+-    if (!set_foreground_color) {
+-      set_foreground_color = rhs.set_foreground_color;
+-      foreground_color = rhs.foreground_color;
+-    } else if (rhs.set_foreground_color) {
+-      if (!foreground_color.is_rgb || !rhs.foreground_color.is_rgb)
+-        FMT_THROW(format_error("can't AND a terminal color"));
+-      foreground_color.value.rgb_color &= rhs.foreground_color.value.rgb_color;
+-    }
+-
+-    if (!set_background_color) {
+-      set_background_color = rhs.set_background_color;
+-      background_color = rhs.background_color;
+-    } else if (rhs.set_background_color) {
+-      if (!background_color.is_rgb || !rhs.background_color.is_rgb)
+-        FMT_THROW(format_error("can't AND a terminal color"));
+-      background_color.value.rgb_color &= rhs.background_color.value.rgb_color;
+-    }
+-
+-    ems = static_cast<emphasis>(static_cast<uint8_t>(ems) &
+-                                static_cast<uint8_t>(rhs.ems));
+-    return *this;
+-  }
+-
+-  friend FMT_CONSTEXPR_DECL text_style fg(detail::color_type foreground)
+-      FMT_NOEXCEPT;
+-
+-  friend FMT_CONSTEXPR_DECL text_style bg(detail::color_type background)
+-      FMT_NOEXCEPT;
+-
+-  detail::color_type foreground_color;
+-  detail::color_type background_color;
+-  bool set_foreground_color;
+-  bool set_background_color;
+-  emphasis ems;
+-};
+-
+-/** Creates a text style from the foreground (text) color. */
+-FMT_CONSTEXPR inline text_style fg(detail::color_type foreground) FMT_NOEXCEPT {
+-  return text_style(true, foreground);
+-}
+-
+-/** Creates a text style from the background color. */
+-FMT_CONSTEXPR inline text_style bg(detail::color_type background) FMT_NOEXCEPT {
+-  return text_style(false, background);
+-}
+-
+-FMT_CONSTEXPR inline text_style operator|(emphasis lhs,
+-                                          emphasis rhs) FMT_NOEXCEPT {
+-  return text_style(lhs) | rhs;
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename Char> struct ansi_color_escape {
+-  FMT_CONSTEXPR ansi_color_escape(detail::color_type text_color,
+-                                  const char* esc) FMT_NOEXCEPT {
+-    // If we have a terminal color, we need to output another escape code
+-    // sequence.
+-    if (!text_color.is_rgb) {
+-      bool is_background = esc == string_view("\x1b[48;2;");
+-      uint32_t value = text_color.value.term_color;
+-      // Background ASCII codes are the same as the foreground ones but with
+-      // 10 more.
+-      if (is_background) value += 10u;
+-
+-      size_t index = 0;
+-      buffer[index++] = static_cast<Char>('\x1b');
+-      buffer[index++] = static_cast<Char>('[');
+-
+-      if (value >= 100u) {
+-        buffer[index++] = static_cast<Char>('1');
+-        value %= 100u;
+-      }
+-      buffer[index++] = static_cast<Char>('0' + value / 10u);
+-      buffer[index++] = static_cast<Char>('0' + value % 10u);
+-
+-      buffer[index++] = static_cast<Char>('m');
+-      buffer[index++] = static_cast<Char>('\0');
+-      return;
+-    }
+-
+-    for (int i = 0; i < 7; i++) {
+-      buffer[i] = static_cast<Char>(esc[i]);
+-    }
+-    rgb color(text_color.value.rgb_color);
+-    to_esc(color.r, buffer + 7, ';');
+-    to_esc(color.g, buffer + 11, ';');
+-    to_esc(color.b, buffer + 15, 'm');
+-    buffer[19] = static_cast<Char>(0);
+-  }
+-  FMT_CONSTEXPR ansi_color_escape(emphasis em) FMT_NOEXCEPT {
+-    uint8_t em_codes[num_emphases] = {};
+-    if (has_emphasis(em, emphasis::bold)) em_codes[0] = 1;
+-    if (has_emphasis(em, emphasis::faint)) em_codes[1] = 2;
+-    if (has_emphasis(em, emphasis::italic)) em_codes[2] = 3;
+-    if (has_emphasis(em, emphasis::underline)) em_codes[3] = 4;
+-    if (has_emphasis(em, emphasis::blink)) em_codes[4] = 5;
+-    if (has_emphasis(em, emphasis::reverse)) em_codes[5] = 7;
+-    if (has_emphasis(em, emphasis::conceal)) em_codes[6] = 8;
+-    if (has_emphasis(em, emphasis::strikethrough)) em_codes[7] = 9;
+-
+-    size_t index = 0;
+-    for (size_t i = 0; i < num_emphases; ++i) {
+-      if (!em_codes[i]) continue;
+-      buffer[index++] = static_cast<Char>('\x1b');
+-      buffer[index++] = static_cast<Char>('[');
+-      buffer[index++] = static_cast<Char>('0' + em_codes[i]);
+-      buffer[index++] = static_cast<Char>('m');
+-    }
+-    buffer[index++] = static_cast<Char>(0);
+-  }
+-  FMT_CONSTEXPR operator const Char*() const FMT_NOEXCEPT { return buffer; }
+-
+-  FMT_CONSTEXPR const Char* begin() const FMT_NOEXCEPT { return buffer; }
+-  FMT_CONSTEXPR_CHAR_TRAITS const Char* end() const FMT_NOEXCEPT {
+-    return buffer + std::char_traits<Char>::length(buffer);
+-  }
+-
+- private:
+-  static constexpr size_t num_emphases = 8;
+-  Char buffer[7u + 3u * num_emphases + 1u];
+-
+-  static FMT_CONSTEXPR void to_esc(uint8_t c, Char* out,
+-                                   char delimiter) FMT_NOEXCEPT {
+-    out[0] = static_cast<Char>('0' + c / 100);
+-    out[1] = static_cast<Char>('0' + c / 10 % 10);
+-    out[2] = static_cast<Char>('0' + c % 10);
+-    out[3] = static_cast<Char>(delimiter);
+-  }
+-  static FMT_CONSTEXPR bool has_emphasis(emphasis em,
+-                                         emphasis mask) FMT_NOEXCEPT {
+-    return static_cast<uint8_t>(em) & static_cast<uint8_t>(mask);
+-  }
+-};
+-
+-template <typename Char>
+-FMT_CONSTEXPR ansi_color_escape<Char> make_foreground_color(
+-    detail::color_type foreground) FMT_NOEXCEPT {
+-  return ansi_color_escape<Char>(foreground, "\x1b[38;2;");
+-}
+-
+-template <typename Char>
+-FMT_CONSTEXPR ansi_color_escape<Char> make_background_color(
+-    detail::color_type background) FMT_NOEXCEPT {
+-  return ansi_color_escape<Char>(background, "\x1b[48;2;");
+-}
+-
+-template <typename Char>
+-FMT_CONSTEXPR ansi_color_escape<Char> make_emphasis(emphasis em) FMT_NOEXCEPT {
+-  return ansi_color_escape<Char>(em);
+-}
+-
+-template <typename Char>
+-inline void fputs(const Char* chars, FILE* stream) FMT_NOEXCEPT {
+-  std::fputs(chars, stream);
+-}
+-
+-template <>
+-inline void fputs<wchar_t>(const wchar_t* chars, FILE* stream) FMT_NOEXCEPT {
+-  std::fputws(chars, stream);
+-}
+-
+-template <typename Char> inline void reset_color(FILE* stream) FMT_NOEXCEPT {
+-  fputs("\x1b[0m", stream);
+-}
+-
+-template <> inline void reset_color<wchar_t>(FILE* stream) FMT_NOEXCEPT {
+-  fputs(L"\x1b[0m", stream);
+-}
+-
+-template <typename Char>
+-inline void reset_color(buffer<Char>& buffer) FMT_NOEXCEPT {
+-  auto reset_color = string_view("\x1b[0m");
+-  buffer.append(reset_color.begin(), reset_color.end());
+-}
+-
+-template <typename Char>
+-void vformat_to(buffer<Char>& buf, const text_style& ts,
+-                basic_string_view<Char> format_str,
+-                basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  bool has_style = false;
+-  if (ts.has_emphasis()) {
+-    has_style = true;
+-    auto emphasis = detail::make_emphasis<Char>(ts.get_emphasis());
+-    buf.append(emphasis.begin(), emphasis.end());
+-  }
+-  if (ts.has_foreground()) {
+-    has_style = true;
+-    auto foreground = detail::make_foreground_color<Char>(ts.get_foreground());
+-    buf.append(foreground.begin(), foreground.end());
+-  }
+-  if (ts.has_background()) {
+-    has_style = true;
+-    auto background = detail::make_background_color<Char>(ts.get_background());
+-    buf.append(background.begin(), background.end());
+-  }
+-  detail::vformat_to(buf, format_str, args, {});
+-  if (has_style) detail::reset_color<Char>(buf);
+-}
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-template <typename S, typename Char = char_t<S>>
+-void vprint(std::FILE* f, const text_style& ts, const S& format,
+-            basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  basic_memory_buffer<Char> buf;
+-  detail::vformat_to(buf, ts, to_string_view(format), args);
+-  buf.push_back(Char(0));
+-  detail::fputs(buf.data(), f);
+-}
+-
+-/**
+-  \rst
+-  Formats a string and prints it to the specified file stream using ANSI
+-  escape sequences to specify text formatting.
+-
+-  **Example**::
+-
+-    fmt::print(fmt::emphasis::bold | fg(fmt::color::red),
+-               "Elapsed time: {0:.2f} seconds", 1.23);
+-  \endrst
+- */
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_string<S>::value)>
+-void print(std::FILE* f, const text_style& ts, const S& format_str,
+-           const Args&... args) {
+-  vprint(f, ts, format_str,
+-         fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-
+-/**
+-  \rst
+-  Formats a string and prints it to stdout using ANSI escape sequences to
+-  specify text formatting.
+-
+-  **Example**::
+-
+-    fmt::print(fmt::emphasis::bold | fg(fmt::color::red),
+-               "Elapsed time: {0:.2f} seconds", 1.23);
+-  \endrst
+- */
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_string<S>::value)>
+-void print(const text_style& ts, const S& format_str, const Args&... args) {
+-  return print(stdout, ts, format_str, args...);
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-inline std::basic_string<Char> vformat(
+-    const text_style& ts, const S& format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  basic_memory_buffer<Char> buf;
+-  detail::vformat_to(buf, ts, to_string_view(format_str), args);
+-  return fmt::to_string(buf);
+-}
+-
+-/**
+-  \rst
+-  Formats arguments and returns the result as a string using ANSI
+-  escape sequences to specify text formatting.
+-
+-  **Example**::
+-
+-    #include <fmt/color.h>
+-    std::string message = fmt::format(fmt::emphasis::bold | fg(fmt::color::red),
+-                                      "The answer is {}", 42);
+-  \endrst
+-*/
+-template <typename S, typename... Args, typename Char = char_t<S>>
+-inline std::basic_string<Char> format(const text_style& ts, const S& format_str,
+-                                      const Args&... args) {
+-  return fmt::vformat(ts, to_string_view(format_str),
+-                      fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-
+-/**
+-  Formats a string with the given text_style and writes the output to ``out``.
+- */
+-template <typename OutputIt, typename Char,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value)>
+-OutputIt vformat_to(
+-    OutputIt out, const text_style& ts, basic_string_view<Char> format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  auto&& buf = detail::get_buffer<Char>(out);
+-  detail::vformat_to(buf, ts, format_str, args);
+-  return detail::get_iterator(buf);
+-}
+-
+-/**
+-  \rst
+-  Formats arguments with the given text_style, writes the result to the output
+-  iterator ``out`` and returns the iterator past the end of the output range.
+-
+-  **Example**::
+-
+-    std::vector<char> out;
+-    fmt::format_to(std::back_inserter(out),
+-                   fmt::emphasis::bold | fg(fmt::color::red), "{}", 42);
+-  \endrst
+-*/
+-template <typename OutputIt, typename S, typename... Args,
+-          bool enable = detail::is_output_iterator<OutputIt, char_t<S>>::value&&
+-              detail::is_string<S>::value>
+-inline auto format_to(OutputIt out, const text_style& ts, const S& format_str,
+-                      Args&&... args) ->
+-    typename std::enable_if<enable, OutputIt>::type {
+-  return vformat_to(out, ts, to_string_view(format_str),
+-                    fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_COLOR_H_
+diff --git a/include/dpp/fmt/compile.h b/include/dpp/fmt/compile.h
+deleted file mode 100644
+index 1dba3dd..0000000
+--- a/include/dpp/fmt/compile.h
++++ /dev/null
+@@ -1,642 +0,0 @@
+-// Formatting library for C++ - experimental format string compilation
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich and fmt contributors
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_COMPILE_H_
+-#define FMT_COMPILE_H_
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-
+-// An output iterator that counts the number of objects written to it and
+-// discards them.
+-class counting_iterator {
+- private:
+-  size_t count_;
+-
+- public:
+-  using iterator_category = std::output_iterator_tag;
+-  using difference_type = std::ptrdiff_t;
+-  using pointer = void;
+-  using reference = void;
+-  using _Unchecked_type = counting_iterator;  // Mark iterator as checked.
+-
+-  struct value_type {
+-    template <typename T> void operator=(const T&) {}
+-  };
+-
+-  counting_iterator() : count_(0) {}
+-
+-  size_t count() const { return count_; }
+-
+-  counting_iterator& operator++() {
+-    ++count_;
+-    return *this;
+-  }
+-  counting_iterator operator++(int) {
+-    auto it = *this;
+-    ++*this;
+-    return it;
+-  }
+-
+-  friend counting_iterator operator+(counting_iterator it, difference_type n) {
+-    it.count_ += static_cast<size_t>(n);
+-    return it;
+-  }
+-
+-  value_type operator*() const { return {}; }
+-};
+-
+-template <typename Char, typename InputIt>
+-inline counting_iterator copy_str(InputIt begin, InputIt end,
+-                                  counting_iterator it) {
+-  return it + (end - begin);
+-}
+-
+-template <typename OutputIt> class truncating_iterator_base {
+- protected:
+-  OutputIt out_;
+-  size_t limit_;
+-  size_t count_ = 0;
+-
+-  truncating_iterator_base() : out_(), limit_(0) {}
+-
+-  truncating_iterator_base(OutputIt out, size_t limit)
+-      : out_(out), limit_(limit) {}
+-
+- public:
+-  using iterator_category = std::output_iterator_tag;
+-  using value_type = typename std::iterator_traits<OutputIt>::value_type;
+-  using difference_type = std::ptrdiff_t;
+-  using pointer = void;
+-  using reference = void;
+-  using _Unchecked_type =
+-      truncating_iterator_base;  // Mark iterator as checked.
+-
+-  OutputIt base() const { return out_; }
+-  size_t count() const { return count_; }
+-};
+-
+-// An output iterator that truncates the output and counts the number of objects
+-// written to it.
+-template <typename OutputIt,
+-          typename Enable = typename std::is_void<
+-              typename std::iterator_traits<OutputIt>::value_type>::type>
+-class truncating_iterator;
+-
+-template <typename OutputIt>
+-class truncating_iterator<OutputIt, std::false_type>
+-    : public truncating_iterator_base<OutputIt> {
+-  mutable typename truncating_iterator_base<OutputIt>::value_type blackhole_;
+-
+- public:
+-  using value_type = typename truncating_iterator_base<OutputIt>::value_type;
+-
+-  truncating_iterator() = default;
+-
+-  truncating_iterator(OutputIt out, size_t limit)
+-      : truncating_iterator_base<OutputIt>(out, limit) {}
+-
+-  truncating_iterator& operator++() {
+-    if (this->count_++ < this->limit_) ++this->out_;
+-    return *this;
+-  }
+-
+-  truncating_iterator operator++(int) {
+-    auto it = *this;
+-    ++*this;
+-    return it;
+-  }
+-
+-  value_type& operator*() const {
+-    return this->count_ < this->limit_ ? *this->out_ : blackhole_;
+-  }
+-};
+-
+-template <typename OutputIt>
+-class truncating_iterator<OutputIt, std::true_type>
+-    : public truncating_iterator_base<OutputIt> {
+- public:
+-  truncating_iterator() = default;
+-
+-  truncating_iterator(OutputIt out, size_t limit)
+-      : truncating_iterator_base<OutputIt>(out, limit) {}
+-
+-  template <typename T> truncating_iterator& operator=(T val) {
+-    if (this->count_++ < this->limit_) *this->out_++ = val;
+-    return *this;
+-  }
+-
+-  truncating_iterator& operator++() { return *this; }
+-  truncating_iterator& operator++(int) { return *this; }
+-  truncating_iterator& operator*() { return *this; }
+-};
+-
+-// A compile-time string which is compiled into fast formatting code.
+-class compiled_string {};
+-
+-template <typename S>
+-struct is_compiled_string : std::is_base_of<compiled_string, S> {};
+-
+-/**
+-  \rst
+-  Converts a string literal *s* into a format string that will be parsed at
+-  compile time and converted into efficient formatting code. Requires C++17
+-  ``constexpr if`` compiler support.
+-
+-  **Example**::
+-
+-    // Converts 42 into std::string using the most efficient method and no
+-    // runtime format string processing.
+-    std::string s = fmt::format(FMT_COMPILE("{}"), 42);
+-  \endrst
+- */
+-#if defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
+-#  define FMT_COMPILE(s) \
+-    FMT_STRING_IMPL(s, fmt::detail::compiled_string, explicit)
+-#else
+-#  define FMT_COMPILE(s) FMT_STRING(s)
+-#endif
+-
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct udl_compiled_string : compiled_string {
+-  using char_type = Char;
+-  constexpr operator basic_string_view<char_type>() const {
+-    return {Str.data, N - 1};
+-  }
+-};
+-#endif
+-
+-template <typename T, typename... Tail>
+-const T& first(const T& value, const Tail&...) {
+-  return value;
+-}
+-
+-#if defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
+-template <typename... Args> struct type_list {};
+-
+-// Returns a reference to the argument at index N from [first, rest...].
+-template <int N, typename T, typename... Args>
+-constexpr const auto& get([[maybe_unused]] const T& first,
+-                          [[maybe_unused]] const Args&... rest) {
+-  static_assert(N < 1 + sizeof...(Args), "index is out of bounds");
+-  if constexpr (N == 0)
+-    return first;
+-  else
+-    return detail::get<N - 1>(rest...);
+-}
+-
+-template <typename Char, typename... Args>
+-constexpr int get_arg_index_by_name(basic_string_view<Char> name,
+-                                    type_list<Args...>) {
+-  return get_arg_index_by_name<Args...>(name);
+-}
+-
+-template <int N, typename> struct get_type_impl;
+-
+-template <int N, typename... Args> struct get_type_impl<N, type_list<Args...>> {
+-  using type =
+-      remove_cvref_t<decltype(detail::get<N>(std::declval<Args>()...))>;
+-};
+-
+-template <int N, typename T>
+-using get_type = typename get_type_impl<N, T>::type;
+-
+-template <typename T> struct is_compiled_format : std::false_type {};
+-
+-template <typename Char> struct text {
+-  basic_string_view<Char> data;
+-  using char_type = Char;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&...) const {
+-    return write<Char>(out, data);
+-  }
+-};
+-
+-template <typename Char>
+-struct is_compiled_format<text<Char>> : std::true_type {};
+-
+-template <typename Char>
+-constexpr text<Char> make_text(basic_string_view<Char> s, size_t pos,
+-                               size_t size) {
+-  return {{&s[pos], size}};
+-}
+-
+-template <typename Char> struct code_unit {
+-  Char value;
+-  using char_type = Char;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&...) const {
+-    return write<Char>(out, value);
+-  }
+-};
+-
+-// This ensures that the argument type is convertible to `const T&`.
+-template <typename T, int N, typename... Args>
+-constexpr const T& get_arg_checked(const Args&... args) {
+-  const auto& arg = detail::get<N>(args...);
+-  if constexpr (detail::is_named_arg<remove_cvref_t<decltype(arg)>>()) {
+-    return arg.value;
+-  } else {
+-    return arg;
+-  }
+-}
+-
+-template <typename Char>
+-struct is_compiled_format<code_unit<Char>> : std::true_type {};
+-
+-// A replacement field that refers to argument N.
+-template <typename Char, typename T, int N> struct field {
+-  using char_type = Char;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&... args) const {
+-    return write<Char>(out, get_arg_checked<T, N>(args...));
+-  }
+-};
+-
+-template <typename Char, typename T, int N>
+-struct is_compiled_format<field<Char, T, N>> : std::true_type {};
+-
+-// A replacement field that refers to argument with name.
+-template <typename Char> struct runtime_named_field {
+-  using char_type = Char;
+-  basic_string_view<Char> name;
+-
+-  template <typename OutputIt, typename T>
+-  constexpr static bool try_format_argument(
+-      OutputIt& out,
+-      // [[maybe_unused]] due to unused-but-set-parameter warning in GCC 7,8,9
+-      [[maybe_unused]] basic_string_view<Char> arg_name, const T& arg) {
+-    if constexpr (is_named_arg<typename std::remove_cv<T>::type>::value) {
+-      if (arg_name == arg.name) {
+-        out = write<Char>(out, arg.value);
+-        return true;
+-      }
+-    }
+-    return false;
+-  }
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&... args) const {
+-    bool found = (try_format_argument(out, name, args) || ...);
+-    if (!found) {
+-      FMT_THROW(format_error("argument with specified name is not found"));
+-    }
+-    return out;
+-  }
+-};
+-
+-template <typename Char>
+-struct is_compiled_format<runtime_named_field<Char>> : std::true_type {};
+-
+-// A replacement field that refers to argument N and has format specifiers.
+-template <typename Char, typename T, int N> struct spec_field {
+-  using char_type = Char;
+-  formatter<T, Char> fmt;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr FMT_INLINE OutputIt format(OutputIt out,
+-                                       const Args&... args) const {
+-    const auto& vargs =
+-        fmt::make_format_args<basic_format_context<OutputIt, Char>>(args...);
+-    basic_format_context<OutputIt, Char> ctx(out, vargs);
+-    return fmt.format(get_arg_checked<T, N>(args...), ctx);
+-  }
+-};
+-
+-template <typename Char, typename T, int N>
+-struct is_compiled_format<spec_field<Char, T, N>> : std::true_type {};
+-
+-template <typename L, typename R> struct concat {
+-  L lhs;
+-  R rhs;
+-  using char_type = typename L::char_type;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&... args) const {
+-    out = lhs.format(out, args...);
+-    return rhs.format(out, args...);
+-  }
+-};
+-
+-template <typename L, typename R>
+-struct is_compiled_format<concat<L, R>> : std::true_type {};
+-
+-template <typename L, typename R>
+-constexpr concat<L, R> make_concat(L lhs, R rhs) {
+-  return {lhs, rhs};
+-}
+-
+-struct unknown_format {};
+-
+-template <typename Char>
+-constexpr size_t parse_text(basic_string_view<Char> str, size_t pos) {
+-  for (size_t size = str.size(); pos != size; ++pos) {
+-    if (str[pos] == '{' || str[pos] == '}') break;
+-  }
+-  return pos;
+-}
+-
+-template <typename Args, size_t POS, int ID, typename S>
+-constexpr auto compile_format_string(S format_str);
+-
+-template <typename Args, size_t POS, int ID, typename T, typename S>
+-constexpr auto parse_tail(T head, S format_str) {
+-  if constexpr (POS !=
+-                basic_string_view<typename S::char_type>(format_str).size()) {
+-    constexpr auto tail = compile_format_string<Args, POS, ID>(format_str);
+-    if constexpr (std::is_same<remove_cvref_t<decltype(tail)>,
+-                               unknown_format>())
+-      return tail;
+-    else
+-      return make_concat(head, tail);
+-  } else {
+-    return head;
+-  }
+-}
+-
+-template <typename T, typename Char> struct parse_specs_result {
+-  formatter<T, Char> fmt;
+-  size_t end;
+-  int next_arg_id;
+-};
+-
+-constexpr int manual_indexing_id = -1;
+-
+-template <typename T, typename Char>
+-constexpr parse_specs_result<T, Char> parse_specs(basic_string_view<Char> str,
+-                                                  size_t pos, int next_arg_id) {
+-  str.remove_prefix(pos);
+-  auto ctx = basic_format_parse_context<Char>(str, {}, next_arg_id);
+-  auto f = formatter<T, Char>();
+-  auto end = f.parse(ctx);
+-  return {f, pos + fmt::detail::to_unsigned(end - str.data()) + 1,
+-          next_arg_id == 0 ? manual_indexing_id : ctx.next_arg_id()};
+-}
+-
+-template <typename Char> struct arg_id_handler {
+-  arg_ref<Char> arg_id;
+-
+-  constexpr int operator()() {
+-    FMT_ASSERT(false, "handler cannot be used with automatic indexing");
+-    return 0;
+-  }
+-  constexpr int operator()(int id) {
+-    arg_id = arg_ref<Char>(id);
+-    return 0;
+-  }
+-  constexpr int operator()(basic_string_view<Char> id) {
+-    arg_id = arg_ref<Char>(id);
+-    return 0;
+-  }
+-
+-  constexpr void on_error(const char* message) {
+-    FMT_THROW(format_error(message));
+-  }
+-};
+-
+-template <typename Char> struct parse_arg_id_result {
+-  arg_ref<Char> arg_id;
+-  const Char* arg_id_end;
+-};
+-
+-template <int ID, typename Char>
+-constexpr auto parse_arg_id(const Char* begin, const Char* end) {
+-  auto handler = arg_id_handler<Char>{arg_ref<Char>{}};
+-  auto arg_id_end = parse_arg_id(begin, end, handler);
+-  return parse_arg_id_result<Char>{handler.arg_id, arg_id_end};
+-}
+-
+-template <typename T, typename Enable = void> struct field_type {
+-  using type = remove_cvref_t<T>;
+-};
+-
+-template <typename T>
+-struct field_type<T, enable_if_t<detail::is_named_arg<T>::value>> {
+-  using type = remove_cvref_t<decltype(T::value)>;
+-};
+-
+-template <typename T, typename Args, size_t END_POS, int ARG_INDEX, int NEXT_ID,
+-          typename S>
+-constexpr auto parse_replacement_field_then_tail(S format_str) {
+-  using char_type = typename S::char_type;
+-  constexpr auto str = basic_string_view<char_type>(format_str);
+-  constexpr char_type c = END_POS != str.size() ? str[END_POS] : char_type();
+-  if constexpr (c == '}') {
+-    return parse_tail<Args, END_POS + 1, NEXT_ID>(
+-        field<char_type, typename field_type<T>::type, ARG_INDEX>(),
+-        format_str);
+-  } else if constexpr (c == ':') {
+-    constexpr auto result = parse_specs<typename field_type<T>::type>(
+-        str, END_POS + 1, NEXT_ID == manual_indexing_id ? 0 : NEXT_ID);
+-    return parse_tail<Args, result.end, result.next_arg_id>(
+-        spec_field<char_type, typename field_type<T>::type, ARG_INDEX>{
+-            result.fmt},
+-        format_str);
+-  }
+-}
+-
+-// Compiles a non-empty format string and returns the compiled representation
+-// or unknown_format() on unrecognized input.
+-template <typename Args, size_t POS, int ID, typename S>
+-constexpr auto compile_format_string(S format_str) {
+-  using char_type = typename S::char_type;
+-  constexpr auto str = basic_string_view<char_type>(format_str);
+-  if constexpr (str[POS] == '{') {
+-    if constexpr (POS + 1 == str.size())
+-      FMT_THROW(format_error("unmatched '{' in format string"));
+-    if constexpr (str[POS + 1] == '{') {
+-      return parse_tail<Args, POS + 2, ID>(make_text(str, POS, 1), format_str);
+-    } else if constexpr (str[POS + 1] == '}' || str[POS + 1] == ':') {
+-      static_assert(ID != manual_indexing_id,
+-                    "cannot switch from manual to automatic argument indexing");
+-      constexpr auto next_id =
+-          ID != manual_indexing_id ? ID + 1 : manual_indexing_id;
+-      return parse_replacement_field_then_tail<get_type<ID, Args>, Args,
+-                                               POS + 1, ID, next_id>(
+-          format_str);
+-    } else {
+-      constexpr auto arg_id_result =
+-          parse_arg_id<ID>(str.data() + POS + 1, str.data() + str.size());
+-      constexpr auto arg_id_end_pos = arg_id_result.arg_id_end - str.data();
+-      constexpr char_type c =
+-          arg_id_end_pos != str.size() ? str[arg_id_end_pos] : char_type();
+-      static_assert(c == '}' || c == ':', "missing '}' in format string");
+-      if constexpr (arg_id_result.arg_id.kind == arg_id_kind::index) {
+-        static_assert(
+-            ID == manual_indexing_id || ID == 0,
+-            "cannot switch from automatic to manual argument indexing");
+-        constexpr auto arg_index = arg_id_result.arg_id.val.index;
+-        return parse_replacement_field_then_tail<get_type<arg_index, Args>,
+-                                                 Args, arg_id_end_pos,
+-                                                 arg_index, manual_indexing_id>(
+-            format_str);
+-      } else if constexpr (arg_id_result.arg_id.kind == arg_id_kind::name) {
+-        constexpr auto arg_index =
+-            get_arg_index_by_name(arg_id_result.arg_id.val.name, Args{});
+-        if constexpr (arg_index != invalid_arg_index) {
+-          constexpr auto next_id =
+-              ID != manual_indexing_id ? ID + 1 : manual_indexing_id;
+-          return parse_replacement_field_then_tail<
+-              decltype(get_type<arg_index, Args>::value), Args, arg_id_end_pos,
+-              arg_index, next_id>(format_str);
+-        } else {
+-          if constexpr (c == '}') {
+-            return parse_tail<Args, arg_id_end_pos + 1, ID>(
+-                runtime_named_field<char_type>{arg_id_result.arg_id.val.name},
+-                format_str);
+-          } else if constexpr (c == ':') {
+-            return unknown_format();  // no type info for specs parsing
+-          }
+-        }
+-      }
+-    }
+-  } else if constexpr (str[POS] == '}') {
+-    if constexpr (POS + 1 == str.size())
+-      FMT_THROW(format_error("unmatched '}' in format string"));
+-    return parse_tail<Args, POS + 2, ID>(make_text(str, POS, 1), format_str);
+-  } else {
+-    constexpr auto end = parse_text(str, POS + 1);
+-    if constexpr (end - POS > 1) {
+-      return parse_tail<Args, end, ID>(make_text(str, POS, end - POS),
+-                                       format_str);
+-    } else {
+-      return parse_tail<Args, end, ID>(code_unit<char_type>{str[POS]},
+-                                       format_str);
+-    }
+-  }
+-}
+-
+-template <typename... Args, typename S,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-constexpr auto compile(S format_str) {
+-  constexpr auto str = basic_string_view<typename S::char_type>(format_str);
+-  if constexpr (str.size() == 0) {
+-    return detail::make_text(str, 0, 0);
+-  } else {
+-    constexpr auto result =
+-        detail::compile_format_string<detail::type_list<Args...>, 0, 0>(
+-            format_str);
+-    return result;
+-  }
+-}
+-#endif  // defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
+-}  // namespace detail
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-#if defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
+-
+-template <typename CompiledFormat, typename... Args,
+-          typename Char = typename CompiledFormat::char_type,
+-          FMT_ENABLE_IF(detail::is_compiled_format<CompiledFormat>::value)>
+-FMT_INLINE std::basic_string<Char> format(const CompiledFormat& cf,
+-                                          const Args&... args) {
+-  auto s = std::basic_string<Char>();
+-  cf.format(std::back_inserter(s), args...);
+-  return s;
+-}
+-
+-template <typename OutputIt, typename CompiledFormat, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_format<CompiledFormat>::value)>
+-constexpr FMT_INLINE OutputIt format_to(OutputIt out, const CompiledFormat& cf,
+-                                        const Args&... args) {
+-  return cf.format(out, args...);
+-}
+-
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-FMT_INLINE std::basic_string<typename S::char_type> format(const S&,
+-                                                           Args&&... args) {
+-  if constexpr (std::is_same<typename S::char_type, char>::value) {
+-    constexpr auto str = basic_string_view<typename S::char_type>(S());
+-    if constexpr (str.size() == 2 && str[0] == '{' && str[1] == '}') {
+-      const auto& first = detail::first(args...);
+-      if constexpr (detail::is_named_arg<
+-                        remove_cvref_t<decltype(first)>>::value) {
+-        return fmt::to_string(first.value);
+-      } else {
+-        return fmt::to_string(first);
+-      }
+-    }
+-  }
+-  constexpr auto compiled = detail::compile<Args...>(S());
+-  if constexpr (std::is_same<remove_cvref_t<decltype(compiled)>,
+-                             detail::unknown_format>()) {
+-    return format(static_cast<basic_string_view<typename S::char_type>>(S()),
+-                  std::forward<Args>(args)...);
+-  } else {
+-    return format(compiled, std::forward<Args>(args)...);
+-  }
+-}
+-
+-template <typename OutputIt, typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-FMT_CONSTEXPR OutputIt format_to(OutputIt out, const S&, Args&&... args) {
+-  constexpr auto compiled = detail::compile<Args...>(S());
+-  if constexpr (std::is_same<remove_cvref_t<decltype(compiled)>,
+-                             detail::unknown_format>()) {
+-    return format_to(out,
+-                     static_cast<basic_string_view<typename S::char_type>>(S()),
+-                     std::forward<Args>(args)...);
+-  } else {
+-    return format_to(out, compiled, std::forward<Args>(args)...);
+-  }
+-}
+-#endif
+-
+-template <typename OutputIt, typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-format_to_n_result<OutputIt> format_to_n(OutputIt out, size_t n,
+-                                         const S& format_str, Args&&... args) {
+-  auto it = format_to(detail::truncating_iterator<OutputIt>(out, n), format_str,
+-                      std::forward<Args>(args)...);
+-  return {it.base(), it.count()};
+-}
+-
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-size_t formatted_size(const S& format_str, const Args&... args) {
+-  return format_to(detail::counting_iterator(), format_str, args...).count();
+-}
+-
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-void print(std::FILE* f, const S& format_str, const Args&... args) {
+-  memory_buffer buffer;
+-  format_to(std::back_inserter(buffer), format_str, args...);
+-  detail::print(f, {buffer.data(), buffer.size()});
+-}
+-
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-void print(const S& format_str, const Args&... args) {
+-  print(stdout, format_str, args...);
+-}
+-
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-inline namespace literals {
+-template <detail_exported::fixed_string Str>
+-constexpr detail::udl_compiled_string<
+-    remove_cvref_t<decltype(Str.data[0])>,
+-    sizeof(Str.data) / sizeof(decltype(Str.data[0])), Str>
+-operator""_cf() {
+-  return {};
+-}
+-}  // namespace literals
+-#endif
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_COMPILE_H_
+diff --git a/include/dpp/fmt/core.h b/include/dpp/fmt/core.h
+deleted file mode 100644
+index 92a7aa1..0000000
+--- a/include/dpp/fmt/core.h
++++ /dev/null
+@@ -1,3236 +0,0 @@
+-// Formatting library for C++ - the core API for char/UTF-8
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_CORE_H_
+-#define FMT_CORE_H_
+-
+-#include <cstddef>  // std::byte
+-#include <cstdio>   // std::FILE
+-#include <cstring>
+-#include <iterator>
+-#include <limits>
+-#include <string>
+-#include <type_traits>
+-
+-// The fmt library version in the form major * 10000 + minor * 100 + patch.
+-#define FMT_VERSION 80101
+-
+-#if defined(__clang__) && !defined(__ibmxl__)
+-#  define FMT_CLANG_VERSION (__clang_major__ * 100 + __clang_minor__)
+-#else
+-#  define FMT_CLANG_VERSION 0
+-#endif
+-
+-#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) && \
+-    !defined(__NVCOMPILER)
+-#  define FMT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
+-#else
+-#  define FMT_GCC_VERSION 0
+-#endif
+-
+-#ifndef FMT_GCC_PRAGMA
+-// Workaround _Pragma bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59884.
+-#  if FMT_GCC_VERSION >= 504
+-#    define FMT_GCC_PRAGMA(arg) _Pragma(arg)
+-#  else
+-#    define FMT_GCC_PRAGMA(arg)
+-#  endif
+-#endif
+-
+-#ifdef __ICL
+-#  define FMT_ICC_VERSION __ICL
+-#elif defined(__INTEL_COMPILER)
+-#  define FMT_ICC_VERSION __INTEL_COMPILER
+-#else
+-#  define FMT_ICC_VERSION 0
+-#endif
+-
+-#ifdef __NVCC__
+-#  define FMT_NVCC __NVCC__
+-#else
+-#  define FMT_NVCC 0
+-#endif
+-
+-#ifdef _MSC_VER
+-#  define FMT_MSC_VER _MSC_VER
+-#  define FMT_MSC_WARNING(...) __pragma(warning(__VA_ARGS__))
+-#else
+-#  define FMT_MSC_VER 0
+-#  define FMT_MSC_WARNING(...)
+-#endif
+-
+-#ifdef __has_feature
+-#  define FMT_HAS_FEATURE(x) __has_feature(x)
+-#else
+-#  define FMT_HAS_FEATURE(x) 0
+-#endif
+-
+-#if defined(__has_include) &&                             \
+-    (!defined(__INTELLISENSE__) || FMT_MSC_VER > 1900) && \
+-    (!FMT_ICC_VERSION || FMT_ICC_VERSION >= 1600)
+-#  define FMT_HAS_INCLUDE(x) __has_include(x)
+-#else
+-#  define FMT_HAS_INCLUDE(x) 0
+-#endif
+-
+-#ifdef __has_cpp_attribute
+-#  define FMT_HAS_CPP_ATTRIBUTE(x) __has_cpp_attribute(x)
+-#else
+-#  define FMT_HAS_CPP_ATTRIBUTE(x) 0
+-#endif
+-
+-#ifdef _MSVC_LANG
+-#  define FMT_CPLUSPLUS _MSVC_LANG
+-#else
+-#  define FMT_CPLUSPLUS __cplusplus
+-#endif
+-
+-#define FMT_HAS_CPP14_ATTRIBUTE(attribute) \
+-  (FMT_CPLUSPLUS >= 201402L && FMT_HAS_CPP_ATTRIBUTE(attribute))
+-
+-#define FMT_HAS_CPP17_ATTRIBUTE(attribute) \
+-  (FMT_CPLUSPLUS >= 201703L && FMT_HAS_CPP_ATTRIBUTE(attribute))
+-
+-// Check if relaxed C++14 constexpr is supported.
+-// GCC doesn't allow throw in constexpr until version 6 (bug 67371).
+-#ifndef FMT_USE_CONSTEXPR
+-#  define FMT_USE_CONSTEXPR                                           \
+-    (FMT_HAS_FEATURE(cxx_relaxed_constexpr) || FMT_MSC_VER >= 1912 || \
+-     (FMT_GCC_VERSION >= 600 && __cplusplus >= 201402L)) &&           \
+-        !FMT_NVCC && !FMT_ICC_VERSION
+-#endif
+-#if FMT_USE_CONSTEXPR
+-#  define FMT_CONSTEXPR constexpr
+-#  define FMT_CONSTEXPR_DECL constexpr
+-#else
+-#  define FMT_CONSTEXPR
+-#  define FMT_CONSTEXPR_DECL
+-#endif
+-
+-#if ((__cplusplus >= 202002L) &&                              \
+-     (!defined(_GLIBCXX_RELEASE) || _GLIBCXX_RELEASE > 9)) || \
+-    (__cplusplus >= 201709L && FMT_GCC_VERSION >= 1002)
+-#  define FMT_CONSTEXPR20 constexpr
+-#else
+-#  define FMT_CONSTEXPR20
+-#endif
+-
+-// Check if constexpr std::char_traits<>::compare,length is supported.
+-#if defined(__GLIBCXX__)
+-#  if __cplusplus >= 201703L && defined(_GLIBCXX_RELEASE) && \
+-      _GLIBCXX_RELEASE >= 7  // GCC 7+ libstdc++ has _GLIBCXX_RELEASE.
+-#    define FMT_CONSTEXPR_CHAR_TRAITS constexpr
+-#  endif
+-#elif defined(_LIBCPP_VERSION) && __cplusplus >= 201703L && \
+-    _LIBCPP_VERSION >= 4000
+-#  define FMT_CONSTEXPR_CHAR_TRAITS constexpr
+-#elif FMT_MSC_VER >= 1914 && _MSVC_LANG >= 201703L
+-#  define FMT_CONSTEXPR_CHAR_TRAITS constexpr
+-#endif
+-#ifndef FMT_CONSTEXPR_CHAR_TRAITS
+-#  define FMT_CONSTEXPR_CHAR_TRAITS
+-#endif
+-
+-// Check if exceptions are disabled.
+-#ifndef FMT_EXCEPTIONS
+-#  if (defined(__GNUC__) && !defined(__EXCEPTIONS)) || \
+-      FMT_MSC_VER && !_HAS_EXCEPTIONS
+-#    define FMT_EXCEPTIONS 0
+-#  else
+-#    define FMT_EXCEPTIONS 1
+-#  endif
+-#endif
+-
+-// Define FMT_USE_NOEXCEPT to make fmt use noexcept (C++11 feature).
+-#ifndef FMT_USE_NOEXCEPT
+-#  define FMT_USE_NOEXCEPT 0
+-#endif
+-
+-#if FMT_USE_NOEXCEPT || FMT_HAS_FEATURE(cxx_noexcept) || \
+-    FMT_GCC_VERSION >= 408 || FMT_MSC_VER >= 1900
+-#  define FMT_DETECTED_NOEXCEPT noexcept
+-#  define FMT_HAS_CXX11_NOEXCEPT 1
+-#else
+-#  define FMT_DETECTED_NOEXCEPT throw()
+-#  define FMT_HAS_CXX11_NOEXCEPT 0
+-#endif
+-
+-#ifndef FMT_NOEXCEPT
+-#  if FMT_EXCEPTIONS || FMT_HAS_CXX11_NOEXCEPT
+-#    define FMT_NOEXCEPT FMT_DETECTED_NOEXCEPT
+-#  else
+-#    define FMT_NOEXCEPT
+-#  endif
+-#endif
+-
+-// [[noreturn]] is disabled on MSVC and NVCC because of bogus unreachable code
+-// warnings.
+-#if FMT_EXCEPTIONS && FMT_HAS_CPP_ATTRIBUTE(noreturn) && !FMT_MSC_VER && \
+-    !FMT_NVCC
+-#  define FMT_NORETURN [[noreturn]]
+-#else
+-#  define FMT_NORETURN
+-#endif
+-
+-#if __cplusplus == 201103L || __cplusplus == 201402L
+-#  if defined(__INTEL_COMPILER) || defined(__PGI)
+-#    define FMT_FALLTHROUGH
+-#  elif defined(__clang__)
+-#    define FMT_FALLTHROUGH [[clang::fallthrough]]
+-#  elif FMT_GCC_VERSION >= 700 && \
+-      (!defined(__EDG_VERSION__) || __EDG_VERSION__ >= 520)
+-#    define FMT_FALLTHROUGH [[gnu::fallthrough]]
+-#  else
+-#    define FMT_FALLTHROUGH
+-#  endif
+-#elif FMT_HAS_CPP17_ATTRIBUTE(fallthrough)
+-#  define FMT_FALLTHROUGH [[fallthrough]]
+-#else
+-#  define FMT_FALLTHROUGH
+-#endif
+-
+-#ifndef FMT_NODISCARD
+-#  if FMT_HAS_CPP17_ATTRIBUTE(nodiscard)
+-#    define FMT_NODISCARD [[nodiscard]]
+-#  else
+-#    define FMT_NODISCARD
+-#  endif
+-#endif
+-
+-#ifndef FMT_USE_FLOAT
+-#  define FMT_USE_FLOAT 1
+-#endif
+-#ifndef FMT_USE_DOUBLE
+-#  define FMT_USE_DOUBLE 1
+-#endif
+-#ifndef FMT_USE_LONG_DOUBLE
+-#  define FMT_USE_LONG_DOUBLE 1
+-#endif
+-
+-#ifndef FMT_INLINE
+-#  if FMT_GCC_VERSION || FMT_CLANG_VERSION
+-#    define FMT_INLINE inline __attribute__((always_inline))
+-#  else
+-#    define FMT_INLINE inline
+-#  endif
+-#endif
+-
+-#ifndef FMT_DEPRECATED
+-#  if FMT_HAS_CPP14_ATTRIBUTE(deprecated) || FMT_MSC_VER >= 1900
+-#    define FMT_DEPRECATED [[deprecated]]
+-#  else
+-#    if (defined(__GNUC__) && !defined(__LCC__)) || defined(__clang__)
+-#      define FMT_DEPRECATED __attribute__((deprecated))
+-#    elif FMT_MSC_VER
+-#      define FMT_DEPRECATED __declspec(deprecated)
+-#    else
+-#      define FMT_DEPRECATED /* deprecated */
+-#    endif
+-#  endif
+-#endif
+-
+-#ifndef FMT_BEGIN_NAMESPACE
+-#  define FMT_BEGIN_NAMESPACE \
+-    namespace fmt {           \
+-    inline namespace v8 {
+-#  define FMT_END_NAMESPACE \
+-    }                       \
+-    }
+-#endif
+-
+-#ifndef FMT_MODULE_EXPORT
+-#  define FMT_MODULE_EXPORT
+-#  define FMT_MODULE_EXPORT_BEGIN
+-#  define FMT_MODULE_EXPORT_END
+-#  define FMT_BEGIN_DETAIL_NAMESPACE namespace detail {
+-#  define FMT_END_DETAIL_NAMESPACE }
+-#endif
+-
+-#if !defined(FMT_HEADER_ONLY) && defined(_WIN32)
+-#  define FMT_CLASS_API FMT_MSC_WARNING(suppress : 4275)
+-#  ifdef FMT_EXPORT
+-#    define FMT_API __declspec(dllexport)
+-#  elif defined(FMT_SHARED)
+-#    define FMT_API __declspec(dllimport)
+-#  endif
+-#else
+-#  define FMT_CLASS_API
+-#  if defined(FMT_EXPORT) || defined(FMT_SHARED)
+-#    if defined(__GNUC__) || defined(__clang__)
+-#      define FMT_API __attribute__((visibility("default")))
+-#    endif
+-#  endif
+-#endif
+-#ifndef FMT_API
+-#  define FMT_API
+-#endif
+-
+-// libc++ supports string_view in pre-c++17.
+-#if (FMT_HAS_INCLUDE(<string_view>) &&                       \
+-     (__cplusplus > 201402L || defined(_LIBCPP_VERSION))) || \
+-    (defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910)
+-#  include <string_view>
+-#  define FMT_USE_STRING_VIEW
+-#elif FMT_HAS_INCLUDE("experimental/string_view") && __cplusplus >= 201402L
+-#  include <experimental/string_view>
+-#  define FMT_USE_EXPERIMENTAL_STRING_VIEW
+-#endif
+-
+-#ifndef FMT_UNICODE
+-#  define FMT_UNICODE !FMT_MSC_VER
+-#endif
+-
+-#ifndef FMT_CONSTEVAL
+-#  if ((FMT_GCC_VERSION >= 1000 || FMT_CLANG_VERSION >= 1101) &&      \
+-       __cplusplus > 201703L && !defined(__apple_build_version__)) || \
+-      (defined(__cpp_consteval) &&                                    \
+-       (!FMT_MSC_VER || _MSC_FULL_VER >= 193030704))
+-// consteval is broken in MSVC before VS2022 and Apple clang 13.
+-#    define FMT_CONSTEVAL consteval
+-#    define FMT_HAS_CONSTEVAL
+-#  else
+-#    define FMT_CONSTEVAL
+-#  endif
+-#endif
+-
+-#ifndef FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-#  if defined(__cpp_nontype_template_args) &&                \
+-      ((FMT_GCC_VERSION >= 903 && __cplusplus >= 201709L) || \
+-       __cpp_nontype_template_args >= 201911L)
+-#    define FMT_USE_NONTYPE_TEMPLATE_PARAMETERS 1
+-#  else
+-#    define FMT_USE_NONTYPE_TEMPLATE_PARAMETERS 0
+-#  endif
+-#endif
+-
+-// Enable minimal optimizations for more compact code in debug mode.
+-FMT_GCC_PRAGMA("GCC push_options")
+-#ifndef __OPTIMIZE__
+-FMT_GCC_PRAGMA("GCC optimize(\"Og\")")
+-#endif
+-
+-FMT_BEGIN_NAMESPACE
+-FMT_MODULE_EXPORT_BEGIN
+-
+-// Implementations of enable_if_t and other metafunctions for older systems.
+-template <bool B, typename T = void>
+-using enable_if_t = typename std::enable_if<B, T>::type;
+-template <bool B, typename T, typename F>
+-using conditional_t = typename std::conditional<B, T, F>::type;
+-template <bool B> using bool_constant = std::integral_constant<bool, B>;
+-template <typename T>
+-using remove_reference_t = typename std::remove_reference<T>::type;
+-template <typename T>
+-using remove_const_t = typename std::remove_const<T>::type;
+-template <typename T>
+-using remove_cvref_t = typename std::remove_cv<remove_reference_t<T>>::type;
+-template <typename T> struct type_identity { using type = T; };
+-template <typename T> using type_identity_t = typename type_identity<T>::type;
+-
+-struct monostate {
+-  constexpr monostate() {}
+-};
+-
+-// An enable_if helper to be used in template parameters which results in much
+-// shorter symbols: https://godbolt.org/z/sWw4vP. Extra parentheses are needed
+-// to workaround a bug in MSVC 2019 (see #1140 and #1186).
+-#ifdef FMT_DOC
+-#  define FMT_ENABLE_IF(...)
+-#else
+-#  define FMT_ENABLE_IF(...) enable_if_t<(__VA_ARGS__), int> = 0
+-#endif
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// Suppress "unused variable" warnings with the method described in
+-// https://herbsutter.com/2009/10/18/mailbag-shutting-up-compiler-warnings/.
+-// (void)var does not work on many Intel compilers.
+-template <typename... T> FMT_CONSTEXPR void ignore_unused(const T&...) {}
+-
+-constexpr FMT_INLINE auto is_constant_evaluated(bool default_value = false)
+-    FMT_NOEXCEPT -> bool {
+-#ifdef __cpp_lib_is_constant_evaluated
+-  ignore_unused(default_value);
+-  return std::is_constant_evaluated();
+-#else
+-  return default_value;
+-#endif
+-}
+-
+-// A function to suppress "conditional expression is constant" warnings.
+-template <typename T> constexpr FMT_INLINE auto const_check(T value) -> T {
+-  return value;
+-}
+-
+-FMT_NORETURN FMT_API void assert_fail(const char* file, int line,
+-                                      const char* message);
+-
+-#ifndef FMT_ASSERT
+-#  ifdef NDEBUG
+-// FMT_ASSERT is not empty to avoid -Werror=empty-body.
+-#    define FMT_ASSERT(condition, message) \
+-      ::fmt::detail::ignore_unused((condition), (message))
+-#  else
+-#    define FMT_ASSERT(condition, message)                                    \
+-      ((condition) /* void() fails with -Winvalid-constexpr on clang 4.0.1 */ \
+-           ? (void)0                                                          \
+-           : ::fmt::detail::assert_fail(__FILE__, __LINE__, (message)))
+-#  endif
+-#endif
+-
+-#ifdef __cpp_lib_byte
+-using byte = std::byte;
+-#else
+-enum class byte : unsigned char {};
+-#endif
+-
+-#if defined(FMT_USE_STRING_VIEW)
+-template <typename Char> using std_string_view = std::basic_string_view<Char>;
+-#elif defined(FMT_USE_EXPERIMENTAL_STRING_VIEW)
+-template <typename Char>
+-using std_string_view = std::experimental::basic_string_view<Char>;
+-#else
+-template <typename T> struct std_string_view {};
+-#endif
+-
+-#ifdef FMT_USE_INT128
+-// Do nothing.
+-#elif defined(__SIZEOF_INT128__) && !FMT_NVCC && \
+-    !(FMT_CLANG_VERSION && FMT_MSC_VER)
+-#  define FMT_USE_INT128 1
+-using int128_t = __int128_t;
+-using uint128_t = __uint128_t;
+-template <typename T> inline auto convert_for_visit(T value) -> T {
+-  return value;
+-}
+-#else
+-#  define FMT_USE_INT128 0
+-#endif
+-#if !FMT_USE_INT128
+-enum class int128_t {};
+-enum class uint128_t {};
+-// Reduce template instantiations.
+-template <typename T> inline auto convert_for_visit(T) -> monostate {
+-  return {};
+-}
+-#endif
+-
+-// Casts a nonnegative integer to unsigned.
+-template <typename Int>
+-FMT_CONSTEXPR auto to_unsigned(Int value) ->
+-    typename std::make_unsigned<Int>::type {
+-  FMT_ASSERT(value >= 0, "negative value");
+-  return static_cast<typename std::make_unsigned<Int>::type>(value);
+-}
+-
+-FMT_MSC_WARNING(suppress : 4566) constexpr unsigned char micro[] = "\u00B5";
+-
+-constexpr auto is_utf8() -> bool {
+-  // Avoid buggy sign extensions in MSVC's constant evaluation mode.
+-  // https://developercommunity.visualstudio.com/t/C-difference-in-behavior-for-unsigned/1233612
+-  using uchar = unsigned char;
+-  return FMT_UNICODE || (sizeof(micro) == 3 && uchar(micro[0]) == 0xC2 &&
+-                         uchar(micro[1]) == 0xB5);
+-}
+-FMT_END_DETAIL_NAMESPACE
+-
+-/**
+-  An implementation of ``std::basic_string_view`` for pre-C++17. It provides a
+-  subset of the API. ``fmt::basic_string_view`` is used for format strings even
+-  if ``std::string_view`` is available to prevent issues when a library is
+-  compiled with a different ``-std`` option than the client code (which is not
+-  recommended).
+- */
+-template <typename Char> class basic_string_view {
+- private:
+-  const Char* data_;
+-  size_t size_;
+-
+- public:
+-  using value_type = Char;
+-  using iterator = const Char*;
+-
+-  constexpr basic_string_view() FMT_NOEXCEPT : data_(nullptr), size_(0) {}
+-
+-  /** Constructs a string reference object from a C string and a size. */
+-  constexpr basic_string_view(const Char* s, size_t count) FMT_NOEXCEPT
+-      : data_(s),
+-        size_(count) {}
+-
+-  /**
+-    \rst
+-    Constructs a string reference object from a C string computing
+-    the size with ``std::char_traits<Char>::length``.
+-    \endrst
+-   */
+-  FMT_CONSTEXPR_CHAR_TRAITS
+-  FMT_INLINE
+-  basic_string_view(const Char* s)
+-      : data_(s),
+-        size_(detail::const_check(std::is_same<Char, char>::value &&
+-                                  !detail::is_constant_evaluated(true))
+-                  ? std::strlen(reinterpret_cast<const char*>(s))
+-                  : std::char_traits<Char>::length(s)) {}
+-
+-  /** Constructs a string reference from a ``std::basic_string`` object. */
+-  template <typename Traits, typename Alloc>
+-  FMT_CONSTEXPR basic_string_view(
+-      const std::basic_string<Char, Traits, Alloc>& s) FMT_NOEXCEPT
+-      : data_(s.data()),
+-        size_(s.size()) {}
+-
+-  template <typename S, FMT_ENABLE_IF(std::is_same<
+-                                      S, detail::std_string_view<Char>>::value)>
+-  FMT_CONSTEXPR basic_string_view(S s) FMT_NOEXCEPT : data_(s.data()),
+-                                                      size_(s.size()) {}
+-
+-  /** Returns a pointer to the string data. */
+-  constexpr auto data() const FMT_NOEXCEPT -> const Char* { return data_; }
+-
+-  /** Returns the string size. */
+-  constexpr auto size() const FMT_NOEXCEPT -> size_t { return size_; }
+-
+-  constexpr auto begin() const FMT_NOEXCEPT -> iterator { return data_; }
+-  constexpr auto end() const FMT_NOEXCEPT -> iterator { return data_ + size_; }
+-
+-  constexpr auto operator[](size_t pos) const FMT_NOEXCEPT -> const Char& {
+-    return data_[pos];
+-  }
+-
+-  FMT_CONSTEXPR void remove_prefix(size_t n) FMT_NOEXCEPT {
+-    data_ += n;
+-    size_ -= n;
+-  }
+-
+-  // Lexicographically compare this string reference to other.
+-  FMT_CONSTEXPR_CHAR_TRAITS auto compare(basic_string_view other) const -> int {
+-    size_t str_size = size_ < other.size_ ? size_ : other.size_;
+-    int result = std::char_traits<Char>::compare(data_, other.data_, str_size);
+-    if (result == 0)
+-      result = size_ == other.size_ ? 0 : (size_ < other.size_ ? -1 : 1);
+-    return result;
+-  }
+-
+-  FMT_CONSTEXPR_CHAR_TRAITS friend auto operator==(basic_string_view lhs,
+-                                                   basic_string_view rhs)
+-      -> bool {
+-    return lhs.compare(rhs) == 0;
+-  }
+-  friend auto operator!=(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) != 0;
+-  }
+-  friend auto operator<(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) < 0;
+-  }
+-  friend auto operator<=(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) <= 0;
+-  }
+-  friend auto operator>(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) > 0;
+-  }
+-  friend auto operator>=(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) >= 0;
+-  }
+-};
+-
+-using string_view = basic_string_view<char>;
+-
+-/** Specifies if ``T`` is a character type. Can be specialized by users. */
+-template <typename T> struct is_char : std::false_type {};
+-template <> struct is_char<char> : std::true_type {};
+-
+-// Returns a string view of `s`.
+-template <typename Char, FMT_ENABLE_IF(is_char<Char>::value)>
+-FMT_INLINE auto to_string_view(const Char* s) -> basic_string_view<Char> {
+-  return s;
+-}
+-template <typename Char, typename Traits, typename Alloc>
+-inline auto to_string_view(const std::basic_string<Char, Traits, Alloc>& s)
+-    -> basic_string_view<Char> {
+-  return s;
+-}
+-template <typename Char>
+-constexpr auto to_string_view(basic_string_view<Char> s)
+-    -> basic_string_view<Char> {
+-  return s;
+-}
+-template <typename Char,
+-          FMT_ENABLE_IF(!std::is_empty<detail::std_string_view<Char>>::value)>
+-inline auto to_string_view(detail::std_string_view<Char> s)
+-    -> basic_string_view<Char> {
+-  return s;
+-}
+-
+-// A base class for compile-time strings. It is defined in the fmt namespace to
+-// make formatting functions visible via ADL, e.g. format(FMT_STRING("{}"), 42).
+-struct compile_string {};
+-
+-template <typename S>
+-struct is_compile_string : std::is_base_of<compile_string, S> {};
+-
+-template <typename S, FMT_ENABLE_IF(is_compile_string<S>::value)>
+-constexpr auto to_string_view(const S& s)
+-    -> basic_string_view<typename S::char_type> {
+-  return basic_string_view<typename S::char_type>(s);
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-void to_string_view(...);
+-using fmt::to_string_view;
+-
+-// Specifies whether S is a string type convertible to fmt::basic_string_view.
+-// It should be a constexpr function but MSVC 2017 fails to compile it in
+-// enable_if and MSVC 2015 fails to compile it as an alias template.
+-template <typename S>
+-struct is_string : std::is_class<decltype(to_string_view(std::declval<S>()))> {
+-};
+-
+-template <typename S, typename = void> struct char_t_impl {};
+-template <typename S> struct char_t_impl<S, enable_if_t<is_string<S>::value>> {
+-  using result = decltype(to_string_view(std::declval<S>()));
+-  using type = typename result::value_type;
+-};
+-
+-// Reports a compile-time error if S is not a valid format string.
+-template <typename..., typename S, FMT_ENABLE_IF(!is_compile_string<S>::value)>
+-FMT_INLINE void check_format_string(const S&) {
+-#ifdef FMT_ENFORCE_COMPILE_STRING
+-  static_assert(is_compile_string<S>::value,
+-                "FMT_ENFORCE_COMPILE_STRING requires all format strings to use "
+-                "FMT_STRING.");
+-#endif
+-}
+-template <typename..., typename S, FMT_ENABLE_IF(is_compile_string<S>::value)>
+-void check_format_string(S);
+-
+-FMT_NORETURN FMT_API void throw_format_error(const char* message);
+-
+-struct error_handler {
+-  constexpr error_handler() = default;
+-  constexpr error_handler(const error_handler&) = default;
+-
+-  // This function is intentionally not constexpr to give a compile-time error.
+-  FMT_NORETURN FMT_API void on_error(const char* message);
+-};
+-FMT_END_DETAIL_NAMESPACE
+-
+-/** String's character type. */
+-template <typename S> using char_t = typename detail::char_t_impl<S>::type;
+-
+-/**
+-  \rst
+-  Parsing context consisting of a format string range being parsed and an
+-  argument counter for automatic indexing.
+-  You can use the ``format_parse_context`` type alias for ``char`` instead.
+-  \endrst
+- */
+-template <typename Char, typename ErrorHandler = detail::error_handler>
+-class basic_format_parse_context : private ErrorHandler {
+- private:
+-  basic_string_view<Char> format_str_;
+-  int next_arg_id_;
+-
+- public:
+-  using char_type = Char;
+-  using iterator = typename basic_string_view<Char>::iterator;
+-
+-  explicit constexpr basic_format_parse_context(
+-      basic_string_view<Char> format_str, ErrorHandler eh = {},
+-      int next_arg_id = 0)
+-      : ErrorHandler(eh), format_str_(format_str), next_arg_id_(next_arg_id) {}
+-
+-  /**
+-    Returns an iterator to the beginning of the format string range being
+-    parsed.
+-   */
+-  constexpr auto begin() const FMT_NOEXCEPT -> iterator {
+-    return format_str_.begin();
+-  }
+-
+-  /**
+-    Returns an iterator past the end of the format string range being parsed.
+-   */
+-  constexpr auto end() const FMT_NOEXCEPT -> iterator {
+-    return format_str_.end();
+-  }
+-
+-  /** Advances the begin iterator to ``it``. */
+-  FMT_CONSTEXPR void advance_to(iterator it) {
+-    format_str_.remove_prefix(detail::to_unsigned(it - begin()));
+-  }
+-
+-  /**
+-    Reports an error if using the manual argument indexing; otherwise returns
+-    the next argument index and switches to the automatic indexing.
+-   */
+-  FMT_CONSTEXPR auto next_arg_id() -> int {
+-    // Don't check if the argument id is valid to avoid overhead and because it
+-    // will be checked during formatting anyway.
+-    if (next_arg_id_ >= 0) return next_arg_id_++;
+-    on_error("cannot switch from manual to automatic argument indexing");
+-    return 0;
+-  }
+-
+-  /**
+-    Reports an error if using the automatic argument indexing; otherwise
+-    switches to the manual indexing.
+-   */
+-  FMT_CONSTEXPR void check_arg_id(int) {
+-    if (next_arg_id_ > 0)
+-      on_error("cannot switch from automatic to manual argument indexing");
+-    else
+-      next_arg_id_ = -1;
+-  }
+-
+-  FMT_CONSTEXPR void check_arg_id(basic_string_view<Char>) {}
+-
+-  FMT_CONSTEXPR void on_error(const char* message) {
+-    ErrorHandler::on_error(message);
+-  }
+-
+-  constexpr auto error_handler() const -> ErrorHandler { return *this; }
+-};
+-
+-using format_parse_context = basic_format_parse_context<char>;
+-
+-template <typename Context> class basic_format_arg;
+-template <typename Context> class basic_format_args;
+-template <typename Context> class dynamic_format_arg_store;
+-
+-// A formatter for objects of type T.
+-template <typename T, typename Char = char, typename Enable = void>
+-struct formatter {
+-  // A deleted default constructor indicates a disabled formatter.
+-  formatter() = delete;
+-};
+-
+-// Specifies if T has an enabled formatter specialization. A type can be
+-// formattable even if it doesn't have a formatter e.g. via a conversion.
+-template <typename T, typename Context>
+-using has_formatter =
+-    std::is_constructible<typename Context::template formatter_type<T>>;
+-
+-// Checks whether T is a container with contiguous storage.
+-template <typename T> struct is_contiguous : std::false_type {};
+-template <typename Char>
+-struct is_contiguous<std::basic_string<Char>> : std::true_type {};
+-
+-class appender;
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename Context, typename T>
+-constexpr auto has_const_formatter_impl(T*)
+-    -> decltype(typename Context::template formatter_type<T>().format(
+-                    std::declval<const T&>(), std::declval<Context&>()),
+-                true) {
+-  return true;
+-}
+-template <typename Context>
+-constexpr auto has_const_formatter_impl(...) -> bool {
+-  return false;
+-}
+-template <typename T, typename Context>
+-constexpr auto has_const_formatter() -> bool {
+-  return has_const_formatter_impl<Context>(static_cast<T*>(nullptr));
+-}
+-
+-// Extracts a reference to the container from back_insert_iterator.
+-template <typename Container>
+-inline auto get_container(std::back_insert_iterator<Container> it)
+-    -> Container& {
+-  using bi_iterator = std::back_insert_iterator<Container>;
+-  struct accessor : bi_iterator {
+-    accessor(bi_iterator iter) : bi_iterator(iter) {}
+-    using bi_iterator::container;
+-  };
+-  return *accessor(it).container;
+-}
+-
+-template <typename Char, typename InputIt, typename OutputIt>
+-FMT_CONSTEXPR auto copy_str(InputIt begin, InputIt end, OutputIt out)
+-    -> OutputIt {
+-  while (begin != end) *out++ = static_cast<Char>(*begin++);
+-  return out;
+-}
+-
+-template <typename Char, typename T, typename U,
+-          FMT_ENABLE_IF(
+-              std::is_same<remove_const_t<T>, U>::value&& is_char<U>::value)>
+-FMT_CONSTEXPR auto copy_str(T* begin, T* end, U* out) -> U* {
+-  if (is_constant_evaluated()) return copy_str<Char, T*, U*>(begin, end, out);
+-  auto size = to_unsigned(end - begin);
+-  memcpy(out, begin, size * sizeof(U));
+-  return out + size;
+-}
+-
+-/**
+-  \rst
+-  A contiguous memory buffer with an optional growing ability. It is an internal
+-  class and shouldn't be used directly, only via `~fmt::basic_memory_buffer`.
+-  \endrst
+- */
+-template <typename T> class buffer {
+- private:
+-  T* ptr_;
+-  size_t size_;
+-  size_t capacity_;
+-
+- protected:
+-  // Don't initialize ptr_ since it is not accessed to save a few cycles.
+-  FMT_MSC_WARNING(suppress : 26495)
+-  buffer(size_t sz) FMT_NOEXCEPT : size_(sz), capacity_(sz) {}
+-
+-  FMT_CONSTEXPR20 buffer(T* p = nullptr, size_t sz = 0,
+-                         size_t cap = 0) FMT_NOEXCEPT : ptr_(p),
+-                                                        size_(sz),
+-                                                        capacity_(cap) {}
+-
+-  FMT_CONSTEXPR20 ~buffer() = default;
+-  buffer(buffer&&) = default;
+-
+-  /** Sets the buffer data and capacity. */
+-  FMT_CONSTEXPR void set(T* buf_data, size_t buf_capacity) FMT_NOEXCEPT {
+-    ptr_ = buf_data;
+-    capacity_ = buf_capacity;
+-  }
+-
+-  /** Increases the buffer capacity to hold at least *capacity* elements. */
+-  virtual FMT_CONSTEXPR20 void grow(size_t capacity) = 0;
+-
+- public:
+-  using value_type = T;
+-  using const_reference = const T&;
+-
+-  buffer(const buffer&) = delete;
+-  void operator=(const buffer&) = delete;
+-
+-  auto begin() FMT_NOEXCEPT -> T* { return ptr_; }
+-  auto end() FMT_NOEXCEPT -> T* { return ptr_ + size_; }
+-
+-  auto begin() const FMT_NOEXCEPT -> const T* { return ptr_; }
+-  auto end() const FMT_NOEXCEPT -> const T* { return ptr_ + size_; }
+-
+-  /** Returns the size of this buffer. */
+-  constexpr auto size() const FMT_NOEXCEPT -> size_t { return size_; }
+-
+-  /** Returns the capacity of this buffer. */
+-  constexpr auto capacity() const FMT_NOEXCEPT -> size_t { return capacity_; }
+-
+-  /** Returns a pointer to the buffer data. */
+-  FMT_CONSTEXPR auto data() FMT_NOEXCEPT -> T* { return ptr_; }
+-
+-  /** Returns a pointer to the buffer data. */
+-  FMT_CONSTEXPR auto data() const FMT_NOEXCEPT -> const T* { return ptr_; }
+-
+-  /** Clears this buffer. */
+-  void clear() { size_ = 0; }
+-
+-  // Tries resizing the buffer to contain *count* elements. If T is a POD type
+-  // the new elements may not be initialized.
+-  FMT_CONSTEXPR20 void try_resize(size_t count) {
+-    try_reserve(count);
+-    size_ = count <= capacity_ ? count : capacity_;
+-  }
+-
+-  // Tries increasing the buffer capacity to *new_capacity*. It can increase the
+-  // capacity by a smaller amount than requested but guarantees there is space
+-  // for at least one additional element either by increasing the capacity or by
+-  // flushing the buffer if it is full.
+-  FMT_CONSTEXPR20 void try_reserve(size_t new_capacity) {
+-    if (new_capacity > capacity_) grow(new_capacity);
+-  }
+-
+-  FMT_CONSTEXPR20 void push_back(const T& value) {
+-    try_reserve(size_ + 1);
+-    ptr_[size_++] = value;
+-  }
+-
+-  /** Appends data to the end of the buffer. */
+-  template <typename U> void append(const U* begin, const U* end);
+-
+-  template <typename I> FMT_CONSTEXPR auto operator[](I index) -> T& {
+-    return ptr_[index];
+-  }
+-  template <typename I>
+-  FMT_CONSTEXPR auto operator[](I index) const -> const T& {
+-    return ptr_[index];
+-  }
+-};
+-
+-struct buffer_traits {
+-  explicit buffer_traits(size_t) {}
+-  auto count() const -> size_t { return 0; }
+-  auto limit(size_t size) -> size_t { return size; }
+-};
+-
+-class fixed_buffer_traits {
+- private:
+-  size_t count_ = 0;
+-  size_t limit_;
+-
+- public:
+-  explicit fixed_buffer_traits(size_t limit) : limit_(limit) {}
+-  auto count() const -> size_t { return count_; }
+-  auto limit(size_t size) -> size_t {
+-    size_t n = limit_ > count_ ? limit_ - count_ : 0;
+-    count_ += size;
+-    return size < n ? size : n;
+-  }
+-};
+-
+-// A buffer that writes to an output iterator when flushed.
+-template <typename OutputIt, typename T, typename Traits = buffer_traits>
+-class iterator_buffer final : public Traits, public buffer<T> {
+- private:
+-  OutputIt out_;
+-  enum { buffer_size = 256 };
+-  T data_[buffer_size];
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t) override {
+-    if (this->size() == buffer_size) flush();
+-  }
+-
+-  void flush() {
+-    auto size = this->size();
+-    this->clear();
+-    out_ = copy_str<T>(data_, data_ + this->limit(size), out_);
+-  }
+-
+- public:
+-  explicit iterator_buffer(OutputIt out, size_t n = buffer_size)
+-      : Traits(n), buffer<T>(data_, 0, buffer_size), out_(out) {}
+-  iterator_buffer(iterator_buffer&& other)
+-      : Traits(other), buffer<T>(data_, 0, buffer_size), out_(other.out_) {}
+-  ~iterator_buffer() { flush(); }
+-
+-  auto out() -> OutputIt {
+-    flush();
+-    return out_;
+-  }
+-  auto count() const -> size_t { return Traits::count() + this->size(); }
+-};
+-
+-template <typename T>
+-class iterator_buffer<T*, T, fixed_buffer_traits> final
+-    : public fixed_buffer_traits,
+-      public buffer<T> {
+- private:
+-  T* out_;
+-  enum { buffer_size = 256 };
+-  T data_[buffer_size];
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t) override {
+-    if (this->size() == this->capacity()) flush();
+-  }
+-
+-  void flush() {
+-    size_t n = this->limit(this->size());
+-    if (this->data() == out_) {
+-      out_ += n;
+-      this->set(data_, buffer_size);
+-    }
+-    this->clear();
+-  }
+-
+- public:
+-  explicit iterator_buffer(T* out, size_t n = buffer_size)
+-      : fixed_buffer_traits(n), buffer<T>(out, 0, n), out_(out) {}
+-  iterator_buffer(iterator_buffer&& other)
+-      : fixed_buffer_traits(other),
+-        buffer<T>(std::move(other)),
+-        out_(other.out_) {
+-    if (this->data() != out_) {
+-      this->set(data_, buffer_size);
+-      this->clear();
+-    }
+-  }
+-  ~iterator_buffer() { flush(); }
+-
+-  auto out() -> T* {
+-    flush();
+-    return out_;
+-  }
+-  auto count() const -> size_t {
+-    return fixed_buffer_traits::count() + this->size();
+-  }
+-};
+-
+-template <typename T> class iterator_buffer<T*, T> final : public buffer<T> {
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t) override {}
+-
+- public:
+-  explicit iterator_buffer(T* out, size_t = 0) : buffer<T>(out, 0, ~size_t()) {}
+-
+-  auto out() -> T* { return &*this->end(); }
+-};
+-
+-// A buffer that writes to a container with the contiguous storage.
+-template <typename Container>
+-class iterator_buffer<std::back_insert_iterator<Container>,
+-                      enable_if_t<is_contiguous<Container>::value,
+-                                  typename Container::value_type>>
+-    final : public buffer<typename Container::value_type> {
+- private:
+-  Container& container_;
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t capacity) override {
+-    container_.resize(capacity);
+-    this->set(&container_[0], capacity);
+-  }
+-
+- public:
+-  explicit iterator_buffer(Container& c)
+-      : buffer<typename Container::value_type>(c.size()), container_(c) {}
+-  explicit iterator_buffer(std::back_insert_iterator<Container> out, size_t = 0)
+-      : iterator_buffer(get_container(out)) {}
+-  auto out() -> std::back_insert_iterator<Container> {
+-    return std::back_inserter(container_);
+-  }
+-};
+-
+-// A buffer that counts the number of code units written discarding the output.
+-template <typename T = char> class counting_buffer final : public buffer<T> {
+- private:
+-  enum { buffer_size = 256 };
+-  T data_[buffer_size];
+-  size_t count_ = 0;
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t) override {
+-    if (this->size() != buffer_size) return;
+-    count_ += this->size();
+-    this->clear();
+-  }
+-
+- public:
+-  counting_buffer() : buffer<T>(data_, 0, buffer_size) {}
+-
+-  auto count() -> size_t { return count_ + this->size(); }
+-};
+-
+-template <typename T>
+-using buffer_appender = conditional_t<std::is_same<T, char>::value, appender,
+-                                      std::back_insert_iterator<buffer<T>>>;
+-
+-// Maps an output iterator to a buffer.
+-template <typename T, typename OutputIt>
+-auto get_buffer(OutputIt out) -> iterator_buffer<OutputIt, T> {
+-  return iterator_buffer<OutputIt, T>(out);
+-}
+-
+-template <typename Buffer>
+-auto get_iterator(Buffer& buf) -> decltype(buf.out()) {
+-  return buf.out();
+-}
+-template <typename T> auto get_iterator(buffer<T>& buf) -> buffer_appender<T> {
+-  return buffer_appender<T>(buf);
+-}
+-
+-template <typename T, typename Char = char, typename Enable = void>
+-struct fallback_formatter {
+-  fallback_formatter() = delete;
+-};
+-
+-// Specifies if T has an enabled fallback_formatter specialization.
+-template <typename T, typename Char>
+-using has_fallback_formatter =
+-    std::is_constructible<fallback_formatter<T, Char>>;
+-
+-struct view {};
+-
+-template <typename Char, typename T> struct named_arg : view {
+-  const Char* name;
+-  const T& value;
+-  named_arg(const Char* n, const T& v) : name(n), value(v) {}
+-};
+-
+-template <typename Char> struct named_arg_info {
+-  const Char* name;
+-  int id;
+-};
+-
+-template <typename T, typename Char, size_t NUM_ARGS, size_t NUM_NAMED_ARGS>
+-struct arg_data {
+-  // args_[0].named_args points to named_args_ to avoid bloating format_args.
+-  // +1 to workaround a bug in gcc 7.5 that causes duplicated-branches warning.
+-  T args_[1 + (NUM_ARGS != 0 ? NUM_ARGS : +1)];
+-  named_arg_info<Char> named_args_[NUM_NAMED_ARGS];
+-
+-  template <typename... U>
+-  arg_data(const U&... init) : args_{T(named_args_, NUM_NAMED_ARGS), init...} {}
+-  arg_data(const arg_data& other) = delete;
+-  auto args() const -> const T* { return args_ + 1; }
+-  auto named_args() -> named_arg_info<Char>* { return named_args_; }
+-};
+-
+-template <typename T, typename Char, size_t NUM_ARGS>
+-struct arg_data<T, Char, NUM_ARGS, 0> {
+-  // +1 to workaround a bug in gcc 7.5 that causes duplicated-branches warning.
+-  T args_[NUM_ARGS != 0 ? NUM_ARGS : +1];
+-
+-  template <typename... U>
+-  FMT_CONSTEXPR FMT_INLINE arg_data(const U&... init) : args_{init...} {}
+-  FMT_CONSTEXPR FMT_INLINE auto args() const -> const T* { return args_; }
+-  FMT_CONSTEXPR FMT_INLINE auto named_args() -> std::nullptr_t {
+-    return nullptr;
+-  }
+-};
+-
+-template <typename Char>
+-inline void init_named_args(named_arg_info<Char>*, int, int) {}
+-
+-template <typename T> struct is_named_arg : std::false_type {};
+-template <typename T> struct is_statically_named_arg : std::false_type {};
+-
+-template <typename T, typename Char>
+-struct is_named_arg<named_arg<Char, T>> : std::true_type {};
+-
+-template <typename Char, typename T, typename... Tail,
+-          FMT_ENABLE_IF(!is_named_arg<T>::value)>
+-void init_named_args(named_arg_info<Char>* named_args, int arg_count,
+-                     int named_arg_count, const T&, const Tail&... args) {
+-  init_named_args(named_args, arg_count + 1, named_arg_count, args...);
+-}
+-
+-template <typename Char, typename T, typename... Tail,
+-          FMT_ENABLE_IF(is_named_arg<T>::value)>
+-void init_named_args(named_arg_info<Char>* named_args, int arg_count,
+-                     int named_arg_count, const T& arg, const Tail&... args) {
+-  named_args[named_arg_count++] = {arg.name, arg_count};
+-  init_named_args(named_args, arg_count + 1, named_arg_count, args...);
+-}
+-
+-template <typename... Args>
+-FMT_CONSTEXPR FMT_INLINE void init_named_args(std::nullptr_t, int, int,
+-                                              const Args&...) {}
+-
+-template <bool B = false> constexpr auto count() -> size_t { return B ? 1 : 0; }
+-template <bool B1, bool B2, bool... Tail> constexpr auto count() -> size_t {
+-  return (B1 ? 1 : 0) + count<B2, Tail...>();
+-}
+-
+-template <typename... Args> constexpr auto count_named_args() -> size_t {
+-  return count<is_named_arg<Args>::value...>();
+-}
+-
+-template <typename... Args>
+-constexpr auto count_statically_named_args() -> size_t {
+-  return count<is_statically_named_arg<Args>::value...>();
+-}
+-
+-enum class type {
+-  none_type,
+-  // Integer types should go first,
+-  int_type,
+-  uint_type,
+-  long_long_type,
+-  ulong_long_type,
+-  int128_type,
+-  uint128_type,
+-  bool_type,
+-  char_type,
+-  last_integer_type = char_type,
+-  // followed by floating-point types.
+-  float_type,
+-  double_type,
+-  long_double_type,
+-  last_numeric_type = long_double_type,
+-  cstring_type,
+-  string_type,
+-  pointer_type,
+-  custom_type
+-};
+-
+-// Maps core type T to the corresponding type enum constant.
+-template <typename T, typename Char>
+-struct type_constant : std::integral_constant<type, type::custom_type> {};
+-
+-#define FMT_TYPE_CONSTANT(Type, constant) \
+-  template <typename Char>                \
+-  struct type_constant<Type, Char>        \
+-      : std::integral_constant<type, type::constant> {}
+-
+-FMT_TYPE_CONSTANT(int, int_type);
+-FMT_TYPE_CONSTANT(unsigned, uint_type);
+-FMT_TYPE_CONSTANT(long long, long_long_type);
+-FMT_TYPE_CONSTANT(unsigned long long, ulong_long_type);
+-FMT_TYPE_CONSTANT(int128_t, int128_type);
+-FMT_TYPE_CONSTANT(uint128_t, uint128_type);
+-FMT_TYPE_CONSTANT(bool, bool_type);
+-FMT_TYPE_CONSTANT(Char, char_type);
+-FMT_TYPE_CONSTANT(float, float_type);
+-FMT_TYPE_CONSTANT(double, double_type);
+-FMT_TYPE_CONSTANT(long double, long_double_type);
+-FMT_TYPE_CONSTANT(const Char*, cstring_type);
+-FMT_TYPE_CONSTANT(basic_string_view<Char>, string_type);
+-FMT_TYPE_CONSTANT(const void*, pointer_type);
+-
+-constexpr bool is_integral_type(type t) {
+-  return t > type::none_type && t <= type::last_integer_type;
+-}
+-
+-constexpr bool is_arithmetic_type(type t) {
+-  return t > type::none_type && t <= type::last_numeric_type;
+-}
+-
+-struct unformattable {};
+-struct unformattable_char : unformattable {};
+-struct unformattable_const : unformattable {};
+-struct unformattable_pointer : unformattable {};
+-
+-template <typename Char> struct string_value {
+-  const Char* data;
+-  size_t size;
+-};
+-
+-template <typename Char> struct named_arg_value {
+-  const named_arg_info<Char>* data;
+-  size_t size;
+-};
+-
+-template <typename Context> struct custom_value {
+-  using parse_context = typename Context::parse_context_type;
+-  void* value;
+-  void (*format)(void* arg, parse_context& parse_ctx, Context& ctx);
+-};
+-
+-// A formatting argument value.
+-template <typename Context> class value {
+- public:
+-  using char_type = typename Context::char_type;
+-
+-  union {
+-    monostate no_value;
+-    int int_value;
+-    unsigned uint_value;
+-    long long long_long_value;
+-    unsigned long long ulong_long_value;
+-    int128_t int128_value;
+-    uint128_t uint128_value;
+-    bool bool_value;
+-    char_type char_value;
+-    float float_value;
+-    double double_value;
+-    long double long_double_value;
+-    const void* pointer;
+-    string_value<char_type> string;
+-    custom_value<Context> custom;
+-    named_arg_value<char_type> named_args;
+-  };
+-
+-  constexpr FMT_INLINE value() : no_value() {}
+-  constexpr FMT_INLINE value(int val) : int_value(val) {}
+-  constexpr FMT_INLINE value(unsigned val) : uint_value(val) {}
+-  constexpr FMT_INLINE value(long long val) : long_long_value(val) {}
+-  constexpr FMT_INLINE value(unsigned long long val) : ulong_long_value(val) {}
+-  FMT_INLINE value(int128_t val) : int128_value(val) {}
+-  FMT_INLINE value(uint128_t val) : uint128_value(val) {}
+-  constexpr FMT_INLINE value(float val) : float_value(val) {}
+-  constexpr FMT_INLINE value(double val) : double_value(val) {}
+-  FMT_INLINE value(long double val) : long_double_value(val) {}
+-  constexpr FMT_INLINE value(bool val) : bool_value(val) {}
+-  constexpr FMT_INLINE value(char_type val) : char_value(val) {}
+-  FMT_CONSTEXPR FMT_INLINE value(const char_type* val) {
+-    string.data = val;
+-    if (is_constant_evaluated()) string.size = {};
+-  }
+-  FMT_CONSTEXPR FMT_INLINE value(basic_string_view<char_type> val) {
+-    string.data = val.data();
+-    string.size = val.size();
+-  }
+-  FMT_INLINE value(const void* val) : pointer(val) {}
+-  FMT_INLINE value(const named_arg_info<char_type>* args, size_t size)
+-      : named_args{args, size} {}
+-
+-  template <typename T> FMT_CONSTEXPR FMT_INLINE value(T& val) {
+-    using value_type = remove_cvref_t<T>;
+-    custom.value = const_cast<value_type*>(&val);
+-    // Get the formatter type through the context to allow different contexts
+-    // have different extension points, e.g. `formatter<T>` for `format` and
+-    // `printf_formatter<T>` for `printf`.
+-    custom.format = format_custom_arg<
+-        value_type,
+-        conditional_t<has_formatter<value_type, Context>::value,
+-                      typename Context::template formatter_type<value_type>,
+-                      fallback_formatter<value_type, char_type>>>;
+-  }
+-  value(unformattable);
+-  value(unformattable_char);
+-  value(unformattable_const);
+-  value(unformattable_pointer);
+-
+- private:
+-  // Formats an argument of a custom type, such as a user-defined class.
+-  template <typename T, typename Formatter>
+-  static void format_custom_arg(void* arg,
+-                                typename Context::parse_context_type& parse_ctx,
+-                                Context& ctx) {
+-    auto f = Formatter();
+-    parse_ctx.advance_to(f.parse(parse_ctx));
+-    using qualified_type =
+-        conditional_t<has_const_formatter<T, Context>(), const T, T>;
+-    ctx.advance_to(f.format(*static_cast<qualified_type*>(arg), ctx));
+-  }
+-};
+-
+-template <typename Context, typename T>
+-FMT_CONSTEXPR auto make_arg(const T& value) -> basic_format_arg<Context>;
+-
+-// To minimize the number of types we need to deal with, long is translated
+-// either to int or to long long depending on its size.
+-enum { long_short = sizeof(long) == sizeof(int) };
+-using long_type = conditional_t<long_short, int, long long>;
+-using ulong_type = conditional_t<long_short, unsigned, unsigned long long>;
+-
+-// Maps formatting arguments to core types.
+-// arg_mapper reports errors by returning unformattable instead of using
+-// static_assert because it's used in the is_formattable trait.
+-template <typename Context> struct arg_mapper {
+-  using char_type = typename Context::char_type;
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(signed char val) -> int { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned char val) -> unsigned {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(short val) -> int { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned short val) -> unsigned {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(int val) -> int { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned val) -> unsigned { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(long val) -> long_type { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned long val) -> ulong_type {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(long long val) -> long long { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned long long val)
+-      -> unsigned long long {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(int128_t val) -> int128_t { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(uint128_t val) -> uint128_t { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(bool val) -> bool { return val; }
+-
+-  template <typename T, FMT_ENABLE_IF(std::is_same<T, char>::value ||
+-                                      std::is_same<T, char_type>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(T val) -> char_type {
+-    return val;
+-  }
+-  template <typename T, enable_if_t<(std::is_same<T, wchar_t>::value ||
+-#ifdef __cpp_char8_t
+-                                     std::is_same<T, char8_t>::value ||
+-#endif
+-                                     std::is_same<T, char16_t>::value ||
+-                                     std::is_same<T, char32_t>::value) &&
+-                                        !std::is_same<T, char_type>::value,
+-                                    int> = 0>
+-  FMT_CONSTEXPR FMT_INLINE auto map(T) -> unformattable_char {
+-    return {};
+-  }
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(float val) -> float { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(double val) -> double { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(long double val) -> long double {
+-    return val;
+-  }
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(char_type* val) -> const char_type* {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(const char_type* val) -> const char_type* {
+-    return val;
+-  }
+-  template <typename T,
+-            FMT_ENABLE_IF(is_string<T>::value && !std::is_pointer<T>::value &&
+-                          std::is_same<char_type, char_t<T>>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
+-      -> basic_string_view<char_type> {
+-    return to_string_view(val);
+-  }
+-  template <typename T,
+-            FMT_ENABLE_IF(is_string<T>::value && !std::is_pointer<T>::value &&
+-                          !std::is_same<char_type, char_t<T>>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T&) -> unformattable_char {
+-    return {};
+-  }
+-  template <typename T,
+-            FMT_ENABLE_IF(
+-                std::is_constructible<basic_string_view<char_type>, T>::value &&
+-                !is_string<T>::value && !has_formatter<T, Context>::value &&
+-                !has_fallback_formatter<T, char_type>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
+-      -> basic_string_view<char_type> {
+-    return basic_string_view<char_type>(val);
+-  }
+-  template <
+-      typename T,
+-      FMT_ENABLE_IF(
+-          std::is_constructible<std_string_view<char_type>, T>::value &&
+-          !std::is_constructible<basic_string_view<char_type>, T>::value &&
+-          !is_string<T>::value && !has_formatter<T, Context>::value &&
+-          !has_fallback_formatter<T, char_type>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
+-      -> basic_string_view<char_type> {
+-    return std_string_view<char_type>(val);
+-  }
+-
+-  using cstring_result = conditional_t<std::is_same<char_type, char>::value,
+-                                       const char*, unformattable_pointer>;
+-
+-  FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(const signed char* val)
+-      -> cstring_result {
+-    return map(reinterpret_cast<const char*>(val));
+-  }
+-  FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(const unsigned char* val)
+-      -> cstring_result {
+-    return map(reinterpret_cast<const char*>(val));
+-  }
+-  FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(signed char* val)
+-      -> cstring_result {
+-    return map(reinterpret_cast<const char*>(val));
+-  }
+-  FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(unsigned char* val)
+-      -> cstring_result {
+-    return map(reinterpret_cast<const char*>(val));
+-  }
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(void* val) -> const void* { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(const void* val) -> const void* {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(std::nullptr_t val) -> const void* {
+-    return val;
+-  }
+-
+-  // We use SFINAE instead of a const T* parameter to avoid conflicting with
+-  // the C array overload.
+-  template <
+-      typename T,
+-      FMT_ENABLE_IF(
+-          std::is_member_pointer<T>::value ||
+-          std::is_function<typename std::remove_pointer<T>::type>::value ||
+-          (std::is_convertible<const T&, const void*>::value &&
+-           !std::is_convertible<const T&, const char_type*>::value))>
+-  FMT_CONSTEXPR auto map(const T&) -> unformattable_pointer {
+-    return {};
+-  }
+-
+-  template <typename T, std::size_t N,
+-            FMT_ENABLE_IF(!std::is_same<T, wchar_t>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T (&values)[N]) -> const T (&)[N] {
+-    return values;
+-  }
+-
+-  template <typename T,
+-            FMT_ENABLE_IF(
+-                std::is_enum<T>::value&& std::is_convertible<T, int>::value &&
+-                !has_formatter<T, Context>::value &&
+-                !has_fallback_formatter<T, char_type>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
+-      -> decltype(std::declval<arg_mapper>().map(
+-          static_cast<typename std::underlying_type<T>::type>(val))) {
+-    return map(static_cast<typename std::underlying_type<T>::type>(val));
+-  }
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(detail::byte val) -> unsigned {
+-    return map(static_cast<unsigned char>(val));
+-  }
+-
+-  template <typename T, typename U = remove_cvref_t<T>>
+-  struct formattable
+-      : bool_constant<has_const_formatter<U, Context>() ||
+-                      !std::is_const<remove_reference_t<T>>::value ||
+-                      has_fallback_formatter<U, char_type>::value> {};
+-
+-#if FMT_MSC_VER != 0 && FMT_MSC_VER < 1910
+-  // Workaround a bug in MSVC.
+-  template <typename T> FMT_CONSTEXPR FMT_INLINE auto do_map(T&& val) -> T& {
+-    return val;
+-  }
+-#else
+-  template <typename T, FMT_ENABLE_IF(formattable<T>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto do_map(T&& val) -> T& {
+-    return val;
+-  }
+-  template <typename T, FMT_ENABLE_IF(!formattable<T>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto do_map(T&&) -> unformattable_const {
+-    return {};
+-  }
+-#endif
+-
+-  template <typename T, typename U = remove_cvref_t<T>,
+-            FMT_ENABLE_IF(!is_string<U>::value && !is_char<U>::value &&
+-                          !std::is_array<U>::value &&
+-                          (has_formatter<U, Context>::value ||
+-                           has_fallback_formatter<U, char_type>::value))>
+-  FMT_CONSTEXPR FMT_INLINE auto map(T&& val)
+-      -> decltype(this->do_map(std::forward<T>(val))) {
+-    return do_map(std::forward<T>(val));
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(is_named_arg<T>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& named_arg)
+-      -> decltype(std::declval<arg_mapper>().map(named_arg.value)) {
+-    return map(named_arg.value);
+-  }
+-
+-  auto map(...) -> unformattable { return {}; }
+-};
+-
+-// A type constant after applying arg_mapper<Context>.
+-template <typename T, typename Context>
+-using mapped_type_constant =
+-    type_constant<decltype(arg_mapper<Context>().map(std::declval<const T&>())),
+-                  typename Context::char_type>;
+-
+-enum { packed_arg_bits = 4 };
+-// Maximum number of arguments with packed types.
+-enum { max_packed_args = 62 / packed_arg_bits };
+-enum : unsigned long long { is_unpacked_bit = 1ULL << 63 };
+-enum : unsigned long long { has_named_args_bit = 1ULL << 62 };
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-// An output iterator that appends to a buffer.
+-// It is used to reduce symbol sizes for the common case.
+-class appender : public std::back_insert_iterator<detail::buffer<char>> {
+-  using base = std::back_insert_iterator<detail::buffer<char>>;
+-
+-  template <typename T>
+-  friend auto get_buffer(appender out) -> detail::buffer<char>& {
+-    return detail::get_container(out);
+-  }
+-
+- public:
+-  using std::back_insert_iterator<detail::buffer<char>>::back_insert_iterator;
+-  appender(base it) FMT_NOEXCEPT : base(it) {}
+-  using _Unchecked_type = appender;  // Mark iterator as checked.
+-
+-  auto operator++() FMT_NOEXCEPT -> appender& { return *this; }
+-
+-  auto operator++(int) FMT_NOEXCEPT -> appender { return *this; }
+-};
+-
+-// A formatting argument. It is a trivially copyable/constructible type to
+-// allow storage in basic_memory_buffer.
+-template <typename Context> class basic_format_arg {
+- private:
+-  detail::value<Context> value_;
+-  detail::type type_;
+-
+-  template <typename ContextType, typename T>
+-  friend FMT_CONSTEXPR auto detail::make_arg(const T& value)
+-      -> basic_format_arg<ContextType>;
+-
+-  template <typename Visitor, typename Ctx>
+-  friend FMT_CONSTEXPR auto visit_format_arg(Visitor&& vis,
+-                                             const basic_format_arg<Ctx>& arg)
+-      -> decltype(vis(0));
+-
+-  friend class basic_format_args<Context>;
+-  friend class dynamic_format_arg_store<Context>;
+-
+-  using char_type = typename Context::char_type;
+-
+-  template <typename T, typename Char, size_t NUM_ARGS, size_t NUM_NAMED_ARGS>
+-  friend struct detail::arg_data;
+-
+-  basic_format_arg(const detail::named_arg_info<char_type>* args, size_t size)
+-      : value_(args, size) {}
+-
+- public:
+-  class handle {
+-   public:
+-    explicit handle(detail::custom_value<Context> custom) : custom_(custom) {}
+-
+-    void format(typename Context::parse_context_type& parse_ctx,
+-                Context& ctx) const {
+-      custom_.format(custom_.value, parse_ctx, ctx);
+-    }
+-
+-   private:
+-    detail::custom_value<Context> custom_;
+-  };
+-
+-  constexpr basic_format_arg() : type_(detail::type::none_type) {}
+-
+-  constexpr explicit operator bool() const FMT_NOEXCEPT {
+-    return type_ != detail::type::none_type;
+-  }
+-
+-  auto type() const -> detail::type { return type_; }
+-
+-  auto is_integral() const -> bool { return detail::is_integral_type(type_); }
+-  auto is_arithmetic() const -> bool {
+-    return detail::is_arithmetic_type(type_);
+-  }
+-};
+-
+-/**
+-  \rst
+-  Visits an argument dispatching to the appropriate visit method based on
+-  the argument type. For example, if the argument type is ``double`` then
+-  ``vis(value)`` will be called with the value of type ``double``.
+-  \endrst
+- */
+-template <typename Visitor, typename Context>
+-FMT_CONSTEXPR FMT_INLINE auto visit_format_arg(
+-    Visitor&& vis, const basic_format_arg<Context>& arg) -> decltype(vis(0)) {
+-  switch (arg.type_) {
+-  case detail::type::none_type:
+-    break;
+-  case detail::type::int_type:
+-    return vis(arg.value_.int_value);
+-  case detail::type::uint_type:
+-    return vis(arg.value_.uint_value);
+-  case detail::type::long_long_type:
+-    return vis(arg.value_.long_long_value);
+-  case detail::type::ulong_long_type:
+-    return vis(arg.value_.ulong_long_value);
+-  case detail::type::int128_type:
+-    return vis(detail::convert_for_visit(arg.value_.int128_value));
+-  case detail::type::uint128_type:
+-    return vis(detail::convert_for_visit(arg.value_.uint128_value));
+-  case detail::type::bool_type:
+-    return vis(arg.value_.bool_value);
+-  case detail::type::char_type:
+-    return vis(arg.value_.char_value);
+-  case detail::type::float_type:
+-    return vis(arg.value_.float_value);
+-  case detail::type::double_type:
+-    return vis(arg.value_.double_value);
+-  case detail::type::long_double_type:
+-    return vis(arg.value_.long_double_value);
+-  case detail::type::cstring_type:
+-    return vis(arg.value_.string.data);
+-  case detail::type::string_type:
+-    using sv = basic_string_view<typename Context::char_type>;
+-    return vis(sv(arg.value_.string.data, arg.value_.string.size));
+-  case detail::type::pointer_type:
+-    return vis(arg.value_.pointer);
+-  case detail::type::custom_type:
+-    return vis(typename basic_format_arg<Context>::handle(arg.value_.custom));
+-  }
+-  return vis(monostate());
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename Char, typename InputIt>
+-auto copy_str(InputIt begin, InputIt end, appender out) -> appender {
+-  get_container(out).append(begin, end);
+-  return out;
+-}
+-
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 500
+-// A workaround for gcc 4.8 to make void_t work in a SFINAE context.
+-template <typename... Ts> struct void_t_impl { using type = void; };
+-template <typename... Ts>
+-using void_t = typename detail::void_t_impl<Ts...>::type;
+-#else
+-template <typename...> using void_t = void;
+-#endif
+-
+-template <typename It, typename T, typename Enable = void>
+-struct is_output_iterator : std::false_type {};
+-
+-template <typename It, typename T>
+-struct is_output_iterator<
+-    It, T,
+-    void_t<typename std::iterator_traits<It>::iterator_category,
+-           decltype(*std::declval<It>() = std::declval<T>())>>
+-    : std::true_type {};
+-
+-template <typename OutputIt>
+-struct is_back_insert_iterator : std::false_type {};
+-template <typename Container>
+-struct is_back_insert_iterator<std::back_insert_iterator<Container>>
+-    : std::true_type {};
+-
+-template <typename OutputIt>
+-struct is_contiguous_back_insert_iterator : std::false_type {};
+-template <typename Container>
+-struct is_contiguous_back_insert_iterator<std::back_insert_iterator<Container>>
+-    : is_contiguous<Container> {};
+-template <>
+-struct is_contiguous_back_insert_iterator<appender> : std::true_type {};
+-
+-// A type-erased reference to an std::locale to avoid heavy <locale> include.
+-class locale_ref {
+- private:
+-  const void* locale_;  // A type-erased pointer to std::locale.
+-
+- public:
+-  constexpr locale_ref() : locale_(nullptr) {}
+-  template <typename Locale> explicit locale_ref(const Locale& loc);
+-
+-  explicit operator bool() const FMT_NOEXCEPT { return locale_ != nullptr; }
+-
+-  template <typename Locale> auto get() const -> Locale;
+-};
+-
+-template <typename> constexpr auto encode_types() -> unsigned long long {
+-  return 0;
+-}
+-
+-template <typename Context, typename Arg, typename... Args>
+-constexpr auto encode_types() -> unsigned long long {
+-  return static_cast<unsigned>(mapped_type_constant<Arg, Context>::value) |
+-         (encode_types<Context, Args...>() << packed_arg_bits);
+-}
+-
+-template <typename Context, typename T>
+-FMT_CONSTEXPR auto make_arg(const T& value) -> basic_format_arg<Context> {
+-  basic_format_arg<Context> arg;
+-  arg.type_ = mapped_type_constant<T, Context>::value;
+-  arg.value_ = arg_mapper<Context>().map(value);
+-  return arg;
+-}
+-
+-// The type template parameter is there to avoid an ODR violation when using
+-// a fallback formatter in one translation unit and an implicit conversion in
+-// another (not recommended).
+-template <bool IS_PACKED, typename Context, type, typename T,
+-          FMT_ENABLE_IF(IS_PACKED)>
+-FMT_CONSTEXPR FMT_INLINE auto make_arg(T&& val) -> value<Context> {
+-  const auto& arg = arg_mapper<Context>().map(std::forward<T>(val));
+-
+-  constexpr bool formattable_char =
+-      !std::is_same<decltype(arg), const unformattable_char&>::value;
+-  static_assert(formattable_char, "Mixing character types is disallowed.");
+-
+-  constexpr bool formattable_const =
+-      !std::is_same<decltype(arg), const unformattable_const&>::value;
+-  static_assert(formattable_const, "Cannot format a const argument.");
+-
+-  // Formatting of arbitrary pointers is disallowed. If you want to output
+-  // a pointer cast it to "void *" or "const void *". In particular, this
+-  // forbids formatting of "[const] volatile char *" which is printed as bool
+-  // by iostreams.
+-  constexpr bool formattable_pointer =
+-      !std::is_same<decltype(arg), const unformattable_pointer&>::value;
+-  static_assert(formattable_pointer,
+-                "Formatting of non-void pointers is disallowed.");
+-
+-  constexpr bool formattable =
+-      !std::is_same<decltype(arg), const unformattable&>::value;
+-  static_assert(
+-      formattable,
+-      "Cannot format an argument. To make type T formattable provide a "
+-      "formatter<T> specialization: https://fmt.dev/latest/api.html#udt");
+-  return {arg};
+-}
+-
+-template <bool IS_PACKED, typename Context, type, typename T,
+-          FMT_ENABLE_IF(!IS_PACKED)>
+-inline auto make_arg(const T& value) -> basic_format_arg<Context> {
+-  return make_arg<Context>(value);
+-}
+-FMT_END_DETAIL_NAMESPACE
+-
+-// Formatting context.
+-template <typename OutputIt, typename Char> class basic_format_context {
+- public:
+-  /** The character type for the output. */
+-  using char_type = Char;
+-
+- private:
+-  OutputIt out_;
+-  basic_format_args<basic_format_context> args_;
+-  detail::locale_ref loc_;
+-
+- public:
+-  using iterator = OutputIt;
+-  using format_arg = basic_format_arg<basic_format_context>;
+-  using parse_context_type = basic_format_parse_context<Char>;
+-  template <typename T> using formatter_type = formatter<T, char_type>;
+-
+-  basic_format_context(basic_format_context&&) = default;
+-  basic_format_context(const basic_format_context&) = delete;
+-  void operator=(const basic_format_context&) = delete;
+-  /**
+-   Constructs a ``basic_format_context`` object. References to the arguments are
+-   stored in the object so make sure they have appropriate lifetimes.
+-   */
+-  constexpr basic_format_context(
+-      OutputIt out, basic_format_args<basic_format_context> ctx_args,
+-      detail::locale_ref loc = detail::locale_ref())
+-      : out_(out), args_(ctx_args), loc_(loc) {}
+-
+-  constexpr auto arg(int id) const -> format_arg { return args_.get(id); }
+-  FMT_CONSTEXPR auto arg(basic_string_view<char_type> name) -> format_arg {
+-    return args_.get(name);
+-  }
+-  FMT_CONSTEXPR auto arg_id(basic_string_view<char_type> name) -> int {
+-    return args_.get_id(name);
+-  }
+-  auto args() const -> const basic_format_args<basic_format_context>& {
+-    return args_;
+-  }
+-
+-  FMT_CONSTEXPR auto error_handler() -> detail::error_handler { return {}; }
+-  void on_error(const char* message) { error_handler().on_error(message); }
+-
+-  // Returns an iterator to the beginning of the output range.
+-  FMT_CONSTEXPR auto out() -> iterator { return out_; }
+-
+-  // Advances the begin iterator to ``it``.
+-  void advance_to(iterator it) {
+-    if (!detail::is_back_insert_iterator<iterator>()) out_ = it;
+-  }
+-
+-  FMT_CONSTEXPR auto locale() -> detail::locale_ref { return loc_; }
+-};
+-
+-template <typename Char>
+-using buffer_context =
+-    basic_format_context<detail::buffer_appender<Char>, Char>;
+-using format_context = buffer_context<char>;
+-
+-// Workaround an alias issue: https://stackoverflow.com/q/62767544/471164.
+-#define FMT_BUFFER_CONTEXT(Char) \
+-  basic_format_context<detail::buffer_appender<Char>, Char>
+-
+-template <typename T, typename Char = char>
+-using is_formattable = bool_constant<
+-    !std::is_base_of<detail::unformattable,
+-                     decltype(detail::arg_mapper<buffer_context<Char>>().map(
+-                         std::declval<T>()))>::value &&
+-    !detail::has_fallback_formatter<T, Char>::value>;
+-
+-/**
+-  \rst
+-  An array of references to arguments. It can be implicitly converted into
+-  `~fmt::basic_format_args` for passing into type-erased formatting functions
+-  such as `~fmt::vformat`.
+-  \endrst
+- */
+-template <typename Context, typename... Args>
+-class format_arg_store
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-    // Workaround a GCC template argument substitution bug.
+-    : public basic_format_args<Context>
+-#endif
+-{
+- private:
+-  static const size_t num_args = sizeof...(Args);
+-  static const size_t num_named_args = detail::count_named_args<Args...>();
+-  static const bool is_packed = num_args <= detail::max_packed_args;
+-
+-  using value_type = conditional_t<is_packed, detail::value<Context>,
+-                                   basic_format_arg<Context>>;
+-
+-  detail::arg_data<value_type, typename Context::char_type, num_args,
+-                   num_named_args>
+-      data_;
+-
+-  friend class basic_format_args<Context>;
+-
+-  static constexpr unsigned long long desc =
+-      (is_packed ? detail::encode_types<Context, Args...>()
+-                 : detail::is_unpacked_bit | num_args) |
+-      (num_named_args != 0
+-           ? static_cast<unsigned long long>(detail::has_named_args_bit)
+-           : 0);
+-
+- public:
+-  template <typename... T>
+-  FMT_CONSTEXPR FMT_INLINE format_arg_store(T&&... args)
+-      :
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-        basic_format_args<Context>(*this),
+-#endif
+-        data_{detail::make_arg<
+-            is_packed, Context,
+-            detail::mapped_type_constant<remove_cvref_t<T>, Context>::value>(
+-            std::forward<T>(args))...} {
+-    detail::init_named_args(data_.named_args(), 0, 0, args...);
+-  }
+-};
+-
+-/**
+-  \rst
+-  Constructs a `~fmt::format_arg_store` object that contains references to
+-  arguments and can be implicitly converted to `~fmt::format_args`. `Context`
+-  can be omitted in which case it defaults to `~fmt::context`.
+-  See `~fmt::arg` for lifetime considerations.
+-  \endrst
+- */
+-template <typename Context = format_context, typename... Args>
+-constexpr auto make_format_args(Args&&... args)
+-    -> format_arg_store<Context, remove_cvref_t<Args>...> {
+-  return {std::forward<Args>(args)...};
+-}
+-
+-/**
+-  \rst
+-  Returns a named argument to be used in a formatting function.
+-  It should only be used in a call to a formatting function or
+-  `dynamic_format_arg_store::push_back`.
+-
+-  **Example**::
+-
+-    fmt::print("Elapsed time: {s:.2f} seconds", fmt::arg("s", 1.23));
+-  \endrst
+- */
+-template <typename Char, typename T>
+-inline auto arg(const Char* name, const T& arg) -> detail::named_arg<Char, T> {
+-  static_assert(!detail::is_named_arg<T>(), "nested named arguments");
+-  return {name, arg};
+-}
+-
+-/**
+-  \rst
+-  A view of a collection of formatting arguments. To avoid lifetime issues it
+-  should only be used as a parameter type in type-erased functions such as
+-  ``vformat``::
+-
+-    void vlog(string_view format_str, format_args args);  // OK
+-    format_args args = make_format_args(42);  // Error: dangling reference
+-  \endrst
+- */
+-template <typename Context> class basic_format_args {
+- public:
+-  using size_type = int;
+-  using format_arg = basic_format_arg<Context>;
+-
+- private:
+-  // A descriptor that contains information about formatting arguments.
+-  // If the number of arguments is less or equal to max_packed_args then
+-  // argument types are passed in the descriptor. This reduces binary code size
+-  // per formatting function call.
+-  unsigned long long desc_;
+-  union {
+-    // If is_packed() returns true then argument values are stored in values_;
+-    // otherwise they are stored in args_. This is done to improve cache
+-    // locality and reduce compiled code size since storing larger objects
+-    // may require more code (at least on x86-64) even if the same amount of
+-    // data is actually copied to stack. It saves ~10% on the bloat test.
+-    const detail::value<Context>* values_;
+-    const format_arg* args_;
+-  };
+-
+-  constexpr auto is_packed() const -> bool {
+-    return (desc_ & detail::is_unpacked_bit) == 0;
+-  }
+-  auto has_named_args() const -> bool {
+-    return (desc_ & detail::has_named_args_bit) != 0;
+-  }
+-
+-  FMT_CONSTEXPR auto type(int index) const -> detail::type {
+-    int shift = index * detail::packed_arg_bits;
+-    unsigned int mask = (1 << detail::packed_arg_bits) - 1;
+-    return static_cast<detail::type>((desc_ >> shift) & mask);
+-  }
+-
+-  constexpr FMT_INLINE basic_format_args(unsigned long long desc,
+-                                         const detail::value<Context>* values)
+-      : desc_(desc), values_(values) {}
+-  constexpr basic_format_args(unsigned long long desc, const format_arg* args)
+-      : desc_(desc), args_(args) {}
+-
+- public:
+-  constexpr basic_format_args() : desc_(0), args_(nullptr) {}
+-
+-  /**
+-   \rst
+-   Constructs a `basic_format_args` object from `~fmt::format_arg_store`.
+-   \endrst
+-   */
+-  template <typename... Args>
+-  constexpr FMT_INLINE basic_format_args(
+-      const format_arg_store<Context, Args...>& store)
+-      : basic_format_args(format_arg_store<Context, Args...>::desc,
+-                          store.data_.args()) {}
+-
+-  /**
+-   \rst
+-   Constructs a `basic_format_args` object from
+-   `~fmt::dynamic_format_arg_store`.
+-   \endrst
+-   */
+-  constexpr FMT_INLINE basic_format_args(
+-      const dynamic_format_arg_store<Context>& store)
+-      : basic_format_args(store.get_types(), store.data()) {}
+-
+-  /**
+-   \rst
+-   Constructs a `basic_format_args` object from a dynamic set of arguments.
+-   \endrst
+-   */
+-  constexpr basic_format_args(const format_arg* args, int count)
+-      : basic_format_args(detail::is_unpacked_bit | detail::to_unsigned(count),
+-                          args) {}
+-
+-  /** Returns the argument with the specified id. */
+-  FMT_CONSTEXPR auto get(int id) const -> format_arg {
+-    format_arg arg;
+-    if (!is_packed()) {
+-      if (id < max_size()) arg = args_[id];
+-      return arg;
+-    }
+-    if (id >= detail::max_packed_args) return arg;
+-    arg.type_ = type(id);
+-    if (arg.type_ == detail::type::none_type) return arg;
+-    arg.value_ = values_[id];
+-    return arg;
+-  }
+-
+-  template <typename Char>
+-  auto get(basic_string_view<Char> name) const -> format_arg {
+-    int id = get_id(name);
+-    return id >= 0 ? get(id) : format_arg();
+-  }
+-
+-  template <typename Char>
+-  auto get_id(basic_string_view<Char> name) const -> int {
+-    if (!has_named_args()) return -1;
+-    const auto& named_args =
+-        (is_packed() ? values_[-1] : args_[-1].value_).named_args;
+-    for (size_t i = 0; i < named_args.size; ++i) {
+-      if (named_args.data[i].name == name) return named_args.data[i].id;
+-    }
+-    return -1;
+-  }
+-
+-  auto max_size() const -> int {
+-    unsigned long long max_packed = detail::max_packed_args;
+-    return static_cast<int>(is_packed() ? max_packed
+-                                        : desc_ & ~detail::is_unpacked_bit);
+-  }
+-};
+-
+-/** An alias to ``basic_format_args<format_context>``. */
+-// A separate type would result in shorter symbols but break ABI compatibility
+-// between clang and gcc on ARM (#1919).
+-using format_args = basic_format_args<format_context>;
+-
+-// We cannot use enum classes as bit fields because of a gcc bug
+-// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414.
+-namespace align {
+-enum type { none, left, right, center, numeric };
+-}
+-using align_t = align::type;
+-namespace sign {
+-enum type { none, minus, plus, space };
+-}
+-using sign_t = sign::type;
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// Workaround an array initialization issue in gcc 4.8.
+-template <typename Char> struct fill_t {
+- private:
+-  enum { max_size = 4 };
+-  Char data_[max_size] = {Char(' '), Char(0), Char(0), Char(0)};
+-  unsigned char size_ = 1;
+-
+- public:
+-  FMT_CONSTEXPR void operator=(basic_string_view<Char> s) {
+-    auto size = s.size();
+-    if (size > max_size) return throw_format_error("invalid fill");
+-    for (size_t i = 0; i < size; ++i) data_[i] = s[i];
+-    size_ = static_cast<unsigned char>(size);
+-  }
+-
+-  constexpr auto size() const -> size_t { return size_; }
+-  constexpr auto data() const -> const Char* { return data_; }
+-
+-  FMT_CONSTEXPR auto operator[](size_t index) -> Char& { return data_[index]; }
+-  FMT_CONSTEXPR auto operator[](size_t index) const -> const Char& {
+-    return data_[index];
+-  }
+-};
+-FMT_END_DETAIL_NAMESPACE
+-
+-enum class presentation_type : unsigned char {
+-  none,
+-  // Integer types should go first,
+-  dec,             // 'd'
+-  oct,             // 'o'
+-  hex_lower,       // 'x'
+-  hex_upper,       // 'X'
+-  bin_lower,       // 'b'
+-  bin_upper,       // 'B'
+-  hexfloat_lower,  // 'a'
+-  hexfloat_upper,  // 'A'
+-  exp_lower,       // 'e'
+-  exp_upper,       // 'E'
+-  fixed_lower,     // 'f'
+-  fixed_upper,     // 'F'
+-  general_lower,   // 'g'
+-  general_upper,   // 'G'
+-  chr,             // 'c'
+-  string,          // 's'
+-  pointer          // 'p'
+-};
+-
+-// Format specifiers for built-in and string types.
+-template <typename Char> struct basic_format_specs {
+-  int width;
+-  int precision;
+-  presentation_type type;
+-  align_t align : 4;
+-  sign_t sign : 3;
+-  bool alt : 1;  // Alternate form ('#').
+-  bool localized : 1;
+-  detail::fill_t<Char> fill;
+-
+-  constexpr basic_format_specs()
+-      : width(0),
+-        precision(-1),
+-        type(presentation_type::none),
+-        align(align::none),
+-        sign(sign::none),
+-        alt(false),
+-        localized(false) {}
+-};
+-
+-using format_specs = basic_format_specs<char>;
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-enum class arg_id_kind { none, index, name };
+-
+-// An argument reference.
+-template <typename Char> struct arg_ref {
+-  FMT_CONSTEXPR arg_ref() : kind(arg_id_kind::none), val() {}
+-
+-  FMT_CONSTEXPR explicit arg_ref(int index)
+-      : kind(arg_id_kind::index), val(index) {}
+-  FMT_CONSTEXPR explicit arg_ref(basic_string_view<Char> name)
+-      : kind(arg_id_kind::name), val(name) {}
+-
+-  FMT_CONSTEXPR auto operator=(int idx) -> arg_ref& {
+-    kind = arg_id_kind::index;
+-    val.index = idx;
+-    return *this;
+-  }
+-
+-  arg_id_kind kind;
+-  union value {
+-    FMT_CONSTEXPR value(int id = 0) : index{id} {}
+-    FMT_CONSTEXPR value(basic_string_view<Char> n) : name(n) {}
+-
+-    int index;
+-    basic_string_view<Char> name;
+-  } val;
+-};
+-
+-// Format specifiers with width and precision resolved at formatting rather
+-// than parsing time to allow re-using the same parsed specifiers with
+-// different sets of arguments (precompilation of format strings).
+-template <typename Char>
+-struct dynamic_format_specs : basic_format_specs<Char> {
+-  arg_ref<Char> width_ref;
+-  arg_ref<Char> precision_ref;
+-};
+-
+-struct auto_id {};
+-
+-// A format specifier handler that sets fields in basic_format_specs.
+-template <typename Char> class specs_setter {
+- protected:
+-  basic_format_specs<Char>& specs_;
+-
+- public:
+-  explicit FMT_CONSTEXPR specs_setter(basic_format_specs<Char>& specs)
+-      : specs_(specs) {}
+-
+-  FMT_CONSTEXPR specs_setter(const specs_setter& other)
+-      : specs_(other.specs_) {}
+-
+-  FMT_CONSTEXPR void on_align(align_t align) { specs_.align = align; }
+-  FMT_CONSTEXPR void on_fill(basic_string_view<Char> fill) {
+-    specs_.fill = fill;
+-  }
+-  FMT_CONSTEXPR void on_sign(sign_t s) { specs_.sign = s; }
+-  FMT_CONSTEXPR void on_hash() { specs_.alt = true; }
+-  FMT_CONSTEXPR void on_localized() { specs_.localized = true; }
+-
+-  FMT_CONSTEXPR void on_zero() {
+-    if (specs_.align == align::none) specs_.align = align::numeric;
+-    specs_.fill[0] = Char('0');
+-  }
+-
+-  FMT_CONSTEXPR void on_width(int width) { specs_.width = width; }
+-  FMT_CONSTEXPR void on_precision(int precision) {
+-    specs_.precision = precision;
+-  }
+-  FMT_CONSTEXPR void end_precision() {}
+-
+-  FMT_CONSTEXPR void on_type(presentation_type type) { specs_.type = type; }
+-};
+-
+-// Format spec handler that saves references to arguments representing dynamic
+-// width and precision to be resolved at formatting time.
+-template <typename ParseContext>
+-class dynamic_specs_handler
+-    : public specs_setter<typename ParseContext::char_type> {
+- public:
+-  using char_type = typename ParseContext::char_type;
+-
+-  FMT_CONSTEXPR dynamic_specs_handler(dynamic_format_specs<char_type>& specs,
+-                                      ParseContext& ctx)
+-      : specs_setter<char_type>(specs), specs_(specs), context_(ctx) {}
+-
+-  FMT_CONSTEXPR dynamic_specs_handler(const dynamic_specs_handler& other)
+-      : specs_setter<char_type>(other),
+-        specs_(other.specs_),
+-        context_(other.context_) {}
+-
+-  template <typename Id> FMT_CONSTEXPR void on_dynamic_width(Id arg_id) {
+-    specs_.width_ref = make_arg_ref(arg_id);
+-  }
+-
+-  template <typename Id> FMT_CONSTEXPR void on_dynamic_precision(Id arg_id) {
+-    specs_.precision_ref = make_arg_ref(arg_id);
+-  }
+-
+-  FMT_CONSTEXPR void on_error(const char* message) {
+-    context_.on_error(message);
+-  }
+-
+- private:
+-  dynamic_format_specs<char_type>& specs_;
+-  ParseContext& context_;
+-
+-  using arg_ref_type = arg_ref<char_type>;
+-
+-  FMT_CONSTEXPR auto make_arg_ref(int arg_id) -> arg_ref_type {
+-    context_.check_arg_id(arg_id);
+-    return arg_ref_type(arg_id);
+-  }
+-
+-  FMT_CONSTEXPR auto make_arg_ref(auto_id) -> arg_ref_type {
+-    return arg_ref_type(context_.next_arg_id());
+-  }
+-
+-  FMT_CONSTEXPR auto make_arg_ref(basic_string_view<char_type> arg_id)
+-      -> arg_ref_type {
+-    context_.check_arg_id(arg_id);
+-    basic_string_view<char_type> format_str(
+-        context_.begin(), to_unsigned(context_.end() - context_.begin()));
+-    return arg_ref_type(arg_id);
+-  }
+-};
+-
+-template <typename Char> constexpr bool is_ascii_letter(Char c) {
+-  return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');
+-}
+-
+-// Converts a character to ASCII. Returns a number > 127 on conversion failure.
+-template <typename Char, FMT_ENABLE_IF(std::is_integral<Char>::value)>
+-constexpr auto to_ascii(Char value) -> Char {
+-  return value;
+-}
+-template <typename Char, FMT_ENABLE_IF(std::is_enum<Char>::value)>
+-constexpr auto to_ascii(Char value) ->
+-    typename std::underlying_type<Char>::type {
+-  return value;
+-}
+-
+-template <typename Char>
+-FMT_CONSTEXPR auto code_point_length(const Char* begin) -> int {
+-  if (const_check(sizeof(Char) != 1)) return 1;
+-  auto lengths =
+-      "\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0\0\0\0\0\0\2\2\2\2\3\3\4";
+-  int len = lengths[static_cast<unsigned char>(*begin) >> 3];
+-
+-  // Compute the pointer to the next character early so that the next
+-  // iteration can start working on the next character. Neither Clang
+-  // nor GCC figure out this reordering on their own.
+-  return len + !len;
+-}
+-
+-// Return the result via the out param to workaround gcc bug 77539.
+-template <bool IS_CONSTEXPR, typename T, typename Ptr = const T*>
+-FMT_CONSTEXPR auto find(Ptr first, Ptr last, T value, Ptr& out) -> bool {
+-  for (out = first; out != last; ++out) {
+-    if (*out == value) return true;
+-  }
+-  return false;
+-}
+-
+-template <>
+-inline auto find<false, char>(const char* first, const char* last, char value,
+-                              const char*& out) -> bool {
+-  out = static_cast<const char*>(
+-      std::memchr(first, value, to_unsigned(last - first)));
+-  return out != nullptr;
+-}
+-
+-// Parses the range [begin, end) as an unsigned integer. This function assumes
+-// that the range is non-empty and the first character is a digit.
+-template <typename Char>
+-FMT_CONSTEXPR auto parse_nonnegative_int(const Char*& begin, const Char* end,
+-                                         int error_value) noexcept -> int {
+-  FMT_ASSERT(begin != end && '0' <= *begin && *begin <= '9', "");
+-  unsigned value = 0, prev = 0;
+-  auto p = begin;
+-  do {
+-    prev = value;
+-    value = value * 10 + unsigned(*p - '0');
+-    ++p;
+-  } while (p != end && '0' <= *p && *p <= '9');
+-  auto num_digits = p - begin;
+-  begin = p;
+-  if (num_digits <= std::numeric_limits<int>::digits10)
+-    return static_cast<int>(value);
+-  // Check for overflow.
+-  const unsigned max = to_unsigned((std::numeric_limits<int>::max)());
+-  return num_digits == std::numeric_limits<int>::digits10 + 1 &&
+-                 prev * 10ull + unsigned(p[-1] - '0') <= max
+-             ? static_cast<int>(value)
+-             : error_value;
+-}
+-
+-// Parses fill and alignment.
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR auto parse_align(const Char* begin, const Char* end,
+-                               Handler&& handler) -> const Char* {
+-  FMT_ASSERT(begin != end, "");
+-  auto align = align::none;
+-  auto p = begin + code_point_length(begin);
+-  if (p >= end) p = begin;
+-  for (;;) {
+-    switch (to_ascii(*p)) {
+-    case '<':
+-      align = align::left;
+-      break;
+-    case '>':
+-      align = align::right;
+-      break;
+-    case '^':
+-      align = align::center;
+-      break;
+-    default:
+-      break;
+-    }
+-    if (align != align::none) {
+-      if (p != begin) {
+-        auto c = *begin;
+-        if (c == '{')
+-          return handler.on_error("invalid fill character '{'"), begin;
+-        handler.on_fill(basic_string_view<Char>(begin, to_unsigned(p - begin)));
+-        begin = p + 1;
+-      } else
+-        ++begin;
+-      handler.on_align(align);
+-      break;
+-    } else if (p == begin) {
+-      break;
+-    }
+-    p = begin;
+-  }
+-  return begin;
+-}
+-
+-template <typename Char> FMT_CONSTEXPR bool is_name_start(Char c) {
+-  return ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || '_' == c;
+-}
+-
+-template <typename Char, typename IDHandler>
+-FMT_CONSTEXPR auto do_parse_arg_id(const Char* begin, const Char* end,
+-                                   IDHandler&& handler) -> const Char* {
+-  FMT_ASSERT(begin != end, "");
+-  Char c = *begin;
+-  if (c >= '0' && c <= '9') {
+-    int index = 0;
+-    if (c != '0')
+-      index =
+-          parse_nonnegative_int(begin, end, (std::numeric_limits<int>::max)());
+-    else
+-      ++begin;
+-    if (begin == end || (*begin != '}' && *begin != ':'))
+-      handler.on_error("invalid format string");
+-    else
+-      handler(index);
+-    return begin;
+-  }
+-  if (!is_name_start(c)) {
+-    handler.on_error("invalid format string");
+-    return begin;
+-  }
+-  auto it = begin;
+-  do {
+-    ++it;
+-  } while (it != end && (is_name_start(c = *it) || ('0' <= c && c <= '9')));
+-  handler(basic_string_view<Char>(begin, to_unsigned(it - begin)));
+-  return it;
+-}
+-
+-template <typename Char, typename IDHandler>
+-FMT_CONSTEXPR FMT_INLINE auto parse_arg_id(const Char* begin, const Char* end,
+-                                           IDHandler&& handler) -> const Char* {
+-  Char c = *begin;
+-  if (c != '}' && c != ':') return do_parse_arg_id(begin, end, handler);
+-  handler();
+-  return begin;
+-}
+-
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR auto parse_width(const Char* begin, const Char* end,
+-                               Handler&& handler) -> const Char* {
+-  using detail::auto_id;
+-  struct width_adapter {
+-    Handler& handler;
+-
+-    FMT_CONSTEXPR void operator()() { handler.on_dynamic_width(auto_id()); }
+-    FMT_CONSTEXPR void operator()(int id) { handler.on_dynamic_width(id); }
+-    FMT_CONSTEXPR void operator()(basic_string_view<Char> id) {
+-      handler.on_dynamic_width(id);
+-    }
+-    FMT_CONSTEXPR void on_error(const char* message) {
+-      if (message) handler.on_error(message);
+-    }
+-  };
+-
+-  FMT_ASSERT(begin != end, "");
+-  if ('0' <= *begin && *begin <= '9') {
+-    int width = parse_nonnegative_int(begin, end, -1);
+-    if (width != -1)
+-      handler.on_width(width);
+-    else
+-      handler.on_error("number is too big");
+-  } else if (*begin == '{') {
+-    ++begin;
+-    if (begin != end) begin = parse_arg_id(begin, end, width_adapter{handler});
+-    if (begin == end || *begin != '}')
+-      return handler.on_error("invalid format string"), begin;
+-    ++begin;
+-  }
+-  return begin;
+-}
+-
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR auto parse_precision(const Char* begin, const Char* end,
+-                                   Handler&& handler) -> const Char* {
+-  using detail::auto_id;
+-  struct precision_adapter {
+-    Handler& handler;
+-
+-    FMT_CONSTEXPR void operator()() { handler.on_dynamic_precision(auto_id()); }
+-    FMT_CONSTEXPR void operator()(int id) { handler.on_dynamic_precision(id); }
+-    FMT_CONSTEXPR void operator()(basic_string_view<Char> id) {
+-      handler.on_dynamic_precision(id);
+-    }
+-    FMT_CONSTEXPR void on_error(const char* message) {
+-      if (message) handler.on_error(message);
+-    }
+-  };
+-
+-  ++begin;
+-  auto c = begin != end ? *begin : Char();
+-  if ('0' <= c && c <= '9') {
+-    auto precision = parse_nonnegative_int(begin, end, -1);
+-    if (precision != -1)
+-      handler.on_precision(precision);
+-    else
+-      handler.on_error("number is too big");
+-  } else if (c == '{') {
+-    ++begin;
+-    if (begin != end)
+-      begin = parse_arg_id(begin, end, precision_adapter{handler});
+-    if (begin == end || *begin++ != '}')
+-      return handler.on_error("invalid format string"), begin;
+-  } else {
+-    return handler.on_error("missing precision specifier"), begin;
+-  }
+-  handler.end_precision();
+-  return begin;
+-}
+-
+-template <typename Char>
+-FMT_CONSTEXPR auto parse_presentation_type(Char type) -> presentation_type {
+-  switch (to_ascii(type)) {
+-  case 'd':
+-    return presentation_type::dec;
+-  case 'o':
+-    return presentation_type::oct;
+-  case 'x':
+-    return presentation_type::hex_lower;
+-  case 'X':
+-    return presentation_type::hex_upper;
+-  case 'b':
+-    return presentation_type::bin_lower;
+-  case 'B':
+-    return presentation_type::bin_upper;
+-  case 'a':
+-    return presentation_type::hexfloat_lower;
+-  case 'A':
+-    return presentation_type::hexfloat_upper;
+-  case 'e':
+-    return presentation_type::exp_lower;
+-  case 'E':
+-    return presentation_type::exp_upper;
+-  case 'f':
+-    return presentation_type::fixed_lower;
+-  case 'F':
+-    return presentation_type::fixed_upper;
+-  case 'g':
+-    return presentation_type::general_lower;
+-  case 'G':
+-    return presentation_type::general_upper;
+-  case 'c':
+-    return presentation_type::chr;
+-  case 's':
+-    return presentation_type::string;
+-  case 'p':
+-    return presentation_type::pointer;
+-  default:
+-    return presentation_type::none;
+-  }
+-}
+-
+-// Parses standard format specifiers and sends notifications about parsed
+-// components to handler.
+-template <typename Char, typename SpecHandler>
+-FMT_CONSTEXPR FMT_INLINE auto parse_format_specs(const Char* begin,
+-                                                 const Char* end,
+-                                                 SpecHandler&& handler)
+-    -> const Char* {
+-  if (1 < end - begin && begin[1] == '}' && is_ascii_letter(*begin) &&
+-      *begin != 'L') {
+-    presentation_type type = parse_presentation_type(*begin++);
+-    if (type == presentation_type::none)
+-      handler.on_error("invalid type specifier");
+-    handler.on_type(type);
+-    return begin;
+-  }
+-
+-  if (begin == end) return begin;
+-
+-  begin = parse_align(begin, end, handler);
+-  if (begin == end) return begin;
+-
+-  // Parse sign.
+-  switch (to_ascii(*begin)) {
+-  case '+':
+-    handler.on_sign(sign::plus);
+-    ++begin;
+-    break;
+-  case '-':
+-    handler.on_sign(sign::minus);
+-    ++begin;
+-    break;
+-  case ' ':
+-    handler.on_sign(sign::space);
+-    ++begin;
+-    break;
+-  default:
+-    break;
+-  }
+-  if (begin == end) return begin;
+-
+-  if (*begin == '#') {
+-    handler.on_hash();
+-    if (++begin == end) return begin;
+-  }
+-
+-  // Parse zero flag.
+-  if (*begin == '0') {
+-    handler.on_zero();
+-    if (++begin == end) return begin;
+-  }
+-
+-  begin = parse_width(begin, end, handler);
+-  if (begin == end) return begin;
+-
+-  // Parse precision.
+-  if (*begin == '.') {
+-    begin = parse_precision(begin, end, handler);
+-    if (begin == end) return begin;
+-  }
+-
+-  if (*begin == 'L') {
+-    handler.on_localized();
+-    ++begin;
+-  }
+-
+-  // Parse type.
+-  if (begin != end && *begin != '}') {
+-    presentation_type type = parse_presentation_type(*begin++);
+-    if (type == presentation_type::none)
+-      handler.on_error("invalid type specifier");
+-    handler.on_type(type);
+-  }
+-  return begin;
+-}
+-
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR auto parse_replacement_field(const Char* begin, const Char* end,
+-                                           Handler&& handler) -> const Char* {
+-  struct id_adapter {
+-    Handler& handler;
+-    int arg_id;
+-
+-    FMT_CONSTEXPR void operator()() { arg_id = handler.on_arg_id(); }
+-    FMT_CONSTEXPR void operator()(int id) { arg_id = handler.on_arg_id(id); }
+-    FMT_CONSTEXPR void operator()(basic_string_view<Char> id) {
+-      arg_id = handler.on_arg_id(id);
+-    }
+-    FMT_CONSTEXPR void on_error(const char* message) {
+-      if (message) handler.on_error(message);
+-    }
+-  };
+-
+-  ++begin;
+-  if (begin == end) return handler.on_error("invalid format string"), end;
+-  if (*begin == '}') {
+-    handler.on_replacement_field(handler.on_arg_id(), begin);
+-  } else if (*begin == '{') {
+-    handler.on_text(begin, begin + 1);
+-  } else {
+-    auto adapter = id_adapter{handler, 0};
+-    begin = parse_arg_id(begin, end, adapter);
+-    Char c = begin != end ? *begin : Char();
+-    if (c == '}') {
+-      handler.on_replacement_field(adapter.arg_id, begin);
+-    } else if (c == ':') {
+-      begin = handler.on_format_specs(adapter.arg_id, begin + 1, end);
+-      if (begin == end || *begin != '}')
+-        return handler.on_error("unknown format specifier"), end;
+-    } else {
+-      return handler.on_error("missing '}' in format string"), end;
+-    }
+-  }
+-  return begin + 1;
+-}
+-
+-template <bool IS_CONSTEXPR, typename Char, typename Handler>
+-FMT_CONSTEXPR FMT_INLINE void parse_format_string(
+-    basic_string_view<Char> format_str, Handler&& handler) {
+-  // Workaround a name-lookup bug in MSVC's modules implementation.
+-  using detail::find;
+-
+-  auto begin = format_str.data();
+-  auto end = begin + format_str.size();
+-  if (end - begin < 32) {
+-    // Use a simple loop instead of memchr for small strings.
+-    const Char* p = begin;
+-    while (p != end) {
+-      auto c = *p++;
+-      if (c == '{') {
+-        handler.on_text(begin, p - 1);
+-        begin = p = parse_replacement_field(p - 1, end, handler);
+-      } else if (c == '}') {
+-        if (p == end || *p != '}')
+-          return handler.on_error("unmatched '}' in format string");
+-        handler.on_text(begin, p);
+-        begin = ++p;
+-      }
+-    }
+-    handler.on_text(begin, end);
+-    return;
+-  }
+-  struct writer {
+-    FMT_CONSTEXPR void operator()(const Char* pbegin, const Char* pend) {
+-      if (pbegin == pend) return;
+-      for (;;) {
+-        const Char* p = nullptr;
+-        if (!find<IS_CONSTEXPR>(pbegin, pend, Char('}'), p))
+-          return handler_.on_text(pbegin, pend);
+-        ++p;
+-        if (p == pend || *p != '}')
+-          return handler_.on_error("unmatched '}' in format string");
+-        handler_.on_text(pbegin, p);
+-        pbegin = p + 1;
+-      }
+-    }
+-    Handler& handler_;
+-  } write{handler};
+-  while (begin != end) {
+-    // Doing two passes with memchr (one for '{' and another for '}') is up to
+-    // 2.5x faster than the naive one-pass implementation on big format strings.
+-    const Char* p = begin;
+-    if (*begin != '{' && !find<IS_CONSTEXPR>(begin + 1, end, Char('{'), p))
+-      return write(begin, end);
+-    write(begin, p);
+-    begin = parse_replacement_field(p, end, handler);
+-  }
+-}
+-
+-template <typename T, typename ParseContext>
+-FMT_CONSTEXPR auto parse_format_specs(ParseContext& ctx)
+-    -> decltype(ctx.begin()) {
+-  using char_type = typename ParseContext::char_type;
+-  using context = buffer_context<char_type>;
+-  using mapped_type = conditional_t<
+-      mapped_type_constant<T, context>::value != type::custom_type,
+-      decltype(arg_mapper<context>().map(std::declval<const T&>())), T>;
+-  auto f = conditional_t<has_formatter<mapped_type, context>::value,
+-                         formatter<mapped_type, char_type>,
+-                         fallback_formatter<T, char_type>>();
+-  return f.parse(ctx);
+-}
+-
+-// A parse context with extra argument id checks. It is only used at compile
+-// time because adding checks at runtime would introduce substantial overhead
+-// and would be redundant since argument ids are checked when arguments are
+-// retrieved anyway.
+-template <typename Char, typename ErrorHandler = error_handler>
+-class compile_parse_context
+-    : public basic_format_parse_context<Char, ErrorHandler> {
+- private:
+-  int num_args_;
+-  using base = basic_format_parse_context<Char, ErrorHandler>;
+-
+- public:
+-  explicit FMT_CONSTEXPR compile_parse_context(
+-      basic_string_view<Char> format_str,
+-      int num_args = (std::numeric_limits<int>::max)(), ErrorHandler eh = {})
+-      : base(format_str, eh), num_args_(num_args) {}
+-
+-  FMT_CONSTEXPR auto next_arg_id() -> int {
+-    int id = base::next_arg_id();
+-    if (id >= num_args_) this->on_error("argument not found");
+-    return id;
+-  }
+-
+-  FMT_CONSTEXPR void check_arg_id(int id) {
+-    base::check_arg_id(id);
+-    if (id >= num_args_) this->on_error("argument not found");
+-  }
+-  using base::check_arg_id;
+-};
+-
+-template <typename ErrorHandler>
+-FMT_CONSTEXPR void check_int_type_spec(presentation_type type,
+-                                       ErrorHandler&& eh) {
+-  if (type > presentation_type::bin_upper && type != presentation_type::chr)
+-    eh.on_error("invalid type specifier");
+-}
+-
+-// Checks char specs and returns true if the type spec is char (and not int).
+-template <typename Char, typename ErrorHandler = error_handler>
+-FMT_CONSTEXPR auto check_char_specs(const basic_format_specs<Char>& specs,
+-                                    ErrorHandler&& eh = {}) -> bool {
+-  if (specs.type != presentation_type::none &&
+-      specs.type != presentation_type::chr) {
+-    check_int_type_spec(specs.type, eh);
+-    return false;
+-  }
+-  if (specs.align == align::numeric || specs.sign != sign::none || specs.alt)
+-    eh.on_error("invalid format specifier for char");
+-  return true;
+-}
+-
+-// A floating-point presentation format.
+-enum class float_format : unsigned char {
+-  general,  // General: exponent notation or fixed point based on magnitude.
+-  exp,      // Exponent notation with the default precision of 6, e.g. 1.2e-3.
+-  fixed,    // Fixed point with the default precision of 6, e.g. 0.0012.
+-  hex
+-};
+-
+-struct float_specs {
+-  int precision;
+-  float_format format : 8;
+-  sign_t sign : 8;
+-  bool upper : 1;
+-  bool locale : 1;
+-  bool binary32 : 1;
+-  bool fallback : 1;
+-  bool showpoint : 1;
+-};
+-
+-template <typename ErrorHandler = error_handler, typename Char>
+-FMT_CONSTEXPR auto parse_float_type_spec(const basic_format_specs<Char>& specs,
+-                                         ErrorHandler&& eh = {})
+-    -> float_specs {
+-  auto result = float_specs();
+-  result.showpoint = specs.alt;
+-  result.locale = specs.localized;
+-  switch (specs.type) {
+-  case presentation_type::none:
+-    result.format = float_format::general;
+-    break;
+-  case presentation_type::general_upper:
+-    result.upper = true;
+-    FMT_FALLTHROUGH;
+-  case presentation_type::general_lower:
+-    result.format = float_format::general;
+-    break;
+-  case presentation_type::exp_upper:
+-    result.upper = true;
+-    FMT_FALLTHROUGH;
+-  case presentation_type::exp_lower:
+-    result.format = float_format::exp;
+-    result.showpoint |= specs.precision != 0;
+-    break;
+-  case presentation_type::fixed_upper:
+-    result.upper = true;
+-    FMT_FALLTHROUGH;
+-  case presentation_type::fixed_lower:
+-    result.format = float_format::fixed;
+-    result.showpoint |= specs.precision != 0;
+-    break;
+-  case presentation_type::hexfloat_upper:
+-    result.upper = true;
+-    FMT_FALLTHROUGH;
+-  case presentation_type::hexfloat_lower:
+-    result.format = float_format::hex;
+-    break;
+-  default:
+-    eh.on_error("invalid type specifier");
+-    break;
+-  }
+-  return result;
+-}
+-
+-template <typename ErrorHandler = error_handler>
+-FMT_CONSTEXPR auto check_cstring_type_spec(presentation_type type,
+-                                           ErrorHandler&& eh = {}) -> bool {
+-  if (type == presentation_type::none || type == presentation_type::string)
+-    return true;
+-  if (type != presentation_type::pointer) eh.on_error("invalid type specifier");
+-  return false;
+-}
+-
+-template <typename ErrorHandler = error_handler>
+-FMT_CONSTEXPR void check_string_type_spec(presentation_type type,
+-                                          ErrorHandler&& eh = {}) {
+-  if (type != presentation_type::none && type != presentation_type::string)
+-    eh.on_error("invalid type specifier");
+-}
+-
+-template <typename ErrorHandler>
+-FMT_CONSTEXPR void check_pointer_type_spec(presentation_type type,
+-                                           ErrorHandler&& eh) {
+-  if (type != presentation_type::none && type != presentation_type::pointer)
+-    eh.on_error("invalid type specifier");
+-}
+-
+-// A parse_format_specs handler that checks if specifiers are consistent with
+-// the argument type.
+-template <typename Handler> class specs_checker : public Handler {
+- private:
+-  detail::type arg_type_;
+-
+-  FMT_CONSTEXPR void require_numeric_argument() {
+-    if (!is_arithmetic_type(arg_type_))
+-      this->on_error("format specifier requires numeric argument");
+-  }
+-
+- public:
+-  FMT_CONSTEXPR specs_checker(const Handler& handler, detail::type arg_type)
+-      : Handler(handler), arg_type_(arg_type) {}
+-
+-  FMT_CONSTEXPR void on_align(align_t align) {
+-    if (align == align::numeric) require_numeric_argument();
+-    Handler::on_align(align);
+-  }
+-
+-  FMT_CONSTEXPR void on_sign(sign_t s) {
+-    require_numeric_argument();
+-    if (is_integral_type(arg_type_) && arg_type_ != type::int_type &&
+-        arg_type_ != type::long_long_type && arg_type_ != type::char_type) {
+-      this->on_error("format specifier requires signed argument");
+-    }
+-    Handler::on_sign(s);
+-  }
+-
+-  FMT_CONSTEXPR void on_hash() {
+-    require_numeric_argument();
+-    Handler::on_hash();
+-  }
+-
+-  FMT_CONSTEXPR void on_localized() {
+-    require_numeric_argument();
+-    Handler::on_localized();
+-  }
+-
+-  FMT_CONSTEXPR void on_zero() {
+-    require_numeric_argument();
+-    Handler::on_zero();
+-  }
+-
+-  FMT_CONSTEXPR void end_precision() {
+-    if (is_integral_type(arg_type_) || arg_type_ == type::pointer_type)
+-      this->on_error("precision not allowed for this argument type");
+-  }
+-};
+-
+-constexpr int invalid_arg_index = -1;
+-
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <int N, typename T, typename... Args, typename Char>
+-constexpr auto get_arg_index_by_name(basic_string_view<Char> name) -> int {
+-  if constexpr (detail::is_statically_named_arg<T>()) {
+-    if (name == T::name) return N;
+-  }
+-  if constexpr (sizeof...(Args) > 0)
+-    return get_arg_index_by_name<N + 1, Args...>(name);
+-  (void)name;  // Workaround an MSVC bug about "unused" parameter.
+-  return invalid_arg_index;
+-}
+-#endif
+-
+-template <typename... Args, typename Char>
+-FMT_CONSTEXPR auto get_arg_index_by_name(basic_string_view<Char> name) -> int {
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-  if constexpr (sizeof...(Args) > 0)
+-    return get_arg_index_by_name<0, Args...>(name);
+-#endif
+-  (void)name;
+-  return invalid_arg_index;
+-}
+-
+-template <typename Char, typename ErrorHandler, typename... Args>
+-class format_string_checker {
+- private:
+-  using parse_context_type = compile_parse_context<Char, ErrorHandler>;
+-  enum { num_args = sizeof...(Args) };
+-
+-  // Format specifier parsing function.
+-  using parse_func = const Char* (*)(parse_context_type&);
+-
+-  parse_context_type context_;
+-  parse_func parse_funcs_[num_args > 0 ? num_args : 1];
+-
+- public:
+-  explicit FMT_CONSTEXPR format_string_checker(
+-      basic_string_view<Char> format_str, ErrorHandler eh)
+-      : context_(format_str, num_args, eh),
+-        parse_funcs_{&parse_format_specs<Args, parse_context_type>...} {}
+-
+-  FMT_CONSTEXPR void on_text(const Char*, const Char*) {}
+-
+-  FMT_CONSTEXPR auto on_arg_id() -> int { return context_.next_arg_id(); }
+-  FMT_CONSTEXPR auto on_arg_id(int id) -> int {
+-    return context_.check_arg_id(id), id;
+-  }
+-  FMT_CONSTEXPR auto on_arg_id(basic_string_view<Char> id) -> int {
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-    auto index = get_arg_index_by_name<Args...>(id);
+-    if (index == invalid_arg_index) on_error("named argument is not found");
+-    return context_.check_arg_id(index), index;
+-#else
+-    (void)id;
+-    on_error("compile-time checks for named arguments require C++20 support");
+-    return 0;
+-#endif
+-  }
+-
+-  FMT_CONSTEXPR void on_replacement_field(int, const Char*) {}
+-
+-  FMT_CONSTEXPR auto on_format_specs(int id, const Char* begin, const Char*)
+-      -> const Char* {
+-    context_.advance_to(context_.begin() + (begin - &*context_.begin()));
+-    // id >= 0 check is a workaround for gcc 10 bug (#2065).
+-    return id >= 0 && id < num_args ? parse_funcs_[id](context_) : begin;
+-  }
+-
+-  FMT_CONSTEXPR void on_error(const char* message) {
+-    context_.on_error(message);
+-  }
+-};
+-
+-template <typename... Args, typename S,
+-          enable_if_t<(is_compile_string<S>::value), int>>
+-void check_format_string(S format_str) {
+-  FMT_CONSTEXPR auto s = to_string_view(format_str);
+-  using checker = format_string_checker<typename S::char_type, error_handler,
+-                                        remove_cvref_t<Args>...>;
+-  FMT_CONSTEXPR bool invalid_format =
+-      (parse_format_string<true>(s, checker(s, {})), true);
+-  ignore_unused(invalid_format);
+-}
+-
+-template <typename Char>
+-void vformat_to(
+-    buffer<Char>& buf, basic_string_view<Char> fmt,
+-    basic_format_args<FMT_BUFFER_CONTEXT(type_identity_t<Char>)> args,
+-    locale_ref loc = {});
+-
+-FMT_API void vprint_mojibake(std::FILE*, string_view, format_args);
+-#ifndef _WIN32
+-inline void vprint_mojibake(std::FILE*, string_view, format_args) {}
+-#endif
+-FMT_END_DETAIL_NAMESPACE
+-
+-// A formatter specialization for the core types corresponding to detail::type
+-// constants.
+-template <typename T, typename Char>
+-struct formatter<T, Char,
+-                 enable_if_t<detail::type_constant<T, Char>::value !=
+-                             detail::type::custom_type>> {
+- private:
+-  detail::dynamic_format_specs<Char> specs_;
+-
+- public:
+-  // Parses format specifiers stopping either at the end of the range or at the
+-  // terminating '}'.
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    auto begin = ctx.begin(), end = ctx.end();
+-    if (begin == end) return begin;
+-    using handler_type = detail::dynamic_specs_handler<ParseContext>;
+-    auto type = detail::type_constant<T, Char>::value;
+-    auto checker =
+-        detail::specs_checker<handler_type>(handler_type(specs_, ctx), type);
+-    auto it = detail::parse_format_specs(begin, end, checker);
+-    auto eh = ctx.error_handler();
+-    switch (type) {
+-    case detail::type::none_type:
+-      FMT_ASSERT(false, "invalid argument type");
+-      break;
+-    case detail::type::bool_type:
+-      if (specs_.type == presentation_type::none ||
+-          specs_.type == presentation_type::string) {
+-        break;
+-      }
+-      FMT_FALLTHROUGH;
+-    case detail::type::int_type:
+-    case detail::type::uint_type:
+-    case detail::type::long_long_type:
+-    case detail::type::ulong_long_type:
+-    case detail::type::int128_type:
+-    case detail::type::uint128_type:
+-      detail::check_int_type_spec(specs_.type, eh);
+-      break;
+-    case detail::type::char_type:
+-      detail::check_char_specs(specs_, eh);
+-      break;
+-    case detail::type::float_type:
+-      if (detail::const_check(FMT_USE_FLOAT))
+-        detail::parse_float_type_spec(specs_, eh);
+-      else
+-        FMT_ASSERT(false, "float support disabled");
+-      break;
+-    case detail::type::double_type:
+-      if (detail::const_check(FMT_USE_DOUBLE))
+-        detail::parse_float_type_spec(specs_, eh);
+-      else
+-        FMT_ASSERT(false, "double support disabled");
+-      break;
+-    case detail::type::long_double_type:
+-      if (detail::const_check(FMT_USE_LONG_DOUBLE))
+-        detail::parse_float_type_spec(specs_, eh);
+-      else
+-        FMT_ASSERT(false, "long double support disabled");
+-      break;
+-    case detail::type::cstring_type:
+-      detail::check_cstring_type_spec(specs_.type, eh);
+-      break;
+-    case detail::type::string_type:
+-      detail::check_string_type_spec(specs_.type, eh);
+-      break;
+-    case detail::type::pointer_type:
+-      detail::check_pointer_type_spec(specs_.type, eh);
+-      break;
+-    case detail::type::custom_type:
+-      // Custom format specifiers are checked in parse functions of
+-      // formatter specializations.
+-      break;
+-    }
+-    return it;
+-  }
+-
+-  template <typename FormatContext>
+-  FMT_CONSTEXPR auto format(const T& val, FormatContext& ctx) const
+-      -> decltype(ctx.out());
+-};
+-
+-template <typename Char> struct basic_runtime { basic_string_view<Char> str; };
+-
+-/** A compile-time format string. */
+-template <typename Char, typename... Args> class basic_format_string {
+- private:
+-  basic_string_view<Char> str_;
+-
+- public:
+-  template <typename S,
+-            FMT_ENABLE_IF(
+-                std::is_convertible<const S&, basic_string_view<Char>>::value)>
+-  FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
+-    static_assert(
+-        detail::count<
+-            (std::is_base_of<detail::view, remove_reference_t<Args>>::value &&
+-             std::is_reference<Args>::value)...>() == 0,
+-        "passing views as lvalues is disallowed");
+-#ifdef FMT_HAS_CONSTEVAL
+-    if constexpr (detail::count_named_args<Args...>() ==
+-                  detail::count_statically_named_args<Args...>()) {
+-      using checker = detail::format_string_checker<Char, detail::error_handler,
+-                                                    remove_cvref_t<Args>...>;
+-      detail::parse_format_string<true>(str_, checker(s, {}));
+-    }
+-#else
+-    detail::check_format_string<Args...>(s);
+-#endif
+-  }
+-  basic_format_string(basic_runtime<Char> r) : str_(r.str) {}
+-
+-  FMT_INLINE operator basic_string_view<Char>() const { return str_; }
+-};
+-
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-// Workaround broken conversion on older gcc.
+-template <typename... Args> using format_string = string_view;
+-template <typename S> auto runtime(const S& s) -> basic_string_view<char_t<S>> {
+-  return s;
+-}
+-#else
+-template <typename... Args>
+-using format_string = basic_format_string<char, type_identity_t<Args>...>;
+-/**
+-  \rst
+-  Creates a runtime format string.
+-
+-  **Example**::
+-
+-    // Check format string at runtime instead of compile-time.
+-    fmt::print(fmt::runtime("{:d}"), "I am not a number");
+-  \endrst
+- */
+-template <typename S> auto runtime(const S& s) -> basic_runtime<char_t<S>> {
+-  return {{s}};
+-}
+-#endif
+-
+-FMT_API auto vformat(string_view fmt, format_args args) -> std::string;
+-
+-/**
+-  \rst
+-  Formats ``args`` according to specifications in ``fmt`` and returns the result
+-  as a string.
+-
+-  **Example**::
+-
+-    #include <fmt/core.h>
+-    std::string message = fmt::format("The answer is {}.", 42);
+-  \endrst
+-*/
+-template <typename... T>
+-FMT_NODISCARD FMT_INLINE auto format(format_string<T...> fmt, T&&... args)
+-    -> std::string {
+-  return vformat(fmt, fmt::make_format_args(args...));
+-}
+-
+-/** Formats a string and writes the output to ``out``. */
+-template <typename OutputIt,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value)>
+-auto vformat_to(OutputIt out, string_view fmt, format_args args) -> OutputIt {
+-  using detail::get_buffer;
+-  auto&& buf = get_buffer<char>(out);
+-  detail::vformat_to(buf, fmt, args, {});
+-  return detail::get_iterator(buf);
+-}
+-
+-/**
+- \rst
+- Formats ``args`` according to specifications in ``fmt``, writes the result to
+- the output iterator ``out`` and returns the iterator past the end of the output
+- range. `format_to` does not append a terminating null character.
+-
+- **Example**::
+-
+-   auto out = std::vector<char>();
+-   fmt::format_to(std::back_inserter(out), "{}", 42);
+- \endrst
+- */
+-template <typename OutputIt, typename... T,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value)>
+-FMT_INLINE auto format_to(OutputIt out, format_string<T...> fmt, T&&... args)
+-    -> OutputIt {
+-  return vformat_to(out, fmt, fmt::make_format_args(args...));
+-}
+-
+-template <typename OutputIt> struct format_to_n_result {
+-  /** Iterator past the end of the output range. */
+-  OutputIt out;
+-  /** Total (not truncated) output size. */
+-  size_t size;
+-};
+-
+-template <typename OutputIt, typename... T,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value)>
+-auto vformat_to_n(OutputIt out, size_t n, string_view fmt, format_args args)
+-    -> format_to_n_result<OutputIt> {
+-  using traits = detail::fixed_buffer_traits;
+-  auto buf = detail::iterator_buffer<OutputIt, char, traits>(out, n);
+-  detail::vformat_to(buf, fmt, args, {});
+-  return {buf.out(), buf.count()};
+-}
+-
+-/**
+-  \rst
+-  Formats ``args`` according to specifications in ``fmt``, writes up to ``n``
+-  characters of the result to the output iterator ``out`` and returns the total
+-  (not truncated) output size and the iterator past the end of the output range.
+-  `format_to_n` does not append a terminating null character.
+-  \endrst
+- */
+-template <typename OutputIt, typename... T,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value)>
+-FMT_INLINE auto format_to_n(OutputIt out, size_t n, format_string<T...> fmt,
+-                            T&&... args) -> format_to_n_result<OutputIt> {
+-  return vformat_to_n(out, n, fmt, fmt::make_format_args(args...));
+-}
+-
+-/** Returns the number of chars in the output of ``format(fmt, args...)``. */
+-template <typename... T>
+-FMT_NODISCARD FMT_INLINE auto formatted_size(format_string<T...> fmt,
+-                                             T&&... args) -> size_t {
+-  auto buf = detail::counting_buffer<>();
+-  detail::vformat_to(buf, string_view(fmt), fmt::make_format_args(args...), {});
+-  return buf.count();
+-}
+-
+-FMT_API void vprint(string_view fmt, format_args args);
+-FMT_API void vprint(std::FILE* f, string_view fmt, format_args args);
+-
+-/**
+-  \rst
+-  Formats ``args`` according to specifications in ``fmt`` and writes the output
+-  to ``stdout``.
+-
+-  **Example**::
+-
+-    fmt::print("Elapsed time: {0:.2f} seconds", 1.23);
+-  \endrst
+- */
+-template <typename... T>
+-FMT_INLINE void print(format_string<T...> fmt, T&&... args) {
+-  const auto& vargs = fmt::make_format_args(args...);
+-  return detail::is_utf8() ? vprint(fmt, vargs)
+-                           : detail::vprint_mojibake(stdout, fmt, vargs);
+-}
+-
+-/**
+-  \rst
+-  Formats ``args`` according to specifications in ``fmt`` and writes the
+-  output to the file ``f``.
+-
+-  **Example**::
+-
+-    fmt::print(stderr, "Don't {}!", "panic");
+-  \endrst
+- */
+-template <typename... T>
+-FMT_INLINE void print(std::FILE* f, format_string<T...> fmt, T&&... args) {
+-  const auto& vargs = fmt::make_format_args(args...);
+-  return detail::is_utf8() ? vprint(f, fmt, vargs)
+-                           : detail::vprint_mojibake(f, fmt, vargs);
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_GCC_PRAGMA("GCC pop_options")
+-FMT_END_NAMESPACE
+-
+-#ifdef FMT_HEADER_ONLY
+-#  include "format.h"
+-#endif
+-#endif  // FMT_CORE_H_
+diff --git a/include/dpp/fmt/format-inl.h b/include/dpp/fmt/format-inl.h
+deleted file mode 100644
+index 5902bf1..0000000
+--- a/include/dpp/fmt/format-inl.h
++++ /dev/null
+@@ -1,2643 +0,0 @@
+-// Formatting library for C++ - implementation
+-//
+-// Copyright (c) 2012 - 2016, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_FORMAT_INL_H_
+-#define FMT_FORMAT_INL_H_
+-
+-#include <algorithm>
+-#include <cctype>
+-#include <cerrno>  // errno
+-#include <climits>
+-#include <cmath>
+-#include <cstdarg>
+-#include <cstring>  // std::memmove
+-#include <cwchar>
+-#include <exception>
+-
+-#ifndef FMT_STATIC_THOUSANDS_SEPARATOR
+-#  include <locale>
+-#endif
+-
+-#ifdef _WIN32
+-#  include <io.h>  // _isatty
+-#endif
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-
+-FMT_FUNC void assert_fail(const char* file, int line, const char* message) {
+-  // Use unchecked std::fprintf to avoid triggering another assertion when
+-  // writing to stderr fails
+-  std::fprintf(stderr, "%s:%d: assertion failed: %s", file, line, message);
+-  // Chosen instead of std::abort to satisfy Clang in CUDA mode during device
+-  // code pass.
+-  std::terminate();
+-}
+-
+-FMT_FUNC void throw_format_error(const char* message) {
+-  FMT_THROW(format_error(message));
+-}
+-
+-#ifndef _MSC_VER
+-#  define FMT_SNPRINTF snprintf
+-#else  // _MSC_VER
+-inline int fmt_snprintf(char* buffer, size_t size, const char* format, ...) {
+-  va_list args;
+-  va_start(args, format);
+-  int result = vsnprintf_s(buffer, size, _TRUNCATE, format, args);
+-  va_end(args);
+-  return result;
+-}
+-#  define FMT_SNPRINTF fmt_snprintf
+-#endif  // _MSC_VER
+-
+-FMT_FUNC void format_error_code(detail::buffer<char>& out, int error_code,
+-                                string_view message) FMT_NOEXCEPT {
+-  // Report error code making sure that the output fits into
+-  // inline_buffer_size to avoid dynamic memory allocation and potential
+-  // bad_alloc.
+-  out.try_resize(0);
+-  static const char SEP[] = ": ";
+-  static const char ERROR_STR[] = "error ";
+-  // Subtract 2 to account for terminating null characters in SEP and ERROR_STR.
+-  size_t error_code_size = sizeof(SEP) + sizeof(ERROR_STR) - 2;
+-  auto abs_value = static_cast<uint32_or_64_or_128_t<int>>(error_code);
+-  if (detail::is_negative(error_code)) {
+-    abs_value = 0 - abs_value;
+-    ++error_code_size;
+-  }
+-  error_code_size += detail::to_unsigned(detail::count_digits(abs_value));
+-  auto it = buffer_appender<char>(out);
+-  if (message.size() <= inline_buffer_size - error_code_size)
+-    format_to(it, FMT_STRING("{}{}"), message, SEP);
+-  format_to(it, FMT_STRING("{}{}"), ERROR_STR, error_code);
+-  FMT_ASSERT(out.size() <= inline_buffer_size, "");
+-}
+-
+-FMT_FUNC void report_error(format_func func, int error_code,
+-                           const char* message) FMT_NOEXCEPT {
+-  memory_buffer full_message;
+-  func(full_message, error_code, message);
+-  // Don't use fwrite_fully because the latter may throw.
+-  if (std::fwrite(full_message.data(), full_message.size(), 1, stderr) > 0)
+-    std::fputc('\n', stderr);
+-}
+-
+-// A wrapper around fwrite that throws on error.
+-inline void fwrite_fully(const void* ptr, size_t size, size_t count,
+-                         FILE* stream) {
+-  size_t written = std::fwrite(ptr, size, count, stream);
+-  if (written < count) FMT_THROW(system_error(errno, "cannot write to file"));
+-}
+-
+-#ifndef FMT_STATIC_THOUSANDS_SEPARATOR
+-template <typename Locale>
+-locale_ref::locale_ref(const Locale& loc) : locale_(&loc) {
+-  static_assert(std::is_same<Locale, std::locale>::value, "");
+-}
+-
+-template <typename Locale> Locale locale_ref::get() const {
+-  static_assert(std::is_same<Locale, std::locale>::value, "");
+-  return locale_ ? *static_cast<const std::locale*>(locale_) : std::locale();
+-}
+-
+-template <typename Char>
+-FMT_FUNC auto thousands_sep_impl(locale_ref loc) -> thousands_sep_result<Char> {
+-  auto& facet = std::use_facet<std::numpunct<Char>>(loc.get<std::locale>());
+-  auto grouping = facet.grouping();
+-  auto thousands_sep = grouping.empty() ? Char() : facet.thousands_sep();
+-  return {std::move(grouping), thousands_sep};
+-}
+-template <typename Char> FMT_FUNC Char decimal_point_impl(locale_ref loc) {
+-  return std::use_facet<std::numpunct<Char>>(loc.get<std::locale>())
+-      .decimal_point();
+-}
+-#else
+-template <typename Char>
+-FMT_FUNC auto thousands_sep_impl(locale_ref) -> thousands_sep_result<Char> {
+-  return {"\03", FMT_STATIC_THOUSANDS_SEPARATOR};
+-}
+-template <typename Char> FMT_FUNC Char decimal_point_impl(locale_ref) {
+-  return '.';
+-}
+-#endif
+-}  // namespace detail
+-
+-#if !FMT_MSC_VER
+-FMT_API FMT_FUNC format_error::~format_error() FMT_NOEXCEPT = default;
+-#endif
+-
+-FMT_FUNC std::system_error vsystem_error(int error_code, string_view format_str,
+-                                         format_args args) {
+-  auto ec = std::error_code(error_code, std::generic_category());
+-  return std::system_error(ec, vformat(format_str, args));
+-}
+-
+-namespace detail {
+-
+-template <> FMT_FUNC int count_digits<4>(detail::fallback_uintptr n) {
+-  // fallback_uintptr is always stored in little endian.
+-  int i = static_cast<int>(sizeof(void*)) - 1;
+-  while (i > 0 && n.value[i] == 0) --i;
+-  auto char_digits = std::numeric_limits<unsigned char>::digits / 4;
+-  return i >= 0 ? i * char_digits + count_digits<4, unsigned>(n.value[i]) : 1;
+-}
+-
+-// log10(2) = 0x0.4d104d427de7fbcc...
+-static constexpr uint64_t log10_2_significand = 0x4d104d427de7fbcc;
+-
+-template <typename T = void> struct basic_impl_data {
+-  // Normalized 64-bit significands of pow(10, k), for k = -348, -340, ..., 340.
+-  // These are generated by support/compute-powers.py.
+-  static constexpr uint64_t pow10_significands[87] = {
+-      0xfa8fd5a0081c0288, 0xbaaee17fa23ebf76, 0x8b16fb203055ac76,
+-      0xcf42894a5dce35ea, 0x9a6bb0aa55653b2d, 0xe61acf033d1a45df,
+-      0xab70fe17c79ac6ca, 0xff77b1fcbebcdc4f, 0xbe5691ef416bd60c,
+-      0x8dd01fad907ffc3c, 0xd3515c2831559a83, 0x9d71ac8fada6c9b5,
+-      0xea9c227723ee8bcb, 0xaecc49914078536d, 0x823c12795db6ce57,
+-      0xc21094364dfb5637, 0x9096ea6f3848984f, 0xd77485cb25823ac7,
+-      0xa086cfcd97bf97f4, 0xef340a98172aace5, 0xb23867fb2a35b28e,
+-      0x84c8d4dfd2c63f3b, 0xc5dd44271ad3cdba, 0x936b9fcebb25c996,
+-      0xdbac6c247d62a584, 0xa3ab66580d5fdaf6, 0xf3e2f893dec3f126,
+-      0xb5b5ada8aaff80b8, 0x87625f056c7c4a8b, 0xc9bcff6034c13053,
+-      0x964e858c91ba2655, 0xdff9772470297ebd, 0xa6dfbd9fb8e5b88f,
+-      0xf8a95fcf88747d94, 0xb94470938fa89bcf, 0x8a08f0f8bf0f156b,
+-      0xcdb02555653131b6, 0x993fe2c6d07b7fac, 0xe45c10c42a2b3b06,
+-      0xaa242499697392d3, 0xfd87b5f28300ca0e, 0xbce5086492111aeb,
+-      0x8cbccc096f5088cc, 0xd1b71758e219652c, 0x9c40000000000000,
+-      0xe8d4a51000000000, 0xad78ebc5ac620000, 0x813f3978f8940984,
+-      0xc097ce7bc90715b3, 0x8f7e32ce7bea5c70, 0xd5d238a4abe98068,
+-      0x9f4f2726179a2245, 0xed63a231d4c4fb27, 0xb0de65388cc8ada8,
+-      0x83c7088e1aab65db, 0xc45d1df942711d9a, 0x924d692ca61be758,
+-      0xda01ee641a708dea, 0xa26da3999aef774a, 0xf209787bb47d6b85,
+-      0xb454e4a179dd1877, 0x865b86925b9bc5c2, 0xc83553c5c8965d3d,
+-      0x952ab45cfa97a0b3, 0xde469fbd99a05fe3, 0xa59bc234db398c25,
+-      0xf6c69a72a3989f5c, 0xb7dcbf5354e9bece, 0x88fcf317f22241e2,
+-      0xcc20ce9bd35c78a5, 0x98165af37b2153df, 0xe2a0b5dc971f303a,
+-      0xa8d9d1535ce3b396, 0xfb9b7cd9a4a7443c, 0xbb764c4ca7a44410,
+-      0x8bab8eefb6409c1a, 0xd01fef10a657842c, 0x9b10a4e5e9913129,
+-      0xe7109bfba19c0c9d, 0xac2820d9623bf429, 0x80444b5e7aa7cf85,
+-      0xbf21e44003acdd2d, 0x8e679c2f5e44ff8f, 0xd433179d9c8cb841,
+-      0x9e19db92b4e31ba9, 0xeb96bf6ebadf77d9, 0xaf87023b9bf0ee6b,
+-  };
+-
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-#  pragma GCC diagnostic push
+-#  pragma GCC diagnostic ignored "-Wnarrowing"
+-#endif
+-  // Binary exponents of pow(10, k), for k = -348, -340, ..., 340, corresponding
+-  // to significands above.
+-  static constexpr int16_t pow10_exponents[87] = {
+-      -1220, -1193, -1166, -1140, -1113, -1087, -1060, -1034, -1007, -980, -954,
+-      -927,  -901,  -874,  -847,  -821,  -794,  -768,  -741,  -715,  -688, -661,
+-      -635,  -608,  -582,  -555,  -529,  -502,  -475,  -449,  -422,  -396, -369,
+-      -343,  -316,  -289,  -263,  -236,  -210,  -183,  -157,  -130,  -103, -77,
+-      -50,   -24,   3,     30,    56,    83,    109,   136,   162,   189,  216,
+-      242,   269,   295,   322,   348,   375,   402,   428,   455,   481,  508,
+-      534,   561,   588,   614,   641,   667,   694,   720,   747,   774,  800,
+-      827,   853,   880,   907,   933,   960,   986,   1013,  1039,  1066};
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-#  pragma GCC diagnostic pop
+-#endif
+-
+-  static constexpr uint64_t power_of_10_64[20] = {
+-      1, FMT_POWERS_OF_10(1ULL), FMT_POWERS_OF_10(1000000000ULL),
+-      10000000000000000000ULL};
+-};
+-
+-// This is a struct rather than an alias to avoid shadowing warnings in gcc.
+-struct impl_data : basic_impl_data<> {};
+-
+-#if __cplusplus < 201703L
+-template <typename T>
+-constexpr uint64_t basic_impl_data<T>::pow10_significands[];
+-template <typename T> constexpr int16_t basic_impl_data<T>::pow10_exponents[];
+-template <typename T> constexpr uint64_t basic_impl_data<T>::power_of_10_64[];
+-#endif
+-
+-template <typename T> struct bits {
+-  static FMT_CONSTEXPR_DECL const int value =
+-      static_cast<int>(sizeof(T) * std::numeric_limits<unsigned char>::digits);
+-};
+-
+-// Returns the number of significand bits in Float excluding the implicit bit.
+-template <typename Float> constexpr int num_significand_bits() {
+-  // Subtract 1 to account for an implicit most significant bit in the
+-  // normalized form.
+-  return std::numeric_limits<Float>::digits - 1;
+-}
+-
+-// A floating-point number f * pow(2, e).
+-struct fp {
+-  uint64_t f;
+-  int e;
+-
+-  static constexpr const int num_significand_bits = bits<decltype(f)>::value;
+-
+-  constexpr fp() : f(0), e(0) {}
+-  constexpr fp(uint64_t f_val, int e_val) : f(f_val), e(e_val) {}
+-
+-  // Constructs fp from an IEEE754 floating-point number. It is a template to
+-  // prevent compile errors on systems where n is not IEEE754.
+-  template <typename Float> explicit FMT_CONSTEXPR fp(Float n) { assign(n); }
+-
+-  template <typename Float>
+-  using is_supported = bool_constant<sizeof(Float) == sizeof(uint64_t) ||
+-                                     sizeof(Float) == sizeof(uint32_t)>;
+-
+-  // Assigns d to this and return true iff predecessor is closer than successor.
+-  template <typename Float, FMT_ENABLE_IF(is_supported<Float>::value)>
+-  FMT_CONSTEXPR bool assign(Float n) {
+-    // Assume float is in the format [sign][exponent][significand].
+-    const int num_float_significand_bits =
+-        detail::num_significand_bits<Float>();
+-    const uint64_t implicit_bit = 1ULL << num_float_significand_bits;
+-    const uint64_t significand_mask = implicit_bit - 1;
+-    constexpr bool is_double = sizeof(Float) == sizeof(uint64_t);
+-    auto u = bit_cast<conditional_t<is_double, uint64_t, uint32_t>>(n);
+-    f = u & significand_mask;
+-    const uint64_t exponent_mask = (~0ULL >> 1) & ~significand_mask;
+-    int biased_e =
+-        static_cast<int>((u & exponent_mask) >> num_float_significand_bits);
+-    // The predecessor is closer if n is a normalized power of 2 (f == 0) other
+-    // than the smallest normalized number (biased_e > 1).
+-    bool is_predecessor_closer = f == 0 && biased_e > 1;
+-    if (biased_e != 0)
+-      f += implicit_bit;
+-    else
+-      biased_e = 1;  // Subnormals use biased exponent 1 (min exponent).
+-    const int exponent_bias = std::numeric_limits<Float>::max_exponent - 1;
+-    e = biased_e - exponent_bias - num_float_significand_bits;
+-    return is_predecessor_closer;
+-  }
+-
+-  template <typename Float, FMT_ENABLE_IF(!is_supported<Float>::value)>
+-  bool assign(Float) {
+-    FMT_ASSERT(false, "");
+-    return false;
+-  }
+-};
+-
+-// Normalizes the value converted from double and multiplied by (1 << SHIFT).
+-template <int SHIFT = 0> FMT_CONSTEXPR fp normalize(fp value) {
+-  // Handle subnormals.
+-  const uint64_t implicit_bit = 1ULL << num_significand_bits<double>();
+-  const auto shifted_implicit_bit = implicit_bit << SHIFT;
+-  while ((value.f & shifted_implicit_bit) == 0) {
+-    value.f <<= 1;
+-    --value.e;
+-  }
+-  // Subtract 1 to account for hidden bit.
+-  const auto offset =
+-      fp::num_significand_bits - num_significand_bits<double>() - SHIFT - 1;
+-  value.f <<= offset;
+-  value.e -= offset;
+-  return value;
+-}
+-
+-inline bool operator==(fp x, fp y) { return x.f == y.f && x.e == y.e; }
+-
+-// Computes lhs * rhs / pow(2, 64) rounded to nearest with half-up tie breaking.
+-FMT_CONSTEXPR inline uint64_t multiply(uint64_t lhs, uint64_t rhs) {
+-#if FMT_USE_INT128
+-  auto product = static_cast<__uint128_t>(lhs) * rhs;
+-  auto f = static_cast<uint64_t>(product >> 64);
+-  return (static_cast<uint64_t>(product) & (1ULL << 63)) != 0 ? f + 1 : f;
+-#else
+-  // Multiply 32-bit parts of significands.
+-  uint64_t mask = (1ULL << 32) - 1;
+-  uint64_t a = lhs >> 32, b = lhs & mask;
+-  uint64_t c = rhs >> 32, d = rhs & mask;
+-  uint64_t ac = a * c, bc = b * c, ad = a * d, bd = b * d;
+-  // Compute mid 64-bit of result and round.
+-  uint64_t mid = (bd >> 32) + (ad & mask) + (bc & mask) + (1U << 31);
+-  return ac + (ad >> 32) + (bc >> 32) + (mid >> 32);
+-#endif
+-}
+-
+-FMT_CONSTEXPR inline fp operator*(fp x, fp y) {
+-  return {multiply(x.f, y.f), x.e + y.e + 64};
+-}
+-
+-// Returns a cached power of 10 `c_k = c_k.f * pow(2, c_k.e)` such that its
+-// (binary) exponent satisfies `min_exponent <= c_k.e <= min_exponent + 28`.
+-FMT_CONSTEXPR inline fp get_cached_power(int min_exponent,
+-                                         int& pow10_exponent) {
+-  const int shift = 32;
+-  const auto significand = static_cast<int64_t>(log10_2_significand);
+-  int index = static_cast<int>(
+-      ((min_exponent + fp::num_significand_bits - 1) * (significand >> shift) +
+-       ((int64_t(1) << shift) - 1))  // ceil
+-      >> 32                          // arithmetic shift
+-  );
+-  // Decimal exponent of the first (smallest) cached power of 10.
+-  const int first_dec_exp = -348;
+-  // Difference between 2 consecutive decimal exponents in cached powers of 10.
+-  const int dec_exp_step = 8;
+-  index = (index - first_dec_exp - 1) / dec_exp_step + 1;
+-  pow10_exponent = first_dec_exp + index * dec_exp_step;
+-  return {impl_data::pow10_significands[index],
+-          impl_data::pow10_exponents[index]};
+-}
+-
+-// A simple accumulator to hold the sums of terms in bigint::square if uint128_t
+-// is not available.
+-struct accumulator {
+-  uint64_t lower;
+-  uint64_t upper;
+-
+-  constexpr accumulator() : lower(0), upper(0) {}
+-  constexpr explicit operator uint32_t() const {
+-    return static_cast<uint32_t>(lower);
+-  }
+-
+-  FMT_CONSTEXPR void operator+=(uint64_t n) {
+-    lower += n;
+-    if (lower < n) ++upper;
+-  }
+-  FMT_CONSTEXPR void operator>>=(int shift) {
+-    FMT_ASSERT(shift == 32, "");
+-    (void)shift;
+-    lower = (upper << 32) | (lower >> 32);
+-    upper >>= 32;
+-  }
+-};
+-
+-class bigint {
+- private:
+-  // A bigint is stored as an array of bigits (big digits), with bigit at index
+-  // 0 being the least significant one.
+-  using bigit = uint32_t;
+-  using double_bigit = uint64_t;
+-  enum { bigits_capacity = 32 };
+-  basic_memory_buffer<bigit, bigits_capacity> bigits_;
+-  int exp_;
+-
+-  FMT_CONSTEXPR20 bigit operator[](int index) const {
+-    return bigits_[to_unsigned(index)];
+-  }
+-  FMT_CONSTEXPR20 bigit& operator[](int index) {
+-    return bigits_[to_unsigned(index)];
+-  }
+-
+-  static FMT_CONSTEXPR_DECL const int bigit_bits = bits<bigit>::value;
+-
+-  friend struct formatter<bigint>;
+-
+-  FMT_CONSTEXPR20 void subtract_bigits(int index, bigit other, bigit& borrow) {
+-    auto result = static_cast<double_bigit>((*this)[index]) - other - borrow;
+-    (*this)[index] = static_cast<bigit>(result);
+-    borrow = static_cast<bigit>(result >> (bigit_bits * 2 - 1));
+-  }
+-
+-  FMT_CONSTEXPR20 void remove_leading_zeros() {
+-    int num_bigits = static_cast<int>(bigits_.size()) - 1;
+-    while (num_bigits > 0 && (*this)[num_bigits] == 0) --num_bigits;
+-    bigits_.resize(to_unsigned(num_bigits + 1));
+-  }
+-
+-  // Computes *this -= other assuming aligned bigints and *this >= other.
+-  FMT_CONSTEXPR20 void subtract_aligned(const bigint& other) {
+-    FMT_ASSERT(other.exp_ >= exp_, "unaligned bigints");
+-    FMT_ASSERT(compare(*this, other) >= 0, "");
+-    bigit borrow = 0;
+-    int i = other.exp_ - exp_;
+-    for (size_t j = 0, n = other.bigits_.size(); j != n; ++i, ++j)
+-      subtract_bigits(i, other.bigits_[j], borrow);
+-    while (borrow > 0) subtract_bigits(i, 0, borrow);
+-    remove_leading_zeros();
+-  }
+-
+-  FMT_CONSTEXPR20 void multiply(uint32_t value) {
+-    const double_bigit wide_value = value;
+-    bigit carry = 0;
+-    for (size_t i = 0, n = bigits_.size(); i < n; ++i) {
+-      double_bigit result = bigits_[i] * wide_value + carry;
+-      bigits_[i] = static_cast<bigit>(result);
+-      carry = static_cast<bigit>(result >> bigit_bits);
+-    }
+-    if (carry != 0) bigits_.push_back(carry);
+-  }
+-
+-  FMT_CONSTEXPR20 void multiply(uint64_t value) {
+-    const bigit mask = ~bigit(0);
+-    const double_bigit lower = value & mask;
+-    const double_bigit upper = value >> bigit_bits;
+-    double_bigit carry = 0;
+-    for (size_t i = 0, n = bigits_.size(); i < n; ++i) {
+-      double_bigit result = bigits_[i] * lower + (carry & mask);
+-      carry =
+-          bigits_[i] * upper + (result >> bigit_bits) + (carry >> bigit_bits);
+-      bigits_[i] = static_cast<bigit>(result);
+-    }
+-    while (carry != 0) {
+-      bigits_.push_back(carry & mask);
+-      carry >>= bigit_bits;
+-    }
+-  }
+-
+- public:
+-  FMT_CONSTEXPR20 bigint() : exp_(0) {}
+-  explicit bigint(uint64_t n) { assign(n); }
+-  FMT_CONSTEXPR20 ~bigint() {
+-    FMT_ASSERT(bigits_.capacity() <= bigits_capacity, "");
+-  }
+-
+-  bigint(const bigint&) = delete;
+-  void operator=(const bigint&) = delete;
+-
+-  FMT_CONSTEXPR20 void assign(const bigint& other) {
+-    auto size = other.bigits_.size();
+-    bigits_.resize(size);
+-    auto data = other.bigits_.data();
+-    std::copy(data, data + size, make_checked(bigits_.data(), size));
+-    exp_ = other.exp_;
+-  }
+-
+-  FMT_CONSTEXPR20 void assign(uint64_t n) {
+-    size_t num_bigits = 0;
+-    do {
+-      bigits_[num_bigits++] = n & ~bigit(0);
+-      n >>= bigit_bits;
+-    } while (n != 0);
+-    bigits_.resize(num_bigits);
+-    exp_ = 0;
+-  }
+-
+-  FMT_CONSTEXPR20 int num_bigits() const {
+-    return static_cast<int>(bigits_.size()) + exp_;
+-  }
+-
+-  FMT_NOINLINE FMT_CONSTEXPR20 bigint& operator<<=(int shift) {
+-    FMT_ASSERT(shift >= 0, "");
+-    exp_ += shift / bigit_bits;
+-    shift %= bigit_bits;
+-    if (shift == 0) return *this;
+-    bigit carry = 0;
+-    for (size_t i = 0, n = bigits_.size(); i < n; ++i) {
+-      bigit c = bigits_[i] >> (bigit_bits - shift);
+-      bigits_[i] = (bigits_[i] << shift) + carry;
+-      carry = c;
+-    }
+-    if (carry != 0) bigits_.push_back(carry);
+-    return *this;
+-  }
+-
+-  template <typename Int> FMT_CONSTEXPR20 bigint& operator*=(Int value) {
+-    FMT_ASSERT(value > 0, "");
+-    multiply(uint32_or_64_or_128_t<Int>(value));
+-    return *this;
+-  }
+-
+-  friend FMT_CONSTEXPR20 int compare(const bigint& lhs, const bigint& rhs) {
+-    int num_lhs_bigits = lhs.num_bigits(), num_rhs_bigits = rhs.num_bigits();
+-    if (num_lhs_bigits != num_rhs_bigits)
+-      return num_lhs_bigits > num_rhs_bigits ? 1 : -1;
+-    int i = static_cast<int>(lhs.bigits_.size()) - 1;
+-    int j = static_cast<int>(rhs.bigits_.size()) - 1;
+-    int end = i - j;
+-    if (end < 0) end = 0;
+-    for (; i >= end; --i, --j) {
+-      bigit lhs_bigit = lhs[i], rhs_bigit = rhs[j];
+-      if (lhs_bigit != rhs_bigit) return lhs_bigit > rhs_bigit ? 1 : -1;
+-    }
+-    if (i != j) return i > j ? 1 : -1;
+-    return 0;
+-  }
+-
+-  // Returns compare(lhs1 + lhs2, rhs).
+-  friend FMT_CONSTEXPR20 int add_compare(const bigint& lhs1, const bigint& lhs2,
+-                                         const bigint& rhs) {
+-    int max_lhs_bigits = (std::max)(lhs1.num_bigits(), lhs2.num_bigits());
+-    int num_rhs_bigits = rhs.num_bigits();
+-    if (max_lhs_bigits + 1 < num_rhs_bigits) return -1;
+-    if (max_lhs_bigits > num_rhs_bigits) return 1;
+-    auto get_bigit = [](const bigint& n, int i) -> bigit {
+-      return i >= n.exp_ && i < n.num_bigits() ? n[i - n.exp_] : 0;
+-    };
+-    double_bigit borrow = 0;
+-    int min_exp = (std::min)((std::min)(lhs1.exp_, lhs2.exp_), rhs.exp_);
+-    for (int i = num_rhs_bigits - 1; i >= min_exp; --i) {
+-      double_bigit sum =
+-          static_cast<double_bigit>(get_bigit(lhs1, i)) + get_bigit(lhs2, i);
+-      bigit rhs_bigit = get_bigit(rhs, i);
+-      if (sum > rhs_bigit + borrow) return 1;
+-      borrow = rhs_bigit + borrow - sum;
+-      if (borrow > 1) return -1;
+-      borrow <<= bigit_bits;
+-    }
+-    return borrow != 0 ? -1 : 0;
+-  }
+-
+-  // Assigns pow(10, exp) to this bigint.
+-  FMT_CONSTEXPR20 void assign_pow10(int exp) {
+-    FMT_ASSERT(exp >= 0, "");
+-    if (exp == 0) return assign(1);
+-    // Find the top bit.
+-    int bitmask = 1;
+-    while (exp >= bitmask) bitmask <<= 1;
+-    bitmask >>= 1;
+-    // pow(10, exp) = pow(5, exp) * pow(2, exp). First compute pow(5, exp) by
+-    // repeated squaring and multiplication.
+-    assign(5);
+-    bitmask >>= 1;
+-    while (bitmask != 0) {
+-      square();
+-      if ((exp & bitmask) != 0) *this *= 5;
+-      bitmask >>= 1;
+-    }
+-    *this <<= exp;  // Multiply by pow(2, exp) by shifting.
+-  }
+-
+-  FMT_CONSTEXPR20 void square() {
+-    int num_bigits = static_cast<int>(bigits_.size());
+-    int num_result_bigits = 2 * num_bigits;
+-    basic_memory_buffer<bigit, bigits_capacity> n(std::move(bigits_));
+-    bigits_.resize(to_unsigned(num_result_bigits));
+-    using accumulator_t = conditional_t<FMT_USE_INT128, uint128_t, accumulator>;
+-    auto sum = accumulator_t();
+-    for (int bigit_index = 0; bigit_index < num_bigits; ++bigit_index) {
+-      // Compute bigit at position bigit_index of the result by adding
+-      // cross-product terms n[i] * n[j] such that i + j == bigit_index.
+-      for (int i = 0, j = bigit_index; j >= 0; ++i, --j) {
+-        // Most terms are multiplied twice which can be optimized in the future.
+-        sum += static_cast<double_bigit>(n[i]) * n[j];
+-      }
+-      (*this)[bigit_index] = static_cast<bigit>(sum);
+-      sum >>= bits<bigit>::value;  // Compute the carry.
+-    }
+-    // Do the same for the top half.
+-    for (int bigit_index = num_bigits; bigit_index < num_result_bigits;
+-         ++bigit_index) {
+-      for (int j = num_bigits - 1, i = bigit_index - j; i < num_bigits;)
+-        sum += static_cast<double_bigit>(n[i++]) * n[j--];
+-      (*this)[bigit_index] = static_cast<bigit>(sum);
+-      sum >>= bits<bigit>::value;
+-    }
+-    remove_leading_zeros();
+-    exp_ *= 2;
+-  }
+-
+-  // If this bigint has a bigger exponent than other, adds trailing zero to make
+-  // exponents equal. This simplifies some operations such as subtraction.
+-  FMT_CONSTEXPR20 void align(const bigint& other) {
+-    int exp_difference = exp_ - other.exp_;
+-    if (exp_difference <= 0) return;
+-    int num_bigits = static_cast<int>(bigits_.size());
+-    bigits_.resize(to_unsigned(num_bigits + exp_difference));
+-    for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j)
+-      bigits_[j] = bigits_[i];
+-    std::uninitialized_fill_n(bigits_.data(), exp_difference, 0);
+-    exp_ -= exp_difference;
+-  }
+-
+-  // Divides this bignum by divisor, assigning the remainder to this and
+-  // returning the quotient.
+-  FMT_CONSTEXPR20 int divmod_assign(const bigint& divisor) {
+-    FMT_ASSERT(this != &divisor, "");
+-    if (compare(*this, divisor) < 0) return 0;
+-    FMT_ASSERT(divisor.bigits_[divisor.bigits_.size() - 1u] != 0, "");
+-    align(divisor);
+-    int quotient = 0;
+-    do {
+-      subtract_aligned(divisor);
+-      ++quotient;
+-    } while (compare(*this, divisor) >= 0);
+-    return quotient;
+-  }
+-};
+-
+-enum class round_direction { unknown, up, down };
+-
+-// Given the divisor (normally a power of 10), the remainder = v % divisor for
+-// some number v and the error, returns whether v should be rounded up, down, or
+-// whether the rounding direction can't be determined due to error.
+-// error should be less than divisor / 2.
+-FMT_CONSTEXPR inline round_direction get_round_direction(uint64_t divisor,
+-                                                         uint64_t remainder,
+-                                                         uint64_t error) {
+-  FMT_ASSERT(remainder < divisor, "");  // divisor - remainder won't overflow.
+-  FMT_ASSERT(error < divisor, "");      // divisor - error won't overflow.
+-  FMT_ASSERT(error < divisor - error, "");  // error * 2 won't overflow.
+-  // Round down if (remainder + error) * 2 <= divisor.
+-  if (remainder <= divisor - remainder && error * 2 <= divisor - remainder * 2)
+-    return round_direction::down;
+-  // Round up if (remainder - error) * 2 >= divisor.
+-  if (remainder >= error &&
+-      remainder - error >= divisor - (remainder - error)) {
+-    return round_direction::up;
+-  }
+-  return round_direction::unknown;
+-}
+-
+-namespace digits {
+-enum result {
+-  more,  // Generate more digits.
+-  done,  // Done generating digits.
+-  error  // Digit generation cancelled due to an error.
+-};
+-}
+-
+-struct gen_digits_handler {
+-  char* buf;
+-  int size;
+-  int precision;
+-  int exp10;
+-  bool fixed;
+-
+-  FMT_CONSTEXPR digits::result on_digit(char digit, uint64_t divisor,
+-                                        uint64_t remainder, uint64_t error,
+-                                        bool integral) {
+-    FMT_ASSERT(remainder < divisor, "");
+-    buf[size++] = digit;
+-    if (!integral && error >= remainder) return digits::error;
+-    if (size < precision) return digits::more;
+-    if (!integral) {
+-      // Check if error * 2 < divisor with overflow prevention.
+-      // The check is not needed for the integral part because error = 1
+-      // and divisor > (1 << 32) there.
+-      if (error >= divisor || error >= divisor - error) return digits::error;
+-    } else {
+-      FMT_ASSERT(error == 1 && divisor > 2, "");
+-    }
+-    auto dir = get_round_direction(divisor, remainder, error);
+-    if (dir != round_direction::up)
+-      return dir == round_direction::down ? digits::done : digits::error;
+-    ++buf[size - 1];
+-    for (int i = size - 1; i > 0 && buf[i] > '9'; --i) {
+-      buf[i] = '0';
+-      ++buf[i - 1];
+-    }
+-    if (buf[0] > '9') {
+-      buf[0] = '1';
+-      if (fixed)
+-        buf[size++] = '0';
+-      else
+-        ++exp10;
+-    }
+-    return digits::done;
+-  }
+-};
+-
+-// Generates output using the Grisu digit-gen algorithm.
+-// error: the size of the region (lower, upper) outside of which numbers
+-// definitely do not round to value (Delta in Grisu3).
+-FMT_INLINE FMT_CONSTEXPR20 digits::result grisu_gen_digits(
+-    fp value, uint64_t error, int& exp, gen_digits_handler& handler) {
+-  const fp one(1ULL << -value.e, value.e);
+-  // The integral part of scaled value (p1 in Grisu) = value / one. It cannot be
+-  // zero because it contains a product of two 64-bit numbers with MSB set (due
+-  // to normalization) - 1, shifted right by at most 60 bits.
+-  auto integral = static_cast<uint32_t>(value.f >> -one.e);
+-  FMT_ASSERT(integral != 0, "");
+-  FMT_ASSERT(integral == value.f >> -one.e, "");
+-  // The fractional part of scaled value (p2 in Grisu) c = value % one.
+-  uint64_t fractional = value.f & (one.f - 1);
+-  exp = count_digits(integral);  // kappa in Grisu.
+-  // Non-fixed formats require at least one digit and no precision adjustment.
+-  if (handler.fixed) {
+-    // Adjust fixed precision by exponent because it is relative to decimal
+-    // point.
+-    int precision_offset = exp + handler.exp10;
+-    if (precision_offset > 0 &&
+-        handler.precision > max_value<int>() - precision_offset) {
+-      FMT_THROW(format_error("number is too big"));
+-    }
+-    handler.precision += precision_offset;
+-    // Check if precision is satisfied just by leading zeros, e.g.
+-    // format("{:.2f}", 0.001) gives "0.00" without generating any digits.
+-    if (handler.precision <= 0) {
+-      if (handler.precision < 0) return digits::done;
+-      // Divide by 10 to prevent overflow.
+-      uint64_t divisor = impl_data::power_of_10_64[exp - 1] << -one.e;
+-      auto dir = get_round_direction(divisor, value.f / 10, error * 10);
+-      if (dir == round_direction::unknown) return digits::error;
+-      handler.buf[handler.size++] = dir == round_direction::up ? '1' : '0';
+-      return digits::done;
+-    }
+-  }
+-  // Generate digits for the integral part. This can produce up to 10 digits.
+-  do {
+-    uint32_t digit = 0;
+-    auto divmod_integral = [&](uint32_t divisor) {
+-      digit = integral / divisor;
+-      integral %= divisor;
+-    };
+-    // This optimization by Milo Yip reduces the number of integer divisions by
+-    // one per iteration.
+-    switch (exp) {
+-    case 10:
+-      divmod_integral(1000000000);
+-      break;
+-    case 9:
+-      divmod_integral(100000000);
+-      break;
+-    case 8:
+-      divmod_integral(10000000);
+-      break;
+-    case 7:
+-      divmod_integral(1000000);
+-      break;
+-    case 6:
+-      divmod_integral(100000);
+-      break;
+-    case 5:
+-      divmod_integral(10000);
+-      break;
+-    case 4:
+-      divmod_integral(1000);
+-      break;
+-    case 3:
+-      divmod_integral(100);
+-      break;
+-    case 2:
+-      divmod_integral(10);
+-      break;
+-    case 1:
+-      digit = integral;
+-      integral = 0;
+-      break;
+-    default:
+-      FMT_ASSERT(false, "invalid number of digits");
+-    }
+-    --exp;
+-    auto remainder = (static_cast<uint64_t>(integral) << -one.e) + fractional;
+-    auto result = handler.on_digit(static_cast<char>('0' + digit),
+-                                   impl_data::power_of_10_64[exp] << -one.e,
+-                                   remainder, error, true);
+-    if (result != digits::more) return result;
+-  } while (exp > 0);
+-  // Generate digits for the fractional part.
+-  for (;;) {
+-    fractional *= 10;
+-    error *= 10;
+-    char digit = static_cast<char>('0' + (fractional >> -one.e));
+-    fractional &= one.f - 1;
+-    --exp;
+-    auto result = handler.on_digit(digit, one.f, fractional, error, false);
+-    if (result != digits::more) return result;
+-  }
+-}
+-
+-// A 128-bit integer type used internally,
+-struct uint128_wrapper {
+-  uint128_wrapper() = default;
+-
+-#if FMT_USE_INT128
+-  uint128_t internal_;
+-
+-  constexpr uint128_wrapper(uint64_t high, uint64_t low) FMT_NOEXCEPT
+-      : internal_{static_cast<uint128_t>(low) |
+-                  (static_cast<uint128_t>(high) << 64)} {}
+-
+-  constexpr uint128_wrapper(uint128_t u) : internal_{u} {}
+-
+-  constexpr uint64_t high() const FMT_NOEXCEPT {
+-    return uint64_t(internal_ >> 64);
+-  }
+-  constexpr uint64_t low() const FMT_NOEXCEPT { return uint64_t(internal_); }
+-
+-  uint128_wrapper& operator+=(uint64_t n) FMT_NOEXCEPT {
+-    internal_ += n;
+-    return *this;
+-  }
+-#else
+-  uint64_t high_;
+-  uint64_t low_;
+-
+-  constexpr uint128_wrapper(uint64_t high, uint64_t low) FMT_NOEXCEPT
+-      : high_{high},
+-        low_{low} {}
+-
+-  constexpr uint64_t high() const FMT_NOEXCEPT { return high_; }
+-  constexpr uint64_t low() const FMT_NOEXCEPT { return low_; }
+-
+-  uint128_wrapper& operator+=(uint64_t n) FMT_NOEXCEPT {
+-#  if defined(_MSC_VER) && defined(_M_X64)
+-    unsigned char carry = _addcarry_u64(0, low_, n, &low_);
+-    _addcarry_u64(carry, high_, 0, &high_);
+-    return *this;
+-#  else
+-    uint64_t sum = low_ + n;
+-    high_ += (sum < low_ ? 1 : 0);
+-    low_ = sum;
+-    return *this;
+-#  endif
+-  }
+-#endif
+-};
+-
+-// Implementation of Dragonbox algorithm: https://github.com/jk-jeon/dragonbox.
+-namespace dragonbox {
+-// Computes 128-bit result of multiplication of two 64-bit unsigned integers.
+-inline uint128_wrapper umul128(uint64_t x, uint64_t y) FMT_NOEXCEPT {
+-#if FMT_USE_INT128
+-  return static_cast<uint128_t>(x) * static_cast<uint128_t>(y);
+-#elif defined(_MSC_VER) && defined(_M_X64)
+-  uint128_wrapper result;
+-  result.low_ = _umul128(x, y, &result.high_);
+-  return result;
+-#else
+-  const uint64_t mask = (uint64_t(1) << 32) - uint64_t(1);
+-
+-  uint64_t a = x >> 32;
+-  uint64_t b = x & mask;
+-  uint64_t c = y >> 32;
+-  uint64_t d = y & mask;
+-
+-  uint64_t ac = a * c;
+-  uint64_t bc = b * c;
+-  uint64_t ad = a * d;
+-  uint64_t bd = b * d;
+-
+-  uint64_t intermediate = (bd >> 32) + (ad & mask) + (bc & mask);
+-
+-  return {ac + (intermediate >> 32) + (ad >> 32) + (bc >> 32),
+-          (intermediate << 32) + (bd & mask)};
+-#endif
+-}
+-
+-// Computes upper 64 bits of multiplication of two 64-bit unsigned integers.
+-inline uint64_t umul128_upper64(uint64_t x, uint64_t y) FMT_NOEXCEPT {
+-#if FMT_USE_INT128
+-  auto p = static_cast<uint128_t>(x) * static_cast<uint128_t>(y);
+-  return static_cast<uint64_t>(p >> 64);
+-#elif defined(_MSC_VER) && defined(_M_X64)
+-  return __umulh(x, y);
+-#else
+-  return umul128(x, y).high();
+-#endif
+-}
+-
+-// Computes upper 64 bits of multiplication of a 64-bit unsigned integer and a
+-// 128-bit unsigned integer.
+-inline uint64_t umul192_upper64(uint64_t x, uint128_wrapper y) FMT_NOEXCEPT {
+-  uint128_wrapper g0 = umul128(x, y.high());
+-  g0 += umul128_upper64(x, y.low());
+-  return g0.high();
+-}
+-
+-// Computes upper 32 bits of multiplication of a 32-bit unsigned integer and a
+-// 64-bit unsigned integer.
+-inline uint32_t umul96_upper32(uint32_t x, uint64_t y) FMT_NOEXCEPT {
+-  return static_cast<uint32_t>(umul128_upper64(x, y));
+-}
+-
+-// Computes middle 64 bits of multiplication of a 64-bit unsigned integer and a
+-// 128-bit unsigned integer.
+-inline uint64_t umul192_middle64(uint64_t x, uint128_wrapper y) FMT_NOEXCEPT {
+-  uint64_t g01 = x * y.high();
+-  uint64_t g10 = umul128_upper64(x, y.low());
+-  return g01 + g10;
+-}
+-
+-// Computes lower 64 bits of multiplication of a 32-bit unsigned integer and a
+-// 64-bit unsigned integer.
+-inline uint64_t umul96_lower64(uint32_t x, uint64_t y) FMT_NOEXCEPT {
+-  return x * y;
+-}
+-
+-// Computes floor(log10(pow(2, e))) for e in [-1700, 1700] using the method from
+-// https://fmt.dev/papers/Grisu-Exact.pdf#page=5, section 3.4.
+-inline int floor_log10_pow2(int e) FMT_NOEXCEPT {
+-  FMT_ASSERT(e <= 1700 && e >= -1700, "too large exponent");
+-  const int shift = 22;
+-  return (e * static_cast<int>(log10_2_significand >> (64 - shift))) >> shift;
+-}
+-
+-// Various fast log computations.
+-inline int floor_log2_pow10(int e) FMT_NOEXCEPT {
+-  FMT_ASSERT(e <= 1233 && e >= -1233, "too large exponent");
+-  const uint64_t log2_10_integer_part = 3;
+-  const uint64_t log2_10_fractional_digits = 0x5269e12f346e2bf9;
+-  const int shift_amount = 19;
+-  return (e * static_cast<int>(
+-                  (log2_10_integer_part << shift_amount) |
+-                  (log2_10_fractional_digits >> (64 - shift_amount)))) >>
+-         shift_amount;
+-}
+-inline int floor_log10_pow2_minus_log10_4_over_3(int e) FMT_NOEXCEPT {
+-  FMT_ASSERT(e <= 1700 && e >= -1700, "too large exponent");
+-  const uint64_t log10_4_over_3_fractional_digits = 0x1ffbfc2bbc780375;
+-  const int shift_amount = 22;
+-  return (e * static_cast<int>(log10_2_significand >> (64 - shift_amount)) -
+-          static_cast<int>(log10_4_over_3_fractional_digits >>
+-                           (64 - shift_amount))) >>
+-         shift_amount;
+-}
+-
+-// Returns true iff x is divisible by pow(2, exp).
+-inline bool divisible_by_power_of_2(uint32_t x, int exp) FMT_NOEXCEPT {
+-  FMT_ASSERT(exp >= 1, "");
+-  FMT_ASSERT(x != 0, "");
+-#ifdef FMT_BUILTIN_CTZ
+-  return FMT_BUILTIN_CTZ(x) >= exp;
+-#else
+-  return exp < num_bits<uint32_t>() && x == ((x >> exp) << exp);
+-#endif
+-}
+-inline bool divisible_by_power_of_2(uint64_t x, int exp) FMT_NOEXCEPT {
+-  FMT_ASSERT(exp >= 1, "");
+-  FMT_ASSERT(x != 0, "");
+-#ifdef FMT_BUILTIN_CTZLL
+-  return FMT_BUILTIN_CTZLL(x) >= exp;
+-#else
+-  return exp < num_bits<uint64_t>() && x == ((x >> exp) << exp);
+-#endif
+-}
+-
+-// Table entry type for divisibility test.
+-template <typename T> struct divtest_table_entry {
+-  T mod_inv;
+-  T max_quotient;
+-};
+-
+-// Returns true iff x is divisible by pow(5, exp).
+-inline bool divisible_by_power_of_5(uint32_t x, int exp) FMT_NOEXCEPT {
+-  FMT_ASSERT(exp <= 10, "too large exponent");
+-  static constexpr const divtest_table_entry<uint32_t> divtest_table[] = {
+-      {0x00000001, 0xffffffff}, {0xcccccccd, 0x33333333},
+-      {0xc28f5c29, 0x0a3d70a3}, {0x26e978d5, 0x020c49ba},
+-      {0x3afb7e91, 0x0068db8b}, {0x0bcbe61d, 0x0014f8b5},
+-      {0x68c26139, 0x000431bd}, {0xae8d46a5, 0x0000d6bf},
+-      {0x22e90e21, 0x00002af3}, {0x3a2e9c6d, 0x00000897},
+-      {0x3ed61f49, 0x000001b7}};
+-  return x * divtest_table[exp].mod_inv <= divtest_table[exp].max_quotient;
+-}
+-inline bool divisible_by_power_of_5(uint64_t x, int exp) FMT_NOEXCEPT {
+-  FMT_ASSERT(exp <= 23, "too large exponent");
+-  static constexpr const divtest_table_entry<uint64_t> divtest_table[] = {
+-      {0x0000000000000001, 0xffffffffffffffff},
+-      {0xcccccccccccccccd, 0x3333333333333333},
+-      {0x8f5c28f5c28f5c29, 0x0a3d70a3d70a3d70},
+-      {0x1cac083126e978d5, 0x020c49ba5e353f7c},
+-      {0xd288ce703afb7e91, 0x0068db8bac710cb2},
+-      {0x5d4e8fb00bcbe61d, 0x0014f8b588e368f0},
+-      {0x790fb65668c26139, 0x000431bde82d7b63},
+-      {0xe5032477ae8d46a5, 0x0000d6bf94d5e57a},
+-      {0xc767074b22e90e21, 0x00002af31dc46118},
+-      {0x8e47ce423a2e9c6d, 0x0000089705f4136b},
+-      {0x4fa7f60d3ed61f49, 0x000001b7cdfd9d7b},
+-      {0x0fee64690c913975, 0x00000057f5ff85e5},
+-      {0x3662e0e1cf503eb1, 0x000000119799812d},
+-      {0xa47a2cf9f6433fbd, 0x0000000384b84d09},
+-      {0x54186f653140a659, 0x00000000b424dc35},
+-      {0x7738164770402145, 0x0000000024075f3d},
+-      {0xe4a4d1417cd9a041, 0x000000000734aca5},
+-      {0xc75429d9e5c5200d, 0x000000000170ef54},
+-      {0xc1773b91fac10669, 0x000000000049c977},
+-      {0x26b172506559ce15, 0x00000000000ec1e4},
+-      {0xd489e3a9addec2d1, 0x000000000002f394},
+-      {0x90e860bb892c8d5d, 0x000000000000971d},
+-      {0x502e79bf1b6f4f79, 0x0000000000001e39},
+-      {0xdcd618596be30fe5, 0x000000000000060b}};
+-  return x * divtest_table[exp].mod_inv <= divtest_table[exp].max_quotient;
+-}
+-
+-// Replaces n by floor(n / pow(5, N)) returning true if and only if n is
+-// divisible by pow(5, N).
+-// Precondition: n <= 2 * pow(5, N + 1).
+-template <int N>
+-bool check_divisibility_and_divide_by_pow5(uint32_t& n) FMT_NOEXCEPT {
+-  static constexpr struct {
+-    uint32_t magic_number;
+-    int bits_for_comparison;
+-    uint32_t threshold;
+-    int shift_amount;
+-  } infos[] = {{0xcccd, 16, 0x3333, 18}, {0xa429, 8, 0x0a, 20}};
+-  constexpr auto info = infos[N - 1];
+-  n *= info.magic_number;
+-  const uint32_t comparison_mask = (1u << info.bits_for_comparison) - 1;
+-  bool result = (n & comparison_mask) <= info.threshold;
+-  n >>= info.shift_amount;
+-  return result;
+-}
+-
+-// Computes floor(n / pow(10, N)) for small n and N.
+-// Precondition: n <= pow(10, N + 1).
+-template <int N> uint32_t small_division_by_pow10(uint32_t n) FMT_NOEXCEPT {
+-  static constexpr struct {
+-    uint32_t magic_number;
+-    int shift_amount;
+-    uint32_t divisor_times_10;
+-  } infos[] = {{0xcccd, 19, 100}, {0xa3d8, 22, 1000}};
+-  constexpr auto info = infos[N - 1];
+-  FMT_ASSERT(n <= info.divisor_times_10, "n is too large");
+-  return n * info.magic_number >> info.shift_amount;
+-}
+-
+-// Computes floor(n / 10^(kappa + 1)) (float)
+-inline uint32_t divide_by_10_to_kappa_plus_1(uint32_t n) FMT_NOEXCEPT {
+-  return n / float_info<float>::big_divisor;
+-}
+-// Computes floor(n / 10^(kappa + 1)) (double)
+-inline uint64_t divide_by_10_to_kappa_plus_1(uint64_t n) FMT_NOEXCEPT {
+-  return umul128_upper64(n, 0x83126e978d4fdf3c) >> 9;
+-}
+-
+-// Various subroutines using pow10 cache
+-template <class T> struct cache_accessor;
+-
+-template <> struct cache_accessor<float> {
+-  using carrier_uint = float_info<float>::carrier_uint;
+-  using cache_entry_type = uint64_t;
+-
+-  static uint64_t get_cached_power(int k) FMT_NOEXCEPT {
+-    FMT_ASSERT(k >= float_info<float>::min_k && k <= float_info<float>::max_k,
+-               "k is out of range");
+-    static constexpr const uint64_t pow10_significands[] = {
+-        0x81ceb32c4b43fcf5, 0xa2425ff75e14fc32, 0xcad2f7f5359a3b3f,
+-        0xfd87b5f28300ca0e, 0x9e74d1b791e07e49, 0xc612062576589ddb,
+-        0xf79687aed3eec552, 0x9abe14cd44753b53, 0xc16d9a0095928a28,
+-        0xf1c90080baf72cb2, 0x971da05074da7bef, 0xbce5086492111aeb,
+-        0xec1e4a7db69561a6, 0x9392ee8e921d5d08, 0xb877aa3236a4b44a,
+-        0xe69594bec44de15c, 0x901d7cf73ab0acda, 0xb424dc35095cd810,
+-        0xe12e13424bb40e14, 0x8cbccc096f5088cc, 0xafebff0bcb24aaff,
+-        0xdbe6fecebdedd5bf, 0x89705f4136b4a598, 0xabcc77118461cefd,
+-        0xd6bf94d5e57a42bd, 0x8637bd05af6c69b6, 0xa7c5ac471b478424,
+-        0xd1b71758e219652c, 0x83126e978d4fdf3c, 0xa3d70a3d70a3d70b,
+-        0xcccccccccccccccd, 0x8000000000000000, 0xa000000000000000,
+-        0xc800000000000000, 0xfa00000000000000, 0x9c40000000000000,
+-        0xc350000000000000, 0xf424000000000000, 0x9896800000000000,
+-        0xbebc200000000000, 0xee6b280000000000, 0x9502f90000000000,
+-        0xba43b74000000000, 0xe8d4a51000000000, 0x9184e72a00000000,
+-        0xb5e620f480000000, 0xe35fa931a0000000, 0x8e1bc9bf04000000,
+-        0xb1a2bc2ec5000000, 0xde0b6b3a76400000, 0x8ac7230489e80000,
+-        0xad78ebc5ac620000, 0xd8d726b7177a8000, 0x878678326eac9000,
+-        0xa968163f0a57b400, 0xd3c21bcecceda100, 0x84595161401484a0,
+-        0xa56fa5b99019a5c8, 0xcecb8f27f4200f3a, 0x813f3978f8940984,
+-        0xa18f07d736b90be5, 0xc9f2c9cd04674ede, 0xfc6f7c4045812296,
+-        0x9dc5ada82b70b59d, 0xc5371912364ce305, 0xf684df56c3e01bc6,
+-        0x9a130b963a6c115c, 0xc097ce7bc90715b3, 0xf0bdc21abb48db20,
+-        0x96769950b50d88f4, 0xbc143fa4e250eb31, 0xeb194f8e1ae525fd,
+-        0x92efd1b8d0cf37be, 0xb7abc627050305ad, 0xe596b7b0c643c719,
+-        0x8f7e32ce7bea5c6f, 0xb35dbf821ae4f38b, 0xe0352f62a19e306e};
+-    return pow10_significands[k - float_info<float>::min_k];
+-  }
+-
+-  static carrier_uint compute_mul(carrier_uint u,
+-                                  const cache_entry_type& cache) FMT_NOEXCEPT {
+-    return umul96_upper32(u, cache);
+-  }
+-
+-  static uint32_t compute_delta(const cache_entry_type& cache,
+-                                int beta_minus_1) FMT_NOEXCEPT {
+-    return static_cast<uint32_t>(cache >> (64 - 1 - beta_minus_1));
+-  }
+-
+-  static bool compute_mul_parity(carrier_uint two_f,
+-                                 const cache_entry_type& cache,
+-                                 int beta_minus_1) FMT_NOEXCEPT {
+-    FMT_ASSERT(beta_minus_1 >= 1, "");
+-    FMT_ASSERT(beta_minus_1 < 64, "");
+-
+-    return ((umul96_lower64(two_f, cache) >> (64 - beta_minus_1)) & 1) != 0;
+-  }
+-
+-  static carrier_uint compute_left_endpoint_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return static_cast<carrier_uint>(
+-        (cache - (cache >> (float_info<float>::significand_bits + 2))) >>
+-        (64 - float_info<float>::significand_bits - 1 - beta_minus_1));
+-  }
+-
+-  static carrier_uint compute_right_endpoint_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return static_cast<carrier_uint>(
+-        (cache + (cache >> (float_info<float>::significand_bits + 1))) >>
+-        (64 - float_info<float>::significand_bits - 1 - beta_minus_1));
+-  }
+-
+-  static carrier_uint compute_round_up_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return (static_cast<carrier_uint>(
+-                cache >>
+-                (64 - float_info<float>::significand_bits - 2 - beta_minus_1)) +
+-            1) /
+-           2;
+-  }
+-};
+-
+-template <> struct cache_accessor<double> {
+-  using carrier_uint = float_info<double>::carrier_uint;
+-  using cache_entry_type = uint128_wrapper;
+-
+-  static uint128_wrapper get_cached_power(int k) FMT_NOEXCEPT {
+-    FMT_ASSERT(k >= float_info<double>::min_k && k <= float_info<double>::max_k,
+-               "k is out of range");
+-
+-    static constexpr const uint128_wrapper pow10_significands[] = {
+-#if FMT_USE_FULL_CACHE_DRAGONBOX
+-      {0xff77b1fcbebcdc4f, 0x25e8e89c13bb0f7b},
+-      {0x9faacf3df73609b1, 0x77b191618c54e9ad},
+-      {0xc795830d75038c1d, 0xd59df5b9ef6a2418},
+-      {0xf97ae3d0d2446f25, 0x4b0573286b44ad1e},
+-      {0x9becce62836ac577, 0x4ee367f9430aec33},
+-      {0xc2e801fb244576d5, 0x229c41f793cda740},
+-      {0xf3a20279ed56d48a, 0x6b43527578c11110},
+-      {0x9845418c345644d6, 0x830a13896b78aaaa},
+-      {0xbe5691ef416bd60c, 0x23cc986bc656d554},
+-      {0xedec366b11c6cb8f, 0x2cbfbe86b7ec8aa9},
+-      {0x94b3a202eb1c3f39, 0x7bf7d71432f3d6aa},
+-      {0xb9e08a83a5e34f07, 0xdaf5ccd93fb0cc54},
+-      {0xe858ad248f5c22c9, 0xd1b3400f8f9cff69},
+-      {0x91376c36d99995be, 0x23100809b9c21fa2},
+-      {0xb58547448ffffb2d, 0xabd40a0c2832a78b},
+-      {0xe2e69915b3fff9f9, 0x16c90c8f323f516d},
+-      {0x8dd01fad907ffc3b, 0xae3da7d97f6792e4},
+-      {0xb1442798f49ffb4a, 0x99cd11cfdf41779d},
+-      {0xdd95317f31c7fa1d, 0x40405643d711d584},
+-      {0x8a7d3eef7f1cfc52, 0x482835ea666b2573},
+-      {0xad1c8eab5ee43b66, 0xda3243650005eed0},
+-      {0xd863b256369d4a40, 0x90bed43e40076a83},
+-      {0x873e4f75e2224e68, 0x5a7744a6e804a292},
+-      {0xa90de3535aaae202, 0x711515d0a205cb37},
+-      {0xd3515c2831559a83, 0x0d5a5b44ca873e04},
+-      {0x8412d9991ed58091, 0xe858790afe9486c3},
+-      {0xa5178fff668ae0b6, 0x626e974dbe39a873},
+-      {0xce5d73ff402d98e3, 0xfb0a3d212dc81290},
+-      {0x80fa687f881c7f8e, 0x7ce66634bc9d0b9a},
+-      {0xa139029f6a239f72, 0x1c1fffc1ebc44e81},
+-      {0xc987434744ac874e, 0xa327ffb266b56221},
+-      {0xfbe9141915d7a922, 0x4bf1ff9f0062baa9},
+-      {0x9d71ac8fada6c9b5, 0x6f773fc3603db4aa},
+-      {0xc4ce17b399107c22, 0xcb550fb4384d21d4},
+-      {0xf6019da07f549b2b, 0x7e2a53a146606a49},
+-      {0x99c102844f94e0fb, 0x2eda7444cbfc426e},
+-      {0xc0314325637a1939, 0xfa911155fefb5309},
+-      {0xf03d93eebc589f88, 0x793555ab7eba27cb},
+-      {0x96267c7535b763b5, 0x4bc1558b2f3458df},
+-      {0xbbb01b9283253ca2, 0x9eb1aaedfb016f17},
+-      {0xea9c227723ee8bcb, 0x465e15a979c1cadd},
+-      {0x92a1958a7675175f, 0x0bfacd89ec191eca},
+-      {0xb749faed14125d36, 0xcef980ec671f667c},
+-      {0xe51c79a85916f484, 0x82b7e12780e7401b},
+-      {0x8f31cc0937ae58d2, 0xd1b2ecb8b0908811},
+-      {0xb2fe3f0b8599ef07, 0x861fa7e6dcb4aa16},
+-      {0xdfbdcece67006ac9, 0x67a791e093e1d49b},
+-      {0x8bd6a141006042bd, 0xe0c8bb2c5c6d24e1},
+-      {0xaecc49914078536d, 0x58fae9f773886e19},
+-      {0xda7f5bf590966848, 0xaf39a475506a899f},
+-      {0x888f99797a5e012d, 0x6d8406c952429604},
+-      {0xaab37fd7d8f58178, 0xc8e5087ba6d33b84},
+-      {0xd5605fcdcf32e1d6, 0xfb1e4a9a90880a65},
+-      {0x855c3be0a17fcd26, 0x5cf2eea09a550680},
+-      {0xa6b34ad8c9dfc06f, 0xf42faa48c0ea481f},
+-      {0xd0601d8efc57b08b, 0xf13b94daf124da27},
+-      {0x823c12795db6ce57, 0x76c53d08d6b70859},
+-      {0xa2cb1717b52481ed, 0x54768c4b0c64ca6f},
+-      {0xcb7ddcdda26da268, 0xa9942f5dcf7dfd0a},
+-      {0xfe5d54150b090b02, 0xd3f93b35435d7c4d},
+-      {0x9efa548d26e5a6e1, 0xc47bc5014a1a6db0},
+-      {0xc6b8e9b0709f109a, 0x359ab6419ca1091c},
+-      {0xf867241c8cc6d4c0, 0xc30163d203c94b63},
+-      {0x9b407691d7fc44f8, 0x79e0de63425dcf1e},
+-      {0xc21094364dfb5636, 0x985915fc12f542e5},
+-      {0xf294b943e17a2bc4, 0x3e6f5b7b17b2939e},
+-      {0x979cf3ca6cec5b5a, 0xa705992ceecf9c43},
+-      {0xbd8430bd08277231, 0x50c6ff782a838354},
+-      {0xece53cec4a314ebd, 0xa4f8bf5635246429},
+-      {0x940f4613ae5ed136, 0x871b7795e136be9a},
+-      {0xb913179899f68584, 0x28e2557b59846e40},
+-      {0xe757dd7ec07426e5, 0x331aeada2fe589d0},
+-      {0x9096ea6f3848984f, 0x3ff0d2c85def7622},
+-      {0xb4bca50b065abe63, 0x0fed077a756b53aa},
+-      {0xe1ebce4dc7f16dfb, 0xd3e8495912c62895},
+-      {0x8d3360f09cf6e4bd, 0x64712dd7abbbd95d},
+-      {0xb080392cc4349dec, 0xbd8d794d96aacfb4},
+-      {0xdca04777f541c567, 0xecf0d7a0fc5583a1},
+-      {0x89e42caaf9491b60, 0xf41686c49db57245},
+-      {0xac5d37d5b79b6239, 0x311c2875c522ced6},
+-      {0xd77485cb25823ac7, 0x7d633293366b828c},
+-      {0x86a8d39ef77164bc, 0xae5dff9c02033198},
+-      {0xa8530886b54dbdeb, 0xd9f57f830283fdfd},
+-      {0xd267caa862a12d66, 0xd072df63c324fd7c},
+-      {0x8380dea93da4bc60, 0x4247cb9e59f71e6e},
+-      {0xa46116538d0deb78, 0x52d9be85f074e609},
+-      {0xcd795be870516656, 0x67902e276c921f8c},
+-      {0x806bd9714632dff6, 0x00ba1cd8a3db53b7},
+-      {0xa086cfcd97bf97f3, 0x80e8a40eccd228a5},
+-      {0xc8a883c0fdaf7df0, 0x6122cd128006b2ce},
+-      {0xfad2a4b13d1b5d6c, 0x796b805720085f82},
+-      {0x9cc3a6eec6311a63, 0xcbe3303674053bb1},
+-      {0xc3f490aa77bd60fc, 0xbedbfc4411068a9d},
+-      {0xf4f1b4d515acb93b, 0xee92fb5515482d45},
+-      {0x991711052d8bf3c5, 0x751bdd152d4d1c4b},
+-      {0xbf5cd54678eef0b6, 0xd262d45a78a0635e},
+-      {0xef340a98172aace4, 0x86fb897116c87c35},
+-      {0x9580869f0e7aac0e, 0xd45d35e6ae3d4da1},
+-      {0xbae0a846d2195712, 0x8974836059cca10a},
+-      {0xe998d258869facd7, 0x2bd1a438703fc94c},
+-      {0x91ff83775423cc06, 0x7b6306a34627ddd0},
+-      {0xb67f6455292cbf08, 0x1a3bc84c17b1d543},
+-      {0xe41f3d6a7377eeca, 0x20caba5f1d9e4a94},
+-      {0x8e938662882af53e, 0x547eb47b7282ee9d},
+-      {0xb23867fb2a35b28d, 0xe99e619a4f23aa44},
+-      {0xdec681f9f4c31f31, 0x6405fa00e2ec94d5},
+-      {0x8b3c113c38f9f37e, 0xde83bc408dd3dd05},
+-      {0xae0b158b4738705e, 0x9624ab50b148d446},
+-      {0xd98ddaee19068c76, 0x3badd624dd9b0958},
+-      {0x87f8a8d4cfa417c9, 0xe54ca5d70a80e5d7},
+-      {0xa9f6d30a038d1dbc, 0x5e9fcf4ccd211f4d},
+-      {0xd47487cc8470652b, 0x7647c32000696720},
+-      {0x84c8d4dfd2c63f3b, 0x29ecd9f40041e074},
+-      {0xa5fb0a17c777cf09, 0xf468107100525891},
+-      {0xcf79cc9db955c2cc, 0x7182148d4066eeb5},
+-      {0x81ac1fe293d599bf, 0xc6f14cd848405531},
+-      {0xa21727db38cb002f, 0xb8ada00e5a506a7d},
+-      {0xca9cf1d206fdc03b, 0xa6d90811f0e4851d},
+-      {0xfd442e4688bd304a, 0x908f4a166d1da664},
+-      {0x9e4a9cec15763e2e, 0x9a598e4e043287ff},
+-      {0xc5dd44271ad3cdba, 0x40eff1e1853f29fe},
+-      {0xf7549530e188c128, 0xd12bee59e68ef47d},
+-      {0x9a94dd3e8cf578b9, 0x82bb74f8301958cf},
+-      {0xc13a148e3032d6e7, 0xe36a52363c1faf02},
+-      {0xf18899b1bc3f8ca1, 0xdc44e6c3cb279ac2},
+-      {0x96f5600f15a7b7e5, 0x29ab103a5ef8c0ba},
+-      {0xbcb2b812db11a5de, 0x7415d448f6b6f0e8},
+-      {0xebdf661791d60f56, 0x111b495b3464ad22},
+-      {0x936b9fcebb25c995, 0xcab10dd900beec35},
+-      {0xb84687c269ef3bfb, 0x3d5d514f40eea743},
+-      {0xe65829b3046b0afa, 0x0cb4a5a3112a5113},
+-      {0x8ff71a0fe2c2e6dc, 0x47f0e785eaba72ac},
+-      {0xb3f4e093db73a093, 0x59ed216765690f57},
+-      {0xe0f218b8d25088b8, 0x306869c13ec3532d},
+-      {0x8c974f7383725573, 0x1e414218c73a13fc},
+-      {0xafbd2350644eeacf, 0xe5d1929ef90898fb},
+-      {0xdbac6c247d62a583, 0xdf45f746b74abf3a},
+-      {0x894bc396ce5da772, 0x6b8bba8c328eb784},
+-      {0xab9eb47c81f5114f, 0x066ea92f3f326565},
+-      {0xd686619ba27255a2, 0xc80a537b0efefebe},
+-      {0x8613fd0145877585, 0xbd06742ce95f5f37},
+-      {0xa798fc4196e952e7, 0x2c48113823b73705},
+-      {0xd17f3b51fca3a7a0, 0xf75a15862ca504c6},
+-      {0x82ef85133de648c4, 0x9a984d73dbe722fc},
+-      {0xa3ab66580d5fdaf5, 0xc13e60d0d2e0ebbb},
+-      {0xcc963fee10b7d1b3, 0x318df905079926a9},
+-      {0xffbbcfe994e5c61f, 0xfdf17746497f7053},
+-      {0x9fd561f1fd0f9bd3, 0xfeb6ea8bedefa634},
+-      {0xc7caba6e7c5382c8, 0xfe64a52ee96b8fc1},
+-      {0xf9bd690a1b68637b, 0x3dfdce7aa3c673b1},
+-      {0x9c1661a651213e2d, 0x06bea10ca65c084f},
+-      {0xc31bfa0fe5698db8, 0x486e494fcff30a63},
+-      {0xf3e2f893dec3f126, 0x5a89dba3c3efccfb},
+-      {0x986ddb5c6b3a76b7, 0xf89629465a75e01d},
+-      {0xbe89523386091465, 0xf6bbb397f1135824},
+-      {0xee2ba6c0678b597f, 0x746aa07ded582e2d},
+-      {0x94db483840b717ef, 0xa8c2a44eb4571cdd},
+-      {0xba121a4650e4ddeb, 0x92f34d62616ce414},
+-      {0xe896a0d7e51e1566, 0x77b020baf9c81d18},
+-      {0x915e2486ef32cd60, 0x0ace1474dc1d122f},
+-      {0xb5b5ada8aaff80b8, 0x0d819992132456bb},
+-      {0xe3231912d5bf60e6, 0x10e1fff697ed6c6a},
+-      {0x8df5efabc5979c8f, 0xca8d3ffa1ef463c2},
+-      {0xb1736b96b6fd83b3, 0xbd308ff8a6b17cb3},
+-      {0xddd0467c64bce4a0, 0xac7cb3f6d05ddbdf},
+-      {0x8aa22c0dbef60ee4, 0x6bcdf07a423aa96c},
+-      {0xad4ab7112eb3929d, 0x86c16c98d2c953c7},
+-      {0xd89d64d57a607744, 0xe871c7bf077ba8b8},
+-      {0x87625f056c7c4a8b, 0x11471cd764ad4973},
+-      {0xa93af6c6c79b5d2d, 0xd598e40d3dd89bd0},
+-      {0xd389b47879823479, 0x4aff1d108d4ec2c4},
+-      {0x843610cb4bf160cb, 0xcedf722a585139bb},
+-      {0xa54394fe1eedb8fe, 0xc2974eb4ee658829},
+-      {0xce947a3da6a9273e, 0x733d226229feea33},
+-      {0x811ccc668829b887, 0x0806357d5a3f5260},
+-      {0xa163ff802a3426a8, 0xca07c2dcb0cf26f8},
+-      {0xc9bcff6034c13052, 0xfc89b393dd02f0b6},
+-      {0xfc2c3f3841f17c67, 0xbbac2078d443ace3},
+-      {0x9d9ba7832936edc0, 0xd54b944b84aa4c0e},
+-      {0xc5029163f384a931, 0x0a9e795e65d4df12},
+-      {0xf64335bcf065d37d, 0x4d4617b5ff4a16d6},
+-      {0x99ea0196163fa42e, 0x504bced1bf8e4e46},
+-      {0xc06481fb9bcf8d39, 0xe45ec2862f71e1d7},
+-      {0xf07da27a82c37088, 0x5d767327bb4e5a4d},
+-      {0x964e858c91ba2655, 0x3a6a07f8d510f870},
+-      {0xbbe226efb628afea, 0x890489f70a55368c},
+-      {0xeadab0aba3b2dbe5, 0x2b45ac74ccea842f},
+-      {0x92c8ae6b464fc96f, 0x3b0b8bc90012929e},
+-      {0xb77ada0617e3bbcb, 0x09ce6ebb40173745},
+-      {0xe55990879ddcaabd, 0xcc420a6a101d0516},
+-      {0x8f57fa54c2a9eab6, 0x9fa946824a12232e},
+-      {0xb32df8e9f3546564, 0x47939822dc96abfa},
+-      {0xdff9772470297ebd, 0x59787e2b93bc56f8},
+-      {0x8bfbea76c619ef36, 0x57eb4edb3c55b65b},
+-      {0xaefae51477a06b03, 0xede622920b6b23f2},
+-      {0xdab99e59958885c4, 0xe95fab368e45ecee},
+-      {0x88b402f7fd75539b, 0x11dbcb0218ebb415},
+-      {0xaae103b5fcd2a881, 0xd652bdc29f26a11a},
+-      {0xd59944a37c0752a2, 0x4be76d3346f04960},
+-      {0x857fcae62d8493a5, 0x6f70a4400c562ddc},
+-      {0xa6dfbd9fb8e5b88e, 0xcb4ccd500f6bb953},
+-      {0xd097ad07a71f26b2, 0x7e2000a41346a7a8},
+-      {0x825ecc24c873782f, 0x8ed400668c0c28c9},
+-      {0xa2f67f2dfa90563b, 0x728900802f0f32fb},
+-      {0xcbb41ef979346bca, 0x4f2b40a03ad2ffba},
+-      {0xfea126b7d78186bc, 0xe2f610c84987bfa9},
+-      {0x9f24b832e6b0f436, 0x0dd9ca7d2df4d7ca},
+-      {0xc6ede63fa05d3143, 0x91503d1c79720dbc},
+-      {0xf8a95fcf88747d94, 0x75a44c6397ce912b},
+-      {0x9b69dbe1b548ce7c, 0xc986afbe3ee11abb},
+-      {0xc24452da229b021b, 0xfbe85badce996169},
+-      {0xf2d56790ab41c2a2, 0xfae27299423fb9c4},
+-      {0x97c560ba6b0919a5, 0xdccd879fc967d41b},
+-      {0xbdb6b8e905cb600f, 0x5400e987bbc1c921},
+-      {0xed246723473e3813, 0x290123e9aab23b69},
+-      {0x9436c0760c86e30b, 0xf9a0b6720aaf6522},
+-      {0xb94470938fa89bce, 0xf808e40e8d5b3e6a},
+-      {0xe7958cb87392c2c2, 0xb60b1d1230b20e05},
+-      {0x90bd77f3483bb9b9, 0xb1c6f22b5e6f48c3},
+-      {0xb4ecd5f01a4aa828, 0x1e38aeb6360b1af4},
+-      {0xe2280b6c20dd5232, 0x25c6da63c38de1b1},
+-      {0x8d590723948a535f, 0x579c487e5a38ad0f},
+-      {0xb0af48ec79ace837, 0x2d835a9df0c6d852},
+-      {0xdcdb1b2798182244, 0xf8e431456cf88e66},
+-      {0x8a08f0f8bf0f156b, 0x1b8e9ecb641b5900},
+-      {0xac8b2d36eed2dac5, 0xe272467e3d222f40},
+-      {0xd7adf884aa879177, 0x5b0ed81dcc6abb10},
+-      {0x86ccbb52ea94baea, 0x98e947129fc2b4ea},
+-      {0xa87fea27a539e9a5, 0x3f2398d747b36225},
+-      {0xd29fe4b18e88640e, 0x8eec7f0d19a03aae},
+-      {0x83a3eeeef9153e89, 0x1953cf68300424ad},
+-      {0xa48ceaaab75a8e2b, 0x5fa8c3423c052dd8},
+-      {0xcdb02555653131b6, 0x3792f412cb06794e},
+-      {0x808e17555f3ebf11, 0xe2bbd88bbee40bd1},
+-      {0xa0b19d2ab70e6ed6, 0x5b6aceaeae9d0ec5},
+-      {0xc8de047564d20a8b, 0xf245825a5a445276},
+-      {0xfb158592be068d2e, 0xeed6e2f0f0d56713},
+-      {0x9ced737bb6c4183d, 0x55464dd69685606c},
+-      {0xc428d05aa4751e4c, 0xaa97e14c3c26b887},
+-      {0xf53304714d9265df, 0xd53dd99f4b3066a9},
+-      {0x993fe2c6d07b7fab, 0xe546a8038efe402a},
+-      {0xbf8fdb78849a5f96, 0xde98520472bdd034},
+-      {0xef73d256a5c0f77c, 0x963e66858f6d4441},
+-      {0x95a8637627989aad, 0xdde7001379a44aa9},
+-      {0xbb127c53b17ec159, 0x5560c018580d5d53},
+-      {0xe9d71b689dde71af, 0xaab8f01e6e10b4a7},
+-      {0x9226712162ab070d, 0xcab3961304ca70e9},
+-      {0xb6b00d69bb55c8d1, 0x3d607b97c5fd0d23},
+-      {0xe45c10c42a2b3b05, 0x8cb89a7db77c506b},
+-      {0x8eb98a7a9a5b04e3, 0x77f3608e92adb243},
+-      {0xb267ed1940f1c61c, 0x55f038b237591ed4},
+-      {0xdf01e85f912e37a3, 0x6b6c46dec52f6689},
+-      {0x8b61313bbabce2c6, 0x2323ac4b3b3da016},
+-      {0xae397d8aa96c1b77, 0xabec975e0a0d081b},
+-      {0xd9c7dced53c72255, 0x96e7bd358c904a22},
+-      {0x881cea14545c7575, 0x7e50d64177da2e55},
+-      {0xaa242499697392d2, 0xdde50bd1d5d0b9ea},
+-      {0xd4ad2dbfc3d07787, 0x955e4ec64b44e865},
+-      {0x84ec3c97da624ab4, 0xbd5af13bef0b113f},
+-      {0xa6274bbdd0fadd61, 0xecb1ad8aeacdd58f},
+-      {0xcfb11ead453994ba, 0x67de18eda5814af3},
+-      {0x81ceb32c4b43fcf4, 0x80eacf948770ced8},
+-      {0xa2425ff75e14fc31, 0xa1258379a94d028e},
+-      {0xcad2f7f5359a3b3e, 0x096ee45813a04331},
+-      {0xfd87b5f28300ca0d, 0x8bca9d6e188853fd},
+-      {0x9e74d1b791e07e48, 0x775ea264cf55347e},
+-      {0xc612062576589dda, 0x95364afe032a819e},
+-      {0xf79687aed3eec551, 0x3a83ddbd83f52205},
+-      {0x9abe14cd44753b52, 0xc4926a9672793543},
+-      {0xc16d9a0095928a27, 0x75b7053c0f178294},
+-      {0xf1c90080baf72cb1, 0x5324c68b12dd6339},
+-      {0x971da05074da7bee, 0xd3f6fc16ebca5e04},
+-      {0xbce5086492111aea, 0x88f4bb1ca6bcf585},
+-      {0xec1e4a7db69561a5, 0x2b31e9e3d06c32e6},
+-      {0x9392ee8e921d5d07, 0x3aff322e62439fd0},
+-      {0xb877aa3236a4b449, 0x09befeb9fad487c3},
+-      {0xe69594bec44de15b, 0x4c2ebe687989a9b4},
+-      {0x901d7cf73ab0acd9, 0x0f9d37014bf60a11},
+-      {0xb424dc35095cd80f, 0x538484c19ef38c95},
+-      {0xe12e13424bb40e13, 0x2865a5f206b06fba},
+-      {0x8cbccc096f5088cb, 0xf93f87b7442e45d4},
+-      {0xafebff0bcb24aafe, 0xf78f69a51539d749},
+-      {0xdbe6fecebdedd5be, 0xb573440e5a884d1c},
+-      {0x89705f4136b4a597, 0x31680a88f8953031},
+-      {0xabcc77118461cefc, 0xfdc20d2b36ba7c3e},
+-      {0xd6bf94d5e57a42bc, 0x3d32907604691b4d},
+-      {0x8637bd05af6c69b5, 0xa63f9a49c2c1b110},
+-      {0xa7c5ac471b478423, 0x0fcf80dc33721d54},
+-      {0xd1b71758e219652b, 0xd3c36113404ea4a9},
+-      {0x83126e978d4fdf3b, 0x645a1cac083126ea},
+-      {0xa3d70a3d70a3d70a, 0x3d70a3d70a3d70a4},
+-      {0xcccccccccccccccc, 0xcccccccccccccccd},
+-      {0x8000000000000000, 0x0000000000000000},
+-      {0xa000000000000000, 0x0000000000000000},
+-      {0xc800000000000000, 0x0000000000000000},
+-      {0xfa00000000000000, 0x0000000000000000},
+-      {0x9c40000000000000, 0x0000000000000000},
+-      {0xc350000000000000, 0x0000000000000000},
+-      {0xf424000000000000, 0x0000000000000000},
+-      {0x9896800000000000, 0x0000000000000000},
+-      {0xbebc200000000000, 0x0000000000000000},
+-      {0xee6b280000000000, 0x0000000000000000},
+-      {0x9502f90000000000, 0x0000000000000000},
+-      {0xba43b74000000000, 0x0000000000000000},
+-      {0xe8d4a51000000000, 0x0000000000000000},
+-      {0x9184e72a00000000, 0x0000000000000000},
+-      {0xb5e620f480000000, 0x0000000000000000},
+-      {0xe35fa931a0000000, 0x0000000000000000},
+-      {0x8e1bc9bf04000000, 0x0000000000000000},
+-      {0xb1a2bc2ec5000000, 0x0000000000000000},
+-      {0xde0b6b3a76400000, 0x0000000000000000},
+-      {0x8ac7230489e80000, 0x0000000000000000},
+-      {0xad78ebc5ac620000, 0x0000000000000000},
+-      {0xd8d726b7177a8000, 0x0000000000000000},
+-      {0x878678326eac9000, 0x0000000000000000},
+-      {0xa968163f0a57b400, 0x0000000000000000},
+-      {0xd3c21bcecceda100, 0x0000000000000000},
+-      {0x84595161401484a0, 0x0000000000000000},
+-      {0xa56fa5b99019a5c8, 0x0000000000000000},
+-      {0xcecb8f27f4200f3a, 0x0000000000000000},
+-      {0x813f3978f8940984, 0x4000000000000000},
+-      {0xa18f07d736b90be5, 0x5000000000000000},
+-      {0xc9f2c9cd04674ede, 0xa400000000000000},
+-      {0xfc6f7c4045812296, 0x4d00000000000000},
+-      {0x9dc5ada82b70b59d, 0xf020000000000000},
+-      {0xc5371912364ce305, 0x6c28000000000000},
+-      {0xf684df56c3e01bc6, 0xc732000000000000},
+-      {0x9a130b963a6c115c, 0x3c7f400000000000},
+-      {0xc097ce7bc90715b3, 0x4b9f100000000000},
+-      {0xf0bdc21abb48db20, 0x1e86d40000000000},
+-      {0x96769950b50d88f4, 0x1314448000000000},
+-      {0xbc143fa4e250eb31, 0x17d955a000000000},
+-      {0xeb194f8e1ae525fd, 0x5dcfab0800000000},
+-      {0x92efd1b8d0cf37be, 0x5aa1cae500000000},
+-      {0xb7abc627050305ad, 0xf14a3d9e40000000},
+-      {0xe596b7b0c643c719, 0x6d9ccd05d0000000},
+-      {0x8f7e32ce7bea5c6f, 0xe4820023a2000000},
+-      {0xb35dbf821ae4f38b, 0xdda2802c8a800000},
+-      {0xe0352f62a19e306e, 0xd50b2037ad200000},
+-      {0x8c213d9da502de45, 0x4526f422cc340000},
+-      {0xaf298d050e4395d6, 0x9670b12b7f410000},
+-      {0xdaf3f04651d47b4c, 0x3c0cdd765f114000},
+-      {0x88d8762bf324cd0f, 0xa5880a69fb6ac800},
+-      {0xab0e93b6efee0053, 0x8eea0d047a457a00},
+-      {0xd5d238a4abe98068, 0x72a4904598d6d880},
+-      {0x85a36366eb71f041, 0x47a6da2b7f864750},
+-      {0xa70c3c40a64e6c51, 0x999090b65f67d924},
+-      {0xd0cf4b50cfe20765, 0xfff4b4e3f741cf6d},
+-      {0x82818f1281ed449f, 0xbff8f10e7a8921a4},
+-      {0xa321f2d7226895c7, 0xaff72d52192b6a0d},
+-      {0xcbea6f8ceb02bb39, 0x9bf4f8a69f764490},
+-      {0xfee50b7025c36a08, 0x02f236d04753d5b4},
+-      {0x9f4f2726179a2245, 0x01d762422c946590},
+-      {0xc722f0ef9d80aad6, 0x424d3ad2b7b97ef5},
+-      {0xf8ebad2b84e0d58b, 0xd2e0898765a7deb2},
+-      {0x9b934c3b330c8577, 0x63cc55f49f88eb2f},
+-      {0xc2781f49ffcfa6d5, 0x3cbf6b71c76b25fb},
+-      {0xf316271c7fc3908a, 0x8bef464e3945ef7a},
+-      {0x97edd871cfda3a56, 0x97758bf0e3cbb5ac},
+-      {0xbde94e8e43d0c8ec, 0x3d52eeed1cbea317},
+-      {0xed63a231d4c4fb27, 0x4ca7aaa863ee4bdd},
+-      {0x945e455f24fb1cf8, 0x8fe8caa93e74ef6a},
+-      {0xb975d6b6ee39e436, 0xb3e2fd538e122b44},
+-      {0xe7d34c64a9c85d44, 0x60dbbca87196b616},
+-      {0x90e40fbeea1d3a4a, 0xbc8955e946fe31cd},
+-      {0xb51d13aea4a488dd, 0x6babab6398bdbe41},
+-      {0xe264589a4dcdab14, 0xc696963c7eed2dd1},
+-      {0x8d7eb76070a08aec, 0xfc1e1de5cf543ca2},
+-      {0xb0de65388cc8ada8, 0x3b25a55f43294bcb},
+-      {0xdd15fe86affad912, 0x49ef0eb713f39ebe},
+-      {0x8a2dbf142dfcc7ab, 0x6e3569326c784337},
+-      {0xacb92ed9397bf996, 0x49c2c37f07965404},
+-      {0xd7e77a8f87daf7fb, 0xdc33745ec97be906},
+-      {0x86f0ac99b4e8dafd, 0x69a028bb3ded71a3},
+-      {0xa8acd7c0222311bc, 0xc40832ea0d68ce0c},
+-      {0xd2d80db02aabd62b, 0xf50a3fa490c30190},
+-      {0x83c7088e1aab65db, 0x792667c6da79e0fa},
+-      {0xa4b8cab1a1563f52, 0x577001b891185938},
+-      {0xcde6fd5e09abcf26, 0xed4c0226b55e6f86},
+-      {0x80b05e5ac60b6178, 0x544f8158315b05b4},
+-      {0xa0dc75f1778e39d6, 0x696361ae3db1c721},
+-      {0xc913936dd571c84c, 0x03bc3a19cd1e38e9},
+-      {0xfb5878494ace3a5f, 0x04ab48a04065c723},
+-      {0x9d174b2dcec0e47b, 0x62eb0d64283f9c76},
+-      {0xc45d1df942711d9a, 0x3ba5d0bd324f8394},
+-      {0xf5746577930d6500, 0xca8f44ec7ee36479},
+-      {0x9968bf6abbe85f20, 0x7e998b13cf4e1ecb},
+-      {0xbfc2ef456ae276e8, 0x9e3fedd8c321a67e},
+-      {0xefb3ab16c59b14a2, 0xc5cfe94ef3ea101e},
+-      {0x95d04aee3b80ece5, 0xbba1f1d158724a12},
+-      {0xbb445da9ca61281f, 0x2a8a6e45ae8edc97},
+-      {0xea1575143cf97226, 0xf52d09d71a3293bd},
+-      {0x924d692ca61be758, 0x593c2626705f9c56},
+-      {0xb6e0c377cfa2e12e, 0x6f8b2fb00c77836c},
+-      {0xe498f455c38b997a, 0x0b6dfb9c0f956447},
+-      {0x8edf98b59a373fec, 0x4724bd4189bd5eac},
+-      {0xb2977ee300c50fe7, 0x58edec91ec2cb657},
+-      {0xdf3d5e9bc0f653e1, 0x2f2967b66737e3ed},
+-      {0x8b865b215899f46c, 0xbd79e0d20082ee74},
+-      {0xae67f1e9aec07187, 0xecd8590680a3aa11},
+-      {0xda01ee641a708de9, 0xe80e6f4820cc9495},
+-      {0x884134fe908658b2, 0x3109058d147fdcdd},
+-      {0xaa51823e34a7eede, 0xbd4b46f0599fd415},
+-      {0xd4e5e2cdc1d1ea96, 0x6c9e18ac7007c91a},
+-      {0x850fadc09923329e, 0x03e2cf6bc604ddb0},
+-      {0xa6539930bf6bff45, 0x84db8346b786151c},
+-      {0xcfe87f7cef46ff16, 0xe612641865679a63},
+-      {0x81f14fae158c5f6e, 0x4fcb7e8f3f60c07e},
+-      {0xa26da3999aef7749, 0xe3be5e330f38f09d},
+-      {0xcb090c8001ab551c, 0x5cadf5bfd3072cc5},
+-      {0xfdcb4fa002162a63, 0x73d9732fc7c8f7f6},
+-      {0x9e9f11c4014dda7e, 0x2867e7fddcdd9afa},
+-      {0xc646d63501a1511d, 0xb281e1fd541501b8},
+-      {0xf7d88bc24209a565, 0x1f225a7ca91a4226},
+-      {0x9ae757596946075f, 0x3375788de9b06958},
+-      {0xc1a12d2fc3978937, 0x0052d6b1641c83ae},
+-      {0xf209787bb47d6b84, 0xc0678c5dbd23a49a},
+-      {0x9745eb4d50ce6332, 0xf840b7ba963646e0},
+-      {0xbd176620a501fbff, 0xb650e5a93bc3d898},
+-      {0xec5d3fa8ce427aff, 0xa3e51f138ab4cebe},
+-      {0x93ba47c980e98cdf, 0xc66f336c36b10137},
+-      {0xb8a8d9bbe123f017, 0xb80b0047445d4184},
+-      {0xe6d3102ad96cec1d, 0xa60dc059157491e5},
+-      {0x9043ea1ac7e41392, 0x87c89837ad68db2f},
+-      {0xb454e4a179dd1877, 0x29babe4598c311fb},
+-      {0xe16a1dc9d8545e94, 0xf4296dd6fef3d67a},
+-      {0x8ce2529e2734bb1d, 0x1899e4a65f58660c},
+-      {0xb01ae745b101e9e4, 0x5ec05dcff72e7f8f},
+-      {0xdc21a1171d42645d, 0x76707543f4fa1f73},
+-      {0x899504ae72497eba, 0x6a06494a791c53a8},
+-      {0xabfa45da0edbde69, 0x0487db9d17636892},
+-      {0xd6f8d7509292d603, 0x45a9d2845d3c42b6},
+-      {0x865b86925b9bc5c2, 0x0b8a2392ba45a9b2},
+-      {0xa7f26836f282b732, 0x8e6cac7768d7141e},
+-      {0xd1ef0244af2364ff, 0x3207d795430cd926},
+-      {0x8335616aed761f1f, 0x7f44e6bd49e807b8},
+-      {0xa402b9c5a8d3a6e7, 0x5f16206c9c6209a6},
+-      {0xcd036837130890a1, 0x36dba887c37a8c0f},
+-      {0x802221226be55a64, 0xc2494954da2c9789},
+-      {0xa02aa96b06deb0fd, 0xf2db9baa10b7bd6c},
+-      {0xc83553c5c8965d3d, 0x6f92829494e5acc7},
+-      {0xfa42a8b73abbf48c, 0xcb772339ba1f17f9},
+-      {0x9c69a97284b578d7, 0xff2a760414536efb},
+-      {0xc38413cf25e2d70d, 0xfef5138519684aba},
+-      {0xf46518c2ef5b8cd1, 0x7eb258665fc25d69},
+-      {0x98bf2f79d5993802, 0xef2f773ffbd97a61},
+-      {0xbeeefb584aff8603, 0xaafb550ffacfd8fa},
+-      {0xeeaaba2e5dbf6784, 0x95ba2a53f983cf38},
+-      {0x952ab45cfa97a0b2, 0xdd945a747bf26183},
+-      {0xba756174393d88df, 0x94f971119aeef9e4},
+-      {0xe912b9d1478ceb17, 0x7a37cd5601aab85d},
+-      {0x91abb422ccb812ee, 0xac62e055c10ab33a},
+-      {0xb616a12b7fe617aa, 0x577b986b314d6009},
+-      {0xe39c49765fdf9d94, 0xed5a7e85fda0b80b},
+-      {0x8e41ade9fbebc27d, 0x14588f13be847307},
+-      {0xb1d219647ae6b31c, 0x596eb2d8ae258fc8},
+-      {0xde469fbd99a05fe3, 0x6fca5f8ed9aef3bb},
+-      {0x8aec23d680043bee, 0x25de7bb9480d5854},
+-      {0xada72ccc20054ae9, 0xaf561aa79a10ae6a},
+-      {0xd910f7ff28069da4, 0x1b2ba1518094da04},
+-      {0x87aa9aff79042286, 0x90fb44d2f05d0842},
+-      {0xa99541bf57452b28, 0x353a1607ac744a53},
+-      {0xd3fa922f2d1675f2, 0x42889b8997915ce8},
+-      {0x847c9b5d7c2e09b7, 0x69956135febada11},
+-      {0xa59bc234db398c25, 0x43fab9837e699095},
+-      {0xcf02b2c21207ef2e, 0x94f967e45e03f4bb},
+-      {0x8161afb94b44f57d, 0x1d1be0eebac278f5},
+-      {0xa1ba1ba79e1632dc, 0x6462d92a69731732},
+-      {0xca28a291859bbf93, 0x7d7b8f7503cfdcfe},
+-      {0xfcb2cb35e702af78, 0x5cda735244c3d43e},
+-      {0x9defbf01b061adab, 0x3a0888136afa64a7},
+-      {0xc56baec21c7a1916, 0x088aaa1845b8fdd0},
+-      {0xf6c69a72a3989f5b, 0x8aad549e57273d45},
+-      {0x9a3c2087a63f6399, 0x36ac54e2f678864b},
+-      {0xc0cb28a98fcf3c7f, 0x84576a1bb416a7dd},
+-      {0xf0fdf2d3f3c30b9f, 0x656d44a2a11c51d5},
+-      {0x969eb7c47859e743, 0x9f644ae5a4b1b325},
+-      {0xbc4665b596706114, 0x873d5d9f0dde1fee},
+-      {0xeb57ff22fc0c7959, 0xa90cb506d155a7ea},
+-      {0x9316ff75dd87cbd8, 0x09a7f12442d588f2},
+-      {0xb7dcbf5354e9bece, 0x0c11ed6d538aeb2f},
+-      {0xe5d3ef282a242e81, 0x8f1668c8a86da5fa},
+-      {0x8fa475791a569d10, 0xf96e017d694487bc},
+-      {0xb38d92d760ec4455, 0x37c981dcc395a9ac},
+-      {0xe070f78d3927556a, 0x85bbe253f47b1417},
+-      {0x8c469ab843b89562, 0x93956d7478ccec8e},
+-      {0xaf58416654a6babb, 0x387ac8d1970027b2},
+-      {0xdb2e51bfe9d0696a, 0x06997b05fcc0319e},
+-      {0x88fcf317f22241e2, 0x441fece3bdf81f03},
+-      {0xab3c2fddeeaad25a, 0xd527e81cad7626c3},
+-      {0xd60b3bd56a5586f1, 0x8a71e223d8d3b074},
+-      {0x85c7056562757456, 0xf6872d5667844e49},
+-      {0xa738c6bebb12d16c, 0xb428f8ac016561db},
+-      {0xd106f86e69d785c7, 0xe13336d701beba52},
+-      {0x82a45b450226b39c, 0xecc0024661173473},
+-      {0xa34d721642b06084, 0x27f002d7f95d0190},
+-      {0xcc20ce9bd35c78a5, 0x31ec038df7b441f4},
+-      {0xff290242c83396ce, 0x7e67047175a15271},
+-      {0x9f79a169bd203e41, 0x0f0062c6e984d386},
+-      {0xc75809c42c684dd1, 0x52c07b78a3e60868},
+-      {0xf92e0c3537826145, 0xa7709a56ccdf8a82},
+-      {0x9bbcc7a142b17ccb, 0x88a66076400bb691},
+-      {0xc2abf989935ddbfe, 0x6acff893d00ea435},
+-      {0xf356f7ebf83552fe, 0x0583f6b8c4124d43},
+-      {0x98165af37b2153de, 0xc3727a337a8b704a},
+-      {0xbe1bf1b059e9a8d6, 0x744f18c0592e4c5c},
+-      {0xeda2ee1c7064130c, 0x1162def06f79df73},
+-      {0x9485d4d1c63e8be7, 0x8addcb5645ac2ba8},
+-      {0xb9a74a0637ce2ee1, 0x6d953e2bd7173692},
+-      {0xe8111c87c5c1ba99, 0xc8fa8db6ccdd0437},
+-      {0x910ab1d4db9914a0, 0x1d9c9892400a22a2},
+-      {0xb54d5e4a127f59c8, 0x2503beb6d00cab4b},
+-      {0xe2a0b5dc971f303a, 0x2e44ae64840fd61d},
+-      {0x8da471a9de737e24, 0x5ceaecfed289e5d2},
+-      {0xb10d8e1456105dad, 0x7425a83e872c5f47},
+-      {0xdd50f1996b947518, 0xd12f124e28f77719},
+-      {0x8a5296ffe33cc92f, 0x82bd6b70d99aaa6f},
+-      {0xace73cbfdc0bfb7b, 0x636cc64d1001550b},
+-      {0xd8210befd30efa5a, 0x3c47f7e05401aa4e},
+-      {0x8714a775e3e95c78, 0x65acfaec34810a71},
+-      {0xa8d9d1535ce3b396, 0x7f1839a741a14d0d},
+-      {0xd31045a8341ca07c, 0x1ede48111209a050},
+-      {0x83ea2b892091e44d, 0x934aed0aab460432},
+-      {0xa4e4b66b68b65d60, 0xf81da84d5617853f},
+-      {0xce1de40642e3f4b9, 0x36251260ab9d668e},
+-      {0x80d2ae83e9ce78f3, 0xc1d72b7c6b426019},
+-      {0xa1075a24e4421730, 0xb24cf65b8612f81f},
+-      {0xc94930ae1d529cfc, 0xdee033f26797b627},
+-      {0xfb9b7cd9a4a7443c, 0x169840ef017da3b1},
+-      {0x9d412e0806e88aa5, 0x8e1f289560ee864e},
+-      {0xc491798a08a2ad4e, 0xf1a6f2bab92a27e2},
+-      {0xf5b5d7ec8acb58a2, 0xae10af696774b1db},
+-      {0x9991a6f3d6bf1765, 0xacca6da1e0a8ef29},
+-      {0xbff610b0cc6edd3f, 0x17fd090a58d32af3},
+-      {0xeff394dcff8a948e, 0xddfc4b4cef07f5b0},
+-      {0x95f83d0a1fb69cd9, 0x4abdaf101564f98e},
+-      {0xbb764c4ca7a4440f, 0x9d6d1ad41abe37f1},
+-      {0xea53df5fd18d5513, 0x84c86189216dc5ed},
+-      {0x92746b9be2f8552c, 0x32fd3cf5b4e49bb4},
+-      {0xb7118682dbb66a77, 0x3fbc8c33221dc2a1},
+-      {0xe4d5e82392a40515, 0x0fabaf3feaa5334a},
+-      {0x8f05b1163ba6832d, 0x29cb4d87f2a7400e},
+-      {0xb2c71d5bca9023f8, 0x743e20e9ef511012},
+-      {0xdf78e4b2bd342cf6, 0x914da9246b255416},
+-      {0x8bab8eefb6409c1a, 0x1ad089b6c2f7548e},
+-      {0xae9672aba3d0c320, 0xa184ac2473b529b1},
+-      {0xda3c0f568cc4f3e8, 0xc9e5d72d90a2741e},
+-      {0x8865899617fb1871, 0x7e2fa67c7a658892},
+-      {0xaa7eebfb9df9de8d, 0xddbb901b98feeab7},
+-      {0xd51ea6fa85785631, 0x552a74227f3ea565},
+-      {0x8533285c936b35de, 0xd53a88958f87275f},
+-      {0xa67ff273b8460356, 0x8a892abaf368f137},
+-      {0xd01fef10a657842c, 0x2d2b7569b0432d85},
+-      {0x8213f56a67f6b29b, 0x9c3b29620e29fc73},
+-      {0xa298f2c501f45f42, 0x8349f3ba91b47b8f},
+-      {0xcb3f2f7642717713, 0x241c70a936219a73},
+-      {0xfe0efb53d30dd4d7, 0xed238cd383aa0110},
+-      {0x9ec95d1463e8a506, 0xf4363804324a40aa},
+-      {0xc67bb4597ce2ce48, 0xb143c6053edcd0d5},
+-      {0xf81aa16fdc1b81da, 0xdd94b7868e94050a},
+-      {0x9b10a4e5e9913128, 0xca7cf2b4191c8326},
+-      {0xc1d4ce1f63f57d72, 0xfd1c2f611f63a3f0},
+-      {0xf24a01a73cf2dccf, 0xbc633b39673c8cec},
+-      {0x976e41088617ca01, 0xd5be0503e085d813},
+-      {0xbd49d14aa79dbc82, 0x4b2d8644d8a74e18},
+-      {0xec9c459d51852ba2, 0xddf8e7d60ed1219e},
+-      {0x93e1ab8252f33b45, 0xcabb90e5c942b503},
+-      {0xb8da1662e7b00a17, 0x3d6a751f3b936243},
+-      {0xe7109bfba19c0c9d, 0x0cc512670a783ad4},
+-      {0x906a617d450187e2, 0x27fb2b80668b24c5},
+-      {0xb484f9dc9641e9da, 0xb1f9f660802dedf6},
+-      {0xe1a63853bbd26451, 0x5e7873f8a0396973},
+-      {0x8d07e33455637eb2, 0xdb0b487b6423e1e8},
+-      {0xb049dc016abc5e5f, 0x91ce1a9a3d2cda62},
+-      {0xdc5c5301c56b75f7, 0x7641a140cc7810fb},
+-      {0x89b9b3e11b6329ba, 0xa9e904c87fcb0a9d},
+-      {0xac2820d9623bf429, 0x546345fa9fbdcd44},
+-      {0xd732290fbacaf133, 0xa97c177947ad4095},
+-      {0x867f59a9d4bed6c0, 0x49ed8eabcccc485d},
+-      {0xa81f301449ee8c70, 0x5c68f256bfff5a74},
+-      {0xd226fc195c6a2f8c, 0x73832eec6fff3111},
+-      {0x83585d8fd9c25db7, 0xc831fd53c5ff7eab},
+-      {0xa42e74f3d032f525, 0xba3e7ca8b77f5e55},
+-      {0xcd3a1230c43fb26f, 0x28ce1bd2e55f35eb},
+-      {0x80444b5e7aa7cf85, 0x7980d163cf5b81b3},
+-      {0xa0555e361951c366, 0xd7e105bcc332621f},
+-      {0xc86ab5c39fa63440, 0x8dd9472bf3fefaa7},
+-      {0xfa856334878fc150, 0xb14f98f6f0feb951},
+-      {0x9c935e00d4b9d8d2, 0x6ed1bf9a569f33d3},
+-      {0xc3b8358109e84f07, 0x0a862f80ec4700c8},
+-      {0xf4a642e14c6262c8, 0xcd27bb612758c0fa},
+-      {0x98e7e9cccfbd7dbd, 0x8038d51cb897789c},
+-      {0xbf21e44003acdd2c, 0xe0470a63e6bd56c3},
+-      {0xeeea5d5004981478, 0x1858ccfce06cac74},
+-      {0x95527a5202df0ccb, 0x0f37801e0c43ebc8},
+-      {0xbaa718e68396cffd, 0xd30560258f54e6ba},
+-      {0xe950df20247c83fd, 0x47c6b82ef32a2069},
+-      {0x91d28b7416cdd27e, 0x4cdc331d57fa5441},
+-      {0xb6472e511c81471d, 0xe0133fe4adf8e952},
+-      {0xe3d8f9e563a198e5, 0x58180fddd97723a6},
+-      {0x8e679c2f5e44ff8f, 0x570f09eaa7ea7648},
+-      {0xb201833b35d63f73, 0x2cd2cc6551e513da},
+-      {0xde81e40a034bcf4f, 0xf8077f7ea65e58d1},
+-      {0x8b112e86420f6191, 0xfb04afaf27faf782},
+-      {0xadd57a27d29339f6, 0x79c5db9af1f9b563},
+-      {0xd94ad8b1c7380874, 0x18375281ae7822bc},
+-      {0x87cec76f1c830548, 0x8f2293910d0b15b5},
+-      {0xa9c2794ae3a3c69a, 0xb2eb3875504ddb22},
+-      {0xd433179d9c8cb841, 0x5fa60692a46151eb},
+-      {0x849feec281d7f328, 0xdbc7c41ba6bcd333},
+-      {0xa5c7ea73224deff3, 0x12b9b522906c0800},
+-      {0xcf39e50feae16bef, 0xd768226b34870a00},
+-      {0x81842f29f2cce375, 0xe6a1158300d46640},
+-      {0xa1e53af46f801c53, 0x60495ae3c1097fd0},
+-      {0xca5e89b18b602368, 0x385bb19cb14bdfc4},
+-      {0xfcf62c1dee382c42, 0x46729e03dd9ed7b5},
+-      {0x9e19db92b4e31ba9, 0x6c07a2c26a8346d1},
+-      {0xc5a05277621be293, 0xc7098b7305241885},
+-      { 0xf70867153aa2db38,
+-        0xb8cbee4fc66d1ea7 }
+-#else
+-      {0xff77b1fcbebcdc4f, 0x25e8e89c13bb0f7b},
+-      {0xce5d73ff402d98e3, 0xfb0a3d212dc81290},
+-      {0xa6b34ad8c9dfc06f, 0xf42faa48c0ea481f},
+-      {0x86a8d39ef77164bc, 0xae5dff9c02033198},
+-      {0xd98ddaee19068c76, 0x3badd624dd9b0958},
+-      {0xafbd2350644eeacf, 0xe5d1929ef90898fb},
+-      {0x8df5efabc5979c8f, 0xca8d3ffa1ef463c2},
+-      {0xe55990879ddcaabd, 0xcc420a6a101d0516},
+-      {0xb94470938fa89bce, 0xf808e40e8d5b3e6a},
+-      {0x95a8637627989aad, 0xdde7001379a44aa9},
+-      {0xf1c90080baf72cb1, 0x5324c68b12dd6339},
+-      {0xc350000000000000, 0x0000000000000000},
+-      {0x9dc5ada82b70b59d, 0xf020000000000000},
+-      {0xfee50b7025c36a08, 0x02f236d04753d5b4},
+-      {0xcde6fd5e09abcf26, 0xed4c0226b55e6f86},
+-      {0xa6539930bf6bff45, 0x84db8346b786151c},
+-      {0x865b86925b9bc5c2, 0x0b8a2392ba45a9b2},
+-      {0xd910f7ff28069da4, 0x1b2ba1518094da04},
+-      {0xaf58416654a6babb, 0x387ac8d1970027b2},
+-      {0x8da471a9de737e24, 0x5ceaecfed289e5d2},
+-      {0xe4d5e82392a40515, 0x0fabaf3feaa5334a},
+-      {0xb8da1662e7b00a17, 0x3d6a751f3b936243},
+-      { 0x95527a5202df0ccb,
+-        0x0f37801e0c43ebc8 }
+-#endif
+-    };
+-
+-#if FMT_USE_FULL_CACHE_DRAGONBOX
+-    return pow10_significands[k - float_info<double>::min_k];
+-#else
+-    static constexpr const uint64_t powers_of_5_64[] = {
+-        0x0000000000000001, 0x0000000000000005, 0x0000000000000019,
+-        0x000000000000007d, 0x0000000000000271, 0x0000000000000c35,
+-        0x0000000000003d09, 0x000000000001312d, 0x000000000005f5e1,
+-        0x00000000001dcd65, 0x00000000009502f9, 0x0000000002e90edd,
+-        0x000000000e8d4a51, 0x0000000048c27395, 0x000000016bcc41e9,
+-        0x000000071afd498d, 0x0000002386f26fc1, 0x000000b1a2bc2ec5,
+-        0x000003782dace9d9, 0x00001158e460913d, 0x000056bc75e2d631,
+-        0x0001b1ae4d6e2ef5, 0x000878678326eac9, 0x002a5a058fc295ed,
+-        0x00d3c21bcecceda1, 0x0422ca8b0a00a425, 0x14adf4b7320334b9};
+-
+-    static constexpr const uint32_t pow10_recovery_errors[] = {
+-        0x50001400, 0x54044100, 0x54014555, 0x55954415, 0x54115555, 0x00000001,
+-        0x50000000, 0x00104000, 0x54010004, 0x05004001, 0x55555544, 0x41545555,
+-        0x54040551, 0x15445545, 0x51555514, 0x10000015, 0x00101100, 0x01100015,
+-        0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x04450514, 0x45414110,
+-        0x55555145, 0x50544050, 0x15040155, 0x11054140, 0x50111514, 0x11451454,
+-        0x00400541, 0x00000000, 0x55555450, 0x10056551, 0x10054011, 0x55551014,
+-        0x69514555, 0x05151109, 0x00155555};
+-
+-    static const int compression_ratio = 27;
+-
+-    // Compute base index.
+-    int cache_index = (k - float_info<double>::min_k) / compression_ratio;
+-    int kb = cache_index * compression_ratio + float_info<double>::min_k;
+-    int offset = k - kb;
+-
+-    // Get base cache.
+-    uint128_wrapper base_cache = pow10_significands[cache_index];
+-    if (offset == 0) return base_cache;
+-
+-    // Compute the required amount of bit-shift.
+-    int alpha = floor_log2_pow10(kb + offset) - floor_log2_pow10(kb) - offset;
+-    FMT_ASSERT(alpha > 0 && alpha < 64, "shifting error detected");
+-
+-    // Try to recover the real cache.
+-    uint64_t pow5 = powers_of_5_64[offset];
+-    uint128_wrapper recovered_cache = umul128(base_cache.high(), pow5);
+-    uint128_wrapper middle_low =
+-        umul128(base_cache.low() - (kb < 0 ? 1u : 0u), pow5);
+-
+-    recovered_cache += middle_low.high();
+-
+-    uint64_t high_to_middle = recovered_cache.high() << (64 - alpha);
+-    uint64_t middle_to_low = recovered_cache.low() << (64 - alpha);
+-
+-    recovered_cache =
+-        uint128_wrapper{(recovered_cache.low() >> alpha) | high_to_middle,
+-                        ((middle_low.low() >> alpha) | middle_to_low)};
+-
+-    if (kb < 0) recovered_cache += 1;
+-
+-    // Get error.
+-    int error_idx = (k - float_info<double>::min_k) / 16;
+-    uint32_t error = (pow10_recovery_errors[error_idx] >>
+-                      ((k - float_info<double>::min_k) % 16) * 2) &
+-                     0x3;
+-
+-    // Add the error back.
+-    FMT_ASSERT(recovered_cache.low() + error >= recovered_cache.low(), "");
+-    return {recovered_cache.high(), recovered_cache.low() + error};
+-#endif
+-  }
+-
+-  static carrier_uint compute_mul(carrier_uint u,
+-                                  const cache_entry_type& cache) FMT_NOEXCEPT {
+-    return umul192_upper64(u, cache);
+-  }
+-
+-  static uint32_t compute_delta(cache_entry_type const& cache,
+-                                int beta_minus_1) FMT_NOEXCEPT {
+-    return static_cast<uint32_t>(cache.high() >> (64 - 1 - beta_minus_1));
+-  }
+-
+-  static bool compute_mul_parity(carrier_uint two_f,
+-                                 const cache_entry_type& cache,
+-                                 int beta_minus_1) FMT_NOEXCEPT {
+-    FMT_ASSERT(beta_minus_1 >= 1, "");
+-    FMT_ASSERT(beta_minus_1 < 64, "");
+-
+-    return ((umul192_middle64(two_f, cache) >> (64 - beta_minus_1)) & 1) != 0;
+-  }
+-
+-  static carrier_uint compute_left_endpoint_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return (cache.high() -
+-            (cache.high() >> (float_info<double>::significand_bits + 2))) >>
+-           (64 - float_info<double>::significand_bits - 1 - beta_minus_1);
+-  }
+-
+-  static carrier_uint compute_right_endpoint_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return (cache.high() +
+-            (cache.high() >> (float_info<double>::significand_bits + 1))) >>
+-           (64 - float_info<double>::significand_bits - 1 - beta_minus_1);
+-  }
+-
+-  static carrier_uint compute_round_up_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return ((cache.high() >>
+-             (64 - float_info<double>::significand_bits - 2 - beta_minus_1)) +
+-            1) /
+-           2;
+-  }
+-};
+-
+-// Various integer checks
+-template <class T>
+-bool is_left_endpoint_integer_shorter_interval(int exponent) FMT_NOEXCEPT {
+-  return exponent >=
+-             float_info<
+-                 T>::case_shorter_interval_left_endpoint_lower_threshold &&
+-         exponent <=
+-             float_info<T>::case_shorter_interval_left_endpoint_upper_threshold;
+-}
+-template <class T>
+-bool is_endpoint_integer(typename float_info<T>::carrier_uint two_f,
+-                         int exponent, int minus_k) FMT_NOEXCEPT {
+-  if (exponent < float_info<T>::case_fc_pm_half_lower_threshold) return false;
+-  // For k >= 0.
+-  if (exponent <= float_info<T>::case_fc_pm_half_upper_threshold) return true;
+-  // For k < 0.
+-  if (exponent > float_info<T>::divisibility_check_by_5_threshold) return false;
+-  return divisible_by_power_of_5(two_f, minus_k);
+-}
+-
+-template <class T>
+-bool is_center_integer(typename float_info<T>::carrier_uint two_f, int exponent,
+-                       int minus_k) FMT_NOEXCEPT {
+-  // Exponent for 5 is negative.
+-  if (exponent > float_info<T>::divisibility_check_by_5_threshold) return false;
+-  if (exponent > float_info<T>::case_fc_upper_threshold)
+-    return divisible_by_power_of_5(two_f, minus_k);
+-  // Both exponents are nonnegative.
+-  if (exponent >= float_info<T>::case_fc_lower_threshold) return true;
+-  // Exponent for 2 is negative.
+-  return divisible_by_power_of_2(two_f, minus_k - exponent + 1);
+-}
+-
+-// Remove trailing zeros from n and return the number of zeros removed (float)
+-FMT_INLINE int remove_trailing_zeros(uint32_t& n) FMT_NOEXCEPT {
+-#ifdef FMT_BUILTIN_CTZ
+-  int t = FMT_BUILTIN_CTZ(n);
+-#else
+-  int t = ctz(n);
+-#endif
+-  if (t > float_info<float>::max_trailing_zeros)
+-    t = float_info<float>::max_trailing_zeros;
+-
+-  const uint32_t mod_inv1 = 0xcccccccd;
+-  const uint32_t max_quotient1 = 0x33333333;
+-  const uint32_t mod_inv2 = 0xc28f5c29;
+-  const uint32_t max_quotient2 = 0x0a3d70a3;
+-
+-  int s = 0;
+-  for (; s < t - 1; s += 2) {
+-    if (n * mod_inv2 > max_quotient2) break;
+-    n *= mod_inv2;
+-  }
+-  if (s < t && n * mod_inv1 <= max_quotient1) {
+-    n *= mod_inv1;
+-    ++s;
+-  }
+-  n >>= s;
+-  return s;
+-}
+-
+-// Removes trailing zeros and returns the number of zeros removed (double)
+-FMT_INLINE int remove_trailing_zeros(uint64_t& n) FMT_NOEXCEPT {
+-#ifdef FMT_BUILTIN_CTZLL
+-  int t = FMT_BUILTIN_CTZLL(n);
+-#else
+-  int t = ctzll(n);
+-#endif
+-  if (t > float_info<double>::max_trailing_zeros)
+-    t = float_info<double>::max_trailing_zeros;
+-  // Divide by 10^8 and reduce to 32-bits
+-  // Since ret_value.significand <= (2^64 - 1) / 1000 < 10^17,
+-  // both of the quotient and the r should fit in 32-bits
+-
+-  const uint32_t mod_inv1 = 0xcccccccd;
+-  const uint32_t max_quotient1 = 0x33333333;
+-  const uint64_t mod_inv8 = 0xc767074b22e90e21;
+-  const uint64_t max_quotient8 = 0x00002af31dc46118;
+-
+-  // If the number is divisible by 1'0000'0000, work with the quotient
+-  if (t >= 8) {
+-    auto quotient_candidate = n * mod_inv8;
+-
+-    if (quotient_candidate <= max_quotient8) {
+-      auto quotient = static_cast<uint32_t>(quotient_candidate >> 8);
+-
+-      int s = 8;
+-      for (; s < t; ++s) {
+-        if (quotient * mod_inv1 > max_quotient1) break;
+-        quotient *= mod_inv1;
+-      }
+-      quotient >>= (s - 8);
+-      n = quotient;
+-      return s;
+-    }
+-  }
+-
+-  // Otherwise, work with the remainder
+-  auto quotient = static_cast<uint32_t>(n / 100000000);
+-  auto remainder = static_cast<uint32_t>(n - 100000000 * quotient);
+-
+-  if (t == 0 || remainder * mod_inv1 > max_quotient1) {
+-    return 0;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 1 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 1) + quotient * 10000000ull;
+-    return 1;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 2 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 2) + quotient * 1000000ull;
+-    return 2;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 3 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 3) + quotient * 100000ull;
+-    return 3;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 4 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 4) + quotient * 10000ull;
+-    return 4;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 5 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 5) + quotient * 1000ull;
+-    return 5;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 6 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 6) + quotient * 100ull;
+-    return 6;
+-  }
+-  remainder *= mod_inv1;
+-
+-  n = (remainder >> 7) + quotient * 10ull;
+-  return 7;
+-}
+-
+-// The main algorithm for shorter interval case
+-template <class T>
+-FMT_INLINE decimal_fp<T> shorter_interval_case(int exponent) FMT_NOEXCEPT {
+-  decimal_fp<T> ret_value;
+-  // Compute k and beta
+-  const int minus_k = floor_log10_pow2_minus_log10_4_over_3(exponent);
+-  const int beta_minus_1 = exponent + floor_log2_pow10(-minus_k);
+-
+-  // Compute xi and zi
+-  using cache_entry_type = typename cache_accessor<T>::cache_entry_type;
+-  const cache_entry_type cache = cache_accessor<T>::get_cached_power(-minus_k);
+-
+-  auto xi = cache_accessor<T>::compute_left_endpoint_for_shorter_interval_case(
+-      cache, beta_minus_1);
+-  auto zi = cache_accessor<T>::compute_right_endpoint_for_shorter_interval_case(
+-      cache, beta_minus_1);
+-
+-  // If the left endpoint is not an integer, increase it
+-  if (!is_left_endpoint_integer_shorter_interval<T>(exponent)) ++xi;
+-
+-  // Try bigger divisor
+-  ret_value.significand = zi / 10;
+-
+-  // If succeed, remove trailing zeros if necessary and return
+-  if (ret_value.significand * 10 >= xi) {
+-    ret_value.exponent = minus_k + 1;
+-    ret_value.exponent += remove_trailing_zeros(ret_value.significand);
+-    return ret_value;
+-  }
+-
+-  // Otherwise, compute the round-up of y
+-  ret_value.significand =
+-      cache_accessor<T>::compute_round_up_for_shorter_interval_case(
+-          cache, beta_minus_1);
+-  ret_value.exponent = minus_k;
+-
+-  // When tie occurs, choose one of them according to the rule
+-  if (exponent >= float_info<T>::shorter_interval_tie_lower_threshold &&
+-      exponent <= float_info<T>::shorter_interval_tie_upper_threshold) {
+-    ret_value.significand = ret_value.significand % 2 == 0
+-                                ? ret_value.significand
+-                                : ret_value.significand - 1;
+-  } else if (ret_value.significand < xi) {
+-    ++ret_value.significand;
+-  }
+-  return ret_value;
+-}
+-
+-template <typename T> decimal_fp<T> to_decimal(T x) FMT_NOEXCEPT {
+-  // Step 1: integer promotion & Schubfach multiplier calculation.
+-
+-  using carrier_uint = typename float_info<T>::carrier_uint;
+-  using cache_entry_type = typename cache_accessor<T>::cache_entry_type;
+-  auto br = bit_cast<carrier_uint>(x);
+-
+-  // Extract significand bits and exponent bits.
+-  const carrier_uint significand_mask =
+-      (static_cast<carrier_uint>(1) << float_info<T>::significand_bits) - 1;
+-  carrier_uint significand = (br & significand_mask);
+-  int exponent = static_cast<int>((br & exponent_mask<T>()) >>
+-                                  float_info<T>::significand_bits);
+-
+-  if (exponent != 0) {  // Check if normal.
+-    exponent += float_info<T>::exponent_bias - float_info<T>::significand_bits;
+-
+-    // Shorter interval case; proceed like Schubfach.
+-    if (significand == 0) return shorter_interval_case<T>(exponent);
+-
+-    significand |=
+-        (static_cast<carrier_uint>(1) << float_info<T>::significand_bits);
+-  } else {
+-    // Subnormal case; the interval is always regular.
+-    if (significand == 0) return {0, 0};
+-    exponent = float_info<T>::min_exponent - float_info<T>::significand_bits;
+-  }
+-
+-  const bool include_left_endpoint = (significand % 2 == 0);
+-  const bool include_right_endpoint = include_left_endpoint;
+-
+-  // Compute k and beta.
+-  const int minus_k = floor_log10_pow2(exponent) - float_info<T>::kappa;
+-  const cache_entry_type cache = cache_accessor<T>::get_cached_power(-minus_k);
+-  const int beta_minus_1 = exponent + floor_log2_pow10(-minus_k);
+-
+-  // Compute zi and deltai
+-  // 10^kappa <= deltai < 10^(kappa + 1)
+-  const uint32_t deltai = cache_accessor<T>::compute_delta(cache, beta_minus_1);
+-  const carrier_uint two_fc = significand << 1;
+-  const carrier_uint two_fr = two_fc | 1;
+-  const carrier_uint zi =
+-      cache_accessor<T>::compute_mul(two_fr << beta_minus_1, cache);
+-
+-  // Step 2: Try larger divisor; remove trailing zeros if necessary
+-
+-  // Using an upper bound on zi, we might be able to optimize the division
+-  // better than the compiler; we are computing zi / big_divisor here
+-  decimal_fp<T> ret_value;
+-  ret_value.significand = divide_by_10_to_kappa_plus_1(zi);
+-  uint32_t r = static_cast<uint32_t>(zi - float_info<T>::big_divisor *
+-                                              ret_value.significand);
+-
+-  if (r > deltai) {
+-    goto small_divisor_case_label;
+-  } else if (r < deltai) {
+-    // Exclude the right endpoint if necessary
+-    if (r == 0 && !include_right_endpoint &&
+-        is_endpoint_integer<T>(two_fr, exponent, minus_k)) {
+-      --ret_value.significand;
+-      r = float_info<T>::big_divisor;
+-      goto small_divisor_case_label;
+-    }
+-  } else {
+-    // r == deltai; compare fractional parts
+-    // Check conditions in the order different from the paper
+-    // to take advantage of short-circuiting
+-    const carrier_uint two_fl = two_fc - 1;
+-    if ((!include_left_endpoint ||
+-         !is_endpoint_integer<T>(two_fl, exponent, minus_k)) &&
+-        !cache_accessor<T>::compute_mul_parity(two_fl, cache, beta_minus_1)) {
+-      goto small_divisor_case_label;
+-    }
+-  }
+-  ret_value.exponent = minus_k + float_info<T>::kappa + 1;
+-
+-  // We may need to remove trailing zeros
+-  ret_value.exponent += remove_trailing_zeros(ret_value.significand);
+-  return ret_value;
+-
+-  // Step 3: Find the significand with the smaller divisor
+-
+-small_divisor_case_label:
+-  ret_value.significand *= 10;
+-  ret_value.exponent = minus_k + float_info<T>::kappa;
+-
+-  const uint32_t mask = (1u << float_info<T>::kappa) - 1;
+-  auto dist = r - (deltai / 2) + (float_info<T>::small_divisor / 2);
+-
+-  // Is dist divisible by 2^kappa?
+-  if ((dist & mask) == 0) {
+-    const bool approx_y_parity =
+-        ((dist ^ (float_info<T>::small_divisor / 2)) & 1) != 0;
+-    dist >>= float_info<T>::kappa;
+-
+-    // Is dist divisible by 5^kappa?
+-    if (check_divisibility_and_divide_by_pow5<float_info<T>::kappa>(dist)) {
+-      ret_value.significand += dist;
+-
+-      // Check z^(f) >= epsilon^(f)
+-      // We have either yi == zi - epsiloni or yi == (zi - epsiloni) - 1,
+-      // where yi == zi - epsiloni if and only if z^(f) >= epsilon^(f)
+-      // Since there are only 2 possibilities, we only need to care about the
+-      // parity. Also, zi and r should have the same parity since the divisor
+-      // is an even number
+-      if (cache_accessor<T>::compute_mul_parity(two_fc, cache, beta_minus_1) !=
+-          approx_y_parity) {
+-        --ret_value.significand;
+-      } else {
+-        // If z^(f) >= epsilon^(f), we might have a tie
+-        // when z^(f) == epsilon^(f), or equivalently, when y is an integer
+-        if (is_center_integer<T>(two_fc, exponent, minus_k)) {
+-          ret_value.significand = ret_value.significand % 2 == 0
+-                                      ? ret_value.significand
+-                                      : ret_value.significand - 1;
+-        }
+-      }
+-    }
+-    // Is dist not divisible by 5^kappa?
+-    else {
+-      ret_value.significand += dist;
+-    }
+-  }
+-  // Is dist not divisible by 2^kappa?
+-  else {
+-    // Since we know dist is small, we might be able to optimize the division
+-    // better than the compiler; we are computing dist / small_divisor here
+-    ret_value.significand +=
+-        small_division_by_pow10<float_info<T>::kappa>(dist);
+-  }
+-  return ret_value;
+-}
+-}  // namespace dragonbox
+-
+-// Formats a floating-point number using a variation of the Fixed-Precision
+-// Positive Floating-Point Printout ((FPP)^2) algorithm by Steele & White:
+-// https://fmt.dev/papers/p372-steele.pdf.
+-FMT_CONSTEXPR20 inline void format_dragon(fp value, bool is_predecessor_closer,
+-                                          int num_digits, buffer<char>& buf,
+-                                          int& exp10) {
+-  bigint numerator;    // 2 * R in (FPP)^2.
+-  bigint denominator;  // 2 * S in (FPP)^2.
+-  // lower and upper are differences between value and corresponding boundaries.
+-  bigint lower;             // (M^- in (FPP)^2).
+-  bigint upper_store;       // upper's value if different from lower.
+-  bigint* upper = nullptr;  // (M^+ in (FPP)^2).
+-  // Shift numerator and denominator by an extra bit or two (if lower boundary
+-  // is closer) to make lower and upper integers. This eliminates multiplication
+-  // by 2 during later computations.
+-  int shift = is_predecessor_closer ? 2 : 1;
+-  uint64_t significand = value.f << shift;
+-  if (value.e >= 0) {
+-    numerator.assign(significand);
+-    numerator <<= value.e;
+-    lower.assign(1);
+-    lower <<= value.e;
+-    if (shift != 1) {
+-      upper_store.assign(1);
+-      upper_store <<= value.e + 1;
+-      upper = &upper_store;
+-    }
+-    denominator.assign_pow10(exp10);
+-    denominator <<= shift;
+-  } else if (exp10 < 0) {
+-    numerator.assign_pow10(-exp10);
+-    lower.assign(numerator);
+-    if (shift != 1) {
+-      upper_store.assign(numerator);
+-      upper_store <<= 1;
+-      upper = &upper_store;
+-    }
+-    numerator *= significand;
+-    denominator.assign(1);
+-    denominator <<= shift - value.e;
+-  } else {
+-    numerator.assign(significand);
+-    denominator.assign_pow10(exp10);
+-    denominator <<= shift - value.e;
+-    lower.assign(1);
+-    if (shift != 1) {
+-      upper_store.assign(1ULL << 1);
+-      upper = &upper_store;
+-    }
+-  }
+-  // Invariant: value == (numerator / denominator) * pow(10, exp10).
+-  if (num_digits < 0) {
+-    // Generate the shortest representation.
+-    if (!upper) upper = &lower;
+-    bool even = (value.f & 1) == 0;
+-    num_digits = 0;
+-    char* data = buf.data();
+-    for (;;) {
+-      int digit = numerator.divmod_assign(denominator);
+-      bool low = compare(numerator, lower) - even < 0;  // numerator <[=] lower.
+-      // numerator + upper >[=] pow10:
+-      bool high = add_compare(numerator, *upper, denominator) + even > 0;
+-      data[num_digits++] = static_cast<char>('0' + digit);
+-      if (low || high) {
+-        if (!low) {
+-          ++data[num_digits - 1];
+-        } else if (high) {
+-          int result = add_compare(numerator, numerator, denominator);
+-          // Round half to even.
+-          if (result > 0 || (result == 0 && (digit % 2) != 0))
+-            ++data[num_digits - 1];
+-        }
+-        buf.try_resize(to_unsigned(num_digits));
+-        exp10 -= num_digits - 1;
+-        return;
+-      }
+-      numerator *= 10;
+-      lower *= 10;
+-      if (upper != &lower) *upper *= 10;
+-    }
+-  }
+-  // Generate the given number of digits.
+-  exp10 -= num_digits - 1;
+-  if (num_digits == 0) {
+-    denominator *= 10;
+-    auto digit = add_compare(numerator, numerator, denominator) > 0 ? '1' : '0';
+-    buf.push_back(digit);
+-    return;
+-  }
+-  buf.try_resize(to_unsigned(num_digits));
+-  for (int i = 0; i < num_digits - 1; ++i) {
+-    int digit = numerator.divmod_assign(denominator);
+-    buf[i] = static_cast<char>('0' + digit);
+-    numerator *= 10;
+-  }
+-  int digit = numerator.divmod_assign(denominator);
+-  auto result = add_compare(numerator, numerator, denominator);
+-  if (result > 0 || (result == 0 && (digit % 2) != 0)) {
+-    if (digit == 9) {
+-      const auto overflow = '0' + 10;
+-      buf[num_digits - 1] = overflow;
+-      // Propagate the carry.
+-      for (int i = num_digits - 1; i > 0 && buf[i] == overflow; --i) {
+-        buf[i] = '0';
+-        ++buf[i - 1];
+-      }
+-      if (buf[0] == overflow) {
+-        buf[0] = '1';
+-        ++exp10;
+-      }
+-      return;
+-    }
+-    ++digit;
+-  }
+-  buf[num_digits - 1] = static_cast<char>('0' + digit);
+-}
+-
+-template <typename Float>
+-FMT_HEADER_ONLY_CONSTEXPR20 int format_float(Float value, int precision,
+-                                             float_specs specs,
+-                                             buffer<char>& buf) {
+-  // float is passed as double to reduce the number of instantiations.
+-  static_assert(!std::is_same<Float, float>::value, "");
+-  FMT_ASSERT(value >= 0, "value is negative");
+-
+-  const bool fixed = specs.format == float_format::fixed;
+-  if (value <= 0) {  // <= instead of == to silence a warning.
+-    if (precision <= 0 || !fixed) {
+-      buf.push_back('0');
+-      return 0;
+-    }
+-    buf.try_resize(to_unsigned(precision));
+-    fill_n(buf.data(), precision, '0');
+-    return -precision;
+-  }
+-
+-  if (specs.fallback) return snprintf_float(value, precision, specs, buf);
+-
+-  if (!is_constant_evaluated() && precision < 0) {
+-    // Use Dragonbox for the shortest format.
+-    if (specs.binary32) {
+-      auto dec = dragonbox::to_decimal(static_cast<float>(value));
+-      write<char>(buffer_appender<char>(buf), dec.significand);
+-      return dec.exponent;
+-    }
+-    auto dec = dragonbox::to_decimal(static_cast<double>(value));
+-    write<char>(buffer_appender<char>(buf), dec.significand);
+-    return dec.exponent;
+-  }
+-
+-  int exp = 0;
+-  bool use_dragon = true;
+-  if (is_fast_float<Float>()) {
+-    // Use Grisu + Dragon4 for the given precision:
+-    // https://www.cs.tufts.edu/~nr/cs257/archive/florian-loitsch/printf.pdf.
+-    const int min_exp = -60;  // alpha in Grisu.
+-    int cached_exp10 = 0;     // K in Grisu.
+-    fp normalized = normalize(fp(value));
+-    const auto cached_pow = get_cached_power(
+-        min_exp - (normalized.e + fp::num_significand_bits), cached_exp10);
+-    normalized = normalized * cached_pow;
+-    gen_digits_handler handler{buf.data(), 0, precision, -cached_exp10, fixed};
+-    if (grisu_gen_digits(normalized, 1, exp, handler) != digits::error &&
+-        !is_constant_evaluated()) {
+-      exp += handler.exp10;
+-      buf.try_resize(to_unsigned(handler.size));
+-      use_dragon = false;
+-    } else {
+-      exp += handler.size - cached_exp10 - 1;
+-      precision = handler.precision;
+-    }
+-  }
+-  if (use_dragon) {
+-    auto f = fp();
+-    bool is_predecessor_closer =
+-        specs.binary32 ? f.assign(static_cast<float>(value)) : f.assign(value);
+-    // Limit precision to the maximum possible number of significant digits in
+-    // an IEEE754 double because we don't need to generate zeros.
+-    const int max_double_digits = 767;
+-    if (precision > max_double_digits) precision = max_double_digits;
+-    format_dragon(f, is_predecessor_closer, precision, buf, exp);
+-  }
+-  if (!fixed && !specs.showpoint) {
+-    // Remove trailing zeros.
+-    auto num_digits = buf.size();
+-    while (num_digits > 0 && buf[num_digits - 1] == '0') {
+-      --num_digits;
+-      ++exp;
+-    }
+-    buf.try_resize(num_digits);
+-  }
+-  return exp;
+-}
+-
+-template <typename T>
+-int snprintf_float(T value, int precision, float_specs specs,
+-                   buffer<char>& buf) {
+-  // Buffer capacity must be non-zero, otherwise MSVC's vsnprintf_s will fail.
+-  FMT_ASSERT(buf.capacity() > buf.size(), "empty buffer");
+-  static_assert(!std::is_same<T, float>::value, "");
+-
+-  // Subtract 1 to account for the difference in precision since we use %e for
+-  // both general and exponent format.
+-  if (specs.format == float_format::general ||
+-      specs.format == float_format::exp)
+-    precision = (precision >= 0 ? precision : 6) - 1;
+-
+-  // Build the format string.
+-  enum { max_format_size = 7 };  // The longest format is "%#.*Le".
+-  char format[max_format_size];
+-  char* format_ptr = format;
+-  *format_ptr++ = '%';
+-  if (specs.showpoint && specs.format == float_format::hex) *format_ptr++ = '#';
+-  if (precision >= 0) {
+-    *format_ptr++ = '.';
+-    *format_ptr++ = '*';
+-  }
+-  if (std::is_same<T, long double>()) *format_ptr++ = 'L';
+-  *format_ptr++ = specs.format != float_format::hex
+-                      ? (specs.format == float_format::fixed ? 'f' : 'e')
+-                      : (specs.upper ? 'A' : 'a');
+-  *format_ptr = '\0';
+-
+-  // Format using snprintf.
+-  auto offset = buf.size();
+-  for (;;) {
+-    auto begin = buf.data() + offset;
+-    auto capacity = buf.capacity() - offset;
+-#ifdef FMT_FUZZ
+-    if (precision > 100000)
+-      throw std::runtime_error(
+-          "fuzz mode - avoid large allocation inside snprintf");
+-#endif
+-    // Suppress the warning about a nonliteral format string.
+-    // Cannot use auto because of a bug in MinGW (#1532).
+-    int (*snprintf_ptr)(char*, size_t, const char*, ...) = FMT_SNPRINTF;
+-    int result = precision >= 0
+-                     ? snprintf_ptr(begin, capacity, format, precision, value)
+-                     : snprintf_ptr(begin, capacity, format, value);
+-    if (result < 0) {
+-      // The buffer will grow exponentially.
+-      buf.try_reserve(buf.capacity() + 1);
+-      continue;
+-    }
+-    auto size = to_unsigned(result);
+-    // Size equal to capacity means that the last character was truncated.
+-    if (size >= capacity) {
+-      buf.try_reserve(size + offset + 1);  // Add 1 for the terminating '\0'.
+-      continue;
+-    }
+-    auto is_digit = [](char c) { return c >= '0' && c <= '9'; };
+-    if (specs.format == float_format::fixed) {
+-      if (precision == 0) {
+-        buf.try_resize(size);
+-        return 0;
+-      }
+-      // Find and remove the decimal point.
+-      auto end = begin + size, p = end;
+-      do {
+-        --p;
+-      } while (is_digit(*p));
+-      int fraction_size = static_cast<int>(end - p - 1);
+-      std::memmove(p, p + 1, to_unsigned(fraction_size));
+-      buf.try_resize(size - 1);
+-      return -fraction_size;
+-    }
+-    if (specs.format == float_format::hex) {
+-      buf.try_resize(size + offset);
+-      return 0;
+-    }
+-    // Find and parse the exponent.
+-    auto end = begin + size, exp_pos = end;
+-    do {
+-      --exp_pos;
+-    } while (*exp_pos != 'e');
+-    char sign = exp_pos[1];
+-    FMT_ASSERT(sign == '+' || sign == '-', "");
+-    int exp = 0;
+-    auto p = exp_pos + 2;  // Skip 'e' and sign.
+-    do {
+-      FMT_ASSERT(is_digit(*p), "");
+-      exp = exp * 10 + (*p++ - '0');
+-    } while (p != end);
+-    if (sign == '-') exp = -exp;
+-    int fraction_size = 0;
+-    if (exp_pos != begin + 1) {
+-      // Remove trailing zeros.
+-      auto fraction_end = exp_pos - 1;
+-      while (*fraction_end == '0') --fraction_end;
+-      // Move the fractional part left to get rid of the decimal point.
+-      fraction_size = static_cast<int>(fraction_end - begin - 1);
+-      std::memmove(begin + 1, begin + 2, to_unsigned(fraction_size));
+-    }
+-    buf.try_resize(to_unsigned(fraction_size) + offset + 1);
+-    return exp - fraction_size;
+-  }
+-}
+-}  // namespace detail
+-
+-template <> struct formatter<detail::bigint> {
+-  FMT_CONSTEXPR format_parse_context::iterator parse(
+-      format_parse_context& ctx) {
+-    return ctx.begin();
+-  }
+-
+-  format_context::iterator format(const detail::bigint& n,
+-                                  format_context& ctx) {
+-    auto out = ctx.out();
+-    bool first = true;
+-    for (auto i = n.bigits_.size(); i > 0; --i) {
+-      auto value = n.bigits_[i - 1u];
+-      if (first) {
+-        out = format_to(out, FMT_STRING("{:x}"), value);
+-        first = false;
+-        continue;
+-      }
+-      out = format_to(out, FMT_STRING("{:08x}"), value);
+-    }
+-    if (n.exp_ > 0)
+-      out = format_to(out, FMT_STRING("p{}"),
+-                      n.exp_ * detail::bigint::bigit_bits);
+-    return out;
+-  }
+-};
+-
+-FMT_FUNC detail::utf8_to_utf16::utf8_to_utf16(string_view s) {
+-  for_each_codepoint(s, [this](uint32_t cp, string_view) {
+-    if (cp == invalid_code_point) FMT_THROW(std::runtime_error("invalid utf8"));
+-    if (cp <= 0xFFFF) {
+-      buffer_.push_back(static_cast<wchar_t>(cp));
+-    } else {
+-      cp -= 0x10000;
+-      buffer_.push_back(static_cast<wchar_t>(0xD800 + (cp >> 10)));
+-      buffer_.push_back(static_cast<wchar_t>(0xDC00 + (cp & 0x3FF)));
+-    }
+-    return true;
+-  });
+-  buffer_.push_back(0);
+-}
+-
+-FMT_FUNC void format_system_error(detail::buffer<char>& out, int error_code,
+-                                  const char* message) FMT_NOEXCEPT {
+-  FMT_TRY {
+-    auto ec = std::error_code(error_code, std::generic_category());
+-    write(std::back_inserter(out), std::system_error(ec, message).what());
+-    return;
+-  }
+-  FMT_CATCH(...) {}
+-  format_error_code(out, error_code, message);
+-}
+-
+-FMT_FUNC void report_system_error(int error_code,
+-                                  const char* message) FMT_NOEXCEPT {
+-  report_error(format_system_error, error_code, message);
+-}
+-
+-// DEPRECATED!
+-// This function is defined here and not inline for ABI compatibility.
+-FMT_FUNC void detail::error_handler::on_error(const char* message) {
+-  throw_format_error(message);
+-}
+-
+-FMT_FUNC std::string vformat(string_view fmt, format_args args) {
+-  // Don't optimize the "{}" case to keep the binary size small and because it
+-  // can be better optimized in fmt::format anyway.
+-  auto buffer = memory_buffer();
+-  detail::vformat_to(buffer, fmt, args);
+-  return to_string(buffer);
+-}
+-
+-#ifdef _WIN32
+-namespace detail {
+-using dword = conditional_t<sizeof(long) == 4, unsigned long, unsigned>;
+-extern "C" __declspec(dllimport) int __stdcall WriteConsoleW(  //
+-    void*, const void*, dword, dword*, void*);
+-}  // namespace detail
+-#endif
+-
+-namespace detail {
+-FMT_FUNC void print(std::FILE* f, string_view text) {
+-#ifdef _WIN32
+-  auto fd = _fileno(f);
+-  if (_isatty(fd)) {
+-    detail::utf8_to_utf16 u16(string_view(text.data(), text.size()));
+-    auto written = detail::dword();
+-    if (detail::WriteConsoleW(reinterpret_cast<void*>(_get_osfhandle(fd)),
+-                              u16.c_str(), static_cast<uint32_t>(u16.size()),
+-                              &written, nullptr)) {
+-      return;
+-    }
+-    // Fallback to fwrite on failure. It can happen if the output has been
+-    // redirected to NUL.
+-  }
+-#endif
+-  detail::fwrite_fully(text.data(), 1, text.size(), f);
+-}
+-}  // namespace detail
+-
+-FMT_FUNC void vprint(std::FILE* f, string_view format_str, format_args args) {
+-  memory_buffer buffer;
+-  detail::vformat_to(buffer, format_str, args);
+-  detail::print(f, {buffer.data(), buffer.size()});
+-}
+-
+-#ifdef _WIN32
+-// Print assuming legacy (non-Unicode) encoding.
+-FMT_FUNC void detail::vprint_mojibake(std::FILE* f, string_view format_str,
+-                                      format_args args) {
+-  memory_buffer buffer;
+-  detail::vformat_to(buffer, format_str,
+-                     basic_format_args<buffer_context<char>>(args));
+-  fwrite_fully(buffer.data(), 1, buffer.size(), f);
+-}
+-#endif
+-
+-FMT_FUNC void vprint(string_view format_str, format_args args) {
+-  vprint(stdout, format_str, args);
+-}
+-
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_FORMAT_INL_H_
+diff --git a/include/dpp/fmt/format.h b/include/dpp/fmt/format.h
+deleted file mode 100644
+index ee69651..0000000
+--- a/include/dpp/fmt/format.h
++++ /dev/null
+@@ -1,3104 +0,0 @@
+-/*
+- Formatting library for C++
+-
+- Copyright (c) 2012 - present, Victor Zverovich
+-
+- 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.
+-
+- --- Optional exception to the license ---
+-
+- As an exception, if, as a result of your compiling your source code, portions
+- of this Software are embedded into a machine-executable object form of such
+- source code, you may redistribute such embedded portions in such object form
+- without including the above copyright and permission notices.
+- */
+-
+-#ifndef FMT_FORMAT_H_
+-#define FMT_FORMAT_H_
+-
+-#include <cmath>         // std::signbit
+-#include <cstdint>       // uint32_t
+-#include <limits>        // std::numeric_limits
+-#include <memory>        // std::uninitialized_copy
+-#include <stdexcept>     // std::runtime_error
+-#include <system_error>  // std::system_error
+-#include <utility>       // std::swap
+-
+-#ifdef __cpp_lib_bit_cast
+-#  include <bit>  // std::bitcast
+-#endif
+-
+-#include "core.h"
+-
+-#if FMT_GCC_VERSION
+-#  define FMT_GCC_VISIBILITY_HIDDEN __attribute__((visibility("hidden")))
+-#else
+-#  define FMT_GCC_VISIBILITY_HIDDEN
+-#endif
+-
+-#ifdef __NVCC__
+-#  define FMT_CUDA_VERSION (__CUDACC_VER_MAJOR__ * 100 + __CUDACC_VER_MINOR__)
+-#else
+-#  define FMT_CUDA_VERSION 0
+-#endif
+-
+-#ifdef __has_builtin
+-#  define FMT_HAS_BUILTIN(x) __has_builtin(x)
+-#else
+-#  define FMT_HAS_BUILTIN(x) 0
+-#endif
+-
+-#if FMT_GCC_VERSION || FMT_CLANG_VERSION
+-#  define FMT_NOINLINE __attribute__((noinline))
+-#else
+-#  define FMT_NOINLINE
+-#endif
+-
+-#if FMT_MSC_VER
+-#  define FMT_MSC_DEFAULT = default
+-#else
+-#  define FMT_MSC_DEFAULT
+-#endif
+-
+-#ifndef FMT_THROW
+-#  if FMT_EXCEPTIONS
+-#    if FMT_MSC_VER || FMT_NVCC
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-template <typename Exception> inline void do_throw(const Exception& x) {
+-  // Silence unreachable code warnings in MSVC and NVCC because these
+-  // are nearly impossible to fix in a generic code.
+-  volatile bool b = true;
+-  if (b) throw x;
+-}
+-}  // namespace detail
+-FMT_END_NAMESPACE
+-#      define FMT_THROW(x) detail::do_throw(x)
+-#    else
+-#      define FMT_THROW(x) throw x
+-#    endif
+-#  else
+-#    define FMT_THROW(x)               \
+-      do {                             \
+-        FMT_ASSERT(false, (x).what()); \
+-      } while (false)
+-#  endif
+-#endif
+-
+-#if FMT_EXCEPTIONS
+-#  define FMT_TRY try
+-#  define FMT_CATCH(x) catch (x)
+-#else
+-#  define FMT_TRY if (true)
+-#  define FMT_CATCH(x) if (false)
+-#endif
+-
+-#ifndef FMT_MAYBE_UNUSED
+-#  if FMT_HAS_CPP17_ATTRIBUTE(maybe_unused)
+-#    define FMT_MAYBE_UNUSED [[maybe_unused]]
+-#  else
+-#    define FMT_MAYBE_UNUSED
+-#  endif
+-#endif
+-
+-// Workaround broken [[deprecated]] in the Intel, PGI and NVCC compilers.
+-#if FMT_ICC_VERSION || defined(__PGI) || FMT_NVCC
+-#  define FMT_DEPRECATED_ALIAS
+-#else
+-#  define FMT_DEPRECATED_ALIAS FMT_DEPRECATED
+-#endif
+-
+-#ifndef FMT_USE_USER_DEFINED_LITERALS
+-// EDG based compilers (Intel, NVIDIA, Elbrus, etc), GCC and MSVC support UDLs.
+-#  if (FMT_HAS_FEATURE(cxx_user_literals) || FMT_GCC_VERSION >= 407 || \
+-       FMT_MSC_VER >= 1900) &&                                         \
+-      (!defined(__EDG_VERSION__) || __EDG_VERSION__ >= /* UDL feature */ 480)
+-#    define FMT_USE_USER_DEFINED_LITERALS 1
+-#  else
+-#    define FMT_USE_USER_DEFINED_LITERALS 0
+-#  endif
+-#endif
+-
+-// Defining FMT_REDUCE_INT_INSTANTIATIONS to 1, will reduce the number of
+-// integer formatter template instantiations to just one by only using the
+-// largest integer type. This results in a reduction in binary size but will
+-// cause a decrease in integer formatting performance.
+-#if !defined(FMT_REDUCE_INT_INSTANTIATIONS)
+-#  define FMT_REDUCE_INT_INSTANTIATIONS 0
+-#endif
+-
+-// __builtin_clz is broken in clang with Microsoft CodeGen:
+-// https://github.com/fmtlib/fmt/issues/519.
+-#if !FMT_MSC_VER
+-#  if FMT_HAS_BUILTIN(__builtin_clz) || FMT_GCC_VERSION || FMT_ICC_VERSION
+-#    define FMT_BUILTIN_CLZ(n) __builtin_clz(n)
+-#  endif
+-#  if FMT_HAS_BUILTIN(__builtin_clzll) || FMT_GCC_VERSION || FMT_ICC_VERSION
+-#    define FMT_BUILTIN_CLZLL(n) __builtin_clzll(n)
+-#  endif
+-#endif
+-
+-// __builtin_ctz is broken in Intel Compiler Classic on Windows:
+-// https://github.com/fmtlib/fmt/issues/2510.
+-#ifndef __ICL
+-#  if FMT_HAS_BUILTIN(__builtin_ctz) || FMT_GCC_VERSION || FMT_ICC_VERSION
+-#    define FMT_BUILTIN_CTZ(n) __builtin_ctz(n)
+-#  endif
+-#  if FMT_HAS_BUILTIN(__builtin_ctzll) || FMT_GCC_VERSION || FMT_ICC_VERSION
+-#    define FMT_BUILTIN_CTZLL(n) __builtin_ctzll(n)
+-#  endif
+-#endif
+-
+-#if FMT_MSC_VER
+-#  include <intrin.h>  // _BitScanReverse[64], _BitScanForward[64], _umul128
+-#endif
+-
+-// Some compilers masquerade as both MSVC and GCC-likes or otherwise support
+-// __builtin_clz and __builtin_clzll, so only define FMT_BUILTIN_CLZ using the
+-// MSVC intrinsics if the clz and clzll builtins are not available.
+-#if FMT_MSC_VER && !defined(FMT_BUILTIN_CLZLL) && !defined(FMT_BUILTIN_CTZLL)
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-// Avoid Clang with Microsoft CodeGen's -Wunknown-pragmas warning.
+-#  if !defined(__clang__)
+-#    pragma intrinsic(_BitScanForward)
+-#    pragma intrinsic(_BitScanReverse)
+-#    if defined(_WIN64)
+-#      pragma intrinsic(_BitScanForward64)
+-#      pragma intrinsic(_BitScanReverse64)
+-#    endif
+-#  endif
+-
+-inline auto clz(uint32_t x) -> int {
+-  unsigned long r = 0;
+-  _BitScanReverse(&r, x);
+-  FMT_ASSERT(x != 0, "");
+-  // Static analysis complains about using uninitialized data
+-  // "r", but the only way that can happen is if "x" is 0,
+-  // which the callers guarantee to not happen.
+-  FMT_MSC_WARNING(suppress : 6102)
+-  return 31 ^ static_cast<int>(r);
+-}
+-#  define FMT_BUILTIN_CLZ(n) detail::clz(n)
+-
+-inline auto clzll(uint64_t x) -> int {
+-  unsigned long r = 0;
+-#  ifdef _WIN64
+-  _BitScanReverse64(&r, x);
+-#  else
+-  // Scan the high 32 bits.
+-  if (_BitScanReverse(&r, static_cast<uint32_t>(x >> 32))) return 63 ^ (r + 32);
+-  // Scan the low 32 bits.
+-  _BitScanReverse(&r, static_cast<uint32_t>(x));
+-#  endif
+-  FMT_ASSERT(x != 0, "");
+-  FMT_MSC_WARNING(suppress : 6102)  // Suppress a bogus static analysis warning.
+-  return 63 ^ static_cast<int>(r);
+-}
+-#  define FMT_BUILTIN_CLZLL(n) detail::clzll(n)
+-
+-inline auto ctz(uint32_t x) -> int {
+-  unsigned long r = 0;
+-  _BitScanForward(&r, x);
+-  FMT_ASSERT(x != 0, "");
+-  FMT_MSC_WARNING(suppress : 6102)  // Suppress a bogus static analysis warning.
+-  return static_cast<int>(r);
+-}
+-#  define FMT_BUILTIN_CTZ(n) detail::ctz(n)
+-
+-inline auto ctzll(uint64_t x) -> int {
+-  unsigned long r = 0;
+-  FMT_ASSERT(x != 0, "");
+-  FMT_MSC_WARNING(suppress : 6102)  // Suppress a bogus static analysis warning.
+-#  ifdef _WIN64
+-  _BitScanForward64(&r, x);
+-#  else
+-  // Scan the low 32 bits.
+-  if (_BitScanForward(&r, static_cast<uint32_t>(x))) return static_cast<int>(r);
+-  // Scan the high 32 bits.
+-  _BitScanForward(&r, static_cast<uint32_t>(x >> 32));
+-  r += 32;
+-#  endif
+-  return static_cast<int>(r);
+-}
+-#  define FMT_BUILTIN_CTZLL(n) detail::ctzll(n)
+-}  // namespace detail
+-FMT_END_NAMESPACE
+-#endif
+-
+-#ifdef FMT_HEADER_ONLY
+-#  define FMT_HEADER_ONLY_CONSTEXPR20 FMT_CONSTEXPR20
+-#else
+-#  define FMT_HEADER_ONLY_CONSTEXPR20
+-#endif
+-
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-
+-template <typename Streambuf> class formatbuf : public Streambuf {
+- private:
+-  using char_type = typename Streambuf::char_type;
+-  using streamsize = decltype(std::declval<Streambuf>().sputn(nullptr, 0));
+-  using int_type = typename Streambuf::int_type;
+-  using traits_type = typename Streambuf::traits_type;
+-
+-  buffer<char_type>& buffer_;
+-
+- public:
+-  explicit formatbuf(buffer<char_type>& buf) : buffer_(buf) {}
+-
+- protected:
+-  // The put area is always empty. This makes the implementation simpler and has
+-  // the advantage that the streambuf and the buffer are always in sync and
+-  // sputc never writes into uninitialized memory. A disadvantage is that each
+-  // call to sputc always results in a (virtual) call to overflow. There is no
+-  // disadvantage here for sputn since this always results in a call to xsputn.
+-
+-  auto overflow(int_type ch) -> int_type override {
+-    if (!traits_type::eq_int_type(ch, traits_type::eof()))
+-      buffer_.push_back(static_cast<char_type>(ch));
+-    return ch;
+-  }
+-
+-  auto xsputn(const char_type* s, streamsize count) -> streamsize override {
+-    buffer_.append(s, s + count);
+-    return count;
+-  }
+-};
+-
+-// Implementation of std::bit_cast for pre-C++20.
+-template <typename To, typename From>
+-FMT_CONSTEXPR20 auto bit_cast(const From& from) -> To {
+-  static_assert(sizeof(To) == sizeof(From), "size mismatch");
+-#ifdef __cpp_lib_bit_cast
+-  if (is_constant_evaluated()) return std::bit_cast<To>(from);
+-#endif
+-  auto to = To();
+-  std::memcpy(&to, &from, sizeof(to));
+-  return to;
+-}
+-
+-inline auto is_big_endian() -> bool {
+-#ifdef _WIN32
+-  return false;
+-#elif defined(__BIG_ENDIAN__)
+-  return true;
+-#elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__)
+-  return __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__;
+-#else
+-  struct bytes {
+-    char data[sizeof(int)];
+-  };
+-  return bit_cast<bytes>(1).data[0] == 0;
+-#endif
+-}
+-
+-// A fallback implementation of uintptr_t for systems that lack it.
+-struct fallback_uintptr {
+-  unsigned char value[sizeof(void*)];
+-
+-  fallback_uintptr() = default;
+-  explicit fallback_uintptr(const void* p) {
+-    *this = bit_cast<fallback_uintptr>(p);
+-    if (const_check(is_big_endian())) {
+-      for (size_t i = 0, j = sizeof(void*) - 1; i < j; ++i, --j)
+-        std::swap(value[i], value[j]);
+-    }
+-  }
+-};
+-#ifdef UINTPTR_MAX
+-using uintptr_t = ::uintptr_t;
+-inline auto to_uintptr(const void* p) -> uintptr_t {
+-  return bit_cast<uintptr_t>(p);
+-}
+-#else
+-using uintptr_t = fallback_uintptr;
+-inline auto to_uintptr(const void* p) -> fallback_uintptr {
+-  return fallback_uintptr(p);
+-}
+-#endif
+-
+-// Returns the largest possible value for type T. Same as
+-// std::numeric_limits<T>::max() but shorter and not affected by the max macro.
+-template <typename T> constexpr auto max_value() -> T {
+-  return (std::numeric_limits<T>::max)();
+-}
+-template <typename T> constexpr auto num_bits() -> int {
+-  return std::numeric_limits<T>::digits;
+-}
+-// std::numeric_limits<T>::digits may return 0 for 128-bit ints.
+-template <> constexpr auto num_bits<int128_t>() -> int { return 128; }
+-template <> constexpr auto num_bits<uint128_t>() -> int { return 128; }
+-template <> constexpr auto num_bits<fallback_uintptr>() -> int {
+-  return static_cast<int>(sizeof(void*) *
+-                          std::numeric_limits<unsigned char>::digits);
+-}
+-
+-FMT_INLINE void assume(bool condition) {
+-  (void)condition;
+-#if FMT_HAS_BUILTIN(__builtin_assume)
+-  __builtin_assume(condition);
+-#endif
+-}
+-
+-// An approximation of iterator_t for pre-C++20 systems.
+-template <typename T>
+-using iterator_t = decltype(std::begin(std::declval<T&>()));
+-template <typename T> using sentinel_t = decltype(std::end(std::declval<T&>()));
+-
+-// A workaround for std::string not having mutable data() until C++17.
+-template <typename Char>
+-inline auto get_data(std::basic_string<Char>& s) -> Char* {
+-  return &s[0];
+-}
+-template <typename Container>
+-inline auto get_data(Container& c) -> typename Container::value_type* {
+-  return c.data();
+-}
+-
+-#if defined(_SECURE_SCL) && _SECURE_SCL
+-// Make a checked iterator to avoid MSVC warnings.
+-template <typename T> using checked_ptr = stdext::checked_array_iterator<T*>;
+-template <typename T>
+-constexpr auto make_checked(T* p, size_t size) -> checked_ptr<T> {
+-  return {p, size};
+-}
+-#else
+-template <typename T> using checked_ptr = T*;
+-template <typename T> constexpr auto make_checked(T* p, size_t) -> T* {
+-  return p;
+-}
+-#endif
+-
+-// Attempts to reserve space for n extra characters in the output range.
+-// Returns a pointer to the reserved range or a reference to it.
+-template <typename Container, FMT_ENABLE_IF(is_contiguous<Container>::value)>
+-#if FMT_CLANG_VERSION >= 307 && !FMT_ICC_VERSION
+-__attribute__((no_sanitize("undefined")))
+-#endif
+-inline auto
+-reserve(std::back_insert_iterator<Container> it, size_t n)
+-    -> checked_ptr<typename Container::value_type> {
+-  Container& c = get_container(it);
+-  size_t size = c.size();
+-  c.resize(size + n);
+-  return make_checked(get_data(c) + size, n);
+-}
+-
+-template <typename T>
+-inline auto reserve(buffer_appender<T> it, size_t n) -> buffer_appender<T> {
+-  buffer<T>& buf = get_container(it);
+-  buf.try_reserve(buf.size() + n);
+-  return it;
+-}
+-
+-template <typename Iterator>
+-constexpr auto reserve(Iterator& it, size_t) -> Iterator& {
+-  return it;
+-}
+-
+-template <typename OutputIt>
+-using reserve_iterator =
+-    remove_reference_t<decltype(reserve(std::declval<OutputIt&>(), 0))>;
+-
+-template <typename T, typename OutputIt>
+-constexpr auto to_pointer(OutputIt, size_t) -> T* {
+-  return nullptr;
+-}
+-template <typename T> auto to_pointer(buffer_appender<T> it, size_t n) -> T* {
+-  buffer<T>& buf = get_container(it);
+-  auto size = buf.size();
+-  if (buf.capacity() < size + n) return nullptr;
+-  buf.try_resize(size + n);
+-  return buf.data() + size;
+-}
+-
+-template <typename Container, FMT_ENABLE_IF(is_contiguous<Container>::value)>
+-inline auto base_iterator(std::back_insert_iterator<Container>& it,
+-                          checked_ptr<typename Container::value_type>)
+-    -> std::back_insert_iterator<Container> {
+-  return it;
+-}
+-
+-template <typename Iterator>
+-constexpr auto base_iterator(Iterator, Iterator it) -> Iterator {
+-  return it;
+-}
+-
+-// <algorithm> is spectacularly slow to compile in C++20 so use a simple fill_n
+-// instead (#1998).
+-template <typename OutputIt, typename Size, typename T>
+-FMT_CONSTEXPR auto fill_n(OutputIt out, Size count, const T& value)
+-    -> OutputIt {
+-  for (Size i = 0; i < count; ++i) *out++ = value;
+-  return out;
+-}
+-template <typename T, typename Size>
+-FMT_CONSTEXPR20 auto fill_n(T* out, Size count, char value) -> T* {
+-  if (is_constant_evaluated()) {
+-    return fill_n<T*, Size, T>(out, count, value);
+-  }
+-  std::memset(out, value, to_unsigned(count));
+-  return out + count;
+-}
+-
+-#ifdef __cpp_char8_t
+-using char8_type = char8_t;
+-#else
+-enum char8_type : unsigned char {};
+-#endif
+-
+-template <typename OutChar, typename InputIt, typename OutputIt>
+-FMT_CONSTEXPR FMT_NOINLINE auto copy_str_noinline(InputIt begin, InputIt end,
+-                                                  OutputIt out) -> OutputIt {
+-  return copy_str<OutChar>(begin, end, out);
+-}
+-
+-// A public domain branchless UTF-8 decoder by Christopher Wellons:
+-// https://github.com/skeeto/branchless-utf8
+-/* Decode the next character, c, from s, reporting errors in e.
+- *
+- * Since this is a branchless decoder, four bytes will be read from the
+- * buffer regardless of the actual length of the next character. This
+- * means the buffer _must_ have at least three bytes of zero padding
+- * following the end of the data stream.
+- *
+- * Errors are reported in e, which will be non-zero if the parsed
+- * character was somehow invalid: invalid byte sequence, non-canonical
+- * encoding, or a surrogate half.
+- *
+- * The function returns a pointer to the next character. When an error
+- * occurs, this pointer will be a guess that depends on the particular
+- * error, but it will always advance at least one byte.
+- */
+-FMT_CONSTEXPR inline auto utf8_decode(const char* s, uint32_t* c, int* e)
+-    -> const char* {
+-  constexpr const int masks[] = {0x00, 0x7f, 0x1f, 0x0f, 0x07};
+-  constexpr const uint32_t mins[] = {4194304, 0, 128, 2048, 65536};
+-  constexpr const int shiftc[] = {0, 18, 12, 6, 0};
+-  constexpr const int shifte[] = {0, 6, 4, 2, 0};
+-
+-  int len = code_point_length(s);
+-  const char* next = s + len;
+-
+-  // Assume a four-byte character and load four bytes. Unused bits are
+-  // shifted out.
+-  *c = uint32_t(s[0] & masks[len]) << 18;
+-  *c |= uint32_t(s[1] & 0x3f) << 12;
+-  *c |= uint32_t(s[2] & 0x3f) << 6;
+-  *c |= uint32_t(s[3] & 0x3f) << 0;
+-  *c >>= shiftc[len];
+-
+-  // Accumulate the various error conditions.
+-  using uchar = unsigned char;
+-  *e = (*c < mins[len]) << 6;       // non-canonical encoding
+-  *e |= ((*c >> 11) == 0x1b) << 7;  // surrogate half?
+-  *e |= (*c > 0x10FFFF) << 8;       // out of range?
+-  *e |= (uchar(s[1]) & 0xc0) >> 2;
+-  *e |= (uchar(s[2]) & 0xc0) >> 4;
+-  *e |= uchar(s[3]) >> 6;
+-  *e ^= 0x2a;  // top two bits of each tail byte correct?
+-  *e >>= shifte[len];
+-
+-  return next;
+-}
+-
+-constexpr uint32_t invalid_code_point = ~uint32_t();
+-
+-// Invokes f(cp, sv) for every code point cp in s with sv being the string view
+-// corresponding to the code point. cp is invalid_code_point on error.
+-template <typename F>
+-FMT_CONSTEXPR void for_each_codepoint(string_view s, F f) {
+-  auto decode = [f](const char* buf_ptr, const char* ptr) {
+-    auto cp = uint32_t();
+-    auto error = 0;
+-    auto end = utf8_decode(buf_ptr, &cp, &error);
+-    bool result = f(error ? invalid_code_point : cp,
+-                    string_view(ptr, to_unsigned(end - buf_ptr)));
+-    return result ? end : nullptr;
+-  };
+-  auto p = s.data();
+-  const size_t block_size = 4;  // utf8_decode always reads blocks of 4 chars.
+-  if (s.size() >= block_size) {
+-    for (auto end = p + s.size() - block_size + 1; p < end;) {
+-      p = decode(p, p);
+-      if (!p) return;
+-    }
+-  }
+-  if (auto num_chars_left = s.data() + s.size() - p) {
+-    char buf[2 * block_size - 1] = {};
+-    copy_str<char>(p, p + num_chars_left, buf);
+-    const char* buf_ptr = buf;
+-    do {
+-      auto end = decode(buf_ptr, p);
+-      if (!end) return;
+-      p += end - buf_ptr;
+-      buf_ptr = end;
+-    } while (buf_ptr - buf < num_chars_left);
+-  }
+-}
+-
+-template <typename Char>
+-inline auto compute_width(basic_string_view<Char> s) -> size_t {
+-  return s.size();
+-}
+-
+-// Computes approximate display width of a UTF-8 string.
+-FMT_CONSTEXPR inline size_t compute_width(string_view s) {
+-  size_t num_code_points = 0;
+-  // It is not a lambda for compatibility with C++14.
+-  struct count_code_points {
+-    size_t* count;
+-    FMT_CONSTEXPR auto operator()(uint32_t cp, string_view) const -> bool {
+-      *count += detail::to_unsigned(
+-          1 +
+-          (cp >= 0x1100 &&
+-           (cp <= 0x115f ||  // Hangul Jamo init. consonants
+-            cp == 0x2329 ||  // LEFT-POINTING ANGLE BRACKET
+-            cp == 0x232a ||  // RIGHT-POINTING ANGLE BRACKET
+-            // CJK ... Yi except IDEOGRAPHIC HALF FILL SPACE:
+-            (cp >= 0x2e80 && cp <= 0xa4cf && cp != 0x303f) ||
+-            (cp >= 0xac00 && cp <= 0xd7a3) ||    // Hangul Syllables
+-            (cp >= 0xf900 && cp <= 0xfaff) ||    // CJK Compatibility Ideographs
+-            (cp >= 0xfe10 && cp <= 0xfe19) ||    // Vertical Forms
+-            (cp >= 0xfe30 && cp <= 0xfe6f) ||    // CJK Compatibility Forms
+-            (cp >= 0xff00 && cp <= 0xff60) ||    // Fullwidth Forms
+-            (cp >= 0xffe0 && cp <= 0xffe6) ||    // Fullwidth Forms
+-            (cp >= 0x20000 && cp <= 0x2fffd) ||  // CJK
+-            (cp >= 0x30000 && cp <= 0x3fffd) ||
+-            // Miscellaneous Symbols and Pictographs + Emoticons:
+-            (cp >= 0x1f300 && cp <= 0x1f64f) ||
+-            // Supplemental Symbols and Pictographs:
+-            (cp >= 0x1f900 && cp <= 0x1f9ff))));
+-      return true;
+-    }
+-  };
+-  for_each_codepoint(s, count_code_points{&num_code_points});
+-  return num_code_points;
+-}
+-
+-inline auto compute_width(basic_string_view<char8_type> s) -> size_t {
+-  return compute_width(basic_string_view<char>(
+-      reinterpret_cast<const char*>(s.data()), s.size()));
+-}
+-
+-template <typename Char>
+-inline auto code_point_index(basic_string_view<Char> s, size_t n) -> size_t {
+-  size_t size = s.size();
+-  return n < size ? n : size;
+-}
+-
+-// Calculates the index of the nth code point in a UTF-8 string.
+-inline auto code_point_index(basic_string_view<char8_type> s, size_t n)
+-    -> size_t {
+-  const char8_type* data = s.data();
+-  size_t num_code_points = 0;
+-  for (size_t i = 0, size = s.size(); i != size; ++i) {
+-    if ((data[i] & 0xc0) != 0x80 && ++num_code_points > n) return i;
+-  }
+-  return s.size();
+-}
+-
+-template <typename T, bool = std::is_floating_point<T>::value>
+-struct is_fast_float : bool_constant<std::numeric_limits<T>::is_iec559 &&
+-                                     sizeof(T) <= sizeof(double)> {};
+-template <typename T> struct is_fast_float<T, false> : std::false_type {};
+-
+-#ifndef FMT_USE_FULL_CACHE_DRAGONBOX
+-#  define FMT_USE_FULL_CACHE_DRAGONBOX 0
+-#endif
+-
+-template <typename T>
+-template <typename U>
+-void buffer<T>::append(const U* begin, const U* end) {
+-  while (begin != end) {
+-    auto count = to_unsigned(end - begin);
+-    try_reserve(size_ + count);
+-    auto free_cap = capacity_ - size_;
+-    if (free_cap < count) count = free_cap;
+-    std::uninitialized_copy_n(begin, count, make_checked(ptr_ + size_, count));
+-    size_ += count;
+-    begin += count;
+-  }
+-}
+-
+-template <typename T, typename Enable = void>
+-struct is_locale : std::false_type {};
+-template <typename T>
+-struct is_locale<T, void_t<decltype(T::classic())>> : std::true_type {};
+-}  // namespace detail
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-// The number of characters to store in the basic_memory_buffer object itself
+-// to avoid dynamic memory allocation.
+-enum { inline_buffer_size = 500 };
+-
+-/**
+-  \rst
+-  A dynamically growing memory buffer for trivially copyable/constructible types
+-  with the first ``SIZE`` elements stored in the object itself.
+-
+-  You can use the ``memory_buffer`` type alias for ``char`` instead.
+-
+-  **Example**::
+-
+-     auto out = fmt::memory_buffer();
+-     format_to(std::back_inserter(out), "The answer is {}.", 42);
+-
+-  This will append the following output to the ``out`` object:
+-
+-  .. code-block:: none
+-
+-     The answer is 42.
+-
+-  The output can be converted to an ``std::string`` with ``to_string(out)``.
+-  \endrst
+- */
+-template <typename T, size_t SIZE = inline_buffer_size,
+-          typename Allocator = std::allocator<T>>
+-class basic_memory_buffer final : public detail::buffer<T> {
+- private:
+-  T store_[SIZE];
+-
+-  // Don't inherit from Allocator avoid generating type_info for it.
+-  Allocator alloc_;
+-
+-  // Deallocate memory allocated by the buffer.
+-  FMT_CONSTEXPR20 void deallocate() {
+-    T* data = this->data();
+-    if (data != store_) alloc_.deallocate(data, this->capacity());
+-  }
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t size) override;
+-
+- public:
+-  using value_type = T;
+-  using const_reference = const T&;
+-
+-  FMT_CONSTEXPR20 explicit basic_memory_buffer(
+-      const Allocator& alloc = Allocator())
+-      : alloc_(alloc) {
+-    this->set(store_, SIZE);
+-    if (detail::is_constant_evaluated()) {
+-      detail::fill_n(store_, SIZE, T{});
+-    }
+-  }
+-  FMT_CONSTEXPR20 ~basic_memory_buffer() { deallocate(); }
+-
+- private:
+-  // Move data from other to this buffer.
+-  FMT_CONSTEXPR20 void move(basic_memory_buffer& other) {
+-    alloc_ = std::move(other.alloc_);
+-    T* data = other.data();
+-    size_t size = other.size(), capacity = other.capacity();
+-    if (data == other.store_) {
+-      this->set(store_, capacity);
+-      if (detail::is_constant_evaluated()) {
+-        detail::copy_str<T>(other.store_, other.store_ + size,
+-                            detail::make_checked(store_, capacity));
+-      } else {
+-        std::uninitialized_copy(other.store_, other.store_ + size,
+-                                detail::make_checked(store_, capacity));
+-      }
+-    } else {
+-      this->set(data, capacity);
+-      // Set pointer to the inline array so that delete is not called
+-      // when deallocating.
+-      other.set(other.store_, 0);
+-    }
+-    this->resize(size);
+-  }
+-
+- public:
+-  /**
+-    \rst
+-    Constructs a :class:`fmt::basic_memory_buffer` object moving the content
+-    of the other object to it.
+-    \endrst
+-   */
+-  FMT_CONSTEXPR20 basic_memory_buffer(basic_memory_buffer&& other)
+-      FMT_NOEXCEPT {
+-    move(other);
+-  }
+-
+-  /**
+-    \rst
+-    Moves the content of the other ``basic_memory_buffer`` object to this one.
+-    \endrst
+-   */
+-  auto operator=(basic_memory_buffer&& other) FMT_NOEXCEPT
+-      -> basic_memory_buffer& {
+-    FMT_ASSERT(this != &other, "");
+-    deallocate();
+-    move(other);
+-    return *this;
+-  }
+-
+-  // Returns a copy of the allocator associated with this buffer.
+-  auto get_allocator() const -> Allocator { return alloc_; }
+-
+-  /**
+-    Resizes the buffer to contain *count* elements. If T is a POD type new
+-    elements may not be initialized.
+-   */
+-  FMT_CONSTEXPR20 void resize(size_t count) { this->try_resize(count); }
+-
+-  /** Increases the buffer capacity to *new_capacity*. */
+-  void reserve(size_t new_capacity) { this->try_reserve(new_capacity); }
+-
+-  // Directly append data into the buffer
+-  using detail::buffer<T>::append;
+-  template <typename ContiguousRange>
+-  void append(const ContiguousRange& range) {
+-    append(range.data(), range.data() + range.size());
+-  }
+-};
+-
+-template <typename T, size_t SIZE, typename Allocator>
+-FMT_CONSTEXPR20 void basic_memory_buffer<T, SIZE, Allocator>::grow(
+-    size_t size) {
+-#ifdef FMT_FUZZ
+-  if (size > 5000) throw std::runtime_error("fuzz mode - won't grow that much");
+-#endif
+-  const size_t max_size = std::allocator_traits<Allocator>::max_size(alloc_);
+-  size_t old_capacity = this->capacity();
+-  size_t new_capacity = old_capacity + old_capacity / 2;
+-  if (size > new_capacity)
+-    new_capacity = size;
+-  else if (new_capacity > max_size)
+-    new_capacity = size > max_size ? size : max_size;
+-  T* old_data = this->data();
+-  T* new_data =
+-      std::allocator_traits<Allocator>::allocate(alloc_, new_capacity);
+-  // The following code doesn't throw, so the raw pointer above doesn't leak.
+-  std::uninitialized_copy(old_data, old_data + this->size(),
+-                          detail::make_checked(new_data, new_capacity));
+-  this->set(new_data, new_capacity);
+-  // deallocate must not throw according to the standard, but even if it does,
+-  // the buffer already uses the new storage and will deallocate it in
+-  // destructor.
+-  if (old_data != store_) alloc_.deallocate(old_data, old_capacity);
+-}
+-
+-using memory_buffer = basic_memory_buffer<char>;
+-
+-template <typename T, size_t SIZE, typename Allocator>
+-struct is_contiguous<basic_memory_buffer<T, SIZE, Allocator>> : std::true_type {
+-};
+-
+-namespace detail {
+-FMT_API void print(std::FILE*, string_view);
+-}
+-
+-/** A formatting error such as invalid format string. */
+-FMT_CLASS_API
+-class FMT_API format_error : public std::runtime_error {
+- public:
+-  explicit format_error(const char* message) : std::runtime_error(message) {}
+-  explicit format_error(const std::string& message)
+-      : std::runtime_error(message) {}
+-  format_error(const format_error&) = default;
+-  format_error& operator=(const format_error&) = default;
+-  format_error(format_error&&) = default;
+-  format_error& operator=(format_error&&) = default;
+-  ~format_error() FMT_NOEXCEPT override FMT_MSC_DEFAULT;
+-};
+-
+-/**
+-  \rst
+-  Constructs a `~fmt::format_arg_store` object that contains references
+-  to arguments and can be implicitly converted to `~fmt::format_args`.
+-  If ``fmt`` is a compile-time string then `make_args_checked` checks
+-  its validity at compile time.
+-  \endrst
+- */
+-template <typename... Args, typename S, typename Char = char_t<S>>
+-FMT_INLINE auto make_args_checked(const S& fmt,
+-                                  const remove_reference_t<Args>&... args)
+-    -> format_arg_store<buffer_context<Char>, remove_reference_t<Args>...> {
+-  static_assert(
+-      detail::count<(
+-              std::is_base_of<detail::view, remove_reference_t<Args>>::value &&
+-              std::is_reference<Args>::value)...>() == 0,
+-      "passing views as lvalues is disallowed");
+-  detail::check_format_string<Args...>(fmt);
+-  return {args...};
+-}
+-
+-// compile-time support
+-namespace detail_exported {
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <typename Char, size_t N> struct fixed_string {
+-  constexpr fixed_string(const Char (&str)[N]) {
+-    detail::copy_str<Char, const Char*, Char*>(static_cast<const Char*>(str),
+-                                               str + N, data);
+-  }
+-  Char data[N]{};
+-};
+-#endif
+-
+-// Converts a compile-time string to basic_string_view.
+-template <typename Char, size_t N>
+-constexpr auto compile_string_to_view(const Char (&s)[N])
+-    -> basic_string_view<Char> {
+-  // Remove trailing NUL character if needed. Won't be present if this is used
+-  // with a raw character array (i.e. not defined as a string).
+-  return {s, N - (std::char_traits<Char>::to_int_type(s[N - 1]) == 0 ? 1 : 0)};
+-}
+-template <typename Char>
+-constexpr auto compile_string_to_view(detail::std_string_view<Char> s)
+-    -> basic_string_view<Char> {
+-  return {s.data(), s.size()};
+-}
+-}  // namespace detail_exported
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename T> struct is_integral : std::is_integral<T> {};
+-template <> struct is_integral<int128_t> : std::true_type {};
+-template <> struct is_integral<uint128_t> : std::true_type {};
+-
+-template <typename T>
+-using is_signed =
+-    std::integral_constant<bool, std::numeric_limits<T>::is_signed ||
+-                                     std::is_same<T, int128_t>::value>;
+-
+-// Returns true if value is negative, false otherwise.
+-// Same as `value < 0` but doesn't produce warnings if T is an unsigned type.
+-template <typename T, FMT_ENABLE_IF(is_signed<T>::value)>
+-FMT_CONSTEXPR auto is_negative(T value) -> bool {
+-  return value < 0;
+-}
+-template <typename T, FMT_ENABLE_IF(!is_signed<T>::value)>
+-FMT_CONSTEXPR auto is_negative(T) -> bool {
+-  return false;
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_CONSTEXPR auto is_supported_floating_point(T) -> uint16_t {
+-  return (std::is_same<T, float>::value && FMT_USE_FLOAT) ||
+-         (std::is_same<T, double>::value && FMT_USE_DOUBLE) ||
+-         (std::is_same<T, long double>::value && FMT_USE_LONG_DOUBLE);
+-}
+-
+-// Smallest of uint32_t, uint64_t, uint128_t that is large enough to
+-// represent all values of an integral type T.
+-template <typename T>
+-using uint32_or_64_or_128_t =
+-    conditional_t<num_bits<T>() <= 32 && !FMT_REDUCE_INT_INSTANTIATIONS,
+-                  uint32_t,
+-                  conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>>;
+-template <typename T>
+-using uint64_or_128_t = conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>;
+-
+-#define FMT_POWERS_OF_10(factor)                                             \
+-  factor * 10, (factor)*100, (factor)*1000, (factor)*10000, (factor)*100000, \
+-      (factor)*1000000, (factor)*10000000, (factor)*100000000,               \
+-      (factor)*1000000000
+-
+-// Converts value in the range [0, 100) to a string.
+-constexpr const char* digits2(size_t value) {
+-  // GCC generates slightly better code when value is pointer-size.
+-  return &"0001020304050607080910111213141516171819"
+-         "2021222324252627282930313233343536373839"
+-         "4041424344454647484950515253545556575859"
+-         "6061626364656667686970717273747576777879"
+-         "8081828384858687888990919293949596979899"[value * 2];
+-}
+-
+-// Sign is a template parameter to workaround a bug in gcc 4.8.
+-template <typename Char, typename Sign> constexpr Char sign(Sign s) {
+-#if !FMT_GCC_VERSION || FMT_GCC_VERSION >= 604
+-  static_assert(std::is_same<Sign, sign_t>::value, "");
+-#endif
+-  return static_cast<Char>("\0-+ "[s]);
+-}
+-
+-template <typename T> FMT_CONSTEXPR auto count_digits_fallback(T n) -> int {
+-  int count = 1;
+-  for (;;) {
+-    // Integer division is slow so do it for a group of four digits instead
+-    // of for every digit. The idea comes from the talk by Alexandrescu
+-    // "Three Optimization Tips for C++". See speed-test for a comparison.
+-    if (n < 10) return count;
+-    if (n < 100) return count + 1;
+-    if (n < 1000) return count + 2;
+-    if (n < 10000) return count + 3;
+-    n /= 10000u;
+-    count += 4;
+-  }
+-}
+-#if FMT_USE_INT128
+-FMT_CONSTEXPR inline auto count_digits(uint128_t n) -> int {
+-  return count_digits_fallback(n);
+-}
+-#endif
+-
+-#ifdef FMT_BUILTIN_CLZLL
+-// It is a separate function rather than a part of count_digits to workaround
+-// the lack of static constexpr in constexpr functions.
+-inline auto do_count_digits(uint64_t n) -> int {
+-  // This has comparable performance to the version by Kendall Willets
+-  // (https://github.com/fmtlib/format-benchmark/blob/master/digits10)
+-  // but uses smaller tables.
+-  // Maps bsr(n) to ceil(log10(pow(2, bsr(n) + 1) - 1)).
+-  static constexpr uint8_t bsr2log10[] = {
+-      1,  1,  1,  2,  2,  2,  3,  3,  3,  4,  4,  4,  4,  5,  5,  5,
+-      6,  6,  6,  7,  7,  7,  7,  8,  8,  8,  9,  9,  9,  10, 10, 10,
+-      10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 15, 15,
+-      15, 16, 16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 19, 20};
+-  auto t = bsr2log10[FMT_BUILTIN_CLZLL(n | 1) ^ 63];
+-  static constexpr const uint64_t zero_or_powers_of_10[] = {
+-      0, 0, FMT_POWERS_OF_10(1U), FMT_POWERS_OF_10(1000000000ULL),
+-      10000000000000000000ULL};
+-  return t - (n < zero_or_powers_of_10[t]);
+-}
+-#endif
+-
+-// Returns the number of decimal digits in n. Leading zeros are not counted
+-// except for n == 0 in which case count_digits returns 1.
+-FMT_CONSTEXPR20 inline auto count_digits(uint64_t n) -> int {
+-#ifdef FMT_BUILTIN_CLZLL
+-  if (!is_constant_evaluated()) {
+-    return do_count_digits(n);
+-  }
+-#endif
+-  return count_digits_fallback(n);
+-}
+-
+-// Counts the number of digits in n. BITS = log2(radix).
+-template <int BITS, typename UInt>
+-FMT_CONSTEXPR auto count_digits(UInt n) -> int {
+-#ifdef FMT_BUILTIN_CLZ
+-  if (num_bits<UInt>() == 32)
+-    return (FMT_BUILTIN_CLZ(static_cast<uint32_t>(n) | 1) ^ 31) / BITS + 1;
+-#endif
+-  // Lambda avoids unreachable code warnings from NVHPC.
+-  return [](UInt m) {
+-    int num_digits = 0;
+-    do {
+-      ++num_digits;
+-    } while ((m >>= BITS) != 0);
+-    return num_digits;
+-  }(n);
+-}
+-
+-template <> auto count_digits<4>(detail::fallback_uintptr n) -> int;
+-
+-#ifdef FMT_BUILTIN_CLZ
+-// It is a separate function rather than a part of count_digits to workaround
+-// the lack of static constexpr in constexpr functions.
+-FMT_INLINE auto do_count_digits(uint32_t n) -> int {
+-// An optimization by Kendall Willets from https://bit.ly/3uOIQrB.
+-// This increments the upper 32 bits (log10(T) - 1) when >= T is added.
+-#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
+-  static constexpr uint64_t table[] = {
+-      FMT_INC(0),          FMT_INC(0),          FMT_INC(0),           // 8
+-      FMT_INC(10),         FMT_INC(10),         FMT_INC(10),          // 64
+-      FMT_INC(100),        FMT_INC(100),        FMT_INC(100),         // 512
+-      FMT_INC(1000),       FMT_INC(1000),       FMT_INC(1000),        // 4096
+-      FMT_INC(10000),      FMT_INC(10000),      FMT_INC(10000),       // 32k
+-      FMT_INC(100000),     FMT_INC(100000),     FMT_INC(100000),      // 256k
+-      FMT_INC(1000000),    FMT_INC(1000000),    FMT_INC(1000000),     // 2048k
+-      FMT_INC(10000000),   FMT_INC(10000000),   FMT_INC(10000000),    // 16M
+-      FMT_INC(100000000),  FMT_INC(100000000),  FMT_INC(100000000),   // 128M
+-      FMT_INC(1000000000), FMT_INC(1000000000), FMT_INC(1000000000),  // 1024M
+-      FMT_INC(1000000000), FMT_INC(1000000000)                        // 4B
+-  };
+-  auto inc = table[FMT_BUILTIN_CLZ(n | 1) ^ 31];
+-  return static_cast<int>((n + inc) >> 32);
+-}
+-#endif
+-
+-// Optional version of count_digits for better performance on 32-bit platforms.
+-FMT_CONSTEXPR20 inline auto count_digits(uint32_t n) -> int {
+-#ifdef FMT_BUILTIN_CLZ
+-  if (!is_constant_evaluated()) {
+-    return do_count_digits(n);
+-  }
+-#endif
+-  return count_digits_fallback(n);
+-}
+-
+-template <typename Int> constexpr auto digits10() FMT_NOEXCEPT -> int {
+-  return std::numeric_limits<Int>::digits10;
+-}
+-template <> constexpr auto digits10<int128_t>() FMT_NOEXCEPT -> int {
+-  return 38;
+-}
+-template <> constexpr auto digits10<uint128_t>() FMT_NOEXCEPT -> int {
+-  return 38;
+-}
+-
+-template <typename Char> struct thousands_sep_result {
+-  std::string grouping;
+-  Char thousands_sep;
+-};
+-
+-template <typename Char>
+-FMT_API auto thousands_sep_impl(locale_ref loc) -> thousands_sep_result<Char>;
+-template <typename Char>
+-inline auto thousands_sep(locale_ref loc) -> thousands_sep_result<Char> {
+-  auto result = thousands_sep_impl<char>(loc);
+-  return {result.grouping, Char(result.thousands_sep)};
+-}
+-template <>
+-inline auto thousands_sep(locale_ref loc) -> thousands_sep_result<wchar_t> {
+-  return thousands_sep_impl<wchar_t>(loc);
+-}
+-
+-template <typename Char>
+-FMT_API auto decimal_point_impl(locale_ref loc) -> Char;
+-template <typename Char> inline auto decimal_point(locale_ref loc) -> Char {
+-  return Char(decimal_point_impl<char>(loc));
+-}
+-template <> inline auto decimal_point(locale_ref loc) -> wchar_t {
+-  return decimal_point_impl<wchar_t>(loc);
+-}
+-
+-// Compares two characters for equality.
+-template <typename Char> auto equal2(const Char* lhs, const char* rhs) -> bool {
+-  return lhs[0] == Char(rhs[0]) && lhs[1] == Char(rhs[1]);
+-}
+-inline auto equal2(const char* lhs, const char* rhs) -> bool {
+-  return memcmp(lhs, rhs, 2) == 0;
+-}
+-
+-// Copies two characters from src to dst.
+-template <typename Char>
+-FMT_CONSTEXPR20 FMT_INLINE void copy2(Char* dst, const char* src) {
+-  if (!is_constant_evaluated() && sizeof(Char) == sizeof(char)) {
+-    memcpy(dst, src, 2);
+-    return;
+-  }
+-  *dst++ = static_cast<Char>(*src++);
+-  *dst = static_cast<Char>(*src);
+-}
+-
+-template <typename Iterator> struct format_decimal_result {
+-  Iterator begin;
+-  Iterator end;
+-};
+-
+-// Formats a decimal unsigned integer value writing into out pointing to a
+-// buffer of specified size. The caller must ensure that the buffer is large
+-// enough.
+-template <typename Char, typename UInt>
+-FMT_CONSTEXPR20 auto format_decimal(Char* out, UInt value, int size)
+-    -> format_decimal_result<Char*> {
+-  FMT_ASSERT(size >= count_digits(value), "invalid digit count");
+-  out += size;
+-  Char* end = out;
+-  while (value >= 100) {
+-    // Integer division is slow so do it for a group of two digits instead
+-    // of for every digit. The idea comes from the talk by Alexandrescu
+-    // "Three Optimization Tips for C++". See speed-test for a comparison.
+-    out -= 2;
+-    copy2(out, digits2(static_cast<size_t>(value % 100)));
+-    value /= 100;
+-  }
+-  if (value < 10) {
+-    *--out = static_cast<Char>('0' + value);
+-    return {out, end};
+-  }
+-  out -= 2;
+-  copy2(out, digits2(static_cast<size_t>(value)));
+-  return {out, end};
+-}
+-
+-template <typename Char, typename UInt, typename Iterator,
+-          FMT_ENABLE_IF(!std::is_pointer<remove_cvref_t<Iterator>>::value)>
+-inline auto format_decimal(Iterator out, UInt value, int size)
+-    -> format_decimal_result<Iterator> {
+-  // Buffer is large enough to hold all digits (digits10 + 1).
+-  Char buffer[digits10<UInt>() + 1];
+-  auto end = format_decimal(buffer, value, size).end;
+-  return {out, detail::copy_str_noinline<Char>(buffer, end, out)};
+-}
+-
+-template <unsigned BASE_BITS, typename Char, typename UInt>
+-FMT_CONSTEXPR auto format_uint(Char* buffer, UInt value, int num_digits,
+-                               bool upper = false) -> Char* {
+-  buffer += num_digits;
+-  Char* end = buffer;
+-  do {
+-    const char* digits = upper ? "0123456789ABCDEF" : "0123456789abcdef";
+-    unsigned digit = (value & ((1 << BASE_BITS) - 1));
+-    *--buffer = static_cast<Char>(BASE_BITS < 4 ? static_cast<char>('0' + digit)
+-                                                : digits[digit]);
+-  } while ((value >>= BASE_BITS) != 0);
+-  return end;
+-}
+-
+-template <unsigned BASE_BITS, typename Char>
+-auto format_uint(Char* buffer, detail::fallback_uintptr n, int num_digits,
+-                 bool = false) -> Char* {
+-  auto char_digits = std::numeric_limits<unsigned char>::digits / 4;
+-  int start = (num_digits + char_digits - 1) / char_digits - 1;
+-  if (int start_digits = num_digits % char_digits) {
+-    unsigned value = n.value[start--];
+-    buffer = format_uint<BASE_BITS>(buffer, value, start_digits);
+-  }
+-  for (; start >= 0; --start) {
+-    unsigned value = n.value[start];
+-    buffer += char_digits;
+-    auto p = buffer;
+-    for (int i = 0; i < char_digits; ++i) {
+-      unsigned digit = (value & ((1 << BASE_BITS) - 1));
+-      *--p = static_cast<Char>("0123456789abcdef"[digit]);
+-      value >>= BASE_BITS;
+-    }
+-  }
+-  return buffer;
+-}
+-
+-template <unsigned BASE_BITS, typename Char, typename It, typename UInt>
+-inline auto format_uint(It out, UInt value, int num_digits, bool upper = false)
+-    -> It {
+-  if (auto ptr = to_pointer<Char>(out, to_unsigned(num_digits))) {
+-    format_uint<BASE_BITS>(ptr, value, num_digits, upper);
+-    return out;
+-  }
+-  // Buffer should be large enough to hold all digits (digits / BASE_BITS + 1).
+-  char buffer[num_bits<UInt>() / BASE_BITS + 1];
+-  format_uint<BASE_BITS>(buffer, value, num_digits, upper);
+-  return detail::copy_str_noinline<Char>(buffer, buffer + num_digits, out);
+-}
+-
+-// A converter from UTF-8 to UTF-16.
+-class utf8_to_utf16 {
+- private:
+-  basic_memory_buffer<wchar_t> buffer_;
+-
+- public:
+-  FMT_API explicit utf8_to_utf16(string_view s);
+-  operator basic_string_view<wchar_t>() const { return {&buffer_[0], size()}; }
+-  auto size() const -> size_t { return buffer_.size() - 1; }
+-  auto c_str() const -> const wchar_t* { return &buffer_[0]; }
+-  auto str() const -> std::wstring { return {&buffer_[0], size()}; }
+-};
+-
+-namespace dragonbox {
+-
+-// Type-specific information that Dragonbox uses.
+-template <class T> struct float_info;
+-
+-template <> struct float_info<float> {
+-  using carrier_uint = uint32_t;
+-  static const int significand_bits = 23;
+-  static const int exponent_bits = 8;
+-  static const int min_exponent = -126;
+-  static const int max_exponent = 127;
+-  static const int exponent_bias = -127;
+-  static const int decimal_digits = 9;
+-  static const int kappa = 1;
+-  static const int big_divisor = 100;
+-  static const int small_divisor = 10;
+-  static const int min_k = -31;
+-  static const int max_k = 46;
+-  static const int cache_bits = 64;
+-  static const int divisibility_check_by_5_threshold = 39;
+-  static const int case_fc_pm_half_lower_threshold = -1;
+-  static const int case_fc_pm_half_upper_threshold = 6;
+-  static const int case_fc_lower_threshold = -2;
+-  static const int case_fc_upper_threshold = 6;
+-  static const int case_shorter_interval_left_endpoint_lower_threshold = 2;
+-  static const int case_shorter_interval_left_endpoint_upper_threshold = 3;
+-  static const int shorter_interval_tie_lower_threshold = -35;
+-  static const int shorter_interval_tie_upper_threshold = -35;
+-  static const int max_trailing_zeros = 7;
+-};
+-
+-template <> struct float_info<double> {
+-  using carrier_uint = uint64_t;
+-  static const int significand_bits = 52;
+-  static const int exponent_bits = 11;
+-  static const int min_exponent = -1022;
+-  static const int max_exponent = 1023;
+-  static const int exponent_bias = -1023;
+-  static const int decimal_digits = 17;
+-  static const int kappa = 2;
+-  static const int big_divisor = 1000;
+-  static const int small_divisor = 100;
+-  static const int min_k = -292;
+-  static const int max_k = 326;
+-  static const int cache_bits = 128;
+-  static const int divisibility_check_by_5_threshold = 86;
+-  static const int case_fc_pm_half_lower_threshold = -2;
+-  static const int case_fc_pm_half_upper_threshold = 9;
+-  static const int case_fc_lower_threshold = -4;
+-  static const int case_fc_upper_threshold = 9;
+-  static const int case_shorter_interval_left_endpoint_lower_threshold = 2;
+-  static const int case_shorter_interval_left_endpoint_upper_threshold = 3;
+-  static const int shorter_interval_tie_lower_threshold = -77;
+-  static const int shorter_interval_tie_upper_threshold = -77;
+-  static const int max_trailing_zeros = 16;
+-};
+-
+-template <typename T> struct decimal_fp {
+-  using significand_type = typename float_info<T>::carrier_uint;
+-  significand_type significand;
+-  int exponent;
+-};
+-
+-template <typename T>
+-FMT_API auto to_decimal(T x) FMT_NOEXCEPT -> decimal_fp<T>;
+-}  // namespace dragonbox
+-
+-template <typename T>
+-constexpr auto exponent_mask() ->
+-    typename dragonbox::float_info<T>::carrier_uint {
+-  using uint = typename dragonbox::float_info<T>::carrier_uint;
+-  return ((uint(1) << dragonbox::float_info<T>::exponent_bits) - 1)
+-         << dragonbox::float_info<T>::significand_bits;
+-}
+-
+-// Writes the exponent exp in the form "[+-]d{2,3}" to buffer.
+-template <typename Char, typename It>
+-FMT_CONSTEXPR auto write_exponent(int exp, It it) -> It {
+-  FMT_ASSERT(-10000 < exp && exp < 10000, "exponent out of range");
+-  if (exp < 0) {
+-    *it++ = static_cast<Char>('-');
+-    exp = -exp;
+-  } else {
+-    *it++ = static_cast<Char>('+');
+-  }
+-  if (exp >= 100) {
+-    const char* top = digits2(to_unsigned(exp / 100));
+-    if (exp >= 1000) *it++ = static_cast<Char>(top[0]);
+-    *it++ = static_cast<Char>(top[1]);
+-    exp %= 100;
+-  }
+-  const char* d = digits2(to_unsigned(exp));
+-  *it++ = static_cast<Char>(d[0]);
+-  *it++ = static_cast<Char>(d[1]);
+-  return it;
+-}
+-
+-template <typename T>
+-FMT_HEADER_ONLY_CONSTEXPR20 auto format_float(T value, int precision,
+-                                              float_specs specs,
+-                                              buffer<char>& buf) -> int;
+-
+-// Formats a floating-point number with snprintf.
+-template <typename T>
+-auto snprintf_float(T value, int precision, float_specs specs,
+-                    buffer<char>& buf) -> int;
+-
+-template <typename T> constexpr auto promote_float(T value) -> T {
+-  return value;
+-}
+-constexpr auto promote_float(float value) -> double {
+-  return static_cast<double>(value);
+-}
+-
+-template <typename OutputIt, typename Char>
+-FMT_NOINLINE FMT_CONSTEXPR auto fill(OutputIt it, size_t n,
+-                                     const fill_t<Char>& fill) -> OutputIt {
+-  auto fill_size = fill.size();
+-  if (fill_size == 1) return detail::fill_n(it, n, fill[0]);
+-  auto data = fill.data();
+-  for (size_t i = 0; i < n; ++i)
+-    it = copy_str<Char>(data, data + fill_size, it);
+-  return it;
+-}
+-
+-// Writes the output of f, padded according to format specifications in specs.
+-// size: output size in code units.
+-// width: output display width in (terminal) column positions.
+-template <align::type align = align::left, typename OutputIt, typename Char,
+-          typename F>
+-FMT_CONSTEXPR auto write_padded(OutputIt out,
+-                                const basic_format_specs<Char>& specs,
+-                                size_t size, size_t width, F&& f) -> OutputIt {
+-  static_assert(align == align::left || align == align::right, "");
+-  unsigned spec_width = to_unsigned(specs.width);
+-  size_t padding = spec_width > width ? spec_width - width : 0;
+-  // Shifts are encoded as string literals because static constexpr is not
+-  // supported in constexpr functions.
+-  auto* shifts = align == align::left ? "\x1f\x1f\x00\x01" : "\x00\x1f\x00\x01";
+-  size_t left_padding = padding >> shifts[specs.align];
+-  size_t right_padding = padding - left_padding;
+-  auto it = reserve(out, size + padding * specs.fill.size());
+-  if (left_padding != 0) it = fill(it, left_padding, specs.fill);
+-  it = f(it);
+-  if (right_padding != 0) it = fill(it, right_padding, specs.fill);
+-  return base_iterator(out, it);
+-}
+-
+-template <align::type align = align::left, typename OutputIt, typename Char,
+-          typename F>
+-constexpr auto write_padded(OutputIt out, const basic_format_specs<Char>& specs,
+-                            size_t size, F&& f) -> OutputIt {
+-  return write_padded<align>(out, specs, size, size, f);
+-}
+-
+-template <align::type align = align::left, typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write_bytes(OutputIt out, string_view bytes,
+-                               const basic_format_specs<Char>& specs)
+-    -> OutputIt {
+-  return write_padded<align>(
+-      out, specs, bytes.size(), [bytes](reserve_iterator<OutputIt> it) {
+-        const char* data = bytes.data();
+-        return copy_str<Char>(data, data + bytes.size(), it);
+-      });
+-}
+-
+-template <typename Char, typename OutputIt, typename UIntPtr>
+-auto write_ptr(OutputIt out, UIntPtr value,
+-               const basic_format_specs<Char>* specs) -> OutputIt {
+-  int num_digits = count_digits<4>(value);
+-  auto size = to_unsigned(num_digits) + size_t(2);
+-  auto write = [=](reserve_iterator<OutputIt> it) {
+-    *it++ = static_cast<Char>('0');
+-    *it++ = static_cast<Char>('x');
+-    return format_uint<4, Char>(it, value, num_digits);
+-  };
+-  return specs ? write_padded<align::right>(out, *specs, size, write)
+-               : base_iterator(out, write(reserve(out, size)));
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write_char(OutputIt out, Char value,
+-                              const basic_format_specs<Char>& specs)
+-    -> OutputIt {
+-  return write_padded(out, specs, 1, [=](reserve_iterator<OutputIt> it) {
+-    *it++ = value;
+-    return it;
+-  });
+-}
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, Char value,
+-                         const basic_format_specs<Char>& specs,
+-                         locale_ref loc = {}) -> OutputIt {
+-  return check_char_specs(specs)
+-             ? write_char(out, value, specs)
+-             : write(out, static_cast<int>(value), specs, loc);
+-}
+-
+-// Data for write_int that doesn't depend on output iterator type. It is used to
+-// avoid template code bloat.
+-template <typename Char> struct write_int_data {
+-  size_t size;
+-  size_t padding;
+-
+-  FMT_CONSTEXPR write_int_data(int num_digits, unsigned prefix,
+-                               const basic_format_specs<Char>& specs)
+-      : size((prefix >> 24) + to_unsigned(num_digits)), padding(0) {
+-    if (specs.align == align::numeric) {
+-      auto width = to_unsigned(specs.width);
+-      if (width > size) {
+-        padding = width - size;
+-        size = width;
+-      }
+-    } else if (specs.precision > num_digits) {
+-      size = (prefix >> 24) + to_unsigned(specs.precision);
+-      padding = to_unsigned(specs.precision - num_digits);
+-    }
+-  }
+-};
+-
+-// Writes an integer in the format
+-//   <left-padding><prefix><numeric-padding><digits><right-padding>
+-// where <digits> are written by write_digits(it).
+-// prefix contains chars in three lower bytes and the size in the fourth byte.
+-template <typename OutputIt, typename Char, typename W>
+-FMT_CONSTEXPR FMT_INLINE auto write_int(OutputIt out, int num_digits,
+-                                        unsigned prefix,
+-                                        const basic_format_specs<Char>& specs,
+-                                        W write_digits) -> OutputIt {
+-  // Slightly faster check for specs.width == 0 && specs.precision == -1.
+-  if ((specs.width | (specs.precision + 1)) == 0) {
+-    auto it = reserve(out, to_unsigned(num_digits) + (prefix >> 24));
+-    if (prefix != 0) {
+-      for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8)
+-        *it++ = static_cast<Char>(p & 0xff);
+-    }
+-    return base_iterator(out, write_digits(it));
+-  }
+-  auto data = write_int_data<Char>(num_digits, prefix, specs);
+-  return write_padded<align::right>(
+-      out, specs, data.size, [=](reserve_iterator<OutputIt> it) {
+-        for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8)
+-          *it++ = static_cast<Char>(p & 0xff);
+-        it = detail::fill_n(it, data.padding, static_cast<Char>('0'));
+-        return write_digits(it);
+-      });
+-}
+-
+-template <typename Char> class digit_grouping {
+- private:
+-  thousands_sep_result<Char> sep_;
+-
+-  struct next_state {
+-    std::string::const_iterator group;
+-    int pos;
+-  };
+-  next_state initial_state() const { return {sep_.grouping.begin(), 0}; }
+-
+-  // Returns the next digit group separator position.
+-  int next(next_state& state) const {
+-    if (!sep_.thousands_sep) return max_value<int>();
+-    if (state.group == sep_.grouping.end())
+-      return state.pos += sep_.grouping.back();
+-    if (*state.group <= 0 || *state.group == max_value<char>())
+-      return max_value<int>();
+-    state.pos += *state.group++;
+-    return state.pos;
+-  }
+-
+- public:
+-  explicit digit_grouping(locale_ref loc, bool localized = true) {
+-    if (localized)
+-      sep_ = thousands_sep<Char>(loc);
+-    else
+-      sep_.thousands_sep = Char();
+-  }
+-  explicit digit_grouping(thousands_sep_result<Char> sep) : sep_(sep) {}
+-
+-  Char separator() const { return sep_.thousands_sep; }
+-
+-  int count_separators(int num_digits) const {
+-    int count = 0;
+-    auto state = initial_state();
+-    while (num_digits > next(state)) ++count;
+-    return count;
+-  }
+-
+-  // Applies grouping to digits and write the output to out.
+-  template <typename Out, typename C>
+-  Out apply(Out out, basic_string_view<C> digits) const {
+-    auto num_digits = static_cast<int>(digits.size());
+-    auto separators = basic_memory_buffer<int>();
+-    separators.push_back(0);
+-    auto state = initial_state();
+-    while (int i = next(state)) {
+-      if (i >= num_digits) break;
+-      separators.push_back(i);
+-    }
+-    for (int i = 0, sep_index = static_cast<int>(separators.size() - 1);
+-         i < num_digits; ++i) {
+-      if (num_digits - i == separators[sep_index]) {
+-        *out++ = separator();
+-        --sep_index;
+-      }
+-      *out++ = static_cast<Char>(digits[to_unsigned(i)]);
+-    }
+-    return out;
+-  }
+-};
+-
+-template <typename OutputIt, typename UInt, typename Char>
+-auto write_int_localized(OutputIt out, UInt value, unsigned prefix,
+-                         const basic_format_specs<Char>& specs,
+-                         const digit_grouping<Char>& grouping) -> OutputIt {
+-  static_assert(std::is_same<uint64_or_128_t<UInt>, UInt>::value, "");
+-  int num_digits = count_digits(value);
+-  char digits[40];
+-  format_decimal(digits, value, num_digits);
+-  unsigned size = to_unsigned((prefix != 0 ? 1 : 0) + num_digits +
+-                              grouping.count_separators(num_digits));
+-  return write_padded<align::right>(
+-      out, specs, size, size, [&](reserve_iterator<OutputIt> it) {
+-        if (prefix != 0) *it++ = static_cast<Char>(prefix);
+-        return grouping.apply(it, string_view(digits, to_unsigned(num_digits)));
+-      });
+-}
+-
+-template <typename OutputIt, typename UInt, typename Char>
+-auto write_int_localized(OutputIt& out, UInt value, unsigned prefix,
+-                         const basic_format_specs<Char>& specs, locale_ref loc)
+-    -> bool {
+-  auto grouping = digit_grouping<Char>(loc);
+-  out = write_int_localized(out, value, prefix, specs, grouping);
+-  return true;
+-}
+-
+-FMT_CONSTEXPR inline void prefix_append(unsigned& prefix, unsigned value) {
+-  prefix |= prefix != 0 ? value << 8 : value;
+-  prefix += (1u + (value > 0xff ? 1 : 0)) << 24;
+-}
+-
+-template <typename UInt> struct write_int_arg {
+-  UInt abs_value;
+-  unsigned prefix;
+-};
+-
+-template <typename T>
+-FMT_CONSTEXPR auto make_write_int_arg(T value, sign_t sign)
+-    -> write_int_arg<uint32_or_64_or_128_t<T>> {
+-  auto prefix = 0u;
+-  auto abs_value = static_cast<uint32_or_64_or_128_t<T>>(value);
+-  if (is_negative(value)) {
+-    prefix = 0x01000000 | '-';
+-    abs_value = 0 - abs_value;
+-  } else {
+-    constexpr const unsigned prefixes[4] = {0, 0, 0x1000000u | '+',
+-                                            0x1000000u | ' '};
+-    prefix = prefixes[sign];
+-  }
+-  return {abs_value, prefix};
+-}
+-
+-template <typename Char, typename OutputIt, typename T>
+-FMT_CONSTEXPR FMT_INLINE auto write_int(OutputIt out, write_int_arg<T> arg,
+-                                        const basic_format_specs<Char>& specs,
+-                                        locale_ref loc) -> OutputIt {
+-  static_assert(std::is_same<T, uint32_or_64_or_128_t<T>>::value, "");
+-  auto abs_value = arg.abs_value;
+-  auto prefix = arg.prefix;
+-  switch (specs.type) {
+-  case presentation_type::none:
+-  case presentation_type::dec: {
+-    if (specs.localized &&
+-        write_int_localized(out, static_cast<uint64_or_128_t<T>>(abs_value),
+-                            prefix, specs, loc)) {
+-      return out;
+-    }
+-    auto num_digits = count_digits(abs_value);
+-    return write_int(
+-        out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) {
+-          return format_decimal<Char>(it, abs_value, num_digits).end;
+-        });
+-  }
+-  case presentation_type::hex_lower:
+-  case presentation_type::hex_upper: {
+-    bool upper = specs.type == presentation_type::hex_upper;
+-    if (specs.alt)
+-      prefix_append(prefix, unsigned(upper ? 'X' : 'x') << 8 | '0');
+-    int num_digits = count_digits<4>(abs_value);
+-    return write_int(
+-        out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) {
+-          return format_uint<4, Char>(it, abs_value, num_digits, upper);
+-        });
+-  }
+-  case presentation_type::bin_lower:
+-  case presentation_type::bin_upper: {
+-    bool upper = specs.type == presentation_type::bin_upper;
+-    if (specs.alt)
+-      prefix_append(prefix, unsigned(upper ? 'B' : 'b') << 8 | '0');
+-    int num_digits = count_digits<1>(abs_value);
+-    return write_int(out, num_digits, prefix, specs,
+-                     [=](reserve_iterator<OutputIt> it) {
+-                       return format_uint<1, Char>(it, abs_value, num_digits);
+-                     });
+-  }
+-  case presentation_type::oct: {
+-    int num_digits = count_digits<3>(abs_value);
+-    // Octal prefix '0' is counted as a digit, so only add it if precision
+-    // is not greater than the number of digits.
+-    if (specs.alt && specs.precision <= num_digits && abs_value != 0)
+-      prefix_append(prefix, '0');
+-    return write_int(out, num_digits, prefix, specs,
+-                     [=](reserve_iterator<OutputIt> it) {
+-                       return format_uint<3, Char>(it, abs_value, num_digits);
+-                     });
+-  }
+-  case presentation_type::chr:
+-    return write_char(out, static_cast<Char>(abs_value), specs);
+-  default:
+-    throw_format_error("invalid type specifier");
+-  }
+-  return out;
+-}
+-template <typename Char, typename OutputIt, typename T>
+-FMT_CONSTEXPR FMT_NOINLINE auto write_int_noinline(
+-    OutputIt out, write_int_arg<T> arg, const basic_format_specs<Char>& specs,
+-    locale_ref loc) -> OutputIt {
+-  return write_int(out, arg, specs, loc);
+-}
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_integral<T>::value &&
+-                        !std::is_same<T, bool>::value &&
+-                        std::is_same<OutputIt, buffer_appender<Char>>::value)>
+-FMT_CONSTEXPR FMT_INLINE auto write(OutputIt out, T value,
+-                                    const basic_format_specs<Char>& specs,
+-                                    locale_ref loc) -> OutputIt {
+-  return write_int_noinline(out, make_write_int_arg(value, specs.sign), specs,
+-                            loc);
+-}
+-// An inlined version of write used in format string compilation.
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_integral<T>::value &&
+-                        !std::is_same<T, bool>::value &&
+-                        !std::is_same<OutputIt, buffer_appender<Char>>::value)>
+-FMT_CONSTEXPR FMT_INLINE auto write(OutputIt out, T value,
+-                                    const basic_format_specs<Char>& specs,
+-                                    locale_ref loc) -> OutputIt {
+-  return write_int(out, make_write_int_arg(value, specs.sign), specs, loc);
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s,
+-                         const basic_format_specs<Char>& specs) -> OutputIt {
+-  auto data = s.data();
+-  auto size = s.size();
+-  if (specs.precision >= 0 && to_unsigned(specs.precision) < size)
+-    size = code_point_index(s, to_unsigned(specs.precision));
+-  auto width =
+-      specs.width != 0 ? compute_width(basic_string_view<Char>(data, size)) : 0;
+-  return write_padded(out, specs, size, width,
+-                      [=](reserve_iterator<OutputIt> it) {
+-                        return copy_str<Char>(data, data + size, it);
+-                      });
+-}
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out,
+-                         basic_string_view<type_identity_t<Char>> s,
+-                         const basic_format_specs<Char>& specs, locale_ref)
+-    -> OutputIt {
+-  check_string_type_spec(specs.type);
+-  return write(out, s, specs);
+-}
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, const Char* s,
+-                         const basic_format_specs<Char>& specs, locale_ref)
+-    -> OutputIt {
+-  return check_cstring_type_spec(specs.type)
+-             ? write(out, basic_string_view<Char>(s), specs, {})
+-             : write_ptr<Char>(out, to_uintptr(s), &specs);
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR20 auto write_nonfinite(OutputIt out, bool isinf,
+-                                     basic_format_specs<Char> specs,
+-                                     const float_specs& fspecs) -> OutputIt {
+-  auto str =
+-      isinf ? (fspecs.upper ? "INF" : "inf") : (fspecs.upper ? "NAN" : "nan");
+-  constexpr size_t str_size = 3;
+-  auto sign = fspecs.sign;
+-  auto size = str_size + (sign ? 1 : 0);
+-  // Replace '0'-padding with space for non-finite values.
+-  const bool is_zero_fill =
+-      specs.fill.size() == 1 && *specs.fill.data() == static_cast<Char>('0');
+-  if (is_zero_fill) specs.fill[0] = static_cast<Char>(' ');
+-  return write_padded(out, specs, size, [=](reserve_iterator<OutputIt> it) {
+-    if (sign) *it++ = detail::sign<Char>(sign);
+-    return copy_str<Char>(str, str + str_size, it);
+-  });
+-}
+-
+-// A decimal floating-point number significand * pow(10, exp).
+-struct big_decimal_fp {
+-  const char* significand;
+-  int significand_size;
+-  int exponent;
+-};
+-
+-constexpr auto get_significand_size(const big_decimal_fp& fp) -> int {
+-  return fp.significand_size;
+-}
+-template <typename T>
+-inline auto get_significand_size(const dragonbox::decimal_fp<T>& fp) -> int {
+-  return count_digits(fp.significand);
+-}
+-
+-template <typename Char, typename OutputIt>
+-constexpr auto write_significand(OutputIt out, const char* significand,
+-                                 int significand_size) -> OutputIt {
+-  return copy_str<Char>(significand, significand + significand_size, out);
+-}
+-template <typename Char, typename OutputIt, typename UInt>
+-inline auto write_significand(OutputIt out, UInt significand,
+-                              int significand_size) -> OutputIt {
+-  return format_decimal<Char>(out, significand, significand_size).end;
+-}
+-template <typename Char, typename OutputIt, typename T, typename Grouping>
+-FMT_CONSTEXPR20 auto write_significand(OutputIt out, T significand,
+-                                       int significand_size, int exponent,
+-                                       const Grouping& grouping) -> OutputIt {
+-  if (!grouping.separator()) {
+-    out = write_significand<Char>(out, significand, significand_size);
+-    return detail::fill_n(out, exponent, static_cast<Char>('0'));
+-  }
+-  auto buffer = memory_buffer();
+-  write_significand<char>(appender(buffer), significand, significand_size);
+-  detail::fill_n(appender(buffer), exponent, '0');
+-  return grouping.apply(out, string_view(buffer.data(), buffer.size()));
+-}
+-
+-template <typename Char, typename UInt,
+-          FMT_ENABLE_IF(std::is_integral<UInt>::value)>
+-inline auto write_significand(Char* out, UInt significand, int significand_size,
+-                              int integral_size, Char decimal_point) -> Char* {
+-  if (!decimal_point)
+-    return format_decimal(out, significand, significand_size).end;
+-  out += significand_size + 1;
+-  Char* end = out;
+-  int floating_size = significand_size - integral_size;
+-  for (int i = floating_size / 2; i > 0; --i) {
+-    out -= 2;
+-    copy2(out, digits2(significand % 100));
+-    significand /= 100;
+-  }
+-  if (floating_size % 2 != 0) {
+-    *--out = static_cast<Char>('0' + significand % 10);
+-    significand /= 10;
+-  }
+-  *--out = decimal_point;
+-  format_decimal(out - integral_size, significand, integral_size);
+-  return end;
+-}
+-
+-template <typename OutputIt, typename UInt, typename Char,
+-          FMT_ENABLE_IF(!std::is_pointer<remove_cvref_t<OutputIt>>::value)>
+-inline auto write_significand(OutputIt out, UInt significand,
+-                              int significand_size, int integral_size,
+-                              Char decimal_point) -> OutputIt {
+-  // Buffer is large enough to hold digits (digits10 + 1) and a decimal point.
+-  Char buffer[digits10<UInt>() + 2];
+-  auto end = write_significand(buffer, significand, significand_size,
+-                               integral_size, decimal_point);
+-  return detail::copy_str_noinline<Char>(buffer, end, out);
+-}
+-
+-template <typename OutputIt, typename Char>
+-FMT_CONSTEXPR auto write_significand(OutputIt out, const char* significand,
+-                                     int significand_size, int integral_size,
+-                                     Char decimal_point) -> OutputIt {
+-  out = detail::copy_str_noinline<Char>(significand,
+-                                        significand + integral_size, out);
+-  if (!decimal_point) return out;
+-  *out++ = decimal_point;
+-  return detail::copy_str_noinline<Char>(significand + integral_size,
+-                                         significand + significand_size, out);
+-}
+-
+-template <typename OutputIt, typename Char, typename T, typename Grouping>
+-FMT_CONSTEXPR20 auto write_significand(OutputIt out, T significand,
+-                                       int significand_size, int integral_size,
+-                                       Char decimal_point,
+-                                       const Grouping& grouping) -> OutputIt {
+-  if (!grouping.separator()) {
+-    return write_significand(out, significand, significand_size, integral_size,
+-                             decimal_point);
+-  }
+-  auto buffer = basic_memory_buffer<Char>();
+-  write_significand(buffer_appender<Char>(buffer), significand,
+-                    significand_size, integral_size, decimal_point);
+-  grouping.apply(
+-      out, basic_string_view<Char>(buffer.data(), to_unsigned(integral_size)));
+-  return detail::copy_str_noinline<Char>(buffer.data() + integral_size,
+-                                         buffer.end(), out);
+-}
+-
+-template <typename OutputIt, typename DecimalFP, typename Char,
+-          typename Grouping = digit_grouping<Char>>
+-FMT_CONSTEXPR20 auto do_write_float(OutputIt out, const DecimalFP& fp,
+-                                    const basic_format_specs<Char>& specs,
+-                                    float_specs fspecs, locale_ref loc)
+-    -> OutputIt {
+-  auto significand = fp.significand;
+-  int significand_size = get_significand_size(fp);
+-  constexpr Char zero = static_cast<Char>('0');
+-  auto sign = fspecs.sign;
+-  size_t size = to_unsigned(significand_size) + (sign ? 1 : 0);
+-  using iterator = reserve_iterator<OutputIt>;
+-
+-  Char decimal_point =
+-      fspecs.locale ? detail::decimal_point<Char>(loc) : static_cast<Char>('.');
+-
+-  int output_exp = fp.exponent + significand_size - 1;
+-  auto use_exp_format = [=]() {
+-    if (fspecs.format == float_format::exp) return true;
+-    if (fspecs.format != float_format::general) return false;
+-    // Use the fixed notation if the exponent is in [exp_lower, exp_upper),
+-    // e.g. 0.0001 instead of 1e-04. Otherwise use the exponent notation.
+-    const int exp_lower = -4, exp_upper = 16;
+-    return output_exp < exp_lower ||
+-           output_exp >= (fspecs.precision > 0 ? fspecs.precision : exp_upper);
+-  };
+-  if (use_exp_format()) {
+-    int num_zeros = 0;
+-    if (fspecs.showpoint) {
+-      num_zeros = fspecs.precision - significand_size;
+-      if (num_zeros < 0) num_zeros = 0;
+-      size += to_unsigned(num_zeros);
+-    } else if (significand_size == 1) {
+-      decimal_point = Char();
+-    }
+-    auto abs_output_exp = output_exp >= 0 ? output_exp : -output_exp;
+-    int exp_digits = 2;
+-    if (abs_output_exp >= 100) exp_digits = abs_output_exp >= 1000 ? 4 : 3;
+-
+-    size += to_unsigned((decimal_point ? 1 : 0) + 2 + exp_digits);
+-    char exp_char = fspecs.upper ? 'E' : 'e';
+-    auto write = [=](iterator it) {
+-      if (sign) *it++ = detail::sign<Char>(sign);
+-      // Insert a decimal point after the first digit and add an exponent.
+-      it = write_significand(it, significand, significand_size, 1,
+-                             decimal_point);
+-      if (num_zeros > 0) it = detail::fill_n(it, num_zeros, zero);
+-      *it++ = static_cast<Char>(exp_char);
+-      return write_exponent<Char>(output_exp, it);
+-    };
+-    return specs.width > 0 ? write_padded<align::right>(out, specs, size, write)
+-                           : base_iterator(out, write(reserve(out, size)));
+-  }
+-
+-  int exp = fp.exponent + significand_size;
+-  if (fp.exponent >= 0) {
+-    // 1234e5 -> 123400000[.0+]
+-    size += to_unsigned(fp.exponent);
+-    int num_zeros = fspecs.precision - exp;
+-#ifdef FMT_FUZZ
+-    if (num_zeros > 5000)
+-      throw std::runtime_error("fuzz mode - avoiding excessive cpu use");
+-#endif
+-    if (fspecs.showpoint) {
+-      if (num_zeros <= 0 && fspecs.format != float_format::fixed) num_zeros = 1;
+-      if (num_zeros > 0) size += to_unsigned(num_zeros) + 1;
+-    }
+-    auto grouping = Grouping(loc, fspecs.locale);
+-    size += to_unsigned(grouping.count_separators(significand_size));
+-    return write_padded<align::right>(out, specs, size, [&](iterator it) {
+-      if (sign) *it++ = detail::sign<Char>(sign);
+-      it = write_significand<Char>(it, significand, significand_size,
+-                                   fp.exponent, grouping);
+-      if (!fspecs.showpoint) return it;
+-      *it++ = decimal_point;
+-      return num_zeros > 0 ? detail::fill_n(it, num_zeros, zero) : it;
+-    });
+-  } else if (exp > 0) {
+-    // 1234e-2 -> 12.34[0+]
+-    int num_zeros = fspecs.showpoint ? fspecs.precision - significand_size : 0;
+-    size += 1 + to_unsigned(num_zeros > 0 ? num_zeros : 0);
+-    auto grouping = Grouping(loc, fspecs.locale);
+-    size += to_unsigned(grouping.count_separators(significand_size));
+-    return write_padded<align::right>(out, specs, size, [&](iterator it) {
+-      if (sign) *it++ = detail::sign<Char>(sign);
+-      it = write_significand(it, significand, significand_size, exp,
+-                             decimal_point, grouping);
+-      return num_zeros > 0 ? detail::fill_n(it, num_zeros, zero) : it;
+-    });
+-  }
+-  // 1234e-6 -> 0.001234
+-  int num_zeros = -exp;
+-  if (significand_size == 0 && fspecs.precision >= 0 &&
+-      fspecs.precision < num_zeros) {
+-    num_zeros = fspecs.precision;
+-  }
+-  bool pointy = num_zeros != 0 || significand_size != 0 || fspecs.showpoint;
+-  size += 1 + (pointy ? 1 : 0) + to_unsigned(num_zeros);
+-  return write_padded<align::right>(out, specs, size, [&](iterator it) {
+-    if (sign) *it++ = detail::sign<Char>(sign);
+-    *it++ = zero;
+-    if (!pointy) return it;
+-    *it++ = decimal_point;
+-    it = detail::fill_n(it, num_zeros, zero);
+-    return write_significand<Char>(it, significand, significand_size);
+-  });
+-}
+-
+-template <typename Char> class fallback_digit_grouping {
+- public:
+-  constexpr fallback_digit_grouping(locale_ref, bool) {}
+-
+-  constexpr Char separator() const { return Char(); }
+-
+-  constexpr int count_separators(int) const { return 0; }
+-
+-  template <typename Out, typename C>
+-  constexpr Out apply(Out out, basic_string_view<C>) const {
+-    return out;
+-  }
+-};
+-
+-template <typename OutputIt, typename DecimalFP, typename Char>
+-FMT_CONSTEXPR20 auto write_float(OutputIt out, const DecimalFP& fp,
+-                                 const basic_format_specs<Char>& specs,
+-                                 float_specs fspecs, locale_ref loc)
+-    -> OutputIt {
+-  if (is_constant_evaluated()) {
+-    return do_write_float<OutputIt, DecimalFP, Char,
+-                          fallback_digit_grouping<Char>>(out, fp, specs, fspecs,
+-                                                         loc);
+-  } else {
+-    return do_write_float(out, fp, specs, fspecs, loc);
+-  }
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_CONSTEXPR20 bool isinf(T value) {
+-  if (is_constant_evaluated()) {
+-#if defined(__cpp_if_constexpr)
+-    if constexpr (std::numeric_limits<double>::is_iec559) {
+-      auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value));
+-      constexpr auto significand_bits =
+-          dragonbox::float_info<double>::significand_bits;
+-      return (bits & exponent_mask<double>()) &&
+-             !(bits & ((uint64_t(1) << significand_bits) - 1));
+-    }
+-#endif
+-  }
+-  return std::isinf(value);
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_CONSTEXPR20 bool isfinite(T value) {
+-  if (is_constant_evaluated()) {
+-#if defined(__cpp_if_constexpr)
+-    if constexpr (std::numeric_limits<double>::is_iec559) {
+-      auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value));
+-      return (bits & exponent_mask<double>()) != exponent_mask<double>();
+-    }
+-#endif
+-  }
+-  return std::isfinite(value);
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_INLINE FMT_CONSTEXPR bool signbit(T value) {
+-  if (is_constant_evaluated()) {
+-#ifdef __cpp_if_constexpr
+-    if constexpr (std::numeric_limits<double>::is_iec559) {
+-      auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value));
+-      return (bits & (uint64_t(1) << (num_bits<uint64_t>() - 1))) != 0;
+-    }
+-#endif
+-  }
+-  return std::signbit(value);
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_CONSTEXPR20 auto write(OutputIt out, T value,
+-                           basic_format_specs<Char> specs, locale_ref loc = {})
+-    -> OutputIt {
+-  if (const_check(!is_supported_floating_point(value))) return out;
+-  float_specs fspecs = parse_float_type_spec(specs);
+-  fspecs.sign = specs.sign;
+-  if (detail::signbit(value)) {  // value < 0 is false for NaN so use signbit.
+-    fspecs.sign = sign::minus;
+-    value = -value;
+-  } else if (fspecs.sign == sign::minus) {
+-    fspecs.sign = sign::none;
+-  }
+-
+-  if (!detail::isfinite(value))
+-    return write_nonfinite(out, detail::isinf(value), specs, fspecs);
+-
+-  if (specs.align == align::numeric && fspecs.sign) {
+-    auto it = reserve(out, 1);
+-    *it++ = detail::sign<Char>(fspecs.sign);
+-    out = base_iterator(out, it);
+-    fspecs.sign = sign::none;
+-    if (specs.width != 0) --specs.width;
+-  }
+-
+-  memory_buffer buffer;
+-  if (fspecs.format == float_format::hex) {
+-    if (fspecs.sign) buffer.push_back(detail::sign<char>(fspecs.sign));
+-    snprintf_float(promote_float(value), specs.precision, fspecs, buffer);
+-    return write_bytes<align::right>(out, {buffer.data(), buffer.size()},
+-                                     specs);
+-  }
+-  int precision = specs.precision >= 0 || specs.type == presentation_type::none
+-                      ? specs.precision
+-                      : 6;
+-  if (fspecs.format == float_format::exp) {
+-    if (precision == max_value<int>())
+-      throw_format_error("number is too big");
+-    else
+-      ++precision;
+-  }
+-  if (const_check(std::is_same<T, float>())) fspecs.binary32 = true;
+-  if (!is_fast_float<T>()) fspecs.fallback = true;
+-  int exp = format_float(promote_float(value), precision, fspecs, buffer);
+-  fspecs.precision = precision;
+-  auto fp = big_decimal_fp{buffer.data(), static_cast<int>(buffer.size()), exp};
+-  return write_float(out, fp, specs, fspecs, loc);
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_fast_float<T>::value)>
+-FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt {
+-  if (is_constant_evaluated()) {
+-    return write(out, value, basic_format_specs<Char>());
+-  }
+-
+-  if (const_check(!is_supported_floating_point(value))) return out;
+-
+-  using floaty = conditional_t<std::is_same<T, long double>::value, double, T>;
+-  using uint = typename dragonbox::float_info<floaty>::carrier_uint;
+-  auto bits = bit_cast<uint>(value);
+-
+-  auto fspecs = float_specs();
+-  if (detail::signbit(value)) {
+-    fspecs.sign = sign::minus;
+-    value = -value;
+-  }
+-
+-  constexpr auto specs = basic_format_specs<Char>();
+-  uint mask = exponent_mask<floaty>();
+-  if ((bits & mask) == mask)
+-    return write_nonfinite(out, std::isinf(value), specs, fspecs);
+-
+-  auto dec = dragonbox::to_decimal(static_cast<floaty>(value));
+-  return write_float(out, dec, specs, fspecs, {});
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_floating_point<T>::value &&
+-                        !is_fast_float<T>::value)>
+-inline auto write(OutputIt out, T value) -> OutputIt {
+-  return write(out, value, basic_format_specs<Char>());
+-}
+-
+-template <typename Char, typename OutputIt>
+-auto write(OutputIt out, monostate, basic_format_specs<Char> = {},
+-           locale_ref = {}) -> OutputIt {
+-  FMT_ASSERT(false, "");
+-  return out;
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> value)
+-    -> OutputIt {
+-  auto it = reserve(out, value.size());
+-  it = copy_str_noinline<Char>(value.begin(), value.end(), it);
+-  return base_iterator(out, it);
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_string<T>::value)>
+-constexpr auto write(OutputIt out, const T& value) -> OutputIt {
+-  return write<Char>(out, to_string_view(value));
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_integral<T>::value &&
+-                        !std::is_same<T, bool>::value &&
+-                        !std::is_same<T, Char>::value)>
+-FMT_CONSTEXPR auto write(OutputIt out, T value) -> OutputIt {
+-  auto abs_value = static_cast<uint32_or_64_or_128_t<T>>(value);
+-  bool negative = is_negative(value);
+-  // Don't do -abs_value since it trips unsigned-integer-overflow sanitizer.
+-  if (negative) abs_value = ~abs_value + 1;
+-  int num_digits = count_digits(abs_value);
+-  auto size = (negative ? 1 : 0) + static_cast<size_t>(num_digits);
+-  auto it = reserve(out, size);
+-  if (auto ptr = to_pointer<Char>(it, size)) {
+-    if (negative) *ptr++ = static_cast<Char>('-');
+-    format_decimal<Char>(ptr, abs_value, num_digits);
+-    return out;
+-  }
+-  if (negative) *it++ = static_cast<Char>('-');
+-  it = format_decimal<Char>(it, abs_value, num_digits).end;
+-  return base_iterator(out, it);
+-}
+-
+-// FMT_ENABLE_IF() condition separated to workaround an MSVC bug.
+-template <
+-    typename Char, typename OutputIt, typename T,
+-    bool check =
+-        std::is_enum<T>::value && !std::is_same<T, Char>::value &&
+-        mapped_type_constant<T, basic_format_context<OutputIt, Char>>::value !=
+-            type::custom_type,
+-    FMT_ENABLE_IF(check)>
+-FMT_CONSTEXPR auto write(OutputIt out, T value) -> OutputIt {
+-  return write<Char>(
+-      out, static_cast<typename std::underlying_type<T>::type>(value));
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_same<T, bool>::value)>
+-FMT_CONSTEXPR auto write(OutputIt out, T value,
+-                         const basic_format_specs<Char>& specs = {},
+-                         locale_ref = {}) -> OutputIt {
+-  return specs.type != presentation_type::none &&
+-                 specs.type != presentation_type::string
+-             ? write(out, value ? 1 : 0, specs, {})
+-             : write_bytes(out, value ? "true" : "false", specs);
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, Char value) -> OutputIt {
+-  auto it = reserve(out, 1);
+-  *it++ = value;
+-  return base_iterator(out, it);
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR_CHAR_TRAITS auto write(OutputIt out, const Char* value)
+-    -> OutputIt {
+-  if (!value) {
+-    throw_format_error("string pointer is null");
+-  } else {
+-    out = write(out, basic_string_view<Char>(value));
+-  }
+-  return out;
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_same<T, void>::value)>
+-auto write(OutputIt out, const T* value,
+-           const basic_format_specs<Char>& specs = {}, locale_ref = {})
+-    -> OutputIt {
+-  check_pointer_type_spec(specs.type, error_handler());
+-  return write_ptr<Char>(out, to_uintptr(value), &specs);
+-}
+-
+-// A write overload that handles implicit conversions.
+-template <typename Char, typename OutputIt, typename T,
+-          typename Context = basic_format_context<OutputIt, Char>>
+-FMT_CONSTEXPR auto write(OutputIt out, const T& value) -> enable_if_t<
+-    std::is_class<T>::value && !is_string<T>::value &&
+-        !std::is_same<T, Char>::value &&
+-        !std::is_same<const T&,
+-                      decltype(arg_mapper<Context>().map(value))>::value,
+-    OutputIt> {
+-  return write<Char>(out, arg_mapper<Context>().map(value));
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          typename Context = basic_format_context<OutputIt, Char>>
+-FMT_CONSTEXPR auto write(OutputIt out, const T& value)
+-    -> enable_if_t<mapped_type_constant<T, Context>::value == type::custom_type,
+-                   OutputIt> {
+-  using formatter_type =
+-      conditional_t<has_formatter<T, Context>::value,
+-                    typename Context::template formatter_type<T>,
+-                    fallback_formatter<T, Char>>;
+-  auto ctx = Context(out, {}, {});
+-  return formatter_type().format(value, ctx);
+-}
+-
+-// An argument visitor that formats the argument and writes it via the output
+-// iterator. It's a class and not a generic lambda for compatibility with C++11.
+-template <typename Char> struct default_arg_formatter {
+-  using iterator = buffer_appender<Char>;
+-  using context = buffer_context<Char>;
+-
+-  iterator out;
+-  basic_format_args<context> args;
+-  locale_ref loc;
+-
+-  template <typename T> auto operator()(T value) -> iterator {
+-    return write<Char>(out, value);
+-  }
+-  auto operator()(typename basic_format_arg<context>::handle h) -> iterator {
+-    basic_format_parse_context<Char> parse_ctx({});
+-    context format_ctx(out, args, loc);
+-    h.format(parse_ctx, format_ctx);
+-    return format_ctx.out();
+-  }
+-};
+-
+-template <typename Char> struct arg_formatter {
+-  using iterator = buffer_appender<Char>;
+-  using context = buffer_context<Char>;
+-
+-  iterator out;
+-  const basic_format_specs<Char>& specs;
+-  locale_ref locale;
+-
+-  template <typename T>
+-  FMT_CONSTEXPR FMT_INLINE auto operator()(T value) -> iterator {
+-    return detail::write(out, value, specs, locale);
+-  }
+-  auto operator()(typename basic_format_arg<context>::handle) -> iterator {
+-    // User-defined types are handled separately because they require access
+-    // to the parse context.
+-    return out;
+-  }
+-};
+-
+-template <typename Char> struct custom_formatter {
+-  basic_format_parse_context<Char>& parse_ctx;
+-  buffer_context<Char>& ctx;
+-
+-  void operator()(
+-      typename basic_format_arg<buffer_context<Char>>::handle h) const {
+-    h.format(parse_ctx, ctx);
+-  }
+-  template <typename T> void operator()(T) const {}
+-};
+-
+-template <typename T>
+-using is_integer =
+-    bool_constant<is_integral<T>::value && !std::is_same<T, bool>::value &&
+-                  !std::is_same<T, char>::value &&
+-                  !std::is_same<T, wchar_t>::value>;
+-
+-template <typename ErrorHandler> class width_checker {
+- public:
+-  explicit FMT_CONSTEXPR width_checker(ErrorHandler& eh) : handler_(eh) {}
+-
+-  template <typename T, FMT_ENABLE_IF(is_integer<T>::value)>
+-  FMT_CONSTEXPR auto operator()(T value) -> unsigned long long {
+-    if (is_negative(value)) handler_.on_error("negative width");
+-    return static_cast<unsigned long long>(value);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!is_integer<T>::value)>
+-  FMT_CONSTEXPR auto operator()(T) -> unsigned long long {
+-    handler_.on_error("width is not integer");
+-    return 0;
+-  }
+-
+- private:
+-  ErrorHandler& handler_;
+-};
+-
+-template <typename ErrorHandler> class precision_checker {
+- public:
+-  explicit FMT_CONSTEXPR precision_checker(ErrorHandler& eh) : handler_(eh) {}
+-
+-  template <typename T, FMT_ENABLE_IF(is_integer<T>::value)>
+-  FMT_CONSTEXPR auto operator()(T value) -> unsigned long long {
+-    if (is_negative(value)) handler_.on_error("negative precision");
+-    return static_cast<unsigned long long>(value);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!is_integer<T>::value)>
+-  FMT_CONSTEXPR auto operator()(T) -> unsigned long long {
+-    handler_.on_error("precision is not integer");
+-    return 0;
+-  }
+-
+- private:
+-  ErrorHandler& handler_;
+-};
+-
+-template <template <typename> class Handler, typename FormatArg,
+-          typename ErrorHandler>
+-FMT_CONSTEXPR auto get_dynamic_spec(FormatArg arg, ErrorHandler eh) -> int {
+-  unsigned long long value = visit_format_arg(Handler<ErrorHandler>(eh), arg);
+-  if (value > to_unsigned(max_value<int>())) eh.on_error("number is too big");
+-  return static_cast<int>(value);
+-}
+-
+-template <typename Context, typename ID>
+-FMT_CONSTEXPR auto get_arg(Context& ctx, ID id) ->
+-    typename Context::format_arg {
+-  auto arg = ctx.arg(id);
+-  if (!arg) ctx.on_error("argument not found");
+-  return arg;
+-}
+-
+-// The standard format specifier handler with checking.
+-template <typename Char> class specs_handler : public specs_setter<Char> {
+- private:
+-  basic_format_parse_context<Char>& parse_context_;
+-  buffer_context<Char>& context_;
+-
+-  // This is only needed for compatibility with gcc 4.4.
+-  using format_arg = basic_format_arg<buffer_context<Char>>;
+-
+-  FMT_CONSTEXPR auto get_arg(auto_id) -> format_arg {
+-    return detail::get_arg(context_, parse_context_.next_arg_id());
+-  }
+-
+-  FMT_CONSTEXPR auto get_arg(int arg_id) -> format_arg {
+-    parse_context_.check_arg_id(arg_id);
+-    return detail::get_arg(context_, arg_id);
+-  }
+-
+-  FMT_CONSTEXPR auto get_arg(basic_string_view<Char> arg_id) -> format_arg {
+-    parse_context_.check_arg_id(arg_id);
+-    return detail::get_arg(context_, arg_id);
+-  }
+-
+- public:
+-  FMT_CONSTEXPR specs_handler(basic_format_specs<Char>& specs,
+-                              basic_format_parse_context<Char>& parse_ctx,
+-                              buffer_context<Char>& ctx)
+-      : specs_setter<Char>(specs), parse_context_(parse_ctx), context_(ctx) {}
+-
+-  template <typename Id> FMT_CONSTEXPR void on_dynamic_width(Id arg_id) {
+-    this->specs_.width = get_dynamic_spec<width_checker>(
+-        get_arg(arg_id), context_.error_handler());
+-  }
+-
+-  template <typename Id> FMT_CONSTEXPR void on_dynamic_precision(Id arg_id) {
+-    this->specs_.precision = get_dynamic_spec<precision_checker>(
+-        get_arg(arg_id), context_.error_handler());
+-  }
+-
+-  void on_error(const char* message) { context_.on_error(message); }
+-};
+-
+-template <template <typename> class Handler, typename Context>
+-FMT_CONSTEXPR void handle_dynamic_spec(int& value,
+-                                       arg_ref<typename Context::char_type> ref,
+-                                       Context& ctx) {
+-  switch (ref.kind) {
+-  case arg_id_kind::none:
+-    break;
+-  case arg_id_kind::index:
+-    value = detail::get_dynamic_spec<Handler>(ctx.arg(ref.val.index),
+-                                              ctx.error_handler());
+-    break;
+-  case arg_id_kind::name:
+-    value = detail::get_dynamic_spec<Handler>(ctx.arg(ref.val.name),
+-                                              ctx.error_handler());
+-    break;
+-  }
+-}
+-
+-#define FMT_STRING_IMPL(s, base, explicit)                                 \
+-  [] {                                                                     \
+-    /* Use the hidden visibility as a workaround for a GCC bug (#1973). */ \
+-    /* Use a macro-like name to avoid shadowing warnings. */               \
+-    struct FMT_GCC_VISIBILITY_HIDDEN FMT_COMPILE_STRING : base {           \
+-      using char_type = fmt::remove_cvref_t<decltype(s[0])>;               \
+-      FMT_MAYBE_UNUSED FMT_CONSTEXPR explicit                              \
+-      operator fmt::basic_string_view<char_type>() const {                 \
+-        return fmt::detail_exported::compile_string_to_view<char_type>(s); \
+-      }                                                                    \
+-    };                                                                     \
+-    return FMT_COMPILE_STRING();                                           \
+-  }()
+-
+-/**
+-  \rst
+-  Constructs a compile-time format string from a string literal *s*.
+-
+-  **Example**::
+-
+-    // A compile-time error because 'd' is an invalid specifier for strings.
+-    std::string s = fmt::format(FMT_STRING("{:d}"), "foo");
+-  \endrst
+- */
+-#define FMT_STRING(s) FMT_STRING_IMPL(s, fmt::compile_string, )
+-
+-#if FMT_USE_USER_DEFINED_LITERALS
+-template <typename Char> struct udl_formatter {
+-  basic_string_view<Char> str;
+-
+-  template <typename... T>
+-  auto operator()(T&&... args) const -> std::basic_string<Char> {
+-    return vformat(str, fmt::make_args_checked<T...>(str, args...));
+-  }
+-};
+-
+-#  if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <typename T, typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct statically_named_arg : view {
+-  static constexpr auto name = Str.data;
+-
+-  const T& value;
+-  statically_named_arg(const T& v) : value(v) {}
+-};
+-
+-template <typename T, typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct is_named_arg<statically_named_arg<T, Char, N, Str>> : std::true_type {};
+-
+-template <typename T, typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct is_statically_named_arg<statically_named_arg<T, Char, N, Str>>
+-    : std::true_type {};
+-
+-template <typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct udl_arg {
+-  template <typename T> auto operator=(T&& value) const {
+-    return statically_named_arg<T, Char, N, Str>(std::forward<T>(value));
+-  }
+-};
+-#  else
+-template <typename Char> struct udl_arg {
+-  const Char* str;
+-
+-  template <typename T> auto operator=(T&& value) const -> named_arg<Char, T> {
+-    return {str, std::forward<T>(value)};
+-  }
+-};
+-#  endif
+-#endif  // FMT_USE_USER_DEFINED_LITERALS
+-
+-template <typename Locale, typename Char>
+-auto vformat(const Locale& loc, basic_string_view<Char> format_str,
+-             basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> std::basic_string<Char> {
+-  basic_memory_buffer<Char> buffer;
+-  detail::vformat_to(buffer, format_str, args, detail::locale_ref(loc));
+-  return {buffer.data(), buffer.size()};
+-}
+-
+-using format_func = void (*)(detail::buffer<char>&, int, const char*);
+-
+-FMT_API void format_error_code(buffer<char>& out, int error_code,
+-                               string_view message) FMT_NOEXCEPT;
+-
+-FMT_API void report_error(format_func func, int error_code,
+-                          const char* message) FMT_NOEXCEPT;
+-FMT_END_DETAIL_NAMESPACE
+-
+-FMT_API auto vsystem_error(int error_code, string_view format_str,
+-                           format_args args) -> std::system_error;
+-
+-/**
+- \rst
+- Constructs :class:`std::system_error` with a message formatted with
+- ``fmt::format(fmt, args...)``.
+-  *error_code* is a system error code as given by ``errno``.
+-
+- **Example**::
+-
+-   // This throws std::system_error with the description
+-   //   cannot open file 'madeup': No such file or directory
+-   // or similar (system message may vary).
+-   const char* filename = "madeup";
+-   std::FILE* file = std::fopen(filename, "r");
+-   if (!file)
+-     throw fmt::system_error(errno, "cannot open file '{}'", filename);
+- \endrst
+-*/
+-template <typename... T>
+-auto system_error(int error_code, format_string<T...> fmt, T&&... args)
+-    -> std::system_error {
+-  return vsystem_error(error_code, fmt, fmt::make_format_args(args...));
+-}
+-
+-/**
+-  \rst
+-  Formats an error message for an error returned by an operating system or a
+-  language runtime, for example a file opening error, and writes it to *out*.
+-  The format is the same as the one used by ``std::system_error(ec, message)``
+-  where ``ec`` is ``std::error_code(error_code, std::generic_category()})``.
+-  It is implementation-defined but normally looks like:
+-
+-  .. parsed-literal::
+-     *<message>*: *<system-message>*
+-
+-  where *<message>* is the passed message and *<system-message>* is the system
+-  message corresponding to the error code.
+-  *error_code* is a system error code as given by ``errno``.
+-  \endrst
+- */
+-FMT_API void format_system_error(detail::buffer<char>& out, int error_code,
+-                                 const char* message) FMT_NOEXCEPT;
+-
+-// Reports a system error without throwing an exception.
+-// Can be used to report errors from destructors.
+-FMT_API void report_system_error(int error_code,
+-                                 const char* message) FMT_NOEXCEPT;
+-
+-/** Fast integer formatter. */
+-class format_int {
+- private:
+-  // Buffer should be large enough to hold all digits (digits10 + 1),
+-  // a sign and a null character.
+-  enum { buffer_size = std::numeric_limits<unsigned long long>::digits10 + 3 };
+-  mutable char buffer_[buffer_size];
+-  char* str_;
+-
+-  template <typename UInt> auto format_unsigned(UInt value) -> char* {
+-    auto n = static_cast<detail::uint32_or_64_or_128_t<UInt>>(value);
+-    return detail::format_decimal(buffer_, n, buffer_size - 1).begin;
+-  }
+-
+-  template <typename Int> auto format_signed(Int value) -> char* {
+-    auto abs_value = static_cast<detail::uint32_or_64_or_128_t<Int>>(value);
+-    bool negative = value < 0;
+-    if (negative) abs_value = 0 - abs_value;
+-    auto begin = format_unsigned(abs_value);
+-    if (negative) *--begin = '-';
+-    return begin;
+-  }
+-
+- public:
+-  explicit format_int(int value) : str_(format_signed(value)) {}
+-  explicit format_int(long value) : str_(format_signed(value)) {}
+-  explicit format_int(long long value) : str_(format_signed(value)) {}
+-  explicit format_int(unsigned value) : str_(format_unsigned(value)) {}
+-  explicit format_int(unsigned long value) : str_(format_unsigned(value)) {}
+-  explicit format_int(unsigned long long value)
+-      : str_(format_unsigned(value)) {}
+-
+-  /** Returns the number of characters written to the output buffer. */
+-  auto size() const -> size_t {
+-    return detail::to_unsigned(buffer_ - str_ + buffer_size - 1);
+-  }
+-
+-  /**
+-    Returns a pointer to the output buffer content. No terminating null
+-    character is appended.
+-   */
+-  auto data() const -> const char* { return str_; }
+-
+-  /**
+-    Returns a pointer to the output buffer content with terminating null
+-    character appended.
+-   */
+-  auto c_str() const -> const char* {
+-    buffer_[buffer_size - 1] = '\0';
+-    return str_;
+-  }
+-
+-  /**
+-    \rst
+-    Returns the content of the output buffer as an ``std::string``.
+-    \endrst
+-   */
+-  auto str() const -> std::string { return std::string(str_, size()); }
+-};
+-
+-template <typename T, typename Char>
+-template <typename FormatContext>
+-FMT_CONSTEXPR FMT_INLINE auto
+-formatter<T, Char,
+-          enable_if_t<detail::type_constant<T, Char>::value !=
+-                      detail::type::custom_type>>::format(const T& val,
+-                                                          FormatContext& ctx)
+-    const -> decltype(ctx.out()) {
+-  if (specs_.width_ref.kind != detail::arg_id_kind::none ||
+-      specs_.precision_ref.kind != detail::arg_id_kind::none) {
+-    auto specs = specs_;
+-    detail::handle_dynamic_spec<detail::width_checker>(specs.width,
+-                                                       specs.width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(
+-        specs.precision, specs.precision_ref, ctx);
+-    return detail::write<Char>(ctx.out(), val, specs, ctx.locale());
+-  }
+-  return detail::write<Char>(ctx.out(), val, specs_, ctx.locale());
+-}
+-
+-#define FMT_FORMAT_AS(Type, Base)                                        \
+-  template <typename Char>                                               \
+-  struct formatter<Type, Char> : formatter<Base, Char> {                 \
+-    template <typename FormatContext>                                    \
+-    auto format(Type const& val, FormatContext& ctx) const               \
+-        -> decltype(ctx.out()) {                                         \
+-      return formatter<Base, Char>::format(static_cast<Base>(val), ctx); \
+-    }                                                                    \
+-  }
+-
+-FMT_FORMAT_AS(signed char, int);
+-FMT_FORMAT_AS(unsigned char, unsigned);
+-FMT_FORMAT_AS(short, int);
+-FMT_FORMAT_AS(unsigned short, unsigned);
+-FMT_FORMAT_AS(long, long long);
+-FMT_FORMAT_AS(unsigned long, unsigned long long);
+-FMT_FORMAT_AS(Char*, const Char*);
+-FMT_FORMAT_AS(std::basic_string<Char>, basic_string_view<Char>);
+-FMT_FORMAT_AS(std::nullptr_t, const void*);
+-FMT_FORMAT_AS(detail::byte, unsigned char);
+-FMT_FORMAT_AS(detail::std_string_view<Char>, basic_string_view<Char>);
+-
+-template <typename Char>
+-struct formatter<void*, Char> : formatter<const void*, Char> {
+-  template <typename FormatContext>
+-  auto format(void* val, FormatContext& ctx) const -> decltype(ctx.out()) {
+-    return formatter<const void*, Char>::format(val, ctx);
+-  }
+-};
+-
+-template <typename Char, size_t N>
+-struct formatter<Char[N], Char> : formatter<basic_string_view<Char>, Char> {
+-  template <typename FormatContext>
+-  FMT_CONSTEXPR auto format(const Char* val, FormatContext& ctx) const
+-      -> decltype(ctx.out()) {
+-    return formatter<basic_string_view<Char>, Char>::format(val, ctx);
+-  }
+-};
+-
+-// A formatter for types known only at run time such as variant alternatives.
+-//
+-// Usage:
+-//   using variant = std::variant<int, std::string>;
+-//   template <>
+-//   struct formatter<variant>: dynamic_formatter<> {
+-//     auto format(const variant& v, format_context& ctx) {
+-//       return visit([&](const auto& val) {
+-//           return dynamic_formatter<>::format(val, ctx);
+-//       }, v);
+-//     }
+-//   };
+-template <typename Char = char> class dynamic_formatter {
+- private:
+-  detail::dynamic_format_specs<Char> specs_;
+-  const Char* format_str_;
+-
+-  struct null_handler : detail::error_handler {
+-    void on_align(align_t) {}
+-    void on_sign(sign_t) {}
+-    void on_hash() {}
+-  };
+-
+-  template <typename Context> void handle_specs(Context& ctx) {
+-    detail::handle_dynamic_spec<detail::width_checker>(specs_.width,
+-                                                       specs_.width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(
+-        specs_.precision, specs_.precision_ref, ctx);
+-  }
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    format_str_ = ctx.begin();
+-    // Checks are deferred to formatting time when the argument type is known.
+-    detail::dynamic_specs_handler<ParseContext> handler(specs_, ctx);
+-    return detail::parse_format_specs(ctx.begin(), ctx.end(), handler);
+-  }
+-
+-  template <typename T, typename FormatContext>
+-  auto format(const T& val, FormatContext& ctx) -> decltype(ctx.out()) {
+-    handle_specs(ctx);
+-    detail::specs_checker<null_handler> checker(
+-        null_handler(), detail::mapped_type_constant<T, FormatContext>::value);
+-    checker.on_align(specs_.align);
+-    if (specs_.sign != sign::none) checker.on_sign(specs_.sign);
+-    if (specs_.alt) checker.on_hash();
+-    if (specs_.precision >= 0) checker.end_precision();
+-    return detail::write<Char>(ctx.out(), val, specs_, ctx.locale());
+-  }
+-};
+-
+-/**
+-  \rst
+-  Converts ``p`` to ``const void*`` for pointer formatting.
+-
+-  **Example**::
+-
+-    auto s = fmt::format("{}", fmt::ptr(p));
+-  \endrst
+- */
+-template <typename T> auto ptr(T p) -> const void* {
+-  static_assert(std::is_pointer<T>::value, "");
+-  return detail::bit_cast<const void*>(p);
+-}
+-template <typename T> auto ptr(const std::unique_ptr<T>& p) -> const void* {
+-  return p.get();
+-}
+-template <typename T> auto ptr(const std::shared_ptr<T>& p) -> const void* {
+-  return p.get();
+-}
+-
+-class bytes {
+- private:
+-  string_view data_;
+-  friend struct formatter<bytes>;
+-
+- public:
+-  explicit bytes(string_view data) : data_(data) {}
+-};
+-
+-template <> struct formatter<bytes> {
+- private:
+-  detail::dynamic_format_specs<char> specs_;
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    using handler_type = detail::dynamic_specs_handler<ParseContext>;
+-    detail::specs_checker<handler_type> handler(handler_type(specs_, ctx),
+-                                                detail::type::string_type);
+-    auto it = parse_format_specs(ctx.begin(), ctx.end(), handler);
+-    detail::check_string_type_spec(specs_.type, ctx.error_handler());
+-    return it;
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(bytes b, FormatContext& ctx) -> decltype(ctx.out()) {
+-    detail::handle_dynamic_spec<detail::width_checker>(specs_.width,
+-                                                       specs_.width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(
+-        specs_.precision, specs_.precision_ref, ctx);
+-    return detail::write_bytes(ctx.out(), b.data_, specs_);
+-  }
+-};
+-
+-// group_digits_view is not derived from view because it copies the argument.
+-template <typename T> struct group_digits_view { T value; };
+-
+-/**
+-  \rst
+-  Returns a view that formats an integer value using ',' as a locale-independent
+-  thousands separator.
+-
+-  **Example**::
+-
+-    fmt::print("{}", fmt::group_digits(12345));
+-    // Output: "12,345"
+-  \endrst
+- */
+-template <typename T> auto group_digits(T value) -> group_digits_view<T> {
+-  return {value};
+-}
+-
+-template <typename T> struct formatter<group_digits_view<T>> : formatter<T> {
+- private:
+-  detail::dynamic_format_specs<char> specs_;
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    using handler_type = detail::dynamic_specs_handler<ParseContext>;
+-    detail::specs_checker<handler_type> handler(handler_type(specs_, ctx),
+-                                                detail::type::int_type);
+-    auto it = parse_format_specs(ctx.begin(), ctx.end(), handler);
+-    detail::check_string_type_spec(specs_.type, ctx.error_handler());
+-    return it;
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(group_digits_view<T> t, FormatContext& ctx)
+-      -> decltype(ctx.out()) {
+-    detail::handle_dynamic_spec<detail::width_checker>(specs_.width,
+-                                                       specs_.width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(
+-        specs_.precision, specs_.precision_ref, ctx);
+-    return detail::write_int_localized(
+-        ctx.out(), static_cast<detail::uint64_or_128_t<T>>(t.value), 0, specs_,
+-        detail::digit_grouping<char>({"\3", ','}));
+-  }
+-};
+-
+-template <typename It, typename Sentinel, typename Char = char>
+-struct join_view : detail::view {
+-  It begin;
+-  Sentinel end;
+-  basic_string_view<Char> sep;
+-
+-  join_view(It b, Sentinel e, basic_string_view<Char> s)
+-      : begin(b), end(e), sep(s) {}
+-};
+-
+-template <typename It, typename Sentinel, typename Char>
+-using arg_join FMT_DEPRECATED_ALIAS = join_view<It, Sentinel, Char>;
+-
+-template <typename It, typename Sentinel, typename Char>
+-struct formatter<join_view<It, Sentinel, Char>, Char> {
+- private:
+-  using value_type =
+-#ifdef __cpp_lib_ranges
+-      std::iter_value_t<It>;
+-#else
+-      typename std::iterator_traits<It>::value_type;
+-#endif
+-  using context = buffer_context<Char>;
+-  using mapper = detail::arg_mapper<context>;
+-
+-  template <typename T, FMT_ENABLE_IF(has_formatter<T, context>::value)>
+-  static auto map(const T& value) -> const T& {
+-    return value;
+-  }
+-  template <typename T, FMT_ENABLE_IF(!has_formatter<T, context>::value)>
+-  static auto map(const T& value) -> decltype(mapper().map(value)) {
+-    return mapper().map(value);
+-  }
+-
+-  using formatter_type =
+-      conditional_t<is_formattable<value_type, Char>::value,
+-                    formatter<remove_cvref_t<decltype(map(
+-                                  std::declval<const value_type&>()))>,
+-                              Char>,
+-                    detail::fallback_formatter<value_type, Char>>;
+-
+-  formatter_type value_formatter_;
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return value_formatter_.parse(ctx);
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(const join_view<It, Sentinel, Char>& value, FormatContext& ctx)
+-      -> decltype(ctx.out()) {
+-    auto it = value.begin;
+-    auto out = ctx.out();
+-    if (it != value.end) {
+-      out = value_formatter_.format(map(*it), ctx);
+-      ++it;
+-      while (it != value.end) {
+-        out = detail::copy_str<Char>(value.sep.begin(), value.sep.end(), out);
+-        ctx.advance_to(out);
+-        out = value_formatter_.format(map(*it), ctx);
+-        ++it;
+-      }
+-    }
+-    return out;
+-  }
+-};
+-
+-/**
+-  Returns a view that formats the iterator range `[begin, end)` with elements
+-  separated by `sep`.
+- */
+-template <typename It, typename Sentinel>
+-auto join(It begin, Sentinel end, string_view sep) -> join_view<It, Sentinel> {
+-  return {begin, end, sep};
+-}
+-
+-/**
+-  \rst
+-  Returns a view that formats `range` with elements separated by `sep`.
+-
+-  **Example**::
+-
+-    std::vector<int> v = {1, 2, 3};
+-    fmt::print("{}", fmt::join(v, ", "));
+-    // Output: "1, 2, 3"
+-
+-  ``fmt::join`` applies passed format specifiers to the range elements::
+-
+-    fmt::print("{:02}", fmt::join(v, ", "));
+-    // Output: "01, 02, 03"
+-  \endrst
+- */
+-template <typename Range>
+-auto join(Range&& range, string_view sep)
+-    -> join_view<detail::iterator_t<Range>, detail::sentinel_t<Range>> {
+-  return join(std::begin(range), std::end(range), sep);
+-}
+-
+-/**
+-  \rst
+-  Converts *value* to ``std::string`` using the default format for type *T*.
+-
+-  **Example**::
+-
+-    #include <fmt/format.h>
+-
+-    std::string answer = fmt::to_string(42);
+-  \endrst
+- */
+-template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-inline auto to_string(const T& value) -> std::string {
+-  auto result = std::string();
+-  detail::write<char>(std::back_inserter(result), value);
+-  return result;
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-FMT_NODISCARD inline auto to_string(T value) -> std::string {
+-  // The buffer should be large enough to store the number including the sign
+-  // or "false" for bool.
+-  constexpr int max_size = detail::digits10<T>() + 2;
+-  char buffer[max_size > 5 ? static_cast<unsigned>(max_size) : 5];
+-  char* begin = buffer;
+-  return std::string(begin, detail::write<char>(begin, value));
+-}
+-
+-template <typename Char, size_t SIZE>
+-FMT_NODISCARD auto to_string(const basic_memory_buffer<Char, SIZE>& buf)
+-    -> std::basic_string<Char> {
+-  auto size = buf.size();
+-  detail::assume(size < std::basic_string<Char>().max_size());
+-  return std::basic_string<Char>(buf.data(), size);
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename Char>
+-void vformat_to(
+-    buffer<Char>& buf, basic_string_view<Char> fmt,
+-    basic_format_args<FMT_BUFFER_CONTEXT(type_identity_t<Char>)> args,
+-    locale_ref loc) {
+-  // workaround for msvc bug regarding name-lookup in module
+-  // link names into function scope
+-  using detail::arg_formatter;
+-  using detail::buffer_appender;
+-  using detail::custom_formatter;
+-  using detail::default_arg_formatter;
+-  using detail::get_arg;
+-  using detail::locale_ref;
+-  using detail::parse_format_specs;
+-  using detail::specs_checker;
+-  using detail::specs_handler;
+-  using detail::to_unsigned;
+-  using detail::type;
+-  using detail::write;
+-  auto out = buffer_appender<Char>(buf);
+-  if (fmt.size() == 2 && equal2(fmt.data(), "{}")) {
+-    auto arg = args.get(0);
+-    if (!arg) error_handler().on_error("argument not found");
+-    visit_format_arg(default_arg_formatter<Char>{out, args, loc}, arg);
+-    return;
+-  }
+-
+-  struct format_handler : error_handler {
+-    basic_format_parse_context<Char> parse_context;
+-    buffer_context<Char> context;
+-
+-    format_handler(buffer_appender<Char> out, basic_string_view<Char> str,
+-                   basic_format_args<buffer_context<Char>> args, locale_ref loc)
+-        : parse_context(str), context(out, args, loc) {}
+-
+-    void on_text(const Char* begin, const Char* end) {
+-      auto text = basic_string_view<Char>(begin, to_unsigned(end - begin));
+-      context.advance_to(write<Char>(context.out(), text));
+-    }
+-
+-    FMT_CONSTEXPR auto on_arg_id() -> int {
+-      return parse_context.next_arg_id();
+-    }
+-    FMT_CONSTEXPR auto on_arg_id(int id) -> int {
+-      return parse_context.check_arg_id(id), id;
+-    }
+-    FMT_CONSTEXPR auto on_arg_id(basic_string_view<Char> id) -> int {
+-      int arg_id = context.arg_id(id);
+-      if (arg_id < 0) on_error("argument not found");
+-      return arg_id;
+-    }
+-
+-    FMT_INLINE void on_replacement_field(int id, const Char*) {
+-      auto arg = get_arg(context, id);
+-      context.advance_to(visit_format_arg(
+-          default_arg_formatter<Char>{context.out(), context.args(),
+-                                      context.locale()},
+-          arg));
+-    }
+-
+-    auto on_format_specs(int id, const Char* begin, const Char* end)
+-        -> const Char* {
+-      auto arg = get_arg(context, id);
+-      if (arg.type() == type::custom_type) {
+-        parse_context.advance_to(parse_context.begin() +
+-                                 (begin - &*parse_context.begin()));
+-        visit_format_arg(custom_formatter<Char>{parse_context, context}, arg);
+-        return parse_context.begin();
+-      }
+-      auto specs = basic_format_specs<Char>();
+-      specs_checker<specs_handler<Char>> handler(
+-          specs_handler<Char>(specs, parse_context, context), arg.type());
+-      begin = parse_format_specs(begin, end, handler);
+-      if (begin == end || *begin != '}')
+-        on_error("missing '}' in format string");
+-      auto f = arg_formatter<Char>{context.out(), specs, context.locale()};
+-      context.advance_to(visit_format_arg(f, arg));
+-      return begin;
+-    }
+-  };
+-  detail::parse_format_string<false>(fmt, format_handler(out, fmt, args, loc));
+-}
+-
+-#ifndef FMT_HEADER_ONLY
+-extern template FMT_API auto thousands_sep_impl<char>(locale_ref)
+-    -> thousands_sep_result<char>;
+-extern template FMT_API auto thousands_sep_impl<wchar_t>(locale_ref)
+-    -> thousands_sep_result<wchar_t>;
+-extern template FMT_API auto decimal_point_impl(locale_ref) -> char;
+-extern template FMT_API auto decimal_point_impl(locale_ref) -> wchar_t;
+-extern template auto format_float<double>(double value, int precision,
+-                                          float_specs specs, buffer<char>& buf)
+-    -> int;
+-extern template auto format_float<long double>(long double value, int precision,
+-                                               float_specs specs,
+-                                               buffer<char>& buf) -> int;
+-void snprintf_float(float, int, float_specs, buffer<char>&) = delete;
+-extern template auto snprintf_float<double>(double value, int precision,
+-                                            float_specs specs,
+-                                            buffer<char>& buf) -> int;
+-extern template auto snprintf_float<long double>(long double value,
+-                                                 int precision,
+-                                                 float_specs specs,
+-                                                 buffer<char>& buf) -> int;
+-#endif  // FMT_HEADER_ONLY
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-#if FMT_USE_USER_DEFINED_LITERALS
+-inline namespace literals {
+-/**
+-  \rst
+-  User-defined literal equivalent of :func:`fmt::arg`.
+-
+-  **Example**::
+-
+-    using namespace fmt::literals;
+-    fmt::print("Elapsed time: {s:.2f} seconds", "s"_a=1.23);
+-  \endrst
+- */
+-#  if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <detail_exported::fixed_string Str>
+-constexpr auto operator""_a()
+-    -> detail::udl_arg<remove_cvref_t<decltype(Str.data[0])>,
+-                       sizeof(Str.data) / sizeof(decltype(Str.data[0])), Str> {
+-  return {};
+-}
+-#  else
+-constexpr auto operator"" _a(const char* s, size_t) -> detail::udl_arg<char> {
+-  return {s};
+-}
+-#  endif
+-
+-// DEPRECATED!
+-// User-defined literal equivalent of fmt::format.
+-FMT_DEPRECATED constexpr auto operator"" _format(const char* s, size_t n)
+-    -> detail::udl_formatter<char> {
+-  return {{s, n}};
+-}
+-}  // namespace literals
+-#endif  // FMT_USE_USER_DEFINED_LITERALS
+-
+-template <typename Locale, FMT_ENABLE_IF(detail::is_locale<Locale>::value)>
+-inline auto vformat(const Locale& loc, string_view fmt, format_args args)
+-    -> std::string {
+-  return detail::vformat(loc, fmt, args);
+-}
+-
+-template <typename Locale, typename... T,
+-          FMT_ENABLE_IF(detail::is_locale<Locale>::value)>
+-inline auto format(const Locale& loc, format_string<T...> fmt, T&&... args)
+-    -> std::string {
+-  return vformat(loc, string_view(fmt), fmt::make_format_args(args...));
+-}
+-
+-template <typename... T, size_t SIZE, typename Allocator>
+-FMT_DEPRECATED auto format_to(basic_memory_buffer<char, SIZE, Allocator>& buf,
+-                              format_string<T...> fmt, T&&... args)
+-    -> appender {
+-  detail::vformat_to(buf, string_view(fmt), fmt::make_format_args(args...));
+-  return appender(buf);
+-}
+-
+-template <typename OutputIt, typename Locale,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value&&
+-                            detail::is_locale<Locale>::value)>
+-auto vformat_to(OutputIt out, const Locale& loc, string_view fmt,
+-                format_args args) -> OutputIt {
+-  using detail::get_buffer;
+-  auto&& buf = get_buffer<char>(out);
+-  detail::vformat_to(buf, fmt, args, detail::locale_ref(loc));
+-  return detail::get_iterator(buf);
+-}
+-
+-template <typename OutputIt, typename Locale, typename... T,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value&&
+-                            detail::is_locale<Locale>::value)>
+-FMT_INLINE auto format_to(OutputIt out, const Locale& loc,
+-                          format_string<T...> fmt, T&&... args) -> OutputIt {
+-  return vformat_to(out, loc, fmt, fmt::make_format_args(args...));
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#ifdef FMT_DEPRECATED_INCLUDE_XCHAR
+-#  include "xchar.h"
+-#endif
+-
+-#ifdef FMT_HEADER_ONLY
+-#  define FMT_FUNC inline
+-#  include "format-inl.h"
+-#else
+-#  define FMT_FUNC
+-#endif
+-
+-#endif  // FMT_FORMAT_H_
+diff --git a/include/dpp/fmt/locale.h b/include/dpp/fmt/locale.h
+deleted file mode 100644
+index 7571b52..0000000
+--- a/include/dpp/fmt/locale.h
++++ /dev/null
+@@ -1,2 +0,0 @@
+-#include "xchar.h"
+-#warning fmt/locale.h is deprecated, include fmt/format.h or fmt/xchar.h instead
+diff --git a/include/dpp/fmt/os.h b/include/dpp/fmt/os.h
+deleted file mode 100644
+index b64f8bb..0000000
+--- a/include/dpp/fmt/os.h
++++ /dev/null
+@@ -1,527 +0,0 @@
+-// Formatting library for C++ - optional OS-specific functionality
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_OS_H_
+-#define FMT_OS_H_
+-
+-#include <cerrno>
+-#include <clocale>  // locale_t
+-#include <cstddef>
+-#include <cstdio>
+-#include <cstdlib>       // strtod_l
+-#include <system_error>  // std::system_error
+-
+-#if defined __APPLE__ || defined(__FreeBSD__)
+-#  include <xlocale.h>  // for LC_NUMERIC_MASK on OS X
+-#endif
+-
+-#include "format.h"
+-
+-#ifndef FMT_USE_FCNTL
+-// UWP doesn't provide _pipe.
+-#  if FMT_HAS_INCLUDE("winapifamily.h")
+-#    include <winapifamily.h>
+-#  endif
+-#  if (FMT_HAS_INCLUDE(<fcntl.h>) || defined(__APPLE__) || \
+-       defined(__linux__)) &&                              \
+-      (!defined(WINAPI_FAMILY) ||                          \
+-       (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP))
+-#    include <fcntl.h>  // for O_RDONLY
+-#    define FMT_USE_FCNTL 1
+-#  else
+-#    define FMT_USE_FCNTL 0
+-#  endif
+-#endif
+-
+-#ifndef FMT_POSIX
+-#  if defined(_WIN32) && !defined(__MINGW32__)
+-// Fix warnings about deprecated symbols.
+-#    define FMT_POSIX(call) _##call
+-#  else
+-#    define FMT_POSIX(call) call
+-#  endif
+-#endif
+-
+-// Calls to system functions are wrapped in FMT_SYSTEM for testability.
+-#ifdef FMT_SYSTEM
+-#  define FMT_POSIX_CALL(call) FMT_SYSTEM(call)
+-#else
+-#  define FMT_SYSTEM(call) ::call
+-#  ifdef _WIN32
+-// Fix warnings about deprecated symbols.
+-#    define FMT_POSIX_CALL(call) ::_##call
+-#  else
+-#    define FMT_POSIX_CALL(call) ::call
+-#  endif
+-#endif
+-
+-// Retries the expression while it evaluates to error_result and errno
+-// equals to EINTR.
+-#ifndef _WIN32
+-#  define FMT_RETRY_VAL(result, expression, error_result) \
+-    do {                                                  \
+-      (result) = (expression);                            \
+-    } while ((result) == (error_result) && errno == EINTR)
+-#else
+-#  define FMT_RETRY_VAL(result, expression, error_result) result = (expression)
+-#endif
+-
+-#define FMT_RETRY(result, expression) FMT_RETRY_VAL(result, expression, -1)
+-
+-FMT_BEGIN_NAMESPACE
+-FMT_MODULE_EXPORT_BEGIN
+-
+-/**
+-  \rst
+-  A reference to a null-terminated string. It can be constructed from a C
+-  string or ``std::string``.
+-
+-  You can use one of the following type aliases for common character types:
+-
+-  +---------------+-----------------------------+
+-  | Type          | Definition                  |
+-  +===============+=============================+
+-  | cstring_view  | basic_cstring_view<char>    |
+-  +---------------+-----------------------------+
+-  | wcstring_view | basic_cstring_view<wchar_t> |
+-  +---------------+-----------------------------+
+-
+-  This class is most useful as a parameter type to allow passing
+-  different types of strings to a function, for example::
+-
+-    template <typename... Args>
+-    std::string format(cstring_view format_str, const Args & ... args);
+-
+-    format("{}", 42);
+-    format(std::string("{}"), 42);
+-  \endrst
+- */
+-template <typename Char> class basic_cstring_view {
+- private:
+-  const Char* data_;
+-
+- public:
+-  /** Constructs a string reference object from a C string. */
+-  basic_cstring_view(const Char* s) : data_(s) {}
+-
+-  /**
+-    \rst
+-    Constructs a string reference from an ``std::string`` object.
+-    \endrst
+-   */
+-  basic_cstring_view(const std::basic_string<Char>& s) : data_(s.c_str()) {}
+-
+-  /** Returns the pointer to a C string. */
+-  const Char* c_str() const { return data_; }
+-};
+-
+-using cstring_view = basic_cstring_view<char>;
+-using wcstring_view = basic_cstring_view<wchar_t>;
+-
+-template <typename Char> struct formatter<std::error_code, Char> {
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <typename FormatContext>
+-  FMT_CONSTEXPR auto format(const std::error_code& ec, FormatContext& ctx) const
+-      -> decltype(ctx.out()) {
+-    auto out = ctx.out();
+-    out = detail::write_bytes(out, ec.category().name(),
+-                              basic_format_specs<Char>());
+-    out = detail::write<Char>(out, Char(':'));
+-    out = detail::write<Char>(out, ec.value());
+-    return out;
+-  }
+-};
+-
+-#ifdef _WIN32
+-FMT_API const std::error_category& system_category() FMT_NOEXCEPT;
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-// A converter from UTF-16 to UTF-8.
+-// It is only provided for Windows since other systems support UTF-8 natively.
+-class utf16_to_utf8 {
+- private:
+-  memory_buffer buffer_;
+-
+- public:
+-  utf16_to_utf8() {}
+-  FMT_API explicit utf16_to_utf8(basic_string_view<wchar_t> s);
+-  operator string_view() const { return string_view(&buffer_[0], size()); }
+-  size_t size() const { return buffer_.size() - 1; }
+-  const char* c_str() const { return &buffer_[0]; }
+-  std::string str() const { return std::string(&buffer_[0], size()); }
+-
+-  // Performs conversion returning a system error code instead of
+-  // throwing exception on conversion error. This method may still throw
+-  // in case of memory allocation error.
+-  FMT_API int convert(basic_string_view<wchar_t> s);
+-};
+-
+-FMT_API void format_windows_error(buffer<char>& out, int error_code,
+-                                  const char* message) FMT_NOEXCEPT;
+-FMT_END_DETAIL_NAMESPACE
+-
+-FMT_API std::system_error vwindows_error(int error_code, string_view format_str,
+-                                         format_args args);
+-
+-/**
+- \rst
+- Constructs a :class:`std::system_error` object with the description
+- of the form
+-
+- .. parsed-literal::
+-   *<message>*: *<system-message>*
+-
+- where *<message>* is the formatted message and *<system-message>* is the
+- system message corresponding to the error code.
+- *error_code* is a Windows error code as given by ``GetLastError``.
+- If *error_code* is not a valid error code such as -1, the system message
+- will look like "error -1".
+-
+- **Example**::
+-
+-   // This throws a system_error with the description
+-   //   cannot open file 'madeup': The system cannot find the file specified.
+-   // or similar (system message may vary).
+-   const char *filename = "madeup";
+-   LPOFSTRUCT of = LPOFSTRUCT();
+-   HFILE file = OpenFile(filename, &of, OF_READ);
+-   if (file == HFILE_ERROR) {
+-     throw fmt::windows_error(GetLastError(),
+-                              "cannot open file '{}'", filename);
+-   }
+- \endrst
+-*/
+-template <typename... Args>
+-std::system_error windows_error(int error_code, string_view message,
+-                                const Args&... args) {
+-  return vwindows_error(error_code, message, fmt::make_format_args(args...));
+-}
+-
+-// Reports a Windows error without throwing an exception.
+-// Can be used to report errors from destructors.
+-FMT_API void report_windows_error(int error_code,
+-                                  const char* message) FMT_NOEXCEPT;
+-#else
+-inline const std::error_category& system_category() FMT_NOEXCEPT {
+-  return std::system_category();
+-}
+-#endif  // _WIN32
+-
+-// std::system is not available on some platforms such as iOS (#2248).
+-#ifdef __OSX__
+-template <typename S, typename... Args, typename Char = char_t<S>>
+-void say(const S& format_str, Args&&... args) {
+-  std::system(format("say \"{}\"", format(format_str, args...)).c_str());
+-}
+-#endif
+-
+-// A buffered file.
+-class buffered_file {
+- private:
+-  FILE* file_;
+-
+-  friend class file;
+-
+-  explicit buffered_file(FILE* f) : file_(f) {}
+-
+- public:
+-  buffered_file(const buffered_file&) = delete;
+-  void operator=(const buffered_file&) = delete;
+-
+-  // Constructs a buffered_file object which doesn't represent any file.
+-  buffered_file() FMT_NOEXCEPT : file_(nullptr) {}
+-
+-  // Destroys the object closing the file it represents if any.
+-  FMT_API ~buffered_file() FMT_NOEXCEPT;
+-
+- public:
+-  buffered_file(buffered_file&& other) FMT_NOEXCEPT : file_(other.file_) {
+-    other.file_ = nullptr;
+-  }
+-
+-  buffered_file& operator=(buffered_file&& other) {
+-    close();
+-    file_ = other.file_;
+-    other.file_ = nullptr;
+-    return *this;
+-  }
+-
+-  // Opens a file.
+-  FMT_API buffered_file(cstring_view filename, cstring_view mode);
+-
+-  // Closes the file.
+-  FMT_API void close();
+-
+-  // Returns the pointer to a FILE object representing this file.
+-  FILE* get() const FMT_NOEXCEPT { return file_; }
+-
+-  // We place parentheses around fileno to workaround a bug in some versions
+-  // of MinGW that define fileno as a macro.
+-  FMT_API int(fileno)() const;
+-
+-  void vprint(string_view format_str, format_args args) {
+-    fmt::vprint(file_, format_str, args);
+-  }
+-
+-  template <typename... Args>
+-  inline void print(string_view format_str, const Args&... args) {
+-    vprint(format_str, fmt::make_format_args(args...));
+-  }
+-};
+-
+-#if FMT_USE_FCNTL
+-// A file. Closed file is represented by a file object with descriptor -1.
+-// Methods that are not declared with FMT_NOEXCEPT may throw
+-// fmt::system_error in case of failure. Note that some errors such as
+-// closing the file multiple times will cause a crash on Windows rather
+-// than an exception. You can get standard behavior by overriding the
+-// invalid parameter handler with _set_invalid_parameter_handler.
+-class file {
+- private:
+-  int fd_;  // File descriptor.
+-
+-  // Constructs a file object with a given descriptor.
+-  explicit file(int fd) : fd_(fd) {}
+-
+- public:
+-  // Possible values for the oflag argument to the constructor.
+-  enum {
+-    RDONLY = FMT_POSIX(O_RDONLY),  // Open for reading only.
+-    WRONLY = FMT_POSIX(O_WRONLY),  // Open for writing only.
+-    RDWR = FMT_POSIX(O_RDWR),      // Open for reading and writing.
+-    CREATE = FMT_POSIX(O_CREAT),   // Create if the file doesn't exist.
+-    APPEND = FMT_POSIX(O_APPEND),  // Open in append mode.
+-    TRUNC = FMT_POSIX(O_TRUNC)     // Truncate the content of the file.
+-  };
+-
+-  // Constructs a file object which doesn't represent any file.
+-  file() FMT_NOEXCEPT : fd_(-1) {}
+-
+-  // Opens a file and constructs a file object representing this file.
+-  FMT_API file(cstring_view path, int oflag);
+-
+- public:
+-  file(const file&) = delete;
+-  void operator=(const file&) = delete;
+-
+-  file(file&& other) FMT_NOEXCEPT : fd_(other.fd_) { other.fd_ = -1; }
+-
+-  // Move assignment is not noexcept because close may throw.
+-  file& operator=(file&& other) {
+-    close();
+-    fd_ = other.fd_;
+-    other.fd_ = -1;
+-    return *this;
+-  }
+-
+-  // Destroys the object closing the file it represents if any.
+-  FMT_API ~file() FMT_NOEXCEPT;
+-
+-  // Returns the file descriptor.
+-  int descriptor() const FMT_NOEXCEPT { return fd_; }
+-
+-  // Closes the file.
+-  FMT_API void close();
+-
+-  // Returns the file size. The size has signed type for consistency with
+-  // stat::st_size.
+-  FMT_API long long size() const;
+-
+-  // Attempts to read count bytes from the file into the specified buffer.
+-  FMT_API size_t read(void* buffer, size_t count);
+-
+-  // Attempts to write count bytes from the specified buffer to the file.
+-  FMT_API size_t write(const void* buffer, size_t count);
+-
+-  // Duplicates a file descriptor with the dup function and returns
+-  // the duplicate as a file object.
+-  FMT_API static file dup(int fd);
+-
+-  // Makes fd be the copy of this file descriptor, closing fd first if
+-  // necessary.
+-  FMT_API void dup2(int fd);
+-
+-  // Makes fd be the copy of this file descriptor, closing fd first if
+-  // necessary.
+-  FMT_API void dup2(int fd, std::error_code& ec) FMT_NOEXCEPT;
+-
+-  // Creates a pipe setting up read_end and write_end file objects for reading
+-  // and writing respectively.
+-  FMT_API static void pipe(file& read_end, file& write_end);
+-
+-  // Creates a buffered_file object associated with this file and detaches
+-  // this file object from the file.
+-  FMT_API buffered_file fdopen(const char* mode);
+-};
+-
+-// Returns the memory page size.
+-long getpagesize();
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-struct buffer_size {
+-  buffer_size() = default;
+-  size_t value = 0;
+-  buffer_size operator=(size_t val) const {
+-    auto bs = buffer_size();
+-    bs.value = val;
+-    return bs;
+-  }
+-};
+-
+-struct ostream_params {
+-  int oflag = file::WRONLY | file::CREATE | file::TRUNC;
+-  size_t buffer_size = BUFSIZ > 32768 ? BUFSIZ : 32768;
+-
+-  ostream_params() {}
+-
+-  template <typename... T>
+-  ostream_params(T... params, int new_oflag) : ostream_params(params...) {
+-    oflag = new_oflag;
+-  }
+-
+-  template <typename... T>
+-  ostream_params(T... params, detail::buffer_size bs)
+-      : ostream_params(params...) {
+-    this->buffer_size = bs.value;
+-  }
+-
+-// Intel has a bug that results in failure to deduce a constructor
+-// for empty parameter packs.
+-#  if defined(__INTEL_COMPILER) && __INTEL_COMPILER < 2000
+-  ostream_params(int new_oflag) : oflag(new_oflag) {}
+-  ostream_params(detail::buffer_size bs) : buffer_size(bs.value) {}
+-#  endif
+-};
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-// Added {} below to work around default constructor error known to
+-// occur in Xcode versions 7.2.1 and 8.2.1.
+-constexpr detail::buffer_size buffer_size{};
+-
+-/** A fast output stream which is not thread-safe. */
+-class FMT_API ostream final : private detail::buffer<char> {
+- private:
+-  file file_;
+-
+-  void grow(size_t) override;
+-
+-  ostream(cstring_view path, const detail::ostream_params& params)
+-      : file_(path, params.oflag) {
+-    set(new char[params.buffer_size], params.buffer_size);
+-  }
+-
+- public:
+-  ostream(ostream&& other)
+-      : detail::buffer<char>(other.data(), other.size(), other.capacity()),
+-        file_(std::move(other.file_)) {
+-    other.clear();
+-    other.set(nullptr, 0);
+-  }
+-  ~ostream() {
+-    flush();
+-    delete[] data();
+-  }
+-
+-  void flush() {
+-    if (size() == 0) return;
+-    file_.write(data(), size());
+-    clear();
+-  }
+-
+-  template <typename... T>
+-  friend ostream output_file(cstring_view path, T... params);
+-
+-  void close() {
+-    flush();
+-    file_.close();
+-  }
+-
+-  /**
+-    Formats ``args`` according to specifications in ``fmt`` and writes the
+-    output to the file.
+-   */
+-  template <typename... T> void print(format_string<T...> fmt, T&&... args) {
+-    vformat_to(detail::buffer_appender<char>(*this), fmt,
+-               fmt::make_format_args(args...));
+-  }
+-};
+-
+-/**
+-  \rst
+-  Opens a file for writing. Supported parameters passed in *params*:
+-
+-  * ``<integer>``: Flags passed to `open
+-    <https://pubs.opengroup.org/onlinepubs/007904875/functions/open.html>`_
+-    (``file::WRONLY | file::CREATE`` by default)
+-  * ``buffer_size=<integer>``: Output buffer size
+-
+-  **Example**::
+-
+-    auto out = fmt::output_file("guide.txt");
+-    out.print("Don't {}", "Panic");
+-  \endrst
+- */
+-template <typename... T>
+-inline ostream output_file(cstring_view path, T... params) {
+-  return {path, detail::ostream_params(params...)};
+-}
+-#endif  // FMT_USE_FCNTL
+-
+-#ifdef FMT_LOCALE
+-// A "C" numeric locale.
+-class locale {
+- private:
+-#  ifdef _WIN32
+-  using locale_t = _locale_t;
+-
+-  static void freelocale(locale_t loc) { _free_locale(loc); }
+-
+-  static double strtod_l(const char* nptr, char** endptr, _locale_t loc) {
+-    return _strtod_l(nptr, endptr, loc);
+-  }
+-#  endif
+-
+-  locale_t locale_;
+-
+- public:
+-  using type = locale_t;
+-  locale(const locale&) = delete;
+-  void operator=(const locale&) = delete;
+-
+-  locale() {
+-#  ifndef _WIN32
+-    locale_ = FMT_SYSTEM(newlocale(LC_NUMERIC_MASK, "C", nullptr));
+-#  else
+-    locale_ = _create_locale(LC_NUMERIC, "C");
+-#  endif
+-    if (!locale_) FMT_THROW(system_error(errno, "cannot create locale"));
+-  }
+-  ~locale() { freelocale(locale_); }
+-
+-  type get() const { return locale_; }
+-
+-  // Converts string to floating-point number and advances str past the end
+-  // of the parsed input.
+-  FMT_DEPRECATED double strtod(const char*& str) const {
+-    char* end = nullptr;
+-    double result = strtod_l(str, &end, locale_);
+-    str = end;
+-    return result;
+-  }
+-};
+-using Locale FMT_DEPRECATED_ALIAS = locale;
+-#endif  // FMT_LOCALE
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_OS_H_
+diff --git a/include/dpp/fmt/ostream.h b/include/dpp/fmt/ostream.h
+deleted file mode 100644
+index 3d716ec..0000000
+--- a/include/dpp/fmt/ostream.h
++++ /dev/null
+@@ -1,135 +0,0 @@
+-// Formatting library for C++ - std::ostream support
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_OSTREAM_H_
+-#define FMT_OSTREAM_H_
+-
+-#include <ostream>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-
+-template <typename OutputIt, typename Char> class basic_printf_context;
+-
+-namespace detail {
+-
+-// Checks if T has a user-defined operator<<.
+-template <typename T, typename Char, typename Enable = void>
+-class is_streamable {
+- private:
+-  template <typename U>
+-  static auto test(int)
+-      -> bool_constant<sizeof(std::declval<std::basic_ostream<Char>&>()
+-                              << std::declval<U>()) != 0>;
+-
+-  template <typename> static auto test(...) -> std::false_type;
+-
+-  using result = decltype(test<T>(0));
+-
+- public:
+-  is_streamable() = default;
+-
+-  static const bool value = result::value;
+-};
+-
+-// Formatting of built-in types and arrays is intentionally disabled because
+-// it's handled by standard (non-ostream) formatters.
+-template <typename T, typename Char>
+-struct is_streamable<
+-    T, Char,
+-    enable_if_t<
+-        std::is_arithmetic<T>::value || std::is_array<T>::value ||
+-        std::is_pointer<T>::value || std::is_same<T, char8_type>::value ||
+-        std::is_same<T, std::basic_string<Char>>::value ||
+-        std::is_same<T, std_string_view<Char>>::value ||
+-        (std::is_convertible<T, int>::value && !std::is_enum<T>::value)>>
+-    : std::false_type {};
+-
+-// Write the content of buf to os.
+-// It is a separate function rather than a part of vprint to simplify testing.
+-template <typename Char>
+-void write_buffer(std::basic_ostream<Char>& os, buffer<Char>& buf) {
+-  const Char* buf_data = buf.data();
+-  using unsigned_streamsize = std::make_unsigned<std::streamsize>::type;
+-  unsigned_streamsize size = buf.size();
+-  unsigned_streamsize max_size = to_unsigned(max_value<std::streamsize>());
+-  do {
+-    unsigned_streamsize n = size <= max_size ? size : max_size;
+-    os.write(buf_data, static_cast<std::streamsize>(n));
+-    buf_data += n;
+-    size -= n;
+-  } while (size != 0);
+-}
+-
+-template <typename Char, typename T>
+-void format_value(buffer<Char>& buf, const T& value,
+-                  locale_ref loc = locale_ref()) {
+-  auto&& format_buf = formatbuf<std::basic_streambuf<Char>>(buf);
+-  auto&& output = std::basic_ostream<Char>(&format_buf);
+-#if !defined(FMT_STATIC_THOUSANDS_SEPARATOR)
+-  if (loc) output.imbue(loc.get<std::locale>());
+-#endif
+-  output << value;
+-  output.exceptions(std::ios_base::failbit | std::ios_base::badbit);
+-  buf.try_resize(buf.size());
+-}
+-
+-// Formats an object of type T that has an overloaded ostream operator<<.
+-template <typename T, typename Char>
+-struct fallback_formatter<T, Char, enable_if_t<is_streamable<T, Char>::value>>
+-    : private formatter<basic_string_view<Char>, Char> {
+-  using formatter<basic_string_view<Char>, Char>::parse;
+-
+-  template <typename OutputIt>
+-  auto format(const T& value, basic_format_context<OutputIt, Char>& ctx)
+-      -> OutputIt {
+-    auto buffer = basic_memory_buffer<Char>();
+-    format_value(buffer, value, ctx.locale());
+-    return formatter<basic_string_view<Char>, Char>::format(
+-        {buffer.data(), buffer.size()}, ctx);
+-  }
+-
+-  // DEPRECATED!
+-  template <typename OutputIt>
+-  auto format(const T& value, basic_printf_context<OutputIt, Char>& ctx)
+-      -> OutputIt {
+-    auto buffer = basic_memory_buffer<Char>();
+-    format_value(buffer, value, ctx.locale());
+-    return std::copy(buffer.begin(), buffer.end(), ctx.out());
+-  }
+-};
+-}  // namespace detail
+-
+-FMT_MODULE_EXPORT
+-template <typename Char>
+-void vprint(std::basic_ostream<Char>& os, basic_string_view<Char> format_str,
+-            basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  auto buffer = basic_memory_buffer<Char>();
+-  detail::vformat_to(buffer, format_str, args);
+-  detail::write_buffer(os, buffer);
+-}
+-
+-/**
+-  \rst
+-  Prints formatted data to the stream *os*.
+-
+-  **Example**::
+-
+-    fmt::print(cerr, "Don't {}!", "panic");
+-  \endrst
+- */
+-FMT_MODULE_EXPORT
+-template <typename S, typename... Args,
+-          typename Char = enable_if_t<detail::is_string<S>::value, char_t<S>>>
+-void print(std::basic_ostream<Char>& os, const S& format_str, Args&&... args) {
+-  vprint(os, to_string_view(format_str),
+-         fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_OSTREAM_H_
+diff --git a/include/dpp/fmt/printf.h b/include/dpp/fmt/printf.h
+deleted file mode 100644
+index 19d550f..0000000
+--- a/include/dpp/fmt/printf.h
++++ /dev/null
+@@ -1,657 +0,0 @@
+-// Formatting library for C++ - legacy printf implementation
+-//
+-// Copyright (c) 2012 - 2016, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_PRINTF_H_
+-#define FMT_PRINTF_H_
+-
+-#include <algorithm>  // std::max
+-#include <limits>     // std::numeric_limits
+-#include <ostream>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-FMT_MODULE_EXPORT_BEGIN
+-
+-template <typename T> struct printf_formatter { printf_formatter() = delete; };
+-
+-template <typename Char>
+-class basic_printf_parse_context : public basic_format_parse_context<Char> {
+-  using basic_format_parse_context<Char>::basic_format_parse_context;
+-};
+-
+-template <typename OutputIt, typename Char> class basic_printf_context {
+- private:
+-  OutputIt out_;
+-  basic_format_args<basic_printf_context> args_;
+-
+- public:
+-  using char_type = Char;
+-  using format_arg = basic_format_arg<basic_printf_context>;
+-  using parse_context_type = basic_printf_parse_context<Char>;
+-  template <typename T> using formatter_type = printf_formatter<T>;
+-
+-  /**
+-    \rst
+-    Constructs a ``printf_context`` object. References to the arguments are
+-    stored in the context object so make sure they have appropriate lifetimes.
+-    \endrst
+-   */
+-  basic_printf_context(OutputIt out,
+-                       basic_format_args<basic_printf_context> args)
+-      : out_(out), args_(args) {}
+-
+-  OutputIt out() { return out_; }
+-  void advance_to(OutputIt it) { out_ = it; }
+-
+-  detail::locale_ref locale() { return {}; }
+-
+-  format_arg arg(int id) const { return args_.get(id); }
+-
+-  FMT_CONSTEXPR void on_error(const char* message) {
+-    detail::error_handler().on_error(message);
+-  }
+-};
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// Checks if a value fits in int - used to avoid warnings about comparing
+-// signed and unsigned integers.
+-template <bool IsSigned> struct int_checker {
+-  template <typename T> static bool fits_in_int(T value) {
+-    unsigned max = max_value<int>();
+-    return value <= max;
+-  }
+-  static bool fits_in_int(bool) { return true; }
+-};
+-
+-template <> struct int_checker<true> {
+-  template <typename T> static bool fits_in_int(T value) {
+-    return value >= (std::numeric_limits<int>::min)() &&
+-           value <= max_value<int>();
+-  }
+-  static bool fits_in_int(int) { return true; }
+-};
+-
+-class printf_precision_handler {
+- public:
+-  template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-  int operator()(T value) {
+-    if (!int_checker<std::numeric_limits<T>::is_signed>::fits_in_int(value))
+-      FMT_THROW(format_error("number is too big"));
+-    return (std::max)(static_cast<int>(value), 0);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-  int operator()(T) {
+-    FMT_THROW(format_error("precision is not integer"));
+-    return 0;
+-  }
+-};
+-
+-// An argument visitor that returns true iff arg is a zero integer.
+-class is_zero_int {
+- public:
+-  template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-  bool operator()(T value) {
+-    return value == 0;
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-  bool operator()(T) {
+-    return false;
+-  }
+-};
+-
+-template <typename T> struct make_unsigned_or_bool : std::make_unsigned<T> {};
+-
+-template <> struct make_unsigned_or_bool<bool> { using type = bool; };
+-
+-template <typename T, typename Context> class arg_converter {
+- private:
+-  using char_type = typename Context::char_type;
+-
+-  basic_format_arg<Context>& arg_;
+-  char_type type_;
+-
+- public:
+-  arg_converter(basic_format_arg<Context>& arg, char_type type)
+-      : arg_(arg), type_(type) {}
+-
+-  void operator()(bool value) {
+-    if (type_ != 's') operator()<bool>(value);
+-  }
+-
+-  template <typename U, FMT_ENABLE_IF(std::is_integral<U>::value)>
+-  void operator()(U value) {
+-    bool is_signed = type_ == 'd' || type_ == 'i';
+-    using target_type = conditional_t<std::is_same<T, void>::value, U, T>;
+-    if (const_check(sizeof(target_type) <= sizeof(int))) {
+-      // Extra casts are used to silence warnings.
+-      if (is_signed) {
+-        arg_ = detail::make_arg<Context>(
+-            static_cast<int>(static_cast<target_type>(value)));
+-      } else {
+-        using unsigned_type = typename make_unsigned_or_bool<target_type>::type;
+-        arg_ = detail::make_arg<Context>(
+-            static_cast<unsigned>(static_cast<unsigned_type>(value)));
+-      }
+-    } else {
+-      if (is_signed) {
+-        // glibc's printf doesn't sign extend arguments of smaller types:
+-        //   std::printf("%lld", -42);  // prints "4294967254"
+-        // but we don't have to do the same because it's a UB.
+-        arg_ = detail::make_arg<Context>(static_cast<long long>(value));
+-      } else {
+-        arg_ = detail::make_arg<Context>(
+-            static_cast<typename make_unsigned_or_bool<U>::type>(value));
+-      }
+-    }
+-  }
+-
+-  template <typename U, FMT_ENABLE_IF(!std::is_integral<U>::value)>
+-  void operator()(U) {}  // No conversion needed for non-integral types.
+-};
+-
+-// Converts an integer argument to T for printf, if T is an integral type.
+-// If T is void, the argument is converted to corresponding signed or unsigned
+-// type depending on the type specifier: 'd' and 'i' - signed, other -
+-// unsigned).
+-template <typename T, typename Context, typename Char>
+-void convert_arg(basic_format_arg<Context>& arg, Char type) {
+-  visit_format_arg(arg_converter<T, Context>(arg, type), arg);
+-}
+-
+-// Converts an integer argument to char for printf.
+-template <typename Context> class char_converter {
+- private:
+-  basic_format_arg<Context>& arg_;
+-
+- public:
+-  explicit char_converter(basic_format_arg<Context>& arg) : arg_(arg) {}
+-
+-  template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-  void operator()(T value) {
+-    arg_ = detail::make_arg<Context>(
+-        static_cast<typename Context::char_type>(value));
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-  void operator()(T) {}  // No conversion needed for non-integral types.
+-};
+-
+-// An argument visitor that return a pointer to a C string if argument is a
+-// string or null otherwise.
+-template <typename Char> struct get_cstring {
+-  template <typename T> const Char* operator()(T) { return nullptr; }
+-  const Char* operator()(const Char* s) { return s; }
+-};
+-
+-// Checks if an argument is a valid printf width specifier and sets
+-// left alignment if it is negative.
+-template <typename Char> class printf_width_handler {
+- private:
+-  using format_specs = basic_format_specs<Char>;
+-
+-  format_specs& specs_;
+-
+- public:
+-  explicit printf_width_handler(format_specs& specs) : specs_(specs) {}
+-
+-  template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-  unsigned operator()(T value) {
+-    auto width = static_cast<uint32_or_64_or_128_t<T>>(value);
+-    if (detail::is_negative(value)) {
+-      specs_.align = align::left;
+-      width = 0 - width;
+-    }
+-    unsigned int_max = max_value<int>();
+-    if (width > int_max) FMT_THROW(format_error("number is too big"));
+-    return static_cast<unsigned>(width);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-  unsigned operator()(T) {
+-    FMT_THROW(format_error("width is not integer"));
+-    return 0;
+-  }
+-};
+-
+-// The ``printf`` argument formatter.
+-template <typename OutputIt, typename Char>
+-class printf_arg_formatter : public arg_formatter<Char> {
+- private:
+-  using base = arg_formatter<Char>;
+-  using context_type = basic_printf_context<OutputIt, Char>;
+-  using format_specs = basic_format_specs<Char>;
+-
+-  context_type& context_;
+-
+-  OutputIt write_null_pointer(bool is_string = false) {
+-    auto s = this->specs;
+-    s.type = presentation_type::none;
+-    return write_bytes(this->out, is_string ? "(null)" : "(nil)", s);
+-  }
+-
+- public:
+-  printf_arg_formatter(OutputIt iter, format_specs& s, context_type& ctx)
+-      : base{iter, s, locale_ref()}, context_(ctx) {}
+-
+-  OutputIt operator()(monostate value) { return base::operator()(value); }
+-
+-  template <typename T, FMT_ENABLE_IF(detail::is_integral<T>::value)>
+-  OutputIt operator()(T value) {
+-    // MSVC2013 fails to compile separate overloads for bool and Char so use
+-    // std::is_same instead.
+-    if (std::is_same<T, Char>::value) {
+-      format_specs fmt_specs = this->specs;
+-      if (fmt_specs.type != presentation_type::none &&
+-          fmt_specs.type != presentation_type::chr) {
+-        return (*this)(static_cast<int>(value));
+-      }
+-      fmt_specs.sign = sign::none;
+-      fmt_specs.alt = false;
+-      fmt_specs.fill[0] = ' ';  // Ignore '0' flag for char types.
+-      // align::numeric needs to be overwritten here since the '0' flag is
+-      // ignored for non-numeric types
+-      if (fmt_specs.align == align::none || fmt_specs.align == align::numeric)
+-        fmt_specs.align = align::right;
+-      return write<Char>(this->out, static_cast<Char>(value), fmt_specs);
+-    }
+-    return base::operator()(value);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-  OutputIt operator()(T value) {
+-    return base::operator()(value);
+-  }
+-
+-  /** Formats a null-terminated C string. */
+-  OutputIt operator()(const char* value) {
+-    if (value) return base::operator()(value);
+-    return write_null_pointer(this->specs.type != presentation_type::pointer);
+-  }
+-
+-  /** Formats a null-terminated wide C string. */
+-  OutputIt operator()(const wchar_t* value) {
+-    if (value) return base::operator()(value);
+-    return write_null_pointer(this->specs.type != presentation_type::pointer);
+-  }
+-
+-  OutputIt operator()(basic_string_view<Char> value) {
+-    return base::operator()(value);
+-  }
+-
+-  /** Formats a pointer. */
+-  OutputIt operator()(const void* value) {
+-    return value ? base::operator()(value) : write_null_pointer();
+-  }
+-
+-  /** Formats an argument of a custom (user-defined) type. */
+-  OutputIt operator()(typename basic_format_arg<context_type>::handle handle) {
+-    auto parse_ctx =
+-        basic_printf_parse_context<Char>(basic_string_view<Char>());
+-    handle.format(parse_ctx, context_);
+-    return this->out;
+-  }
+-};
+-
+-template <typename Char>
+-void parse_flags(basic_format_specs<Char>& specs, const Char*& it,
+-                 const Char* end) {
+-  for (; it != end; ++it) {
+-    switch (*it) {
+-    case '-':
+-      specs.align = align::left;
+-      break;
+-    case '+':
+-      specs.sign = sign::plus;
+-      break;
+-    case '0':
+-      specs.fill[0] = '0';
+-      break;
+-    case ' ':
+-      if (specs.sign != sign::plus) {
+-        specs.sign = sign::space;
+-      }
+-      break;
+-    case '#':
+-      specs.alt = true;
+-      break;
+-    default:
+-      return;
+-    }
+-  }
+-}
+-
+-template <typename Char, typename GetArg>
+-int parse_header(const Char*& it, const Char* end,
+-                 basic_format_specs<Char>& specs, GetArg get_arg) {
+-  int arg_index = -1;
+-  Char c = *it;
+-  if (c >= '0' && c <= '9') {
+-    // Parse an argument index (if followed by '$') or a width possibly
+-    // preceded with '0' flag(s).
+-    int value = parse_nonnegative_int(it, end, -1);
+-    if (it != end && *it == '$') {  // value is an argument index
+-      ++it;
+-      arg_index = value != -1 ? value : max_value<int>();
+-    } else {
+-      if (c == '0') specs.fill[0] = '0';
+-      if (value != 0) {
+-        // Nonzero value means that we parsed width and don't need to
+-        // parse it or flags again, so return now.
+-        if (value == -1) FMT_THROW(format_error("number is too big"));
+-        specs.width = value;
+-        return arg_index;
+-      }
+-    }
+-  }
+-  parse_flags(specs, it, end);
+-  // Parse width.
+-  if (it != end) {
+-    if (*it >= '0' && *it <= '9') {
+-      specs.width = parse_nonnegative_int(it, end, -1);
+-      if (specs.width == -1) FMT_THROW(format_error("number is too big"));
+-    } else if (*it == '*') {
+-      ++it;
+-      specs.width = static_cast<int>(visit_format_arg(
+-          detail::printf_width_handler<Char>(specs), get_arg(-1)));
+-    }
+-  }
+-  return arg_index;
+-}
+-
+-template <typename Char, typename Context>
+-void vprintf(buffer<Char>& buf, basic_string_view<Char> format,
+-             basic_format_args<Context> args) {
+-  using OutputIt = buffer_appender<Char>;
+-  auto out = OutputIt(buf);
+-  auto context = basic_printf_context<OutputIt, Char>(out, args);
+-  auto parse_ctx = basic_printf_parse_context<Char>(format);
+-
+-  // Returns the argument with specified index or, if arg_index is -1, the next
+-  // argument.
+-  auto get_arg = [&](int arg_index) {
+-    if (arg_index < 0)
+-      arg_index = parse_ctx.next_arg_id();
+-    else
+-      parse_ctx.check_arg_id(--arg_index);
+-    return detail::get_arg(context, arg_index);
+-  };
+-
+-  const Char* start = parse_ctx.begin();
+-  const Char* end = parse_ctx.end();
+-  auto it = start;
+-  while (it != end) {
+-    if (!detail::find<false, Char>(it, end, '%', it)) {
+-      it = end;  // detail::find leaves it == nullptr if it doesn't find '%'
+-      break;
+-    }
+-    Char c = *it++;
+-    if (it != end && *it == c) {
+-      out = detail::write(
+-          out, basic_string_view<Char>(start, detail::to_unsigned(it - start)));
+-      start = ++it;
+-      continue;
+-    }
+-    out = detail::write(out, basic_string_view<Char>(
+-                                 start, detail::to_unsigned(it - 1 - start)));
+-
+-    basic_format_specs<Char> specs;
+-    specs.align = align::right;
+-
+-    // Parse argument index, flags and width.
+-    int arg_index = parse_header(it, end, specs, get_arg);
+-    if (arg_index == 0) parse_ctx.on_error("argument not found");
+-
+-    // Parse precision.
+-    if (it != end && *it == '.') {
+-      ++it;
+-      c = it != end ? *it : 0;
+-      if ('0' <= c && c <= '9') {
+-        specs.precision = parse_nonnegative_int(it, end, 0);
+-      } else if (c == '*') {
+-        ++it;
+-        specs.precision = static_cast<int>(
+-            visit_format_arg(detail::printf_precision_handler(), get_arg(-1)));
+-      } else {
+-        specs.precision = 0;
+-      }
+-    }
+-
+-    auto arg = get_arg(arg_index);
+-    // For d, i, o, u, x, and X conversion specifiers, if a precision is
+-    // specified, the '0' flag is ignored
+-    if (specs.precision >= 0 && arg.is_integral())
+-      specs.fill[0] =
+-          ' ';  // Ignore '0' flag for non-numeric types or if '-' present.
+-    if (specs.precision >= 0 && arg.type() == detail::type::cstring_type) {
+-      auto str = visit_format_arg(detail::get_cstring<Char>(), arg);
+-      auto str_end = str + specs.precision;
+-      auto nul = std::find(str, str_end, Char());
+-      arg = detail::make_arg<basic_printf_context<OutputIt, Char>>(
+-          basic_string_view<Char>(
+-              str, detail::to_unsigned(nul != str_end ? nul - str
+-                                                      : specs.precision)));
+-    }
+-    if (specs.alt && visit_format_arg(detail::is_zero_int(), arg))
+-      specs.alt = false;
+-    if (specs.fill[0] == '0') {
+-      if (arg.is_arithmetic() && specs.align != align::left)
+-        specs.align = align::numeric;
+-      else
+-        specs.fill[0] = ' ';  // Ignore '0' flag for non-numeric types or if '-'
+-                              // flag is also present.
+-    }
+-
+-    // Parse length and convert the argument to the required type.
+-    c = it != end ? *it++ : 0;
+-    Char t = it != end ? *it : 0;
+-    using detail::convert_arg;
+-    switch (c) {
+-    case 'h':
+-      if (t == 'h') {
+-        ++it;
+-        t = it != end ? *it : 0;
+-        convert_arg<signed char>(arg, t);
+-      } else {
+-        convert_arg<short>(arg, t);
+-      }
+-      break;
+-    case 'l':
+-      if (t == 'l') {
+-        ++it;
+-        t = it != end ? *it : 0;
+-        convert_arg<long long>(arg, t);
+-      } else {
+-        convert_arg<long>(arg, t);
+-      }
+-      break;
+-    case 'j':
+-      convert_arg<intmax_t>(arg, t);
+-      break;
+-    case 'z':
+-      convert_arg<size_t>(arg, t);
+-      break;
+-    case 't':
+-      convert_arg<std::ptrdiff_t>(arg, t);
+-      break;
+-    case 'L':
+-      // printf produces garbage when 'L' is omitted for long double, no
+-      // need to do the same.
+-      break;
+-    default:
+-      --it;
+-      convert_arg<void>(arg, c);
+-    }
+-
+-    // Parse type.
+-    if (it == end) FMT_THROW(format_error("invalid format string"));
+-    char type = static_cast<char>(*it++);
+-    if (arg.is_integral()) {
+-      // Normalize type.
+-      switch (type) {
+-      case 'i':
+-      case 'u':
+-        type = 'd';
+-        break;
+-      case 'c':
+-        visit_format_arg(
+-            detail::char_converter<basic_printf_context<OutputIt, Char>>(arg),
+-            arg);
+-        break;
+-      }
+-    }
+-    specs.type = parse_presentation_type(type);
+-    if (specs.type == presentation_type::none)
+-      parse_ctx.on_error("invalid type specifier");
+-
+-    start = it;
+-
+-    // Format argument.
+-    out = visit_format_arg(
+-        detail::printf_arg_formatter<OutputIt, Char>(out, specs, context), arg);
+-  }
+-  detail::write(out, basic_string_view<Char>(start, to_unsigned(it - start)));
+-}
+-FMT_END_DETAIL_NAMESPACE
+-
+-template <typename Char>
+-using basic_printf_context_t =
+-    basic_printf_context<detail::buffer_appender<Char>, Char>;
+-
+-using printf_context = basic_printf_context_t<char>;
+-using wprintf_context = basic_printf_context_t<wchar_t>;
+-
+-using printf_args = basic_format_args<printf_context>;
+-using wprintf_args = basic_format_args<wprintf_context>;
+-
+-/**
+-  \rst
+-  Constructs an `~fmt::format_arg_store` object that contains references to
+-  arguments and can be implicitly converted to `~fmt::printf_args`.
+-  \endrst
+- */
+-template <typename... T>
+-inline auto make_printf_args(const T&... args)
+-    -> format_arg_store<printf_context, T...> {
+-  return {args...};
+-}
+-
+-/**
+-  \rst
+-  Constructs an `~fmt::format_arg_store` object that contains references to
+-  arguments and can be implicitly converted to `~fmt::wprintf_args`.
+-  \endrst
+- */
+-template <typename... T>
+-inline auto make_wprintf_args(const T&... args)
+-    -> format_arg_store<wprintf_context, T...> {
+-  return {args...};
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-inline auto vsprintf(
+-    const S& fmt,
+-    basic_format_args<basic_printf_context_t<type_identity_t<Char>>> args)
+-    -> std::basic_string<Char> {
+-  basic_memory_buffer<Char> buffer;
+-  vprintf(buffer, to_string_view(fmt), args);
+-  return to_string(buffer);
+-}
+-
+-/**
+-  \rst
+-  Formats arguments and returns the result as a string.
+-
+-  **Example**::
+-
+-    std::string message = fmt::sprintf("The answer is %d", 42);
+-  \endrst
+-*/
+-template <typename S, typename... T,
+-          typename Char = enable_if_t<detail::is_string<S>::value, char_t<S>>>
+-inline auto sprintf(const S& fmt, const T&... args) -> std::basic_string<Char> {
+-  using context = basic_printf_context_t<Char>;
+-  return vsprintf(to_string_view(fmt), fmt::make_format_args<context>(args...));
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-inline auto vfprintf(
+-    std::FILE* f, const S& fmt,
+-    basic_format_args<basic_printf_context_t<type_identity_t<Char>>> args)
+-    -> int {
+-  basic_memory_buffer<Char> buffer;
+-  vprintf(buffer, to_string_view(fmt), args);
+-  size_t size = buffer.size();
+-  return std::fwrite(buffer.data(), sizeof(Char), size, f) < size
+-             ? -1
+-             : static_cast<int>(size);
+-}
+-
+-/**
+-  \rst
+-  Prints formatted data to the file *f*.
+-
+-  **Example**::
+-
+-    fmt::fprintf(stderr, "Don't %s!", "panic");
+-  \endrst
+- */
+-template <typename S, typename... T, typename Char = char_t<S>>
+-inline auto fprintf(std::FILE* f, const S& fmt, const T&... args) -> int {
+-  using context = basic_printf_context_t<Char>;
+-  return vfprintf(f, to_string_view(fmt),
+-                  fmt::make_format_args<context>(args...));
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-inline auto vprintf(
+-    const S& fmt,
+-    basic_format_args<basic_printf_context_t<type_identity_t<Char>>> args)
+-    -> int {
+-  return vfprintf(stdout, to_string_view(fmt), args);
+-}
+-
+-/**
+-  \rst
+-  Prints formatted data to ``stdout``.
+-
+-  **Example**::
+-
+-    fmt::printf("Elapsed time: %.2f seconds", 1.23);
+-  \endrst
+- */
+-template <typename S, typename... T, FMT_ENABLE_IF(detail::is_string<S>::value)>
+-inline auto printf(const S& fmt, const T&... args) -> int {
+-  return vprintf(
+-      to_string_view(fmt),
+-      fmt::make_format_args<basic_printf_context_t<char_t<S>>>(args...));
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-FMT_DEPRECATED auto vfprintf(
+-    std::basic_ostream<Char>& os, const S& fmt,
+-    basic_format_args<basic_printf_context_t<type_identity_t<Char>>> args)
+-    -> int {
+-  basic_memory_buffer<Char> buffer;
+-  vprintf(buffer, to_string_view(fmt), args);
+-  os.write(buffer.data(), static_cast<std::streamsize>(buffer.size()));
+-  return static_cast<int>(buffer.size());
+-}
+-template <typename S, typename... T, typename Char = char_t<S>>
+-FMT_DEPRECATED auto fprintf(std::basic_ostream<Char>& os, const S& fmt,
+-                            const T&... args) -> int {
+-  return vfprintf(os, to_string_view(fmt),
+-                  fmt::make_format_args<basic_printf_context_t<Char>>(args...));
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_PRINTF_H_
+diff --git a/include/dpp/fmt/ranges.h b/include/dpp/fmt/ranges.h
+deleted file mode 100644
+index eb9fb8a..0000000
+--- a/include/dpp/fmt/ranges.h
++++ /dev/null
+@@ -1,793 +0,0 @@
+-// Formatting library for C++ - experimental range support
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-//
+-// Copyright (c) 2018 - present, Remotion (Igor Schulz)
+-// All Rights Reserved
+-// {fmt} support for ranges, containers and types tuple interface.
+-
+-#ifndef FMT_RANGES_H_
+-#define FMT_RANGES_H_
+-
+-#include <initializer_list>
+-#include <tuple>
+-#include <type_traits>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-
+-namespace detail {
+-
+-template <typename RangeT, typename OutputIterator>
+-OutputIterator copy(const RangeT& range, OutputIterator out) {
+-  for (auto it = range.begin(), end = range.end(); it != end; ++it)
+-    *out++ = *it;
+-  return out;
+-}
+-
+-template <typename OutputIterator>
+-OutputIterator copy(const char* str, OutputIterator out) {
+-  while (*str) *out++ = *str++;
+-  return out;
+-}
+-
+-template <typename OutputIterator>
+-OutputIterator copy(char ch, OutputIterator out) {
+-  *out++ = ch;
+-  return out;
+-}
+-
+-template <typename OutputIterator>
+-OutputIterator copy(wchar_t ch, OutputIterator out) {
+-  *out++ = ch;
+-  return out;
+-}
+-
+-// Returns true if T has a std::string-like interface, like std::string_view.
+-template <typename T> class is_std_string_like {
+-  template <typename U>
+-  static auto check(U* p)
+-      -> decltype((void)p->find('a'), p->length(), (void)p->data(), int());
+-  template <typename> static void check(...);
+-
+- public:
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      is_string<T>::value ||
+-      std::is_convertible<T, std_string_view<char>>::value ||
+-      !std::is_void<decltype(check<T>(nullptr))>::value;
+-};
+-
+-template <typename Char>
+-struct is_std_string_like<fmt::basic_string_view<Char>> : std::true_type {};
+-
+-template <typename T> class is_map {
+-  template <typename U> static auto check(U*) -> typename U::mapped_type;
+-  template <typename> static void check(...);
+-
+- public:
+-#ifdef FMT_FORMAT_MAP_AS_LIST
+-  static FMT_CONSTEXPR_DECL const bool value = false;
+-#else
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      !std::is_void<decltype(check<T>(nullptr))>::value;
+-#endif
+-};
+-
+-template <typename T> class is_set {
+-  template <typename U> static auto check(U*) -> typename U::key_type;
+-  template <typename> static void check(...);
+-
+- public:
+-#ifdef FMT_FORMAT_SET_AS_LIST
+-  static FMT_CONSTEXPR_DECL const bool value = false;
+-#else
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      !std::is_void<decltype(check<T>(nullptr))>::value && !is_map<T>::value;
+-#endif
+-};
+-
+-template <typename... Ts> struct conditional_helper {};
+-
+-template <typename T, typename _ = void> struct is_range_ : std::false_type {};
+-
+-#if !FMT_MSC_VER || FMT_MSC_VER > 1800
+-
+-#  define FMT_DECLTYPE_RETURN(val)  \
+-    ->decltype(val) { return val; } \
+-    static_assert(                  \
+-        true, "")  // This makes it so that a semicolon is required after the
+-                   // macro, which helps clang-format handle the formatting.
+-
+-// C array overload
+-template <typename T, std::size_t N>
+-auto range_begin(const T (&arr)[N]) -> const T* {
+-  return arr;
+-}
+-template <typename T, std::size_t N>
+-auto range_end(const T (&arr)[N]) -> const T* {
+-  return arr + N;
+-}
+-
+-template <typename T, typename Enable = void>
+-struct has_member_fn_begin_end_t : std::false_type {};
+-
+-template <typename T>
+-struct has_member_fn_begin_end_t<T, void_t<decltype(std::declval<T>().begin()),
+-                                           decltype(std::declval<T>().end())>>
+-    : std::true_type {};
+-
+-// Member function overload
+-template <typename T>
+-auto range_begin(T&& rng) FMT_DECLTYPE_RETURN(static_cast<T&&>(rng).begin());
+-template <typename T>
+-auto range_end(T&& rng) FMT_DECLTYPE_RETURN(static_cast<T&&>(rng).end());
+-
+-// ADL overload. Only participates in overload resolution if member functions
+-// are not found.
+-template <typename T>
+-auto range_begin(T&& rng)
+-    -> enable_if_t<!has_member_fn_begin_end_t<T&&>::value,
+-                   decltype(begin(static_cast<T&&>(rng)))> {
+-  return begin(static_cast<T&&>(rng));
+-}
+-template <typename T>
+-auto range_end(T&& rng) -> enable_if_t<!has_member_fn_begin_end_t<T&&>::value,
+-                                       decltype(end(static_cast<T&&>(rng)))> {
+-  return end(static_cast<T&&>(rng));
+-}
+-
+-template <typename T, typename Enable = void>
+-struct has_const_begin_end : std::false_type {};
+-template <typename T, typename Enable = void>
+-struct has_mutable_begin_end : std::false_type {};
+-
+-template <typename T>
+-struct has_const_begin_end<
+-    T,
+-    void_t<
+-        decltype(detail::range_begin(std::declval<const remove_cvref_t<T>&>())),
+-        decltype(detail::range_end(std::declval<const remove_cvref_t<T>&>()))>>
+-    : std::true_type {};
+-
+-template <typename T>
+-struct has_mutable_begin_end<
+-    T, void_t<decltype(detail::range_begin(std::declval<T>())),
+-              decltype(detail::range_end(std::declval<T>())),
+-              enable_if_t<std::is_copy_constructible<T>::value>>>
+-    : std::true_type {};
+-
+-template <typename T>
+-struct is_range_<T, void>
+-    : std::integral_constant<bool, (has_const_begin_end<T>::value ||
+-                                    has_mutable_begin_end<T>::value)> {};
+-#  undef FMT_DECLTYPE_RETURN
+-#endif
+-
+-// tuple_size and tuple_element check.
+-template <typename T> class is_tuple_like_ {
+-  template <typename U>
+-  static auto check(U* p) -> decltype(std::tuple_size<U>::value, int());
+-  template <typename> static void check(...);
+-
+- public:
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      !std::is_void<decltype(check<T>(nullptr))>::value;
+-};
+-
+-// Check for integer_sequence
+-#if defined(__cpp_lib_integer_sequence) || FMT_MSC_VER >= 1900
+-template <typename T, T... N>
+-using integer_sequence = std::integer_sequence<T, N...>;
+-template <size_t... N> using index_sequence = std::index_sequence<N...>;
+-template <size_t N> using make_index_sequence = std::make_index_sequence<N>;
+-#else
+-template <typename T, T... N> struct integer_sequence {
+-  using value_type = T;
+-
+-  static FMT_CONSTEXPR size_t size() { return sizeof...(N); }
+-};
+-
+-template <size_t... N> using index_sequence = integer_sequence<size_t, N...>;
+-
+-template <typename T, size_t N, T... Ns>
+-struct make_integer_sequence : make_integer_sequence<T, N - 1, N - 1, Ns...> {};
+-template <typename T, T... Ns>
+-struct make_integer_sequence<T, 0, Ns...> : integer_sequence<T, Ns...> {};
+-
+-template <size_t N>
+-using make_index_sequence = make_integer_sequence<size_t, N>;
+-#endif
+-
+-template <class Tuple, class F, size_t... Is>
+-void for_each(index_sequence<Is...>, Tuple&& tup, F&& f) FMT_NOEXCEPT {
+-  using std::get;
+-  // using free function get<I>(T) now.
+-  const int _[] = {0, ((void)f(get<Is>(tup)), 0)...};
+-  (void)_;  // blocks warnings
+-}
+-
+-template <class T>
+-FMT_CONSTEXPR make_index_sequence<std::tuple_size<T>::value> get_indexes(
+-    T const&) {
+-  return {};
+-}
+-
+-template <class Tuple, class F> void for_each(Tuple&& tup, F&& f) {
+-  const auto indexes = get_indexes(tup);
+-  for_each(indexes, std::forward<Tuple>(tup), std::forward<F>(f));
+-}
+-
+-template <typename Range>
+-using value_type =
+-    remove_cvref_t<decltype(*detail::range_begin(std::declval<Range>()))>;
+-
+-template <typename OutputIt> OutputIt write_delimiter(OutputIt out) {
+-  *out++ = ',';
+-  *out++ = ' ';
+-  return out;
+-}
+-
+-struct singleton {
+-  unsigned char upper;
+-  unsigned char lower_count;
+-};
+-
+-inline auto is_printable(uint16_t x, const singleton* singletons,
+-                         size_t singletons_size,
+-                         const unsigned char* singleton_lowers,
+-                         const unsigned char* normal, size_t normal_size)
+-    -> bool {
+-  auto upper = x >> 8;
+-  auto lower_start = 0;
+-  for (size_t i = 0; i < singletons_size; ++i) {
+-    auto s = singletons[i];
+-    auto lower_end = lower_start + s.lower_count;
+-    if (upper < s.upper) break;
+-    if (upper == s.upper) {
+-      for (auto j = lower_start; j < lower_end; ++j) {
+-        if (singleton_lowers[j] == (x & 0xff)) return false;
+-      }
+-    }
+-    lower_start = lower_end;
+-  }
+-
+-  auto xsigned = static_cast<int>(x);
+-  auto current = true;
+-  for (size_t i = 0; i < normal_size; ++i) {
+-    auto v = static_cast<int>(normal[i]);
+-    auto len = (v & 0x80) != 0 ? (v & 0x7f) << 8 | normal[++i] : v;
+-    xsigned -= len;
+-    if (xsigned < 0) break;
+-    current = !current;
+-  }
+-  return current;
+-}
+-
+-// Returns true iff the code point cp is printable.
+-// This code is generated by support/printable.py.
+-inline auto is_printable(uint32_t cp) -> bool {
+-  static constexpr singleton singletons0[] = {
+-      {0x00, 1},  {0x03, 5},  {0x05, 6},  {0x06, 3},  {0x07, 6},  {0x08, 8},
+-      {0x09, 17}, {0x0a, 28}, {0x0b, 25}, {0x0c, 20}, {0x0d, 16}, {0x0e, 13},
+-      {0x0f, 4},  {0x10, 3},  {0x12, 18}, {0x13, 9},  {0x16, 1},  {0x17, 5},
+-      {0x18, 2},  {0x19, 3},  {0x1a, 7},  {0x1c, 2},  {0x1d, 1},  {0x1f, 22},
+-      {0x20, 3},  {0x2b, 3},  {0x2c, 2},  {0x2d, 11}, {0x2e, 1},  {0x30, 3},
+-      {0x31, 2},  {0x32, 1},  {0xa7, 2},  {0xa9, 2},  {0xaa, 4},  {0xab, 8},
+-      {0xfa, 2},  {0xfb, 5},  {0xfd, 4},  {0xfe, 3},  {0xff, 9},
+-  };
+-  static constexpr unsigned char singletons0_lower[] = {
+-      0xad, 0x78, 0x79, 0x8b, 0x8d, 0xa2, 0x30, 0x57, 0x58, 0x8b, 0x8c, 0x90,
+-      0x1c, 0x1d, 0xdd, 0x0e, 0x0f, 0x4b, 0x4c, 0xfb, 0xfc, 0x2e, 0x2f, 0x3f,
+-      0x5c, 0x5d, 0x5f, 0xb5, 0xe2, 0x84, 0x8d, 0x8e, 0x91, 0x92, 0xa9, 0xb1,
+-      0xba, 0xbb, 0xc5, 0xc6, 0xc9, 0xca, 0xde, 0xe4, 0xe5, 0xff, 0x00, 0x04,
+-      0x11, 0x12, 0x29, 0x31, 0x34, 0x37, 0x3a, 0x3b, 0x3d, 0x49, 0x4a, 0x5d,
+-      0x84, 0x8e, 0x92, 0xa9, 0xb1, 0xb4, 0xba, 0xbb, 0xc6, 0xca, 0xce, 0xcf,
+-      0xe4, 0xe5, 0x00, 0x04, 0x0d, 0x0e, 0x11, 0x12, 0x29, 0x31, 0x34, 0x3a,
+-      0x3b, 0x45, 0x46, 0x49, 0x4a, 0x5e, 0x64, 0x65, 0x84, 0x91, 0x9b, 0x9d,
+-      0xc9, 0xce, 0xcf, 0x0d, 0x11, 0x29, 0x45, 0x49, 0x57, 0x64, 0x65, 0x8d,
+-      0x91, 0xa9, 0xb4, 0xba, 0xbb, 0xc5, 0xc9, 0xdf, 0xe4, 0xe5, 0xf0, 0x0d,
+-      0x11, 0x45, 0x49, 0x64, 0x65, 0x80, 0x84, 0xb2, 0xbc, 0xbe, 0xbf, 0xd5,
+-      0xd7, 0xf0, 0xf1, 0x83, 0x85, 0x8b, 0xa4, 0xa6, 0xbe, 0xbf, 0xc5, 0xc7,
+-      0xce, 0xcf, 0xda, 0xdb, 0x48, 0x98, 0xbd, 0xcd, 0xc6, 0xce, 0xcf, 0x49,
+-      0x4e, 0x4f, 0x57, 0x59, 0x5e, 0x5f, 0x89, 0x8e, 0x8f, 0xb1, 0xb6, 0xb7,
+-      0xbf, 0xc1, 0xc6, 0xc7, 0xd7, 0x11, 0x16, 0x17, 0x5b, 0x5c, 0xf6, 0xf7,
+-      0xfe, 0xff, 0x80, 0x0d, 0x6d, 0x71, 0xde, 0xdf, 0x0e, 0x0f, 0x1f, 0x6e,
+-      0x6f, 0x1c, 0x1d, 0x5f, 0x7d, 0x7e, 0xae, 0xaf, 0xbb, 0xbc, 0xfa, 0x16,
+-      0x17, 0x1e, 0x1f, 0x46, 0x47, 0x4e, 0x4f, 0x58, 0x5a, 0x5c, 0x5e, 0x7e,
+-      0x7f, 0xb5, 0xc5, 0xd4, 0xd5, 0xdc, 0xf0, 0xf1, 0xf5, 0x72, 0x73, 0x8f,
+-      0x74, 0x75, 0x96, 0x2f, 0x5f, 0x26, 0x2e, 0x2f, 0xa7, 0xaf, 0xb7, 0xbf,
+-      0xc7, 0xcf, 0xd7, 0xdf, 0x9a, 0x40, 0x97, 0x98, 0x30, 0x8f, 0x1f, 0xc0,
+-      0xc1, 0xce, 0xff, 0x4e, 0x4f, 0x5a, 0x5b, 0x07, 0x08, 0x0f, 0x10, 0x27,
+-      0x2f, 0xee, 0xef, 0x6e, 0x6f, 0x37, 0x3d, 0x3f, 0x42, 0x45, 0x90, 0x91,
+-      0xfe, 0xff, 0x53, 0x67, 0x75, 0xc8, 0xc9, 0xd0, 0xd1, 0xd8, 0xd9, 0xe7,
+-      0xfe, 0xff,
+-  };
+-  static constexpr singleton singletons1[] = {
+-      {0x00, 6},  {0x01, 1}, {0x03, 1},  {0x04, 2}, {0x08, 8},  {0x09, 2},
+-      {0x0a, 5},  {0x0b, 2}, {0x0e, 4},  {0x10, 1}, {0x11, 2},  {0x12, 5},
+-      {0x13, 17}, {0x14, 1}, {0x15, 2},  {0x17, 2}, {0x19, 13}, {0x1c, 5},
+-      {0x1d, 8},  {0x24, 1}, {0x6a, 3},  {0x6b, 2}, {0xbc, 2},  {0xd1, 2},
+-      {0xd4, 12}, {0xd5, 9}, {0xd6, 2},  {0xd7, 2}, {0xda, 1},  {0xe0, 5},
+-      {0xe1, 2},  {0xe8, 2}, {0xee, 32}, {0xf0, 4}, {0xf8, 2},  {0xf9, 2},
+-      {0xfa, 2},  {0xfb, 1},
+-  };
+-  static constexpr unsigned char singletons1_lower[] = {
+-      0x0c, 0x27, 0x3b, 0x3e, 0x4e, 0x4f, 0x8f, 0x9e, 0x9e, 0x9f, 0x06, 0x07,
+-      0x09, 0x36, 0x3d, 0x3e, 0x56, 0xf3, 0xd0, 0xd1, 0x04, 0x14, 0x18, 0x36,
+-      0x37, 0x56, 0x57, 0x7f, 0xaa, 0xae, 0xaf, 0xbd, 0x35, 0xe0, 0x12, 0x87,
+-      0x89, 0x8e, 0x9e, 0x04, 0x0d, 0x0e, 0x11, 0x12, 0x29, 0x31, 0x34, 0x3a,
+-      0x45, 0x46, 0x49, 0x4a, 0x4e, 0x4f, 0x64, 0x65, 0x5c, 0xb6, 0xb7, 0x1b,
+-      0x1c, 0x07, 0x08, 0x0a, 0x0b, 0x14, 0x17, 0x36, 0x39, 0x3a, 0xa8, 0xa9,
+-      0xd8, 0xd9, 0x09, 0x37, 0x90, 0x91, 0xa8, 0x07, 0x0a, 0x3b, 0x3e, 0x66,
+-      0x69, 0x8f, 0x92, 0x6f, 0x5f, 0xee, 0xef, 0x5a, 0x62, 0x9a, 0x9b, 0x27,
+-      0x28, 0x55, 0x9d, 0xa0, 0xa1, 0xa3, 0xa4, 0xa7, 0xa8, 0xad, 0xba, 0xbc,
+-      0xc4, 0x06, 0x0b, 0x0c, 0x15, 0x1d, 0x3a, 0x3f, 0x45, 0x51, 0xa6, 0xa7,
+-      0xcc, 0xcd, 0xa0, 0x07, 0x19, 0x1a, 0x22, 0x25, 0x3e, 0x3f, 0xc5, 0xc6,
+-      0x04, 0x20, 0x23, 0x25, 0x26, 0x28, 0x33, 0x38, 0x3a, 0x48, 0x4a, 0x4c,
+-      0x50, 0x53, 0x55, 0x56, 0x58, 0x5a, 0x5c, 0x5e, 0x60, 0x63, 0x65, 0x66,
+-      0x6b, 0x73, 0x78, 0x7d, 0x7f, 0x8a, 0xa4, 0xaa, 0xaf, 0xb0, 0xc0, 0xd0,
+-      0xae, 0xaf, 0x79, 0xcc, 0x6e, 0x6f, 0x93,
+-  };
+-  static constexpr unsigned char normal0[] = {
+-      0x00, 0x20, 0x5f, 0x22, 0x82, 0xdf, 0x04, 0x82, 0x44, 0x08, 0x1b, 0x04,
+-      0x06, 0x11, 0x81, 0xac, 0x0e, 0x80, 0xab, 0x35, 0x28, 0x0b, 0x80, 0xe0,
+-      0x03, 0x19, 0x08, 0x01, 0x04, 0x2f, 0x04, 0x34, 0x04, 0x07, 0x03, 0x01,
+-      0x07, 0x06, 0x07, 0x11, 0x0a, 0x50, 0x0f, 0x12, 0x07, 0x55, 0x07, 0x03,
+-      0x04, 0x1c, 0x0a, 0x09, 0x03, 0x08, 0x03, 0x07, 0x03, 0x02, 0x03, 0x03,
+-      0x03, 0x0c, 0x04, 0x05, 0x03, 0x0b, 0x06, 0x01, 0x0e, 0x15, 0x05, 0x3a,
+-      0x03, 0x11, 0x07, 0x06, 0x05, 0x10, 0x07, 0x57, 0x07, 0x02, 0x07, 0x15,
+-      0x0d, 0x50, 0x04, 0x43, 0x03, 0x2d, 0x03, 0x01, 0x04, 0x11, 0x06, 0x0f,
+-      0x0c, 0x3a, 0x04, 0x1d, 0x25, 0x5f, 0x20, 0x6d, 0x04, 0x6a, 0x25, 0x80,
+-      0xc8, 0x05, 0x82, 0xb0, 0x03, 0x1a, 0x06, 0x82, 0xfd, 0x03, 0x59, 0x07,
+-      0x15, 0x0b, 0x17, 0x09, 0x14, 0x0c, 0x14, 0x0c, 0x6a, 0x06, 0x0a, 0x06,
+-      0x1a, 0x06, 0x59, 0x07, 0x2b, 0x05, 0x46, 0x0a, 0x2c, 0x04, 0x0c, 0x04,
+-      0x01, 0x03, 0x31, 0x0b, 0x2c, 0x04, 0x1a, 0x06, 0x0b, 0x03, 0x80, 0xac,
+-      0x06, 0x0a, 0x06, 0x21, 0x3f, 0x4c, 0x04, 0x2d, 0x03, 0x74, 0x08, 0x3c,
+-      0x03, 0x0f, 0x03, 0x3c, 0x07, 0x38, 0x08, 0x2b, 0x05, 0x82, 0xff, 0x11,
+-      0x18, 0x08, 0x2f, 0x11, 0x2d, 0x03, 0x20, 0x10, 0x21, 0x0f, 0x80, 0x8c,
+-      0x04, 0x82, 0x97, 0x19, 0x0b, 0x15, 0x88, 0x94, 0x05, 0x2f, 0x05, 0x3b,
+-      0x07, 0x02, 0x0e, 0x18, 0x09, 0x80, 0xb3, 0x2d, 0x74, 0x0c, 0x80, 0xd6,
+-      0x1a, 0x0c, 0x05, 0x80, 0xff, 0x05, 0x80, 0xdf, 0x0c, 0xee, 0x0d, 0x03,
+-      0x84, 0x8d, 0x03, 0x37, 0x09, 0x81, 0x5c, 0x14, 0x80, 0xb8, 0x08, 0x80,
+-      0xcb, 0x2a, 0x38, 0x03, 0x0a, 0x06, 0x38, 0x08, 0x46, 0x08, 0x0c, 0x06,
+-      0x74, 0x0b, 0x1e, 0x03, 0x5a, 0x04, 0x59, 0x09, 0x80, 0x83, 0x18, 0x1c,
+-      0x0a, 0x16, 0x09, 0x4c, 0x04, 0x80, 0x8a, 0x06, 0xab, 0xa4, 0x0c, 0x17,
+-      0x04, 0x31, 0xa1, 0x04, 0x81, 0xda, 0x26, 0x07, 0x0c, 0x05, 0x05, 0x80,
+-      0xa5, 0x11, 0x81, 0x6d, 0x10, 0x78, 0x28, 0x2a, 0x06, 0x4c, 0x04, 0x80,
+-      0x8d, 0x04, 0x80, 0xbe, 0x03, 0x1b, 0x03, 0x0f, 0x0d,
+-  };
+-  static constexpr unsigned char normal1[] = {
+-      0x5e, 0x22, 0x7b, 0x05, 0x03, 0x04, 0x2d, 0x03, 0x66, 0x03, 0x01, 0x2f,
+-      0x2e, 0x80, 0x82, 0x1d, 0x03, 0x31, 0x0f, 0x1c, 0x04, 0x24, 0x09, 0x1e,
+-      0x05, 0x2b, 0x05, 0x44, 0x04, 0x0e, 0x2a, 0x80, 0xaa, 0x06, 0x24, 0x04,
+-      0x24, 0x04, 0x28, 0x08, 0x34, 0x0b, 0x01, 0x80, 0x90, 0x81, 0x37, 0x09,
+-      0x16, 0x0a, 0x08, 0x80, 0x98, 0x39, 0x03, 0x63, 0x08, 0x09, 0x30, 0x16,
+-      0x05, 0x21, 0x03, 0x1b, 0x05, 0x01, 0x40, 0x38, 0x04, 0x4b, 0x05, 0x2f,
+-      0x04, 0x0a, 0x07, 0x09, 0x07, 0x40, 0x20, 0x27, 0x04, 0x0c, 0x09, 0x36,
+-      0x03, 0x3a, 0x05, 0x1a, 0x07, 0x04, 0x0c, 0x07, 0x50, 0x49, 0x37, 0x33,
+-      0x0d, 0x33, 0x07, 0x2e, 0x08, 0x0a, 0x81, 0x26, 0x52, 0x4e, 0x28, 0x08,
+-      0x2a, 0x56, 0x1c, 0x14, 0x17, 0x09, 0x4e, 0x04, 0x1e, 0x0f, 0x43, 0x0e,
+-      0x19, 0x07, 0x0a, 0x06, 0x48, 0x08, 0x27, 0x09, 0x75, 0x0b, 0x3f, 0x41,
+-      0x2a, 0x06, 0x3b, 0x05, 0x0a, 0x06, 0x51, 0x06, 0x01, 0x05, 0x10, 0x03,
+-      0x05, 0x80, 0x8b, 0x62, 0x1e, 0x48, 0x08, 0x0a, 0x80, 0xa6, 0x5e, 0x22,
+-      0x45, 0x0b, 0x0a, 0x06, 0x0d, 0x13, 0x39, 0x07, 0x0a, 0x36, 0x2c, 0x04,
+-      0x10, 0x80, 0xc0, 0x3c, 0x64, 0x53, 0x0c, 0x48, 0x09, 0x0a, 0x46, 0x45,
+-      0x1b, 0x48, 0x08, 0x53, 0x1d, 0x39, 0x81, 0x07, 0x46, 0x0a, 0x1d, 0x03,
+-      0x47, 0x49, 0x37, 0x03, 0x0e, 0x08, 0x0a, 0x06, 0x39, 0x07, 0x0a, 0x81,
+-      0x36, 0x19, 0x80, 0xb7, 0x01, 0x0f, 0x32, 0x0d, 0x83, 0x9b, 0x66, 0x75,
+-      0x0b, 0x80, 0xc4, 0x8a, 0xbc, 0x84, 0x2f, 0x8f, 0xd1, 0x82, 0x47, 0xa1,
+-      0xb9, 0x82, 0x39, 0x07, 0x2a, 0x04, 0x02, 0x60, 0x26, 0x0a, 0x46, 0x0a,
+-      0x28, 0x05, 0x13, 0x82, 0xb0, 0x5b, 0x65, 0x4b, 0x04, 0x39, 0x07, 0x11,
+-      0x40, 0x05, 0x0b, 0x02, 0x0e, 0x97, 0xf8, 0x08, 0x84, 0xd6, 0x2a, 0x09,
+-      0xa2, 0xf7, 0x81, 0x1f, 0x31, 0x03, 0x11, 0x04, 0x08, 0x81, 0x8c, 0x89,
+-      0x04, 0x6b, 0x05, 0x0d, 0x03, 0x09, 0x07, 0x10, 0x93, 0x60, 0x80, 0xf6,
+-      0x0a, 0x73, 0x08, 0x6e, 0x17, 0x46, 0x80, 0x9a, 0x14, 0x0c, 0x57, 0x09,
+-      0x19, 0x80, 0x87, 0x81, 0x47, 0x03, 0x85, 0x42, 0x0f, 0x15, 0x85, 0x50,
+-      0x2b, 0x80, 0xd5, 0x2d, 0x03, 0x1a, 0x04, 0x02, 0x81, 0x70, 0x3a, 0x05,
+-      0x01, 0x85, 0x00, 0x80, 0xd7, 0x29, 0x4c, 0x04, 0x0a, 0x04, 0x02, 0x83,
+-      0x11, 0x44, 0x4c, 0x3d, 0x80, 0xc2, 0x3c, 0x06, 0x01, 0x04, 0x55, 0x05,
+-      0x1b, 0x34, 0x02, 0x81, 0x0e, 0x2c, 0x04, 0x64, 0x0c, 0x56, 0x0a, 0x80,
+-      0xae, 0x38, 0x1d, 0x0d, 0x2c, 0x04, 0x09, 0x07, 0x02, 0x0e, 0x06, 0x80,
+-      0x9a, 0x83, 0xd8, 0x08, 0x0d, 0x03, 0x0d, 0x03, 0x74, 0x0c, 0x59, 0x07,
+-      0x0c, 0x14, 0x0c, 0x04, 0x38, 0x08, 0x0a, 0x06, 0x28, 0x08, 0x22, 0x4e,
+-      0x81, 0x54, 0x0c, 0x15, 0x03, 0x03, 0x05, 0x07, 0x09, 0x19, 0x07, 0x07,
+-      0x09, 0x03, 0x0d, 0x07, 0x29, 0x80, 0xcb, 0x25, 0x0a, 0x84, 0x06,
+-  };
+-  auto lower = static_cast<uint16_t>(cp);
+-  if (cp < 0x10000) {
+-    return is_printable(lower, singletons0,
+-                        sizeof(singletons0) / sizeof(*singletons0),
+-                        singletons0_lower, normal0, sizeof(normal0));
+-  }
+-  if (cp < 0x20000) {
+-    return is_printable(lower, singletons1,
+-                        sizeof(singletons1) / sizeof(*singletons1),
+-                        singletons1_lower, normal1, sizeof(normal1));
+-  }
+-  if (0x2a6de <= cp && cp < 0x2a700) return false;
+-  if (0x2b735 <= cp && cp < 0x2b740) return false;
+-  if (0x2b81e <= cp && cp < 0x2b820) return false;
+-  if (0x2cea2 <= cp && cp < 0x2ceb0) return false;
+-  if (0x2ebe1 <= cp && cp < 0x2f800) return false;
+-  if (0x2fa1e <= cp && cp < 0x30000) return false;
+-  if (0x3134b <= cp && cp < 0xe0100) return false;
+-  if (0xe01f0 <= cp && cp < 0x110000) return false;
+-  return cp < 0x110000;
+-}
+-
+-inline auto needs_escape(uint32_t cp) -> bool {
+-  return cp < 0x20 || cp == 0x7f || cp == '"' || cp == '\\' ||
+-         !is_printable(cp);
+-}
+-
+-template <typename Char> struct find_escape_result {
+-  const Char* begin;
+-  const Char* end;
+-  uint32_t cp;
+-};
+-
+-template <typename Char>
+-auto find_escape(const Char* begin, const Char* end)
+-    -> find_escape_result<Char> {
+-  for (; begin != end; ++begin) {
+-    auto cp = static_cast<typename std::make_unsigned<Char>::type>(*begin);
+-    if (sizeof(Char) == 1 && cp >= 0x80) continue;
+-    if (needs_escape(cp)) return {begin, begin + 1, cp};
+-  }
+-  return {begin, nullptr, 0};
+-}
+-
+-inline auto find_escape(const char* begin, const char* end)
+-    -> find_escape_result<char> {
+-  if (!is_utf8()) return find_escape<char>(begin, end);
+-  auto result = find_escape_result<char>{end, nullptr, 0};
+-  for_each_codepoint(string_view(begin, to_unsigned(end - begin)),
+-                     [&](uint32_t cp, string_view sv) {
+-                       if (needs_escape(cp)) {
+-                         result = {sv.begin(), sv.end(), cp};
+-                         return false;
+-                       }
+-                       return true;
+-                     });
+-  return result;
+-}
+-
+-template <typename Char, typename OutputIt>
+-auto write_range_entry(OutputIt out, basic_string_view<Char> str) -> OutputIt {
+-  *out++ = '"';
+-  auto begin = str.begin(), end = str.end();
+-  do {
+-    auto escape = find_escape(begin, end);
+-    out = copy_str<Char>(begin, escape.begin, out);
+-    begin = escape.end;
+-    if (!begin) break;
+-    auto c = static_cast<Char>(escape.cp);
+-    switch (escape.cp) {
+-    case '\n':
+-      *out++ = '\\';
+-      c = 'n';
+-      break;
+-    case '\r':
+-      *out++ = '\\';
+-      c = 'r';
+-      break;
+-    case '\t':
+-      *out++ = '\\';
+-      c = 't';
+-      break;
+-    case '"':
+-      FMT_FALLTHROUGH;
+-    case '\\':
+-      *out++ = '\\';
+-      break;
+-    default:
+-      if (is_utf8()) {
+-        if (escape.cp < 0x100) {
+-          out = format_to(out, "\\x{:02x}", escape.cp);
+-          continue;
+-        }
+-        if (escape.cp < 0x10000) {
+-          out = format_to(out, "\\u{:04x}", escape.cp);
+-          continue;
+-        }
+-        if (escape.cp < 0x110000) {
+-          out = format_to(out, "\\U{:08x}", escape.cp);
+-          continue;
+-        }
+-      }
+-      for (Char escape_char : basic_string_view<Char>(
+-               escape.begin, to_unsigned(escape.end - escape.begin))) {
+-        out = format_to(
+-            out, "\\x{:02x}",
+-            static_cast<typename std::make_unsigned<Char>::type>(escape_char));
+-      }
+-      continue;
+-    }
+-    *out++ = c;
+-  } while (begin != end);
+-  *out++ = '"';
+-  return out;
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_convertible<T, std_string_view<char>>::value)>
+-inline auto write_range_entry(OutputIt out, const T& str) -> OutputIt {
+-  auto sv = std_string_view<Char>(str);
+-  return write_range_entry<Char>(out, basic_string_view<Char>(sv));
+-}
+-
+-template <typename Char, typename OutputIt, typename Arg,
+-          FMT_ENABLE_IF(std::is_same<Arg, Char>::value)>
+-OutputIt write_range_entry(OutputIt out, const Arg v) {
+-  *out++ = '\'';
+-  *out++ = v;
+-  *out++ = '\'';
+-  return out;
+-}
+-
+-template <
+-    typename Char, typename OutputIt, typename Arg,
+-    FMT_ENABLE_IF(!is_std_string_like<typename std::decay<Arg>::type>::value &&
+-                  !std::is_same<Arg, Char>::value)>
+-OutputIt write_range_entry(OutputIt out, const Arg& v) {
+-  return write<Char>(out, v);
+-}
+-
+-}  // namespace detail
+-
+-template <typename T> struct is_tuple_like {
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      detail::is_tuple_like_<T>::value && !detail::is_range_<T>::value;
+-};
+-
+-template <typename TupleT, typename Char>
+-struct formatter<TupleT, Char, enable_if_t<fmt::is_tuple_like<TupleT>::value>> {
+- private:
+-  // C++11 generic lambda for format().
+-  template <typename FormatContext> struct format_each {
+-    template <typename T> void operator()(const T& v) {
+-      if (i > 0) out = detail::write_delimiter(out);
+-      out = detail::write_range_entry<Char>(out, v);
+-      ++i;
+-    }
+-    int i;
+-    typename FormatContext::iterator& out;
+-  };
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <typename FormatContext = format_context>
+-  auto format(const TupleT& values, FormatContext& ctx) -> decltype(ctx.out()) {
+-    auto out = ctx.out();
+-    *out++ = '(';
+-    detail::for_each(values, format_each<FormatContext>{0, out});
+-    *out++ = ')';
+-    return out;
+-  }
+-};
+-
+-template <typename T, typename Char> struct is_range {
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      detail::is_range_<T>::value && !detail::is_std_string_like<T>::value &&
+-      !detail::is_map<T>::value &&
+-      !std::is_convertible<T, std::basic_string<Char>>::value &&
+-      !std::is_constructible<detail::std_string_view<Char>, T>::value;
+-};
+-
+-template <typename T, typename Char>
+-struct formatter<
+-    T, Char,
+-    enable_if_t<
+-        fmt::is_range<T, Char>::value
+-// Workaround a bug in MSVC 2019 and earlier.
+-#if !FMT_MSC_VER
+-        && (is_formattable<detail::value_type<T>, Char>::value ||
+-            detail::has_fallback_formatter<detail::value_type<T>, Char>::value)
+-#endif
+-        >> {
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <
+-      typename FormatContext, typename U,
+-      FMT_ENABLE_IF(
+-          std::is_same<U, conditional_t<detail::has_const_begin_end<T>::value,
+-                                        const T, T>>::value)>
+-  auto format(U& range, FormatContext& ctx) -> decltype(ctx.out()) {
+-#ifdef FMT_DEPRECATED_BRACED_RANGES
+-    Char prefix = '{';
+-    Char postfix = '}';
+-#else
+-    Char prefix = detail::is_set<T>::value ? '{' : '[';
+-    Char postfix = detail::is_set<T>::value ? '}' : ']';
+-#endif
+-    auto out = ctx.out();
+-    *out++ = prefix;
+-    int i = 0;
+-    auto it = std::begin(range);
+-    auto end = std::end(range);
+-    for (; it != end; ++it) {
+-      if (i > 0) out = detail::write_delimiter(out);
+-      out = detail::write_range_entry<Char>(out, *it);
+-      ++i;
+-    }
+-    *out++ = postfix;
+-    return out;
+-  }
+-};
+-
+-template <typename T, typename Char>
+-struct formatter<
+-    T, Char,
+-    enable_if_t<
+-        detail::is_map<T>::value
+-// Workaround a bug in MSVC 2019 and earlier.
+-#if !FMT_MSC_VER
+-        && (is_formattable<detail::value_type<T>, Char>::value ||
+-            detail::has_fallback_formatter<detail::value_type<T>, Char>::value)
+-#endif
+-        >> {
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <
+-      typename FormatContext, typename U,
+-      FMT_ENABLE_IF(
+-          std::is_same<U, conditional_t<detail::has_const_begin_end<T>::value,
+-                                        const T, T>>::value)>
+-  auto format(U& map, FormatContext& ctx) -> decltype(ctx.out()) {
+-    auto out = ctx.out();
+-    *out++ = '{';
+-    int i = 0;
+-    for (const auto& item : map) {
+-      if (i > 0) out = detail::write_delimiter(out);
+-      out = detail::write_range_entry<Char>(out, item.first);
+-      *out++ = ':';
+-      *out++ = ' ';
+-      out = detail::write_range_entry<Char>(out, item.second);
+-      ++i;
+-    }
+-    *out++ = '}';
+-    return out;
+-  }
+-};
+-
+-template <typename Char, typename... T> struct tuple_join_view : detail::view {
+-  const std::tuple<T...>& tuple;
+-  basic_string_view<Char> sep;
+-
+-  tuple_join_view(const std::tuple<T...>& t, basic_string_view<Char> s)
+-      : tuple(t), sep{s} {}
+-};
+-
+-template <typename Char, typename... T>
+-using tuple_arg_join = tuple_join_view<Char, T...>;
+-
+-// Define FMT_TUPLE_JOIN_SPECIFIERS to enable experimental format specifiers
+-// support in tuple_join. It is disabled by default because of issues with
+-// the dynamic width and precision.
+-#ifndef FMT_TUPLE_JOIN_SPECIFIERS
+-#  define FMT_TUPLE_JOIN_SPECIFIERS 0
+-#endif
+-
+-template <typename Char, typename... T>
+-struct formatter<tuple_join_view<Char, T...>, Char> {
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return do_parse(ctx, std::integral_constant<size_t, sizeof...(T)>());
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(const tuple_join_view<Char, T...>& value,
+-              FormatContext& ctx) const -> typename FormatContext::iterator {
+-    return do_format(value, ctx,
+-                     std::integral_constant<size_t, sizeof...(T)>());
+-  }
+-
+- private:
+-  std::tuple<formatter<typename std::decay<T>::type, Char>...> formatters_;
+-
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto do_parse(ParseContext& ctx,
+-                              std::integral_constant<size_t, 0>)
+-      -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <typename ParseContext, size_t N>
+-  FMT_CONSTEXPR auto do_parse(ParseContext& ctx,
+-                              std::integral_constant<size_t, N>)
+-      -> decltype(ctx.begin()) {
+-    auto end = ctx.begin();
+-#if FMT_TUPLE_JOIN_SPECIFIERS
+-    end = std::get<sizeof...(T) - N>(formatters_).parse(ctx);
+-    if (N > 1) {
+-      auto end1 = do_parse(ctx, std::integral_constant<size_t, N - 1>());
+-      if (end != end1)
+-        FMT_THROW(format_error("incompatible format specs for tuple elements"));
+-    }
+-#endif
+-    return end;
+-  }
+-
+-  template <typename FormatContext>
+-  auto do_format(const tuple_join_view<Char, T...>&, FormatContext& ctx,
+-                 std::integral_constant<size_t, 0>) const ->
+-      typename FormatContext::iterator {
+-    return ctx.out();
+-  }
+-
+-  template <typename FormatContext, size_t N>
+-  auto do_format(const tuple_join_view<Char, T...>& value, FormatContext& ctx,
+-                 std::integral_constant<size_t, N>) const ->
+-      typename FormatContext::iterator {
+-    auto out = std::get<sizeof...(T) - N>(formatters_)
+-                   .format(std::get<sizeof...(T) - N>(value.tuple), ctx);
+-    if (N > 1) {
+-      out = std::copy(value.sep.begin(), value.sep.end(), out);
+-      ctx.advance_to(out);
+-      return do_format(value, ctx, std::integral_constant<size_t, N - 1>());
+-    }
+-    return out;
+-  }
+-};
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-/**
+-  \rst
+-  Returns an object that formats `tuple` with elements separated by `sep`.
+-
+-  **Example**::
+-
+-    std::tuple<int, char> t = {1, 'a'};
+-    fmt::print("{}", fmt::join(t, ", "));
+-    // Output: "1, a"
+-  \endrst
+- */
+-template <typename... T>
+-FMT_CONSTEXPR auto join(const std::tuple<T...>& tuple, string_view sep)
+-    -> tuple_join_view<char, T...> {
+-  return {tuple, sep};
+-}
+-
+-template <typename... T>
+-FMT_CONSTEXPR auto join(const std::tuple<T...>& tuple,
+-                        basic_string_view<wchar_t> sep)
+-    -> tuple_join_view<wchar_t, T...> {
+-  return {tuple, sep};
+-}
+-
+-/**
+-  \rst
+-  Returns an object that formats `initializer_list` with elements separated by
+-  `sep`.
+-
+-  **Example**::
+-
+-    fmt::print("{}", fmt::join({1, 2, 3}, ", "));
+-    // Output: "1, 2, 3"
+-  \endrst
+- */
+-template <typename T>
+-auto join(std::initializer_list<T> list, string_view sep)
+-    -> join_view<const T*, const T*> {
+-  return join(std::begin(list), std::end(list), sep);
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_RANGES_H_
+diff --git a/include/dpp/fmt/xchar.h b/include/dpp/fmt/xchar.h
+deleted file mode 100644
+index 5582507..0000000
+--- a/include/dpp/fmt/xchar.h
++++ /dev/null
+@@ -1,236 +0,0 @@
+-// Formatting library for C++ - optional wchar_t and exotic character support
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_XCHAR_H_
+-#define FMT_XCHAR_H_
+-
+-#include <cwchar>
+-#include <tuple>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-template <typename T>
+-using is_exotic_char = bool_constant<!std::is_same<T, char>::value>;
+-}
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-using wstring_view = basic_string_view<wchar_t>;
+-using wformat_parse_context = basic_format_parse_context<wchar_t>;
+-using wformat_context = buffer_context<wchar_t>;
+-using wformat_args = basic_format_args<wformat_context>;
+-using wmemory_buffer = basic_memory_buffer<wchar_t>;
+-
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-// Workaround broken conversion on older gcc.
+-template <typename... Args> using wformat_string = wstring_view;
+-#else
+-template <typename... Args>
+-using wformat_string = basic_format_string<wchar_t, type_identity_t<Args>...>;
+-#endif
+-
+-template <> struct is_char<wchar_t> : std::true_type {};
+-template <> struct is_char<detail::char8_type> : std::true_type {};
+-template <> struct is_char<char16_t> : std::true_type {};
+-template <> struct is_char<char32_t> : std::true_type {};
+-
+-template <typename... Args>
+-constexpr format_arg_store<wformat_context, Args...> make_wformat_args(
+-    const Args&... args) {
+-  return {args...};
+-}
+-
+-inline namespace literals {
+-constexpr auto operator"" _format(const wchar_t* s, size_t n)
+-    -> detail::udl_formatter<wchar_t> {
+-  return {{s, n}};
+-}
+-
+-#if FMT_USE_USER_DEFINED_LITERALS && !FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-constexpr detail::udl_arg<wchar_t> operator"" _a(const wchar_t* s, size_t) {
+-  return {s};
+-}
+-#endif
+-}  // namespace literals
+-
+-template <typename It, typename Sentinel>
+-auto join(It begin, Sentinel end, wstring_view sep)
+-    -> join_view<It, Sentinel, wchar_t> {
+-  return {begin, end, sep};
+-}
+-
+-template <typename Range>
+-auto join(Range&& range, wstring_view sep)
+-    -> join_view<detail::iterator_t<Range>, detail::sentinel_t<Range>,
+-                 wchar_t> {
+-  return join(std::begin(range), std::end(range), sep);
+-}
+-
+-template <typename T>
+-auto join(std::initializer_list<T> list, wstring_view sep)
+-    -> join_view<const T*, const T*, wchar_t> {
+-  return join(std::begin(list), std::end(list), sep);
+-}
+-
+-template <typename Char, FMT_ENABLE_IF(!std::is_same<Char, char>::value)>
+-auto vformat(basic_string_view<Char> format_str,
+-             basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> std::basic_string<Char> {
+-  basic_memory_buffer<Char> buffer;
+-  detail::vformat_to(buffer, format_str, args);
+-  return to_string(buffer);
+-}
+-
+-// Pass char_t as a default template parameter instead of using
+-// std::basic_string<char_t<S>> to reduce the symbol size.
+-template <typename S, typename... Args, typename Char = char_t<S>,
+-          FMT_ENABLE_IF(!std::is_same<Char, char>::value)>
+-auto format(const S& format_str, Args&&... args) -> std::basic_string<Char> {
+-  const auto& vargs = fmt::make_args_checked<Args...>(format_str, args...);
+-  return vformat(to_string_view(format_str), vargs);
+-}
+-
+-template <typename Locale, typename S, typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_locale<Locale>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto vformat(
+-    const Locale& loc, const S& format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> std::basic_string<Char> {
+-  return detail::vformat(loc, to_string_view(format_str), args);
+-}
+-
+-template <typename Locale, typename S, typename... Args,
+-          typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_locale<Locale>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto format(const Locale& loc, const S& format_str, Args&&... args)
+-    -> std::basic_string<Char> {
+-  return detail::vformat(loc, to_string_view(format_str),
+-                         fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-
+-template <typename OutputIt, typename S, typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-auto vformat_to(OutputIt out, const S& format_str,
+-                basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> OutputIt {
+-  auto&& buf = detail::get_buffer<Char>(out);
+-  detail::vformat_to(buf, to_string_view(format_str), args);
+-  return detail::get_iterator(buf);
+-}
+-
+-template <typename OutputIt, typename S, typename... Args,
+-          typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto format_to(OutputIt out, const S& fmt, Args&&... args) -> OutputIt {
+-  const auto& vargs = fmt::make_args_checked<Args...>(fmt, args...);
+-  return vformat_to(out, to_string_view(fmt), vargs);
+-}
+-
+-template <typename S, typename... Args, typename Char, size_t SIZE,
+-          typename Allocator, FMT_ENABLE_IF(detail::is_string<S>::value)>
+-FMT_DEPRECATED auto format_to(basic_memory_buffer<Char, SIZE, Allocator>& buf,
+-                              const S& format_str, Args&&... args) ->
+-    typename buffer_context<Char>::iterator {
+-  const auto& vargs = fmt::make_args_checked<Args...>(format_str, args...);
+-  detail::vformat_to(buf, to_string_view(format_str), vargs, {});
+-  return detail::buffer_appender<Char>(buf);
+-}
+-
+-template <typename Locale, typename S, typename OutputIt, typename... Args,
+-          typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_locale<Locale>::value&&
+-                                detail::is_exotic_char<Char>::value)>
+-inline auto vformat_to(
+-    OutputIt out, const Locale& loc, const S& format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args) -> OutputIt {
+-  auto&& buf = detail::get_buffer<Char>(out);
+-  vformat_to(buf, to_string_view(format_str), args, detail::locale_ref(loc));
+-  return detail::get_iterator(buf);
+-}
+-
+-template <
+-    typename OutputIt, typename Locale, typename S, typename... Args,
+-    typename Char = char_t<S>,
+-    bool enable = detail::is_output_iterator<OutputIt, Char>::value&&
+-        detail::is_locale<Locale>::value&& detail::is_exotic_char<Char>::value>
+-inline auto format_to(OutputIt out, const Locale& loc, const S& format_str,
+-                      Args&&... args) ->
+-    typename std::enable_if<enable, OutputIt>::type {
+-  const auto& vargs = fmt::make_args_checked<Args...>(format_str, args...);
+-  return vformat_to(out, loc, to_string_view(format_str), vargs);
+-}
+-
+-template <typename OutputIt, typename Char, typename... Args,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto vformat_to_n(
+-    OutputIt out, size_t n, basic_string_view<Char> format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> format_to_n_result<OutputIt> {
+-  detail::iterator_buffer<OutputIt, Char, detail::fixed_buffer_traits> buf(out,
+-                                                                           n);
+-  detail::vformat_to(buf, format_str, args);
+-  return {buf.out(), buf.count()};
+-}
+-
+-template <typename OutputIt, typename S, typename... Args,
+-          typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto format_to_n(OutputIt out, size_t n, const S& fmt,
+-                        const Args&... args) -> format_to_n_result<OutputIt> {
+-  const auto& vargs = fmt::make_args_checked<Args...>(fmt, args...);
+-  return vformat_to_n(out, n, to_string_view(fmt), vargs);
+-}
+-
+-template <typename S, typename... Args, typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_exotic_char<Char>::value)>
+-inline auto formatted_size(const S& fmt, Args&&... args) -> size_t {
+-  detail::counting_buffer<Char> buf;
+-  const auto& vargs = fmt::make_args_checked<Args...>(fmt, args...);
+-  detail::vformat_to(buf, to_string_view(fmt), vargs);
+-  return buf.count();
+-}
+-
+-inline void vprint(std::FILE* f, wstring_view fmt, wformat_args args) {
+-  wmemory_buffer buffer;
+-  detail::vformat_to(buffer, fmt, args);
+-  buffer.push_back(L'\0');
+-  if (std::fputws(buffer.data(), f) == -1)
+-    FMT_THROW(system_error(errno, FMT_STRING("cannot write to file")));
+-}
+-
+-inline void vprint(wstring_view fmt, wformat_args args) {
+-  vprint(stdout, fmt, args);
+-}
+-
+-template <typename... T>
+-void print(std::FILE* f, wformat_string<T...> fmt, T&&... args) {
+-  return vprint(f, wstring_view(fmt), fmt::make_wformat_args(args...));
+-}
+-
+-template <typename... T> void print(wformat_string<T...> fmt, T&&... args) {
+-  return vprint(wstring_view(fmt), fmt::make_wformat_args(args...));
+-}
+-
+-/**
+-  Converts *value* to ``std::wstring`` using the default format for type *T*.
+- */
+-template <typename T> inline auto to_wstring(const T& value) -> std::wstring {
+-  return format(FMT_STRING(L"{}"), value);
+-}
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_XCHAR_H_
+diff --git a/include/dpp/integration.h b/include/dpp/integration.h
+index 420c8d8..6815c3c 100644
+--- a/include/dpp/integration.h
++++ b/include/dpp/integration.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/invite.h b/include/dpp/invite.h
+index eae62a9..e8977a8 100644
+--- a/include/dpp/invite.h
++++ b/include/dpp/invite.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/stage_instance.h>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/json_interface.h b/include/dpp/json_interface.h
+index 302642d..e2e467a 100644
+--- a/include/dpp/json_interface.h
++++ b/include/dpp/json_interface.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 	/**
+diff --git a/include/dpp/message.h b/include/dpp/message.h
+index 1c80553..08de4c0 100644
+--- a/include/dpp/message.h
++++ b/include/dpp/message.h
+@@ -27,7 +27,7 @@
+ #include <dpp/guild.h>
+ #include <optional>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/nlohmann/json.hpp b/include/dpp/nlohmann/json.hpp
+deleted file mode 100755
+index cb27e05..0000000
+--- a/include/dpp/nlohmann/json.hpp
++++ /dev/null
+@@ -1,22091 +0,0 @@
+-/*
+-    __ _____ _____ _____
+- __|  |   __|     |   | |  JSON for Modern C++
+-|  |  |__   |  |  | | | |  version 3.10.5
+-|_____|_____|_____|_|___|  https://github.com/nlohmann/json
+-
+-Licensed under the MIT License <http://opensource.org/licenses/MIT>.
+-SPDX-License-Identifier: MIT
+-Copyright (c) 2013-2022 Niels Lohmann <http://nlohmann.me>.
+-
+-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.
+-*/
+-
+-/****************************************************************************\
+- * Note on documentation: The source files contain links to the online      *
+- * documentation of the public API at https://json.nlohmann.me. This URL    *
+- * contains the most recent documentation and should also be applicable to  *
+- * previous versions; documentation for deprecated functions is not         *
+- * removed, but marked deprecated. See "Generate documentation" section in  *
+- * file doc/README.md.                                                      *
+-\****************************************************************************/
+-
+-#ifndef INCLUDE_NLOHMANN_JSON_HPP_
+-#define INCLUDE_NLOHMANN_JSON_HPP_
+-
+-#define NLOHMANN_JSON_VERSION_MAJOR 3
+-#define NLOHMANN_JSON_VERSION_MINOR 10
+-#define NLOHMANN_JSON_VERSION_PATCH 5
+-
+-#include <algorithm> // all_of, find, for_each
+-#include <cstddef> // nullptr_t, ptrdiff_t, size_t
+-#include <functional> // hash, less
+-#include <initializer_list> // initializer_list
+-#ifndef JSON_NO_IO
+-    #include <iosfwd> // istream, ostream
+-#endif  // JSON_NO_IO
+-#include <iterator> // random_access_iterator_tag
+-#include <memory> // unique_ptr
+-#include <numeric> // accumulate
+-#include <string> // string, stoi, to_string
+-#include <utility> // declval, forward, move, pair, swap
+-#include <vector> // vector
+-
+-// #include <nlohmann/adl_serializer.hpp>
+-
+-
+-#include <type_traits>
+-#include <utility>
+-
+-// #include <nlohmann/detail/conversions/from_json.hpp>
+-
+-
+-#include <algorithm> // transform
+-#include <array> // array
+-#include <forward_list> // forward_list
+-#include <iterator> // inserter, front_inserter, end
+-#include <map> // map
+-#include <string> // string
+-#include <tuple> // tuple, make_tuple
+-#include <type_traits> // is_arithmetic, is_same, is_enum, underlying_type, is_convertible
+-#include <unordered_map> // unordered_map
+-#include <utility> // pair, declval
+-#include <valarray> // valarray
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-
+-#include <exception> // exception
+-#include <stdexcept> // runtime_error
+-#include <string> // to_string
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-#include <array> // array
+-#include <cstddef> // size_t
+-#include <cstdint> // uint8_t
+-#include <string> // string
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-///////////////////////////
+-// JSON type enumeration //
+-///////////////////////////
+-
+-/*!
+-@brief the JSON type enumeration
+-
+-This enumeration collects the different JSON types. It is internally used to
+-distinguish the stored values, and the functions @ref basic_json::is_null(),
+-@ref basic_json::is_object(), @ref basic_json::is_array(),
+-@ref basic_json::is_string(), @ref basic_json::is_boolean(),
+-@ref basic_json::is_number() (with @ref basic_json::is_number_integer(),
+-@ref basic_json::is_number_unsigned(), and @ref basic_json::is_number_float()),
+-@ref basic_json::is_discarded(), @ref basic_json::is_primitive(), and
+-@ref basic_json::is_structured() rely on it.
+-
+-@note There are three enumeration entries (number_integer, number_unsigned, and
+-number_float), because the library distinguishes these three types for numbers:
+-@ref basic_json::number_unsigned_t is used for unsigned integers,
+-@ref basic_json::number_integer_t is used for signed integers, and
+-@ref basic_json::number_float_t is used for floating-point numbers or to
+-approximate integers which do not fit in the limits of their respective type.
+-
+-@sa see @ref basic_json::basic_json(const value_t value_type) -- create a JSON
+-value with the default value for a given type
+-
+-@since version 1.0.0
+-*/
+-enum class value_t : std::uint8_t
+-{
+-    null,             ///< null value
+-    object,           ///< object (unordered set of name/value pairs)
+-    array,            ///< array (ordered collection of values)
+-    string,           ///< string value
+-    boolean,          ///< boolean value
+-    number_integer,   ///< number value (signed integer)
+-    number_unsigned,  ///< number value (unsigned integer)
+-    number_float,     ///< number value (floating-point)
+-    binary,           ///< binary array (ordered collection of bytes)
+-    discarded         ///< discarded by the parser callback function
+-};
+-
+-/*!
+-@brief comparison operator for JSON types
+-
+-Returns an ordering that is similar to Python:
+-- order: null < boolean < number < object < array < string < binary
+-- furthermore, each type is not smaller than itself
+-- discarded values are not comparable
+-- binary is represented as a b"" string in python and directly comparable to a
+-  string; however, making a binary array directly comparable with a string would
+-  be surprising behavior in a JSON file.
+-
+-@since version 1.0.0
+-*/
+-inline bool operator<(const value_t lhs, const value_t rhs) noexcept
+-{
+-    static constexpr std::array<std::uint8_t, 9> order = {{
+-            0 /* null */, 3 /* object */, 4 /* array */, 5 /* string */,
+-            1 /* boolean */, 2 /* integer */, 2 /* unsigned */, 2 /* float */,
+-            6 /* binary */
+-        }
+-    };
+-
+-    const auto l_index = static_cast<std::size_t>(lhs);
+-    const auto r_index = static_cast<std::size_t>(rhs);
+-    return l_index < order.size() && r_index < order.size() && order[l_index] < order[r_index];
+-}
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/string_escape.hpp>
+-
+-
+-#include <string>
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-#include <utility> // declval, pair
+-// #include <nlohmann/thirdparty/hedley/hedley.hpp>
+-
+-
+-/* Hedley - https://nemequ.github.io/hedley
+- * Created by Evan Nemerson <evan@nemerson.com>
+- *
+- * To the extent possible under law, the author(s) have dedicated all
+- * copyright and related and neighboring rights to this software to
+- * the public domain worldwide. This software is distributed without
+- * any warranty.
+- *
+- * For details, see <http://creativecommons.org/publicdomain/zero/1.0/>.
+- * SPDX-License-Identifier: CC0-1.0
+- */
+-
+-#if !defined(JSON_HEDLEY_VERSION) || (JSON_HEDLEY_VERSION < 15)
+-#if defined(JSON_HEDLEY_VERSION)
+-    #undef JSON_HEDLEY_VERSION
+-#endif
+-#define JSON_HEDLEY_VERSION 15
+-
+-#if defined(JSON_HEDLEY_STRINGIFY_EX)
+-    #undef JSON_HEDLEY_STRINGIFY_EX
+-#endif
+-#define JSON_HEDLEY_STRINGIFY_EX(x) #x
+-
+-#if defined(JSON_HEDLEY_STRINGIFY)
+-    #undef JSON_HEDLEY_STRINGIFY
+-#endif
+-#define JSON_HEDLEY_STRINGIFY(x) JSON_HEDLEY_STRINGIFY_EX(x)
+-
+-#if defined(JSON_HEDLEY_CONCAT_EX)
+-    #undef JSON_HEDLEY_CONCAT_EX
+-#endif
+-#define JSON_HEDLEY_CONCAT_EX(a,b) a##b
+-
+-#if defined(JSON_HEDLEY_CONCAT)
+-    #undef JSON_HEDLEY_CONCAT
+-#endif
+-#define JSON_HEDLEY_CONCAT(a,b) JSON_HEDLEY_CONCAT_EX(a,b)
+-
+-#if defined(JSON_HEDLEY_CONCAT3_EX)
+-    #undef JSON_HEDLEY_CONCAT3_EX
+-#endif
+-#define JSON_HEDLEY_CONCAT3_EX(a,b,c) a##b##c
+-
+-#if defined(JSON_HEDLEY_CONCAT3)
+-    #undef JSON_HEDLEY_CONCAT3
+-#endif
+-#define JSON_HEDLEY_CONCAT3(a,b,c) JSON_HEDLEY_CONCAT3_EX(a,b,c)
+-
+-#if defined(JSON_HEDLEY_VERSION_ENCODE)
+-    #undef JSON_HEDLEY_VERSION_ENCODE
+-#endif
+-#define JSON_HEDLEY_VERSION_ENCODE(major,minor,revision) (((major) * 1000000) + ((minor) * 1000) + (revision))
+-
+-#if defined(JSON_HEDLEY_VERSION_DECODE_MAJOR)
+-    #undef JSON_HEDLEY_VERSION_DECODE_MAJOR
+-#endif
+-#define JSON_HEDLEY_VERSION_DECODE_MAJOR(version) ((version) / 1000000)
+-
+-#if defined(JSON_HEDLEY_VERSION_DECODE_MINOR)
+-    #undef JSON_HEDLEY_VERSION_DECODE_MINOR
+-#endif
+-#define JSON_HEDLEY_VERSION_DECODE_MINOR(version) (((version) % 1000000) / 1000)
+-
+-#if defined(JSON_HEDLEY_VERSION_DECODE_REVISION)
+-    #undef JSON_HEDLEY_VERSION_DECODE_REVISION
+-#endif
+-#define JSON_HEDLEY_VERSION_DECODE_REVISION(version) ((version) % 1000)
+-
+-#if defined(JSON_HEDLEY_GNUC_VERSION)
+-    #undef JSON_HEDLEY_GNUC_VERSION
+-#endif
+-#if defined(__GNUC__) && defined(__GNUC_PATCHLEVEL__)
+-    #define JSON_HEDLEY_GNUC_VERSION JSON_HEDLEY_VERSION_ENCODE(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__)
+-#elif defined(__GNUC__)
+-    #define JSON_HEDLEY_GNUC_VERSION JSON_HEDLEY_VERSION_ENCODE(__GNUC__, __GNUC_MINOR__, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_GNUC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_GNUC_VERSION)
+-    #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GNUC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MSVC_VERSION)
+-    #undef JSON_HEDLEY_MSVC_VERSION
+-#endif
+-#if defined(_MSC_FULL_VER) && (_MSC_FULL_VER >= 140000000) && !defined(__ICL)
+-    #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_FULL_VER / 10000000, (_MSC_FULL_VER % 10000000) / 100000, (_MSC_FULL_VER % 100000) / 100)
+-#elif defined(_MSC_FULL_VER) && !defined(__ICL)
+-    #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_FULL_VER / 1000000, (_MSC_FULL_VER % 1000000) / 10000, (_MSC_FULL_VER % 10000) / 10)
+-#elif defined(_MSC_VER) && !defined(__ICL)
+-    #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_VER / 100, _MSC_VER % 100, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MSVC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_MSVC_VERSION_CHECK
+-#endif
+-#if !defined(JSON_HEDLEY_MSVC_VERSION)
+-    #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (0)
+-#elif defined(_MSC_VER) && (_MSC_VER >= 1400)
+-    #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch)))
+-#elif defined(_MSC_VER) && (_MSC_VER >= 1200)
+-    #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch)))
+-#else
+-    #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_VER >= ((major * 100) + (minor)))
+-#endif
+-
+-#if defined(JSON_HEDLEY_INTEL_VERSION)
+-    #undef JSON_HEDLEY_INTEL_VERSION
+-#endif
+-#if defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE) && !defined(__ICL)
+-    #define JSON_HEDLEY_INTEL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, __INTEL_COMPILER_UPDATE)
+-#elif defined(__INTEL_COMPILER) && !defined(__ICL)
+-    #define JSON_HEDLEY_INTEL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_INTEL_VERSION_CHECK)
+-    #undef JSON_HEDLEY_INTEL_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_INTEL_VERSION)
+-    #define JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_INTEL_CL_VERSION)
+-    #undef JSON_HEDLEY_INTEL_CL_VERSION
+-#endif
+-#if defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE) && defined(__ICL)
+-    #define JSON_HEDLEY_INTEL_CL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER, __INTEL_COMPILER_UPDATE, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_INTEL_CL_VERSION_CHECK)
+-    #undef JSON_HEDLEY_INTEL_CL_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_INTEL_CL_VERSION)
+-    #define JSON_HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_CL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_PGI_VERSION)
+-    #undef JSON_HEDLEY_PGI_VERSION
+-#endif
+-#if defined(__PGI) && defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__)
+-    #define JSON_HEDLEY_PGI_VERSION JSON_HEDLEY_VERSION_ENCODE(__PGIC__, __PGIC_MINOR__, __PGIC_PATCHLEVEL__)
+-#endif
+-
+-#if defined(JSON_HEDLEY_PGI_VERSION_CHECK)
+-    #undef JSON_HEDLEY_PGI_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_PGI_VERSION)
+-    #define JSON_HEDLEY_PGI_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_PGI_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_PGI_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_SUNPRO_VERSION)
+-    #undef JSON_HEDLEY_SUNPRO_VERSION
+-#endif
+-#if defined(__SUNPRO_C) && (__SUNPRO_C > 0x1000)
+-    #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((((__SUNPRO_C >> 16) & 0xf) * 10) + ((__SUNPRO_C >> 12) & 0xf), (((__SUNPRO_C >> 8) & 0xf) * 10) + ((__SUNPRO_C >> 4) & 0xf), (__SUNPRO_C & 0xf) * 10)
+-#elif defined(__SUNPRO_C)
+-    #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((__SUNPRO_C >> 8) & 0xf, (__SUNPRO_C >> 4) & 0xf, (__SUNPRO_C) & 0xf)
+-#elif defined(__SUNPRO_CC) && (__SUNPRO_CC > 0x1000)
+-    #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((((__SUNPRO_CC >> 16) & 0xf) * 10) + ((__SUNPRO_CC >> 12) & 0xf), (((__SUNPRO_CC >> 8) & 0xf) * 10) + ((__SUNPRO_CC >> 4) & 0xf), (__SUNPRO_CC & 0xf) * 10)
+-#elif defined(__SUNPRO_CC)
+-    #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((__SUNPRO_CC >> 8) & 0xf, (__SUNPRO_CC >> 4) & 0xf, (__SUNPRO_CC) & 0xf)
+-#endif
+-
+-#if defined(JSON_HEDLEY_SUNPRO_VERSION_CHECK)
+-    #undef JSON_HEDLEY_SUNPRO_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_SUNPRO_VERSION)
+-    #define JSON_HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_SUNPRO_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION)
+-    #undef JSON_HEDLEY_EMSCRIPTEN_VERSION
+-#endif
+-#if defined(__EMSCRIPTEN__)
+-    #define JSON_HEDLEY_EMSCRIPTEN_VERSION JSON_HEDLEY_VERSION_ENCODE(__EMSCRIPTEN_major__, __EMSCRIPTEN_minor__, __EMSCRIPTEN_tiny__)
+-#endif
+-
+-#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK)
+-    #undef JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION)
+-    #define JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_EMSCRIPTEN_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_ARM_VERSION)
+-    #undef JSON_HEDLEY_ARM_VERSION
+-#endif
+-#if defined(__CC_ARM) && defined(__ARMCOMPILER_VERSION)
+-    #define JSON_HEDLEY_ARM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ARMCOMPILER_VERSION / 1000000, (__ARMCOMPILER_VERSION % 1000000) / 10000, (__ARMCOMPILER_VERSION % 10000) / 100)
+-#elif defined(__CC_ARM) && defined(__ARMCC_VERSION)
+-    #define JSON_HEDLEY_ARM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ARMCC_VERSION / 1000000, (__ARMCC_VERSION % 1000000) / 10000, (__ARMCC_VERSION % 10000) / 100)
+-#endif
+-
+-#if defined(JSON_HEDLEY_ARM_VERSION_CHECK)
+-    #undef JSON_HEDLEY_ARM_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_ARM_VERSION)
+-    #define JSON_HEDLEY_ARM_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_ARM_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_ARM_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_IBM_VERSION)
+-    #undef JSON_HEDLEY_IBM_VERSION
+-#endif
+-#if defined(__ibmxl__)
+-    #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ibmxl_version__, __ibmxl_release__, __ibmxl_modification__)
+-#elif defined(__xlC__) && defined(__xlC_ver__)
+-    #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__xlC__ >> 8, __xlC__ & 0xff, (__xlC_ver__ >> 8) & 0xff)
+-#elif defined(__xlC__)
+-    #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__xlC__ >> 8, __xlC__ & 0xff, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_IBM_VERSION_CHECK)
+-    #undef JSON_HEDLEY_IBM_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_IBM_VERSION)
+-    #define JSON_HEDLEY_IBM_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_IBM_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_IBM_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_VERSION)
+-    #undef JSON_HEDLEY_TI_VERSION
+-#endif
+-#if \
+-    defined(__TI_COMPILER_VERSION__) && \
+-    ( \
+-      defined(__TMS470__) || defined(__TI_ARM__) || \
+-      defined(__MSP430__) || \
+-      defined(__TMS320C2000__) \
+-    )
+-#if (__TI_COMPILER_VERSION__ >= 16000000)
+-    #define JSON_HEDLEY_TI_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_VERSION)
+-    #define JSON_HEDLEY_TI_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL2000_VERSION)
+-    #undef JSON_HEDLEY_TI_CL2000_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__TMS320C2000__)
+-    #define JSON_HEDLEY_TI_CL2000_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL2000_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CL2000_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CL2000_VERSION)
+-    #define JSON_HEDLEY_TI_CL2000_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL2000_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CL2000_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL430_VERSION)
+-    #undef JSON_HEDLEY_TI_CL430_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__MSP430__)
+-    #define JSON_HEDLEY_TI_CL430_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL430_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CL430_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CL430_VERSION)
+-    #define JSON_HEDLEY_TI_CL430_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL430_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CL430_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_ARMCL_VERSION)
+-    #undef JSON_HEDLEY_TI_ARMCL_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && (defined(__TMS470__) || defined(__TI_ARM__))
+-    #define JSON_HEDLEY_TI_ARMCL_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_ARMCL_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_ARMCL_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_ARMCL_VERSION)
+-    #define JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_ARMCL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL6X_VERSION)
+-    #undef JSON_HEDLEY_TI_CL6X_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__TMS320C6X__)
+-    #define JSON_HEDLEY_TI_CL6X_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL6X_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CL6X_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CL6X_VERSION)
+-    #define JSON_HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL6X_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL7X_VERSION)
+-    #undef JSON_HEDLEY_TI_CL7X_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__C7000__)
+-    #define JSON_HEDLEY_TI_CL7X_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL7X_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CL7X_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CL7X_VERSION)
+-    #define JSON_HEDLEY_TI_CL7X_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL7X_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CL7X_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CLPRU_VERSION)
+-    #undef JSON_HEDLEY_TI_CLPRU_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__PRU__)
+-    #define JSON_HEDLEY_TI_CLPRU_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CLPRU_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CLPRU_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CLPRU_VERSION)
+-    #define JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CLPRU_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_CRAY_VERSION)
+-    #undef JSON_HEDLEY_CRAY_VERSION
+-#endif
+-#if defined(_CRAYC)
+-    #if defined(_RELEASE_PATCHLEVEL)
+-        #define JSON_HEDLEY_CRAY_VERSION JSON_HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, _RELEASE_PATCHLEVEL)
+-    #else
+-        #define JSON_HEDLEY_CRAY_VERSION JSON_HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, 0)
+-    #endif
+-#endif
+-
+-#if defined(JSON_HEDLEY_CRAY_VERSION_CHECK)
+-    #undef JSON_HEDLEY_CRAY_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_CRAY_VERSION)
+-    #define JSON_HEDLEY_CRAY_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_CRAY_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_CRAY_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_IAR_VERSION)
+-    #undef JSON_HEDLEY_IAR_VERSION
+-#endif
+-#if defined(__IAR_SYSTEMS_ICC__)
+-    #if __VER__ > 1000
+-        #define JSON_HEDLEY_IAR_VERSION JSON_HEDLEY_VERSION_ENCODE((__VER__ / 1000000), ((__VER__ / 1000) % 1000), (__VER__ % 1000))
+-    #else
+-        #define JSON_HEDLEY_IAR_VERSION JSON_HEDLEY_VERSION_ENCODE(__VER__ / 100, __VER__ % 100, 0)
+-    #endif
+-#endif
+-
+-#if defined(JSON_HEDLEY_IAR_VERSION_CHECK)
+-    #undef JSON_HEDLEY_IAR_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_IAR_VERSION)
+-    #define JSON_HEDLEY_IAR_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_IAR_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_IAR_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TINYC_VERSION)
+-    #undef JSON_HEDLEY_TINYC_VERSION
+-#endif
+-#if defined(__TINYC__)
+-    #define JSON_HEDLEY_TINYC_VERSION JSON_HEDLEY_VERSION_ENCODE(__TINYC__ / 1000, (__TINYC__ / 100) % 10, __TINYC__ % 100)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TINYC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TINYC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TINYC_VERSION)
+-    #define JSON_HEDLEY_TINYC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TINYC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TINYC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_DMC_VERSION)
+-    #undef JSON_HEDLEY_DMC_VERSION
+-#endif
+-#if defined(__DMC__)
+-    #define JSON_HEDLEY_DMC_VERSION JSON_HEDLEY_VERSION_ENCODE(__DMC__ >> 8, (__DMC__ >> 4) & 0xf, __DMC__ & 0xf)
+-#endif
+-
+-#if defined(JSON_HEDLEY_DMC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_DMC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_DMC_VERSION)
+-    #define JSON_HEDLEY_DMC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_DMC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_DMC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_COMPCERT_VERSION)
+-    #undef JSON_HEDLEY_COMPCERT_VERSION
+-#endif
+-#if defined(__COMPCERT_VERSION__)
+-    #define JSON_HEDLEY_COMPCERT_VERSION JSON_HEDLEY_VERSION_ENCODE(__COMPCERT_VERSION__ / 10000, (__COMPCERT_VERSION__ / 100) % 100, __COMPCERT_VERSION__ % 100)
+-#endif
+-
+-#if defined(JSON_HEDLEY_COMPCERT_VERSION_CHECK)
+-    #undef JSON_HEDLEY_COMPCERT_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_COMPCERT_VERSION)
+-    #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_COMPCERT_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_PELLES_VERSION)
+-    #undef JSON_HEDLEY_PELLES_VERSION
+-#endif
+-#if defined(__POCC__)
+-    #define JSON_HEDLEY_PELLES_VERSION JSON_HEDLEY_VERSION_ENCODE(__POCC__ / 100, __POCC__ % 100, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_PELLES_VERSION_CHECK)
+-    #undef JSON_HEDLEY_PELLES_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_PELLES_VERSION)
+-    #define JSON_HEDLEY_PELLES_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_PELLES_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_PELLES_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MCST_LCC_VERSION)
+-    #undef JSON_HEDLEY_MCST_LCC_VERSION
+-#endif
+-#if defined(__LCC__) && defined(__LCC_MINOR__)
+-    #define JSON_HEDLEY_MCST_LCC_VERSION JSON_HEDLEY_VERSION_ENCODE(__LCC__ / 100, __LCC__ % 100, __LCC_MINOR__)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MCST_LCC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_MCST_LCC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_MCST_LCC_VERSION)
+-    #define JSON_HEDLEY_MCST_LCC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_MCST_LCC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_MCST_LCC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_VERSION)
+-    #undef JSON_HEDLEY_GCC_VERSION
+-#endif
+-#if \
+-    defined(JSON_HEDLEY_GNUC_VERSION) && \
+-    !defined(__clang__) && \
+-    !defined(JSON_HEDLEY_INTEL_VERSION) && \
+-    !defined(JSON_HEDLEY_PGI_VERSION) && \
+-    !defined(JSON_HEDLEY_ARM_VERSION) && \
+-    !defined(JSON_HEDLEY_CRAY_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_ARMCL_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CL430_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CL2000_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CL6X_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CL7X_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CLPRU_VERSION) && \
+-    !defined(__COMPCERT__) && \
+-    !defined(JSON_HEDLEY_MCST_LCC_VERSION)
+-    #define JSON_HEDLEY_GCC_VERSION JSON_HEDLEY_GNUC_VERSION
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_GCC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_GCC_VERSION)
+-    #define JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GCC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_ATTRIBUTE)
+-    #undef JSON_HEDLEY_HAS_ATTRIBUTE
+-#endif
+-#if \
+-  defined(__has_attribute) && \
+-  ( \
+-    (!defined(JSON_HEDLEY_IAR_VERSION) || JSON_HEDLEY_IAR_VERSION_CHECK(8,5,9)) \
+-  )
+-#  define JSON_HEDLEY_HAS_ATTRIBUTE(attribute) __has_attribute(attribute)
+-#else
+-#  define JSON_HEDLEY_HAS_ATTRIBUTE(attribute) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GNUC_HAS_ATTRIBUTE
+-#endif
+-#if defined(__has_attribute)
+-    #define JSON_HEDLEY_GNUC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_HAS_ATTRIBUTE(attribute)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GCC_HAS_ATTRIBUTE
+-#endif
+-#if defined(__has_attribute)
+-    #define JSON_HEDLEY_GCC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_HAS_ATTRIBUTE(attribute)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_CPP_ATTRIBUTE)
+-    #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE
+-#endif
+-#if \
+-    defined(__has_cpp_attribute) && \
+-    defined(__cplusplus) && \
+-    (!defined(JSON_HEDLEY_SUNPRO_VERSION) || JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0))
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute) __has_cpp_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS)
+-    #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS
+-#endif
+-#if !defined(__cplusplus) || !defined(__has_cpp_attribute)
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) (0)
+-#elif \
+-    !defined(JSON_HEDLEY_PGI_VERSION) && \
+-    !defined(JSON_HEDLEY_IAR_VERSION) && \
+-    (!defined(JSON_HEDLEY_SUNPRO_VERSION) || JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0)) && \
+-    (!defined(JSON_HEDLEY_MSVC_VERSION) || JSON_HEDLEY_MSVC_VERSION_CHECK(19,20,0))
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) JSON_HEDLEY_HAS_CPP_ATTRIBUTE(ns::attribute)
+-#else
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE
+-#endif
+-#if defined(__has_cpp_attribute) && defined(__cplusplus)
+-    #define JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) __has_cpp_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE
+-#endif
+-#if defined(__has_cpp_attribute) && defined(__cplusplus)
+-    #define JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) __has_cpp_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_BUILTIN)
+-    #undef JSON_HEDLEY_HAS_BUILTIN
+-#endif
+-#if defined(__has_builtin)
+-    #define JSON_HEDLEY_HAS_BUILTIN(builtin) __has_builtin(builtin)
+-#else
+-    #define JSON_HEDLEY_HAS_BUILTIN(builtin) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_BUILTIN)
+-    #undef JSON_HEDLEY_GNUC_HAS_BUILTIN
+-#endif
+-#if defined(__has_builtin)
+-    #define JSON_HEDLEY_GNUC_HAS_BUILTIN(builtin,major,minor,patch) __has_builtin(builtin)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_BUILTIN(builtin,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_BUILTIN)
+-    #undef JSON_HEDLEY_GCC_HAS_BUILTIN
+-#endif
+-#if defined(__has_builtin)
+-    #define JSON_HEDLEY_GCC_HAS_BUILTIN(builtin,major,minor,patch) __has_builtin(builtin)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_BUILTIN(builtin,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_FEATURE)
+-    #undef JSON_HEDLEY_HAS_FEATURE
+-#endif
+-#if defined(__has_feature)
+-    #define JSON_HEDLEY_HAS_FEATURE(feature) __has_feature(feature)
+-#else
+-    #define JSON_HEDLEY_HAS_FEATURE(feature) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_FEATURE)
+-    #undef JSON_HEDLEY_GNUC_HAS_FEATURE
+-#endif
+-#if defined(__has_feature)
+-    #define JSON_HEDLEY_GNUC_HAS_FEATURE(feature,major,minor,patch) __has_feature(feature)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_FEATURE(feature,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_FEATURE)
+-    #undef JSON_HEDLEY_GCC_HAS_FEATURE
+-#endif
+-#if defined(__has_feature)
+-    #define JSON_HEDLEY_GCC_HAS_FEATURE(feature,major,minor,patch) __has_feature(feature)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_FEATURE(feature,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_EXTENSION)
+-    #undef JSON_HEDLEY_HAS_EXTENSION
+-#endif
+-#if defined(__has_extension)
+-    #define JSON_HEDLEY_HAS_EXTENSION(extension) __has_extension(extension)
+-#else
+-    #define JSON_HEDLEY_HAS_EXTENSION(extension) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_EXTENSION)
+-    #undef JSON_HEDLEY_GNUC_HAS_EXTENSION
+-#endif
+-#if defined(__has_extension)
+-    #define JSON_HEDLEY_GNUC_HAS_EXTENSION(extension,major,minor,patch) __has_extension(extension)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_EXTENSION(extension,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_EXTENSION)
+-    #undef JSON_HEDLEY_GCC_HAS_EXTENSION
+-#endif
+-#if defined(__has_extension)
+-    #define JSON_HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) __has_extension(extension)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE)
+-    #undef JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE
+-#endif
+-#if defined(__has_declspec_attribute)
+-    #define JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) __has_declspec_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE
+-#endif
+-#if defined(__has_declspec_attribute)
+-    #define JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) __has_declspec_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE
+-#endif
+-#if defined(__has_declspec_attribute)
+-    #define JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) __has_declspec_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_WARNING)
+-    #undef JSON_HEDLEY_HAS_WARNING
+-#endif
+-#if defined(__has_warning)
+-    #define JSON_HEDLEY_HAS_WARNING(warning) __has_warning(warning)
+-#else
+-    #define JSON_HEDLEY_HAS_WARNING(warning) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_WARNING)
+-    #undef JSON_HEDLEY_GNUC_HAS_WARNING
+-#endif
+-#if defined(__has_warning)
+-    #define JSON_HEDLEY_GNUC_HAS_WARNING(warning,major,minor,patch) __has_warning(warning)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_WARNING(warning,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_WARNING)
+-    #undef JSON_HEDLEY_GCC_HAS_WARNING
+-#endif
+-#if defined(__has_warning)
+-    #define JSON_HEDLEY_GCC_HAS_WARNING(warning,major,minor,patch) __has_warning(warning)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_WARNING(warning,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if \
+-    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \
+-    defined(__clang__) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(18,4,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,7,0) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(2,0,1) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,1,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,0,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_CRAY_VERSION_CHECK(5,0,0) || \
+-    JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,17) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(8,0,0) || \
+-    (JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) && defined(__C99_PRAGMA_OPERATOR))
+-    #define JSON_HEDLEY_PRAGMA(value) _Pragma(#value)
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0)
+-    #define JSON_HEDLEY_PRAGMA(value) __pragma(value)
+-#else
+-    #define JSON_HEDLEY_PRAGMA(value)
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_PUSH)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_PUSH
+-#endif
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_POP)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_POP
+-#endif
+-#if defined(__clang__)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("clang diagnostic push")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("clang diagnostic pop")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("warning(push)")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("warning(pop)")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("GCC diagnostic push")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("GCC diagnostic pop")
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH __pragma(warning(push))
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP __pragma(warning(pop))
+-#elif JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("push")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("pop")
+-#elif \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,4,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,1,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("diag_push")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("diag_pop")
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,90,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("warning(push)")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("warning(pop)")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP
+-#endif
+-
+-/* JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_ is for
+-   HEDLEY INTERNAL USE ONLY.  API subject to change without notice. */
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_
+-#endif
+-#if defined(__cplusplus)
+-#  if JSON_HEDLEY_HAS_WARNING("-Wc++98-compat")
+-#    if JSON_HEDLEY_HAS_WARNING("-Wc++17-extensions")
+-#      if JSON_HEDLEY_HAS_WARNING("-Wc++1z-extensions")
+-#        define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \
+-    _Pragma("clang diagnostic ignored \"-Wc++17-extensions\"") \
+-    _Pragma("clang diagnostic ignored \"-Wc++1z-extensions\"") \
+-    xpr \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#      else
+-#        define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \
+-    _Pragma("clang diagnostic ignored \"-Wc++17-extensions\"") \
+-    xpr \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#      endif
+-#    else
+-#      define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \
+-    xpr \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#    endif
+-#  endif
+-#endif
+-#if !defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(x) x
+-#endif
+-
+-#if defined(JSON_HEDLEY_CONST_CAST)
+-    #undef JSON_HEDLEY_CONST_CAST
+-#endif
+-#if defined(__cplusplus)
+-#  define JSON_HEDLEY_CONST_CAST(T, expr) (const_cast<T>(expr))
+-#elif \
+-  JSON_HEDLEY_HAS_WARNING("-Wcast-qual") || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-#  define JSON_HEDLEY_CONST_CAST(T, expr) (__extension__ ({ \
+-        JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-        JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL \
+-        ((T) (expr)); \
+-        JSON_HEDLEY_DIAGNOSTIC_POP \
+-    }))
+-#else
+-#  define JSON_HEDLEY_CONST_CAST(T, expr) ((T) (expr))
+-#endif
+-
+-#if defined(JSON_HEDLEY_REINTERPRET_CAST)
+-    #undef JSON_HEDLEY_REINTERPRET_CAST
+-#endif
+-#if defined(__cplusplus)
+-    #define JSON_HEDLEY_REINTERPRET_CAST(T, expr) (reinterpret_cast<T>(expr))
+-#else
+-    #define JSON_HEDLEY_REINTERPRET_CAST(T, expr) ((T) (expr))
+-#endif
+-
+-#if defined(JSON_HEDLEY_STATIC_CAST)
+-    #undef JSON_HEDLEY_STATIC_CAST
+-#endif
+-#if defined(__cplusplus)
+-    #define JSON_HEDLEY_STATIC_CAST(T, expr) (static_cast<T>(expr))
+-#else
+-    #define JSON_HEDLEY_STATIC_CAST(T, expr) ((T) (expr))
+-#endif
+-
+-#if defined(JSON_HEDLEY_CPP_CAST)
+-    #undef JSON_HEDLEY_CPP_CAST
+-#endif
+-#if defined(__cplusplus)
+-#  if JSON_HEDLEY_HAS_WARNING("-Wold-style-cast")
+-#    define JSON_HEDLEY_CPP_CAST(T, expr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wold-style-cast\"") \
+-    ((T) (expr)) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#  elif JSON_HEDLEY_IAR_VERSION_CHECK(8,3,0)
+-#    define JSON_HEDLEY_CPP_CAST(T, expr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("diag_suppress=Pe137") \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#  else
+-#    define JSON_HEDLEY_CPP_CAST(T, expr) ((T) (expr))
+-#  endif
+-#else
+-#  define JSON_HEDLEY_CPP_CAST(T, expr) (expr)
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wdeprecated-declarations")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("warning(disable:1478 1786)")
+-#elif JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED __pragma(warning(disable:1478 1786))
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(20,7,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1216,1444,1445")
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1444")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED __pragma(warning(disable:4996))
+-#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1444")
+-#elif \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1291,1718")
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) && !defined(__cplusplus)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("error_messages(off,E_DEPRECATED_ATT,E_DEPRECATED_ATT_MESS)")
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) && defined(__cplusplus)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("error_messages(off,symdeprecated,symdeprecated2)")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress=Pe1444,Pe1215")
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,90,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("warn(disable:2241)")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("clang diagnostic ignored \"-Wunknown-pragmas\"")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("warning(disable:161)")
+-#elif JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS __pragma(warning(disable:161))
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 1675")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("GCC diagnostic ignored \"-Wunknown-pragmas\"")
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS __pragma(warning(disable:4068))
+-#elif \
+-    JSON_HEDLEY_TI_VERSION_CHECK(16,9,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,3,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 163")
+-#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 163")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress=Pe161")
+-#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 161")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunknown-attributes")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("clang diagnostic ignored \"-Wunknown-attributes\"")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(17,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("warning(disable:1292)")
+-#elif JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES __pragma(warning(disable:1292))
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(19,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES __pragma(warning(disable:5030))
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(20,7,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097,1098")
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097")
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,14,0) && defined(__cplusplus)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("error_messages(off,attrskipunsup)")
+-#elif \
+-    JSON_HEDLEY_TI_VERSION_CHECK(18,1,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,3,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1173")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress=Pe1097")
+-#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wcast-qual")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("clang diagnostic ignored \"-Wcast-qual\"")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("warning(disable:2203 2331)")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("GCC diagnostic ignored \"-Wcast-qual\"")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunused-function")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("clang diagnostic ignored \"-Wunused-function\"")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("GCC diagnostic ignored \"-Wunused-function\"")
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(1,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION __pragma(warning(disable:4505))
+-#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("diag_suppress 3142")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION
+-#endif
+-
+-#if defined(JSON_HEDLEY_DEPRECATED)
+-    #undef JSON_HEDLEY_DEPRECATED
+-#endif
+-#if defined(JSON_HEDLEY_DEPRECATED_FOR)
+-    #undef JSON_HEDLEY_DEPRECATED_FOR
+-#endif
+-#if \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DEPRECATED(since) __declspec(deprecated("Since " # since))
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __declspec(deprecated("Since " #since "; use " #replacement))
+-#elif \
+-    (JSON_HEDLEY_HAS_EXTENSION(attribute_deprecated_with_message) && !defined(JSON_HEDLEY_IAR_VERSION)) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,5,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(18,1,0) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(18,1,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,3,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,3,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DEPRECATED(since) __attribute__((__deprecated__("Since " #since)))
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __attribute__((__deprecated__("Since " #since "; use " #replacement)))
+-#elif defined(__cplusplus) && (__cplusplus >= 201402L)
+-    #define JSON_HEDLEY_DEPRECATED(since) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[deprecated("Since " #since)]])
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[deprecated("Since " #since "; use " #replacement)]])
+-#elif \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(deprecated) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0)
+-    #define JSON_HEDLEY_DEPRECATED(since) __attribute__((__deprecated__))
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __attribute__((__deprecated__))
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
+-    JSON_HEDLEY_PELLES_VERSION_CHECK(6,50,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DEPRECATED(since) __declspec(deprecated)
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __declspec(deprecated)
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DEPRECATED(since) _Pragma("deprecated")
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) _Pragma("deprecated")
+-#else
+-    #define JSON_HEDLEY_DEPRECATED(since)
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement)
+-#endif
+-
+-#if defined(JSON_HEDLEY_UNAVAILABLE)
+-    #undef JSON_HEDLEY_UNAVAILABLE
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(warning) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_UNAVAILABLE(available_since) __attribute__((__warning__("Not available until " #available_since)))
+-#else
+-    #define JSON_HEDLEY_UNAVAILABLE(available_since)
+-#endif
+-
+-#if defined(JSON_HEDLEY_WARN_UNUSED_RESULT)
+-    #undef JSON_HEDLEY_WARN_UNUSED_RESULT
+-#endif
+-#if defined(JSON_HEDLEY_WARN_UNUSED_RESULT_MSG)
+-    #undef JSON_HEDLEY_WARN_UNUSED_RESULT_MSG
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(warn_unused_result) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0) && defined(__cplusplus)) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) __attribute__((__warn_unused_result__))
+-#elif (JSON_HEDLEY_HAS_CPP_ATTRIBUTE(nodiscard) >= 201907L)
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]])
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard(msg)]])
+-#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE(nodiscard)
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]])
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]])
+-#elif defined(_Check_return_) /* SAL */
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT _Check_return_
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) _Check_return_
+-#else
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg)
+-#endif
+-
+-#if defined(JSON_HEDLEY_SENTINEL)
+-    #undef JSON_HEDLEY_SENTINEL
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(sentinel) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(5,4,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_SENTINEL(position) __attribute__((__sentinel__(position)))
+-#else
+-    #define JSON_HEDLEY_SENTINEL(position)
+-#endif
+-
+-#if defined(JSON_HEDLEY_NO_RETURN)
+-    #undef JSON_HEDLEY_NO_RETURN
+-#endif
+-#if JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_NO_RETURN __noreturn
+-#elif \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_NO_RETURN __attribute__((__noreturn__))
+-#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
+-    #define JSON_HEDLEY_NO_RETURN _Noreturn
+-#elif defined(__cplusplus) && (__cplusplus >= 201103L)
+-    #define JSON_HEDLEY_NO_RETURN JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[noreturn]])
+-#elif \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(noreturn) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,2,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0)
+-    #define JSON_HEDLEY_NO_RETURN __attribute__((__noreturn__))
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
+-    #define JSON_HEDLEY_NO_RETURN _Pragma("does_not_return")
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_NO_RETURN __declspec(noreturn)
+-#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,0,0) && defined(__cplusplus)
+-    #define JSON_HEDLEY_NO_RETURN _Pragma("FUNC_NEVER_RETURNS;")
+-#elif JSON_HEDLEY_COMPCERT_VERSION_CHECK(3,2,0)
+-    #define JSON_HEDLEY_NO_RETURN __attribute((noreturn))
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(9,0,0)
+-    #define JSON_HEDLEY_NO_RETURN __declspec(noreturn)
+-#else
+-    #define JSON_HEDLEY_NO_RETURN
+-#endif
+-
+-#if defined(JSON_HEDLEY_NO_ESCAPE)
+-    #undef JSON_HEDLEY_NO_ESCAPE
+-#endif
+-#if JSON_HEDLEY_HAS_ATTRIBUTE(noescape)
+-    #define JSON_HEDLEY_NO_ESCAPE __attribute__((__noescape__))
+-#else
+-    #define JSON_HEDLEY_NO_ESCAPE
+-#endif
+-
+-#if defined(JSON_HEDLEY_UNREACHABLE)
+-    #undef JSON_HEDLEY_UNREACHABLE
+-#endif
+-#if defined(JSON_HEDLEY_UNREACHABLE_RETURN)
+-    #undef JSON_HEDLEY_UNREACHABLE_RETURN
+-#endif
+-#if defined(JSON_HEDLEY_ASSUME)
+-    #undef JSON_HEDLEY_ASSUME
+-#endif
+-#if \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_ASSUME(expr) __assume(expr)
+-#elif JSON_HEDLEY_HAS_BUILTIN(__builtin_assume)
+-    #define JSON_HEDLEY_ASSUME(expr) __builtin_assume(expr)
+-#elif \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0)
+-    #if defined(__cplusplus)
+-        #define JSON_HEDLEY_ASSUME(expr) std::_nassert(expr)
+-    #else
+-        #define JSON_HEDLEY_ASSUME(expr) _nassert(expr)
+-    #endif
+-#endif
+-#if \
+-    (JSON_HEDLEY_HAS_BUILTIN(__builtin_unreachable) && (!defined(JSON_HEDLEY_ARM_VERSION))) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,5,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(18,10,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(13,1,5) || \
+-    JSON_HEDLEY_CRAY_VERSION_CHECK(10,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_UNREACHABLE() __builtin_unreachable()
+-#elif defined(JSON_HEDLEY_ASSUME)
+-    #define JSON_HEDLEY_UNREACHABLE() JSON_HEDLEY_ASSUME(0)
+-#endif
+-#if !defined(JSON_HEDLEY_ASSUME)
+-    #if defined(JSON_HEDLEY_UNREACHABLE)
+-        #define JSON_HEDLEY_ASSUME(expr) JSON_HEDLEY_STATIC_CAST(void, ((expr) ? 1 : (JSON_HEDLEY_UNREACHABLE(), 1)))
+-    #else
+-        #define JSON_HEDLEY_ASSUME(expr) JSON_HEDLEY_STATIC_CAST(void, expr)
+-    #endif
+-#endif
+-#if defined(JSON_HEDLEY_UNREACHABLE)
+-    #if  \
+-        JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \
+-        JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0)
+-        #define JSON_HEDLEY_UNREACHABLE_RETURN(value) return (JSON_HEDLEY_STATIC_CAST(void, JSON_HEDLEY_ASSUME(0)), (value))
+-    #else
+-        #define JSON_HEDLEY_UNREACHABLE_RETURN(value) JSON_HEDLEY_UNREACHABLE()
+-    #endif
+-#else
+-    #define JSON_HEDLEY_UNREACHABLE_RETURN(value) return (value)
+-#endif
+-#if !defined(JSON_HEDLEY_UNREACHABLE)
+-    #define JSON_HEDLEY_UNREACHABLE() JSON_HEDLEY_ASSUME(0)
+-#endif
+-
+-JSON_HEDLEY_DIAGNOSTIC_PUSH
+-#if JSON_HEDLEY_HAS_WARNING("-Wpedantic")
+-    #pragma clang diagnostic ignored "-Wpedantic"
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wc++98-compat-pedantic") && defined(__cplusplus)
+-    #pragma clang diagnostic ignored "-Wc++98-compat-pedantic"
+-#endif
+-#if JSON_HEDLEY_GCC_HAS_WARNING("-Wvariadic-macros",4,0,0)
+-    #if defined(__clang__)
+-        #pragma clang diagnostic ignored "-Wvariadic-macros"
+-    #elif defined(JSON_HEDLEY_GCC_VERSION)
+-        #pragma GCC diagnostic ignored "-Wvariadic-macros"
+-    #endif
+-#endif
+-#if defined(JSON_HEDLEY_NON_NULL)
+-    #undef JSON_HEDLEY_NON_NULL
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(nonnull) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0)
+-    #define JSON_HEDLEY_NON_NULL(...) __attribute__((__nonnull__(__VA_ARGS__)))
+-#else
+-    #define JSON_HEDLEY_NON_NULL(...)
+-#endif
+-JSON_HEDLEY_DIAGNOSTIC_POP
+-
+-#if defined(JSON_HEDLEY_PRINTF_FORMAT)
+-    #undef JSON_HEDLEY_PRINTF_FORMAT
+-#endif
+-#if defined(__MINGW32__) && JSON_HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && !defined(__USE_MINGW_ANSI_STDIO)
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(ms_printf, string_idx, first_to_check)))
+-#elif defined(__MINGW32__) && JSON_HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && defined(__USE_MINGW_ANSI_STDIO)
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(gnu_printf, string_idx, first_to_check)))
+-#elif \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(format) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(__printf__, string_idx, first_to_check)))
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(6,0,0)
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __declspec(vaformat(printf,string_idx,first_to_check))
+-#else
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check)
+-#endif
+-
+-#if defined(JSON_HEDLEY_CONSTEXPR)
+-    #undef JSON_HEDLEY_CONSTEXPR
+-#endif
+-#if defined(__cplusplus)
+-    #if __cplusplus >= 201103L
+-        #define JSON_HEDLEY_CONSTEXPR JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(constexpr)
+-    #endif
+-#endif
+-#if !defined(JSON_HEDLEY_CONSTEXPR)
+-    #define JSON_HEDLEY_CONSTEXPR
+-#endif
+-
+-#if defined(JSON_HEDLEY_PREDICT)
+-    #undef JSON_HEDLEY_PREDICT
+-#endif
+-#if defined(JSON_HEDLEY_LIKELY)
+-    #undef JSON_HEDLEY_LIKELY
+-#endif
+-#if defined(JSON_HEDLEY_UNLIKELY)
+-    #undef JSON_HEDLEY_UNLIKELY
+-#endif
+-#if defined(JSON_HEDLEY_UNPREDICTABLE)
+-    #undef JSON_HEDLEY_UNPREDICTABLE
+-#endif
+-#if JSON_HEDLEY_HAS_BUILTIN(__builtin_unpredictable)
+-    #define JSON_HEDLEY_UNPREDICTABLE(expr) __builtin_unpredictable((expr))
+-#endif
+-#if \
+-  (JSON_HEDLEY_HAS_BUILTIN(__builtin_expect_with_probability) && !defined(JSON_HEDLEY_PGI_VERSION)) || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(9,0,0) || \
+-  JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-#  define JSON_HEDLEY_PREDICT(expr, value, probability) __builtin_expect_with_probability(  (expr), (value), (probability))
+-#  define JSON_HEDLEY_PREDICT_TRUE(expr, probability)   __builtin_expect_with_probability(!!(expr),    1   , (probability))
+-#  define JSON_HEDLEY_PREDICT_FALSE(expr, probability)  __builtin_expect_with_probability(!!(expr),    0   , (probability))
+-#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
+-#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
+-#elif \
+-  (JSON_HEDLEY_HAS_BUILTIN(__builtin_expect) && !defined(JSON_HEDLEY_INTEL_CL_VERSION)) || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-  (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0) && defined(__cplusplus)) || \
+-  JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-  JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-  JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-  JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,7,0) || \
+-  JSON_HEDLEY_TI_CL430_VERSION_CHECK(3,1,0) || \
+-  JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,1,0) || \
+-  JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \
+-  JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-  JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-  JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,27) || \
+-  JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \
+-  JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-#  define JSON_HEDLEY_PREDICT(expr, expected, probability) \
+-    (((probability) >= 0.9) ? __builtin_expect((expr), (expected)) : (JSON_HEDLEY_STATIC_CAST(void, expected), (expr)))
+-#  define JSON_HEDLEY_PREDICT_TRUE(expr, probability) \
+-    (__extension__ ({ \
+-        double hedley_probability_ = (probability); \
+-        ((hedley_probability_ >= 0.9) ? __builtin_expect(!!(expr), 1) : ((hedley_probability_ <= 0.1) ? __builtin_expect(!!(expr), 0) : !!(expr))); \
+-    }))
+-#  define JSON_HEDLEY_PREDICT_FALSE(expr, probability) \
+-    (__extension__ ({ \
+-        double hedley_probability_ = (probability); \
+-        ((hedley_probability_ >= 0.9) ? __builtin_expect(!!(expr), 0) : ((hedley_probability_ <= 0.1) ? __builtin_expect(!!(expr), 1) : !!(expr))); \
+-    }))
+-#  define JSON_HEDLEY_LIKELY(expr)   __builtin_expect(!!(expr), 1)
+-#  define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect(!!(expr), 0)
+-#else
+-#  define JSON_HEDLEY_PREDICT(expr, expected, probability) (JSON_HEDLEY_STATIC_CAST(void, expected), (expr))
+-#  define JSON_HEDLEY_PREDICT_TRUE(expr, probability) (!!(expr))
+-#  define JSON_HEDLEY_PREDICT_FALSE(expr, probability) (!!(expr))
+-#  define JSON_HEDLEY_LIKELY(expr) (!!(expr))
+-#  define JSON_HEDLEY_UNLIKELY(expr) (!!(expr))
+-#endif
+-#if !defined(JSON_HEDLEY_UNPREDICTABLE)
+-    #define JSON_HEDLEY_UNPREDICTABLE(expr) JSON_HEDLEY_PREDICT(expr, 1, 0.5)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MALLOC)
+-    #undef JSON_HEDLEY_MALLOC
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(malloc) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(12,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_MALLOC __attribute__((__malloc__))
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
+-    #define JSON_HEDLEY_MALLOC _Pragma("returns_new_memory")
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_MALLOC __declspec(restrict)
+-#else
+-    #define JSON_HEDLEY_MALLOC
+-#endif
+-
+-#if defined(JSON_HEDLEY_PURE)
+-    #undef JSON_HEDLEY_PURE
+-#endif
+-#if \
+-  JSON_HEDLEY_HAS_ATTRIBUTE(pure) || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(2,96,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-  JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-  JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-  JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-  JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-  (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-  (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-  (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-  (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-  JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-  JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-  JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-  JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-#  define JSON_HEDLEY_PURE __attribute__((__pure__))
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
+-#  define JSON_HEDLEY_PURE _Pragma("does_not_write_global_data")
+-#elif defined(__cplusplus) && \
+-    ( \
+-      JSON_HEDLEY_TI_CL430_VERSION_CHECK(2,0,1) || \
+-      JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0) || \
+-      JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) \
+-    )
+-#  define JSON_HEDLEY_PURE _Pragma("FUNC_IS_PURE;")
+-#else
+-#  define JSON_HEDLEY_PURE
+-#endif
+-
+-#if defined(JSON_HEDLEY_CONST)
+-    #undef JSON_HEDLEY_CONST
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(const) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(2,5,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_CONST __attribute__((__const__))
+-#elif \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
+-    #define JSON_HEDLEY_CONST _Pragma("no_side_effect")
+-#else
+-    #define JSON_HEDLEY_CONST JSON_HEDLEY_PURE
+-#endif
+-
+-#if defined(JSON_HEDLEY_RESTRICT)
+-    #undef JSON_HEDLEY_RESTRICT
+-#endif
+-#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && !defined(__cplusplus)
+-    #define JSON_HEDLEY_RESTRICT restrict
+-#elif \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,4) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,1,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,14,0) && defined(__cplusplus)) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) || \
+-    defined(__clang__) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_RESTRICT __restrict
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,3,0) && !defined(__cplusplus)
+-    #define JSON_HEDLEY_RESTRICT _Restrict
+-#else
+-    #define JSON_HEDLEY_RESTRICT
+-#endif
+-
+-#if defined(JSON_HEDLEY_INLINE)
+-    #undef JSON_HEDLEY_INLINE
+-#endif
+-#if \
+-    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \
+-    (defined(__cplusplus) && (__cplusplus >= 199711L))
+-    #define JSON_HEDLEY_INLINE inline
+-#elif \
+-    defined(JSON_HEDLEY_GCC_VERSION) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(6,2,0)
+-    #define JSON_HEDLEY_INLINE __inline__
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(12,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,1,0) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_INLINE __inline
+-#else
+-    #define JSON_HEDLEY_INLINE
+-#endif
+-
+-#if defined(JSON_HEDLEY_ALWAYS_INLINE)
+-    #undef JSON_HEDLEY_ALWAYS_INLINE
+-#endif
+-#if \
+-  JSON_HEDLEY_HAS_ATTRIBUTE(always_inline) || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-  JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-  JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-  JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-  JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-  (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-  (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-  (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-  (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-  JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-  JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-  JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \
+-  JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0)
+-#  define JSON_HEDLEY_ALWAYS_INLINE __attribute__((__always_inline__)) JSON_HEDLEY_INLINE
+-#elif \
+-  JSON_HEDLEY_MSVC_VERSION_CHECK(12,0,0) || \
+-  JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-#  define JSON_HEDLEY_ALWAYS_INLINE __forceinline
+-#elif defined(__cplusplus) && \
+-    ( \
+-      JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-      JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-      JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-      JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \
+-      JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-      JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) \
+-    )
+-#  define JSON_HEDLEY_ALWAYS_INLINE _Pragma("FUNC_ALWAYS_INLINE;")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-#  define JSON_HEDLEY_ALWAYS_INLINE _Pragma("inline=forced")
+-#else
+-#  define JSON_HEDLEY_ALWAYS_INLINE JSON_HEDLEY_INLINE
+-#endif
+-
+-#if defined(JSON_HEDLEY_NEVER_INLINE)
+-    #undef JSON_HEDLEY_NEVER_INLINE
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(noinline) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0)
+-    #define JSON_HEDLEY_NEVER_INLINE __attribute__((__noinline__))
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_NEVER_INLINE __declspec(noinline)
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(10,2,0)
+-    #define JSON_HEDLEY_NEVER_INLINE _Pragma("noinline")
+-#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,0,0) && defined(__cplusplus)
+-    #define JSON_HEDLEY_NEVER_INLINE _Pragma("FUNC_CANNOT_INLINE;")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_NEVER_INLINE _Pragma("inline=never")
+-#elif JSON_HEDLEY_COMPCERT_VERSION_CHECK(3,2,0)
+-    #define JSON_HEDLEY_NEVER_INLINE __attribute((noinline))
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(9,0,0)
+-    #define JSON_HEDLEY_NEVER_INLINE __declspec(noinline)
+-#else
+-    #define JSON_HEDLEY_NEVER_INLINE
+-#endif
+-
+-#if defined(JSON_HEDLEY_PRIVATE)
+-    #undef JSON_HEDLEY_PRIVATE
+-#endif
+-#if defined(JSON_HEDLEY_PUBLIC)
+-    #undef JSON_HEDLEY_PUBLIC
+-#endif
+-#if defined(JSON_HEDLEY_IMPORT)
+-    #undef JSON_HEDLEY_IMPORT
+-#endif
+-#if defined(_WIN32) || defined(__CYGWIN__)
+-#  define JSON_HEDLEY_PRIVATE
+-#  define JSON_HEDLEY_PUBLIC   __declspec(dllexport)
+-#  define JSON_HEDLEY_IMPORT   __declspec(dllimport)
+-#else
+-#  if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(visibility) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \
+-    ( \
+-      defined(__TI_EABI__) && \
+-      ( \
+-        (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-        JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) \
+-      ) \
+-    ) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-#    define JSON_HEDLEY_PRIVATE __attribute__((__visibility__("hidden")))
+-#    define JSON_HEDLEY_PUBLIC  __attribute__((__visibility__("default")))
+-#  else
+-#    define JSON_HEDLEY_PRIVATE
+-#    define JSON_HEDLEY_PUBLIC
+-#  endif
+-#  define JSON_HEDLEY_IMPORT    extern
+-#endif
+-
+-#if defined(JSON_HEDLEY_NO_THROW)
+-    #undef JSON_HEDLEY_NO_THROW
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(nothrow) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_NO_THROW __attribute__((__nothrow__))
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,1,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0)
+-    #define JSON_HEDLEY_NO_THROW __declspec(nothrow)
+-#else
+-    #define JSON_HEDLEY_NO_THROW
+-#endif
+-
+-#if defined(JSON_HEDLEY_FALL_THROUGH)
+-    #undef JSON_HEDLEY_FALL_THROUGH
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(fallthrough) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(7,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_FALL_THROUGH __attribute__((__fallthrough__))
+-#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(clang,fallthrough)
+-    #define JSON_HEDLEY_FALL_THROUGH JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[clang::fallthrough]])
+-#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE(fallthrough)
+-    #define JSON_HEDLEY_FALL_THROUGH JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[fallthrough]])
+-#elif defined(__fallthrough) /* SAL */
+-    #define JSON_HEDLEY_FALL_THROUGH __fallthrough
+-#else
+-    #define JSON_HEDLEY_FALL_THROUGH
+-#endif
+-
+-#if defined(JSON_HEDLEY_RETURNS_NON_NULL)
+-    #undef JSON_HEDLEY_RETURNS_NON_NULL
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(returns_nonnull) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_RETURNS_NON_NULL __attribute__((__returns_nonnull__))
+-#elif defined(_Ret_notnull_) /* SAL */
+-    #define JSON_HEDLEY_RETURNS_NON_NULL _Ret_notnull_
+-#else
+-    #define JSON_HEDLEY_RETURNS_NON_NULL
+-#endif
+-
+-#if defined(JSON_HEDLEY_ARRAY_PARAM)
+-    #undef JSON_HEDLEY_ARRAY_PARAM
+-#endif
+-#if \
+-    defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && \
+-    !defined(__STDC_NO_VLA__) && \
+-    !defined(__cplusplus) && \
+-    !defined(JSON_HEDLEY_PGI_VERSION) && \
+-    !defined(JSON_HEDLEY_TINYC_VERSION)
+-    #define JSON_HEDLEY_ARRAY_PARAM(name) (name)
+-#else
+-    #define JSON_HEDLEY_ARRAY_PARAM(name)
+-#endif
+-
+-#if defined(JSON_HEDLEY_IS_CONSTANT)
+-    #undef JSON_HEDLEY_IS_CONSTANT
+-#endif
+-#if defined(JSON_HEDLEY_REQUIRE_CONSTEXPR)
+-    #undef JSON_HEDLEY_REQUIRE_CONSTEXPR
+-#endif
+-/* JSON_HEDLEY_IS_CONSTEXPR_ is for
+-   HEDLEY INTERNAL USE ONLY.  API subject to change without notice. */
+-#if defined(JSON_HEDLEY_IS_CONSTEXPR_)
+-    #undef JSON_HEDLEY_IS_CONSTEXPR_
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_BUILTIN(__builtin_constant_p) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,19) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \
+-    (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) && !defined(__cplusplus)) || \
+-    JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_IS_CONSTANT(expr) __builtin_constant_p(expr)
+-#endif
+-#if !defined(__cplusplus)
+-#  if \
+-       JSON_HEDLEY_HAS_BUILTIN(__builtin_types_compatible_p) || \
+-       JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \
+-       JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-       JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \
+-       JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \
+-       JSON_HEDLEY_ARM_VERSION_CHECK(5,4,0) || \
+-       JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,24)
+-#if defined(__INTPTR_TYPE__)
+-    #define JSON_HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0)), int*)
+-#else
+-    #include <stdint.h>
+-    #define JSON_HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((intptr_t) ((expr) * 0)) : (int*) 0)), int*)
+-#endif
+-#  elif \
+-       ( \
+-          defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) && \
+-          !defined(JSON_HEDLEY_SUNPRO_VERSION) && \
+-          !defined(JSON_HEDLEY_PGI_VERSION) && \
+-          !defined(JSON_HEDLEY_IAR_VERSION)) || \
+-       (JSON_HEDLEY_HAS_EXTENSION(c_generic_selections) && !defined(JSON_HEDLEY_IAR_VERSION)) || \
+-       JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0) || \
+-       JSON_HEDLEY_INTEL_VERSION_CHECK(17,0,0) || \
+-       JSON_HEDLEY_IBM_VERSION_CHECK(12,1,0) || \
+-       JSON_HEDLEY_ARM_VERSION_CHECK(5,3,0)
+-#if defined(__INTPTR_TYPE__)
+-    #define JSON_HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0), int*: 1, void*: 0)
+-#else
+-    #include <stdint.h>
+-    #define JSON_HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((intptr_t) * 0) : (int*) 0), int*: 1, void*: 0)
+-#endif
+-#  elif \
+-       defined(JSON_HEDLEY_GCC_VERSION) || \
+-       defined(JSON_HEDLEY_INTEL_VERSION) || \
+-       defined(JSON_HEDLEY_TINYC_VERSION) || \
+-       defined(JSON_HEDLEY_TI_ARMCL_VERSION) || \
+-       JSON_HEDLEY_TI_CL430_VERSION_CHECK(18,12,0) || \
+-       defined(JSON_HEDLEY_TI_CL2000_VERSION) || \
+-       defined(JSON_HEDLEY_TI_CL6X_VERSION) || \
+-       defined(JSON_HEDLEY_TI_CL7X_VERSION) || \
+-       defined(JSON_HEDLEY_TI_CLPRU_VERSION) || \
+-       defined(__clang__)
+-#    define JSON_HEDLEY_IS_CONSTEXPR_(expr) ( \
+-        sizeof(void) != \
+-        sizeof(*( \
+-                  1 ? \
+-                  ((void*) ((expr) * 0L) ) : \
+-((struct { char v[sizeof(void) * 2]; } *) 1) \
+-                ) \
+-              ) \
+-                                            )
+-#  endif
+-#endif
+-#if defined(JSON_HEDLEY_IS_CONSTEXPR_)
+-    #if !defined(JSON_HEDLEY_IS_CONSTANT)
+-        #define JSON_HEDLEY_IS_CONSTANT(expr) JSON_HEDLEY_IS_CONSTEXPR_(expr)
+-    #endif
+-    #define JSON_HEDLEY_REQUIRE_CONSTEXPR(expr) (JSON_HEDLEY_IS_CONSTEXPR_(expr) ? (expr) : (-1))
+-#else
+-    #if !defined(JSON_HEDLEY_IS_CONSTANT)
+-        #define JSON_HEDLEY_IS_CONSTANT(expr) (0)
+-    #endif
+-    #define JSON_HEDLEY_REQUIRE_CONSTEXPR(expr) (expr)
+-#endif
+-
+-#if defined(JSON_HEDLEY_BEGIN_C_DECLS)
+-    #undef JSON_HEDLEY_BEGIN_C_DECLS
+-#endif
+-#if defined(JSON_HEDLEY_END_C_DECLS)
+-    #undef JSON_HEDLEY_END_C_DECLS
+-#endif
+-#if defined(JSON_HEDLEY_C_DECL)
+-    #undef JSON_HEDLEY_C_DECL
+-#endif
+-#if defined(__cplusplus)
+-    #define JSON_HEDLEY_BEGIN_C_DECLS extern "C" {
+-    #define JSON_HEDLEY_END_C_DECLS }
+-    #define JSON_HEDLEY_C_DECL extern "C"
+-#else
+-    #define JSON_HEDLEY_BEGIN_C_DECLS
+-    #define JSON_HEDLEY_END_C_DECLS
+-    #define JSON_HEDLEY_C_DECL
+-#endif
+-
+-#if defined(JSON_HEDLEY_STATIC_ASSERT)
+-    #undef JSON_HEDLEY_STATIC_ASSERT
+-#endif
+-#if \
+-  !defined(__cplusplus) && ( \
+-      (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)) || \
+-      (JSON_HEDLEY_HAS_FEATURE(c_static_assert) && !defined(JSON_HEDLEY_INTEL_CL_VERSION)) || \
+-      JSON_HEDLEY_GCC_VERSION_CHECK(6,0,0) || \
+-      JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-      defined(_Static_assert) \
+-    )
+-#  define JSON_HEDLEY_STATIC_ASSERT(expr, message) _Static_assert(expr, message)
+-#elif \
+-  (defined(__cplusplus) && (__cplusplus >= 201103L)) || \
+-  JSON_HEDLEY_MSVC_VERSION_CHECK(16,0,0) || \
+-  JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-#  define JSON_HEDLEY_STATIC_ASSERT(expr, message) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(static_assert(expr, message))
+-#else
+-#  define JSON_HEDLEY_STATIC_ASSERT(expr, message)
+-#endif
+-
+-#if defined(JSON_HEDLEY_NULL)
+-    #undef JSON_HEDLEY_NULL
+-#endif
+-#if defined(__cplusplus)
+-    #if __cplusplus >= 201103L
+-        #define JSON_HEDLEY_NULL JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(nullptr)
+-    #elif defined(NULL)
+-        #define JSON_HEDLEY_NULL NULL
+-    #else
+-        #define JSON_HEDLEY_NULL JSON_HEDLEY_STATIC_CAST(void*, 0)
+-    #endif
+-#elif defined(NULL)
+-    #define JSON_HEDLEY_NULL NULL
+-#else
+-    #define JSON_HEDLEY_NULL ((void*) 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MESSAGE)
+-    #undef JSON_HEDLEY_MESSAGE
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas")
+-#  define JSON_HEDLEY_MESSAGE(msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS \
+-    JSON_HEDLEY_PRAGMA(message msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#elif \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(4,4,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-#  define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message msg)
+-#elif JSON_HEDLEY_CRAY_VERSION_CHECK(5,0,0)
+-#  define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(_CRI message msg)
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-#  define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message(msg))
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,0,0)
+-#  define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message(msg))
+-#else
+-#  define JSON_HEDLEY_MESSAGE(msg)
+-#endif
+-
+-#if defined(JSON_HEDLEY_WARNING)
+-    #undef JSON_HEDLEY_WARNING
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas")
+-#  define JSON_HEDLEY_WARNING(msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS \
+-    JSON_HEDLEY_PRAGMA(clang warning msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#elif \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(4,8,0) || \
+-  JSON_HEDLEY_PGI_VERSION_CHECK(18,4,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-#  define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_PRAGMA(GCC warning msg)
+-#elif \
+-  JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) || \
+-  JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-#  define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_PRAGMA(message(msg))
+-#else
+-#  define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_MESSAGE(msg)
+-#endif
+-
+-#if defined(JSON_HEDLEY_REQUIRE)
+-    #undef JSON_HEDLEY_REQUIRE
+-#endif
+-#if defined(JSON_HEDLEY_REQUIRE_MSG)
+-    #undef JSON_HEDLEY_REQUIRE_MSG
+-#endif
+-#if JSON_HEDLEY_HAS_ATTRIBUTE(diagnose_if)
+-#  if JSON_HEDLEY_HAS_WARNING("-Wgcc-compat")
+-#    define JSON_HEDLEY_REQUIRE(expr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wgcc-compat\"") \
+-    __attribute__((diagnose_if(!(expr), #expr, "error"))) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#    define JSON_HEDLEY_REQUIRE_MSG(expr,msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wgcc-compat\"") \
+-    __attribute__((diagnose_if(!(expr), msg, "error"))) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#  else
+-#    define JSON_HEDLEY_REQUIRE(expr) __attribute__((diagnose_if(!(expr), #expr, "error")))
+-#    define JSON_HEDLEY_REQUIRE_MSG(expr,msg) __attribute__((diagnose_if(!(expr), msg, "error")))
+-#  endif
+-#else
+-#  define JSON_HEDLEY_REQUIRE(expr)
+-#  define JSON_HEDLEY_REQUIRE_MSG(expr,msg)
+-#endif
+-
+-#if defined(JSON_HEDLEY_FLAGS)
+-    #undef JSON_HEDLEY_FLAGS
+-#endif
+-#if JSON_HEDLEY_HAS_ATTRIBUTE(flag_enum) && (!defined(__cplusplus) || JSON_HEDLEY_HAS_WARNING("-Wbitfield-enum-conversion"))
+-    #define JSON_HEDLEY_FLAGS __attribute__((__flag_enum__))
+-#else
+-    #define JSON_HEDLEY_FLAGS
+-#endif
+-
+-#if defined(JSON_HEDLEY_FLAGS_CAST)
+-    #undef JSON_HEDLEY_FLAGS_CAST
+-#endif
+-#if JSON_HEDLEY_INTEL_VERSION_CHECK(19,0,0)
+-#  define JSON_HEDLEY_FLAGS_CAST(T, expr) (__extension__ ({ \
+-        JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-        _Pragma("warning(disable:188)") \
+-        ((T) (expr)); \
+-        JSON_HEDLEY_DIAGNOSTIC_POP \
+-    }))
+-#else
+-#  define JSON_HEDLEY_FLAGS_CAST(T, expr) JSON_HEDLEY_STATIC_CAST(T, expr)
+-#endif
+-
+-#if defined(JSON_HEDLEY_EMPTY_BASES)
+-    #undef JSON_HEDLEY_EMPTY_BASES
+-#endif
+-#if \
+-    (JSON_HEDLEY_MSVC_VERSION_CHECK(19,0,23918) && !JSON_HEDLEY_MSVC_VERSION_CHECK(20,0,0)) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_EMPTY_BASES __declspec(empty_bases)
+-#else
+-    #define JSON_HEDLEY_EMPTY_BASES
+-#endif
+-
+-/* Remaining macros are deprecated. */
+-
+-#if defined(JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK)
+-    #undef JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK
+-#endif
+-#if defined(__clang__)
+-    #define JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK(major,minor,patch) (0)
+-#else
+-    #define JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK(major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_ATTRIBUTE)
+-    #undef JSON_HEDLEY_CLANG_HAS_ATTRIBUTE
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_ATTRIBUTE(attribute)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE)
+-    #undef JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_BUILTIN)
+-    #undef JSON_HEDLEY_CLANG_HAS_BUILTIN
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_BUILTIN(builtin) JSON_HEDLEY_HAS_BUILTIN(builtin)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_FEATURE)
+-    #undef JSON_HEDLEY_CLANG_HAS_FEATURE
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_FEATURE(feature) JSON_HEDLEY_HAS_FEATURE(feature)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_EXTENSION)
+-    #undef JSON_HEDLEY_CLANG_HAS_EXTENSION
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_EXTENSION(extension) JSON_HEDLEY_HAS_EXTENSION(extension)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE)
+-    #undef JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_DECLSPEC_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_WARNING)
+-    #undef JSON_HEDLEY_CLANG_HAS_WARNING
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_WARNING(warning) JSON_HEDLEY_HAS_WARNING(warning)
+-
+-#endif /* !defined(JSON_HEDLEY_VERSION) || (JSON_HEDLEY_VERSION < X) */
+-
+-// #include <nlohmann/detail/meta/detected.hpp>
+-
+-
+-#include <type_traits>
+-
+-// #include <nlohmann/detail/meta/void_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename ...Ts> struct make_void
+-{
+-    using type = void;
+-};
+-template<typename ...Ts> using void_t = typename make_void<Ts...>::type;
+-} // namespace detail
+-}  // namespace nlohmann
+-
+-
+-// https://en.cppreference.com/w/cpp/experimental/is_detected
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-struct nonesuch
+-{
+-    nonesuch() = delete;
+-    ~nonesuch() = delete;
+-    nonesuch(nonesuch const&) = delete;
+-    nonesuch(nonesuch const&&) = delete;
+-    void operator=(nonesuch const&) = delete;
+-    void operator=(nonesuch&&) = delete;
+-};
+-
+-template<class Default,
+-         class AlwaysVoid,
+-         template<class...> class Op,
+-         class... Args>
+-struct detector
+-{
+-    using value_t = std::false_type;
+-    using type = Default;
+-};
+-
+-template<class Default, template<class...> class Op, class... Args>
+-struct detector<Default, void_t<Op<Args...>>, Op, Args...>
+-{
+-    using value_t = std::true_type;
+-    using type = Op<Args...>;
+-};
+-
+-template<template<class...> class Op, class... Args>
+-using is_detected = typename detector<nonesuch, void, Op, Args...>::value_t;
+-
+-template<template<class...> class Op, class... Args>
+-struct is_detected_lazy : is_detected<Op, Args...> { };
+-
+-template<template<class...> class Op, class... Args>
+-using detected_t = typename detector<nonesuch, void, Op, Args...>::type;
+-
+-template<class Default, template<class...> class Op, class... Args>
+-using detected_or = detector<Default, void, Op, Args...>;
+-
+-template<class Default, template<class...> class Op, class... Args>
+-using detected_or_t = typename detected_or<Default, Op, Args...>::type;
+-
+-template<class Expected, template<class...> class Op, class... Args>
+-using is_detected_exact = std::is_same<Expected, detected_t<Op, Args...>>;
+-
+-template<class To, template<class...> class Op, class... Args>
+-using is_detected_convertible =
+-    std::is_convertible<detected_t<Op, Args...>, To>;
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-
+-// This file contains all internal macro definitions
+-// You MUST include macro_unscope.hpp at the end of json.hpp to undef all of them
+-
+-// exclude unsupported compilers
+-#if !defined(JSON_SKIP_UNSUPPORTED_COMPILER_CHECK)
+-    #if defined(__clang__)
+-        #if (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__) < 30400
+-            #error "unsupported Clang version - see https://github.com/nlohmann/json#supported-compilers"
+-        #endif
+-    #elif defined(__GNUC__) && !(defined(__ICC) || defined(__INTEL_COMPILER))
+-        #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) < 40800
+-            #error "unsupported GCC version - see https://github.com/nlohmann/json#supported-compilers"
+-        #endif
+-    #endif
+-#endif
+-
+-// C++ language standard detection
+-// if the user manually specified the used c++ version this is skipped
+-#if !defined(JSON_HAS_CPP_20) && !defined(JSON_HAS_CPP_17) && !defined(JSON_HAS_CPP_14) && !defined(JSON_HAS_CPP_11)
+-    #if (defined(__cplusplus) && __cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L)
+-        #define JSON_HAS_CPP_20
+-        #define JSON_HAS_CPP_17
+-        #define JSON_HAS_CPP_14
+-    #elif (defined(__cplusplus) && __cplusplus >= 201703L) || (defined(_HAS_CXX17) && _HAS_CXX17 == 1) // fix for issue #464
+-        #define JSON_HAS_CPP_17
+-        #define JSON_HAS_CPP_14
+-    #elif (defined(__cplusplus) && __cplusplus >= 201402L) || (defined(_HAS_CXX14) && _HAS_CXX14 == 1)
+-        #define JSON_HAS_CPP_14
+-    #endif
+-    // the cpp 11 flag is always specified because it is the minimal required version
+-    #define JSON_HAS_CPP_11
+-#endif
+-
+-#if !defined(JSON_HAS_FILESYSTEM) && !defined(JSON_HAS_EXPERIMENTAL_FILESYSTEM)
+-    #ifdef JSON_HAS_CPP_17
+-        #if defined(__cpp_lib_filesystem)
+-            #define JSON_HAS_FILESYSTEM 1
+-        #elif defined(__cpp_lib_experimental_filesystem)
+-            #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1
+-        #elif !defined(__has_include)
+-            #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1
+-        #elif __has_include(<filesystem>)
+-            #define JSON_HAS_FILESYSTEM 1
+-        #elif __has_include(<experimental/filesystem>)
+-            #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1
+-        #endif
+-
+-        // std::filesystem does not work on MinGW GCC 8: https://sourceforge.net/p/mingw-w64/bugs/737/
+-        #if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ == 8
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before GCC 8: https://en.cppreference.com/w/cpp/compiler_support
+-        #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before Clang 7: https://en.cppreference.com/w/cpp/compiler_support
+-        #if defined(__clang_major__) && __clang_major__ < 7
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before MSVC 19.14: https://en.cppreference.com/w/cpp/compiler_support
+-        #if defined(_MSC_VER) && _MSC_VER < 1940
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before iOS 13
+-        #if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED < 130000
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before macOS Catalina
+-        #if defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101500
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-    #endif
+-#endif
+-
+-#ifndef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-    #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 0
+-#endif
+-
+-#ifndef JSON_HAS_FILESYSTEM
+-    #define JSON_HAS_FILESYSTEM 0
+-#endif
+-
+-// disable documentation warnings on clang
+-#if defined(__clang__)
+-    #pragma clang diagnostic push
+-    #pragma clang diagnostic ignored "-Wdocumentation"
+-    #pragma clang diagnostic ignored "-Wdocumentation-unknown-command"
+-#endif
+-
+-// allow disabling exceptions
+-#if (defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND)) && !defined(JSON_NOEXCEPTION)
+-    #define JSON_THROW(exception) throw exception
+-    #define JSON_TRY try
+-    #define JSON_CATCH(exception) catch(exception)
+-    #define JSON_INTERNAL_CATCH(exception) catch(exception)
+-#else
+-    #include <cstdlib>
+-    #define JSON_THROW(exception) std::abort()
+-    #define JSON_TRY if(true)
+-    #define JSON_CATCH(exception) if(false)
+-    #define JSON_INTERNAL_CATCH(exception) if(false)
+-#endif
+-
+-// override exception macros
+-#if defined(JSON_THROW_USER)
+-    #undef JSON_THROW
+-    #define JSON_THROW JSON_THROW_USER
+-#endif
+-#if defined(JSON_TRY_USER)
+-    #undef JSON_TRY
+-    #define JSON_TRY JSON_TRY_USER
+-#endif
+-#if defined(JSON_CATCH_USER)
+-    #undef JSON_CATCH
+-    #define JSON_CATCH JSON_CATCH_USER
+-    #undef JSON_INTERNAL_CATCH
+-    #define JSON_INTERNAL_CATCH JSON_CATCH_USER
+-#endif
+-#if defined(JSON_INTERNAL_CATCH_USER)
+-    #undef JSON_INTERNAL_CATCH
+-    #define JSON_INTERNAL_CATCH JSON_INTERNAL_CATCH_USER
+-#endif
+-
+-// allow overriding assert
+-#if !defined(JSON_ASSERT)
+-    #include <cassert> // assert
+-    #define JSON_ASSERT(x) assert(x)
+-#endif
+-
+-// allow to access some private functions (needed by the test suite)
+-#if defined(JSON_TESTS_PRIVATE)
+-    #define JSON_PRIVATE_UNLESS_TESTED public
+-#else
+-    #define JSON_PRIVATE_UNLESS_TESTED private
+-#endif
+-
+-/*!
+-@brief macro to briefly define a mapping between an enum and JSON
+-@def NLOHMANN_JSON_SERIALIZE_ENUM
+-@since version 3.4.0
+-*/
+-#define NLOHMANN_JSON_SERIALIZE_ENUM(ENUM_TYPE, ...)                                            \
+-    template<typename BasicJsonType>                                                            \
+-    inline void to_json(BasicJsonType& j, const ENUM_TYPE& e)                                   \
+-    {                                                                                           \
+-        static_assert(std::is_enum<ENUM_TYPE>::value, #ENUM_TYPE " must be an enum!");          \
+-        static const std::pair<ENUM_TYPE, BasicJsonType> m[] = __VA_ARGS__;                     \
+-        auto it = std::find_if(std::begin(m), std::end(m),                                      \
+-                               [e](const std::pair<ENUM_TYPE, BasicJsonType>& ej_pair) -> bool  \
+-        {                                                                                       \
+-            return ej_pair.first == e;                                                          \
+-        });                                                                                     \
+-        j = ((it != std::end(m)) ? it : std::begin(m))->second;                                 \
+-    }                                                                                           \
+-    template<typename BasicJsonType>                                                            \
+-    inline void from_json(const BasicJsonType& j, ENUM_TYPE& e)                                 \
+-    {                                                                                           \
+-        static_assert(std::is_enum<ENUM_TYPE>::value, #ENUM_TYPE " must be an enum!");          \
+-        static const std::pair<ENUM_TYPE, BasicJsonType> m[] = __VA_ARGS__;                     \
+-        auto it = std::find_if(std::begin(m), std::end(m),                                      \
+-                               [&j](const std::pair<ENUM_TYPE, BasicJsonType>& ej_pair) -> bool \
+-        {                                                                                       \
+-            return ej_pair.second == j;                                                         \
+-        });                                                                                     \
+-        e = ((it != std::end(m)) ? it : std::begin(m))->first;                                  \
+-    }
+-
+-// Ugly macros to avoid uglier copy-paste when specializing basic_json. They
+-// may be removed in the future once the class is split.
+-
+-#define NLOHMANN_BASIC_JSON_TPL_DECLARATION                                \
+-    template<template<typename, typename, typename...> class ObjectType,   \
+-             template<typename, typename...> class ArrayType,              \
+-             class StringType, class BooleanType, class NumberIntegerType, \
+-             class NumberUnsignedType, class NumberFloatType,              \
+-             template<typename> class AllocatorType,                       \
+-             template<typename, typename = void> class JSONSerializer,     \
+-             class BinaryType>
+-
+-#define NLOHMANN_BASIC_JSON_TPL                                            \
+-    basic_json<ObjectType, ArrayType, StringType, BooleanType,             \
+-    NumberIntegerType, NumberUnsignedType, NumberFloatType,                \
+-    AllocatorType, JSONSerializer, BinaryType>
+-
+-// Macros to simplify conversion from/to types
+-
+-#define NLOHMANN_JSON_EXPAND( x ) x
+-#define NLOHMANN_JSON_GET_MACRO(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, NAME,...) NAME
+-#define NLOHMANN_JSON_PASTE(...) NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_GET_MACRO(__VA_ARGS__, \
+-        NLOHMANN_JSON_PASTE64, \
+-        NLOHMANN_JSON_PASTE63, \
+-        NLOHMANN_JSON_PASTE62, \
+-        NLOHMANN_JSON_PASTE61, \
+-        NLOHMANN_JSON_PASTE60, \
+-        NLOHMANN_JSON_PASTE59, \
+-        NLOHMANN_JSON_PASTE58, \
+-        NLOHMANN_JSON_PASTE57, \
+-        NLOHMANN_JSON_PASTE56, \
+-        NLOHMANN_JSON_PASTE55, \
+-        NLOHMANN_JSON_PASTE54, \
+-        NLOHMANN_JSON_PASTE53, \
+-        NLOHMANN_JSON_PASTE52, \
+-        NLOHMANN_JSON_PASTE51, \
+-        NLOHMANN_JSON_PASTE50, \
+-        NLOHMANN_JSON_PASTE49, \
+-        NLOHMANN_JSON_PASTE48, \
+-        NLOHMANN_JSON_PASTE47, \
+-        NLOHMANN_JSON_PASTE46, \
+-        NLOHMANN_JSON_PASTE45, \
+-        NLOHMANN_JSON_PASTE44, \
+-        NLOHMANN_JSON_PASTE43, \
+-        NLOHMANN_JSON_PASTE42, \
+-        NLOHMANN_JSON_PASTE41, \
+-        NLOHMANN_JSON_PASTE40, \
+-        NLOHMANN_JSON_PASTE39, \
+-        NLOHMANN_JSON_PASTE38, \
+-        NLOHMANN_JSON_PASTE37, \
+-        NLOHMANN_JSON_PASTE36, \
+-        NLOHMANN_JSON_PASTE35, \
+-        NLOHMANN_JSON_PASTE34, \
+-        NLOHMANN_JSON_PASTE33, \
+-        NLOHMANN_JSON_PASTE32, \
+-        NLOHMANN_JSON_PASTE31, \
+-        NLOHMANN_JSON_PASTE30, \
+-        NLOHMANN_JSON_PASTE29, \
+-        NLOHMANN_JSON_PASTE28, \
+-        NLOHMANN_JSON_PASTE27, \
+-        NLOHMANN_JSON_PASTE26, \
+-        NLOHMANN_JSON_PASTE25, \
+-        NLOHMANN_JSON_PASTE24, \
+-        NLOHMANN_JSON_PASTE23, \
+-        NLOHMANN_JSON_PASTE22, \
+-        NLOHMANN_JSON_PASTE21, \
+-        NLOHMANN_JSON_PASTE20, \
+-        NLOHMANN_JSON_PASTE19, \
+-        NLOHMANN_JSON_PASTE18, \
+-        NLOHMANN_JSON_PASTE17, \
+-        NLOHMANN_JSON_PASTE16, \
+-        NLOHMANN_JSON_PASTE15, \
+-        NLOHMANN_JSON_PASTE14, \
+-        NLOHMANN_JSON_PASTE13, \
+-        NLOHMANN_JSON_PASTE12, \
+-        NLOHMANN_JSON_PASTE11, \
+-        NLOHMANN_JSON_PASTE10, \
+-        NLOHMANN_JSON_PASTE9, \
+-        NLOHMANN_JSON_PASTE8, \
+-        NLOHMANN_JSON_PASTE7, \
+-        NLOHMANN_JSON_PASTE6, \
+-        NLOHMANN_JSON_PASTE5, \
+-        NLOHMANN_JSON_PASTE4, \
+-        NLOHMANN_JSON_PASTE3, \
+-        NLOHMANN_JSON_PASTE2, \
+-        NLOHMANN_JSON_PASTE1)(__VA_ARGS__))
+-#define NLOHMANN_JSON_PASTE2(func, v1) func(v1)
+-#define NLOHMANN_JSON_PASTE3(func, v1, v2) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE2(func, v2)
+-#define NLOHMANN_JSON_PASTE4(func, v1, v2, v3) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE3(func, v2, v3)
+-#define NLOHMANN_JSON_PASTE5(func, v1, v2, v3, v4) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE4(func, v2, v3, v4)
+-#define NLOHMANN_JSON_PASTE6(func, v1, v2, v3, v4, v5) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE5(func, v2, v3, v4, v5)
+-#define NLOHMANN_JSON_PASTE7(func, v1, v2, v3, v4, v5, v6) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE6(func, v2, v3, v4, v5, v6)
+-#define NLOHMANN_JSON_PASTE8(func, v1, v2, v3, v4, v5, v6, v7) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE7(func, v2, v3, v4, v5, v6, v7)
+-#define NLOHMANN_JSON_PASTE9(func, v1, v2, v3, v4, v5, v6, v7, v8) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE8(func, v2, v3, v4, v5, v6, v7, v8)
+-#define NLOHMANN_JSON_PASTE10(func, v1, v2, v3, v4, v5, v6, v7, v8, v9) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE9(func, v2, v3, v4, v5, v6, v7, v8, v9)
+-#define NLOHMANN_JSON_PASTE11(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE10(func, v2, v3, v4, v5, v6, v7, v8, v9, v10)
+-#define NLOHMANN_JSON_PASTE12(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE11(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11)
+-#define NLOHMANN_JSON_PASTE13(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE12(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12)
+-#define NLOHMANN_JSON_PASTE14(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE13(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13)
+-#define NLOHMANN_JSON_PASTE15(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE14(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14)
+-#define NLOHMANN_JSON_PASTE16(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE15(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15)
+-#define NLOHMANN_JSON_PASTE17(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE16(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16)
+-#define NLOHMANN_JSON_PASTE18(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE17(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17)
+-#define NLOHMANN_JSON_PASTE19(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE18(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18)
+-#define NLOHMANN_JSON_PASTE20(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE19(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19)
+-#define NLOHMANN_JSON_PASTE21(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE20(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20)
+-#define NLOHMANN_JSON_PASTE22(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE21(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21)
+-#define NLOHMANN_JSON_PASTE23(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE22(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22)
+-#define NLOHMANN_JSON_PASTE24(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE23(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23)
+-#define NLOHMANN_JSON_PASTE25(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE24(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24)
+-#define NLOHMANN_JSON_PASTE26(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE25(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25)
+-#define NLOHMANN_JSON_PASTE27(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE26(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26)
+-#define NLOHMANN_JSON_PASTE28(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE27(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27)
+-#define NLOHMANN_JSON_PASTE29(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE28(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28)
+-#define NLOHMANN_JSON_PASTE30(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE29(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29)
+-#define NLOHMANN_JSON_PASTE31(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE30(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30)
+-#define NLOHMANN_JSON_PASTE32(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE31(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31)
+-#define NLOHMANN_JSON_PASTE33(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE32(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32)
+-#define NLOHMANN_JSON_PASTE34(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE33(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33)
+-#define NLOHMANN_JSON_PASTE35(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE34(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34)
+-#define NLOHMANN_JSON_PASTE36(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE35(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35)
+-#define NLOHMANN_JSON_PASTE37(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE36(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36)
+-#define NLOHMANN_JSON_PASTE38(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE37(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37)
+-#define NLOHMANN_JSON_PASTE39(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE38(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38)
+-#define NLOHMANN_JSON_PASTE40(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE39(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39)
+-#define NLOHMANN_JSON_PASTE41(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE40(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40)
+-#define NLOHMANN_JSON_PASTE42(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE41(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41)
+-#define NLOHMANN_JSON_PASTE43(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE42(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42)
+-#define NLOHMANN_JSON_PASTE44(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE43(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43)
+-#define NLOHMANN_JSON_PASTE45(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE44(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44)
+-#define NLOHMANN_JSON_PASTE46(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE45(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45)
+-#define NLOHMANN_JSON_PASTE47(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE46(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46)
+-#define NLOHMANN_JSON_PASTE48(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE47(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47)
+-#define NLOHMANN_JSON_PASTE49(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE48(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48)
+-#define NLOHMANN_JSON_PASTE50(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE49(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49)
+-#define NLOHMANN_JSON_PASTE51(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE50(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50)
+-#define NLOHMANN_JSON_PASTE52(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE51(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51)
+-#define NLOHMANN_JSON_PASTE53(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE52(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52)
+-#define NLOHMANN_JSON_PASTE54(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE53(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53)
+-#define NLOHMANN_JSON_PASTE55(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE54(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54)
+-#define NLOHMANN_JSON_PASTE56(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE55(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55)
+-#define NLOHMANN_JSON_PASTE57(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE56(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56)
+-#define NLOHMANN_JSON_PASTE58(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE57(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57)
+-#define NLOHMANN_JSON_PASTE59(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE58(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58)
+-#define NLOHMANN_JSON_PASTE60(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE59(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59)
+-#define NLOHMANN_JSON_PASTE61(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE60(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60)
+-#define NLOHMANN_JSON_PASTE62(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE61(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61)
+-#define NLOHMANN_JSON_PASTE63(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE62(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62)
+-#define NLOHMANN_JSON_PASTE64(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE63(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63)
+-
+-#define NLOHMANN_JSON_TO(v1) nlohmann_json_j[#v1] = nlohmann_json_t.v1;
+-#define NLOHMANN_JSON_FROM(v1) nlohmann_json_j.at(#v1).get_to(nlohmann_json_t.v1);
+-
+-/*!
+-@brief macro
+-@def NLOHMANN_DEFINE_TYPE_INTRUSIVE
+-@since version 3.9.0
+-*/
+-#define NLOHMANN_DEFINE_TYPE_INTRUSIVE(Type, ...)  \
+-    friend void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \
+-    friend void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) }
+-
+-/*!
+-@brief macro
+-@def NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE
+-@since version 3.9.0
+-*/
+-#define NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Type, ...)  \
+-    inline void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \
+-    inline void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) }
+-
+-
+-// inspired from https://stackoverflow.com/a/26745591
+-// allows to call any std function as if (e.g. with begin):
+-// using std::begin; begin(x);
+-//
+-// it allows using the detected idiom to retrieve the return type
+-// of such an expression
+-#define NLOHMANN_CAN_CALL_STD_FUNC_IMPL(std_name)                                 \
+-    namespace detail {                                                            \
+-    using std::std_name;                                                          \
+-    \
+-    template<typename... T>                                                       \
+-    using result_of_##std_name = decltype(std_name(std::declval<T>()...));        \
+-    }                                                                             \
+-    \
+-    namespace detail2 {                                                           \
+-    struct std_name##_tag                                                         \
+-    {                                                                             \
+-    };                                                                            \
+-    \
+-    template<typename... T>                                                       \
+-    std_name##_tag std_name(T&&...);                                              \
+-    \
+-    template<typename... T>                                                       \
+-    using result_of_##std_name = decltype(std_name(std::declval<T>()...));        \
+-    \
+-    template<typename... T>                                                       \
+-    struct would_call_std_##std_name                                              \
+-    {                                                                             \
+-        static constexpr auto const value = ::nlohmann::detail::                  \
+-                                            is_detected_exact<std_name##_tag, result_of_##std_name, T...>::value; \
+-    };                                                                            \
+-    } /* namespace detail2 */ \
+-    \
+-    template<typename... T>                                                       \
+-    struct would_call_std_##std_name : detail2::would_call_std_##std_name<T...>   \
+-    {                                                                             \
+-    }
+-
+-#ifndef JSON_USE_IMPLICIT_CONVERSIONS
+-    #define JSON_USE_IMPLICIT_CONVERSIONS 1
+-#endif
+-
+-#if JSON_USE_IMPLICIT_CONVERSIONS
+-    #define JSON_EXPLICIT
+-#else
+-    #define JSON_EXPLICIT explicit
+-#endif
+-
+-#ifndef JSON_DIAGNOSTICS
+-    #define JSON_DIAGNOSTICS 0
+-#endif
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-/*!
+-@brief replace all occurrences of a substring by another string
+-
+-@param[in,out] s  the string to manipulate; changed so that all
+-               occurrences of @a f are replaced with @a t
+-@param[in]     f  the substring to replace with @a t
+-@param[in]     t  the string to replace @a f
+-
+-@pre The search string @a f must not be empty. **This precondition is
+-enforced with an assertion.**
+-
+-@since version 2.0.0
+-*/
+-inline void replace_substring(std::string& s, const std::string& f,
+-                              const std::string& t)
+-{
+-    JSON_ASSERT(!f.empty());
+-    for (auto pos = s.find(f);                // find first occurrence of f
+-            pos != std::string::npos;         // make sure f was found
+-            s.replace(pos, f.size(), t),      // replace with t, and
+-            pos = s.find(f, pos + t.size()))  // find next occurrence of f
+-    {}
+-}
+-
+-/*!
+- * @brief string escaping as described in RFC 6901 (Sect. 4)
+- * @param[in] s string to escape
+- * @return    escaped string
+- *
+- * Note the order of escaping "~" to "~0" and "/" to "~1" is important.
+- */
+-inline std::string escape(std::string s)
+-{
+-    replace_substring(s, "~", "~0");
+-    replace_substring(s, "/", "~1");
+-    return s;
+-}
+-
+-/*!
+- * @brief string unescaping as described in RFC 6901 (Sect. 4)
+- * @param[in] s string to unescape
+- * @return    unescaped string
+- *
+- * Note the order of escaping "~1" to "/" and "~0" to "~" is important.
+- */
+-static void unescape(std::string& s)
+-{
+-    replace_substring(s, "~1", "/");
+-    replace_substring(s, "~0", "~");
+-}
+-
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/position_t.hpp>
+-
+-
+-#include <cstddef> // size_t
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/// struct to capture the start position of the current token
+-struct position_t
+-{
+-    /// the total number of characters read
+-    std::size_t chars_read_total = 0;
+-    /// the number of characters read in the current line
+-    std::size_t chars_read_current_line = 0;
+-    /// the number of lines read
+-    std::size_t lines_read = 0;
+-
+-    /// conversion to size_t to preserve SAX interface
+-    constexpr operator size_t() const
+-    {
+-        return chars_read_total;
+-    }
+-};
+-
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-////////////////
+-// exceptions //
+-////////////////
+-
+-/// @brief general exception of the @ref basic_json class
+-/// @sa https://json.nlohmann.me/api/basic_json/exception/
+-class exception : public std::exception
+-{
+-  public:
+-    /// returns the explanatory string
+-    const char* what() const noexcept override
+-    {
+-        return m.what();
+-    }
+-
+-    /// the id of the exception
+-    const int id; // NOLINT(cppcoreguidelines-non-private-member-variables-in-classes)
+-
+-  protected:
+-    JSON_HEDLEY_NON_NULL(3)
+-    exception(int id_, const char* what_arg) : id(id_), m(what_arg) {} // NOLINT(bugprone-throw-keyword-missing)
+-
+-    static std::string name(const std::string& ename, int id_)
+-    {
+-        return "[json.exception." + ename + "." + std::to_string(id_) + "] ";
+-    }
+-
+-    template<typename BasicJsonType>
+-    static std::string diagnostics(const BasicJsonType& leaf_element)
+-    {
+-#if JSON_DIAGNOSTICS
+-        std::vector<std::string> tokens;
+-        for (const auto* current = &leaf_element; current->m_parent != nullptr; current = current->m_parent)
+-        {
+-            switch (current->m_parent->type())
+-            {
+-                case value_t::array:
+-                {
+-                    for (std::size_t i = 0; i < current->m_parent->m_value.array->size(); ++i)
+-                    {
+-                        if (&current->m_parent->m_value.array->operator[](i) == current)
+-                        {
+-                            tokens.emplace_back(std::to_string(i));
+-                            break;
+-                        }
+-                    }
+-                    break;
+-                }
+-
+-                case value_t::object:
+-                {
+-                    for (const auto& element : *current->m_parent->m_value.object)
+-                    {
+-                        if (&element.second == current)
+-                        {
+-                            tokens.emplace_back(element.first.c_str());
+-                            break;
+-                        }
+-                    }
+-                    break;
+-                }
+-
+-                case value_t::null: // LCOV_EXCL_LINE
+-                case value_t::string: // LCOV_EXCL_LINE
+-                case value_t::boolean: // LCOV_EXCL_LINE
+-                case value_t::number_integer: // LCOV_EXCL_LINE
+-                case value_t::number_unsigned: // LCOV_EXCL_LINE
+-                case value_t::number_float: // LCOV_EXCL_LINE
+-                case value_t::binary: // LCOV_EXCL_LINE
+-                case value_t::discarded: // LCOV_EXCL_LINE
+-                default:   // LCOV_EXCL_LINE
+-                    break; // LCOV_EXCL_LINE
+-            }
+-        }
+-
+-        if (tokens.empty())
+-        {
+-            return "";
+-        }
+-
+-        return "(" + std::accumulate(tokens.rbegin(), tokens.rend(), std::string{},
+-                                     [](const std::string & a, const std::string & b)
+-        {
+-            return a + "/" + detail::escape(b);
+-        }) + ") ";
+-#else
+-        static_cast<void>(leaf_element);
+-        return "";
+-#endif
+-    }
+-
+-  private:
+-    /// an exception object as storage for error messages
+-    std::runtime_error m;
+-};
+-
+-/// @brief exception indicating a parse error
+-/// @sa https://json.nlohmann.me/api/basic_json/parse_error/
+-class parse_error : public exception
+-{
+-  public:
+-    /*!
+-    @brief create a parse error exception
+-    @param[in] id_       the id of the exception
+-    @param[in] pos       the position where the error occurred (or with
+-                         chars_read_total=0 if the position cannot be
+-                         determined)
+-    @param[in] what_arg  the explanatory string
+-    @return parse_error object
+-    */
+-    template<typename BasicJsonType>
+-    static parse_error create(int id_, const position_t& pos, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("parse_error", id_) + "parse error" +
+-                        position_string(pos) + ": " + exception::diagnostics(context) + what_arg;
+-        return {id_, pos.chars_read_total, w.c_str()};
+-    }
+-
+-    template<typename BasicJsonType>
+-    static parse_error create(int id_, std::size_t byte_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("parse_error", id_) + "parse error" +
+-                        (byte_ != 0 ? (" at byte " + std::to_string(byte_)) : "") +
+-                        ": " + exception::diagnostics(context) + what_arg;
+-        return {id_, byte_, w.c_str()};
+-    }
+-
+-    /*!
+-    @brief byte index of the parse error
+-
+-    The byte index of the last read character in the input file.
+-
+-    @note For an input with n bytes, 1 is the index of the first character and
+-          n+1 is the index of the terminating null byte or the end of file.
+-          This also holds true when reading a byte vector (CBOR or MessagePack).
+-    */
+-    const std::size_t byte;
+-
+-  private:
+-    parse_error(int id_, std::size_t byte_, const char* what_arg)
+-        : exception(id_, what_arg), byte(byte_) {}
+-
+-    static std::string position_string(const position_t& pos)
+-    {
+-        return " at line " + std::to_string(pos.lines_read + 1) +
+-               ", column " + std::to_string(pos.chars_read_current_line);
+-    }
+-};
+-
+-/// @brief exception indicating errors with iterators
+-/// @sa https://json.nlohmann.me/api/basic_json/invalid_iterator/
+-class invalid_iterator : public exception
+-{
+-  public:
+-    template<typename BasicJsonType>
+-    static invalid_iterator create(int id_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("invalid_iterator", id_) + exception::diagnostics(context) + what_arg;
+-        return {id_, w.c_str()};
+-    }
+-
+-  private:
+-    JSON_HEDLEY_NON_NULL(3)
+-    invalid_iterator(int id_, const char* what_arg)
+-        : exception(id_, what_arg) {}
+-};
+-
+-/// @brief exception indicating executing a member function with a wrong type
+-/// @sa https://json.nlohmann.me/api/basic_json/type_error/
+-class type_error : public exception
+-{
+-  public:
+-    template<typename BasicJsonType>
+-    static type_error create(int id_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("type_error", id_) + exception::diagnostics(context) + what_arg;
+-        return {id_, w.c_str()};
+-    }
+-
+-  private:
+-    JSON_HEDLEY_NON_NULL(3)
+-    type_error(int id_, const char* what_arg) : exception(id_, what_arg) {}
+-};
+-
+-/// @brief exception indicating access out of the defined range
+-/// @sa https://json.nlohmann.me/api/basic_json/out_of_range/
+-class out_of_range : public exception
+-{
+-  public:
+-    template<typename BasicJsonType>
+-    static out_of_range create(int id_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("out_of_range", id_) + exception::diagnostics(context) + what_arg;
+-        return {id_, w.c_str()};
+-    }
+-
+-  private:
+-    JSON_HEDLEY_NON_NULL(3)
+-    out_of_range(int id_, const char* what_arg) : exception(id_, what_arg) {}
+-};
+-
+-/// @brief exception indicating other library errors
+-/// @sa https://json.nlohmann.me/api/basic_json/other_error/
+-class other_error : public exception
+-{
+-  public:
+-    template<typename BasicJsonType>
+-    static other_error create(int id_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("other_error", id_) + exception::diagnostics(context) + what_arg;
+-        return {id_, w.c_str()};
+-    }
+-
+-  private:
+-    JSON_HEDLEY_NON_NULL(3)
+-    other_error(int id_, const char* what_arg) : exception(id_, what_arg) {}
+-};
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-
+-#include <cstddef> // size_t
+-#include <type_traits> // conditional, enable_if, false_type, integral_constant, is_constructible, is_integral, is_same, remove_cv, remove_reference, true_type
+-#include <utility> // index_sequence, make_index_sequence, index_sequence_for
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-template<typename T>
+-using uncvref_t = typename std::remove_cv<typename std::remove_reference<T>::type>::type;
+-
+-#ifdef JSON_HAS_CPP_14
+-
+-// the following utilities are natively available in C++14
+-using std::enable_if_t;
+-using std::index_sequence;
+-using std::make_index_sequence;
+-using std::index_sequence_for;
+-
+-#else
+-
+-// alias templates to reduce boilerplate
+-template<bool B, typename T = void>
+-using enable_if_t = typename std::enable_if<B, T>::type;
+-
+-// The following code is taken from https://github.com/abseil/abseil-cpp/blob/10cb35e459f5ecca5b2ff107635da0bfa41011b4/absl/utility/utility.h
+-// which is part of Google Abseil (https://github.com/abseil/abseil-cpp), licensed under the Apache License 2.0.
+-
+-//// START OF CODE FROM GOOGLE ABSEIL
+-
+-// integer_sequence
+-//
+-// Class template representing a compile-time integer sequence. An instantiation
+-// of `integer_sequence<T, Ints...>` has a sequence of integers encoded in its
+-// type through its template arguments (which is a common need when
+-// working with C++11 variadic templates). `absl::integer_sequence` is designed
+-// to be a drop-in replacement for C++14's `std::integer_sequence`.
+-//
+-// Example:
+-//
+-//   template< class T, T... Ints >
+-//   void user_function(integer_sequence<T, Ints...>);
+-//
+-//   int main()
+-//   {
+-//     // user_function's `T` will be deduced to `int` and `Ints...`
+-//     // will be deduced to `0, 1, 2, 3, 4`.
+-//     user_function(make_integer_sequence<int, 5>());
+-//   }
+-template <typename T, T... Ints>
+-struct integer_sequence
+-{
+-    using value_type = T;
+-    static constexpr std::size_t size() noexcept
+-    {
+-        return sizeof...(Ints);
+-    }
+-};
+-
+-// index_sequence
+-//
+-// A helper template for an `integer_sequence` of `size_t`,
+-// `absl::index_sequence` is designed to be a drop-in replacement for C++14's
+-// `std::index_sequence`.
+-template <size_t... Ints>
+-using index_sequence = integer_sequence<size_t, Ints...>;
+-
+-namespace utility_internal
+-{
+-
+-template <typename Seq, size_t SeqSize, size_t Rem>
+-struct Extend;
+-
+-// Note that SeqSize == sizeof...(Ints). It's passed explicitly for efficiency.
+-template <typename T, T... Ints, size_t SeqSize>
+-struct Extend<integer_sequence<T, Ints...>, SeqSize, 0>
+-{
+-    using type = integer_sequence < T, Ints..., (Ints + SeqSize)... >;
+-};
+-
+-template <typename T, T... Ints, size_t SeqSize>
+-struct Extend<integer_sequence<T, Ints...>, SeqSize, 1>
+-{
+-    using type = integer_sequence < T, Ints..., (Ints + SeqSize)..., 2 * SeqSize >;
+-};
+-
+-// Recursion helper for 'make_integer_sequence<T, N>'.
+-// 'Gen<T, N>::type' is an alias for 'integer_sequence<T, 0, 1, ... N-1>'.
+-template <typename T, size_t N>
+-struct Gen
+-{
+-    using type =
+-        typename Extend < typename Gen < T, N / 2 >::type, N / 2, N % 2 >::type;
+-};
+-
+-template <typename T>
+-struct Gen<T, 0>
+-{
+-    using type = integer_sequence<T>;
+-};
+-
+-}  // namespace utility_internal
+-
+-// Compile-time sequences of integers
+-
+-// make_integer_sequence
+-//
+-// This template alias is equivalent to
+-// `integer_sequence<int, 0, 1, ..., N-1>`, and is designed to be a drop-in
+-// replacement for C++14's `std::make_integer_sequence`.
+-template <typename T, T N>
+-using make_integer_sequence = typename utility_internal::Gen<T, N>::type;
+-
+-// make_index_sequence
+-//
+-// This template alias is equivalent to `index_sequence<0, 1, ..., N-1>`,
+-// and is designed to be a drop-in replacement for C++14's
+-// `std::make_index_sequence`.
+-template <size_t N>
+-using make_index_sequence = make_integer_sequence<size_t, N>;
+-
+-// index_sequence_for
+-//
+-// Converts a typename pack into an index sequence of the same length, and
+-// is designed to be a drop-in replacement for C++14's
+-// `std::index_sequence_for()`
+-template <typename... Ts>
+-using index_sequence_for = make_index_sequence<sizeof...(Ts)>;
+-
+-//// END OF CODE FROM GOOGLE ABSEIL
+-
+-#endif
+-
+-// dispatch utility (taken from ranges-v3)
+-template<unsigned N> struct priority_tag : priority_tag < N - 1 > {};
+-template<> struct priority_tag<0> {};
+-
+-// taken from ranges-v3
+-template<typename T>
+-struct static_const
+-{
+-    static constexpr T value{};
+-};
+-
+-template<typename T>
+-constexpr T static_const<T>::value; // NOLINT(readability-redundant-declaration)
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/identity_tag.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-// dispatching helper struct
+-template <class T> struct identity_tag {};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-
+-#include <limits> // numeric_limits
+-#include <type_traits> // false_type, is_constructible, is_integral, is_same, true_type
+-#include <utility> // declval
+-#include <tuple> // tuple
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-// #include <nlohmann/detail/iterators/iterator_traits.hpp>
+-
+-
+-#include <iterator> // random_access_iterator_tag
+-
+-// #include <nlohmann/detail/meta/void_t.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename It, typename = void>
+-struct iterator_types {};
+-
+-template<typename It>
+-struct iterator_types <
+-    It,
+-    void_t<typename It::difference_type, typename It::value_type, typename It::pointer,
+-    typename It::reference, typename It::iterator_category >>
+-{
+-    using difference_type = typename It::difference_type;
+-    using value_type = typename It::value_type;
+-    using pointer = typename It::pointer;
+-    using reference = typename It::reference;
+-    using iterator_category = typename It::iterator_category;
+-};
+-
+-// This is required as some compilers implement std::iterator_traits in a way that
+-// doesn't work with SFINAE. See https://github.com/nlohmann/json/issues/1341.
+-template<typename T, typename = void>
+-struct iterator_traits
+-{
+-};
+-
+-template<typename T>
+-struct iterator_traits < T, enable_if_t < !std::is_pointer<T>::value >>
+-            : iterator_types<T>
+-{
+-};
+-
+-template<typename T>
+-struct iterator_traits<T*, enable_if_t<std::is_object<T>::value>>
+-{
+-    using iterator_category = std::random_access_iterator_tag;
+-    using value_type = T;
+-    using difference_type = ptrdiff_t;
+-    using pointer = T*;
+-    using reference = T&;
+-};
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/call_std/begin.hpp>
+-
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-NLOHMANN_CAN_CALL_STD_FUNC_IMPL(begin);
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/call_std/end.hpp>
+-
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-NLOHMANN_CAN_CALL_STD_FUNC_IMPL(end);
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/meta/detected.hpp>
+-
+-// #include <nlohmann/json_fwd.hpp>
+-#ifndef INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-#define INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-
+-#include <cstdint> // int64_t, uint64_t
+-#include <map> // map
+-#include <memory> // allocator
+-#include <string> // string
+-#include <vector> // vector
+-
+-/*!
+-@brief namespace for Niels Lohmann
+-@see https://github.com/nlohmann
+-@since version 1.0.0
+-*/
+-namespace nlohmann
+-{
+-/*!
+-@brief default JSONSerializer template argument
+-
+-This serializer ignores the template arguments and uses ADL
+-([argument-dependent lookup](https://en.cppreference.com/w/cpp/language/adl))
+-for serialization.
+-*/
+-template<typename T = void, typename SFINAE = void>
+-struct adl_serializer;
+-
+-/// a class to store JSON values
+-/// @sa https://json.nlohmann.me/api/basic_json/
+-template<template<typename U, typename V, typename... Args> class ObjectType =
+-         std::map,
+-         template<typename U, typename... Args> class ArrayType = std::vector,
+-         class StringType = std::string, class BooleanType = bool,
+-         class NumberIntegerType = std::int64_t,
+-         class NumberUnsignedType = std::uint64_t,
+-         class NumberFloatType = double,
+-         template<typename U> class AllocatorType = std::allocator,
+-         template<typename T, typename SFINAE = void> class JSONSerializer =
+-         adl_serializer,
+-         class BinaryType = std::vector<std::uint8_t>>
+-class basic_json;
+-
+-/// @brief JSON Pointer defines a string syntax for identifying a specific value within a JSON document
+-/// @sa https://json.nlohmann.me/api/json_pointer/
+-template<typename BasicJsonType>
+-class json_pointer;
+-
+-/*!
+-@brief default specialization
+-@sa https://json.nlohmann.me/api/json/
+-*/
+-using json = basic_json<>;
+-
+-/// @brief a minimal map-like container that preserves insertion order
+-/// @sa https://json.nlohmann.me/api/ordered_map/
+-template<class Key, class T, class IgnoredLess, class Allocator>
+-struct ordered_map;
+-
+-/// @brief specialization that maintains the insertion order of object keys
+-/// @sa https://json.nlohmann.me/api/ordered_json/
+-using ordered_json = basic_json<nlohmann::ordered_map>;
+-
+-}  // namespace nlohmann
+-
+-#endif  // INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-
+-
+-namespace nlohmann
+-{
+-/*!
+-@brief detail namespace with internal helper functions
+-
+-This namespace collects functions that should not be exposed,
+-implementations of some @ref basic_json methods, and meta-programming helpers.
+-
+-@since version 2.1.0
+-*/
+-namespace detail
+-{
+-/////////////
+-// helpers //
+-/////////////
+-
+-// Note to maintainers:
+-//
+-// Every trait in this file expects a non CV-qualified type.
+-// The only exceptions are in the 'aliases for detected' section
+-// (i.e. those of the form: decltype(T::member_function(std::declval<T>())))
+-//
+-// In this case, T has to be properly CV-qualified to constraint the function arguments
+-// (e.g. to_json(BasicJsonType&, const T&))
+-
+-template<typename> struct is_basic_json : std::false_type {};
+-
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-struct is_basic_json<NLOHMANN_BASIC_JSON_TPL> : std::true_type {};
+-
+-//////////////////////
+-// json_ref helpers //
+-//////////////////////
+-
+-template<typename>
+-class json_ref;
+-
+-template<typename>
+-struct is_json_ref : std::false_type {};
+-
+-template<typename T>
+-struct is_json_ref<json_ref<T>> : std::true_type {};
+-
+-//////////////////////////
+-// aliases for detected //
+-//////////////////////////
+-
+-template<typename T>
+-using mapped_type_t = typename T::mapped_type;
+-
+-template<typename T>
+-using key_type_t = typename T::key_type;
+-
+-template<typename T>
+-using value_type_t = typename T::value_type;
+-
+-template<typename T>
+-using difference_type_t = typename T::difference_type;
+-
+-template<typename T>
+-using pointer_t = typename T::pointer;
+-
+-template<typename T>
+-using reference_t = typename T::reference;
+-
+-template<typename T>
+-using iterator_category_t = typename T::iterator_category;
+-
+-template<typename T, typename... Args>
+-using to_json_function = decltype(T::to_json(std::declval<Args>()...));
+-
+-template<typename T, typename... Args>
+-using from_json_function = decltype(T::from_json(std::declval<Args>()...));
+-
+-template<typename T, typename U>
+-using get_template_function = decltype(std::declval<T>().template get<U>());
+-
+-// trait checking if JSONSerializer<T>::from_json(json const&, udt&) exists
+-template<typename BasicJsonType, typename T, typename = void>
+-struct has_from_json : std::false_type {};
+-
+-// trait checking if j.get<T> is valid
+-// use this trait instead of std::is_constructible or std::is_convertible,
+-// both rely on, or make use of implicit conversions, and thus fail when T
+-// has several constructors/operator= (see https://github.com/nlohmann/json/issues/958)
+-template <typename BasicJsonType, typename T>
+-struct is_getable
+-{
+-    static constexpr bool value = is_detected<get_template_function, const BasicJsonType&, T>::value;
+-};
+-
+-template<typename BasicJsonType, typename T>
+-struct has_from_json < BasicJsonType, T, enable_if_t < !is_basic_json<T>::value >>
+-{
+-    using serializer = typename BasicJsonType::template json_serializer<T, void>;
+-
+-    static constexpr bool value =
+-        is_detected_exact<void, from_json_function, serializer,
+-        const BasicJsonType&, T&>::value;
+-};
+-
+-// This trait checks if JSONSerializer<T>::from_json(json const&) exists
+-// this overload is used for non-default-constructible user-defined-types
+-template<typename BasicJsonType, typename T, typename = void>
+-struct has_non_default_from_json : std::false_type {};
+-
+-template<typename BasicJsonType, typename T>
+-struct has_non_default_from_json < BasicJsonType, T, enable_if_t < !is_basic_json<T>::value >>
+-{
+-    using serializer = typename BasicJsonType::template json_serializer<T, void>;
+-
+-    static constexpr bool value =
+-        is_detected_exact<T, from_json_function, serializer,
+-        const BasicJsonType&>::value;
+-};
+-
+-// This trait checks if BasicJsonType::json_serializer<T>::to_json exists
+-// Do not evaluate the trait when T is a basic_json type, to avoid template instantiation infinite recursion.
+-template<typename BasicJsonType, typename T, typename = void>
+-struct has_to_json : std::false_type {};
+-
+-template<typename BasicJsonType, typename T>
+-struct has_to_json < BasicJsonType, T, enable_if_t < !is_basic_json<T>::value >>
+-{
+-    using serializer = typename BasicJsonType::template json_serializer<T, void>;
+-
+-    static constexpr bool value =
+-        is_detected_exact<void, to_json_function, serializer, BasicJsonType&,
+-        T>::value;
+-};
+-
+-
+-///////////////////
+-// is_ functions //
+-///////////////////
+-
+-// https://en.cppreference.com/w/cpp/types/conjunction
+-template<class...> struct conjunction : std::true_type { };
+-template<class B1> struct conjunction<B1> : B1 { };
+-template<class B1, class... Bn>
+-struct conjunction<B1, Bn...>
+-: std::conditional<bool(B1::value), conjunction<Bn...>, B1>::type {};
+-
+-// https://en.cppreference.com/w/cpp/types/negation
+-template<class B> struct negation : std::integral_constant < bool, !B::value > { };
+-
+-// Reimplementation of is_constructible and is_default_constructible, due to them being broken for
+-// std::pair and std::tuple until LWG 2367 fix (see https://cplusplus.github.io/LWG/lwg-defects.html#2367).
+-// This causes compile errors in e.g. clang 3.5 or gcc 4.9.
+-template <typename T>
+-struct is_default_constructible : std::is_default_constructible<T> {};
+-
+-template <typename T1, typename T2>
+-struct is_default_constructible<std::pair<T1, T2>>
+-            : conjunction<is_default_constructible<T1>, is_default_constructible<T2>> {};
+-
+-template <typename T1, typename T2>
+-struct is_default_constructible<const std::pair<T1, T2>>
+-            : conjunction<is_default_constructible<T1>, is_default_constructible<T2>> {};
+-
+-template <typename... Ts>
+-struct is_default_constructible<std::tuple<Ts...>>
+-            : conjunction<is_default_constructible<Ts>...> {};
+-
+-template <typename... Ts>
+-struct is_default_constructible<const std::tuple<Ts...>>
+-            : conjunction<is_default_constructible<Ts>...> {};
+-
+-
+-template <typename T, typename... Args>
+-struct is_constructible : std::is_constructible<T, Args...> {};
+-
+-template <typename T1, typename T2>
+-struct is_constructible<std::pair<T1, T2>> : is_default_constructible<std::pair<T1, T2>> {};
+-
+-template <typename T1, typename T2>
+-struct is_constructible<const std::pair<T1, T2>> : is_default_constructible<const std::pair<T1, T2>> {};
+-
+-template <typename... Ts>
+-struct is_constructible<std::tuple<Ts...>> : is_default_constructible<std::tuple<Ts...>> {};
+-
+-template <typename... Ts>
+-struct is_constructible<const std::tuple<Ts...>> : is_default_constructible<const std::tuple<Ts...>> {};
+-
+-
+-template<typename T, typename = void>
+-struct is_iterator_traits : std::false_type {};
+-
+-template<typename T>
+-struct is_iterator_traits<iterator_traits<T>>
+-{
+-  private:
+-    using traits = iterator_traits<T>;
+-
+-  public:
+-    static constexpr auto value =
+-        is_detected<value_type_t, traits>::value &&
+-        is_detected<difference_type_t, traits>::value &&
+-        is_detected<pointer_t, traits>::value &&
+-        is_detected<iterator_category_t, traits>::value &&
+-        is_detected<reference_t, traits>::value;
+-};
+-
+-template<typename T>
+-struct is_range
+-{
+-  private:
+-    using t_ref = typename std::add_lvalue_reference<T>::type;
+-
+-    using iterator = detected_t<result_of_begin, t_ref>;
+-    using sentinel = detected_t<result_of_end, t_ref>;
+-
+-    // to be 100% correct, it should use https://en.cppreference.com/w/cpp/iterator/input_or_output_iterator
+-    // and https://en.cppreference.com/w/cpp/iterator/sentinel_for
+-    // but reimplementing these would be too much work, as a lot of other concepts are used underneath
+-    static constexpr auto is_iterator_begin =
+-        is_iterator_traits<iterator_traits<iterator>>::value;
+-
+-  public:
+-    static constexpr bool value = !std::is_same<iterator, nonesuch>::value && !std::is_same<sentinel, nonesuch>::value && is_iterator_begin;
+-};
+-
+-template<typename R>
+-using iterator_t = enable_if_t<is_range<R>::value, result_of_begin<decltype(std::declval<R&>())>>;
+-
+-template<typename T>
+-using range_value_t = value_type_t<iterator_traits<iterator_t<T>>>;
+-
+-// The following implementation of is_complete_type is taken from
+-// https://blogs.msdn.microsoft.com/vcblog/2015/12/02/partial-support-for-expression-sfinae-in-vs-2015-update-1/
+-// and is written by Xiang Fan who agreed to using it in this library.
+-
+-template<typename T, typename = void>
+-struct is_complete_type : std::false_type {};
+-
+-template<typename T>
+-struct is_complete_type<T, decltype(void(sizeof(T)))> : std::true_type {};
+-
+-template<typename BasicJsonType, typename CompatibleObjectType,
+-         typename = void>
+-struct is_compatible_object_type_impl : std::false_type {};
+-
+-template<typename BasicJsonType, typename CompatibleObjectType>
+-struct is_compatible_object_type_impl <
+-    BasicJsonType, CompatibleObjectType,
+-    enable_if_t < is_detected<mapped_type_t, CompatibleObjectType>::value&&
+-    is_detected<key_type_t, CompatibleObjectType>::value >>
+-{
+-    using object_t = typename BasicJsonType::object_t;
+-
+-    // macOS's is_constructible does not play well with nonesuch...
+-    static constexpr bool value =
+-        is_constructible<typename object_t::key_type,
+-        typename CompatibleObjectType::key_type>::value &&
+-        is_constructible<typename object_t::mapped_type,
+-        typename CompatibleObjectType::mapped_type>::value;
+-};
+-
+-template<typename BasicJsonType, typename CompatibleObjectType>
+-struct is_compatible_object_type
+-    : is_compatible_object_type_impl<BasicJsonType, CompatibleObjectType> {};
+-
+-template<typename BasicJsonType, typename ConstructibleObjectType,
+-         typename = void>
+-struct is_constructible_object_type_impl : std::false_type {};
+-
+-template<typename BasicJsonType, typename ConstructibleObjectType>
+-struct is_constructible_object_type_impl <
+-    BasicJsonType, ConstructibleObjectType,
+-    enable_if_t < is_detected<mapped_type_t, ConstructibleObjectType>::value&&
+-    is_detected<key_type_t, ConstructibleObjectType>::value >>
+-{
+-    using object_t = typename BasicJsonType::object_t;
+-
+-    static constexpr bool value =
+-        (is_default_constructible<ConstructibleObjectType>::value &&
+-         (std::is_move_assignable<ConstructibleObjectType>::value ||
+-          std::is_copy_assignable<ConstructibleObjectType>::value) &&
+-         (is_constructible<typename ConstructibleObjectType::key_type,
+-          typename object_t::key_type>::value &&
+-          std::is_same <
+-          typename object_t::mapped_type,
+-          typename ConstructibleObjectType::mapped_type >::value)) ||
+-        (has_from_json<BasicJsonType,
+-         typename ConstructibleObjectType::mapped_type>::value ||
+-         has_non_default_from_json <
+-         BasicJsonType,
+-         typename ConstructibleObjectType::mapped_type >::value);
+-};
+-
+-template<typename BasicJsonType, typename ConstructibleObjectType>
+-struct is_constructible_object_type
+-    : is_constructible_object_type_impl<BasicJsonType,
+-      ConstructibleObjectType> {};
+-
+-template<typename BasicJsonType, typename CompatibleStringType>
+-struct is_compatible_string_type
+-{
+-    static constexpr auto value =
+-        is_constructible<typename BasicJsonType::string_t, CompatibleStringType>::value;
+-};
+-
+-template<typename BasicJsonType, typename ConstructibleStringType>
+-struct is_constructible_string_type
+-{
+-    static constexpr auto value =
+-        is_constructible<ConstructibleStringType,
+-        typename BasicJsonType::string_t>::value;
+-};
+-
+-template<typename BasicJsonType, typename CompatibleArrayType, typename = void>
+-struct is_compatible_array_type_impl : std::false_type {};
+-
+-template<typename BasicJsonType, typename CompatibleArrayType>
+-struct is_compatible_array_type_impl <
+-    BasicJsonType, CompatibleArrayType,
+-    enable_if_t <
+-    is_detected<iterator_t, CompatibleArrayType>::value&&
+-    is_iterator_traits<iterator_traits<detected_t<iterator_t, CompatibleArrayType>>>::value&&
+-// special case for types like std::filesystem::path whose iterator's value_type are themselves
+-// c.f. https://github.com/nlohmann/json/pull/3073
+-    !std::is_same<CompatibleArrayType, detected_t<range_value_t, CompatibleArrayType>>::value >>
+-{
+-    static constexpr bool value =
+-        is_constructible<BasicJsonType,
+-        range_value_t<CompatibleArrayType>>::value;
+-};
+-
+-template<typename BasicJsonType, typename CompatibleArrayType>
+-struct is_compatible_array_type
+-    : is_compatible_array_type_impl<BasicJsonType, CompatibleArrayType> {};
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType, typename = void>
+-struct is_constructible_array_type_impl : std::false_type {};
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType>
+-struct is_constructible_array_type_impl <
+-    BasicJsonType, ConstructibleArrayType,
+-    enable_if_t<std::is_same<ConstructibleArrayType,
+-    typename BasicJsonType::value_type>::value >>
+-            : std::true_type {};
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType>
+-struct is_constructible_array_type_impl <
+-    BasicJsonType, ConstructibleArrayType,
+-    enable_if_t < !std::is_same<ConstructibleArrayType,
+-    typename BasicJsonType::value_type>::value&&
+-    !is_compatible_string_type<BasicJsonType, ConstructibleArrayType>::value&&
+-    is_default_constructible<ConstructibleArrayType>::value&&
+-(std::is_move_assignable<ConstructibleArrayType>::value ||
+- std::is_copy_assignable<ConstructibleArrayType>::value)&&
+-is_detected<iterator_t, ConstructibleArrayType>::value&&
+-is_iterator_traits<iterator_traits<detected_t<iterator_t, ConstructibleArrayType>>>::value&&
+-is_detected<range_value_t, ConstructibleArrayType>::value&&
+-// special case for types like std::filesystem::path whose iterator's value_type are themselves
+-// c.f. https://github.com/nlohmann/json/pull/3073
+-!std::is_same<ConstructibleArrayType, detected_t<range_value_t, ConstructibleArrayType>>::value&&
+-        is_complete_type <
+-        detected_t<range_value_t, ConstructibleArrayType >>::value >>
+-{
+-    using value_type = range_value_t<ConstructibleArrayType>;
+-
+-    static constexpr bool value =
+-        std::is_same<value_type,
+-        typename BasicJsonType::array_t::value_type>::value ||
+-        has_from_json<BasicJsonType,
+-        value_type>::value ||
+-        has_non_default_from_json <
+-        BasicJsonType,
+-        value_type >::value;
+-};
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType>
+-struct is_constructible_array_type
+-    : is_constructible_array_type_impl<BasicJsonType, ConstructibleArrayType> {};
+-
+-template<typename RealIntegerType, typename CompatibleNumberIntegerType,
+-         typename = void>
+-struct is_compatible_integer_type_impl : std::false_type {};
+-
+-template<typename RealIntegerType, typename CompatibleNumberIntegerType>
+-struct is_compatible_integer_type_impl <
+-    RealIntegerType, CompatibleNumberIntegerType,
+-    enable_if_t < std::is_integral<RealIntegerType>::value&&
+-    std::is_integral<CompatibleNumberIntegerType>::value&&
+-    !std::is_same<bool, CompatibleNumberIntegerType>::value >>
+-{
+-    // is there an assert somewhere on overflows?
+-    using RealLimits = std::numeric_limits<RealIntegerType>;
+-    using CompatibleLimits = std::numeric_limits<CompatibleNumberIntegerType>;
+-
+-    static constexpr auto value =
+-        is_constructible<RealIntegerType,
+-        CompatibleNumberIntegerType>::value &&
+-        CompatibleLimits::is_integer &&
+-        RealLimits::is_signed == CompatibleLimits::is_signed;
+-};
+-
+-template<typename RealIntegerType, typename CompatibleNumberIntegerType>
+-struct is_compatible_integer_type
+-    : is_compatible_integer_type_impl<RealIntegerType,
+-      CompatibleNumberIntegerType> {};
+-
+-template<typename BasicJsonType, typename CompatibleType, typename = void>
+-struct is_compatible_type_impl: std::false_type {};
+-
+-template<typename BasicJsonType, typename CompatibleType>
+-struct is_compatible_type_impl <
+-    BasicJsonType, CompatibleType,
+-    enable_if_t<is_complete_type<CompatibleType>::value >>
+-{
+-    static constexpr bool value =
+-        has_to_json<BasicJsonType, CompatibleType>::value;
+-};
+-
+-template<typename BasicJsonType, typename CompatibleType>
+-struct is_compatible_type
+-    : is_compatible_type_impl<BasicJsonType, CompatibleType> {};
+-
+-template<typename T1, typename T2>
+-struct is_constructible_tuple : std::false_type {};
+-
+-template<typename T1, typename... Args>
+-struct is_constructible_tuple<T1, std::tuple<Args...>> : conjunction<is_constructible<T1, Args>...> {};
+-
+-// a naive helper to check if a type is an ordered_map (exploits the fact that
+-// ordered_map inherits capacity() from std::vector)
+-template <typename T>
+-struct is_ordered_map
+-{
+-    using one = char;
+-
+-    struct two
+-    {
+-        char x[2]; // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-    };
+-
+-    template <typename C> static one test( decltype(&C::capacity) ) ;
+-    template <typename C> static two test(...);
+-
+-    enum { value = sizeof(test<T>(nullptr)) == sizeof(char) }; // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-};
+-
+-// to avoid useless casts (see https://github.com/nlohmann/json/issues/2893#issuecomment-889152324)
+-template < typename T, typename U, enable_if_t < !std::is_same<T, U>::value, int > = 0 >
+-T conditional_static_cast(U value)
+-{
+-    return static_cast<T>(value);
+-}
+-
+-template<typename T, typename U, enable_if_t<std::is_same<T, U>::value, int> = 0>
+-T conditional_static_cast(U value)
+-{
+-    return value;
+-}
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-#if JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-#include <experimental/filesystem>
+-namespace nlohmann::detail
+-{
+-namespace std_fs = std::experimental::filesystem;
+-} // namespace nlohmann::detail
+-#elif JSON_HAS_FILESYSTEM
+-#include <filesystem>
+-namespace nlohmann::detail
+-{
+-namespace std_fs = std::filesystem;
+-} // namespace nlohmann::detail
+-#endif
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename std::nullptr_t& n)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_null()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be null, but is " + std::string(j.type_name()), j));
+-    }
+-    n = nullptr;
+-}
+-
+-// overloads for basic_json template parameters
+-template < typename BasicJsonType, typename ArithmeticType,
+-           enable_if_t < std::is_arithmetic<ArithmeticType>::value&&
+-                         !std::is_same<ArithmeticType, typename BasicJsonType::boolean_t>::value,
+-                         int > = 0 >
+-void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val)
+-{
+-    switch (static_cast<value_t>(j))
+-    {
+-        case value_t::number_unsigned:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
+-            break;
+-        }
+-        case value_t::number_integer:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
+-            break;
+-        }
+-        case value_t::number_float:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
+-            break;
+-        }
+-
+-        case value_t::null:
+-        case value_t::object:
+-        case value_t::array:
+-        case value_t::string:
+-        case value_t::boolean:
+-        case value_t::binary:
+-        case value_t::discarded:
+-        default:
+-            JSON_THROW(type_error::create(302, "type must be number, but is " + std::string(j.type_name()), j));
+-    }
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::boolean_t& b)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_boolean()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be boolean, but is " + std::string(j.type_name()), j));
+-    }
+-    b = *j.template get_ptr<const typename BasicJsonType::boolean_t*>();
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::string_t& s)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be string, but is " + std::string(j.type_name()), j));
+-    }
+-    s = *j.template get_ptr<const typename BasicJsonType::string_t*>();
+-}
+-
+-template <
+-    typename BasicJsonType, typename ConstructibleStringType,
+-    enable_if_t <
+-        is_constructible_string_type<BasicJsonType, ConstructibleStringType>::value&&
+-        !std::is_same<typename BasicJsonType::string_t,
+-                      ConstructibleStringType>::value,
+-        int > = 0 >
+-void from_json(const BasicJsonType& j, ConstructibleStringType& s)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be string, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    s = *j.template get_ptr<const typename BasicJsonType::string_t*>();
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::number_float_t& val)
+-{
+-    get_arithmetic_value(j, val);
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::number_unsigned_t& val)
+-{
+-    get_arithmetic_value(j, val);
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::number_integer_t& val)
+-{
+-    get_arithmetic_value(j, val);
+-}
+-
+-template<typename BasicJsonType, typename EnumType,
+-         enable_if_t<std::is_enum<EnumType>::value, int> = 0>
+-void from_json(const BasicJsonType& j, EnumType& e)
+-{
+-    typename std::underlying_type<EnumType>::type val;
+-    get_arithmetic_value(j, val);
+-    e = static_cast<EnumType>(val);
+-}
+-
+-// forward_list doesn't have an insert method
+-template<typename BasicJsonType, typename T, typename Allocator,
+-         enable_if_t<is_getable<BasicJsonType, T>::value, int> = 0>
+-void from_json(const BasicJsonType& j, std::forward_list<T, Allocator>& l)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-    l.clear();
+-    std::transform(j.rbegin(), j.rend(),
+-                   std::front_inserter(l), [](const BasicJsonType & i)
+-    {
+-        return i.template get<T>();
+-    });
+-}
+-
+-// valarray doesn't have an insert method
+-template<typename BasicJsonType, typename T,
+-         enable_if_t<is_getable<BasicJsonType, T>::value, int> = 0>
+-void from_json(const BasicJsonType& j, std::valarray<T>& l)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-    l.resize(j.size());
+-    std::transform(j.begin(), j.end(), std::begin(l),
+-                   [](const BasicJsonType & elem)
+-    {
+-        return elem.template get<T>();
+-    });
+-}
+-
+-template<typename BasicJsonType, typename T, std::size_t N>
+-auto from_json(const BasicJsonType& j, T (&arr)[N])  // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+--> decltype(j.template get<T>(), void())
+-{
+-    for (std::size_t i = 0; i < N; ++i)
+-    {
+-        arr[i] = j.at(i).template get<T>();
+-    }
+-}
+-
+-template<typename BasicJsonType>
+-void from_json_array_impl(const BasicJsonType& j, typename BasicJsonType::array_t& arr, priority_tag<3> /*unused*/)
+-{
+-    arr = *j.template get_ptr<const typename BasicJsonType::array_t*>();
+-}
+-
+-template<typename BasicJsonType, typename T, std::size_t N>
+-auto from_json_array_impl(const BasicJsonType& j, std::array<T, N>& arr,
+-                          priority_tag<2> /*unused*/)
+--> decltype(j.template get<T>(), void())
+-{
+-    for (std::size_t i = 0; i < N; ++i)
+-    {
+-        arr[i] = j.at(i).template get<T>();
+-    }
+-}
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType,
+-         enable_if_t<
+-             std::is_assignable<ConstructibleArrayType&, ConstructibleArrayType>::value,
+-             int> = 0>
+-auto from_json_array_impl(const BasicJsonType& j, ConstructibleArrayType& arr, priority_tag<1> /*unused*/)
+--> decltype(
+-    arr.reserve(std::declval<typename ConstructibleArrayType::size_type>()),
+-    j.template get<typename ConstructibleArrayType::value_type>(),
+-    void())
+-{
+-    using std::end;
+-
+-    ConstructibleArrayType ret;
+-    ret.reserve(j.size());
+-    std::transform(j.begin(), j.end(),
+-                   std::inserter(ret, end(ret)), [](const BasicJsonType & i)
+-    {
+-        // get<BasicJsonType>() returns *this, this won't call a from_json
+-        // method when value_type is BasicJsonType
+-        return i.template get<typename ConstructibleArrayType::value_type>();
+-    });
+-    arr = std::move(ret);
+-}
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType,
+-         enable_if_t<
+-             std::is_assignable<ConstructibleArrayType&, ConstructibleArrayType>::value,
+-             int> = 0>
+-void from_json_array_impl(const BasicJsonType& j, ConstructibleArrayType& arr,
+-                          priority_tag<0> /*unused*/)
+-{
+-    using std::end;
+-
+-    ConstructibleArrayType ret;
+-    std::transform(
+-        j.begin(), j.end(), std::inserter(ret, end(ret)),
+-        [](const BasicJsonType & i)
+-    {
+-        // get<BasicJsonType>() returns *this, this won't call a from_json
+-        // method when value_type is BasicJsonType
+-        return i.template get<typename ConstructibleArrayType::value_type>();
+-    });
+-    arr = std::move(ret);
+-}
+-
+-template < typename BasicJsonType, typename ConstructibleArrayType,
+-           enable_if_t <
+-               is_constructible_array_type<BasicJsonType, ConstructibleArrayType>::value&&
+-               !is_constructible_object_type<BasicJsonType, ConstructibleArrayType>::value&&
+-               !is_constructible_string_type<BasicJsonType, ConstructibleArrayType>::value&&
+-               !std::is_same<ConstructibleArrayType, typename BasicJsonType::binary_t>::value&&
+-               !is_basic_json<ConstructibleArrayType>::value,
+-               int > = 0 >
+-auto from_json(const BasicJsonType& j, ConstructibleArrayType& arr)
+--> decltype(from_json_array_impl(j, arr, priority_tag<3> {}),
+-j.template get<typename ConstructibleArrayType::value_type>(),
+-void())
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    from_json_array_impl(j, arr, priority_tag<3> {});
+-}
+-
+-template < typename BasicJsonType, typename T, std::size_t... Idx >
+-std::array<T, sizeof...(Idx)> from_json_inplace_array_impl(BasicJsonType&& j,
+-        identity_tag<std::array<T, sizeof...(Idx)>> /*unused*/, index_sequence<Idx...> /*unused*/)
+-{
+-    return { { std::forward<BasicJsonType>(j).at(Idx).template get<T>()... } };
+-}
+-
+-template < typename BasicJsonType, typename T, std::size_t N >
+-auto from_json(BasicJsonType&& j, identity_tag<std::array<T, N>> tag)
+--> decltype(from_json_inplace_array_impl(std::forward<BasicJsonType>(j), tag, make_index_sequence<N> {}))
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    return from_json_inplace_array_impl(std::forward<BasicJsonType>(j), tag, make_index_sequence<N> {});
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::binary_t& bin)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_binary()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    bin = *j.template get_ptr<const typename BasicJsonType::binary_t*>();
+-}
+-
+-template<typename BasicJsonType, typename ConstructibleObjectType,
+-         enable_if_t<is_constructible_object_type<BasicJsonType, ConstructibleObjectType>::value, int> = 0>
+-void from_json(const BasicJsonType& j, ConstructibleObjectType& obj)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_object()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be object, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    ConstructibleObjectType ret;
+-    const auto* inner_object = j.template get_ptr<const typename BasicJsonType::object_t*>();
+-    using value_type = typename ConstructibleObjectType::value_type;
+-    std::transform(
+-        inner_object->begin(), inner_object->end(),
+-        std::inserter(ret, ret.begin()),
+-        [](typename BasicJsonType::object_t::value_type const & p)
+-    {
+-        return value_type(p.first, p.second.template get<typename ConstructibleObjectType::mapped_type>());
+-    });
+-    obj = std::move(ret);
+-}
+-
+-// overload for arithmetic types, not chosen for basic_json template arguments
+-// (BooleanType, etc..); note: Is it really necessary to provide explicit
+-// overloads for boolean_t etc. in case of a custom BooleanType which is not
+-// an arithmetic type?
+-template < typename BasicJsonType, typename ArithmeticType,
+-           enable_if_t <
+-               std::is_arithmetic<ArithmeticType>::value&&
+-               !std::is_same<ArithmeticType, typename BasicJsonType::number_unsigned_t>::value&&
+-               !std::is_same<ArithmeticType, typename BasicJsonType::number_integer_t>::value&&
+-               !std::is_same<ArithmeticType, typename BasicJsonType::number_float_t>::value&&
+-               !std::is_same<ArithmeticType, typename BasicJsonType::boolean_t>::value,
+-               int > = 0 >
+-void from_json(const BasicJsonType& j, ArithmeticType& val)
+-{
+-    switch (static_cast<value_t>(j))
+-    {
+-        case value_t::number_unsigned:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
+-            break;
+-        }
+-        case value_t::number_integer:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
+-            break;
+-        }
+-        case value_t::number_float:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
+-            break;
+-        }
+-        case value_t::boolean:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::boolean_t*>());
+-            break;
+-        }
+-
+-        case value_t::null:
+-        case value_t::object:
+-        case value_t::array:
+-        case value_t::string:
+-        case value_t::binary:
+-        case value_t::discarded:
+-        default:
+-            JSON_THROW(type_error::create(302, "type must be number, but is " + std::string(j.type_name()), j));
+-    }
+-}
+-
+-template<typename BasicJsonType, typename... Args, std::size_t... Idx>
+-std::tuple<Args...> from_json_tuple_impl_base(BasicJsonType&& j, index_sequence<Idx...> /*unused*/)
+-{
+-    return std::make_tuple(std::forward<BasicJsonType>(j).at(Idx).template get<Args>()...);
+-}
+-
+-template < typename BasicJsonType, class A1, class A2 >
+-std::pair<A1, A2> from_json_tuple_impl(BasicJsonType&& j, identity_tag<std::pair<A1, A2>> /*unused*/, priority_tag<0> /*unused*/)
+-{
+-    return {std::forward<BasicJsonType>(j).at(0).template get<A1>(),
+-            std::forward<BasicJsonType>(j).at(1).template get<A2>()};
+-}
+-
+-template<typename BasicJsonType, typename A1, typename A2>
+-void from_json_tuple_impl(BasicJsonType&& j, std::pair<A1, A2>& p, priority_tag<1> /*unused*/)
+-{
+-    p = from_json_tuple_impl(std::forward<BasicJsonType>(j), identity_tag<std::pair<A1, A2>> {}, priority_tag<0> {});
+-}
+-
+-template<typename BasicJsonType, typename... Args>
+-std::tuple<Args...> from_json_tuple_impl(BasicJsonType&& j, identity_tag<std::tuple<Args...>> /*unused*/, priority_tag<2> /*unused*/)
+-{
+-    return from_json_tuple_impl_base<BasicJsonType, Args...>(std::forward<BasicJsonType>(j), index_sequence_for<Args...> {});
+-}
+-
+-template<typename BasicJsonType, typename... Args>
+-void from_json_tuple_impl(BasicJsonType&& j, std::tuple<Args...>& t, priority_tag<3> /*unused*/)
+-{
+-    t = from_json_tuple_impl_base<BasicJsonType, Args...>(std::forward<BasicJsonType>(j), index_sequence_for<Args...> {});
+-}
+-
+-template<typename BasicJsonType, typename TupleRelated>
+-auto from_json(BasicJsonType&& j, TupleRelated&& t)
+--> decltype(from_json_tuple_impl(std::forward<BasicJsonType>(j), std::forward<TupleRelated>(t), priority_tag<3> {}))
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    return from_json_tuple_impl(std::forward<BasicJsonType>(j), std::forward<TupleRelated>(t), priority_tag<3> {});
+-}
+-
+-template < typename BasicJsonType, typename Key, typename Value, typename Compare, typename Allocator,
+-           typename = enable_if_t < !std::is_constructible <
+-                                        typename BasicJsonType::string_t, Key >::value >>
+-void from_json(const BasicJsonType& j, std::map<Key, Value, Compare, Allocator>& m)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-    m.clear();
+-    for (const auto& p : j)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!p.is_array()))
+-        {
+-            JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(p.type_name()), j));
+-        }
+-        m.emplace(p.at(0).template get<Key>(), p.at(1).template get<Value>());
+-    }
+-}
+-
+-template < typename BasicJsonType, typename Key, typename Value, typename Hash, typename KeyEqual, typename Allocator,
+-           typename = enable_if_t < !std::is_constructible <
+-                                        typename BasicJsonType::string_t, Key >::value >>
+-void from_json(const BasicJsonType& j, std::unordered_map<Key, Value, Hash, KeyEqual, Allocator>& m)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-    m.clear();
+-    for (const auto& p : j)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!p.is_array()))
+-        {
+-            JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(p.type_name()), j));
+-        }
+-        m.emplace(p.at(0).template get<Key>(), p.at(1).template get<Value>());
+-    }
+-}
+-
+-#if JSON_HAS_FILESYSTEM || JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, std_fs::path& p)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be string, but is " + std::string(j.type_name()), j));
+-    }
+-    p = *j.template get_ptr<const typename BasicJsonType::string_t*>();
+-}
+-#endif
+-
+-struct from_json_fn
+-{
+-    template<typename BasicJsonType, typename T>
+-    auto operator()(const BasicJsonType& j, T&& val) const
+-    noexcept(noexcept(from_json(j, std::forward<T>(val))))
+-    -> decltype(from_json(j, std::forward<T>(val)))
+-    {
+-        return from_json(j, std::forward<T>(val));
+-    }
+-};
+-}  // namespace detail
+-
+-/// namespace to hold default `from_json` function
+-/// to see why this is required:
+-/// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4381.html
+-namespace // NOLINT(cert-dcl59-cpp,fuchsia-header-anon-namespaces,google-build-namespaces)
+-{
+-constexpr const auto& from_json = detail::static_const<detail::from_json_fn>::value; // NOLINT(misc-definitions-in-headers)
+-} // namespace
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/conversions/to_json.hpp>
+-
+-
+-#include <algorithm> // copy
+-#include <iterator> // begin, end
+-#include <string> // string
+-#include <tuple> // tuple, get
+-#include <type_traits> // is_same, is_constructible, is_floating_point, is_enum, underlying_type
+-#include <utility> // move, forward, declval, pair
+-#include <valarray> // valarray
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/iterators/iteration_proxy.hpp>
+-
+-
+-#include <cstddef> // size_t
+-#include <iterator> // input_iterator_tag
+-#include <string> // string, to_string
+-#include <tuple> // tuple_size, get, tuple_element
+-#include <utility> // move
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename string_type>
+-void int_to_string( string_type& target, std::size_t value )
+-{
+-    // For ADL
+-    using std::to_string;
+-    target = to_string(value);
+-}
+-template<typename IteratorType> class iteration_proxy_value
+-{
+-  public:
+-    using difference_type = std::ptrdiff_t;
+-    using value_type = iteration_proxy_value;
+-    using pointer = value_type * ;
+-    using reference = value_type & ;
+-    using iterator_category = std::input_iterator_tag;
+-    using string_type = typename std::remove_cv< typename std::remove_reference<decltype( std::declval<IteratorType>().key() ) >::type >::type;
+-
+-  private:
+-    /// the iterator
+-    IteratorType anchor;
+-    /// an index for arrays (used to create key names)
+-    std::size_t array_index = 0;
+-    /// last stringified array index
+-    mutable std::size_t array_index_last = 0;
+-    /// a string representation of the array index
+-    mutable string_type array_index_str = "0";
+-    /// an empty string (to return a reference for primitive values)
+-    const string_type empty_str{};
+-
+-  public:
+-    explicit iteration_proxy_value(IteratorType it) noexcept
+-        : anchor(std::move(it))
+-    {}
+-
+-    /// dereference operator (needed for range-based for)
+-    iteration_proxy_value& operator*()
+-    {
+-        return *this;
+-    }
+-
+-    /// increment operator (needed for range-based for)
+-    iteration_proxy_value& operator++()
+-    {
+-        ++anchor;
+-        ++array_index;
+-
+-        return *this;
+-    }
+-
+-    /// equality operator (needed for InputIterator)
+-    bool operator==(const iteration_proxy_value& o) const
+-    {
+-        return anchor == o.anchor;
+-    }
+-
+-    /// inequality operator (needed for range-based for)
+-    bool operator!=(const iteration_proxy_value& o) const
+-    {
+-        return anchor != o.anchor;
+-    }
+-
+-    /// return key of the iterator
+-    const string_type& key() const
+-    {
+-        JSON_ASSERT(anchor.m_object != nullptr);
+-
+-        switch (anchor.m_object->type())
+-        {
+-            // use integer array index as key
+-            case value_t::array:
+-            {
+-                if (array_index != array_index_last)
+-                {
+-                    int_to_string( array_index_str, array_index );
+-                    array_index_last = array_index;
+-                }
+-                return array_index_str;
+-            }
+-
+-            // use key from the object
+-            case value_t::object:
+-                return anchor.key();
+-
+-            // use an empty key for all primitive types
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                return empty_str;
+-        }
+-    }
+-
+-    /// return value of the iterator
+-    typename IteratorType::reference value() const
+-    {
+-        return anchor.value();
+-    }
+-};
+-
+-/// proxy class for the items() function
+-template<typename IteratorType> class iteration_proxy
+-{
+-  private:
+-    /// the container to iterate
+-    typename IteratorType::reference container;
+-
+-  public:
+-    /// construct iteration proxy from a container
+-    explicit iteration_proxy(typename IteratorType::reference cont) noexcept
+-        : container(cont) {}
+-
+-    /// return iterator begin (needed for range-based for)
+-    iteration_proxy_value<IteratorType> begin() noexcept
+-    {
+-        return iteration_proxy_value<IteratorType>(container.begin());
+-    }
+-
+-    /// return iterator end (needed for range-based for)
+-    iteration_proxy_value<IteratorType> end() noexcept
+-    {
+-        return iteration_proxy_value<IteratorType>(container.end());
+-    }
+-};
+-// Structured Bindings Support
+-// For further reference see https://blog.tartanllama.xyz/structured-bindings/
+-// And see https://github.com/nlohmann/json/pull/1391
+-template<std::size_t N, typename IteratorType, enable_if_t<N == 0, int> = 0>
+-auto get(const nlohmann::detail::iteration_proxy_value<IteratorType>& i) -> decltype(i.key())
+-{
+-    return i.key();
+-}
+-// Structured Bindings Support
+-// For further reference see https://blog.tartanllama.xyz/structured-bindings/
+-// And see https://github.com/nlohmann/json/pull/1391
+-template<std::size_t N, typename IteratorType, enable_if_t<N == 1, int> = 0>
+-auto get(const nlohmann::detail::iteration_proxy_value<IteratorType>& i) -> decltype(i.value())
+-{
+-    return i.value();
+-}
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// The Addition to the STD Namespace is required to add
+-// Structured Bindings Support to the iteration_proxy_value class
+-// For further reference see https://blog.tartanllama.xyz/structured-bindings/
+-// And see https://github.com/nlohmann/json/pull/1391
+-namespace std
+-{
+-#if defined(__clang__)
+-    // Fix: https://github.com/nlohmann/json/issues/1401
+-    #pragma clang diagnostic push
+-    #pragma clang diagnostic ignored "-Wmismatched-tags"
+-#endif
+-template<typename IteratorType>
+-class tuple_size<::nlohmann::detail::iteration_proxy_value<IteratorType>>
+-            : public std::integral_constant<std::size_t, 2> {};
+-
+-template<std::size_t N, typename IteratorType>
+-class tuple_element<N, ::nlohmann::detail::iteration_proxy_value<IteratorType >>
+-{
+-  public:
+-    using type = decltype(
+-                     get<N>(std::declval <
+-                            ::nlohmann::detail::iteration_proxy_value<IteratorType >> ()));
+-};
+-#if defined(__clang__)
+-    #pragma clang diagnostic pop
+-#endif
+-} // namespace std
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-#if JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-#include <experimental/filesystem>
+-namespace nlohmann::detail
+-{
+-namespace std_fs = std::experimental::filesystem;
+-} // namespace nlohmann::detail
+-#elif JSON_HAS_FILESYSTEM
+-#include <filesystem>
+-namespace nlohmann::detail
+-{
+-namespace std_fs = std::filesystem;
+-} // namespace nlohmann::detail
+-#endif
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-//////////////////
+-// constructors //
+-//////////////////
+-
+-/*
+- * Note all external_constructor<>::construct functions need to call
+- * j.m_value.destroy(j.m_type) to avoid a memory leak in case j contains an
+- * allocated value (e.g., a string). See bug issue
+- * https://github.com/nlohmann/json/issues/2865 for more information.
+- */
+-
+-template<value_t> struct external_constructor;
+-
+-template<>
+-struct external_constructor<value_t::boolean>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::boolean_t b) noexcept
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::boolean;
+-        j.m_value = b;
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::string>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const typename BasicJsonType::string_t& s)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::string;
+-        j.m_value = s;
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::string_t&& s)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::string;
+-        j.m_value = std::move(s);
+-        j.assert_invariant();
+-    }
+-
+-    template < typename BasicJsonType, typename CompatibleStringType,
+-               enable_if_t < !std::is_same<CompatibleStringType, typename BasicJsonType::string_t>::value,
+-                             int > = 0 >
+-    static void construct(BasicJsonType& j, const CompatibleStringType& str)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::string;
+-        j.m_value.string = j.template create<typename BasicJsonType::string_t>(str);
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::binary>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const typename BasicJsonType::binary_t& b)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::binary;
+-        j.m_value = typename BasicJsonType::binary_t(b);
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::binary_t&& b)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::binary;
+-        j.m_value = typename BasicJsonType::binary_t(std::move(b));
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::number_float>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::number_float_t val) noexcept
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::number_float;
+-        j.m_value = val;
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::number_unsigned>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::number_unsigned_t val) noexcept
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::number_unsigned;
+-        j.m_value = val;
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::number_integer>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::number_integer_t val) noexcept
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::number_integer;
+-        j.m_value = val;
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::array>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const typename BasicJsonType::array_t& arr)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value = arr;
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::array_t&& arr)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value = std::move(arr);
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template < typename BasicJsonType, typename CompatibleArrayType,
+-               enable_if_t < !std::is_same<CompatibleArrayType, typename BasicJsonType::array_t>::value,
+-                             int > = 0 >
+-    static void construct(BasicJsonType& j, const CompatibleArrayType& arr)
+-    {
+-        using std::begin;
+-        using std::end;
+-
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value.array = j.template create<typename BasicJsonType::array_t>(begin(arr), end(arr));
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const std::vector<bool>& arr)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value = value_t::array;
+-        j.m_value.array->reserve(arr.size());
+-        for (const bool x : arr)
+-        {
+-            j.m_value.array->push_back(x);
+-            j.set_parent(j.m_value.array->back());
+-        }
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType, typename T,
+-             enable_if_t<std::is_convertible<T, BasicJsonType>::value, int> = 0>
+-    static void construct(BasicJsonType& j, const std::valarray<T>& arr)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value = value_t::array;
+-        j.m_value.array->resize(arr.size());
+-        if (arr.size() > 0)
+-        {
+-            std::copy(std::begin(arr), std::end(arr), j.m_value.array->begin());
+-        }
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::object>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const typename BasicJsonType::object_t& obj)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::object;
+-        j.m_value = obj;
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::object_t&& obj)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::object;
+-        j.m_value = std::move(obj);
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template < typename BasicJsonType, typename CompatibleObjectType,
+-               enable_if_t < !std::is_same<CompatibleObjectType, typename BasicJsonType::object_t>::value, int > = 0 >
+-    static void construct(BasicJsonType& j, const CompatibleObjectType& obj)
+-    {
+-        using std::begin;
+-        using std::end;
+-
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::object;
+-        j.m_value.object = j.template create<typename BasicJsonType::object_t>(begin(obj), end(obj));
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-};
+-
+-/////////////
+-// to_json //
+-/////////////
+-
+-template<typename BasicJsonType, typename T,
+-         enable_if_t<std::is_same<T, typename BasicJsonType::boolean_t>::value, int> = 0>
+-void to_json(BasicJsonType& j, T b) noexcept
+-{
+-    external_constructor<value_t::boolean>::construct(j, b);
+-}
+-
+-template<typename BasicJsonType, typename CompatibleString,
+-         enable_if_t<std::is_constructible<typename BasicJsonType::string_t, CompatibleString>::value, int> = 0>
+-void to_json(BasicJsonType& j, const CompatibleString& s)
+-{
+-    external_constructor<value_t::string>::construct(j, s);
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, typename BasicJsonType::string_t&& s)
+-{
+-    external_constructor<value_t::string>::construct(j, std::move(s));
+-}
+-
+-template<typename BasicJsonType, typename FloatType,
+-         enable_if_t<std::is_floating_point<FloatType>::value, int> = 0>
+-void to_json(BasicJsonType& j, FloatType val) noexcept
+-{
+-    external_constructor<value_t::number_float>::construct(j, static_cast<typename BasicJsonType::number_float_t>(val));
+-}
+-
+-template<typename BasicJsonType, typename CompatibleNumberUnsignedType,
+-         enable_if_t<is_compatible_integer_type<typename BasicJsonType::number_unsigned_t, CompatibleNumberUnsignedType>::value, int> = 0>
+-void to_json(BasicJsonType& j, CompatibleNumberUnsignedType val) noexcept
+-{
+-    external_constructor<value_t::number_unsigned>::construct(j, static_cast<typename BasicJsonType::number_unsigned_t>(val));
+-}
+-
+-template<typename BasicJsonType, typename CompatibleNumberIntegerType,
+-         enable_if_t<is_compatible_integer_type<typename BasicJsonType::number_integer_t, CompatibleNumberIntegerType>::value, int> = 0>
+-void to_json(BasicJsonType& j, CompatibleNumberIntegerType val) noexcept
+-{
+-    external_constructor<value_t::number_integer>::construct(j, static_cast<typename BasicJsonType::number_integer_t>(val));
+-}
+-
+-template<typename BasicJsonType, typename EnumType,
+-         enable_if_t<std::is_enum<EnumType>::value, int> = 0>
+-void to_json(BasicJsonType& j, EnumType e) noexcept
+-{
+-    using underlying_type = typename std::underlying_type<EnumType>::type;
+-    external_constructor<value_t::number_integer>::construct(j, static_cast<underlying_type>(e));
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, const std::vector<bool>& e)
+-{
+-    external_constructor<value_t::array>::construct(j, e);
+-}
+-
+-template < typename BasicJsonType, typename CompatibleArrayType,
+-           enable_if_t < is_compatible_array_type<BasicJsonType,
+-                         CompatibleArrayType>::value&&
+-                         !is_compatible_object_type<BasicJsonType, CompatibleArrayType>::value&&
+-                         !is_compatible_string_type<BasicJsonType, CompatibleArrayType>::value&&
+-                         !std::is_same<typename BasicJsonType::binary_t, CompatibleArrayType>::value&&
+-                         !is_basic_json<CompatibleArrayType>::value,
+-                         int > = 0 >
+-void to_json(BasicJsonType& j, const CompatibleArrayType& arr)
+-{
+-    external_constructor<value_t::array>::construct(j, arr);
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, const typename BasicJsonType::binary_t& bin)
+-{
+-    external_constructor<value_t::binary>::construct(j, bin);
+-}
+-
+-template<typename BasicJsonType, typename T,
+-         enable_if_t<std::is_convertible<T, BasicJsonType>::value, int> = 0>
+-void to_json(BasicJsonType& j, const std::valarray<T>& arr)
+-{
+-    external_constructor<value_t::array>::construct(j, std::move(arr));
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, typename BasicJsonType::array_t&& arr)
+-{
+-    external_constructor<value_t::array>::construct(j, std::move(arr));
+-}
+-
+-template < typename BasicJsonType, typename CompatibleObjectType,
+-           enable_if_t < is_compatible_object_type<BasicJsonType, CompatibleObjectType>::value&& !is_basic_json<CompatibleObjectType>::value, int > = 0 >
+-void to_json(BasicJsonType& j, const CompatibleObjectType& obj)
+-{
+-    external_constructor<value_t::object>::construct(j, obj);
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, typename BasicJsonType::object_t&& obj)
+-{
+-    external_constructor<value_t::object>::construct(j, std::move(obj));
+-}
+-
+-template <
+-    typename BasicJsonType, typename T, std::size_t N,
+-    enable_if_t < !std::is_constructible<typename BasicJsonType::string_t,
+-                  const T(&)[N]>::value, // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-                  int > = 0 >
+-void to_json(BasicJsonType& j, const T(&arr)[N]) // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-{
+-    external_constructor<value_t::array>::construct(j, arr);
+-}
+-
+-template < typename BasicJsonType, typename T1, typename T2, enable_if_t < std::is_constructible<BasicJsonType, T1>::value&& std::is_constructible<BasicJsonType, T2>::value, int > = 0 >
+-void to_json(BasicJsonType& j, const std::pair<T1, T2>& p)
+-{
+-    j = { p.first, p.second };
+-}
+-
+-// for https://github.com/nlohmann/json/pull/1134
+-template<typename BasicJsonType, typename T,
+-         enable_if_t<std::is_same<T, iteration_proxy_value<typename BasicJsonType::iterator>>::value, int> = 0>
+-void to_json(BasicJsonType& j, const T& b)
+-{
+-    j = { {b.key(), b.value()} };
+-}
+-
+-template<typename BasicJsonType, typename Tuple, std::size_t... Idx>
+-void to_json_tuple_impl(BasicJsonType& j, const Tuple& t, index_sequence<Idx...> /*unused*/)
+-{
+-    j = { std::get<Idx>(t)... };
+-}
+-
+-template<typename BasicJsonType, typename T, enable_if_t<is_constructible_tuple<BasicJsonType, T>::value, int > = 0>
+-void to_json(BasicJsonType& j, const T& t)
+-{
+-    to_json_tuple_impl(j, t, make_index_sequence<std::tuple_size<T>::value> {});
+-}
+-
+-#if JSON_HAS_FILESYSTEM || JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, const std_fs::path& p)
+-{
+-    j = p.string();
+-}
+-#endif
+-
+-struct to_json_fn
+-{
+-    template<typename BasicJsonType, typename T>
+-    auto operator()(BasicJsonType& j, T&& val) const noexcept(noexcept(to_json(j, std::forward<T>(val))))
+-    -> decltype(to_json(j, std::forward<T>(val)), void())
+-    {
+-        return to_json(j, std::forward<T>(val));
+-    }
+-};
+-}  // namespace detail
+-
+-/// namespace to hold default `to_json` function
+-/// to see why this is required:
+-/// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4381.html
+-namespace // NOLINT(cert-dcl59-cpp,fuchsia-header-anon-namespaces,google-build-namespaces)
+-{
+-constexpr const auto& to_json = detail::static_const<detail::to_json_fn>::value; // NOLINT(misc-definitions-in-headers)
+-} // namespace
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/identity_tag.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-
+-namespace nlohmann
+-{
+-
+-/// @sa https://json.nlohmann.me/api/adl_serializer/
+-template<typename ValueType, typename>
+-struct adl_serializer
+-{
+-    /// @brief convert a JSON value to any value type
+-    /// @sa https://json.nlohmann.me/api/adl_serializer/from_json/
+-    template<typename BasicJsonType, typename TargetType = ValueType>
+-    static auto from_json(BasicJsonType && j, TargetType& val) noexcept(
+-        noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), val)))
+-    -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), val), void())
+-    {
+-        ::nlohmann::from_json(std::forward<BasicJsonType>(j), val);
+-    }
+-
+-    /// @brief convert a JSON value to any value type
+-    /// @sa https://json.nlohmann.me/api/adl_serializer/from_json/
+-    template<typename BasicJsonType, typename TargetType = ValueType>
+-    static auto from_json(BasicJsonType && j) noexcept(
+-    noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {})))
+-    -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {}))
+-    {
+-        return ::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {});
+-    }
+-
+-    /// @brief convert any value type to a JSON value
+-    /// @sa https://json.nlohmann.me/api/adl_serializer/to_json/
+-    template<typename BasicJsonType, typename TargetType = ValueType>
+-    static auto to_json(BasicJsonType& j, TargetType && val) noexcept(
+-        noexcept(::nlohmann::to_json(j, std::forward<TargetType>(val))))
+-    -> decltype(::nlohmann::to_json(j, std::forward<TargetType>(val)), void())
+-    {
+-        ::nlohmann::to_json(j, std::forward<TargetType>(val));
+-    }
+-};
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/byte_container_with_subtype.hpp>
+-
+-
+-#include <cstdint> // uint8_t, uint64_t
+-#include <tuple> // tie
+-#include <utility> // move
+-
+-namespace nlohmann
+-{
+-
+-/// @brief an internal type for a backed binary type
+-/// @sa https://json.nlohmann.me/api/byte_container_with_subtype/
+-template<typename BinaryType>
+-class byte_container_with_subtype : public BinaryType
+-{
+-  public:
+-    using container_type = BinaryType;
+-    using subtype_type = std::uint64_t;
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype() noexcept(noexcept(container_type()))
+-        : container_type()
+-    {}
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype(const container_type& b) noexcept(noexcept(container_type(b)))
+-        : container_type(b)
+-    {}
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype(container_type&& b) noexcept(noexcept(container_type(std::move(b))))
+-        : container_type(std::move(b))
+-    {}
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype(const container_type& b, subtype_type subtype_) noexcept(noexcept(container_type(b)))
+-        : container_type(b)
+-        , m_subtype(subtype_)
+-        , m_has_subtype(true)
+-    {}
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype(container_type&& b, subtype_type subtype_) noexcept(noexcept(container_type(std::move(b))))
+-        : container_type(std::move(b))
+-        , m_subtype(subtype_)
+-        , m_has_subtype(true)
+-    {}
+-
+-    bool operator==(const byte_container_with_subtype& rhs) const
+-    {
+-        return std::tie(static_cast<const BinaryType&>(*this), m_subtype, m_has_subtype) ==
+-               std::tie(static_cast<const BinaryType&>(rhs), rhs.m_subtype, rhs.m_has_subtype);
+-    }
+-
+-    bool operator!=(const byte_container_with_subtype& rhs) const
+-    {
+-        return !(rhs == *this);
+-    }
+-
+-    /// @brief sets the binary subtype
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/set_subtype/
+-    void set_subtype(subtype_type subtype_) noexcept
+-    {
+-        m_subtype = subtype_;
+-        m_has_subtype = true;
+-    }
+-
+-    /// @brief return the binary subtype
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/subtype/
+-    constexpr subtype_type subtype() const noexcept
+-    {
+-        return m_has_subtype ? m_subtype : static_cast<subtype_type>(-1);
+-    }
+-
+-    /// @brief return whether the value has a subtype
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/has_subtype/
+-    constexpr bool has_subtype() const noexcept
+-    {
+-        return m_has_subtype;
+-    }
+-
+-    /// @brief clears the binary subtype
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/clear_subtype/
+-    void clear_subtype() noexcept
+-    {
+-        m_subtype = 0;
+-        m_has_subtype = false;
+-    }
+-
+-  private:
+-    subtype_type m_subtype = 0;
+-    bool m_has_subtype = false;
+-};
+-
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/conversions/from_json.hpp>
+-
+-// #include <nlohmann/detail/conversions/to_json.hpp>
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/hash.hpp>
+-
+-
+-#include <cstdint> // uint8_t
+-#include <cstddef> // size_t
+-#include <functional> // hash
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-// boost::hash_combine
+-inline std::size_t combine(std::size_t seed, std::size_t h) noexcept
+-{
+-    seed ^= h + 0x9e3779b9 + (seed << 6U) + (seed >> 2U);
+-    return seed;
+-}
+-
+-/*!
+-@brief hash a JSON value
+-
+-The hash function tries to rely on std::hash where possible. Furthermore, the
+-type of the JSON value is taken into account to have different hash values for
+-null, 0, 0U, and false, etc.
+-
+-@tparam BasicJsonType basic_json specialization
+-@param j JSON value to hash
+-@return hash value of j
+-*/
+-template<typename BasicJsonType>
+-std::size_t hash(const BasicJsonType& j)
+-{
+-    using string_t = typename BasicJsonType::string_t;
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-
+-    const auto type = static_cast<std::size_t>(j.type());
+-    switch (j.type())
+-    {
+-        case BasicJsonType::value_t::null:
+-        case BasicJsonType::value_t::discarded:
+-        {
+-            return combine(type, 0);
+-        }
+-
+-        case BasicJsonType::value_t::object:
+-        {
+-            auto seed = combine(type, j.size());
+-            for (const auto& element : j.items())
+-            {
+-                const auto h = std::hash<string_t> {}(element.key());
+-                seed = combine(seed, h);
+-                seed = combine(seed, hash(element.value()));
+-            }
+-            return seed;
+-        }
+-
+-        case BasicJsonType::value_t::array:
+-        {
+-            auto seed = combine(type, j.size());
+-            for (const auto& element : j)
+-            {
+-                seed = combine(seed, hash(element));
+-            }
+-            return seed;
+-        }
+-
+-        case BasicJsonType::value_t::string:
+-        {
+-            const auto h = std::hash<string_t> {}(j.template get_ref<const string_t&>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::boolean:
+-        {
+-            const auto h = std::hash<bool> {}(j.template get<bool>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::number_integer:
+-        {
+-            const auto h = std::hash<number_integer_t> {}(j.template get<number_integer_t>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::number_unsigned:
+-        {
+-            const auto h = std::hash<number_unsigned_t> {}(j.template get<number_unsigned_t>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::number_float:
+-        {
+-            const auto h = std::hash<number_float_t> {}(j.template get<number_float_t>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::binary:
+-        {
+-            auto seed = combine(type, j.get_binary().size());
+-            const auto h = std::hash<bool> {}(j.get_binary().has_subtype());
+-            seed = combine(seed, h);
+-            seed = combine(seed, static_cast<std::size_t>(j.get_binary().subtype()));
+-            for (const auto byte : j.get_binary())
+-            {
+-                seed = combine(seed, std::hash<std::uint8_t> {}(byte));
+-            }
+-            return seed;
+-        }
+-
+-        default:                   // LCOV_EXCL_LINE
+-            JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-            return 0;              // LCOV_EXCL_LINE
+-    }
+-}
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/binary_reader.hpp>
+-
+-
+-#include <algorithm> // generate_n
+-#include <array> // array
+-#include <cmath> // ldexp
+-#include <cstddef> // size_t
+-#include <cstdint> // uint8_t, uint16_t, uint32_t, uint64_t
+-#include <cstdio> // snprintf
+-#include <cstring> // memcpy
+-#include <iterator> // back_inserter
+-#include <limits> // numeric_limits
+-#include <string> // char_traits, string
+-#include <utility> // make_pair, move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/input/input_adapters.hpp>
+-
+-
+-#include <array> // array
+-#include <cstddef> // size_t
+-#include <cstring> // strlen
+-#include <iterator> // begin, end, iterator_traits, random_access_iterator_tag, distance, next
+-#include <memory> // shared_ptr, make_shared, addressof
+-#include <numeric> // accumulate
+-#include <string> // string, char_traits
+-#include <type_traits> // enable_if, is_base_of, is_pointer, is_integral, remove_pointer
+-#include <utility> // pair, declval
+-
+-#ifndef JSON_NO_IO
+-    #include <cstdio>   // FILE *
+-    #include <istream>  // istream
+-#endif                  // JSON_NO_IO
+-
+-// #include <nlohmann/detail/iterators/iterator_traits.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/// the supported input formats
+-enum class input_format_t { json, cbor, msgpack, ubjson, bson };
+-
+-////////////////////
+-// input adapters //
+-////////////////////
+-
+-#ifndef JSON_NO_IO
+-/*!
+-Input adapter for stdio file access. This adapter read only 1 byte and do not use any
+- buffer. This adapter is a very low level adapter.
+-*/
+-class file_input_adapter
+-{
+-  public:
+-    using char_type = char;
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    explicit file_input_adapter(std::FILE* f) noexcept
+-        : m_file(f)
+-    {}
+-
+-    // make class move-only
+-    file_input_adapter(const file_input_adapter&) = delete;
+-    file_input_adapter(file_input_adapter&&) noexcept = default;
+-    file_input_adapter& operator=(const file_input_adapter&) = delete;
+-    file_input_adapter& operator=(file_input_adapter&&) = delete;
+-    ~file_input_adapter() = default;
+-
+-    std::char_traits<char>::int_type get_character() noexcept
+-    {
+-        return std::fgetc(m_file);
+-    }
+-
+-  private:
+-    /// the file pointer to read from
+-    std::FILE* m_file;
+-};
+-
+-
+-/*!
+-Input adapter for a (caching) istream. Ignores a UFT Byte Order Mark at
+-beginning of input. Does not support changing the underlying std::streambuf
+-in mid-input. Maintains underlying std::istream and std::streambuf to support
+-subsequent use of standard std::istream operations to process any input
+-characters following those used in parsing the JSON input.  Clears the
+-std::istream flags; any input errors (e.g., EOF) will be detected by the first
+-subsequent call for input from the std::istream.
+-*/
+-class input_stream_adapter
+-{
+-  public:
+-    using char_type = char;
+-
+-    ~input_stream_adapter()
+-    {
+-        // clear stream flags; we use underlying streambuf I/O, do not
+-        // maintain ifstream flags, except eof
+-        if (is != nullptr)
+-        {
+-            is->clear(is->rdstate() & std::ios::eofbit);
+-        }
+-    }
+-
+-    explicit input_stream_adapter(std::istream& i)
+-        : is(&i), sb(i.rdbuf())
+-    {}
+-
+-    // delete because of pointer members
+-    input_stream_adapter(const input_stream_adapter&) = delete;
+-    input_stream_adapter& operator=(input_stream_adapter&) = delete;
+-    input_stream_adapter& operator=(input_stream_adapter&&) = delete;
+-
+-    input_stream_adapter(input_stream_adapter&& rhs) noexcept
+-        : is(rhs.is), sb(rhs.sb)
+-    {
+-        rhs.is = nullptr;
+-        rhs.sb = nullptr;
+-    }
+-
+-    // std::istream/std::streambuf use std::char_traits<char>::to_int_type, to
+-    // ensure that std::char_traits<char>::eof() and the character 0xFF do not
+-    // end up as the same value, e.g. 0xFFFFFFFF.
+-    std::char_traits<char>::int_type get_character()
+-    {
+-        auto res = sb->sbumpc();
+-        // set eof manually, as we don't use the istream interface.
+-        if (JSON_HEDLEY_UNLIKELY(res == std::char_traits<char>::eof()))
+-        {
+-            is->clear(is->rdstate() | std::ios::eofbit);
+-        }
+-        return res;
+-    }
+-
+-  private:
+-    /// the associated input stream
+-    std::istream* is = nullptr;
+-    std::streambuf* sb = nullptr;
+-};
+-#endif  // JSON_NO_IO
+-
+-// General-purpose iterator-based adapter. It might not be as fast as
+-// theoretically possible for some containers, but it is extremely versatile.
+-template<typename IteratorType>
+-class iterator_input_adapter
+-{
+-  public:
+-    using char_type = typename std::iterator_traits<IteratorType>::value_type;
+-
+-    iterator_input_adapter(IteratorType first, IteratorType last)
+-        : current(std::move(first)), end(std::move(last))
+-    {}
+-
+-    typename std::char_traits<char_type>::int_type get_character()
+-    {
+-        if (JSON_HEDLEY_LIKELY(current != end))
+-        {
+-            auto result = std::char_traits<char_type>::to_int_type(*current);
+-            std::advance(current, 1);
+-            return result;
+-        }
+-
+-        return std::char_traits<char_type>::eof();
+-    }
+-
+-  private:
+-    IteratorType current;
+-    IteratorType end;
+-
+-    template<typename BaseInputAdapter, size_t T>
+-    friend struct wide_string_input_helper;
+-
+-    bool empty() const
+-    {
+-        return current == end;
+-    }
+-};
+-
+-
+-template<typename BaseInputAdapter, size_t T>
+-struct wide_string_input_helper;
+-
+-template<typename BaseInputAdapter>
+-struct wide_string_input_helper<BaseInputAdapter, 4>
+-{
+-    // UTF-32
+-    static void fill_buffer(BaseInputAdapter& input,
+-                            std::array<std::char_traits<char>::int_type, 4>& utf8_bytes,
+-                            size_t& utf8_bytes_index,
+-                            size_t& utf8_bytes_filled)
+-    {
+-        utf8_bytes_index = 0;
+-
+-        if (JSON_HEDLEY_UNLIKELY(input.empty()))
+-        {
+-            utf8_bytes[0] = std::char_traits<char>::eof();
+-            utf8_bytes_filled = 1;
+-        }
+-        else
+-        {
+-            // get the current character
+-            const auto wc = input.get_character();
+-
+-            // UTF-32 to UTF-8 encoding
+-            if (wc < 0x80)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(wc);
+-                utf8_bytes_filled = 1;
+-            }
+-            else if (wc <= 0x7FF)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xC0u | ((static_cast<unsigned int>(wc) >> 6u) & 0x1Fu));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 2;
+-            }
+-            else if (wc <= 0xFFFF)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xE0u | ((static_cast<unsigned int>(wc) >> 12u) & 0x0Fu));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | ((static_cast<unsigned int>(wc) >> 6u) & 0x3Fu));
+-                utf8_bytes[2] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 3;
+-            }
+-            else if (wc <= 0x10FFFF)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xF0u | ((static_cast<unsigned int>(wc) >> 18u) & 0x07u));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | ((static_cast<unsigned int>(wc) >> 12u) & 0x3Fu));
+-                utf8_bytes[2] = static_cast<std::char_traits<char>::int_type>(0x80u | ((static_cast<unsigned int>(wc) >> 6u) & 0x3Fu));
+-                utf8_bytes[3] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 4;
+-            }
+-            else
+-            {
+-                // unknown character
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(wc);
+-                utf8_bytes_filled = 1;
+-            }
+-        }
+-    }
+-};
+-
+-template<typename BaseInputAdapter>
+-struct wide_string_input_helper<BaseInputAdapter, 2>
+-{
+-    // UTF-16
+-    static void fill_buffer(BaseInputAdapter& input,
+-                            std::array<std::char_traits<char>::int_type, 4>& utf8_bytes,
+-                            size_t& utf8_bytes_index,
+-                            size_t& utf8_bytes_filled)
+-    {
+-        utf8_bytes_index = 0;
+-
+-        if (JSON_HEDLEY_UNLIKELY(input.empty()))
+-        {
+-            utf8_bytes[0] = std::char_traits<char>::eof();
+-            utf8_bytes_filled = 1;
+-        }
+-        else
+-        {
+-            // get the current character
+-            const auto wc = input.get_character();
+-
+-            // UTF-16 to UTF-8 encoding
+-            if (wc < 0x80)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(wc);
+-                utf8_bytes_filled = 1;
+-            }
+-            else if (wc <= 0x7FF)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xC0u | ((static_cast<unsigned int>(wc) >> 6u)));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 2;
+-            }
+-            else if (0xD800 > wc || wc >= 0xE000)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xE0u | ((static_cast<unsigned int>(wc) >> 12u)));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | ((static_cast<unsigned int>(wc) >> 6u) & 0x3Fu));
+-                utf8_bytes[2] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 3;
+-            }
+-            else
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!input.empty()))
+-                {
+-                    const auto wc2 = static_cast<unsigned int>(input.get_character());
+-                    const auto charcode = 0x10000u + (((static_cast<unsigned int>(wc) & 0x3FFu) << 10u) | (wc2 & 0x3FFu));
+-                    utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xF0u | (charcode >> 18u));
+-                    utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | ((charcode >> 12u) & 0x3Fu));
+-                    utf8_bytes[2] = static_cast<std::char_traits<char>::int_type>(0x80u | ((charcode >> 6u) & 0x3Fu));
+-                    utf8_bytes[3] = static_cast<std::char_traits<char>::int_type>(0x80u | (charcode & 0x3Fu));
+-                    utf8_bytes_filled = 4;
+-                }
+-                else
+-                {
+-                    utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(wc);
+-                    utf8_bytes_filled = 1;
+-                }
+-            }
+-        }
+-    }
+-};
+-
+-// Wraps another input apdater to convert wide character types into individual bytes.
+-template<typename BaseInputAdapter, typename WideCharType>
+-class wide_string_input_adapter
+-{
+-  public:
+-    using char_type = char;
+-
+-    wide_string_input_adapter(BaseInputAdapter base)
+-        : base_adapter(base) {}
+-
+-    typename std::char_traits<char>::int_type get_character() noexcept
+-    {
+-        // check if buffer needs to be filled
+-        if (utf8_bytes_index == utf8_bytes_filled)
+-        {
+-            fill_buffer<sizeof(WideCharType)>();
+-
+-            JSON_ASSERT(utf8_bytes_filled > 0);
+-            JSON_ASSERT(utf8_bytes_index == 0);
+-        }
+-
+-        // use buffer
+-        JSON_ASSERT(utf8_bytes_filled > 0);
+-        JSON_ASSERT(utf8_bytes_index < utf8_bytes_filled);
+-        return utf8_bytes[utf8_bytes_index++];
+-    }
+-
+-  private:
+-    BaseInputAdapter base_adapter;
+-
+-    template<size_t T>
+-    void fill_buffer()
+-    {
+-        wide_string_input_helper<BaseInputAdapter, T>::fill_buffer(base_adapter, utf8_bytes, utf8_bytes_index, utf8_bytes_filled);
+-    }
+-
+-    /// a buffer for UTF-8 bytes
+-    std::array<std::char_traits<char>::int_type, 4> utf8_bytes = {{0, 0, 0, 0}};
+-
+-    /// index to the utf8_codes array for the next valid byte
+-    std::size_t utf8_bytes_index = 0;
+-    /// number of valid bytes in the utf8_codes array
+-    std::size_t utf8_bytes_filled = 0;
+-};
+-
+-
+-template<typename IteratorType, typename Enable = void>
+-struct iterator_input_adapter_factory
+-{
+-    using iterator_type = IteratorType;
+-    using char_type = typename std::iterator_traits<iterator_type>::value_type;
+-    using adapter_type = iterator_input_adapter<iterator_type>;
+-
+-    static adapter_type create(IteratorType first, IteratorType last)
+-    {
+-        return adapter_type(std::move(first), std::move(last));
+-    }
+-};
+-
+-template<typename T>
+-struct is_iterator_of_multibyte
+-{
+-    using value_type = typename std::iterator_traits<T>::value_type;
+-    enum
+-    {
+-        value = sizeof(value_type) > 1
+-    };
+-};
+-
+-template<typename IteratorType>
+-struct iterator_input_adapter_factory<IteratorType, enable_if_t<is_iterator_of_multibyte<IteratorType>::value>>
+-{
+-    using iterator_type = IteratorType;
+-    using char_type = typename std::iterator_traits<iterator_type>::value_type;
+-    using base_adapter_type = iterator_input_adapter<iterator_type>;
+-    using adapter_type = wide_string_input_adapter<base_adapter_type, char_type>;
+-
+-    static adapter_type create(IteratorType first, IteratorType last)
+-    {
+-        return adapter_type(base_adapter_type(std::move(first), std::move(last)));
+-    }
+-};
+-
+-// General purpose iterator-based input
+-template<typename IteratorType>
+-typename iterator_input_adapter_factory<IteratorType>::adapter_type input_adapter(IteratorType first, IteratorType last)
+-{
+-    using factory_type = iterator_input_adapter_factory<IteratorType>;
+-    return factory_type::create(first, last);
+-}
+-
+-// Convenience shorthand from container to iterator
+-// Enables ADL on begin(container) and end(container)
+-// Encloses the using declarations in namespace for not to leak them to outside scope
+-
+-namespace container_input_adapter_factory_impl
+-{
+-
+-using std::begin;
+-using std::end;
+-
+-template<typename ContainerType, typename Enable = void>
+-struct container_input_adapter_factory {};
+-
+-template<typename ContainerType>
+-struct container_input_adapter_factory< ContainerType,
+-       void_t<decltype(begin(std::declval<ContainerType>()), end(std::declval<ContainerType>()))>>
+-       {
+-           using adapter_type = decltype(input_adapter(begin(std::declval<ContainerType>()), end(std::declval<ContainerType>())));
+-
+-           static adapter_type create(const ContainerType& container)
+-{
+-    return input_adapter(begin(container), end(container));
+-}
+-       };
+-
+-} // namespace container_input_adapter_factory_impl
+-
+-template<typename ContainerType>
+-typename container_input_adapter_factory_impl::container_input_adapter_factory<ContainerType>::adapter_type input_adapter(const ContainerType& container)
+-{
+-    return container_input_adapter_factory_impl::container_input_adapter_factory<ContainerType>::create(container);
+-}
+-
+-#ifndef JSON_NO_IO
+-// Special cases with fast paths
+-inline file_input_adapter input_adapter(std::FILE* file)
+-{
+-    return file_input_adapter(file);
+-}
+-
+-inline input_stream_adapter input_adapter(std::istream& stream)
+-{
+-    return input_stream_adapter(stream);
+-}
+-
+-inline input_stream_adapter input_adapter(std::istream&& stream)
+-{
+-    return input_stream_adapter(stream);
+-}
+-#endif  // JSON_NO_IO
+-
+-using contiguous_bytes_input_adapter = decltype(input_adapter(std::declval<const char*>(), std::declval<const char*>()));
+-
+-// Null-delimited strings, and the like.
+-template < typename CharT,
+-           typename std::enable_if <
+-               std::is_pointer<CharT>::value&&
+-               !std::is_array<CharT>::value&&
+-               std::is_integral<typename std::remove_pointer<CharT>::type>::value&&
+-               sizeof(typename std::remove_pointer<CharT>::type) == 1,
+-               int >::type = 0 >
+-contiguous_bytes_input_adapter input_adapter(CharT b)
+-{
+-    auto length = std::strlen(reinterpret_cast<const char*>(b));
+-    const auto* ptr = reinterpret_cast<const char*>(b);
+-    return input_adapter(ptr, ptr + length);
+-}
+-
+-template<typename T, std::size_t N>
+-auto input_adapter(T (&array)[N]) -> decltype(input_adapter(array, array + N)) // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-{
+-    return input_adapter(array, array + N);
+-}
+-
+-// This class only handles inputs of input_buffer_adapter type.
+-// It's required so that expressions like {ptr, len} can be implicitly cast
+-// to the correct adapter.
+-class span_input_adapter
+-{
+-  public:
+-    template < typename CharT,
+-               typename std::enable_if <
+-                   std::is_pointer<CharT>::value&&
+-                   std::is_integral<typename std::remove_pointer<CharT>::type>::value&&
+-                   sizeof(typename std::remove_pointer<CharT>::type) == 1,
+-                   int >::type = 0 >
+-    span_input_adapter(CharT b, std::size_t l)
+-        : ia(reinterpret_cast<const char*>(b), reinterpret_cast<const char*>(b) + l) {}
+-
+-    template<class IteratorType,
+-             typename std::enable_if<
+-                 std::is_same<typename iterator_traits<IteratorType>::iterator_category, std::random_access_iterator_tag>::value,
+-                 int>::type = 0>
+-    span_input_adapter(IteratorType first, IteratorType last)
+-        : ia(input_adapter(first, last)) {}
+-
+-    contiguous_bytes_input_adapter&& get()
+-    {
+-        return std::move(ia); // NOLINT(hicpp-move-const-arg,performance-move-const-arg)
+-    }
+-
+-  private:
+-    contiguous_bytes_input_adapter ia;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/json_sax.hpp>
+-
+-
+-#include <cstddef>
+-#include <string> // string
+-#include <utility> // move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-
+-/*!
+-@brief SAX interface
+-
+-This class describes the SAX interface used by @ref nlohmann::json::sax_parse.
+-Each function is called in different situations while the input is parsed. The
+-boolean return value informs the parser whether to continue processing the
+-input.
+-*/
+-template<typename BasicJsonType>
+-struct json_sax
+-{
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-
+-    /*!
+-    @brief a null value was read
+-    @return whether parsing should proceed
+-    */
+-    virtual bool null() = 0;
+-
+-    /*!
+-    @brief a boolean value was read
+-    @param[in] val  boolean value
+-    @return whether parsing should proceed
+-    */
+-    virtual bool boolean(bool val) = 0;
+-
+-    /*!
+-    @brief an integer number was read
+-    @param[in] val  integer value
+-    @return whether parsing should proceed
+-    */
+-    virtual bool number_integer(number_integer_t val) = 0;
+-
+-    /*!
+-    @brief an unsigned integer number was read
+-    @param[in] val  unsigned integer value
+-    @return whether parsing should proceed
+-    */
+-    virtual bool number_unsigned(number_unsigned_t val) = 0;
+-
+-    /*!
+-    @brief a floating-point number was read
+-    @param[in] val  floating-point value
+-    @param[in] s    raw token value
+-    @return whether parsing should proceed
+-    */
+-    virtual bool number_float(number_float_t val, const string_t& s) = 0;
+-
+-    /*!
+-    @brief a string value was read
+-    @param[in] val  string value
+-    @return whether parsing should proceed
+-    @note It is safe to move the passed string value.
+-    */
+-    virtual bool string(string_t& val) = 0;
+-
+-    /*!
+-    @brief a binary value was read
+-    @param[in] val  binary value
+-    @return whether parsing should proceed
+-    @note It is safe to move the passed binary value.
+-    */
+-    virtual bool binary(binary_t& val) = 0;
+-
+-    /*!
+-    @brief the beginning of an object was read
+-    @param[in] elements  number of object elements or -1 if unknown
+-    @return whether parsing should proceed
+-    @note binary formats may report the number of elements
+-    */
+-    virtual bool start_object(std::size_t elements) = 0;
+-
+-    /*!
+-    @brief an object key was read
+-    @param[in] val  object key
+-    @return whether parsing should proceed
+-    @note It is safe to move the passed string.
+-    */
+-    virtual bool key(string_t& val) = 0;
+-
+-    /*!
+-    @brief the end of an object was read
+-    @return whether parsing should proceed
+-    */
+-    virtual bool end_object() = 0;
+-
+-    /*!
+-    @brief the beginning of an array was read
+-    @param[in] elements  number of array elements or -1 if unknown
+-    @return whether parsing should proceed
+-    @note binary formats may report the number of elements
+-    */
+-    virtual bool start_array(std::size_t elements) = 0;
+-
+-    /*!
+-    @brief the end of an array was read
+-    @return whether parsing should proceed
+-    */
+-    virtual bool end_array() = 0;
+-
+-    /*!
+-    @brief a parse error occurred
+-    @param[in] position    the position in the input where the error occurs
+-    @param[in] last_token  the last read token
+-    @param[in] ex          an exception object describing the error
+-    @return whether parsing should proceed (must return false)
+-    */
+-    virtual bool parse_error(std::size_t position,
+-                             const std::string& last_token,
+-                             const detail::exception& ex) = 0;
+-
+-    json_sax() = default;
+-    json_sax(const json_sax&) = default;
+-    json_sax(json_sax&&) noexcept = default;
+-    json_sax& operator=(const json_sax&) = default;
+-    json_sax& operator=(json_sax&&) noexcept = default;
+-    virtual ~json_sax() = default;
+-};
+-
+-
+-namespace detail
+-{
+-/*!
+-@brief SAX implementation to create a JSON value from SAX events
+-
+-This class implements the @ref json_sax interface and processes the SAX events
+-to create a JSON value which makes it basically a DOM parser. The structure or
+-hierarchy of the JSON value is managed by the stack `ref_stack` which contains
+-a pointer to the respective array or object for each recursion depth.
+-
+-After successful parsing, the value that is passed by reference to the
+-constructor contains the parsed value.
+-
+-@tparam BasicJsonType  the JSON type
+-*/
+-template<typename BasicJsonType>
+-class json_sax_dom_parser
+-{
+-  public:
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-
+-    /*!
+-    @param[in,out] r  reference to a JSON value that is manipulated while
+-                       parsing
+-    @param[in] allow_exceptions_  whether parse errors yield exceptions
+-    */
+-    explicit json_sax_dom_parser(BasicJsonType& r, const bool allow_exceptions_ = true)
+-        : root(r), allow_exceptions(allow_exceptions_)
+-    {}
+-
+-    // make class move-only
+-    json_sax_dom_parser(const json_sax_dom_parser&) = delete;
+-    json_sax_dom_parser(json_sax_dom_parser&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    json_sax_dom_parser& operator=(const json_sax_dom_parser&) = delete;
+-    json_sax_dom_parser& operator=(json_sax_dom_parser&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    ~json_sax_dom_parser() = default;
+-
+-    bool null()
+-    {
+-        handle_value(nullptr);
+-        return true;
+-    }
+-
+-    bool boolean(bool val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_integer(number_integer_t val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_unsigned(number_unsigned_t val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_float(number_float_t val, const string_t& /*unused*/)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool string(string_t& val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool binary(binary_t& val)
+-    {
+-        handle_value(std::move(val));
+-        return true;
+-    }
+-
+-    bool start_object(std::size_t len)
+-    {
+-        ref_stack.push_back(handle_value(BasicJsonType::value_t::object));
+-
+-        if (JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
+-        {
+-            JSON_THROW(out_of_range::create(408, "excessive object size: " + std::to_string(len), *ref_stack.back()));
+-        }
+-
+-        return true;
+-    }
+-
+-    bool key(string_t& val)
+-    {
+-        // add null at given key and store the reference for later
+-        object_element = &(ref_stack.back()->m_value.object->operator[](val));
+-        return true;
+-    }
+-
+-    bool end_object()
+-    {
+-        ref_stack.back()->set_parents();
+-        ref_stack.pop_back();
+-        return true;
+-    }
+-
+-    bool start_array(std::size_t len)
+-    {
+-        ref_stack.push_back(handle_value(BasicJsonType::value_t::array));
+-
+-        if (JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
+-        {
+-            JSON_THROW(out_of_range::create(408, "excessive array size: " + std::to_string(len), *ref_stack.back()));
+-        }
+-
+-        return true;
+-    }
+-
+-    bool end_array()
+-    {
+-        ref_stack.back()->set_parents();
+-        ref_stack.pop_back();
+-        return true;
+-    }
+-
+-    template<class Exception>
+-    bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/,
+-                     const Exception& ex)
+-    {
+-        errored = true;
+-        static_cast<void>(ex);
+-        if (allow_exceptions)
+-        {
+-            JSON_THROW(ex);
+-        }
+-        return false;
+-    }
+-
+-    constexpr bool is_errored() const
+-    {
+-        return errored;
+-    }
+-
+-  private:
+-    /*!
+-    @invariant If the ref stack is empty, then the passed value will be the new
+-               root.
+-    @invariant If the ref stack contains a value, then it is an array or an
+-               object to which we can add elements
+-    */
+-    template<typename Value>
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    BasicJsonType* handle_value(Value&& v)
+-    {
+-        if (ref_stack.empty())
+-        {
+-            root = BasicJsonType(std::forward<Value>(v));
+-            return &root;
+-        }
+-
+-        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
+-
+-        if (ref_stack.back()->is_array())
+-        {
+-            ref_stack.back()->m_value.array->emplace_back(std::forward<Value>(v));
+-            return &(ref_stack.back()->m_value.array->back());
+-        }
+-
+-        JSON_ASSERT(ref_stack.back()->is_object());
+-        JSON_ASSERT(object_element);
+-        *object_element = BasicJsonType(std::forward<Value>(v));
+-        return object_element;
+-    }
+-
+-    /// the parsed JSON value
+-    BasicJsonType& root;
+-    /// stack to model hierarchy of values
+-    std::vector<BasicJsonType*> ref_stack {};
+-    /// helper to hold the reference for the next object element
+-    BasicJsonType* object_element = nullptr;
+-    /// whether a syntax error occurred
+-    bool errored = false;
+-    /// whether to throw exceptions in case of errors
+-    const bool allow_exceptions = true;
+-};
+-
+-template<typename BasicJsonType>
+-class json_sax_dom_callback_parser
+-{
+-  public:
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using parser_callback_t = typename BasicJsonType::parser_callback_t;
+-    using parse_event_t = typename BasicJsonType::parse_event_t;
+-
+-    json_sax_dom_callback_parser(BasicJsonType& r,
+-                                 const parser_callback_t cb,
+-                                 const bool allow_exceptions_ = true)
+-        : root(r), callback(cb), allow_exceptions(allow_exceptions_)
+-    {
+-        keep_stack.push_back(true);
+-    }
+-
+-    // make class move-only
+-    json_sax_dom_callback_parser(const json_sax_dom_callback_parser&) = delete;
+-    json_sax_dom_callback_parser(json_sax_dom_callback_parser&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    json_sax_dom_callback_parser& operator=(const json_sax_dom_callback_parser&) = delete;
+-    json_sax_dom_callback_parser& operator=(json_sax_dom_callback_parser&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    ~json_sax_dom_callback_parser() = default;
+-
+-    bool null()
+-    {
+-        handle_value(nullptr);
+-        return true;
+-    }
+-
+-    bool boolean(bool val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_integer(number_integer_t val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_unsigned(number_unsigned_t val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_float(number_float_t val, const string_t& /*unused*/)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool string(string_t& val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool binary(binary_t& val)
+-    {
+-        handle_value(std::move(val));
+-        return true;
+-    }
+-
+-    bool start_object(std::size_t len)
+-    {
+-        // check callback for object start
+-        const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::object_start, discarded);
+-        keep_stack.push_back(keep);
+-
+-        auto val = handle_value(BasicJsonType::value_t::object, true);
+-        ref_stack.push_back(val.second);
+-
+-        // check object limit
+-        if (ref_stack.back() && JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
+-        {
+-            JSON_THROW(out_of_range::create(408, "excessive object size: " + std::to_string(len), *ref_stack.back()));
+-        }
+-
+-        return true;
+-    }
+-
+-    bool key(string_t& val)
+-    {
+-        BasicJsonType k = BasicJsonType(val);
+-
+-        // check callback for key
+-        const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::key, k);
+-        key_keep_stack.push_back(keep);
+-
+-        // add discarded value at given key and store the reference for later
+-        if (keep && ref_stack.back())
+-        {
+-            object_element = &(ref_stack.back()->m_value.object->operator[](val) = discarded);
+-        }
+-
+-        return true;
+-    }
+-
+-    bool end_object()
+-    {
+-        if (ref_stack.back())
+-        {
+-            if (!callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back()))
+-            {
+-                // discard object
+-                *ref_stack.back() = discarded;
+-            }
+-            else
+-            {
+-                ref_stack.back()->set_parents();
+-            }
+-        }
+-
+-        JSON_ASSERT(!ref_stack.empty());
+-        JSON_ASSERT(!keep_stack.empty());
+-        ref_stack.pop_back();
+-        keep_stack.pop_back();
+-
+-        if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured())
+-        {
+-            // remove discarded value
+-            for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it)
+-            {
+-                if (it->is_discarded())
+-                {
+-                    ref_stack.back()->erase(it);
+-                    break;
+-                }
+-            }
+-        }
+-
+-        return true;
+-    }
+-
+-    bool start_array(std::size_t len)
+-    {
+-        const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::array_start, discarded);
+-        keep_stack.push_back(keep);
+-
+-        auto val = handle_value(BasicJsonType::value_t::array, true);
+-        ref_stack.push_back(val.second);
+-
+-        // check array limit
+-        if (ref_stack.back() && JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
+-        {
+-            JSON_THROW(out_of_range::create(408, "excessive array size: " + std::to_string(len), *ref_stack.back()));
+-        }
+-
+-        return true;
+-    }
+-
+-    bool end_array()
+-    {
+-        bool keep = true;
+-
+-        if (ref_stack.back())
+-        {
+-            keep = callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::array_end, *ref_stack.back());
+-            if (keep)
+-            {
+-                ref_stack.back()->set_parents();
+-            }
+-            else
+-            {
+-                // discard array
+-                *ref_stack.back() = discarded;
+-            }
+-        }
+-
+-        JSON_ASSERT(!ref_stack.empty());
+-        JSON_ASSERT(!keep_stack.empty());
+-        ref_stack.pop_back();
+-        keep_stack.pop_back();
+-
+-        // remove discarded value
+-        if (!keep && !ref_stack.empty() && ref_stack.back()->is_array())
+-        {
+-            ref_stack.back()->m_value.array->pop_back();
+-        }
+-
+-        return true;
+-    }
+-
+-    template<class Exception>
+-    bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/,
+-                     const Exception& ex)
+-    {
+-        errored = true;
+-        static_cast<void>(ex);
+-        if (allow_exceptions)
+-        {
+-            JSON_THROW(ex);
+-        }
+-        return false;
+-    }
+-
+-    constexpr bool is_errored() const
+-    {
+-        return errored;
+-    }
+-
+-  private:
+-    /*!
+-    @param[in] v  value to add to the JSON value we build during parsing
+-    @param[in] skip_callback  whether we should skip calling the callback
+-               function; this is required after start_array() and
+-               start_object() SAX events, because otherwise we would call the
+-               callback function with an empty array or object, respectively.
+-
+-    @invariant If the ref stack is empty, then the passed value will be the new
+-               root.
+-    @invariant If the ref stack contains a value, then it is an array or an
+-               object to which we can add elements
+-
+-    @return pair of boolean (whether value should be kept) and pointer (to the
+-            passed value in the ref_stack hierarchy; nullptr if not kept)
+-    */
+-    template<typename Value>
+-    std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
+-    {
+-        JSON_ASSERT(!keep_stack.empty());
+-
+-        // do not handle this value if we know it would be added to a discarded
+-        // container
+-        if (!keep_stack.back())
+-        {
+-            return {false, nullptr};
+-        }
+-
+-        // create value
+-        auto value = BasicJsonType(std::forward<Value>(v));
+-
+-        // check callback
+-        const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
+-
+-        // do not handle this value if we just learnt it shall be discarded
+-        if (!keep)
+-        {
+-            return {false, nullptr};
+-        }
+-
+-        if (ref_stack.empty())
+-        {
+-            root = std::move(value);
+-            return {true, &root};
+-        }
+-
+-        // skip this value if we already decided to skip the parent
+-        // (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
+-        if (!ref_stack.back())
+-        {
+-            return {false, nullptr};
+-        }
+-
+-        // we now only expect arrays and objects
+-        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
+-
+-        // array
+-        if (ref_stack.back()->is_array())
+-        {
+-            ref_stack.back()->m_value.array->emplace_back(std::move(value));
+-            return {true, &(ref_stack.back()->m_value.array->back())};
+-        }
+-
+-        // object
+-        JSON_ASSERT(ref_stack.back()->is_object());
+-        // check if we should store an element for the current key
+-        JSON_ASSERT(!key_keep_stack.empty());
+-        const bool store_element = key_keep_stack.back();
+-        key_keep_stack.pop_back();
+-
+-        if (!store_element)
+-        {
+-            return {false, nullptr};
+-        }
+-
+-        JSON_ASSERT(object_element);
+-        *object_element = std::move(value);
+-        return {true, object_element};
+-    }
+-
+-    /// the parsed JSON value
+-    BasicJsonType& root;
+-    /// stack to model hierarchy of values
+-    std::vector<BasicJsonType*> ref_stack {};
+-    /// stack to manage which values to keep
+-    std::vector<bool> keep_stack {};
+-    /// stack to manage which object keys to keep
+-    std::vector<bool> key_keep_stack {};
+-    /// helper to hold the reference for the next object element
+-    BasicJsonType* object_element = nullptr;
+-    /// whether a syntax error occurred
+-    bool errored = false;
+-    /// callback function
+-    const parser_callback_t callback = nullptr;
+-    /// whether to throw exceptions in case of errors
+-    const bool allow_exceptions = true;
+-    /// a discarded value for the callback
+-    BasicJsonType discarded = BasicJsonType::value_t::discarded;
+-};
+-
+-template<typename BasicJsonType>
+-class json_sax_acceptor
+-{
+-  public:
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-
+-    bool null()
+-    {
+-        return true;
+-    }
+-
+-    bool boolean(bool /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool number_integer(number_integer_t /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool number_unsigned(number_unsigned_t /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool number_float(number_float_t /*unused*/, const string_t& /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool string(string_t& /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool binary(binary_t& /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool start_object(std::size_t /*unused*/ = static_cast<std::size_t>(-1))
+-    {
+-        return true;
+-    }
+-
+-    bool key(string_t& /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool end_object()
+-    {
+-        return true;
+-    }
+-
+-    bool start_array(std::size_t /*unused*/ = static_cast<std::size_t>(-1))
+-    {
+-        return true;
+-    }
+-
+-    bool end_array()
+-    {
+-        return true;
+-    }
+-
+-    bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, const detail::exception& /*unused*/)
+-    {
+-        return false;
+-    }
+-};
+-}  // namespace detail
+-
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/lexer.hpp>
+-
+-
+-#include <array> // array
+-#include <clocale> // localeconv
+-#include <cstddef> // size_t
+-#include <cstdio> // snprintf
+-#include <cstdlib> // strtof, strtod, strtold, strtoll, strtoull
+-#include <initializer_list> // initializer_list
+-#include <string> // char_traits, string
+-#include <utility> // move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/input/input_adapters.hpp>
+-
+-// #include <nlohmann/detail/input/position_t.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-///////////
+-// lexer //
+-///////////
+-
+-template<typename BasicJsonType>
+-class lexer_base
+-{
+-  public:
+-    /// token types for the parser
+-    enum class token_type
+-    {
+-        uninitialized,    ///< indicating the scanner is uninitialized
+-        literal_true,     ///< the `true` literal
+-        literal_false,    ///< the `false` literal
+-        literal_null,     ///< the `null` literal
+-        value_string,     ///< a string -- use get_string() for actual value
+-        value_unsigned,   ///< an unsigned integer -- use get_number_unsigned() for actual value
+-        value_integer,    ///< a signed integer -- use get_number_integer() for actual value
+-        value_float,      ///< an floating point number -- use get_number_float() for actual value
+-        begin_array,      ///< the character for array begin `[`
+-        begin_object,     ///< the character for object begin `{`
+-        end_array,        ///< the character for array end `]`
+-        end_object,       ///< the character for object end `}`
+-        name_separator,   ///< the name separator `:`
+-        value_separator,  ///< the value separator `,`
+-        parse_error,      ///< indicating a parse error
+-        end_of_input,     ///< indicating the end of the input buffer
+-        literal_or_value  ///< a literal or the begin of a value (only for diagnostics)
+-    };
+-
+-    /// return name of values of type token_type (only used for errors)
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    JSON_HEDLEY_CONST
+-    static const char* token_type_name(const token_type t) noexcept
+-    {
+-        switch (t)
+-        {
+-            case token_type::uninitialized:
+-                return "<uninitialized>";
+-            case token_type::literal_true:
+-                return "true literal";
+-            case token_type::literal_false:
+-                return "false literal";
+-            case token_type::literal_null:
+-                return "null literal";
+-            case token_type::value_string:
+-                return "string literal";
+-            case token_type::value_unsigned:
+-            case token_type::value_integer:
+-            case token_type::value_float:
+-                return "number literal";
+-            case token_type::begin_array:
+-                return "'['";
+-            case token_type::begin_object:
+-                return "'{'";
+-            case token_type::end_array:
+-                return "']'";
+-            case token_type::end_object:
+-                return "'}'";
+-            case token_type::name_separator:
+-                return "':'";
+-            case token_type::value_separator:
+-                return "','";
+-            case token_type::parse_error:
+-                return "<parse error>";
+-            case token_type::end_of_input:
+-                return "end of input";
+-            case token_type::literal_or_value:
+-                return "'[', '{', or a literal";
+-            // LCOV_EXCL_START
+-            default: // catch non-enum values
+-                return "unknown token";
+-                // LCOV_EXCL_STOP
+-        }
+-    }
+-};
+-/*!
+-@brief lexical analysis
+-
+-This class organizes the lexical analysis during JSON deserialization.
+-*/
+-template<typename BasicJsonType, typename InputAdapterType>
+-class lexer : public lexer_base<BasicJsonType>
+-{
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using char_type = typename InputAdapterType::char_type;
+-    using char_int_type = typename std::char_traits<char_type>::int_type;
+-
+-  public:
+-    using token_type = typename lexer_base<BasicJsonType>::token_type;
+-
+-    explicit lexer(InputAdapterType&& adapter, bool ignore_comments_ = false) noexcept
+-        : ia(std::move(adapter))
+-        , ignore_comments(ignore_comments_)
+-        , decimal_point_char(static_cast<char_int_type>(get_decimal_point()))
+-    {}
+-
+-    // delete because of pointer members
+-    lexer(const lexer&) = delete;
+-    lexer(lexer&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    lexer& operator=(lexer&) = delete;
+-    lexer& operator=(lexer&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    ~lexer() = default;
+-
+-  private:
+-    /////////////////////
+-    // locales
+-    /////////////////////
+-
+-    /// return the locale-dependent decimal point
+-    JSON_HEDLEY_PURE
+-    static char get_decimal_point() noexcept
+-    {
+-        const auto* loc = localeconv();
+-        JSON_ASSERT(loc != nullptr);
+-        return (loc->decimal_point == nullptr) ? '.' : *(loc->decimal_point);
+-    }
+-
+-    /////////////////////
+-    // scan functions
+-    /////////////////////
+-
+-    /*!
+-    @brief get codepoint from 4 hex characters following `\u`
+-
+-    For input "\u c1 c2 c3 c4" the codepoint is:
+-      (c1 * 0x1000) + (c2 * 0x0100) + (c3 * 0x0010) + c4
+-    = (c1 << 12) + (c2 << 8) + (c3 << 4) + (c4 << 0)
+-
+-    Furthermore, the possible characters '0'..'9', 'A'..'F', and 'a'..'f'
+-    must be converted to the integers 0x0..0x9, 0xA..0xF, 0xA..0xF, resp. The
+-    conversion is done by subtracting the offset (0x30, 0x37, and 0x57)
+-    between the ASCII value of the character and the desired integer value.
+-
+-    @return codepoint (0x0000..0xFFFF) or -1 in case of an error (e.g. EOF or
+-            non-hex character)
+-    */
+-    int get_codepoint()
+-    {
+-        // this function only makes sense after reading `\u`
+-        JSON_ASSERT(current == 'u');
+-        int codepoint = 0;
+-
+-        const auto factors = { 12u, 8u, 4u, 0u };
+-        for (const auto factor : factors)
+-        {
+-            get();
+-
+-            if (current >= '0' && current <= '9')
+-            {
+-                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x30u) << factor);
+-            }
+-            else if (current >= 'A' && current <= 'F')
+-            {
+-                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x37u) << factor);
+-            }
+-            else if (current >= 'a' && current <= 'f')
+-            {
+-                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x57u) << factor);
+-            }
+-            else
+-            {
+-                return -1;
+-            }
+-        }
+-
+-        JSON_ASSERT(0x0000 <= codepoint && codepoint <= 0xFFFF);
+-        return codepoint;
+-    }
+-
+-    /*!
+-    @brief check if the next byte(s) are inside a given range
+-
+-    Adds the current byte and, for each passed range, reads a new byte and
+-    checks if it is inside the range. If a violation was detected, set up an
+-    error message and return false. Otherwise, return true.
+-
+-    @param[in] ranges  list of integers; interpreted as list of pairs of
+-                       inclusive lower and upper bound, respectively
+-
+-    @pre The passed list @a ranges must have 2, 4, or 6 elements; that is,
+-         1, 2, or 3 pairs. This precondition is enforced by an assertion.
+-
+-    @return true if and only if no range violation was detected
+-    */
+-    bool next_byte_in_range(std::initializer_list<char_int_type> ranges)
+-    {
+-        JSON_ASSERT(ranges.size() == 2 || ranges.size() == 4 || ranges.size() == 6);
+-        add(current);
+-
+-        for (auto range = ranges.begin(); range != ranges.end(); ++range)
+-        {
+-            get();
+-            if (JSON_HEDLEY_LIKELY(*range <= current && current <= *(++range)))
+-            {
+-                add(current);
+-            }
+-            else
+-            {
+-                error_message = "invalid string: ill-formed UTF-8 byte";
+-                return false;
+-            }
+-        }
+-
+-        return true;
+-    }
+-
+-    /*!
+-    @brief scan a string literal
+-
+-    This function scans a string according to Sect. 7 of RFC 8259. While
+-    scanning, bytes are escaped and copied into buffer token_buffer. Then the
+-    function returns successfully, token_buffer is *not* null-terminated (as it
+-    may contain \0 bytes), and token_buffer.size() is the number of bytes in the
+-    string.
+-
+-    @return token_type::value_string if string could be successfully scanned,
+-            token_type::parse_error otherwise
+-
+-    @note In case of errors, variable error_message contains a textual
+-          description.
+-    */
+-    token_type scan_string()
+-    {
+-        // reset token_buffer (ignore opening quote)
+-        reset();
+-
+-        // we entered the function by reading an open quote
+-        JSON_ASSERT(current == '\"');
+-
+-        while (true)
+-        {
+-            // get next character
+-            switch (get())
+-            {
+-                // end of file while parsing string
+-                case std::char_traits<char_type>::eof():
+-                {
+-                    error_message = "invalid string: missing closing quote";
+-                    return token_type::parse_error;
+-                }
+-
+-                // closing quote
+-                case '\"':
+-                {
+-                    return token_type::value_string;
+-                }
+-
+-                // escapes
+-                case '\\':
+-                {
+-                    switch (get())
+-                    {
+-                        // quotation mark
+-                        case '\"':
+-                            add('\"');
+-                            break;
+-                        // reverse solidus
+-                        case '\\':
+-                            add('\\');
+-                            break;
+-                        // solidus
+-                        case '/':
+-                            add('/');
+-                            break;
+-                        // backspace
+-                        case 'b':
+-                            add('\b');
+-                            break;
+-                        // form feed
+-                        case 'f':
+-                            add('\f');
+-                            break;
+-                        // line feed
+-                        case 'n':
+-                            add('\n');
+-                            break;
+-                        // carriage return
+-                        case 'r':
+-                            add('\r');
+-                            break;
+-                        // tab
+-                        case 't':
+-                            add('\t');
+-                            break;
+-
+-                        // unicode escapes
+-                        case 'u':
+-                        {
+-                            const int codepoint1 = get_codepoint();
+-                            int codepoint = codepoint1; // start with codepoint1
+-
+-                            if (JSON_HEDLEY_UNLIKELY(codepoint1 == -1))
+-                            {
+-                                error_message = "invalid string: '\\u' must be followed by 4 hex digits";
+-                                return token_type::parse_error;
+-                            }
+-
+-                            // check if code point is a high surrogate
+-                            if (0xD800 <= codepoint1 && codepoint1 <= 0xDBFF)
+-                            {
+-                                // expect next \uxxxx entry
+-                                if (JSON_HEDLEY_LIKELY(get() == '\\' && get() == 'u'))
+-                                {
+-                                    const int codepoint2 = get_codepoint();
+-
+-                                    if (JSON_HEDLEY_UNLIKELY(codepoint2 == -1))
+-                                    {
+-                                        error_message = "invalid string: '\\u' must be followed by 4 hex digits";
+-                                        return token_type::parse_error;
+-                                    }
+-
+-                                    // check if codepoint2 is a low surrogate
+-                                    if (JSON_HEDLEY_LIKELY(0xDC00 <= codepoint2 && codepoint2 <= 0xDFFF))
+-                                    {
+-                                        // overwrite codepoint
+-                                        codepoint = static_cast<int>(
+-                                                        // high surrogate occupies the most significant 22 bits
+-                                                        (static_cast<unsigned int>(codepoint1) << 10u)
+-                                                        // low surrogate occupies the least significant 15 bits
+-                                                        + static_cast<unsigned int>(codepoint2)
+-                                                        // there is still the 0xD800, 0xDC00 and 0x10000 noise
+-                                                        // in the result, so we have to subtract with:
+-                                                        // (0xD800 << 10) + DC00 - 0x10000 = 0x35FDC00
+-                                                        - 0x35FDC00u);
+-                                    }
+-                                    else
+-                                    {
+-                                        error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
+-                                        return token_type::parse_error;
+-                                    }
+-                                }
+-                                else
+-                                {
+-                                    error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
+-                                    return token_type::parse_error;
+-                                }
+-                            }
+-                            else
+-                            {
+-                                if (JSON_HEDLEY_UNLIKELY(0xDC00 <= codepoint1 && codepoint1 <= 0xDFFF))
+-                                {
+-                                    error_message = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
+-                                    return token_type::parse_error;
+-                                }
+-                            }
+-
+-                            // result of the above calculation yields a proper codepoint
+-                            JSON_ASSERT(0x00 <= codepoint && codepoint <= 0x10FFFF);
+-
+-                            // translate codepoint into bytes
+-                            if (codepoint < 0x80)
+-                            {
+-                                // 1-byte characters: 0xxxxxxx (ASCII)
+-                                add(static_cast<char_int_type>(codepoint));
+-                            }
+-                            else if (codepoint <= 0x7FF)
+-                            {
+-                                // 2-byte characters: 110xxxxx 10xxxxxx
+-                                add(static_cast<char_int_type>(0xC0u | (static_cast<unsigned int>(codepoint) >> 6u)));
+-                                add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
+-                            }
+-                            else if (codepoint <= 0xFFFF)
+-                            {
+-                                // 3-byte characters: 1110xxxx 10xxxxxx 10xxxxxx
+-                                add(static_cast<char_int_type>(0xE0u | (static_cast<unsigned int>(codepoint) >> 12u)));
+-                                add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu)));
+-                                add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
+-                            }
+-                            else
+-                            {
+-                                // 4-byte characters: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
+-                                add(static_cast<char_int_type>(0xF0u | (static_cast<unsigned int>(codepoint) >> 18u)));
+-                                add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 12u) & 0x3Fu)));
+-                                add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu)));
+-                                add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
+-                            }
+-
+-                            break;
+-                        }
+-
+-                        // other characters after escape
+-                        default:
+-                            error_message = "invalid string: forbidden character after backslash";
+-                            return token_type::parse_error;
+-                    }
+-
+-                    break;
+-                }
+-
+-                // invalid control characters
+-                case 0x00:
+-                {
+-                    error_message = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x01:
+-                {
+-                    error_message = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x02:
+-                {
+-                    error_message = "invalid string: control character U+0002 (STX) must be escaped to \\u0002";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x03:
+-                {
+-                    error_message = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x04:
+-                {
+-                    error_message = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x05:
+-                {
+-                    error_message = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x06:
+-                {
+-                    error_message = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x07:
+-                {
+-                    error_message = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x08:
+-                {
+-                    error_message = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x09:
+-                {
+-                    error_message = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0A:
+-                {
+-                    error_message = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0B:
+-                {
+-                    error_message = "invalid string: control character U+000B (VT) must be escaped to \\u000B";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0C:
+-                {
+-                    error_message = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0D:
+-                {
+-                    error_message = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0E:
+-                {
+-                    error_message = "invalid string: control character U+000E (SO) must be escaped to \\u000E";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0F:
+-                {
+-                    error_message = "invalid string: control character U+000F (SI) must be escaped to \\u000F";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x10:
+-                {
+-                    error_message = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x11:
+-                {
+-                    error_message = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x12:
+-                {
+-                    error_message = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x13:
+-                {
+-                    error_message = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x14:
+-                {
+-                    error_message = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x15:
+-                {
+-                    error_message = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x16:
+-                {
+-                    error_message = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x17:
+-                {
+-                    error_message = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x18:
+-                {
+-                    error_message = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x19:
+-                {
+-                    error_message = "invalid string: control character U+0019 (EM) must be escaped to \\u0019";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1A:
+-                {
+-                    error_message = "invalid string: control character U+001A (SUB) must be escaped to \\u001A";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1B:
+-                {
+-                    error_message = "invalid string: control character U+001B (ESC) must be escaped to \\u001B";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1C:
+-                {
+-                    error_message = "invalid string: control character U+001C (FS) must be escaped to \\u001C";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1D:
+-                {
+-                    error_message = "invalid string: control character U+001D (GS) must be escaped to \\u001D";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1E:
+-                {
+-                    error_message = "invalid string: control character U+001E (RS) must be escaped to \\u001E";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1F:
+-                {
+-                    error_message = "invalid string: control character U+001F (US) must be escaped to \\u001F";
+-                    return token_type::parse_error;
+-                }
+-
+-                // U+0020..U+007F (except U+0022 (quote) and U+005C (backspace))
+-                case 0x20:
+-                case 0x21:
+-                case 0x23:
+-                case 0x24:
+-                case 0x25:
+-                case 0x26:
+-                case 0x27:
+-                case 0x28:
+-                case 0x29:
+-                case 0x2A:
+-                case 0x2B:
+-                case 0x2C:
+-                case 0x2D:
+-                case 0x2E:
+-                case 0x2F:
+-                case 0x30:
+-                case 0x31:
+-                case 0x32:
+-                case 0x33:
+-                case 0x34:
+-                case 0x35:
+-                case 0x36:
+-                case 0x37:
+-                case 0x38:
+-                case 0x39:
+-                case 0x3A:
+-                case 0x3B:
+-                case 0x3C:
+-                case 0x3D:
+-                case 0x3E:
+-                case 0x3F:
+-                case 0x40:
+-                case 0x41:
+-                case 0x42:
+-                case 0x43:
+-                case 0x44:
+-                case 0x45:
+-                case 0x46:
+-                case 0x47:
+-                case 0x48:
+-                case 0x49:
+-                case 0x4A:
+-                case 0x4B:
+-                case 0x4C:
+-                case 0x4D:
+-                case 0x4E:
+-                case 0x4F:
+-                case 0x50:
+-                case 0x51:
+-                case 0x52:
+-                case 0x53:
+-                case 0x54:
+-                case 0x55:
+-                case 0x56:
+-                case 0x57:
+-                case 0x58:
+-                case 0x59:
+-                case 0x5A:
+-                case 0x5B:
+-                case 0x5D:
+-                case 0x5E:
+-                case 0x5F:
+-                case 0x60:
+-                case 0x61:
+-                case 0x62:
+-                case 0x63:
+-                case 0x64:
+-                case 0x65:
+-                case 0x66:
+-                case 0x67:
+-                case 0x68:
+-                case 0x69:
+-                case 0x6A:
+-                case 0x6B:
+-                case 0x6C:
+-                case 0x6D:
+-                case 0x6E:
+-                case 0x6F:
+-                case 0x70:
+-                case 0x71:
+-                case 0x72:
+-                case 0x73:
+-                case 0x74:
+-                case 0x75:
+-                case 0x76:
+-                case 0x77:
+-                case 0x78:
+-                case 0x79:
+-                case 0x7A:
+-                case 0x7B:
+-                case 0x7C:
+-                case 0x7D:
+-                case 0x7E:
+-                case 0x7F:
+-                {
+-                    add(current);
+-                    break;
+-                }
+-
+-                // U+0080..U+07FF: bytes C2..DF 80..BF
+-                case 0xC2:
+-                case 0xC3:
+-                case 0xC4:
+-                case 0xC5:
+-                case 0xC6:
+-                case 0xC7:
+-                case 0xC8:
+-                case 0xC9:
+-                case 0xCA:
+-                case 0xCB:
+-                case 0xCC:
+-                case 0xCD:
+-                case 0xCE:
+-                case 0xCF:
+-                case 0xD0:
+-                case 0xD1:
+-                case 0xD2:
+-                case 0xD3:
+-                case 0xD4:
+-                case 0xD5:
+-                case 0xD6:
+-                case 0xD7:
+-                case 0xD8:
+-                case 0xD9:
+-                case 0xDA:
+-                case 0xDB:
+-                case 0xDC:
+-                case 0xDD:
+-                case 0xDE:
+-                case 0xDF:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!next_byte_in_range({0x80, 0xBF})))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+0800..U+0FFF: bytes E0 A0..BF 80..BF
+-                case 0xE0:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0xA0, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+1000..U+CFFF: bytes E1..EC 80..BF 80..BF
+-                // U+E000..U+FFFF: bytes EE..EF 80..BF 80..BF
+-                case 0xE1:
+-                case 0xE2:
+-                case 0xE3:
+-                case 0xE4:
+-                case 0xE5:
+-                case 0xE6:
+-                case 0xE7:
+-                case 0xE8:
+-                case 0xE9:
+-                case 0xEA:
+-                case 0xEB:
+-                case 0xEC:
+-                case 0xEE:
+-                case 0xEF:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+D000..U+D7FF: bytes ED 80..9F 80..BF
+-                case 0xED:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x9F, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+10000..U+3FFFF F0 90..BF 80..BF 80..BF
+-                case 0xF0:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x90, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+40000..U+FFFFF F1..F3 80..BF 80..BF 80..BF
+-                case 0xF1:
+-                case 0xF2:
+-                case 0xF3:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+100000..U+10FFFF F4 80..8F 80..BF 80..BF
+-                case 0xF4:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x8F, 0x80, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // remaining bytes (80..C1 and F5..FF) are ill-formed
+-                default:
+-                {
+-                    error_message = "invalid string: ill-formed UTF-8 byte";
+-                    return token_type::parse_error;
+-                }
+-            }
+-        }
+-    }
+-
+-    /*!
+-     * @brief scan a comment
+-     * @return whether comment could be scanned successfully
+-     */
+-    bool scan_comment()
+-    {
+-        switch (get())
+-        {
+-            // single-line comments skip input until a newline or EOF is read
+-            case '/':
+-            {
+-                while (true)
+-                {
+-                    switch (get())
+-                    {
+-                        case '\n':
+-                        case '\r':
+-                        case std::char_traits<char_type>::eof():
+-                        case '\0':
+-                            return true;
+-
+-                        default:
+-                            break;
+-                    }
+-                }
+-            }
+-
+-            // multi-line comments skip input until */ is read
+-            case '*':
+-            {
+-                while (true)
+-                {
+-                    switch (get())
+-                    {
+-                        case std::char_traits<char_type>::eof():
+-                        case '\0':
+-                        {
+-                            error_message = "invalid comment; missing closing '*/'";
+-                            return false;
+-                        }
+-
+-                        case '*':
+-                        {
+-                            switch (get())
+-                            {
+-                                case '/':
+-                                    return true;
+-
+-                                default:
+-                                {
+-                                    unget();
+-                                    continue;
+-                                }
+-                            }
+-                        }
+-
+-                        default:
+-                            continue;
+-                    }
+-                }
+-            }
+-
+-            // unexpected character after reading '/'
+-            default:
+-            {
+-                error_message = "invalid comment; expecting '/' or '*' after '/'";
+-                return false;
+-            }
+-        }
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    static void strtof(float& f, const char* str, char** endptr) noexcept
+-    {
+-        f = std::strtof(str, endptr);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    static void strtof(double& f, const char* str, char** endptr) noexcept
+-    {
+-        f = std::strtod(str, endptr);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    static void strtof(long double& f, const char* str, char** endptr) noexcept
+-    {
+-        f = std::strtold(str, endptr);
+-    }
+-
+-    /*!
+-    @brief scan a number literal
+-
+-    This function scans a string according to Sect. 6 of RFC 8259.
+-
+-    The function is realized with a deterministic finite state machine derived
+-    from the grammar described in RFC 8259. Starting in state "init", the
+-    input is read and used to determined the next state. Only state "done"
+-    accepts the number. State "error" is a trap state to model errors. In the
+-    table below, "anything" means any character but the ones listed before.
+-
+-    state    | 0        | 1-9      | e E      | +       | -       | .        | anything
+-    ---------|----------|----------|----------|---------|---------|----------|-----------
+-    init     | zero     | any1     | [error]  | [error] | minus   | [error]  | [error]
+-    minus    | zero     | any1     | [error]  | [error] | [error] | [error]  | [error]
+-    zero     | done     | done     | exponent | done    | done    | decimal1 | done
+-    any1     | any1     | any1     | exponent | done    | done    | decimal1 | done
+-    decimal1 | decimal2 | decimal2 | [error]  | [error] | [error] | [error]  | [error]
+-    decimal2 | decimal2 | decimal2 | exponent | done    | done    | done     | done
+-    exponent | any2     | any2     | [error]  | sign    | sign    | [error]  | [error]
+-    sign     | any2     | any2     | [error]  | [error] | [error] | [error]  | [error]
+-    any2     | any2     | any2     | done     | done    | done    | done     | done
+-
+-    The state machine is realized with one label per state (prefixed with
+-    "scan_number_") and `goto` statements between them. The state machine
+-    contains cycles, but any cycle can be left when EOF is read. Therefore,
+-    the function is guaranteed to terminate.
+-
+-    During scanning, the read bytes are stored in token_buffer. This string is
+-    then converted to a signed integer, an unsigned integer, or a
+-    floating-point number.
+-
+-    @return token_type::value_unsigned, token_type::value_integer, or
+-            token_type::value_float if number could be successfully scanned,
+-            token_type::parse_error otherwise
+-
+-    @note The scanner is independent of the current locale. Internally, the
+-          locale's decimal point is used instead of `.` to work with the
+-          locale-dependent converters.
+-    */
+-    token_type scan_number()  // lgtm [cpp/use-of-goto]
+-    {
+-        // reset token_buffer to store the number's bytes
+-        reset();
+-
+-        // the type of the parsed number; initially set to unsigned; will be
+-        // changed if minus sign, decimal point or exponent is read
+-        token_type number_type = token_type::value_unsigned;
+-
+-        // state (init): we just found out we need to scan a number
+-        switch (current)
+-        {
+-            case '-':
+-            {
+-                add(current);
+-                goto scan_number_minus;
+-            }
+-
+-            case '0':
+-            {
+-                add(current);
+-                goto scan_number_zero;
+-            }
+-
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any1;
+-            }
+-
+-            // all other characters are rejected outside scan_number()
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-
+-scan_number_minus:
+-        // state: we just parsed a leading minus sign
+-        number_type = token_type::value_integer;
+-        switch (get())
+-        {
+-            case '0':
+-            {
+-                add(current);
+-                goto scan_number_zero;
+-            }
+-
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any1;
+-            }
+-
+-            default:
+-            {
+-                error_message = "invalid number; expected digit after '-'";
+-                return token_type::parse_error;
+-            }
+-        }
+-
+-scan_number_zero:
+-        // state: we just parse a zero (maybe with a leading minus sign)
+-        switch (get())
+-        {
+-            case '.':
+-            {
+-                add(decimal_point_char);
+-                goto scan_number_decimal1;
+-            }
+-
+-            case 'e':
+-            case 'E':
+-            {
+-                add(current);
+-                goto scan_number_exponent;
+-            }
+-
+-            default:
+-                goto scan_number_done;
+-        }
+-
+-scan_number_any1:
+-        // state: we just parsed a number 0-9 (maybe with a leading minus sign)
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any1;
+-            }
+-
+-            case '.':
+-            {
+-                add(decimal_point_char);
+-                goto scan_number_decimal1;
+-            }
+-
+-            case 'e':
+-            case 'E':
+-            {
+-                add(current);
+-                goto scan_number_exponent;
+-            }
+-
+-            default:
+-                goto scan_number_done;
+-        }
+-
+-scan_number_decimal1:
+-        // state: we just parsed a decimal point
+-        number_type = token_type::value_float;
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_decimal2;
+-            }
+-
+-            default:
+-            {
+-                error_message = "invalid number; expected digit after '.'";
+-                return token_type::parse_error;
+-            }
+-        }
+-
+-scan_number_decimal2:
+-        // we just parsed at least one number after a decimal point
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_decimal2;
+-            }
+-
+-            case 'e':
+-            case 'E':
+-            {
+-                add(current);
+-                goto scan_number_exponent;
+-            }
+-
+-            default:
+-                goto scan_number_done;
+-        }
+-
+-scan_number_exponent:
+-        // we just parsed an exponent
+-        number_type = token_type::value_float;
+-        switch (get())
+-        {
+-            case '+':
+-            case '-':
+-            {
+-                add(current);
+-                goto scan_number_sign;
+-            }
+-
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any2;
+-            }
+-
+-            default:
+-            {
+-                error_message =
+-                    "invalid number; expected '+', '-', or digit after exponent";
+-                return token_type::parse_error;
+-            }
+-        }
+-
+-scan_number_sign:
+-        // we just parsed an exponent sign
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any2;
+-            }
+-
+-            default:
+-            {
+-                error_message = "invalid number; expected digit after exponent sign";
+-                return token_type::parse_error;
+-            }
+-        }
+-
+-scan_number_any2:
+-        // we just parsed a number after the exponent or exponent sign
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any2;
+-            }
+-
+-            default:
+-                goto scan_number_done;
+-        }
+-
+-scan_number_done:
+-        // unget the character after the number (we only read it to know that
+-        // we are done scanning a number)
+-        unget();
+-
+-        char* endptr = nullptr; // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-        errno = 0;
+-
+-        // try to parse integers first and fall back to floats
+-        if (number_type == token_type::value_unsigned)
+-        {
+-            const auto x = std::strtoull(token_buffer.data(), &endptr, 10);
+-
+-            // we checked the number format before
+-            JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
+-
+-            if (errno == 0)
+-            {
+-                value_unsigned = static_cast<number_unsigned_t>(x);
+-                if (value_unsigned == x)
+-                {
+-                    return token_type::value_unsigned;
+-                }
+-            }
+-        }
+-        else if (number_type == token_type::value_integer)
+-        {
+-            const auto x = std::strtoll(token_buffer.data(), &endptr, 10);
+-
+-            // we checked the number format before
+-            JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
+-
+-            if (errno == 0)
+-            {
+-                value_integer = static_cast<number_integer_t>(x);
+-                if (value_integer == x)
+-                {
+-                    return token_type::value_integer;
+-                }
+-            }
+-        }
+-
+-        // this code is reached if we parse a floating-point number or if an
+-        // integer conversion above failed
+-        strtof(value_float, token_buffer.data(), &endptr);
+-
+-        // we checked the number format before
+-        JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
+-
+-        return token_type::value_float;
+-    }
+-
+-    /*!
+-    @param[in] literal_text  the literal text to expect
+-    @param[in] length        the length of the passed literal text
+-    @param[in] return_type   the token type to return on success
+-    */
+-    JSON_HEDLEY_NON_NULL(2)
+-    token_type scan_literal(const char_type* literal_text, const std::size_t length,
+-                            token_type return_type)
+-    {
+-        JSON_ASSERT(std::char_traits<char_type>::to_char_type(current) == literal_text[0]);
+-        for (std::size_t i = 1; i < length; ++i)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(std::char_traits<char_type>::to_char_type(get()) != literal_text[i]))
+-            {
+-                error_message = "invalid literal";
+-                return token_type::parse_error;
+-            }
+-        }
+-        return return_type;
+-    }
+-
+-    /////////////////////
+-    // input management
+-    /////////////////////
+-
+-    /// reset token_buffer; current character is beginning of token
+-    void reset() noexcept
+-    {
+-        token_buffer.clear();
+-        token_string.clear();
+-        token_string.push_back(std::char_traits<char_type>::to_char_type(current));
+-    }
+-
+-    /*
+-    @brief get next character from the input
+-
+-    This function provides the interface to the used input adapter. It does
+-    not throw in case the input reached EOF, but returns a
+-    `std::char_traits<char>::eof()` in that case.  Stores the scanned characters
+-    for use in error messages.
+-
+-    @return character read from the input
+-    */
+-    char_int_type get()
+-    {
+-        ++position.chars_read_total;
+-        ++position.chars_read_current_line;
+-
+-        if (next_unget)
+-        {
+-            // just reset the next_unget variable and work with current
+-            next_unget = false;
+-        }
+-        else
+-        {
+-            current = ia.get_character();
+-        }
+-
+-        if (JSON_HEDLEY_LIKELY(current != std::char_traits<char_type>::eof()))
+-        {
+-            token_string.push_back(std::char_traits<char_type>::to_char_type(current));
+-        }
+-
+-        if (current == '\n')
+-        {
+-            ++position.lines_read;
+-            position.chars_read_current_line = 0;
+-        }
+-
+-        return current;
+-    }
+-
+-    /*!
+-    @brief unget current character (read it again on next get)
+-
+-    We implement unget by setting variable next_unget to true. The input is not
+-    changed - we just simulate ungetting by modifying chars_read_total,
+-    chars_read_current_line, and token_string. The next call to get() will
+-    behave as if the unget character is read again.
+-    */
+-    void unget()
+-    {
+-        next_unget = true;
+-
+-        --position.chars_read_total;
+-
+-        // in case we "unget" a newline, we have to also decrement the lines_read
+-        if (position.chars_read_current_line == 0)
+-        {
+-            if (position.lines_read > 0)
+-            {
+-                --position.lines_read;
+-            }
+-        }
+-        else
+-        {
+-            --position.chars_read_current_line;
+-        }
+-
+-        if (JSON_HEDLEY_LIKELY(current != std::char_traits<char_type>::eof()))
+-        {
+-            JSON_ASSERT(!token_string.empty());
+-            token_string.pop_back();
+-        }
+-    }
+-
+-    /// add a character to token_buffer
+-    void add(char_int_type c)
+-    {
+-        token_buffer.push_back(static_cast<typename string_t::value_type>(c));
+-    }
+-
+-  public:
+-    /////////////////////
+-    // value getters
+-    /////////////////////
+-
+-    /// return integer value
+-    constexpr number_integer_t get_number_integer() const noexcept
+-    {
+-        return value_integer;
+-    }
+-
+-    /// return unsigned integer value
+-    constexpr number_unsigned_t get_number_unsigned() const noexcept
+-    {
+-        return value_unsigned;
+-    }
+-
+-    /// return floating-point value
+-    constexpr number_float_t get_number_float() const noexcept
+-    {
+-        return value_float;
+-    }
+-
+-    /// return current string value (implicitly resets the token; useful only once)
+-    string_t& get_string()
+-    {
+-        return token_buffer;
+-    }
+-
+-    /////////////////////
+-    // diagnostics
+-    /////////////////////
+-
+-    /// return position of last read token
+-    constexpr position_t get_position() const noexcept
+-    {
+-        return position;
+-    }
+-
+-    /// return the last read token (for errors only).  Will never contain EOF
+-    /// (an arbitrary value that is not a valid char value, often -1), because
+-    /// 255 may legitimately occur.  May contain NUL, which should be escaped.
+-    std::string get_token_string() const
+-    {
+-        // escape control characters
+-        std::string result;
+-        for (const auto c : token_string)
+-        {
+-            if (static_cast<unsigned char>(c) <= '\x1F')
+-            {
+-                // escape control characters
+-                std::array<char, 9> cs{{}};
+-                static_cast<void>((std::snprintf)(cs.data(), cs.size(), "<U+%.4X>", static_cast<unsigned char>(c))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-                result += cs.data();
+-            }
+-            else
+-            {
+-                // add character as is
+-                result.push_back(static_cast<std::string::value_type>(c));
+-            }
+-        }
+-
+-        return result;
+-    }
+-
+-    /// return syntax error message
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    constexpr const char* get_error_message() const noexcept
+-    {
+-        return error_message;
+-    }
+-
+-    /////////////////////
+-    // actual scanner
+-    /////////////////////
+-
+-    /*!
+-    @brief skip the UTF-8 byte order mark
+-    @return true iff there is no BOM or the correct BOM has been skipped
+-    */
+-    bool skip_bom()
+-    {
+-        if (get() == 0xEF)
+-        {
+-            // check if we completely parse the BOM
+-            return get() == 0xBB && get() == 0xBF;
+-        }
+-
+-        // the first character is not the beginning of the BOM; unget it to
+-        // process is later
+-        unget();
+-        return true;
+-    }
+-
+-    void skip_whitespace()
+-    {
+-        do
+-        {
+-            get();
+-        }
+-        while (current == ' ' || current == '\t' || current == '\n' || current == '\r');
+-    }
+-
+-    token_type scan()
+-    {
+-        // initially, skip the BOM
+-        if (position.chars_read_total == 0 && !skip_bom())
+-        {
+-            error_message = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
+-            return token_type::parse_error;
+-        }
+-
+-        // read next character and ignore whitespace
+-        skip_whitespace();
+-
+-        // ignore comments
+-        while (ignore_comments && current == '/')
+-        {
+-            if (!scan_comment())
+-            {
+-                return token_type::parse_error;
+-            }
+-
+-            // skip following whitespace
+-            skip_whitespace();
+-        }
+-
+-        switch (current)
+-        {
+-            // structural characters
+-            case '[':
+-                return token_type::begin_array;
+-            case ']':
+-                return token_type::end_array;
+-            case '{':
+-                return token_type::begin_object;
+-            case '}':
+-                return token_type::end_object;
+-            case ':':
+-                return token_type::name_separator;
+-            case ',':
+-                return token_type::value_separator;
+-
+-            // literals
+-            case 't':
+-            {
+-                std::array<char_type, 4> true_literal = {{static_cast<char_type>('t'), static_cast<char_type>('r'), static_cast<char_type>('u'), static_cast<char_type>('e')}};
+-                return scan_literal(true_literal.data(), true_literal.size(), token_type::literal_true);
+-            }
+-            case 'f':
+-            {
+-                std::array<char_type, 5> false_literal = {{static_cast<char_type>('f'), static_cast<char_type>('a'), static_cast<char_type>('l'), static_cast<char_type>('s'), static_cast<char_type>('e')}};
+-                return scan_literal(false_literal.data(), false_literal.size(), token_type::literal_false);
+-            }
+-            case 'n':
+-            {
+-                std::array<char_type, 4> null_literal = {{static_cast<char_type>('n'), static_cast<char_type>('u'), static_cast<char_type>('l'), static_cast<char_type>('l')}};
+-                return scan_literal(null_literal.data(), null_literal.size(), token_type::literal_null);
+-            }
+-
+-            // string
+-            case '\"':
+-                return scan_string();
+-
+-            // number
+-            case '-':
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-                return scan_number();
+-
+-            // end of input (the null byte is needed when parsing from
+-            // string literals)
+-            case '\0':
+-            case std::char_traits<char_type>::eof():
+-                return token_type::end_of_input;
+-
+-            // error
+-            default:
+-                error_message = "invalid literal";
+-                return token_type::parse_error;
+-        }
+-    }
+-
+-  private:
+-    /// input adapter
+-    InputAdapterType ia;
+-
+-    /// whether comments should be ignored (true) or signaled as errors (false)
+-    const bool ignore_comments = false;
+-
+-    /// the current character
+-    char_int_type current = std::char_traits<char_type>::eof();
+-
+-    /// whether the next get() call should just return current
+-    bool next_unget = false;
+-
+-    /// the start position of the current token
+-    position_t position {};
+-
+-    /// raw input token string (for error messages)
+-    std::vector<char_type> token_string {};
+-
+-    /// buffer for variable-length tokens (numbers, strings)
+-    string_t token_buffer {};
+-
+-    /// a description of occurred lexer errors
+-    const char* error_message = "";
+-
+-    // number values
+-    number_integer_t value_integer = 0;
+-    number_unsigned_t value_unsigned = 0;
+-    number_float_t value_float = 0;
+-
+-    /// the decimal point
+-    const char_int_type decimal_point_char = '.';
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/is_sax.hpp>
+-
+-
+-#include <cstdint> // size_t
+-#include <utility> // declval
+-#include <string> // string
+-
+-// #include <nlohmann/detail/meta/detected.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename T>
+-using null_function_t = decltype(std::declval<T&>().null());
+-
+-template<typename T>
+-using boolean_function_t =
+-    decltype(std::declval<T&>().boolean(std::declval<bool>()));
+-
+-template<typename T, typename Integer>
+-using number_integer_function_t =
+-    decltype(std::declval<T&>().number_integer(std::declval<Integer>()));
+-
+-template<typename T, typename Unsigned>
+-using number_unsigned_function_t =
+-    decltype(std::declval<T&>().number_unsigned(std::declval<Unsigned>()));
+-
+-template<typename T, typename Float, typename String>
+-using number_float_function_t = decltype(std::declval<T&>().number_float(
+-                                    std::declval<Float>(), std::declval<const String&>()));
+-
+-template<typename T, typename String>
+-using string_function_t =
+-    decltype(std::declval<T&>().string(std::declval<String&>()));
+-
+-template<typename T, typename Binary>
+-using binary_function_t =
+-    decltype(std::declval<T&>().binary(std::declval<Binary&>()));
+-
+-template<typename T>
+-using start_object_function_t =
+-    decltype(std::declval<T&>().start_object(std::declval<std::size_t>()));
+-
+-template<typename T, typename String>
+-using key_function_t =
+-    decltype(std::declval<T&>().key(std::declval<String&>()));
+-
+-template<typename T>
+-using end_object_function_t = decltype(std::declval<T&>().end_object());
+-
+-template<typename T>
+-using start_array_function_t =
+-    decltype(std::declval<T&>().start_array(std::declval<std::size_t>()));
+-
+-template<typename T>
+-using end_array_function_t = decltype(std::declval<T&>().end_array());
+-
+-template<typename T, typename Exception>
+-using parse_error_function_t = decltype(std::declval<T&>().parse_error(
+-        std::declval<std::size_t>(), std::declval<const std::string&>(),
+-        std::declval<const Exception&>()));
+-
+-template<typename SAX, typename BasicJsonType>
+-struct is_sax
+-{
+-  private:
+-    static_assert(is_basic_json<BasicJsonType>::value,
+-                  "BasicJsonType must be of type basic_json<...>");
+-
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using exception_t = typename BasicJsonType::exception;
+-
+-  public:
+-    static constexpr bool value =
+-        is_detected_exact<bool, null_function_t, SAX>::value &&
+-        is_detected_exact<bool, boolean_function_t, SAX>::value &&
+-        is_detected_exact<bool, number_integer_function_t, SAX, number_integer_t>::value &&
+-        is_detected_exact<bool, number_unsigned_function_t, SAX, number_unsigned_t>::value &&
+-        is_detected_exact<bool, number_float_function_t, SAX, number_float_t, string_t>::value &&
+-        is_detected_exact<bool, string_function_t, SAX, string_t>::value &&
+-        is_detected_exact<bool, binary_function_t, SAX, binary_t>::value &&
+-        is_detected_exact<bool, start_object_function_t, SAX>::value &&
+-        is_detected_exact<bool, key_function_t, SAX, string_t>::value &&
+-        is_detected_exact<bool, end_object_function_t, SAX>::value &&
+-        is_detected_exact<bool, start_array_function_t, SAX>::value &&
+-        is_detected_exact<bool, end_array_function_t, SAX>::value &&
+-        is_detected_exact<bool, parse_error_function_t, SAX, exception_t>::value;
+-};
+-
+-template<typename SAX, typename BasicJsonType>
+-struct is_sax_static_asserts
+-{
+-  private:
+-    static_assert(is_basic_json<BasicJsonType>::value,
+-                  "BasicJsonType must be of type basic_json<...>");
+-
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using exception_t = typename BasicJsonType::exception;
+-
+-  public:
+-    static_assert(is_detected_exact<bool, null_function_t, SAX>::value,
+-                  "Missing/invalid function: bool null()");
+-    static_assert(is_detected_exact<bool, boolean_function_t, SAX>::value,
+-                  "Missing/invalid function: bool boolean(bool)");
+-    static_assert(is_detected_exact<bool, boolean_function_t, SAX>::value,
+-                  "Missing/invalid function: bool boolean(bool)");
+-    static_assert(
+-        is_detected_exact<bool, number_integer_function_t, SAX,
+-        number_integer_t>::value,
+-        "Missing/invalid function: bool number_integer(number_integer_t)");
+-    static_assert(
+-        is_detected_exact<bool, number_unsigned_function_t, SAX,
+-        number_unsigned_t>::value,
+-        "Missing/invalid function: bool number_unsigned(number_unsigned_t)");
+-    static_assert(is_detected_exact<bool, number_float_function_t, SAX,
+-                  number_float_t, string_t>::value,
+-                  "Missing/invalid function: bool number_float(number_float_t, const string_t&)");
+-    static_assert(
+-        is_detected_exact<bool, string_function_t, SAX, string_t>::value,
+-        "Missing/invalid function: bool string(string_t&)");
+-    static_assert(
+-        is_detected_exact<bool, binary_function_t, SAX, binary_t>::value,
+-        "Missing/invalid function: bool binary(binary_t&)");
+-    static_assert(is_detected_exact<bool, start_object_function_t, SAX>::value,
+-                  "Missing/invalid function: bool start_object(std::size_t)");
+-    static_assert(is_detected_exact<bool, key_function_t, SAX, string_t>::value,
+-                  "Missing/invalid function: bool key(string_t&)");
+-    static_assert(is_detected_exact<bool, end_object_function_t, SAX>::value,
+-                  "Missing/invalid function: bool end_object()");
+-    static_assert(is_detected_exact<bool, start_array_function_t, SAX>::value,
+-                  "Missing/invalid function: bool start_array(std::size_t)");
+-    static_assert(is_detected_exact<bool, end_array_function_t, SAX>::value,
+-                  "Missing/invalid function: bool end_array()");
+-    static_assert(
+-        is_detected_exact<bool, parse_error_function_t, SAX, exception_t>::value,
+-        "Missing/invalid function: bool parse_error(std::size_t, const "
+-        "std::string&, const exception&)");
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-/// how to treat CBOR tags
+-enum class cbor_tag_handler_t
+-{
+-    error,   ///< throw a parse_error exception in case of a tag
+-    ignore,  ///< ignore tags
+-    store    ///< store tags as binary type
+-};
+-
+-/*!
+-@brief determine system byte order
+-
+-@return true if and only if system's byte order is little endian
+-
+-@note from https://stackoverflow.com/a/1001328/266378
+-*/
+-static inline bool little_endianness(int num = 1) noexcept
+-{
+-    return *reinterpret_cast<char*>(&num) == 1;
+-}
+-
+-
+-///////////////////
+-// binary reader //
+-///////////////////
+-
+-/*!
+-@brief deserialization of CBOR, MessagePack, and UBJSON values
+-*/
+-template<typename BasicJsonType, typename InputAdapterType, typename SAX = json_sax_dom_parser<BasicJsonType>>
+-class binary_reader
+-{
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using json_sax_t = SAX;
+-    using char_type = typename InputAdapterType::char_type;
+-    using char_int_type = typename std::char_traits<char_type>::int_type;
+-
+-  public:
+-    /*!
+-    @brief create a binary reader
+-
+-    @param[in] adapter  input adapter to read from
+-    */
+-    explicit binary_reader(InputAdapterType&& adapter) noexcept : ia(std::move(adapter))
+-    {
+-        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
+-    }
+-
+-    // make class move-only
+-    binary_reader(const binary_reader&) = delete;
+-    binary_reader(binary_reader&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    binary_reader& operator=(const binary_reader&) = delete;
+-    binary_reader& operator=(binary_reader&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    ~binary_reader() = default;
+-
+-    /*!
+-    @param[in] format  the binary format to parse
+-    @param[in] sax_    a SAX event processor
+-    @param[in] strict  whether to expect the input to be consumed completed
+-    @param[in] tag_handler  how to treat CBOR tags
+-
+-    @return whether parsing was successful
+-    */
+-    JSON_HEDLEY_NON_NULL(3)
+-    bool sax_parse(const input_format_t format,
+-                   json_sax_t* sax_,
+-                   const bool strict = true,
+-                   const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        sax = sax_;
+-        bool result = false;
+-
+-        switch (format)
+-        {
+-            case input_format_t::bson:
+-                result = parse_bson_internal();
+-                break;
+-
+-            case input_format_t::cbor:
+-                result = parse_cbor_internal(true, tag_handler);
+-                break;
+-
+-            case input_format_t::msgpack:
+-                result = parse_msgpack_internal();
+-                break;
+-
+-            case input_format_t::ubjson:
+-                result = parse_ubjson_internal();
+-                break;
+-
+-            case input_format_t::json: // LCOV_EXCL_LINE
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-
+-        // strict mode: next byte must be EOF
+-        if (result && strict)
+-        {
+-            if (format == input_format_t::ubjson)
+-            {
+-                get_ignore_noop();
+-            }
+-            else
+-            {
+-                get();
+-            }
+-
+-            if (JSON_HEDLEY_UNLIKELY(current != std::char_traits<char_type>::eof()))
+-            {
+-                return sax->parse_error(chars_read, get_token_string(),
+-                                        parse_error::create(110, chars_read, exception_message(format, "expected end of input; last byte: 0x" + get_token_string(), "value"), BasicJsonType()));
+-            }
+-        }
+-
+-        return result;
+-    }
+-
+-  private:
+-    //////////
+-    // BSON //
+-    //////////
+-
+-    /*!
+-    @brief Reads in a BSON-object and passes it to the SAX-parser.
+-    @return whether a valid BSON-value was passed to the SAX parser
+-    */
+-    bool parse_bson_internal()
+-    {
+-        std::int32_t document_size{};
+-        get_number<std::int32_t, true>(input_format_t::bson, document_size);
+-
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_object(static_cast<std::size_t>(-1))))
+-        {
+-            return false;
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_list(/*is_array*/false)))
+-        {
+-            return false;
+-        }
+-
+-        return sax->end_object();
+-    }
+-
+-    /*!
+-    @brief Parses a C-style string from the BSON input.
+-    @param[in,out] result  A reference to the string variable where the read
+-                            string is to be stored.
+-    @return `true` if the \x00-byte indicating the end of the string was
+-             encountered before the EOF; false` indicates an unexpected EOF.
+-    */
+-    bool get_bson_cstr(string_t& result)
+-    {
+-        auto out = std::back_inserter(result);
+-        while (true)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::bson, "cstring")))
+-            {
+-                return false;
+-            }
+-            if (current == 0x00)
+-            {
+-                return true;
+-            }
+-            *out++ = static_cast<typename string_t::value_type>(current);
+-        }
+-    }
+-
+-    /*!
+-    @brief Parses a zero-terminated string of length @a len from the BSON
+-           input.
+-    @param[in] len  The length (including the zero-byte at the end) of the
+-                    string to be read.
+-    @param[in,out] result  A reference to the string variable where the read
+-                            string is to be stored.
+-    @tparam NumberType The type of the length @a len
+-    @pre len >= 1
+-    @return `true` if the string was successfully parsed
+-    */
+-    template<typename NumberType>
+-    bool get_bson_string(const NumberType len, string_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(len < 1))
+-        {
+-            auto last_token = get_token_string();
+-            return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::bson, "string length must be at least 1, is " + std::to_string(len), "string"), BasicJsonType()));
+-        }
+-
+-        return get_string(input_format_t::bson, len - static_cast<NumberType>(1), result) && get() != std::char_traits<char_type>::eof();
+-    }
+-
+-    /*!
+-    @brief Parses a byte array input of length @a len from the BSON input.
+-    @param[in] len  The length of the byte array to be read.
+-    @param[in,out] result  A reference to the binary variable where the read
+-                            array is to be stored.
+-    @tparam NumberType The type of the length @a len
+-    @pre len >= 0
+-    @return `true` if the byte array was successfully parsed
+-    */
+-    template<typename NumberType>
+-    bool get_bson_binary(const NumberType len, binary_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(len < 0))
+-        {
+-            auto last_token = get_token_string();
+-            return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::bson, "byte array length cannot be negative, is " + std::to_string(len), "binary"), BasicJsonType()));
+-        }
+-
+-        // All BSON binary values have a subtype
+-        std::uint8_t subtype{};
+-        get_number<std::uint8_t>(input_format_t::bson, subtype);
+-        result.set_subtype(subtype);
+-
+-        return get_binary(input_format_t::bson, len, result);
+-    }
+-
+-    /*!
+-    @brief Read a BSON document element of the given @a element_type.
+-    @param[in] element_type The BSON element type, c.f. http://bsonspec.org/spec.html
+-    @param[in] element_type_parse_position The position in the input stream,
+-               where the `element_type` was read.
+-    @warning Not all BSON element types are supported yet. An unsupported
+-             @a element_type will give rise to a parse_error.114:
+-             Unsupported BSON record type 0x...
+-    @return whether a valid BSON-object/array was passed to the SAX parser
+-    */
+-    bool parse_bson_element_internal(const char_int_type element_type,
+-                                     const std::size_t element_type_parse_position)
+-    {
+-        switch (element_type)
+-        {
+-            case 0x01: // double
+-            {
+-                double number{};
+-                return get_number<double, true>(input_format_t::bson, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 0x02: // string
+-            {
+-                std::int32_t len{};
+-                string_t value;
+-                return get_number<std::int32_t, true>(input_format_t::bson, len) && get_bson_string(len, value) && sax->string(value);
+-            }
+-
+-            case 0x03: // object
+-            {
+-                return parse_bson_internal();
+-            }
+-
+-            case 0x04: // array
+-            {
+-                return parse_bson_array();
+-            }
+-
+-            case 0x05: // binary
+-            {
+-                std::int32_t len{};
+-                binary_t value;
+-                return get_number<std::int32_t, true>(input_format_t::bson, len) && get_bson_binary(len, value) && sax->binary(value);
+-            }
+-
+-            case 0x08: // boolean
+-            {
+-                return sax->boolean(get() != 0);
+-            }
+-
+-            case 0x0A: // null
+-            {
+-                return sax->null();
+-            }
+-
+-            case 0x10: // int32
+-            {
+-                std::int32_t value{};
+-                return get_number<std::int32_t, true>(input_format_t::bson, value) && sax->number_integer(value);
+-            }
+-
+-            case 0x12: // int64
+-            {
+-                std::int64_t value{};
+-                return get_number<std::int64_t, true>(input_format_t::bson, value) && sax->number_integer(value);
+-            }
+-
+-            default: // anything else not supported (yet)
+-            {
+-                std::array<char, 3> cr{{}};
+-                static_cast<void>((std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(element_type))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-                return sax->parse_error(element_type_parse_position, std::string(cr.data()), parse_error::create(114, element_type_parse_position, "Unsupported BSON record type 0x" + std::string(cr.data()), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief Read a BSON element list (as specified in the BSON-spec)
+-
+-    The same binary layout is used for objects and arrays, hence it must be
+-    indicated with the argument @a is_array which one is expected
+-    (true --> array, false --> object).
+-
+-    @param[in] is_array Determines if the element list being read is to be
+-                        treated as an object (@a is_array == false), or as an
+-                        array (@a is_array == true).
+-    @return whether a valid BSON-object/array was passed to the SAX parser
+-    */
+-    bool parse_bson_element_list(const bool is_array)
+-    {
+-        string_t key;
+-
+-        while (auto element_type = get())
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::bson, "element list")))
+-            {
+-                return false;
+-            }
+-
+-            const std::size_t element_type_parse_position = chars_read;
+-            if (JSON_HEDLEY_UNLIKELY(!get_bson_cstr(key)))
+-            {
+-                return false;
+-            }
+-
+-            if (!is_array && !sax->key(key))
+-            {
+-                return false;
+-            }
+-
+-            if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_internal(element_type, element_type_parse_position)))
+-            {
+-                return false;
+-            }
+-
+-            // get_bson_cstr only appends
+-            key.clear();
+-        }
+-
+-        return true;
+-    }
+-
+-    /*!
+-    @brief Reads an array from the BSON input and passes it to the SAX-parser.
+-    @return whether a valid BSON-array was passed to the SAX parser
+-    */
+-    bool parse_bson_array()
+-    {
+-        std::int32_t document_size{};
+-        get_number<std::int32_t, true>(input_format_t::bson, document_size);
+-
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_array(static_cast<std::size_t>(-1))))
+-        {
+-            return false;
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_list(/*is_array*/true)))
+-        {
+-            return false;
+-        }
+-
+-        return sax->end_array();
+-    }
+-
+-    //////////
+-    // CBOR //
+-    //////////
+-
+-    /*!
+-    @param[in] get_char  whether a new character should be retrieved from the
+-                         input (true) or whether the last read character should
+-                         be considered instead (false)
+-    @param[in] tag_handler how CBOR tags should be treated
+-
+-    @return whether a valid CBOR value was passed to the SAX parser
+-    */
+-    bool parse_cbor_internal(const bool get_char,
+-                             const cbor_tag_handler_t tag_handler)
+-    {
+-        switch (get_char ? get() : current)
+-        {
+-            // EOF
+-            case std::char_traits<char_type>::eof():
+-                return unexpect_eof(input_format_t::cbor, "value");
+-
+-            // Integer 0x00..0x17 (0..23)
+-            case 0x00:
+-            case 0x01:
+-            case 0x02:
+-            case 0x03:
+-            case 0x04:
+-            case 0x05:
+-            case 0x06:
+-            case 0x07:
+-            case 0x08:
+-            case 0x09:
+-            case 0x0A:
+-            case 0x0B:
+-            case 0x0C:
+-            case 0x0D:
+-            case 0x0E:
+-            case 0x0F:
+-            case 0x10:
+-            case 0x11:
+-            case 0x12:
+-            case 0x13:
+-            case 0x14:
+-            case 0x15:
+-            case 0x16:
+-            case 0x17:
+-                return sax->number_unsigned(static_cast<number_unsigned_t>(current));
+-
+-            case 0x18: // Unsigned integer (one-byte uint8_t follows)
+-            {
+-                std::uint8_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0x19: // Unsigned integer (two-byte uint16_t follows)
+-            {
+-                std::uint16_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0x1A: // Unsigned integer (four-byte uint32_t follows)
+-            {
+-                std::uint32_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0x1B: // Unsigned integer (eight-byte uint64_t follows)
+-            {
+-                std::uint64_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_unsigned(number);
+-            }
+-
+-            // Negative integer -1-0x00..-1-0x17 (-1..-24)
+-            case 0x20:
+-            case 0x21:
+-            case 0x22:
+-            case 0x23:
+-            case 0x24:
+-            case 0x25:
+-            case 0x26:
+-            case 0x27:
+-            case 0x28:
+-            case 0x29:
+-            case 0x2A:
+-            case 0x2B:
+-            case 0x2C:
+-            case 0x2D:
+-            case 0x2E:
+-            case 0x2F:
+-            case 0x30:
+-            case 0x31:
+-            case 0x32:
+-            case 0x33:
+-            case 0x34:
+-            case 0x35:
+-            case 0x36:
+-            case 0x37:
+-                return sax->number_integer(static_cast<std::int8_t>(0x20 - 1 - current));
+-
+-            case 0x38: // Negative integer (one-byte uint8_t follows)
+-            {
+-                std::uint8_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1) - number);
+-            }
+-
+-            case 0x39: // Negative integer -1-n (two-byte uint16_t follows)
+-            {
+-                std::uint16_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1) - number);
+-            }
+-
+-            case 0x3A: // Negative integer -1-n (four-byte uint32_t follows)
+-            {
+-                std::uint32_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1) - number);
+-            }
+-
+-            case 0x3B: // Negative integer -1-n (eight-byte uint64_t follows)
+-            {
+-                std::uint64_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1)
+-                        - static_cast<number_integer_t>(number));
+-            }
+-
+-            // Binary data (0x00..0x17 bytes follow)
+-            case 0x40:
+-            case 0x41:
+-            case 0x42:
+-            case 0x43:
+-            case 0x44:
+-            case 0x45:
+-            case 0x46:
+-            case 0x47:
+-            case 0x48:
+-            case 0x49:
+-            case 0x4A:
+-            case 0x4B:
+-            case 0x4C:
+-            case 0x4D:
+-            case 0x4E:
+-            case 0x4F:
+-            case 0x50:
+-            case 0x51:
+-            case 0x52:
+-            case 0x53:
+-            case 0x54:
+-            case 0x55:
+-            case 0x56:
+-            case 0x57:
+-            case 0x58: // Binary data (one-byte uint8_t for n follows)
+-            case 0x59: // Binary data (two-byte uint16_t for n follow)
+-            case 0x5A: // Binary data (four-byte uint32_t for n follow)
+-            case 0x5B: // Binary data (eight-byte uint64_t for n follow)
+-            case 0x5F: // Binary data (indefinite length)
+-            {
+-                binary_t b;
+-                return get_cbor_binary(b) && sax->binary(b);
+-            }
+-
+-            // UTF-8 string (0x00..0x17 bytes follow)
+-            case 0x60:
+-            case 0x61:
+-            case 0x62:
+-            case 0x63:
+-            case 0x64:
+-            case 0x65:
+-            case 0x66:
+-            case 0x67:
+-            case 0x68:
+-            case 0x69:
+-            case 0x6A:
+-            case 0x6B:
+-            case 0x6C:
+-            case 0x6D:
+-            case 0x6E:
+-            case 0x6F:
+-            case 0x70:
+-            case 0x71:
+-            case 0x72:
+-            case 0x73:
+-            case 0x74:
+-            case 0x75:
+-            case 0x76:
+-            case 0x77:
+-            case 0x78: // UTF-8 string (one-byte uint8_t for n follows)
+-            case 0x79: // UTF-8 string (two-byte uint16_t for n follow)
+-            case 0x7A: // UTF-8 string (four-byte uint32_t for n follow)
+-            case 0x7B: // UTF-8 string (eight-byte uint64_t for n follow)
+-            case 0x7F: // UTF-8 string (indefinite length)
+-            {
+-                string_t s;
+-                return get_cbor_string(s) && sax->string(s);
+-            }
+-
+-            // array (0x00..0x17 data items follow)
+-            case 0x80:
+-            case 0x81:
+-            case 0x82:
+-            case 0x83:
+-            case 0x84:
+-            case 0x85:
+-            case 0x86:
+-            case 0x87:
+-            case 0x88:
+-            case 0x89:
+-            case 0x8A:
+-            case 0x8B:
+-            case 0x8C:
+-            case 0x8D:
+-            case 0x8E:
+-            case 0x8F:
+-            case 0x90:
+-            case 0x91:
+-            case 0x92:
+-            case 0x93:
+-            case 0x94:
+-            case 0x95:
+-            case 0x96:
+-            case 0x97:
+-                return get_cbor_array(static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x1Fu), tag_handler);
+-
+-            case 0x98: // array (one-byte uint8_t for n follows)
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0x99: // array (two-byte uint16_t for n follow)
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0x9A: // array (four-byte uint32_t for n follow)
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0x9B: // array (eight-byte uint64_t for n follow)
+-            {
+-                std::uint64_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_array(detail::conditional_static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0x9F: // array (indefinite length)
+-                return get_cbor_array(static_cast<std::size_t>(-1), tag_handler);
+-
+-            // map (0x00..0x17 pairs of data items follow)
+-            case 0xA0:
+-            case 0xA1:
+-            case 0xA2:
+-            case 0xA3:
+-            case 0xA4:
+-            case 0xA5:
+-            case 0xA6:
+-            case 0xA7:
+-            case 0xA8:
+-            case 0xA9:
+-            case 0xAA:
+-            case 0xAB:
+-            case 0xAC:
+-            case 0xAD:
+-            case 0xAE:
+-            case 0xAF:
+-            case 0xB0:
+-            case 0xB1:
+-            case 0xB2:
+-            case 0xB3:
+-            case 0xB4:
+-            case 0xB5:
+-            case 0xB6:
+-            case 0xB7:
+-                return get_cbor_object(static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x1Fu), tag_handler);
+-
+-            case 0xB8: // map (one-byte uint8_t for n follows)
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0xB9: // map (two-byte uint16_t for n follow)
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0xBA: // map (four-byte uint32_t for n follow)
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0xBB: // map (eight-byte uint64_t for n follow)
+-            {
+-                std::uint64_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_object(detail::conditional_static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0xBF: // map (indefinite length)
+-                return get_cbor_object(static_cast<std::size_t>(-1), tag_handler);
+-
+-            case 0xC6: // tagged item
+-            case 0xC7:
+-            case 0xC8:
+-            case 0xC9:
+-            case 0xCA:
+-            case 0xCB:
+-            case 0xCC:
+-            case 0xCD:
+-            case 0xCE:
+-            case 0xCF:
+-            case 0xD0:
+-            case 0xD1:
+-            case 0xD2:
+-            case 0xD3:
+-            case 0xD4:
+-            case 0xD8: // tagged item (1 bytes follow)
+-            case 0xD9: // tagged item (2 bytes follow)
+-            case 0xDA: // tagged item (4 bytes follow)
+-            case 0xDB: // tagged item (8 bytes follow)
+-            {
+-                switch (tag_handler)
+-                {
+-                    case cbor_tag_handler_t::error:
+-                    {
+-                        auto last_token = get_token_string();
+-                        return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::cbor, "invalid byte: 0x" + last_token, "value"), BasicJsonType()));
+-                    }
+-
+-                    case cbor_tag_handler_t::ignore:
+-                    {
+-                        // ignore binary subtype
+-                        switch (current)
+-                        {
+-                            case 0xD8:
+-                            {
+-                                std::uint8_t subtype_to_ignore{};
+-                                get_number(input_format_t::cbor, subtype_to_ignore);
+-                                break;
+-                            }
+-                            case 0xD9:
+-                            {
+-                                std::uint16_t subtype_to_ignore{};
+-                                get_number(input_format_t::cbor, subtype_to_ignore);
+-                                break;
+-                            }
+-                            case 0xDA:
+-                            {
+-                                std::uint32_t subtype_to_ignore{};
+-                                get_number(input_format_t::cbor, subtype_to_ignore);
+-                                break;
+-                            }
+-                            case 0xDB:
+-                            {
+-                                std::uint64_t subtype_to_ignore{};
+-                                get_number(input_format_t::cbor, subtype_to_ignore);
+-                                break;
+-                            }
+-                            default:
+-                                break;
+-                        }
+-                        return parse_cbor_internal(true, tag_handler);
+-                    }
+-
+-                    case cbor_tag_handler_t::store:
+-                    {
+-                        binary_t b;
+-                        // use binary subtype and store in binary container
+-                        switch (current)
+-                        {
+-                            case 0xD8:
+-                            {
+-                                std::uint8_t subtype{};
+-                                get_number(input_format_t::cbor, subtype);
+-                                b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype));
+-                                break;
+-                            }
+-                            case 0xD9:
+-                            {
+-                                std::uint16_t subtype{};
+-                                get_number(input_format_t::cbor, subtype);
+-                                b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype));
+-                                break;
+-                            }
+-                            case 0xDA:
+-                            {
+-                                std::uint32_t subtype{};
+-                                get_number(input_format_t::cbor, subtype);
+-                                b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype));
+-                                break;
+-                            }
+-                            case 0xDB:
+-                            {
+-                                std::uint64_t subtype{};
+-                                get_number(input_format_t::cbor, subtype);
+-                                b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype));
+-                                break;
+-                            }
+-                            default:
+-                                return parse_cbor_internal(true, tag_handler);
+-                        }
+-                        get();
+-                        return get_cbor_binary(b) && sax->binary(b);
+-                    }
+-
+-                    default:                 // LCOV_EXCL_LINE
+-                        JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-                        return false;        // LCOV_EXCL_LINE
+-                }
+-            }
+-
+-            case 0xF4: // false
+-                return sax->boolean(false);
+-
+-            case 0xF5: // true
+-                return sax->boolean(true);
+-
+-            case 0xF6: // null
+-                return sax->null();
+-
+-            case 0xF9: // Half-Precision Float (two-byte IEEE 754)
+-            {
+-                const auto byte1_raw = get();
+-                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "number")))
+-                {
+-                    return false;
+-                }
+-                const auto byte2_raw = get();
+-                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "number")))
+-                {
+-                    return false;
+-                }
+-
+-                const auto byte1 = static_cast<unsigned char>(byte1_raw);
+-                const auto byte2 = static_cast<unsigned char>(byte2_raw);
+-
+-                // code from RFC 7049, Appendix D, Figure 3:
+-                // As half-precision floating-point numbers were only added
+-                // to IEEE 754 in 2008, today's programming platforms often
+-                // still only have limited support for them. It is very
+-                // easy to include at least decoding support for them even
+-                // without such support. An example of a small decoder for
+-                // half-precision floating-point numbers in the C language
+-                // is shown in Fig. 3.
+-                const auto half = static_cast<unsigned int>((byte1 << 8u) + byte2);
+-                const double val = [&half]
+-                {
+-                    const int exp = (half >> 10u) & 0x1Fu;
+-                    const unsigned int mant = half & 0x3FFu;
+-                    JSON_ASSERT(0 <= exp&& exp <= 32);
+-                    JSON_ASSERT(mant <= 1024);
+-                    switch (exp)
+-                    {
+-                        case 0:
+-                            return std::ldexp(mant, -24);
+-                        case 31:
+-                            return (mant == 0)
+-                            ? std::numeric_limits<double>::infinity()
+-                            : std::numeric_limits<double>::quiet_NaN();
+-                        default:
+-                            return std::ldexp(mant + 1024, exp - 25);
+-                    }
+-                }();
+-                return sax->number_float((half & 0x8000u) != 0
+-                                         ? static_cast<number_float_t>(-val)
+-                                         : static_cast<number_float_t>(val), "");
+-            }
+-
+-            case 0xFA: // Single-Precision Float (four-byte IEEE 754)
+-            {
+-                float number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 0xFB: // Double-Precision Float (eight-byte IEEE 754)
+-            {
+-                double number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            default: // anything else (0xFF is handled inside the other types)
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::cbor, "invalid byte: 0x" + last_token, "value"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief reads a CBOR string
+-
+-    This function first reads starting bytes to determine the expected
+-    string length and then copies this number of bytes into a string.
+-    Additionally, CBOR's strings with indefinite lengths are supported.
+-
+-    @param[out] result  created string
+-
+-    @return whether string creation completed
+-    */
+-    bool get_cbor_string(string_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "string")))
+-        {
+-            return false;
+-        }
+-
+-        switch (current)
+-        {
+-            // UTF-8 string (0x00..0x17 bytes follow)
+-            case 0x60:
+-            case 0x61:
+-            case 0x62:
+-            case 0x63:
+-            case 0x64:
+-            case 0x65:
+-            case 0x66:
+-            case 0x67:
+-            case 0x68:
+-            case 0x69:
+-            case 0x6A:
+-            case 0x6B:
+-            case 0x6C:
+-            case 0x6D:
+-            case 0x6E:
+-            case 0x6F:
+-            case 0x70:
+-            case 0x71:
+-            case 0x72:
+-            case 0x73:
+-            case 0x74:
+-            case 0x75:
+-            case 0x76:
+-            case 0x77:
+-            {
+-                return get_string(input_format_t::cbor, static_cast<unsigned int>(current) & 0x1Fu, result);
+-            }
+-
+-            case 0x78: // UTF-8 string (one-byte uint8_t for n follows)
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x79: // UTF-8 string (two-byte uint16_t for n follow)
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x7A: // UTF-8 string (four-byte uint32_t for n follow)
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x7B: // UTF-8 string (eight-byte uint64_t for n follow)
+-            {
+-                std::uint64_t len{};
+-                return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x7F: // UTF-8 string (indefinite length)
+-            {
+-                while (get() != 0xFF)
+-                {
+-                    string_t chunk;
+-                    if (!get_cbor_string(chunk))
+-                    {
+-                        return false;
+-                    }
+-                    result.append(chunk);
+-                }
+-                return true;
+-            }
+-
+-            default:
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::cbor, "expected length specification (0x60-0x7B) or indefinite string type (0x7F); last byte: 0x" + last_token, "string"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief reads a CBOR byte array
+-
+-    This function first reads starting bytes to determine the expected
+-    byte array length and then copies this number of bytes into the byte array.
+-    Additionally, CBOR's byte arrays with indefinite lengths are supported.
+-
+-    @param[out] result  created byte array
+-
+-    @return whether byte array creation completed
+-    */
+-    bool get_cbor_binary(binary_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "binary")))
+-        {
+-            return false;
+-        }
+-
+-        switch (current)
+-        {
+-            // Binary data (0x00..0x17 bytes follow)
+-            case 0x40:
+-            case 0x41:
+-            case 0x42:
+-            case 0x43:
+-            case 0x44:
+-            case 0x45:
+-            case 0x46:
+-            case 0x47:
+-            case 0x48:
+-            case 0x49:
+-            case 0x4A:
+-            case 0x4B:
+-            case 0x4C:
+-            case 0x4D:
+-            case 0x4E:
+-            case 0x4F:
+-            case 0x50:
+-            case 0x51:
+-            case 0x52:
+-            case 0x53:
+-            case 0x54:
+-            case 0x55:
+-            case 0x56:
+-            case 0x57:
+-            {
+-                return get_binary(input_format_t::cbor, static_cast<unsigned int>(current) & 0x1Fu, result);
+-            }
+-
+-            case 0x58: // Binary data (one-byte uint8_t for n follows)
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::cbor, len) &&
+-                       get_binary(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x59: // Binary data (two-byte uint16_t for n follow)
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::cbor, len) &&
+-                       get_binary(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x5A: // Binary data (four-byte uint32_t for n follow)
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::cbor, len) &&
+-                       get_binary(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x5B: // Binary data (eight-byte uint64_t for n follow)
+-            {
+-                std::uint64_t len{};
+-                return get_number(input_format_t::cbor, len) &&
+-                       get_binary(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x5F: // Binary data (indefinite length)
+-            {
+-                while (get() != 0xFF)
+-                {
+-                    binary_t chunk;
+-                    if (!get_cbor_binary(chunk))
+-                    {
+-                        return false;
+-                    }
+-                    result.insert(result.end(), chunk.begin(), chunk.end());
+-                }
+-                return true;
+-            }
+-
+-            default:
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::cbor, "expected length specification (0x40-0x5B) or indefinite binary array type (0x5F); last byte: 0x" + last_token, "binary"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @param[in] len  the length of the array or static_cast<std::size_t>(-1) for an
+-                    array of indefinite size
+-    @param[in] tag_handler how CBOR tags should be treated
+-    @return whether array creation completed
+-    */
+-    bool get_cbor_array(const std::size_t len,
+-                        const cbor_tag_handler_t tag_handler)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len)))
+-        {
+-            return false;
+-        }
+-
+-        if (len != static_cast<std::size_t>(-1))
+-        {
+-            for (std::size_t i = 0; i < len; ++i)
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(true, tag_handler)))
+-                {
+-                    return false;
+-                }
+-            }
+-        }
+-        else
+-        {
+-            while (get() != 0xFF)
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(false, tag_handler)))
+-                {
+-                    return false;
+-                }
+-            }
+-        }
+-
+-        return sax->end_array();
+-    }
+-
+-    /*!
+-    @param[in] len  the length of the object or static_cast<std::size_t>(-1) for an
+-                    object of indefinite size
+-    @param[in] tag_handler how CBOR tags should be treated
+-    @return whether object creation completed
+-    */
+-    bool get_cbor_object(const std::size_t len,
+-                         const cbor_tag_handler_t tag_handler)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_object(len)))
+-        {
+-            return false;
+-        }
+-
+-        if (len != 0)
+-        {
+-            string_t key;
+-            if (len != static_cast<std::size_t>(-1))
+-            {
+-                for (std::size_t i = 0; i < len; ++i)
+-                {
+-                    get();
+-                    if (JSON_HEDLEY_UNLIKELY(!get_cbor_string(key) || !sax->key(key)))
+-                    {
+-                        return false;
+-                    }
+-
+-                    if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(true, tag_handler)))
+-                    {
+-                        return false;
+-                    }
+-                    key.clear();
+-                }
+-            }
+-            else
+-            {
+-                while (get() != 0xFF)
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!get_cbor_string(key) || !sax->key(key)))
+-                    {
+-                        return false;
+-                    }
+-
+-                    if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(true, tag_handler)))
+-                    {
+-                        return false;
+-                    }
+-                    key.clear();
+-                }
+-            }
+-        }
+-
+-        return sax->end_object();
+-    }
+-
+-    /////////////
+-    // MsgPack //
+-    /////////////
+-
+-    /*!
+-    @return whether a valid MessagePack value was passed to the SAX parser
+-    */
+-    bool parse_msgpack_internal()
+-    {
+-        switch (get())
+-        {
+-            // EOF
+-            case std::char_traits<char_type>::eof():
+-                return unexpect_eof(input_format_t::msgpack, "value");
+-
+-            // positive fixint
+-            case 0x00:
+-            case 0x01:
+-            case 0x02:
+-            case 0x03:
+-            case 0x04:
+-            case 0x05:
+-            case 0x06:
+-            case 0x07:
+-            case 0x08:
+-            case 0x09:
+-            case 0x0A:
+-            case 0x0B:
+-            case 0x0C:
+-            case 0x0D:
+-            case 0x0E:
+-            case 0x0F:
+-            case 0x10:
+-            case 0x11:
+-            case 0x12:
+-            case 0x13:
+-            case 0x14:
+-            case 0x15:
+-            case 0x16:
+-            case 0x17:
+-            case 0x18:
+-            case 0x19:
+-            case 0x1A:
+-            case 0x1B:
+-            case 0x1C:
+-            case 0x1D:
+-            case 0x1E:
+-            case 0x1F:
+-            case 0x20:
+-            case 0x21:
+-            case 0x22:
+-            case 0x23:
+-            case 0x24:
+-            case 0x25:
+-            case 0x26:
+-            case 0x27:
+-            case 0x28:
+-            case 0x29:
+-            case 0x2A:
+-            case 0x2B:
+-            case 0x2C:
+-            case 0x2D:
+-            case 0x2E:
+-            case 0x2F:
+-            case 0x30:
+-            case 0x31:
+-            case 0x32:
+-            case 0x33:
+-            case 0x34:
+-            case 0x35:
+-            case 0x36:
+-            case 0x37:
+-            case 0x38:
+-            case 0x39:
+-            case 0x3A:
+-            case 0x3B:
+-            case 0x3C:
+-            case 0x3D:
+-            case 0x3E:
+-            case 0x3F:
+-            case 0x40:
+-            case 0x41:
+-            case 0x42:
+-            case 0x43:
+-            case 0x44:
+-            case 0x45:
+-            case 0x46:
+-            case 0x47:
+-            case 0x48:
+-            case 0x49:
+-            case 0x4A:
+-            case 0x4B:
+-            case 0x4C:
+-            case 0x4D:
+-            case 0x4E:
+-            case 0x4F:
+-            case 0x50:
+-            case 0x51:
+-            case 0x52:
+-            case 0x53:
+-            case 0x54:
+-            case 0x55:
+-            case 0x56:
+-            case 0x57:
+-            case 0x58:
+-            case 0x59:
+-            case 0x5A:
+-            case 0x5B:
+-            case 0x5C:
+-            case 0x5D:
+-            case 0x5E:
+-            case 0x5F:
+-            case 0x60:
+-            case 0x61:
+-            case 0x62:
+-            case 0x63:
+-            case 0x64:
+-            case 0x65:
+-            case 0x66:
+-            case 0x67:
+-            case 0x68:
+-            case 0x69:
+-            case 0x6A:
+-            case 0x6B:
+-            case 0x6C:
+-            case 0x6D:
+-            case 0x6E:
+-            case 0x6F:
+-            case 0x70:
+-            case 0x71:
+-            case 0x72:
+-            case 0x73:
+-            case 0x74:
+-            case 0x75:
+-            case 0x76:
+-            case 0x77:
+-            case 0x78:
+-            case 0x79:
+-            case 0x7A:
+-            case 0x7B:
+-            case 0x7C:
+-            case 0x7D:
+-            case 0x7E:
+-            case 0x7F:
+-                return sax->number_unsigned(static_cast<number_unsigned_t>(current));
+-
+-            // fixmap
+-            case 0x80:
+-            case 0x81:
+-            case 0x82:
+-            case 0x83:
+-            case 0x84:
+-            case 0x85:
+-            case 0x86:
+-            case 0x87:
+-            case 0x88:
+-            case 0x89:
+-            case 0x8A:
+-            case 0x8B:
+-            case 0x8C:
+-            case 0x8D:
+-            case 0x8E:
+-            case 0x8F:
+-                return get_msgpack_object(static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x0Fu));
+-
+-            // fixarray
+-            case 0x90:
+-            case 0x91:
+-            case 0x92:
+-            case 0x93:
+-            case 0x94:
+-            case 0x95:
+-            case 0x96:
+-            case 0x97:
+-            case 0x98:
+-            case 0x99:
+-            case 0x9A:
+-            case 0x9B:
+-            case 0x9C:
+-            case 0x9D:
+-            case 0x9E:
+-            case 0x9F:
+-                return get_msgpack_array(static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x0Fu));
+-
+-            // fixstr
+-            case 0xA0:
+-            case 0xA1:
+-            case 0xA2:
+-            case 0xA3:
+-            case 0xA4:
+-            case 0xA5:
+-            case 0xA6:
+-            case 0xA7:
+-            case 0xA8:
+-            case 0xA9:
+-            case 0xAA:
+-            case 0xAB:
+-            case 0xAC:
+-            case 0xAD:
+-            case 0xAE:
+-            case 0xAF:
+-            case 0xB0:
+-            case 0xB1:
+-            case 0xB2:
+-            case 0xB3:
+-            case 0xB4:
+-            case 0xB5:
+-            case 0xB6:
+-            case 0xB7:
+-            case 0xB8:
+-            case 0xB9:
+-            case 0xBA:
+-            case 0xBB:
+-            case 0xBC:
+-            case 0xBD:
+-            case 0xBE:
+-            case 0xBF:
+-            case 0xD9: // str 8
+-            case 0xDA: // str 16
+-            case 0xDB: // str 32
+-            {
+-                string_t s;
+-                return get_msgpack_string(s) && sax->string(s);
+-            }
+-
+-            case 0xC0: // nil
+-                return sax->null();
+-
+-            case 0xC2: // false
+-                return sax->boolean(false);
+-
+-            case 0xC3: // true
+-                return sax->boolean(true);
+-
+-            case 0xC4: // bin 8
+-            case 0xC5: // bin 16
+-            case 0xC6: // bin 32
+-            case 0xC7: // ext 8
+-            case 0xC8: // ext 16
+-            case 0xC9: // ext 32
+-            case 0xD4: // fixext 1
+-            case 0xD5: // fixext 2
+-            case 0xD6: // fixext 4
+-            case 0xD7: // fixext 8
+-            case 0xD8: // fixext 16
+-            {
+-                binary_t b;
+-                return get_msgpack_binary(b) && sax->binary(b);
+-            }
+-
+-            case 0xCA: // float 32
+-            {
+-                float number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 0xCB: // float 64
+-            {
+-                double number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 0xCC: // uint 8
+-            {
+-                std::uint8_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0xCD: // uint 16
+-            {
+-                std::uint16_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0xCE: // uint 32
+-            {
+-                std::uint32_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0xCF: // uint 64
+-            {
+-                std::uint64_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0xD0: // int 8
+-            {
+-                std::int8_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_integer(number);
+-            }
+-
+-            case 0xD1: // int 16
+-            {
+-                std::int16_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_integer(number);
+-            }
+-
+-            case 0xD2: // int 32
+-            {
+-                std::int32_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_integer(number);
+-            }
+-
+-            case 0xD3: // int 64
+-            {
+-                std::int64_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_integer(number);
+-            }
+-
+-            case 0xDC: // array 16
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_msgpack_array(static_cast<std::size_t>(len));
+-            }
+-
+-            case 0xDD: // array 32
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_msgpack_array(static_cast<std::size_t>(len));
+-            }
+-
+-            case 0xDE: // map 16
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_msgpack_object(static_cast<std::size_t>(len));
+-            }
+-
+-            case 0xDF: // map 32
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_msgpack_object(static_cast<std::size_t>(len));
+-            }
+-
+-            // negative fixint
+-            case 0xE0:
+-            case 0xE1:
+-            case 0xE2:
+-            case 0xE3:
+-            case 0xE4:
+-            case 0xE5:
+-            case 0xE6:
+-            case 0xE7:
+-            case 0xE8:
+-            case 0xE9:
+-            case 0xEA:
+-            case 0xEB:
+-            case 0xEC:
+-            case 0xED:
+-            case 0xEE:
+-            case 0xEF:
+-            case 0xF0:
+-            case 0xF1:
+-            case 0xF2:
+-            case 0xF3:
+-            case 0xF4:
+-            case 0xF5:
+-            case 0xF6:
+-            case 0xF7:
+-            case 0xF8:
+-            case 0xF9:
+-            case 0xFA:
+-            case 0xFB:
+-            case 0xFC:
+-            case 0xFD:
+-            case 0xFE:
+-            case 0xFF:
+-                return sax->number_integer(static_cast<std::int8_t>(current));
+-
+-            default: // anything else
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::msgpack, "invalid byte: 0x" + last_token, "value"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief reads a MessagePack string
+-
+-    This function first reads starting bytes to determine the expected
+-    string length and then copies this number of bytes into a string.
+-
+-    @param[out] result  created string
+-
+-    @return whether string creation completed
+-    */
+-    bool get_msgpack_string(string_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::msgpack, "string")))
+-        {
+-            return false;
+-        }
+-
+-        switch (current)
+-        {
+-            // fixstr
+-            case 0xA0:
+-            case 0xA1:
+-            case 0xA2:
+-            case 0xA3:
+-            case 0xA4:
+-            case 0xA5:
+-            case 0xA6:
+-            case 0xA7:
+-            case 0xA8:
+-            case 0xA9:
+-            case 0xAA:
+-            case 0xAB:
+-            case 0xAC:
+-            case 0xAD:
+-            case 0xAE:
+-            case 0xAF:
+-            case 0xB0:
+-            case 0xB1:
+-            case 0xB2:
+-            case 0xB3:
+-            case 0xB4:
+-            case 0xB5:
+-            case 0xB6:
+-            case 0xB7:
+-            case 0xB8:
+-            case 0xB9:
+-            case 0xBA:
+-            case 0xBB:
+-            case 0xBC:
+-            case 0xBD:
+-            case 0xBE:
+-            case 0xBF:
+-            {
+-                return get_string(input_format_t::msgpack, static_cast<unsigned int>(current) & 0x1Fu, result);
+-            }
+-
+-            case 0xD9: // str 8
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_string(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xDA: // str 16
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_string(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xDB: // str 32
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_string(input_format_t::msgpack, len, result);
+-            }
+-
+-            default:
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::msgpack, "expected length specification (0xA0-0xBF, 0xD9-0xDB); last byte: 0x" + last_token, "string"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief reads a MessagePack byte array
+-
+-    This function first reads starting bytes to determine the expected
+-    byte array length and then copies this number of bytes into a byte array.
+-
+-    @param[out] result  created byte array
+-
+-    @return whether byte array creation completed
+-    */
+-    bool get_msgpack_binary(binary_t& result)
+-    {
+-        // helper function to set the subtype
+-        auto assign_and_return_true = [&result](std::int8_t subtype)
+-        {
+-            result.set_subtype(static_cast<std::uint8_t>(subtype));
+-            return true;
+-        };
+-
+-        switch (current)
+-        {
+-            case 0xC4: // bin 8
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_binary(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xC5: // bin 16
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_binary(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xC6: // bin 32
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_binary(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xC7: // ext 8
+-            {
+-                std::uint8_t len{};
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, len, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xC8: // ext 16
+-            {
+-                std::uint16_t len{};
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, len, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xC9: // ext 32
+-            {
+-                std::uint32_t len{};
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, len, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD4: // fixext 1
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 1, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD5: // fixext 2
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 2, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD6: // fixext 4
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 4, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD7: // fixext 8
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 8, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD8: // fixext 16
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 16, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            default:           // LCOV_EXCL_LINE
+-                return false;  // LCOV_EXCL_LINE
+-        }
+-    }
+-
+-    /*!
+-    @param[in] len  the length of the array
+-    @return whether array creation completed
+-    */
+-    bool get_msgpack_array(const std::size_t len)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len)))
+-        {
+-            return false;
+-        }
+-
+-        for (std::size_t i = 0; i < len; ++i)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
+-            {
+-                return false;
+-            }
+-        }
+-
+-        return sax->end_array();
+-    }
+-
+-    /*!
+-    @param[in] len  the length of the object
+-    @return whether object creation completed
+-    */
+-    bool get_msgpack_object(const std::size_t len)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_object(len)))
+-        {
+-            return false;
+-        }
+-
+-        string_t key;
+-        for (std::size_t i = 0; i < len; ++i)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!get_msgpack_string(key) || !sax->key(key)))
+-            {
+-                return false;
+-            }
+-
+-            if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
+-            {
+-                return false;
+-            }
+-            key.clear();
+-        }
+-
+-        return sax->end_object();
+-    }
+-
+-    ////////////
+-    // UBJSON //
+-    ////////////
+-
+-    /*!
+-    @param[in] get_char  whether a new character should be retrieved from the
+-                         input (true, default) or whether the last read
+-                         character should be considered instead
+-
+-    @return whether a valid UBJSON value was passed to the SAX parser
+-    */
+-    bool parse_ubjson_internal(const bool get_char = true)
+-    {
+-        return get_ubjson_value(get_char ? get_ignore_noop() : current);
+-    }
+-
+-    /*!
+-    @brief reads a UBJSON string
+-
+-    This function is either called after reading the 'S' byte explicitly
+-    indicating a string, or in case of an object key where the 'S' byte can be
+-    left out.
+-
+-    @param[out] result   created string
+-    @param[in] get_char  whether a new character should be retrieved from the
+-                         input (true, default) or whether the last read
+-                         character should be considered instead
+-
+-    @return whether string creation completed
+-    */
+-    bool get_ubjson_string(string_t& result, const bool get_char = true)
+-    {
+-        if (get_char)
+-        {
+-            get();  // TODO(niels): may we ignore N here?
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "value")))
+-        {
+-            return false;
+-        }
+-
+-        switch (current)
+-        {
+-            case 'U':
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            case 'i':
+-            {
+-                std::int8_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            case 'I':
+-            {
+-                std::int16_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            case 'l':
+-            {
+-                std::int32_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            case 'L':
+-            {
+-                std::int64_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            default:
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::ubjson, "expected length type specification (U, i, I, l, L); last byte: 0x" + last_token, "string"), BasicJsonType()));
+-        }
+-    }
+-
+-    /*!
+-    @param[out] result  determined size
+-    @return whether size determination completed
+-    */
+-    bool get_ubjson_size_value(std::size_t& result)
+-    {
+-        switch (get_ignore_noop())
+-        {
+-            case 'U':
+-            {
+-                std::uint8_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number);
+-                return true;
+-            }
+-
+-            case 'i':
+-            {
+-                std::int8_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
+-                return true;
+-            }
+-
+-            case 'I':
+-            {
+-                std::int16_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number);
+-                return true;
+-            }
+-
+-            case 'l':
+-            {
+-                std::int32_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number);
+-                return true;
+-            }
+-
+-            case 'L':
+-            {
+-                std::int64_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number);
+-                return true;
+-            }
+-
+-            default:
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::ubjson, "expected length type specification (U, i, I, l, L) after '#'; last byte: 0x" + last_token, "size"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief determine the type and size for a container
+-
+-    In the optimized UBJSON format, a type and a size can be provided to allow
+-    for a more compact representation.
+-
+-    @param[out] result  pair of the size and the type
+-
+-    @return whether pair creation completed
+-    */
+-    bool get_ubjson_size_type(std::pair<std::size_t, char_int_type>& result)
+-    {
+-        result.first = string_t::npos; // size
+-        result.second = 0; // type
+-
+-        get_ignore_noop();
+-
+-        if (current == '$')
+-        {
+-            result.second = get();  // must not ignore 'N', because 'N' maybe the type
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "type")))
+-            {
+-                return false;
+-            }
+-
+-            get_ignore_noop();
+-            if (JSON_HEDLEY_UNLIKELY(current != '#'))
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "value")))
+-                {
+-                    return false;
+-                }
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::ubjson, "expected '#' after type information; last byte: 0x" + last_token, "size"), BasicJsonType()));
+-            }
+-
+-            return get_ubjson_size_value(result.first);
+-        }
+-
+-        if (current == '#')
+-        {
+-            return get_ubjson_size_value(result.first);
+-        }
+-
+-        return true;
+-    }
+-
+-    /*!
+-    @param prefix  the previously read or set type prefix
+-    @return whether value creation completed
+-    */
+-    bool get_ubjson_value(const char_int_type prefix)
+-    {
+-        switch (prefix)
+-        {
+-            case std::char_traits<char_type>::eof():  // EOF
+-                return unexpect_eof(input_format_t::ubjson, "value");
+-
+-            case 'T':  // true
+-                return sax->boolean(true);
+-            case 'F':  // false
+-                return sax->boolean(false);
+-
+-            case 'Z':  // null
+-                return sax->null();
+-
+-            case 'U':
+-            {
+-                std::uint8_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 'i':
+-            {
+-                std::int8_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_integer(number);
+-            }
+-
+-            case 'I':
+-            {
+-                std::int16_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_integer(number);
+-            }
+-
+-            case 'l':
+-            {
+-                std::int32_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_integer(number);
+-            }
+-
+-            case 'L':
+-            {
+-                std::int64_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_integer(number);
+-            }
+-
+-            case 'd':
+-            {
+-                float number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 'D':
+-            {
+-                double number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 'H':
+-            {
+-                return get_ubjson_high_precision_number();
+-            }
+-
+-            case 'C':  // char
+-            {
+-                get();
+-                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "char")))
+-                {
+-                    return false;
+-                }
+-                if (JSON_HEDLEY_UNLIKELY(current > 127))
+-                {
+-                    auto last_token = get_token_string();
+-                    return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::ubjson, "byte after 'C' must be in range 0x00..0x7F; last byte: 0x" + last_token, "char"), BasicJsonType()));
+-                }
+-                string_t s(1, static_cast<typename string_t::value_type>(current));
+-                return sax->string(s);
+-            }
+-
+-            case 'S':  // string
+-            {
+-                string_t s;
+-                return get_ubjson_string(s) && sax->string(s);
+-            }
+-
+-            case '[':  // array
+-                return get_ubjson_array();
+-
+-            case '{':  // object
+-                return get_ubjson_object();
+-
+-            default: // anything else
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::ubjson, "invalid byte: 0x" + last_token, "value"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @return whether array creation completed
+-    */
+-    bool get_ubjson_array()
+-    {
+-        std::pair<std::size_t, char_int_type> size_and_type;
+-        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
+-        {
+-            return false;
+-        }
+-
+-        if (size_and_type.first != string_t::npos)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!sax->start_array(size_and_type.first)))
+-            {
+-                return false;
+-            }
+-
+-            if (size_and_type.second != 0)
+-            {
+-                if (size_and_type.second != 'N')
+-                {
+-                    for (std::size_t i = 0; i < size_and_type.first; ++i)
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second)))
+-                        {
+-                            return false;
+-                        }
+-                    }
+-                }
+-            }
+-            else
+-            {
+-                for (std::size_t i = 0; i < size_and_type.first; ++i)
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal()))
+-                    {
+-                        return false;
+-                    }
+-                }
+-            }
+-        }
+-        else
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!sax->start_array(static_cast<std::size_t>(-1))))
+-            {
+-                return false;
+-            }
+-
+-            while (current != ']')
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal(false)))
+-                {
+-                    return false;
+-                }
+-                get_ignore_noop();
+-            }
+-        }
+-
+-        return sax->end_array();
+-    }
+-
+-    /*!
+-    @return whether object creation completed
+-    */
+-    bool get_ubjson_object()
+-    {
+-        std::pair<std::size_t, char_int_type> size_and_type;
+-        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
+-        {
+-            return false;
+-        }
+-
+-        string_t key;
+-        if (size_and_type.first != string_t::npos)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!sax->start_object(size_and_type.first)))
+-            {
+-                return false;
+-            }
+-
+-            if (size_and_type.second != 0)
+-            {
+-                for (std::size_t i = 0; i < size_and_type.first; ++i)
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key) || !sax->key(key)))
+-                    {
+-                        return false;
+-                    }
+-                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second)))
+-                    {
+-                        return false;
+-                    }
+-                    key.clear();
+-                }
+-            }
+-            else
+-            {
+-                for (std::size_t i = 0; i < size_and_type.first; ++i)
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key) || !sax->key(key)))
+-                    {
+-                        return false;
+-                    }
+-                    if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal()))
+-                    {
+-                        return false;
+-                    }
+-                    key.clear();
+-                }
+-            }
+-        }
+-        else
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!sax->start_object(static_cast<std::size_t>(-1))))
+-            {
+-                return false;
+-            }
+-
+-            while (current != '}')
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, false) || !sax->key(key)))
+-                {
+-                    return false;
+-                }
+-                if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal()))
+-                {
+-                    return false;
+-                }
+-                get_ignore_noop();
+-                key.clear();
+-            }
+-        }
+-
+-        return sax->end_object();
+-    }
+-
+-    // Note, no reader for UBJSON binary types is implemented because they do
+-    // not exist
+-
+-    bool get_ubjson_high_precision_number()
+-    {
+-        // get size of following number string
+-        std::size_t size{};
+-        auto res = get_ubjson_size_value(size);
+-        if (JSON_HEDLEY_UNLIKELY(!res))
+-        {
+-            return res;
+-        }
+-
+-        // get number string
+-        std::vector<char> number_vector;
+-        for (std::size_t i = 0; i < size; ++i)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "number")))
+-            {
+-                return false;
+-            }
+-            number_vector.push_back(static_cast<char>(current));
+-        }
+-
+-        // parse number string
+-        using ia_type = decltype(detail::input_adapter(number_vector));
+-        auto number_lexer = detail::lexer<BasicJsonType, ia_type>(detail::input_adapter(number_vector), false);
+-        const auto result_number = number_lexer.scan();
+-        const auto number_string = number_lexer.get_token_string();
+-        const auto result_remainder = number_lexer.scan();
+-
+-        using token_type = typename detail::lexer_base<BasicJsonType>::token_type;
+-
+-        if (JSON_HEDLEY_UNLIKELY(result_remainder != token_type::end_of_input))
+-        {
+-            return sax->parse_error(chars_read, number_string, parse_error::create(115, chars_read, exception_message(input_format_t::ubjson, "invalid number text: " + number_lexer.get_token_string(), "high-precision number"), BasicJsonType()));
+-        }
+-
+-        switch (result_number)
+-        {
+-            case token_type::value_integer:
+-                return sax->number_integer(number_lexer.get_number_integer());
+-            case token_type::value_unsigned:
+-                return sax->number_unsigned(number_lexer.get_number_unsigned());
+-            case token_type::value_float:
+-                return sax->number_float(number_lexer.get_number_float(), std::move(number_string));
+-            case token_type::uninitialized:
+-            case token_type::literal_true:
+-            case token_type::literal_false:
+-            case token_type::literal_null:
+-            case token_type::value_string:
+-            case token_type::begin_array:
+-            case token_type::begin_object:
+-            case token_type::end_array:
+-            case token_type::end_object:
+-            case token_type::name_separator:
+-            case token_type::value_separator:
+-            case token_type::parse_error:
+-            case token_type::end_of_input:
+-            case token_type::literal_or_value:
+-            default:
+-                return sax->parse_error(chars_read, number_string, parse_error::create(115, chars_read, exception_message(input_format_t::ubjson, "invalid number text: " + number_lexer.get_token_string(), "high-precision number"), BasicJsonType()));
+-        }
+-    }
+-
+-    ///////////////////////
+-    // Utility functions //
+-    ///////////////////////
+-
+-    /*!
+-    @brief get next character from the input
+-
+-    This function provides the interface to the used input adapter. It does
+-    not throw in case the input reached EOF, but returns a -'ve valued
+-    `std::char_traits<char_type>::eof()` in that case.
+-
+-    @return character read from the input
+-    */
+-    char_int_type get()
+-    {
+-        ++chars_read;
+-        return current = ia.get_character();
+-    }
+-
+-    /*!
+-    @return character read from the input after ignoring all 'N' entries
+-    */
+-    char_int_type get_ignore_noop()
+-    {
+-        do
+-        {
+-            get();
+-        }
+-        while (current == 'N');
+-
+-        return current;
+-    }
+-
+-    /*
+-    @brief read a number from the input
+-
+-    @tparam NumberType the type of the number
+-    @param[in] format   the current format (for diagnostics)
+-    @param[out] result  number of type @a NumberType
+-
+-    @return whether conversion completed
+-
+-    @note This function needs to respect the system's endianness, because
+-          bytes in CBOR, MessagePack, and UBJSON are stored in network order
+-          (big endian) and therefore need reordering on little endian systems.
+-    */
+-    template<typename NumberType, bool InputIsLittleEndian = false>
+-    bool get_number(const input_format_t format, NumberType& result)
+-    {
+-        // step 1: read input into array with system's byte order
+-        std::array<std::uint8_t, sizeof(NumberType)> vec{};
+-        for (std::size_t i = 0; i < sizeof(NumberType); ++i)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "number")))
+-            {
+-                return false;
+-            }
+-
+-            // reverse byte order prior to conversion if necessary
+-            if (is_little_endian != InputIsLittleEndian)
+-            {
+-                vec[sizeof(NumberType) - i - 1] = static_cast<std::uint8_t>(current);
+-            }
+-            else
+-            {
+-                vec[i] = static_cast<std::uint8_t>(current); // LCOV_EXCL_LINE
+-            }
+-        }
+-
+-        // step 2: convert array into number of type T and return
+-        std::memcpy(&result, vec.data(), sizeof(NumberType));
+-        return true;
+-    }
+-
+-    /*!
+-    @brief create a string by reading characters from the input
+-
+-    @tparam NumberType the type of the number
+-    @param[in] format the current format (for diagnostics)
+-    @param[in] len number of characters to read
+-    @param[out] result string created by reading @a len bytes
+-
+-    @return whether string creation completed
+-
+-    @note We can not reserve @a len bytes for the result, because @a len
+-          may be too large. Usually, @ref unexpect_eof() detects the end of
+-          the input before we run out of string memory.
+-    */
+-    template<typename NumberType>
+-    bool get_string(const input_format_t format,
+-                    const NumberType len,
+-                    string_t& result)
+-    {
+-        bool success = true;
+-        for (NumberType i = 0; i < len; i++)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "string")))
+-            {
+-                success = false;
+-                break;
+-            }
+-            result.push_back(static_cast<typename string_t::value_type>(current));
+-        }
+-        return success;
+-    }
+-
+-    /*!
+-    @brief create a byte array by reading bytes from the input
+-
+-    @tparam NumberType the type of the number
+-    @param[in] format the current format (for diagnostics)
+-    @param[in] len number of bytes to read
+-    @param[out] result byte array created by reading @a len bytes
+-
+-    @return whether byte array creation completed
+-
+-    @note We can not reserve @a len bytes for the result, because @a len
+-          may be too large. Usually, @ref unexpect_eof() detects the end of
+-          the input before we run out of memory.
+-    */
+-    template<typename NumberType>
+-    bool get_binary(const input_format_t format,
+-                    const NumberType len,
+-                    binary_t& result)
+-    {
+-        bool success = true;
+-        for (NumberType i = 0; i < len; i++)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "binary")))
+-            {
+-                success = false;
+-                break;
+-            }
+-            result.push_back(static_cast<std::uint8_t>(current));
+-        }
+-        return success;
+-    }
+-
+-    /*!
+-    @param[in] format   the current format (for diagnostics)
+-    @param[in] context  further context information (for diagnostics)
+-    @return whether the last read character is not EOF
+-    */
+-    JSON_HEDLEY_NON_NULL(3)
+-    bool unexpect_eof(const input_format_t format, const char* context) const
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(current == std::char_traits<char_type>::eof()))
+-        {
+-            return sax->parse_error(chars_read, "<end of file>",
+-                                    parse_error::create(110, chars_read, exception_message(format, "unexpected end of input", context), BasicJsonType()));
+-        }
+-        return true;
+-    }
+-
+-    /*!
+-    @return a string representation of the last read byte
+-    */
+-    std::string get_token_string() const
+-    {
+-        std::array<char, 3> cr{{}};
+-        static_cast<void>((std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(current))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-        return std::string{cr.data()};
+-    }
+-
+-    /*!
+-    @param[in] format   the current format
+-    @param[in] detail   a detailed error message
+-    @param[in] context  further context information
+-    @return a message string to use in the parse_error exceptions
+-    */
+-    std::string exception_message(const input_format_t format,
+-                                  const std::string& detail,
+-                                  const std::string& context) const
+-    {
+-        std::string error_msg = "syntax error while parsing ";
+-
+-        switch (format)
+-        {
+-            case input_format_t::cbor:
+-                error_msg += "CBOR";
+-                break;
+-
+-            case input_format_t::msgpack:
+-                error_msg += "MessagePack";
+-                break;
+-
+-            case input_format_t::ubjson:
+-                error_msg += "UBJSON";
+-                break;
+-
+-            case input_format_t::bson:
+-                error_msg += "BSON";
+-                break;
+-
+-            case input_format_t::json: // LCOV_EXCL_LINE
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-
+-        return error_msg + " " + context + ": " + detail;
+-    }
+-
+-  private:
+-    /// input adapter
+-    InputAdapterType ia;
+-
+-    /// the current character
+-    char_int_type current = std::char_traits<char_type>::eof();
+-
+-    /// the number of characters read
+-    std::size_t chars_read = 0;
+-
+-    /// whether we can assume little endianness
+-    const bool is_little_endian = little_endianness();
+-
+-    /// the SAX parser
+-    json_sax_t* sax = nullptr;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/input_adapters.hpp>
+-
+-// #include <nlohmann/detail/input/lexer.hpp>
+-
+-// #include <nlohmann/detail/input/parser.hpp>
+-
+-
+-#include <cmath> // isfinite
+-#include <cstdint> // uint8_t
+-#include <functional> // function
+-#include <string> // string
+-#include <utility> // move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/input/input_adapters.hpp>
+-
+-// #include <nlohmann/detail/input/json_sax.hpp>
+-
+-// #include <nlohmann/detail/input/lexer.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/is_sax.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-////////////
+-// parser //
+-////////////
+-
+-enum class parse_event_t : std::uint8_t
+-{
+-    /// the parser read `{` and started to process a JSON object
+-    object_start,
+-    /// the parser read `}` and finished processing a JSON object
+-    object_end,
+-    /// the parser read `[` and started to process a JSON array
+-    array_start,
+-    /// the parser read `]` and finished processing a JSON array
+-    array_end,
+-    /// the parser read a key of a value in an object
+-    key,
+-    /// the parser finished reading a JSON value
+-    value
+-};
+-
+-template<typename BasicJsonType>
+-using parser_callback_t =
+-    std::function<bool(int /*depth*/, parse_event_t /*event*/, BasicJsonType& /*parsed*/)>;
+-
+-/*!
+-@brief syntax analysis
+-
+-This class implements a recursive descent parser.
+-*/
+-template<typename BasicJsonType, typename InputAdapterType>
+-class parser
+-{
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using lexer_t = lexer<BasicJsonType, InputAdapterType>;
+-    using token_type = typename lexer_t::token_type;
+-
+-  public:
+-    /// a parser reading from an input adapter
+-    explicit parser(InputAdapterType&& adapter,
+-                    const parser_callback_t<BasicJsonType> cb = nullptr,
+-                    const bool allow_exceptions_ = true,
+-                    const bool skip_comments = false)
+-        : callback(cb)
+-        , m_lexer(std::move(adapter), skip_comments)
+-        , allow_exceptions(allow_exceptions_)
+-    {
+-        // read first token
+-        get_token();
+-    }
+-
+-    /*!
+-    @brief public parser interface
+-
+-    @param[in] strict      whether to expect the last token to be EOF
+-    @param[in,out] result  parsed JSON value
+-
+-    @throw parse_error.101 in case of an unexpected token
+-    @throw parse_error.102 if to_unicode fails or surrogate error
+-    @throw parse_error.103 if to_unicode fails
+-    */
+-    void parse(const bool strict, BasicJsonType& result)
+-    {
+-        if (callback)
+-        {
+-            json_sax_dom_callback_parser<BasicJsonType> sdp(result, callback, allow_exceptions);
+-            sax_parse_internal(&sdp);
+-
+-            // in strict mode, input must be completely read
+-            if (strict && (get_token() != token_type::end_of_input))
+-            {
+-                sdp.parse_error(m_lexer.get_position(),
+-                                m_lexer.get_token_string(),
+-                                parse_error::create(101, m_lexer.get_position(),
+-                                                    exception_message(token_type::end_of_input, "value"), BasicJsonType()));
+-            }
+-
+-            // in case of an error, return discarded value
+-            if (sdp.is_errored())
+-            {
+-                result = value_t::discarded;
+-                return;
+-            }
+-
+-            // set top-level value to null if it was discarded by the callback
+-            // function
+-            if (result.is_discarded())
+-            {
+-                result = nullptr;
+-            }
+-        }
+-        else
+-        {
+-            json_sax_dom_parser<BasicJsonType> sdp(result, allow_exceptions);
+-            sax_parse_internal(&sdp);
+-
+-            // in strict mode, input must be completely read
+-            if (strict && (get_token() != token_type::end_of_input))
+-            {
+-                sdp.parse_error(m_lexer.get_position(),
+-                                m_lexer.get_token_string(),
+-                                parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), BasicJsonType()));
+-            }
+-
+-            // in case of an error, return discarded value
+-            if (sdp.is_errored())
+-            {
+-                result = value_t::discarded;
+-                return;
+-            }
+-        }
+-
+-        result.assert_invariant();
+-    }
+-
+-    /*!
+-    @brief public accept interface
+-
+-    @param[in] strict  whether to expect the last token to be EOF
+-    @return whether the input is a proper JSON text
+-    */
+-    bool accept(const bool strict = true)
+-    {
+-        json_sax_acceptor<BasicJsonType> sax_acceptor;
+-        return sax_parse(&sax_acceptor, strict);
+-    }
+-
+-    template<typename SAX>
+-    JSON_HEDLEY_NON_NULL(2)
+-    bool sax_parse(SAX* sax, const bool strict = true)
+-    {
+-        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
+-        const bool result = sax_parse_internal(sax);
+-
+-        // strict mode: next byte must be EOF
+-        if (result && strict && (get_token() != token_type::end_of_input))
+-        {
+-            return sax->parse_error(m_lexer.get_position(),
+-                                    m_lexer.get_token_string(),
+-                                    parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), BasicJsonType()));
+-        }
+-
+-        return result;
+-    }
+-
+-  private:
+-    template<typename SAX>
+-    JSON_HEDLEY_NON_NULL(2)
+-    bool sax_parse_internal(SAX* sax)
+-    {
+-        // stack to remember the hierarchy of structured values we are parsing
+-        // true = array; false = object
+-        std::vector<bool> states;
+-        // value to avoid a goto (see comment where set to true)
+-        bool skip_to_state_evaluation = false;
+-
+-        while (true)
+-        {
+-            if (!skip_to_state_evaluation)
+-            {
+-                // invariant: get_token() was called before each iteration
+-                switch (last_token)
+-                {
+-                    case token_type::begin_object:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->start_object(static_cast<std::size_t>(-1))))
+-                        {
+-                            return false;
+-                        }
+-
+-                        // closing } -> we are done
+-                        if (get_token() == token_type::end_object)
+-                        {
+-                            if (JSON_HEDLEY_UNLIKELY(!sax->end_object()))
+-                            {
+-                                return false;
+-                            }
+-                            break;
+-                        }
+-
+-                        // parse key
+-                        if (JSON_HEDLEY_UNLIKELY(last_token != token_type::value_string))
+-                        {
+-                            return sax->parse_error(m_lexer.get_position(),
+-                                                    m_lexer.get_token_string(),
+-                                                    parse_error::create(101, m_lexer.get_position(), exception_message(token_type::value_string, "object key"), BasicJsonType()));
+-                        }
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->key(m_lexer.get_string())))
+-                        {
+-                            return false;
+-                        }
+-
+-                        // parse separator (:)
+-                        if (JSON_HEDLEY_UNLIKELY(get_token() != token_type::name_separator))
+-                        {
+-                            return sax->parse_error(m_lexer.get_position(),
+-                                                    m_lexer.get_token_string(),
+-                                                    parse_error::create(101, m_lexer.get_position(), exception_message(token_type::name_separator, "object separator"), BasicJsonType()));
+-                        }
+-
+-                        // remember we are now inside an object
+-                        states.push_back(false);
+-
+-                        // parse values
+-                        get_token();
+-                        continue;
+-                    }
+-
+-                    case token_type::begin_array:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->start_array(static_cast<std::size_t>(-1))))
+-                        {
+-                            return false;
+-                        }
+-
+-                        // closing ] -> we are done
+-                        if (get_token() == token_type::end_array)
+-                        {
+-                            if (JSON_HEDLEY_UNLIKELY(!sax->end_array()))
+-                            {
+-                                return false;
+-                            }
+-                            break;
+-                        }
+-
+-                        // remember we are now inside an array
+-                        states.push_back(true);
+-
+-                        // parse values (no need to call get_token)
+-                        continue;
+-                    }
+-
+-                    case token_type::value_float:
+-                    {
+-                        const auto res = m_lexer.get_number_float();
+-
+-                        if (JSON_HEDLEY_UNLIKELY(!std::isfinite(res)))
+-                        {
+-                            return sax->parse_error(m_lexer.get_position(),
+-                                                    m_lexer.get_token_string(),
+-                                                    out_of_range::create(406, "number overflow parsing '" + m_lexer.get_token_string() + "'", BasicJsonType()));
+-                        }
+-
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->number_float(res, m_lexer.get_string())))
+-                        {
+-                            return false;
+-                        }
+-
+-                        break;
+-                    }
+-
+-                    case token_type::literal_false:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->boolean(false)))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::literal_null:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->null()))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::literal_true:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->boolean(true)))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::value_integer:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->number_integer(m_lexer.get_number_integer())))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::value_string:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->string(m_lexer.get_string())))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::value_unsigned:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->number_unsigned(m_lexer.get_number_unsigned())))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::parse_error:
+-                    {
+-                        // using "uninitialized" to avoid "expected" message
+-                        return sax->parse_error(m_lexer.get_position(),
+-                                                m_lexer.get_token_string(),
+-                                                parse_error::create(101, m_lexer.get_position(), exception_message(token_type::uninitialized, "value"), BasicJsonType()));
+-                    }
+-
+-                    case token_type::uninitialized:
+-                    case token_type::end_array:
+-                    case token_type::end_object:
+-                    case token_type::name_separator:
+-                    case token_type::value_separator:
+-                    case token_type::end_of_input:
+-                    case token_type::literal_or_value:
+-                    default: // the last token was unexpected
+-                    {
+-                        return sax->parse_error(m_lexer.get_position(),
+-                                                m_lexer.get_token_string(),
+-                                                parse_error::create(101, m_lexer.get_position(), exception_message(token_type::literal_or_value, "value"), BasicJsonType()));
+-                    }
+-                }
+-            }
+-            else
+-            {
+-                skip_to_state_evaluation = false;
+-            }
+-
+-            // we reached this line after we successfully parsed a value
+-            if (states.empty())
+-            {
+-                // empty stack: we reached the end of the hierarchy: done
+-                return true;
+-            }
+-
+-            if (states.back())  // array
+-            {
+-                // comma -> next value
+-                if (get_token() == token_type::value_separator)
+-                {
+-                    // parse a new value
+-                    get_token();
+-                    continue;
+-                }
+-
+-                // closing ]
+-                if (JSON_HEDLEY_LIKELY(last_token == token_type::end_array))
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!sax->end_array()))
+-                    {
+-                        return false;
+-                    }
+-
+-                    // We are done with this array. Before we can parse a
+-                    // new value, we need to evaluate the new state first.
+-                    // By setting skip_to_state_evaluation to false, we
+-                    // are effectively jumping to the beginning of this if.
+-                    JSON_ASSERT(!states.empty());
+-                    states.pop_back();
+-                    skip_to_state_evaluation = true;
+-                    continue;
+-                }
+-
+-                return sax->parse_error(m_lexer.get_position(),
+-                                        m_lexer.get_token_string(),
+-                                        parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_array, "array"), BasicJsonType()));
+-            }
+-
+-            // states.back() is false -> object
+-
+-            // comma -> next value
+-            if (get_token() == token_type::value_separator)
+-            {
+-                // parse key
+-                if (JSON_HEDLEY_UNLIKELY(get_token() != token_type::value_string))
+-                {
+-                    return sax->parse_error(m_lexer.get_position(),
+-                                            m_lexer.get_token_string(),
+-                                            parse_error::create(101, m_lexer.get_position(), exception_message(token_type::value_string, "object key"), BasicJsonType()));
+-                }
+-
+-                if (JSON_HEDLEY_UNLIKELY(!sax->key(m_lexer.get_string())))
+-                {
+-                    return false;
+-                }
+-
+-                // parse separator (:)
+-                if (JSON_HEDLEY_UNLIKELY(get_token() != token_type::name_separator))
+-                {
+-                    return sax->parse_error(m_lexer.get_position(),
+-                                            m_lexer.get_token_string(),
+-                                            parse_error::create(101, m_lexer.get_position(), exception_message(token_type::name_separator, "object separator"), BasicJsonType()));
+-                }
+-
+-                // parse values
+-                get_token();
+-                continue;
+-            }
+-
+-            // closing }
+-            if (JSON_HEDLEY_LIKELY(last_token == token_type::end_object))
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!sax->end_object()))
+-                {
+-                    return false;
+-                }
+-
+-                // We are done with this object. Before we can parse a
+-                // new value, we need to evaluate the new state first.
+-                // By setting skip_to_state_evaluation to false, we
+-                // are effectively jumping to the beginning of this if.
+-                JSON_ASSERT(!states.empty());
+-                states.pop_back();
+-                skip_to_state_evaluation = true;
+-                continue;
+-            }
+-
+-            return sax->parse_error(m_lexer.get_position(),
+-                                    m_lexer.get_token_string(),
+-                                    parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_object, "object"), BasicJsonType()));
+-        }
+-    }
+-
+-    /// get next token from lexer
+-    token_type get_token()
+-    {
+-        return last_token = m_lexer.scan();
+-    }
+-
+-    std::string exception_message(const token_type expected, const std::string& context)
+-    {
+-        std::string error_msg = "syntax error ";
+-
+-        if (!context.empty())
+-        {
+-            error_msg += "while parsing " + context + " ";
+-        }
+-
+-        error_msg += "- ";
+-
+-        if (last_token == token_type::parse_error)
+-        {
+-            error_msg += std::string(m_lexer.get_error_message()) + "; last read: '" +
+-                         m_lexer.get_token_string() + "'";
+-        }
+-        else
+-        {
+-            error_msg += "unexpected " + std::string(lexer_t::token_type_name(last_token));
+-        }
+-
+-        if (expected != token_type::uninitialized)
+-        {
+-            error_msg += "; expected " + std::string(lexer_t::token_type_name(expected));
+-        }
+-
+-        return error_msg;
+-    }
+-
+-  private:
+-    /// callback function
+-    const parser_callback_t<BasicJsonType> callback = nullptr;
+-    /// the type of the last read token
+-    token_type last_token = token_type::uninitialized;
+-    /// the lexer
+-    lexer_t m_lexer;
+-    /// whether to throw exceptions in case of errors
+-    const bool allow_exceptions = true;
+-};
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/iterators/internal_iterator.hpp>
+-
+-
+-// #include <nlohmann/detail/iterators/primitive_iterator.hpp>
+-
+-
+-#include <cstddef> // ptrdiff_t
+-#include <limits>  // numeric_limits
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/*
+-@brief an iterator for primitive JSON types
+-
+-This class models an iterator for primitive JSON types (boolean, number,
+-string). It's only purpose is to allow the iterator/const_iterator classes
+-to "iterate" over primitive values. Internally, the iterator is modeled by
+-a `difference_type` variable. Value begin_value (`0`) models the begin,
+-end_value (`1`) models past the end.
+-*/
+-class primitive_iterator_t
+-{
+-  private:
+-    using difference_type = std::ptrdiff_t;
+-    static constexpr difference_type begin_value = 0;
+-    static constexpr difference_type end_value = begin_value + 1;
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /// iterator as signed integer type
+-    difference_type m_it = (std::numeric_limits<std::ptrdiff_t>::min)();
+-
+-  public:
+-    constexpr difference_type get_value() const noexcept
+-    {
+-        return m_it;
+-    }
+-
+-    /// set iterator to a defined beginning
+-    void set_begin() noexcept
+-    {
+-        m_it = begin_value;
+-    }
+-
+-    /// set iterator to a defined past the end
+-    void set_end() noexcept
+-    {
+-        m_it = end_value;
+-    }
+-
+-    /// return whether the iterator can be dereferenced
+-    constexpr bool is_begin() const noexcept
+-    {
+-        return m_it == begin_value;
+-    }
+-
+-    /// return whether the iterator is at end
+-    constexpr bool is_end() const noexcept
+-    {
+-        return m_it == end_value;
+-    }
+-
+-    friend constexpr bool operator==(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept
+-    {
+-        return lhs.m_it == rhs.m_it;
+-    }
+-
+-    friend constexpr bool operator<(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept
+-    {
+-        return lhs.m_it < rhs.m_it;
+-    }
+-
+-    primitive_iterator_t operator+(difference_type n) noexcept
+-    {
+-        auto result = *this;
+-        result += n;
+-        return result;
+-    }
+-
+-    friend constexpr difference_type operator-(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept
+-    {
+-        return lhs.m_it - rhs.m_it;
+-    }
+-
+-    primitive_iterator_t& operator++() noexcept
+-    {
+-        ++m_it;
+-        return *this;
+-    }
+-
+-    primitive_iterator_t const operator++(int) noexcept // NOLINT(readability-const-return-type)
+-    {
+-        auto result = *this;
+-        ++m_it;
+-        return result;
+-    }
+-
+-    primitive_iterator_t& operator--() noexcept
+-    {
+-        --m_it;
+-        return *this;
+-    }
+-
+-    primitive_iterator_t const operator--(int) noexcept // NOLINT(readability-const-return-type)
+-    {
+-        auto result = *this;
+-        --m_it;
+-        return result;
+-    }
+-
+-    primitive_iterator_t& operator+=(difference_type n) noexcept
+-    {
+-        m_it += n;
+-        return *this;
+-    }
+-
+-    primitive_iterator_t& operator-=(difference_type n) noexcept
+-    {
+-        m_it -= n;
+-        return *this;
+-    }
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/*!
+-@brief an iterator value
+-
+-@note This structure could easily be a union, but MSVC currently does not allow
+-unions members with complex constructors, see https://github.com/nlohmann/json/pull/105.
+-*/
+-template<typename BasicJsonType> struct internal_iterator
+-{
+-    /// iterator for JSON objects
+-    typename BasicJsonType::object_t::iterator object_iterator {};
+-    /// iterator for JSON arrays
+-    typename BasicJsonType::array_t::iterator array_iterator {};
+-    /// generic iterator for all other types
+-    primitive_iterator_t primitive_iterator {};
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/iterators/iter_impl.hpp>
+-
+-
+-#include <iterator> // iterator, random_access_iterator_tag, bidirectional_iterator_tag, advance, next
+-#include <type_traits> // conditional, is_const, remove_const
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/iterators/internal_iterator.hpp>
+-
+-// #include <nlohmann/detail/iterators/primitive_iterator.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-// forward declare, to be able to friend it later on
+-template<typename IteratorType> class iteration_proxy;
+-template<typename IteratorType> class iteration_proxy_value;
+-
+-/*!
+-@brief a template for a bidirectional iterator for the @ref basic_json class
+-This class implements a both iterators (iterator and const_iterator) for the
+-@ref basic_json class.
+-@note An iterator is called *initialized* when a pointer to a JSON value has
+-      been set (e.g., by a constructor or a copy assignment). If the iterator is
+-      default-constructed, it is *uninitialized* and most methods are undefined.
+-      **The library uses assertions to detect calls on uninitialized iterators.**
+-@requirement The class satisfies the following concept requirements:
+--
+-[BidirectionalIterator](https://en.cppreference.com/w/cpp/named_req/BidirectionalIterator):
+-  The iterator that can be moved can be moved in both directions (i.e.
+-  incremented and decremented).
+-@since version 1.0.0, simplified in version 2.0.9, change to bidirectional
+-       iterators in version 3.0.0 (see https://github.com/nlohmann/json/issues/593)
+-*/
+-template<typename BasicJsonType>
+-class iter_impl // NOLINT(cppcoreguidelines-special-member-functions,hicpp-special-member-functions)
+-{
+-    /// the iterator with BasicJsonType of different const-ness
+-    using other_iter_impl = iter_impl<typename std::conditional<std::is_const<BasicJsonType>::value, typename std::remove_const<BasicJsonType>::type, const BasicJsonType>::type>;
+-    /// allow basic_json to access private members
+-    friend other_iter_impl;
+-    friend BasicJsonType;
+-    friend iteration_proxy<iter_impl>;
+-    friend iteration_proxy_value<iter_impl>;
+-
+-    using object_t = typename BasicJsonType::object_t;
+-    using array_t = typename BasicJsonType::array_t;
+-    // make sure BasicJsonType is basic_json or const basic_json
+-    static_assert(is_basic_json<typename std::remove_const<BasicJsonType>::type>::value,
+-                  "iter_impl only accepts (const) basic_json");
+-
+-  public:
+-
+-    /// The std::iterator class template (used as a base class to provide typedefs) is deprecated in C++17.
+-    /// The C++ Standard has never required user-defined iterators to derive from std::iterator.
+-    /// A user-defined iterator should provide publicly accessible typedefs named
+-    /// iterator_category, value_type, difference_type, pointer, and reference.
+-    /// Note that value_type is required to be non-const, even for constant iterators.
+-    using iterator_category = std::bidirectional_iterator_tag;
+-
+-    /// the type of the values when the iterator is dereferenced
+-    using value_type = typename BasicJsonType::value_type;
+-    /// a type to represent differences between iterators
+-    using difference_type = typename BasicJsonType::difference_type;
+-    /// defines a pointer to the type iterated over (value_type)
+-    using pointer = typename std::conditional<std::is_const<BasicJsonType>::value,
+-          typename BasicJsonType::const_pointer,
+-          typename BasicJsonType::pointer>::type;
+-    /// defines a reference to the type iterated over (value_type)
+-    using reference =
+-        typename std::conditional<std::is_const<BasicJsonType>::value,
+-        typename BasicJsonType::const_reference,
+-        typename BasicJsonType::reference>::type;
+-
+-    iter_impl() = default;
+-    ~iter_impl() = default;
+-    iter_impl(iter_impl&&) noexcept = default;
+-    iter_impl& operator=(iter_impl&&) noexcept = default;
+-
+-    /*!
+-    @brief constructor for a given JSON instance
+-    @param[in] object  pointer to a JSON object for this iterator
+-    @pre object != nullptr
+-    @post The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    explicit iter_impl(pointer object) noexcept : m_object(object)
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                m_it.object_iterator = typename object_t::iterator();
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_it.array_iterator = typename array_t::iterator();
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                m_it.primitive_iterator = primitive_iterator_t();
+-                break;
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @note The conventional copy constructor and copy assignment are implicitly
+-          defined. Combined with the following converting constructor and
+-          assignment, they support: (1) copy from iterator to iterator, (2)
+-          copy from const iterator to const iterator, and (3) conversion from
+-          iterator to const iterator. However conversion from const iterator
+-          to iterator is not defined.
+-    */
+-
+-    /*!
+-    @brief const copy constructor
+-    @param[in] other const iterator to copy from
+-    @note This copy constructor had to be defined explicitly to circumvent a bug
+-          occurring on msvc v19.0 compiler (VS 2015) debug build. For more
+-          information refer to: https://github.com/nlohmann/json/issues/1608
+-    */
+-    iter_impl(const iter_impl<const BasicJsonType>& other) noexcept
+-        : m_object(other.m_object), m_it(other.m_it)
+-    {}
+-
+-    /*!
+-    @brief converting assignment
+-    @param[in] other const iterator to copy from
+-    @return const/non-const iterator
+-    @note It is not checked whether @a other is initialized.
+-    */
+-    iter_impl& operator=(const iter_impl<const BasicJsonType>& other) noexcept
+-    {
+-        if (&other != this)
+-        {
+-            m_object = other.m_object;
+-            m_it = other.m_it;
+-        }
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief converting constructor
+-    @param[in] other  non-const iterator to copy from
+-    @note It is not checked whether @a other is initialized.
+-    */
+-    iter_impl(const iter_impl<typename std::remove_const<BasicJsonType>::type>& other) noexcept
+-        : m_object(other.m_object), m_it(other.m_it)
+-    {}
+-
+-    /*!
+-    @brief converting assignment
+-    @param[in] other  non-const iterator to copy from
+-    @return const/non-const iterator
+-    @note It is not checked whether @a other is initialized.
+-    */
+-    iter_impl& operator=(const iter_impl<typename std::remove_const<BasicJsonType>::type>& other) noexcept // NOLINT(cert-oop54-cpp)
+-    {
+-        m_object = other.m_object;
+-        m_it = other.m_it;
+-        return *this;
+-    }
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /*!
+-    @brief set the iterator to the first value
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    void set_begin() noexcept
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                m_it.object_iterator = m_object->m_value.object->begin();
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_it.array_iterator = m_object->m_value.array->begin();
+-                break;
+-            }
+-
+-            case value_t::null:
+-            {
+-                // set to end so begin()==end() is true: null is empty
+-                m_it.primitive_iterator.set_end();
+-                break;
+-            }
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                m_it.primitive_iterator.set_begin();
+-                break;
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief set the iterator past the last value
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    void set_end() noexcept
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                m_it.object_iterator = m_object->m_value.object->end();
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_it.array_iterator = m_object->m_value.array->end();
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                m_it.primitive_iterator.set_end();
+-                break;
+-            }
+-        }
+-    }
+-
+-  public:
+-    /*!
+-    @brief return a reference to the value pointed to by the iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    reference operator*() const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                JSON_ASSERT(m_it.object_iterator != m_object->m_value.object->end());
+-                return m_it.object_iterator->second;
+-            }
+-
+-            case value_t::array:
+-            {
+-                JSON_ASSERT(m_it.array_iterator != m_object->m_value.array->end());
+-                return *m_it.array_iterator;
+-            }
+-
+-            case value_t::null:
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.is_begin()))
+-                {
+-                    return *m_object;
+-                }
+-
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief dereference the iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    pointer operator->() const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                JSON_ASSERT(m_it.object_iterator != m_object->m_value.object->end());
+-                return &(m_it.object_iterator->second);
+-            }
+-
+-            case value_t::array:
+-            {
+-                JSON_ASSERT(m_it.array_iterator != m_object->m_value.array->end());
+-                return &*m_it.array_iterator;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.is_begin()))
+-                {
+-                    return m_object;
+-                }
+-
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief post-increment (it++)
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl const operator++(int) // NOLINT(readability-const-return-type)
+-    {
+-        auto result = *this;
+-        ++(*this);
+-        return result;
+-    }
+-
+-    /*!
+-    @brief pre-increment (++it)
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl& operator++()
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                std::advance(m_it.object_iterator, 1);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                std::advance(m_it.array_iterator, 1);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                ++m_it.primitive_iterator;
+-                break;
+-            }
+-        }
+-
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief post-decrement (it--)
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl const operator--(int) // NOLINT(readability-const-return-type)
+-    {
+-        auto result = *this;
+-        --(*this);
+-        return result;
+-    }
+-
+-    /*!
+-    @brief pre-decrement (--it)
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl& operator--()
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                std::advance(m_it.object_iterator, -1);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                std::advance(m_it.array_iterator, -1);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                --m_it.primitive_iterator;
+-                break;
+-            }
+-        }
+-
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief comparison: equal
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    template < typename IterImpl, detail::enable_if_t < (std::is_same<IterImpl, iter_impl>::value || std::is_same<IterImpl, other_iter_impl>::value), std::nullptr_t > = nullptr >
+-    bool operator==(const IterImpl& other) const
+-    {
+-        // if objects are not the same, the comparison is undefined
+-        if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", *m_object));
+-        }
+-
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                return (m_it.object_iterator == other.m_it.object_iterator);
+-
+-            case value_t::array:
+-                return (m_it.array_iterator == other.m_it.array_iterator);
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                return (m_it.primitive_iterator == other.m_it.primitive_iterator);
+-        }
+-    }
+-
+-    /*!
+-    @brief comparison: not equal
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    template < typename IterImpl, detail::enable_if_t < (std::is_same<IterImpl, iter_impl>::value || std::is_same<IterImpl, other_iter_impl>::value), std::nullptr_t > = nullptr >
+-    bool operator!=(const IterImpl& other) const
+-    {
+-        return !operator==(other);
+-    }
+-
+-    /*!
+-    @brief comparison: smaller
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    bool operator<(const iter_impl& other) const
+-    {
+-        // if objects are not the same, the comparison is undefined
+-        if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", *m_object));
+-        }
+-
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                JSON_THROW(invalid_iterator::create(213, "cannot compare order of object iterators", *m_object));
+-
+-            case value_t::array:
+-                return (m_it.array_iterator < other.m_it.array_iterator);
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                return (m_it.primitive_iterator < other.m_it.primitive_iterator);
+-        }
+-    }
+-
+-    /*!
+-    @brief comparison: less than or equal
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    bool operator<=(const iter_impl& other) const
+-    {
+-        return !other.operator < (*this);
+-    }
+-
+-    /*!
+-    @brief comparison: greater than
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    bool operator>(const iter_impl& other) const
+-    {
+-        return !operator<=(other);
+-    }
+-
+-    /*!
+-    @brief comparison: greater than or equal
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    bool operator>=(const iter_impl& other) const
+-    {
+-        return !operator<(other);
+-    }
+-
+-    /*!
+-    @brief add to iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl& operator+=(difference_type i)
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                JSON_THROW(invalid_iterator::create(209, "cannot use offsets with object iterators", *m_object));
+-
+-            case value_t::array:
+-            {
+-                std::advance(m_it.array_iterator, i);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                m_it.primitive_iterator += i;
+-                break;
+-            }
+-        }
+-
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief subtract from iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl& operator-=(difference_type i)
+-    {
+-        return operator+=(-i);
+-    }
+-
+-    /*!
+-    @brief add to iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl operator+(difference_type i) const
+-    {
+-        auto result = *this;
+-        result += i;
+-        return result;
+-    }
+-
+-    /*!
+-    @brief addition of distance and iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    friend iter_impl operator+(difference_type i, const iter_impl& it)
+-    {
+-        auto result = it;
+-        result += i;
+-        return result;
+-    }
+-
+-    /*!
+-    @brief subtract from iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl operator-(difference_type i) const
+-    {
+-        auto result = *this;
+-        result -= i;
+-        return result;
+-    }
+-
+-    /*!
+-    @brief return difference
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    difference_type operator-(const iter_impl& other) const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                JSON_THROW(invalid_iterator::create(209, "cannot use offsets with object iterators", *m_object));
+-
+-            case value_t::array:
+-                return m_it.array_iterator - other.m_it.array_iterator;
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                return m_it.primitive_iterator - other.m_it.primitive_iterator;
+-        }
+-    }
+-
+-    /*!
+-    @brief access to successor
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    reference operator[](difference_type n) const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                JSON_THROW(invalid_iterator::create(208, "cannot use operator[] for object iterators", *m_object));
+-
+-            case value_t::array:
+-                return *std::next(m_it.array_iterator, n);
+-
+-            case value_t::null:
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.get_value() == -n))
+-                {
+-                    return *m_object;
+-                }
+-
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief return the key of an object iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    const typename object_t::key_type& key() const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        if (JSON_HEDLEY_LIKELY(m_object->is_object()))
+-        {
+-            return m_it.object_iterator->first;
+-        }
+-
+-        JSON_THROW(invalid_iterator::create(207, "cannot use key() for non-object iterators", *m_object));
+-    }
+-
+-    /*!
+-    @brief return the value of an iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    reference value() const
+-    {
+-        return operator*();
+-    }
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /// associated JSON instance
+-    pointer m_object = nullptr;
+-    /// the actual iterator of the associated instance
+-    internal_iterator<typename std::remove_const<BasicJsonType>::type> m_it {};
+-};
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/iterators/iteration_proxy.hpp>
+-
+-// #include <nlohmann/detail/iterators/json_reverse_iterator.hpp>
+-
+-
+-#include <cstddef> // ptrdiff_t
+-#include <iterator> // reverse_iterator
+-#include <utility> // declval
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-//////////////////////
+-// reverse_iterator //
+-//////////////////////
+-
+-/*!
+-@brief a template for a reverse iterator class
+-
+-@tparam Base the base iterator type to reverse. Valid types are @ref
+-iterator (to create @ref reverse_iterator) and @ref const_iterator (to
+-create @ref const_reverse_iterator).
+-
+-@requirement The class satisfies the following concept requirements:
+--
+-[BidirectionalIterator](https://en.cppreference.com/w/cpp/named_req/BidirectionalIterator):
+-  The iterator that can be moved can be moved in both directions (i.e.
+-  incremented and decremented).
+-- [OutputIterator](https://en.cppreference.com/w/cpp/named_req/OutputIterator):
+-  It is possible to write to the pointed-to element (only if @a Base is
+-  @ref iterator).
+-
+-@since version 1.0.0
+-*/
+-template<typename Base>
+-class json_reverse_iterator : public std::reverse_iterator<Base>
+-{
+-  public:
+-    using difference_type = std::ptrdiff_t;
+-    /// shortcut to the reverse iterator adapter
+-    using base_iterator = std::reverse_iterator<Base>;
+-    /// the reference type for the pointed-to element
+-    using reference = typename Base::reference;
+-
+-    /// create reverse iterator from iterator
+-    explicit json_reverse_iterator(const typename base_iterator::iterator_type& it) noexcept
+-        : base_iterator(it) {}
+-
+-    /// create reverse iterator from base class
+-    explicit json_reverse_iterator(const base_iterator& it) noexcept : base_iterator(it) {}
+-
+-    /// post-increment (it++)
+-    json_reverse_iterator const operator++(int) // NOLINT(readability-const-return-type)
+-    {
+-        return static_cast<json_reverse_iterator>(base_iterator::operator++(1));
+-    }
+-
+-    /// pre-increment (++it)
+-    json_reverse_iterator& operator++()
+-    {
+-        return static_cast<json_reverse_iterator&>(base_iterator::operator++());
+-    }
+-
+-    /// post-decrement (it--)
+-    json_reverse_iterator const operator--(int) // NOLINT(readability-const-return-type)
+-    {
+-        return static_cast<json_reverse_iterator>(base_iterator::operator--(1));
+-    }
+-
+-    /// pre-decrement (--it)
+-    json_reverse_iterator& operator--()
+-    {
+-        return static_cast<json_reverse_iterator&>(base_iterator::operator--());
+-    }
+-
+-    /// add to iterator
+-    json_reverse_iterator& operator+=(difference_type i)
+-    {
+-        return static_cast<json_reverse_iterator&>(base_iterator::operator+=(i));
+-    }
+-
+-    /// add to iterator
+-    json_reverse_iterator operator+(difference_type i) const
+-    {
+-        return static_cast<json_reverse_iterator>(base_iterator::operator+(i));
+-    }
+-
+-    /// subtract from iterator
+-    json_reverse_iterator operator-(difference_type i) const
+-    {
+-        return static_cast<json_reverse_iterator>(base_iterator::operator-(i));
+-    }
+-
+-    /// return difference
+-    difference_type operator-(const json_reverse_iterator& other) const
+-    {
+-        return base_iterator(*this) - base_iterator(other);
+-    }
+-
+-    /// access to successor
+-    reference operator[](difference_type n) const
+-    {
+-        return *(this->operator+(n));
+-    }
+-
+-    /// return the key of an object iterator
+-    auto key() const -> decltype(std::declval<Base>().key())
+-    {
+-        auto it = --this->base();
+-        return it.key();
+-    }
+-
+-    /// return the value of an iterator
+-    reference value() const
+-    {
+-        auto it = --this->base();
+-        return it.operator * ();
+-    }
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/iterators/primitive_iterator.hpp>
+-
+-// #include <nlohmann/detail/json_pointer.hpp>
+-
+-
+-#include <algorithm> // all_of
+-#include <cctype> // isdigit
+-#include <limits> // max
+-#include <numeric> // accumulate
+-#include <string> // string
+-#include <utility> // move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/string_escape.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-
+-/// @brief JSON Pointer defines a string syntax for identifying a specific value within a JSON document
+-/// @sa https://json.nlohmann.me/api/json_pointer/
+-template<typename BasicJsonType>
+-class json_pointer
+-{
+-    // allow basic_json to access private members
+-    NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-    friend class basic_json;
+-
+-  public:
+-    /// @brief create JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/json_pointer/
+-    explicit json_pointer(const std::string& s = "")
+-        : reference_tokens(split(s))
+-    {}
+-
+-    /// @brief return a string representation of the JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/to_string/
+-    std::string to_string() const
+-    {
+-        return std::accumulate(reference_tokens.begin(), reference_tokens.end(),
+-                               std::string{},
+-                               [](const std::string & a, const std::string & b)
+-        {
+-            return a + "/" + detail::escape(b);
+-        });
+-    }
+-
+-    /// @brief return a string representation of the JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_string/
+-    operator std::string() const
+-    {
+-        return to_string();
+-    }
+-
+-    /// @brief append another JSON pointer at the end of this JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slasheq/
+-    json_pointer& operator/=(const json_pointer& ptr)
+-    {
+-        reference_tokens.insert(reference_tokens.end(),
+-                                ptr.reference_tokens.begin(),
+-                                ptr.reference_tokens.end());
+-        return *this;
+-    }
+-
+-    /// @brief append an unescaped reference token at the end of this JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slasheq/
+-    json_pointer& operator/=(std::string token)
+-    {
+-        push_back(std::move(token));
+-        return *this;
+-    }
+-
+-    /// @brief append an array index at the end of this JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slasheq/
+-    json_pointer& operator/=(std::size_t array_idx)
+-    {
+-        return *this /= std::to_string(array_idx);
+-    }
+-
+-    /// @brief create a new JSON pointer by appending the right JSON pointer at the end of the left JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slash/
+-    friend json_pointer operator/(const json_pointer& lhs,
+-                                  const json_pointer& rhs)
+-    {
+-        return json_pointer(lhs) /= rhs;
+-    }
+-
+-    /// @brief create a new JSON pointer by appending the unescaped token at the end of the JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slash/
+-    friend json_pointer operator/(const json_pointer& lhs, std::string token) // NOLINT(performance-unnecessary-value-param)
+-    {
+-        return json_pointer(lhs) /= std::move(token);
+-    }
+-
+-    /// @brief create a new JSON pointer by appending the array-index-token at the end of the JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slash/
+-    friend json_pointer operator/(const json_pointer& lhs, std::size_t array_idx)
+-    {
+-        return json_pointer(lhs) /= array_idx;
+-    }
+-
+-    /// @brief returns the parent of this JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/parent_pointer/
+-    json_pointer parent_pointer() const
+-    {
+-        if (empty())
+-        {
+-            return *this;
+-        }
+-
+-        json_pointer res = *this;
+-        res.pop_back();
+-        return res;
+-    }
+-
+-    /// @brief remove last reference token
+-    /// @sa https://json.nlohmann.me/api/json_pointer/pop_back/
+-    void pop_back()
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(empty()))
+-        {
+-            JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", BasicJsonType()));
+-        }
+-
+-        reference_tokens.pop_back();
+-    }
+-
+-    /// @brief return last reference token
+-    /// @sa https://json.nlohmann.me/api/json_pointer/back/
+-    const std::string& back() const
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(empty()))
+-        {
+-            JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", BasicJsonType()));
+-        }
+-
+-        return reference_tokens.back();
+-    }
+-
+-    /// @brief append an unescaped token at the end of the reference pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/push_back/
+-    void push_back(const std::string& token)
+-    {
+-        reference_tokens.push_back(token);
+-    }
+-
+-    /// @brief append an unescaped token at the end of the reference pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/push_back/
+-    void push_back(std::string&& token)
+-    {
+-        reference_tokens.push_back(std::move(token));
+-    }
+-
+-    /// @brief return whether pointer points to the root document
+-    /// @sa https://json.nlohmann.me/api/json_pointer/empty/
+-    bool empty() const noexcept
+-    {
+-        return reference_tokens.empty();
+-    }
+-
+-  private:
+-    /*!
+-    @param[in] s  reference token to be converted into an array index
+-
+-    @return integer representation of @a s
+-
+-    @throw parse_error.106  if an array index begins with '0'
+-    @throw parse_error.109  if an array index begins not with a digit
+-    @throw out_of_range.404 if string @a s could not be converted to an integer
+-    @throw out_of_range.410 if an array index exceeds size_type
+-    */
+-    static typename BasicJsonType::size_type array_index(const std::string& s)
+-    {
+-        using size_type = typename BasicJsonType::size_type;
+-
+-        // error condition (cf. RFC 6901, Sect. 4)
+-        if (JSON_HEDLEY_UNLIKELY(s.size() > 1 && s[0] == '0'))
+-        {
+-            JSON_THROW(detail::parse_error::create(106, 0, "array index '" + s + "' must not begin with '0'", BasicJsonType()));
+-        }
+-
+-        // error condition (cf. RFC 6901, Sect. 4)
+-        if (JSON_HEDLEY_UNLIKELY(s.size() > 1 && !(s[0] >= '1' && s[0] <= '9')))
+-        {
+-            JSON_THROW(detail::parse_error::create(109, 0, "array index '" + s + "' is not a number", BasicJsonType()));
+-        }
+-
+-        std::size_t processed_chars = 0;
+-        unsigned long long res = 0;  // NOLINT(runtime/int)
+-        JSON_TRY
+-        {
+-            res = std::stoull(s, &processed_chars);
+-        }
+-        JSON_CATCH(std::out_of_range&)
+-        {
+-            JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + s + "'", BasicJsonType()));
+-        }
+-
+-        // check if the string was completely read
+-        if (JSON_HEDLEY_UNLIKELY(processed_chars != s.size()))
+-        {
+-            JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + s + "'", BasicJsonType()));
+-        }
+-
+-        // only triggered on special platforms (like 32bit), see also
+-        // https://github.com/nlohmann/json/pull/2203
+-        if (res >= static_cast<unsigned long long>((std::numeric_limits<size_type>::max)()))  // NOLINT(runtime/int)
+-        {
+-            JSON_THROW(detail::out_of_range::create(410, "array index " + s + " exceeds size_type", BasicJsonType())); // LCOV_EXCL_LINE
+-        }
+-
+-        return static_cast<size_type>(res);
+-    }
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    json_pointer top() const
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(empty()))
+-        {
+-            JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", BasicJsonType()));
+-        }
+-
+-        json_pointer result = *this;
+-        result.reference_tokens = {reference_tokens[0]};
+-        return result;
+-    }
+-
+-  private:
+-    /*!
+-    @brief create and return a reference to the pointed to value
+-
+-    @complexity Linear in the number of reference tokens.
+-
+-    @throw parse_error.109 if array index is not a number
+-    @throw type_error.313 if value cannot be unflattened
+-    */
+-    BasicJsonType& get_and_create(BasicJsonType& j) const
+-    {
+-        auto* result = &j;
+-
+-        // in case no reference tokens exist, return a reference to the JSON value
+-        // j which will be overwritten by a primitive value
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (result->type())
+-            {
+-                case detail::value_t::null:
+-                {
+-                    if (reference_token == "0")
+-                    {
+-                        // start a new array if reference token is 0
+-                        result = &result->operator[](0);
+-                    }
+-                    else
+-                    {
+-                        // start a new object otherwise
+-                        result = &result->operator[](reference_token);
+-                    }
+-                    break;
+-                }
+-
+-                case detail::value_t::object:
+-                {
+-                    // create an entry in the object
+-                    result = &result->operator[](reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    // create an entry in the array
+-                    result = &result->operator[](array_index(reference_token));
+-                    break;
+-                }
+-
+-                /*
+-                The following code is only reached if there exists a reference
+-                token _and_ the current value is primitive. In this case, we have
+-                an error situation, because primitive values may only occur as
+-                single value; that is, with an empty list of reference tokens.
+-                */
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::type_error::create(313, "invalid value to unflatten", j));
+-            }
+-        }
+-
+-        return *result;
+-    }
+-
+-    /*!
+-    @brief return a reference to the pointed to value
+-
+-    @note This version does not throw if a value is not present, but tries to
+-          create nested values instead. For instance, calling this function
+-          with pointer `"/this/that"` on a null value is equivalent to calling
+-          `operator[]("this").operator[]("that")` on that value, effectively
+-          changing the null value to an object.
+-
+-    @param[in] ptr  a JSON value
+-
+-    @return reference to the JSON value pointed to by the JSON pointer
+-
+-    @complexity Linear in the length of the JSON pointer.
+-
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    @throw out_of_range.404  if the JSON pointer can not be resolved
+-    */
+-    BasicJsonType& get_unchecked(BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            // convert null values to arrays or objects before continuing
+-            if (ptr->is_null())
+-            {
+-                // check if reference token is a number
+-                const bool nums =
+-                    std::all_of(reference_token.begin(), reference_token.end(),
+-                                [](const unsigned char x)
+-                {
+-                    return std::isdigit(x);
+-                });
+-
+-                // change value to array for numbers or "-" or to object otherwise
+-                *ptr = (nums || reference_token == "-")
+-                       ? detail::value_t::array
+-                       : detail::value_t::object;
+-            }
+-
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    // use unchecked object access
+-                    ptr = &ptr->operator[](reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (reference_token == "-")
+-                    {
+-                        // explicitly treat "-" as index beyond the end
+-                        ptr = &ptr->operator[](ptr->m_value.array->size());
+-                    }
+-                    else
+-                    {
+-                        // convert array index to number; unchecked access
+-                        ptr = &ptr->operator[](array_index(reference_token));
+-                    }
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'", *ptr));
+-            }
+-        }
+-
+-        return *ptr;
+-    }
+-
+-    /*!
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    @throw out_of_range.402  if the array index '-' is used
+-    @throw out_of_range.404  if the JSON pointer can not be resolved
+-    */
+-    BasicJsonType& get_checked(BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    // note: at performs range check
+-                    ptr = &ptr->at(reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
+-                    {
+-                        // "-" always fails the range check
+-                        JSON_THROW(detail::out_of_range::create(402,
+-                                                                "array index '-' (" + std::to_string(ptr->m_value.array->size()) +
+-                                                                ") is out of range", *ptr));
+-                    }
+-
+-                    // note: at performs range check
+-                    ptr = &ptr->at(array_index(reference_token));
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'", *ptr));
+-            }
+-        }
+-
+-        return *ptr;
+-    }
+-
+-    /*!
+-    @brief return a const reference to the pointed to value
+-
+-    @param[in] ptr  a JSON value
+-
+-    @return const reference to the JSON value pointed to by the JSON
+-    pointer
+-
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    @throw out_of_range.402  if the array index '-' is used
+-    @throw out_of_range.404  if the JSON pointer can not be resolved
+-    */
+-    const BasicJsonType& get_unchecked(const BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    // use unchecked object access
+-                    ptr = &ptr->operator[](reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
+-                    {
+-                        // "-" cannot be used for const access
+-                        JSON_THROW(detail::out_of_range::create(402, "array index '-' (" + std::to_string(ptr->m_value.array->size()) + ") is out of range", *ptr));
+-                    }
+-
+-                    // use unchecked array access
+-                    ptr = &ptr->operator[](array_index(reference_token));
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'", *ptr));
+-            }
+-        }
+-
+-        return *ptr;
+-    }
+-
+-    /*!
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    @throw out_of_range.402  if the array index '-' is used
+-    @throw out_of_range.404  if the JSON pointer can not be resolved
+-    */
+-    const BasicJsonType& get_checked(const BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    // note: at performs range check
+-                    ptr = &ptr->at(reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
+-                    {
+-                        // "-" always fails the range check
+-                        JSON_THROW(detail::out_of_range::create(402,
+-                                                                "array index '-' (" + std::to_string(ptr->m_value.array->size()) +
+-                                                                ") is out of range", *ptr));
+-                    }
+-
+-                    // note: at performs range check
+-                    ptr = &ptr->at(array_index(reference_token));
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'", *ptr));
+-            }
+-        }
+-
+-        return *ptr;
+-    }
+-
+-    /*!
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    */
+-    bool contains(const BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    if (!ptr->contains(reference_token))
+-                    {
+-                        // we did not find the key in the object
+-                        return false;
+-                    }
+-
+-                    ptr = &ptr->operator[](reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
+-                    {
+-                        // "-" always fails the range check
+-                        return false;
+-                    }
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token.size() == 1 && !("0" <= reference_token && reference_token <= "9")))
+-                    {
+-                        // invalid char
+-                        return false;
+-                    }
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token.size() > 1))
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!('1' <= reference_token[0] && reference_token[0] <= '9')))
+-                        {
+-                            // first char should be between '1' and '9'
+-                            return false;
+-                        }
+-                        for (std::size_t i = 1; i < reference_token.size(); i++)
+-                        {
+-                            if (JSON_HEDLEY_UNLIKELY(!('0' <= reference_token[i] && reference_token[i] <= '9')))
+-                            {
+-                                // other char should be between '0' and '9'
+-                                return false;
+-                            }
+-                        }
+-                    }
+-
+-                    const auto idx = array_index(reference_token);
+-                    if (idx >= ptr->size())
+-                    {
+-                        // index out of range
+-                        return false;
+-                    }
+-
+-                    ptr = &ptr->operator[](idx);
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                {
+-                    // we do not expect primitive values if there is still a
+-                    // reference token to process
+-                    return false;
+-                }
+-            }
+-        }
+-
+-        // no reference token left means we found a primitive value
+-        return true;
+-    }
+-
+-    /*!
+-    @brief split the string input to reference tokens
+-
+-    @note This function is only called by the json_pointer constructor.
+-          All exceptions below are documented there.
+-
+-    @throw parse_error.107  if the pointer is not empty or begins with '/'
+-    @throw parse_error.108  if character '~' is not followed by '0' or '1'
+-    */
+-    static std::vector<std::string> split(const std::string& reference_string)
+-    {
+-        std::vector<std::string> result;
+-
+-        // special case: empty reference string -> no reference tokens
+-        if (reference_string.empty())
+-        {
+-            return result;
+-        }
+-
+-        // check if nonempty reference string begins with slash
+-        if (JSON_HEDLEY_UNLIKELY(reference_string[0] != '/'))
+-        {
+-            JSON_THROW(detail::parse_error::create(107, 1, "JSON pointer must be empty or begin with '/' - was: '" + reference_string + "'", BasicJsonType()));
+-        }
+-
+-        // extract the reference tokens:
+-        // - slash: position of the last read slash (or end of string)
+-        // - start: position after the previous slash
+-        for (
+-            // search for the first slash after the first character
+-            std::size_t slash = reference_string.find_first_of('/', 1),
+-            // set the beginning of the first reference token
+-            start = 1;
+-            // we can stop if start == 0 (if slash == std::string::npos)
+-            start != 0;
+-            // set the beginning of the next reference token
+-            // (will eventually be 0 if slash == std::string::npos)
+-            start = (slash == std::string::npos) ? 0 : slash + 1,
+-            // find next slash
+-            slash = reference_string.find_first_of('/', start))
+-        {
+-            // use the text between the beginning of the reference token
+-            // (start) and the last slash (slash).
+-            auto reference_token = reference_string.substr(start, slash - start);
+-
+-            // check reference tokens are properly escaped
+-            for (std::size_t pos = reference_token.find_first_of('~');
+-                    pos != std::string::npos;
+-                    pos = reference_token.find_first_of('~', pos + 1))
+-            {
+-                JSON_ASSERT(reference_token[pos] == '~');
+-
+-                // ~ must be followed by 0 or 1
+-                if (JSON_HEDLEY_UNLIKELY(pos == reference_token.size() - 1 ||
+-                                         (reference_token[pos + 1] != '0' &&
+-                                          reference_token[pos + 1] != '1')))
+-                {
+-                    JSON_THROW(detail::parse_error::create(108, 0, "escape character '~' must be followed with '0' or '1'", BasicJsonType()));
+-                }
+-            }
+-
+-            // finally, store the reference token
+-            detail::unescape(reference_token);
+-            result.push_back(reference_token);
+-        }
+-
+-        return result;
+-    }
+-
+-  private:
+-    /*!
+-    @param[in] reference_string  the reference string to the current value
+-    @param[in] value             the value to consider
+-    @param[in,out] result        the result object to insert values to
+-
+-    @note Empty objects or arrays are flattened to `null`.
+-    */
+-    static void flatten(const std::string& reference_string,
+-                        const BasicJsonType& value,
+-                        BasicJsonType& result)
+-    {
+-        switch (value.type())
+-        {
+-            case detail::value_t::array:
+-            {
+-                if (value.m_value.array->empty())
+-                {
+-                    // flatten empty array as null
+-                    result[reference_string] = nullptr;
+-                }
+-                else
+-                {
+-                    // iterate array and use index as reference string
+-                    for (std::size_t i = 0; i < value.m_value.array->size(); ++i)
+-                    {
+-                        flatten(reference_string + "/" + std::to_string(i),
+-                                value.m_value.array->operator[](i), result);
+-                    }
+-                }
+-                break;
+-            }
+-
+-            case detail::value_t::object:
+-            {
+-                if (value.m_value.object->empty())
+-                {
+-                    // flatten empty object as null
+-                    result[reference_string] = nullptr;
+-                }
+-                else
+-                {
+-                    // iterate object and use keys as reference string
+-                    for (const auto& element : *value.m_value.object)
+-                    {
+-                        flatten(reference_string + "/" + detail::escape(element.first), element.second, result);
+-                    }
+-                }
+-                break;
+-            }
+-
+-            case detail::value_t::null:
+-            case detail::value_t::string:
+-            case detail::value_t::boolean:
+-            case detail::value_t::number_integer:
+-            case detail::value_t::number_unsigned:
+-            case detail::value_t::number_float:
+-            case detail::value_t::binary:
+-            case detail::value_t::discarded:
+-            default:
+-            {
+-                // add primitive value with its reference string
+-                result[reference_string] = value;
+-                break;
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @param[in] value  flattened JSON
+-
+-    @return unflattened JSON
+-
+-    @throw parse_error.109 if array index is not a number
+-    @throw type_error.314  if value is not an object
+-    @throw type_error.315  if object values are not primitive
+-    @throw type_error.313  if value cannot be unflattened
+-    */
+-    static BasicJsonType
+-    unflatten(const BasicJsonType& value)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!value.is_object()))
+-        {
+-            JSON_THROW(detail::type_error::create(314, "only objects can be unflattened", value));
+-        }
+-
+-        BasicJsonType result;
+-
+-        // iterate the JSON object values
+-        for (const auto& element : *value.m_value.object)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!element.second.is_primitive()))
+-            {
+-                JSON_THROW(detail::type_error::create(315, "values in object must be primitive", element.second));
+-            }
+-
+-            // assign value to reference pointed to by JSON pointer; Note that if
+-            // the JSON pointer is "" (i.e., points to the whole value), function
+-            // get_and_create returns a reference to result itself. An assignment
+-            // will then create a primitive value.
+-            json_pointer(element.first).get_and_create(result) = element.second;
+-        }
+-
+-        return result;
+-    }
+-
+-    /*!
+-    @brief compares two JSON pointers for equality
+-
+-    @param[in] lhs  JSON pointer to compare
+-    @param[in] rhs  JSON pointer to compare
+-    @return whether @a lhs is equal to @a rhs
+-
+-    @complexity Linear in the length of the JSON pointer
+-
+-    @exceptionsafety No-throw guarantee: this function never throws exceptions.
+-    */
+-    friend bool operator==(json_pointer const& lhs,
+-                           json_pointer const& rhs) noexcept
+-    {
+-        return lhs.reference_tokens == rhs.reference_tokens;
+-    }
+-
+-    /*!
+-    @brief compares two JSON pointers for inequality
+-
+-    @param[in] lhs  JSON pointer to compare
+-    @param[in] rhs  JSON pointer to compare
+-    @return whether @a lhs is not equal @a rhs
+-
+-    @complexity Linear in the length of the JSON pointer
+-
+-    @exceptionsafety No-throw guarantee: this function never throws exceptions.
+-    */
+-    friend bool operator!=(json_pointer const& lhs,
+-                           json_pointer const& rhs) noexcept
+-    {
+-        return !(lhs == rhs);
+-    }
+-
+-    /// the reference tokens
+-    std::vector<std::string> reference_tokens;
+-};
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/json_ref.hpp>
+-
+-
+-#include <initializer_list>
+-#include <utility>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename BasicJsonType>
+-class json_ref
+-{
+-  public:
+-    using value_type = BasicJsonType;
+-
+-    json_ref(value_type&& value)
+-        : owned_value(std::move(value))
+-    {}
+-
+-    json_ref(const value_type& value)
+-        : value_ref(&value)
+-    {}
+-
+-    json_ref(std::initializer_list<json_ref> init)
+-        : owned_value(init)
+-    {}
+-
+-    template <
+-        class... Args,
+-        enable_if_t<std::is_constructible<value_type, Args...>::value, int> = 0 >
+-    json_ref(Args && ... args)
+-        : owned_value(std::forward<Args>(args)...)
+-    {}
+-
+-    // class should be movable only
+-    json_ref(json_ref&&) noexcept = default;
+-    json_ref(const json_ref&) = delete;
+-    json_ref& operator=(const json_ref&) = delete;
+-    json_ref& operator=(json_ref&&) = delete;
+-    ~json_ref() = default;
+-
+-    value_type moved_or_copied() const
+-    {
+-        if (value_ref == nullptr)
+-        {
+-            return std::move(owned_value);
+-        }
+-        return *value_ref;
+-    }
+-
+-    value_type const& operator*() const
+-    {
+-        return value_ref ? *value_ref : owned_value;
+-    }
+-
+-    value_type const* operator->() const
+-    {
+-        return &** this;
+-    }
+-
+-  private:
+-    mutable value_type owned_value = nullptr;
+-    value_type const* value_ref = nullptr;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/string_escape.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/output/binary_writer.hpp>
+-
+-
+-#include <algorithm> // reverse
+-#include <array> // array
+-#include <cmath> // isnan, isinf
+-#include <cstdint> // uint8_t, uint16_t, uint32_t, uint64_t
+-#include <cstring> // memcpy
+-#include <limits> // numeric_limits
+-#include <string> // string
+-#include <utility> // move
+-
+-// #include <nlohmann/detail/input/binary_reader.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/output/output_adapters.hpp>
+-
+-
+-#include <algorithm> // copy
+-#include <cstddef> // size_t
+-#include <iterator> // back_inserter
+-#include <memory> // shared_ptr, make_shared
+-#include <string> // basic_string
+-#include <vector> // vector
+-
+-#ifndef JSON_NO_IO
+-    #include <ios>      // streamsize
+-    #include <ostream>  // basic_ostream
+-#endif  // JSON_NO_IO
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/// abstract output adapter interface
+-template<typename CharType> struct output_adapter_protocol
+-{
+-    virtual void write_character(CharType c) = 0;
+-    virtual void write_characters(const CharType* s, std::size_t length) = 0;
+-    virtual ~output_adapter_protocol() = default;
+-
+-    output_adapter_protocol() = default;
+-    output_adapter_protocol(const output_adapter_protocol&) = default;
+-    output_adapter_protocol(output_adapter_protocol&&) noexcept = default;
+-    output_adapter_protocol& operator=(const output_adapter_protocol&) = default;
+-    output_adapter_protocol& operator=(output_adapter_protocol&&) noexcept = default;
+-};
+-
+-/// a type to simplify interfaces
+-template<typename CharType>
+-using output_adapter_t = std::shared_ptr<output_adapter_protocol<CharType>>;
+-
+-/// output adapter for byte vectors
+-template<typename CharType, typename AllocatorType = std::allocator<CharType>>
+-class output_vector_adapter : public output_adapter_protocol<CharType>
+-{
+-  public:
+-    explicit output_vector_adapter(std::vector<CharType, AllocatorType>& vec) noexcept
+-        : v(vec)
+-    {}
+-
+-    void write_character(CharType c) override
+-    {
+-        v.push_back(c);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    void write_characters(const CharType* s, std::size_t length) override
+-    {
+-        std::copy(s, s + length, std::back_inserter(v));
+-    }
+-
+-  private:
+-    std::vector<CharType, AllocatorType>& v;
+-};
+-
+-#ifndef JSON_NO_IO
+-/// output adapter for output streams
+-template<typename CharType>
+-class output_stream_adapter : public output_adapter_protocol<CharType>
+-{
+-  public:
+-    explicit output_stream_adapter(std::basic_ostream<CharType>& s) noexcept
+-        : stream(s)
+-    {}
+-
+-    void write_character(CharType c) override
+-    {
+-        stream.put(c);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    void write_characters(const CharType* s, std::size_t length) override
+-    {
+-        stream.write(s, static_cast<std::streamsize>(length));
+-    }
+-
+-  private:
+-    std::basic_ostream<CharType>& stream;
+-};
+-#endif  // JSON_NO_IO
+-
+-/// output adapter for basic_string
+-template<typename CharType, typename StringType = std::basic_string<CharType>>
+-class output_string_adapter : public output_adapter_protocol<CharType>
+-{
+-  public:
+-    explicit output_string_adapter(StringType& s) noexcept
+-        : str(s)
+-    {}
+-
+-    void write_character(CharType c) override
+-    {
+-        str.push_back(c);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    void write_characters(const CharType* s, std::size_t length) override
+-    {
+-        str.append(s, length);
+-    }
+-
+-  private:
+-    StringType& str;
+-};
+-
+-template<typename CharType, typename StringType = std::basic_string<CharType>>
+-class output_adapter
+-{
+-  public:
+-    template<typename AllocatorType = std::allocator<CharType>>
+-    output_adapter(std::vector<CharType, AllocatorType>& vec)
+-        : oa(std::make_shared<output_vector_adapter<CharType, AllocatorType>>(vec)) {}
+-
+-#ifndef JSON_NO_IO
+-    output_adapter(std::basic_ostream<CharType>& s)
+-        : oa(std::make_shared<output_stream_adapter<CharType>>(s)) {}
+-#endif  // JSON_NO_IO
+-
+-    output_adapter(StringType& s)
+-        : oa(std::make_shared<output_string_adapter<CharType, StringType>>(s)) {}
+-
+-    operator output_adapter_t<CharType>()
+-    {
+-        return oa;
+-    }
+-
+-  private:
+-    output_adapter_t<CharType> oa = nullptr;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-///////////////////
+-// binary writer //
+-///////////////////
+-
+-/*!
+-@brief serialization to CBOR and MessagePack values
+-*/
+-template<typename BasicJsonType, typename CharType>
+-class binary_writer
+-{
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-
+-  public:
+-    /*!
+-    @brief create a binary writer
+-
+-    @param[in] adapter  output adapter to write to
+-    */
+-    explicit binary_writer(output_adapter_t<CharType> adapter) : oa(std::move(adapter))
+-    {
+-        JSON_ASSERT(oa);
+-    }
+-
+-    /*!
+-    @param[in] j  JSON value to serialize
+-    @pre       j.type() == value_t::object
+-    */
+-    void write_bson(const BasicJsonType& j)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::object:
+-            {
+-                write_bson_object(*j.m_value.object);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::array:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                JSON_THROW(type_error::create(317, "to serialize to BSON, top-level type must be object, but is " + std::string(j.type_name()), j));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @param[in] j  JSON value to serialize
+-    */
+-    void write_cbor(const BasicJsonType& j)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::null:
+-            {
+-                oa->write_character(to_char_type(0xF6));
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                oa->write_character(j.m_value.boolean
+-                                    ? to_char_type(0xF5)
+-                                    : to_char_type(0xF4));
+-                break;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                if (j.m_value.number_integer >= 0)
+-                {
+-                    // CBOR does not differentiate between positive signed
+-                    // integers and unsigned integers. Therefore, we used the
+-                    // code from the value_t::number_unsigned case here.
+-                    if (j.m_value.number_integer <= 0x17)
+-                    {
+-                        write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer <= (std::numeric_limits<std::uint8_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x18));
+-                        write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer <= (std::numeric_limits<std::uint16_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x19));
+-                        write_number(static_cast<std::uint16_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer <= (std::numeric_limits<std::uint32_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x1A));
+-                        write_number(static_cast<std::uint32_t>(j.m_value.number_integer));
+-                    }
+-                    else
+-                    {
+-                        oa->write_character(to_char_type(0x1B));
+-                        write_number(static_cast<std::uint64_t>(j.m_value.number_integer));
+-                    }
+-                }
+-                else
+-                {
+-                    // The conversions below encode the sign in the first
+-                    // byte, and the value is converted to a positive number.
+-                    const auto positive_number = -1 - j.m_value.number_integer;
+-                    if (j.m_value.number_integer >= -24)
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0x20 + positive_number));
+-                    }
+-                    else if (positive_number <= (std::numeric_limits<std::uint8_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x38));
+-                        write_number(static_cast<std::uint8_t>(positive_number));
+-                    }
+-                    else if (positive_number <= (std::numeric_limits<std::uint16_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x39));
+-                        write_number(static_cast<std::uint16_t>(positive_number));
+-                    }
+-                    else if (positive_number <= (std::numeric_limits<std::uint32_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x3A));
+-                        write_number(static_cast<std::uint32_t>(positive_number));
+-                    }
+-                    else
+-                    {
+-                        oa->write_character(to_char_type(0x3B));
+-                        write_number(static_cast<std::uint64_t>(positive_number));
+-                    }
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                if (j.m_value.number_unsigned <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(j.m_value.number_unsigned));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x18));
+-                    write_number(static_cast<std::uint8_t>(j.m_value.number_unsigned));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x19));
+-                    write_number(static_cast<std::uint16_t>(j.m_value.number_unsigned));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x1A));
+-                    write_number(static_cast<std::uint32_t>(j.m_value.number_unsigned));
+-                }
+-                else
+-                {
+-                    oa->write_character(to_char_type(0x1B));
+-                    write_number(static_cast<std::uint64_t>(j.m_value.number_unsigned));
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                if (std::isnan(j.m_value.number_float))
+-                {
+-                    // NaN is 0xf97e00 in CBOR
+-                    oa->write_character(to_char_type(0xF9));
+-                    oa->write_character(to_char_type(0x7E));
+-                    oa->write_character(to_char_type(0x00));
+-                }
+-                else if (std::isinf(j.m_value.number_float))
+-                {
+-                    // Infinity is 0xf97c00, -Infinity is 0xf9fc00
+-                    oa->write_character(to_char_type(0xf9));
+-                    oa->write_character(j.m_value.number_float > 0 ? to_char_type(0x7C) : to_char_type(0xFC));
+-                    oa->write_character(to_char_type(0x00));
+-                }
+-                else
+-                {
+-                    write_compact_float(j.m_value.number_float, detail::input_format_t::cbor);
+-                }
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                // step 1: write control byte and the string length
+-                const auto N = j.m_value.string->size();
+-                if (N <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(0x60 + N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x78));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x79));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x7A));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-                // LCOV_EXCL_START
+-                else if (N <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x7B));
+-                    write_number(static_cast<std::uint64_t>(N));
+-                }
+-                // LCOV_EXCL_STOP
+-
+-                // step 2: write the string
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.string->c_str()),
+-                    j.m_value.string->size());
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                // step 1: write control byte and the array size
+-                const auto N = j.m_value.array->size();
+-                if (N <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(0x80 + N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x98));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x99));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x9A));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-                // LCOV_EXCL_START
+-                else if (N <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x9B));
+-                    write_number(static_cast<std::uint64_t>(N));
+-                }
+-                // LCOV_EXCL_STOP
+-
+-                // step 2: write each element
+-                for (const auto& el : *j.m_value.array)
+-                {
+-                    write_cbor(el);
+-                }
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                if (j.m_value.binary->has_subtype())
+-                {
+-                    if (j.m_value.binary->subtype() <= (std::numeric_limits<std::uint8_t>::max)())
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0xd8));
+-                        write_number(static_cast<std::uint8_t>(j.m_value.binary->subtype()));
+-                    }
+-                    else if (j.m_value.binary->subtype() <= (std::numeric_limits<std::uint16_t>::max)())
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0xd9));
+-                        write_number(static_cast<std::uint16_t>(j.m_value.binary->subtype()));
+-                    }
+-                    else if (j.m_value.binary->subtype() <= (std::numeric_limits<std::uint32_t>::max)())
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0xda));
+-                        write_number(static_cast<std::uint32_t>(j.m_value.binary->subtype()));
+-                    }
+-                    else if (j.m_value.binary->subtype() <= (std::numeric_limits<std::uint64_t>::max)())
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0xdb));
+-                        write_number(static_cast<std::uint64_t>(j.m_value.binary->subtype()));
+-                    }
+-                }
+-
+-                // step 1: write control byte and the binary array size
+-                const auto N = j.m_value.binary->size();
+-                if (N <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(0x40 + N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x58));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x59));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x5A));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-                // LCOV_EXCL_START
+-                else if (N <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x5B));
+-                    write_number(static_cast<std::uint64_t>(N));
+-                }
+-                // LCOV_EXCL_STOP
+-
+-                // step 2: write each element
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.binary->data()),
+-                    N);
+-
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                // step 1: write control byte and the object size
+-                const auto N = j.m_value.object->size();
+-                if (N <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(0xA0 + N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0xB8));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0xB9));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0xBA));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-                // LCOV_EXCL_START
+-                else if (N <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0xBB));
+-                    write_number(static_cast<std::uint64_t>(N));
+-                }
+-                // LCOV_EXCL_STOP
+-
+-                // step 2: write each element
+-                for (const auto& el : *j.m_value.object)
+-                {
+-                    write_cbor(el.first);
+-                    write_cbor(el.second);
+-                }
+-                break;
+-            }
+-
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-    }
+-
+-    /*!
+-    @param[in] j  JSON value to serialize
+-    */
+-    void write_msgpack(const BasicJsonType& j)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::null: // nil
+-            {
+-                oa->write_character(to_char_type(0xC0));
+-                break;
+-            }
+-
+-            case value_t::boolean: // true and false
+-            {
+-                oa->write_character(j.m_value.boolean
+-                                    ? to_char_type(0xC3)
+-                                    : to_char_type(0xC2));
+-                break;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                if (j.m_value.number_integer >= 0)
+-                {
+-                    // MessagePack does not differentiate between positive
+-                    // signed integers and unsigned integers. Therefore, we used
+-                    // the code from the value_t::number_unsigned case here.
+-                    if (j.m_value.number_unsigned < 128)
+-                    {
+-                        // positive fixnum
+-                        write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint8_t>::max)())
+-                    {
+-                        // uint 8
+-                        oa->write_character(to_char_type(0xCC));
+-                        write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint16_t>::max)())
+-                    {
+-                        // uint 16
+-                        oa->write_character(to_char_type(0xCD));
+-                        write_number(static_cast<std::uint16_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint32_t>::max)())
+-                    {
+-                        // uint 32
+-                        oa->write_character(to_char_type(0xCE));
+-                        write_number(static_cast<std::uint32_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint64_t>::max)())
+-                    {
+-                        // uint 64
+-                        oa->write_character(to_char_type(0xCF));
+-                        write_number(static_cast<std::uint64_t>(j.m_value.number_integer));
+-                    }
+-                }
+-                else
+-                {
+-                    if (j.m_value.number_integer >= -32)
+-                    {
+-                        // negative fixnum
+-                        write_number(static_cast<std::int8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer >= (std::numeric_limits<std::int8_t>::min)() &&
+-                             j.m_value.number_integer <= (std::numeric_limits<std::int8_t>::max)())
+-                    {
+-                        // int 8
+-                        oa->write_character(to_char_type(0xD0));
+-                        write_number(static_cast<std::int8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer >= (std::numeric_limits<std::int16_t>::min)() &&
+-                             j.m_value.number_integer <= (std::numeric_limits<std::int16_t>::max)())
+-                    {
+-                        // int 16
+-                        oa->write_character(to_char_type(0xD1));
+-                        write_number(static_cast<std::int16_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer >= (std::numeric_limits<std::int32_t>::min)() &&
+-                             j.m_value.number_integer <= (std::numeric_limits<std::int32_t>::max)())
+-                    {
+-                        // int 32
+-                        oa->write_character(to_char_type(0xD2));
+-                        write_number(static_cast<std::int32_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer >= (std::numeric_limits<std::int64_t>::min)() &&
+-                             j.m_value.number_integer <= (std::numeric_limits<std::int64_t>::max)())
+-                    {
+-                        // int 64
+-                        oa->write_character(to_char_type(0xD3));
+-                        write_number(static_cast<std::int64_t>(j.m_value.number_integer));
+-                    }
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                if (j.m_value.number_unsigned < 128)
+-                {
+-                    // positive fixnum
+-                    write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    // uint 8
+-                    oa->write_character(to_char_type(0xCC));
+-                    write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    // uint 16
+-                    oa->write_character(to_char_type(0xCD));
+-                    write_number(static_cast<std::uint16_t>(j.m_value.number_integer));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    // uint 32
+-                    oa->write_character(to_char_type(0xCE));
+-                    write_number(static_cast<std::uint32_t>(j.m_value.number_integer));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    // uint 64
+-                    oa->write_character(to_char_type(0xCF));
+-                    write_number(static_cast<std::uint64_t>(j.m_value.number_integer));
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                write_compact_float(j.m_value.number_float, detail::input_format_t::msgpack);
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                // step 1: write control byte and the string length
+-                const auto N = j.m_value.string->size();
+-                if (N <= 31)
+-                {
+-                    // fixstr
+-                    write_number(static_cast<std::uint8_t>(0xA0 | N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    // str 8
+-                    oa->write_character(to_char_type(0xD9));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    // str 16
+-                    oa->write_character(to_char_type(0xDA));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    // str 32
+-                    oa->write_character(to_char_type(0xDB));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-
+-                // step 2: write the string
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.string->c_str()),
+-                    j.m_value.string->size());
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                // step 1: write control byte and the array size
+-                const auto N = j.m_value.array->size();
+-                if (N <= 15)
+-                {
+-                    // fixarray
+-                    write_number(static_cast<std::uint8_t>(0x90 | N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    // array 16
+-                    oa->write_character(to_char_type(0xDC));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    // array 32
+-                    oa->write_character(to_char_type(0xDD));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-
+-                // step 2: write each element
+-                for (const auto& el : *j.m_value.array)
+-                {
+-                    write_msgpack(el);
+-                }
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                // step 0: determine if the binary type has a set subtype to
+-                // determine whether or not to use the ext or fixext types
+-                const bool use_ext = j.m_value.binary->has_subtype();
+-
+-                // step 1: write control byte and the byte string length
+-                const auto N = j.m_value.binary->size();
+-                if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    std::uint8_t output_type{};
+-                    bool fixed = true;
+-                    if (use_ext)
+-                    {
+-                        switch (N)
+-                        {
+-                            case 1:
+-                                output_type = 0xD4; // fixext 1
+-                                break;
+-                            case 2:
+-                                output_type = 0xD5; // fixext 2
+-                                break;
+-                            case 4:
+-                                output_type = 0xD6; // fixext 4
+-                                break;
+-                            case 8:
+-                                output_type = 0xD7; // fixext 8
+-                                break;
+-                            case 16:
+-                                output_type = 0xD8; // fixext 16
+-                                break;
+-                            default:
+-                                output_type = 0xC7; // ext 8
+-                                fixed = false;
+-                                break;
+-                        }
+-
+-                    }
+-                    else
+-                    {
+-                        output_type = 0xC4; // bin 8
+-                        fixed = false;
+-                    }
+-
+-                    oa->write_character(to_char_type(output_type));
+-                    if (!fixed)
+-                    {
+-                        write_number(static_cast<std::uint8_t>(N));
+-                    }
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    std::uint8_t output_type = use_ext
+-                                               ? 0xC8 // ext 16
+-                                               : 0xC5; // bin 16
+-
+-                    oa->write_character(to_char_type(output_type));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    std::uint8_t output_type = use_ext
+-                                               ? 0xC9 // ext 32
+-                                               : 0xC6; // bin 32
+-
+-                    oa->write_character(to_char_type(output_type));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-
+-                // step 1.5: if this is an ext type, write the subtype
+-                if (use_ext)
+-                {
+-                    write_number(static_cast<std::int8_t>(j.m_value.binary->subtype()));
+-                }
+-
+-                // step 2: write the byte string
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.binary->data()),
+-                    N);
+-
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                // step 1: write control byte and the object size
+-                const auto N = j.m_value.object->size();
+-                if (N <= 15)
+-                {
+-                    // fixmap
+-                    write_number(static_cast<std::uint8_t>(0x80 | (N & 0xF)));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    // map 16
+-                    oa->write_character(to_char_type(0xDE));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    // map 32
+-                    oa->write_character(to_char_type(0xDF));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-
+-                // step 2: write each element
+-                for (const auto& el : *j.m_value.object)
+-                {
+-                    write_msgpack(el.first);
+-                    write_msgpack(el.second);
+-                }
+-                break;
+-            }
+-
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-    }
+-
+-    /*!
+-    @param[in] j  JSON value to serialize
+-    @param[in] use_count   whether to use '#' prefixes (optimized format)
+-    @param[in] use_type    whether to use '$' prefixes (optimized format)
+-    @param[in] add_prefix  whether prefixes need to be used for this value
+-    */
+-    void write_ubjson(const BasicJsonType& j, const bool use_count,
+-                      const bool use_type, const bool add_prefix = true)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::null:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('Z'));
+-                }
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(j.m_value.boolean
+-                                        ? to_char_type('T')
+-                                        : to_char_type('F'));
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                write_number_with_ubjson_prefix(j.m_value.number_integer, add_prefix);
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                write_number_with_ubjson_prefix(j.m_value.number_unsigned, add_prefix);
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                write_number_with_ubjson_prefix(j.m_value.number_float, add_prefix);
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('S'));
+-                }
+-                write_number_with_ubjson_prefix(j.m_value.string->size(), true);
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.string->c_str()),
+-                    j.m_value.string->size());
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('['));
+-                }
+-
+-                bool prefix_required = true;
+-                if (use_type && !j.m_value.array->empty())
+-                {
+-                    JSON_ASSERT(use_count);
+-                    const CharType first_prefix = ubjson_prefix(j.front());
+-                    const bool same_prefix = std::all_of(j.begin() + 1, j.end(),
+-                                                         [this, first_prefix](const BasicJsonType & v)
+-                    {
+-                        return ubjson_prefix(v) == first_prefix;
+-                    });
+-
+-                    if (same_prefix)
+-                    {
+-                        prefix_required = false;
+-                        oa->write_character(to_char_type('$'));
+-                        oa->write_character(first_prefix);
+-                    }
+-                }
+-
+-                if (use_count)
+-                {
+-                    oa->write_character(to_char_type('#'));
+-                    write_number_with_ubjson_prefix(j.m_value.array->size(), true);
+-                }
+-
+-                for (const auto& el : *j.m_value.array)
+-                {
+-                    write_ubjson(el, use_count, use_type, prefix_required);
+-                }
+-
+-                if (!use_count)
+-                {
+-                    oa->write_character(to_char_type(']'));
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('['));
+-                }
+-
+-                if (use_type && !j.m_value.binary->empty())
+-                {
+-                    JSON_ASSERT(use_count);
+-                    oa->write_character(to_char_type('$'));
+-                    oa->write_character('U');
+-                }
+-
+-                if (use_count)
+-                {
+-                    oa->write_character(to_char_type('#'));
+-                    write_number_with_ubjson_prefix(j.m_value.binary->size(), true);
+-                }
+-
+-                if (use_type)
+-                {
+-                    oa->write_characters(
+-                        reinterpret_cast<const CharType*>(j.m_value.binary->data()),
+-                        j.m_value.binary->size());
+-                }
+-                else
+-                {
+-                    for (size_t i = 0; i < j.m_value.binary->size(); ++i)
+-                    {
+-                        oa->write_character(to_char_type('U'));
+-                        oa->write_character(j.m_value.binary->data()[i]);
+-                    }
+-                }
+-
+-                if (!use_count)
+-                {
+-                    oa->write_character(to_char_type(']'));
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('{'));
+-                }
+-
+-                bool prefix_required = true;
+-                if (use_type && !j.m_value.object->empty())
+-                {
+-                    JSON_ASSERT(use_count);
+-                    const CharType first_prefix = ubjson_prefix(j.front());
+-                    const bool same_prefix = std::all_of(j.begin(), j.end(),
+-                                                         [this, first_prefix](const BasicJsonType & v)
+-                    {
+-                        return ubjson_prefix(v) == first_prefix;
+-                    });
+-
+-                    if (same_prefix)
+-                    {
+-                        prefix_required = false;
+-                        oa->write_character(to_char_type('$'));
+-                        oa->write_character(first_prefix);
+-                    }
+-                }
+-
+-                if (use_count)
+-                {
+-                    oa->write_character(to_char_type('#'));
+-                    write_number_with_ubjson_prefix(j.m_value.object->size(), true);
+-                }
+-
+-                for (const auto& el : *j.m_value.object)
+-                {
+-                    write_number_with_ubjson_prefix(el.first.size(), true);
+-                    oa->write_characters(
+-                        reinterpret_cast<const CharType*>(el.first.c_str()),
+-                        el.first.size());
+-                    write_ubjson(el.second, use_count, use_type, prefix_required);
+-                }
+-
+-                if (!use_count)
+-                {
+-                    oa->write_character(to_char_type('}'));
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-    }
+-
+-  private:
+-    //////////
+-    // BSON //
+-    //////////
+-
+-    /*!
+-    @return The size of a BSON document entry header, including the id marker
+-            and the entry name size (and its null-terminator).
+-    */
+-    static std::size_t calc_bson_entry_header_size(const string_t& name, const BasicJsonType& j)
+-    {
+-        const auto it = name.find(static_cast<typename string_t::value_type>(0));
+-        if (JSON_HEDLEY_UNLIKELY(it != BasicJsonType::string_t::npos))
+-        {
+-            JSON_THROW(out_of_range::create(409, "BSON key cannot contain code point U+0000 (at byte " + std::to_string(it) + ")", j));
+-            static_cast<void>(j);
+-        }
+-
+-        return /*id*/ 1ul + name.size() + /*zero-terminator*/1u;
+-    }
+-
+-    /*!
+-    @brief Writes the given @a element_type and @a name to the output adapter
+-    */
+-    void write_bson_entry_header(const string_t& name,
+-                                 const std::uint8_t element_type)
+-    {
+-        oa->write_character(to_char_type(element_type)); // boolean
+-        oa->write_characters(
+-            reinterpret_cast<const CharType*>(name.c_str()),
+-            name.size() + 1u);
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and boolean value @a value
+-    */
+-    void write_bson_boolean(const string_t& name,
+-                            const bool value)
+-    {
+-        write_bson_entry_header(name, 0x08);
+-        oa->write_character(value ? to_char_type(0x01) : to_char_type(0x00));
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and double value @a value
+-    */
+-    void write_bson_double(const string_t& name,
+-                           const double value)
+-    {
+-        write_bson_entry_header(name, 0x01);
+-        write_number<double, true>(value);
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded string in @a value
+-    */
+-    static std::size_t calc_bson_string_size(const string_t& value)
+-    {
+-        return sizeof(std::int32_t) + value.size() + 1ul;
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and string value @a value
+-    */
+-    void write_bson_string(const string_t& name,
+-                           const string_t& value)
+-    {
+-        write_bson_entry_header(name, 0x02);
+-
+-        write_number<std::int32_t, true>(static_cast<std::int32_t>(value.size() + 1ul));
+-        oa->write_characters(
+-            reinterpret_cast<const CharType*>(value.c_str()),
+-            value.size() + 1);
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and null value
+-    */
+-    void write_bson_null(const string_t& name)
+-    {
+-        write_bson_entry_header(name, 0x0A);
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded integer @a value
+-    */
+-    static std::size_t calc_bson_integer_size(const std::int64_t value)
+-    {
+-        return (std::numeric_limits<std::int32_t>::min)() <= value && value <= (std::numeric_limits<std::int32_t>::max)()
+-               ? sizeof(std::int32_t)
+-               : sizeof(std::int64_t);
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and integer @a value
+-    */
+-    void write_bson_integer(const string_t& name,
+-                            const std::int64_t value)
+-    {
+-        if ((std::numeric_limits<std::int32_t>::min)() <= value && value <= (std::numeric_limits<std::int32_t>::max)())
+-        {
+-            write_bson_entry_header(name, 0x10); // int32
+-            write_number<std::int32_t, true>(static_cast<std::int32_t>(value));
+-        }
+-        else
+-        {
+-            write_bson_entry_header(name, 0x12); // int64
+-            write_number<std::int64_t, true>(static_cast<std::int64_t>(value));
+-        }
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded unsigned integer in @a j
+-    */
+-    static constexpr std::size_t calc_bson_unsigned_size(const std::uint64_t value) noexcept
+-    {
+-        return (value <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
+-               ? sizeof(std::int32_t)
+-               : sizeof(std::int64_t);
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and unsigned @a value
+-    */
+-    void write_bson_unsigned(const string_t& name,
+-                             const BasicJsonType& j)
+-    {
+-        if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
+-        {
+-            write_bson_entry_header(name, 0x10 /* int32 */);
+-            write_number<std::int32_t, true>(static_cast<std::int32_t>(j.m_value.number_unsigned));
+-        }
+-        else if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int64_t>::max)()))
+-        {
+-            write_bson_entry_header(name, 0x12 /* int64 */);
+-            write_number<std::int64_t, true>(static_cast<std::int64_t>(j.m_value.number_unsigned));
+-        }
+-        else
+-        {
+-            JSON_THROW(out_of_range::create(407, "integer number " + std::to_string(j.m_value.number_unsigned) + " cannot be represented by BSON as it does not fit int64", j));
+-        }
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and object @a value
+-    */
+-    void write_bson_object_entry(const string_t& name,
+-                                 const typename BasicJsonType::object_t& value)
+-    {
+-        write_bson_entry_header(name, 0x03); // object
+-        write_bson_object(value);
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded array @a value
+-    */
+-    static std::size_t calc_bson_array_size(const typename BasicJsonType::array_t& value)
+-    {
+-        std::size_t array_index = 0ul;
+-
+-        const std::size_t embedded_document_size = std::accumulate(std::begin(value), std::end(value), static_cast<std::size_t>(0), [&array_index](std::size_t result, const typename BasicJsonType::array_t::value_type & el)
+-        {
+-            return result + calc_bson_element_size(std::to_string(array_index++), el);
+-        });
+-
+-        return sizeof(std::int32_t) + embedded_document_size + 1ul;
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded binary array @a value
+-    */
+-    static std::size_t calc_bson_binary_size(const typename BasicJsonType::binary_t& value)
+-    {
+-        return sizeof(std::int32_t) + value.size() + 1ul;
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and array @a value
+-    */
+-    void write_bson_array(const string_t& name,
+-                          const typename BasicJsonType::array_t& value)
+-    {
+-        write_bson_entry_header(name, 0x04); // array
+-        write_number<std::int32_t, true>(static_cast<std::int32_t>(calc_bson_array_size(value)));
+-
+-        std::size_t array_index = 0ul;
+-
+-        for (const auto& el : value)
+-        {
+-            write_bson_element(std::to_string(array_index++), el);
+-        }
+-
+-        oa->write_character(to_char_type(0x00));
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and binary value @a value
+-    */
+-    void write_bson_binary(const string_t& name,
+-                           const binary_t& value)
+-    {
+-        write_bson_entry_header(name, 0x05);
+-
+-        write_number<std::int32_t, true>(static_cast<std::int32_t>(value.size()));
+-        write_number(value.has_subtype() ? static_cast<std::uint8_t>(value.subtype()) : static_cast<std::uint8_t>(0x00));
+-
+-        oa->write_characters(reinterpret_cast<const CharType*>(value.data()), value.size());
+-    }
+-
+-    /*!
+-    @brief Calculates the size necessary to serialize the JSON value @a j with its @a name
+-    @return The calculated size for the BSON document entry for @a j with the given @a name.
+-    */
+-    static std::size_t calc_bson_element_size(const string_t& name,
+-            const BasicJsonType& j)
+-    {
+-        const auto header_size = calc_bson_entry_header_size(name, j);
+-        switch (j.type())
+-        {
+-            case value_t::object:
+-                return header_size + calc_bson_object_size(*j.m_value.object);
+-
+-            case value_t::array:
+-                return header_size + calc_bson_array_size(*j.m_value.array);
+-
+-            case value_t::binary:
+-                return header_size + calc_bson_binary_size(*j.m_value.binary);
+-
+-            case value_t::boolean:
+-                return header_size + 1ul;
+-
+-            case value_t::number_float:
+-                return header_size + 8ul;
+-
+-            case value_t::number_integer:
+-                return header_size + calc_bson_integer_size(j.m_value.number_integer);
+-
+-            case value_t::number_unsigned:
+-                return header_size + calc_bson_unsigned_size(j.m_value.number_unsigned);
+-
+-            case value_t::string:
+-                return header_size + calc_bson_string_size(*j.m_value.string);
+-
+-            case value_t::null:
+-                return header_size + 0ul;
+-
+-            // LCOV_EXCL_START
+-            case value_t::discarded:
+-            default:
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert)
+-                return 0ul;
+-                // LCOV_EXCL_STOP
+-        }
+-    }
+-
+-    /*!
+-    @brief Serializes the JSON value @a j to BSON and associates it with the
+-           key @a name.
+-    @param name The name to associate with the JSON entity @a j within the
+-                current BSON document
+-    */
+-    void write_bson_element(const string_t& name,
+-                            const BasicJsonType& j)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::object:
+-                return write_bson_object_entry(name, *j.m_value.object);
+-
+-            case value_t::array:
+-                return write_bson_array(name, *j.m_value.array);
+-
+-            case value_t::binary:
+-                return write_bson_binary(name, *j.m_value.binary);
+-
+-            case value_t::boolean:
+-                return write_bson_boolean(name, j.m_value.boolean);
+-
+-            case value_t::number_float:
+-                return write_bson_double(name, j.m_value.number_float);
+-
+-            case value_t::number_integer:
+-                return write_bson_integer(name, j.m_value.number_integer);
+-
+-            case value_t::number_unsigned:
+-                return write_bson_unsigned(name, j);
+-
+-            case value_t::string:
+-                return write_bson_string(name, *j.m_value.string);
+-
+-            case value_t::null:
+-                return write_bson_null(name);
+-
+-            // LCOV_EXCL_START
+-            case value_t::discarded:
+-            default:
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert)
+-                return;
+-                // LCOV_EXCL_STOP
+-        }
+-    }
+-
+-    /*!
+-    @brief Calculates the size of the BSON serialization of the given
+-           JSON-object @a j.
+-    @param[in] value  JSON value to serialize
+-    @pre       value.type() == value_t::object
+-    */
+-    static std::size_t calc_bson_object_size(const typename BasicJsonType::object_t& value)
+-    {
+-        std::size_t document_size = std::accumulate(value.begin(), value.end(), static_cast<std::size_t>(0),
+-                                    [](size_t result, const typename BasicJsonType::object_t::value_type & el)
+-        {
+-            return result += calc_bson_element_size(el.first, el.second);
+-        });
+-
+-        return sizeof(std::int32_t) + document_size + 1ul;
+-    }
+-
+-    /*!
+-    @param[in] value  JSON value to serialize
+-    @pre       value.type() == value_t::object
+-    */
+-    void write_bson_object(const typename BasicJsonType::object_t& value)
+-    {
+-        write_number<std::int32_t, true>(static_cast<std::int32_t>(calc_bson_object_size(value)));
+-
+-        for (const auto& el : value)
+-        {
+-            write_bson_element(el.first, el.second);
+-        }
+-
+-        oa->write_character(to_char_type(0x00));
+-    }
+-
+-    //////////
+-    // CBOR //
+-    //////////
+-
+-    static constexpr CharType get_cbor_float_prefix(float /*unused*/)
+-    {
+-        return to_char_type(0xFA);  // Single-Precision Float
+-    }
+-
+-    static constexpr CharType get_cbor_float_prefix(double /*unused*/)
+-    {
+-        return to_char_type(0xFB);  // Double-Precision Float
+-    }
+-
+-    /////////////
+-    // MsgPack //
+-    /////////////
+-
+-    static constexpr CharType get_msgpack_float_prefix(float /*unused*/)
+-    {
+-        return to_char_type(0xCA);  // float 32
+-    }
+-
+-    static constexpr CharType get_msgpack_float_prefix(double /*unused*/)
+-    {
+-        return to_char_type(0xCB);  // float 64
+-    }
+-
+-    ////////////
+-    // UBJSON //
+-    ////////////
+-
+-    // UBJSON: write number (floating point)
+-    template<typename NumberType, typename std::enable_if<
+-                 std::is_floating_point<NumberType>::value, int>::type = 0>
+-    void write_number_with_ubjson_prefix(const NumberType n,
+-                                         const bool add_prefix)
+-    {
+-        if (add_prefix)
+-        {
+-            oa->write_character(get_ubjson_float_prefix(n));
+-        }
+-        write_number(n);
+-    }
+-
+-    // UBJSON: write number (unsigned integer)
+-    template<typename NumberType, typename std::enable_if<
+-                 std::is_unsigned<NumberType>::value, int>::type = 0>
+-    void write_number_with_ubjson_prefix(const NumberType n,
+-                                         const bool add_prefix)
+-    {
+-        if (n <= static_cast<std::uint64_t>((std::numeric_limits<std::int8_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('i'));  // int8
+-            }
+-            write_number(static_cast<std::uint8_t>(n));
+-        }
+-        else if (n <= (std::numeric_limits<std::uint8_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('U'));  // uint8
+-            }
+-            write_number(static_cast<std::uint8_t>(n));
+-        }
+-        else if (n <= static_cast<std::uint64_t>((std::numeric_limits<std::int16_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('I'));  // int16
+-            }
+-            write_number(static_cast<std::int16_t>(n));
+-        }
+-        else if (n <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('l'));  // int32
+-            }
+-            write_number(static_cast<std::int32_t>(n));
+-        }
+-        else if (n <= static_cast<std::uint64_t>((std::numeric_limits<std::int64_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('L'));  // int64
+-            }
+-            write_number(static_cast<std::int64_t>(n));
+-        }
+-        else
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('H'));  // high-precision number
+-            }
+-
+-            const auto number = BasicJsonType(n).dump();
+-            write_number_with_ubjson_prefix(number.size(), true);
+-            for (std::size_t i = 0; i < number.size(); ++i)
+-            {
+-                oa->write_character(to_char_type(static_cast<std::uint8_t>(number[i])));
+-            }
+-        }
+-    }
+-
+-    // UBJSON: write number (signed integer)
+-    template < typename NumberType, typename std::enable_if <
+-                   std::is_signed<NumberType>::value&&
+-                   !std::is_floating_point<NumberType>::value, int >::type = 0 >
+-    void write_number_with_ubjson_prefix(const NumberType n,
+-                                         const bool add_prefix)
+-    {
+-        if ((std::numeric_limits<std::int8_t>::min)() <= n && n <= (std::numeric_limits<std::int8_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('i'));  // int8
+-            }
+-            write_number(static_cast<std::int8_t>(n));
+-        }
+-        else if (static_cast<std::int64_t>((std::numeric_limits<std::uint8_t>::min)()) <= n && n <= static_cast<std::int64_t>((std::numeric_limits<std::uint8_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('U'));  // uint8
+-            }
+-            write_number(static_cast<std::uint8_t>(n));
+-        }
+-        else if ((std::numeric_limits<std::int16_t>::min)() <= n && n <= (std::numeric_limits<std::int16_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('I'));  // int16
+-            }
+-            write_number(static_cast<std::int16_t>(n));
+-        }
+-        else if ((std::numeric_limits<std::int32_t>::min)() <= n && n <= (std::numeric_limits<std::int32_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('l'));  // int32
+-            }
+-            write_number(static_cast<std::int32_t>(n));
+-        }
+-        else if ((std::numeric_limits<std::int64_t>::min)() <= n && n <= (std::numeric_limits<std::int64_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('L'));  // int64
+-            }
+-            write_number(static_cast<std::int64_t>(n));
+-        }
+-        // LCOV_EXCL_START
+-        else
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('H'));  // high-precision number
+-            }
+-
+-            const auto number = BasicJsonType(n).dump();
+-            write_number_with_ubjson_prefix(number.size(), true);
+-            for (std::size_t i = 0; i < number.size(); ++i)
+-            {
+-                oa->write_character(to_char_type(static_cast<std::uint8_t>(number[i])));
+-            }
+-        }
+-        // LCOV_EXCL_STOP
+-    }
+-
+-    /*!
+-    @brief determine the type prefix of container values
+-    */
+-    CharType ubjson_prefix(const BasicJsonType& j) const noexcept
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::null:
+-                return 'Z';
+-
+-            case value_t::boolean:
+-                return j.m_value.boolean ? 'T' : 'F';
+-
+-            case value_t::number_integer:
+-            {
+-                if ((std::numeric_limits<std::int8_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::int8_t>::max)())
+-                {
+-                    return 'i';
+-                }
+-                if ((std::numeric_limits<std::uint8_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    return 'U';
+-                }
+-                if ((std::numeric_limits<std::int16_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::int16_t>::max)())
+-                {
+-                    return 'I';
+-                }
+-                if ((std::numeric_limits<std::int32_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::int32_t>::max)())
+-                {
+-                    return 'l';
+-                }
+-                if ((std::numeric_limits<std::int64_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::int64_t>::max)())
+-                {
+-                    return 'L';
+-                }
+-                // anything else is treated as high-precision number
+-                return 'H'; // LCOV_EXCL_LINE
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int8_t>::max)()))
+-                {
+-                    return 'i';
+-                }
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::uint8_t>::max)()))
+-                {
+-                    return 'U';
+-                }
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int16_t>::max)()))
+-                {
+-                    return 'I';
+-                }
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
+-                {
+-                    return 'l';
+-                }
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int64_t>::max)()))
+-                {
+-                    return 'L';
+-                }
+-                // anything else is treated as high-precision number
+-                return 'H'; // LCOV_EXCL_LINE
+-            }
+-
+-            case value_t::number_float:
+-                return get_ubjson_float_prefix(j.m_value.number_float);
+-
+-            case value_t::string:
+-                return 'S';
+-
+-            case value_t::array: // fallthrough
+-            case value_t::binary:
+-                return '[';
+-
+-            case value_t::object:
+-                return '{';
+-
+-            case value_t::discarded:
+-            default:  // discarded values
+-                return 'N';
+-        }
+-    }
+-
+-    static constexpr CharType get_ubjson_float_prefix(float /*unused*/)
+-    {
+-        return 'd';  // float 32
+-    }
+-
+-    static constexpr CharType get_ubjson_float_prefix(double /*unused*/)
+-    {
+-        return 'D';  // float 64
+-    }
+-
+-    ///////////////////////
+-    // Utility functions //
+-    ///////////////////////
+-
+-    /*
+-    @brief write a number to output input
+-    @param[in] n number of type @a NumberType
+-    @tparam NumberType the type of the number
+-    @tparam OutputIsLittleEndian Set to true if output data is
+-                                 required to be little endian
+-
+-    @note This function needs to respect the system's endianness, because bytes
+-          in CBOR, MessagePack, and UBJSON are stored in network order (big
+-          endian) and therefore need reordering on little endian systems.
+-    */
+-    template<typename NumberType, bool OutputIsLittleEndian = false>
+-    void write_number(const NumberType n)
+-    {
+-        // step 1: write number to array of length NumberType
+-        std::array<CharType, sizeof(NumberType)> vec{};
+-        std::memcpy(vec.data(), &n, sizeof(NumberType));
+-
+-        // step 2: write array to output (with possible reordering)
+-        if (is_little_endian != OutputIsLittleEndian)
+-        {
+-            // reverse byte order prior to conversion if necessary
+-            std::reverse(vec.begin(), vec.end());
+-        }
+-
+-        oa->write_characters(vec.data(), sizeof(NumberType));
+-    }
+-
+-    void write_compact_float(const number_float_t n, detail::input_format_t format)
+-    {
+-#ifdef __GNUC__
+-#pragma GCC diagnostic push
+-#pragma GCC diagnostic ignored "-Wfloat-equal"
+-#endif
+-        if (static_cast<double>(n) >= static_cast<double>(std::numeric_limits<float>::lowest()) &&
+-                static_cast<double>(n) <= static_cast<double>((std::numeric_limits<float>::max)()) &&
+-                static_cast<double>(static_cast<float>(n)) == static_cast<double>(n))
+-        {
+-            oa->write_character(format == detail::input_format_t::cbor
+-                                ? get_cbor_float_prefix(static_cast<float>(n))
+-                                : get_msgpack_float_prefix(static_cast<float>(n)));
+-            write_number(static_cast<float>(n));
+-        }
+-        else
+-        {
+-            oa->write_character(format == detail::input_format_t::cbor
+-                                ? get_cbor_float_prefix(n)
+-                                : get_msgpack_float_prefix(n));
+-            write_number(n);
+-        }
+-#ifdef __GNUC__
+-#pragma GCC diagnostic pop
+-#endif
+-    }
+-
+-  public:
+-    // The following to_char_type functions are implement the conversion
+-    // between uint8_t and CharType. In case CharType is not unsigned,
+-    // such a conversion is required to allow values greater than 128.
+-    // See <https://github.com/nlohmann/json/issues/1286> for a discussion.
+-    template < typename C = CharType,
+-               enable_if_t < std::is_signed<C>::value && std::is_signed<char>::value > * = nullptr >
+-    static constexpr CharType to_char_type(std::uint8_t x) noexcept
+-    {
+-        return *reinterpret_cast<char*>(&x);
+-    }
+-
+-    template < typename C = CharType,
+-               enable_if_t < std::is_signed<C>::value && std::is_unsigned<char>::value > * = nullptr >
+-    static CharType to_char_type(std::uint8_t x) noexcept
+-    {
+-        static_assert(sizeof(std::uint8_t) == sizeof(CharType), "size of CharType must be equal to std::uint8_t");
+-        static_assert(std::is_trivial<CharType>::value, "CharType must be trivial");
+-        CharType result;
+-        std::memcpy(&result, &x, sizeof(x));
+-        return result;
+-    }
+-
+-    template<typename C = CharType,
+-             enable_if_t<std::is_unsigned<C>::value>* = nullptr>
+-    static constexpr CharType to_char_type(std::uint8_t x) noexcept
+-    {
+-        return x;
+-    }
+-
+-    template < typename InputCharType, typename C = CharType,
+-               enable_if_t <
+-                   std::is_signed<C>::value &&
+-                   std::is_signed<char>::value &&
+-                   std::is_same<char, typename std::remove_cv<InputCharType>::type>::value
+-                   > * = nullptr >
+-    static constexpr CharType to_char_type(InputCharType x) noexcept
+-    {
+-        return x;
+-    }
+-
+-  private:
+-    /// whether we can assume little endianness
+-    const bool is_little_endian = little_endianness();
+-
+-    /// the output
+-    output_adapter_t<CharType> oa = nullptr;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/output/output_adapters.hpp>
+-
+-// #include <nlohmann/detail/output/serializer.hpp>
+-
+-
+-#include <algorithm> // reverse, remove, fill, find, none_of
+-#include <array> // array
+-#include <clocale> // localeconv, lconv
+-#include <cmath> // labs, isfinite, isnan, signbit
+-#include <cstddef> // size_t, ptrdiff_t
+-#include <cstdint> // uint8_t
+-#include <cstdio> // snprintf
+-#include <limits> // numeric_limits
+-#include <string> // string, char_traits
+-#include <iomanip> // setfill, setw
+-#include <sstream> // stringstream
+-#include <type_traits> // is_same
+-#include <utility> // move
+-
+-// #include <nlohmann/detail/conversions/to_chars.hpp>
+-
+-
+-#include <array> // array
+-#include <cmath>   // signbit, isfinite
+-#include <cstdint> // intN_t, uintN_t
+-#include <cstring> // memcpy, memmove
+-#include <limits> // numeric_limits
+-#include <type_traits> // conditional
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-/*!
+-@brief implements the Grisu2 algorithm for binary to decimal floating-point
+-conversion.
+-
+-This implementation is a slightly modified version of the reference
+-implementation which may be obtained from
+-http://florian.loitsch.com/publications (bench.tar.gz).
+-
+-The code is distributed under the MIT license, Copyright (c) 2009 Florian Loitsch.
+-
+-For a detailed description of the algorithm see:
+-
+-[1] Loitsch, "Printing Floating-Point Numbers Quickly and Accurately with
+-    Integers", Proceedings of the ACM SIGPLAN 2010 Conference on Programming
+-    Language Design and Implementation, PLDI 2010
+-[2] Burger, Dybvig, "Printing Floating-Point Numbers Quickly and Accurately",
+-    Proceedings of the ACM SIGPLAN 1996 Conference on Programming Language
+-    Design and Implementation, PLDI 1996
+-*/
+-namespace dtoa_impl
+-{
+-
+-template<typename Target, typename Source>
+-Target reinterpret_bits(const Source source)
+-{
+-    static_assert(sizeof(Target) == sizeof(Source), "size mismatch");
+-
+-    Target target;
+-    std::memcpy(&target, &source, sizeof(Source));
+-    return target;
+-}
+-
+-struct diyfp // f * 2^e
+-{
+-    static constexpr int kPrecision = 64; // = q
+-
+-    std::uint64_t f = 0;
+-    int e = 0;
+-
+-    constexpr diyfp(std::uint64_t f_, int e_) noexcept : f(f_), e(e_) {}
+-
+-    /*!
+-    @brief returns x - y
+-    @pre x.e == y.e and x.f >= y.f
+-    */
+-    static diyfp sub(const diyfp& x, const diyfp& y) noexcept
+-    {
+-        JSON_ASSERT(x.e == y.e);
+-        JSON_ASSERT(x.f >= y.f);
+-
+-        return {x.f - y.f, x.e};
+-    }
+-
+-    /*!
+-    @brief returns x * y
+-    @note The result is rounded. (Only the upper q bits are returned.)
+-    */
+-    static diyfp mul(const diyfp& x, const diyfp& y) noexcept
+-    {
+-        static_assert(kPrecision == 64, "internal error");
+-
+-        // Computes:
+-        //  f = round((x.f * y.f) / 2^q)
+-        //  e = x.e + y.e + q
+-
+-        // Emulate the 64-bit * 64-bit multiplication:
+-        //
+-        // p = u * v
+-        //   = (u_lo + 2^32 u_hi) (v_lo + 2^32 v_hi)
+-        //   = (u_lo v_lo         ) + 2^32 ((u_lo v_hi         ) + (u_hi v_lo         )) + 2^64 (u_hi v_hi         )
+-        //   = (p0                ) + 2^32 ((p1                ) + (p2                )) + 2^64 (p3                )
+-        //   = (p0_lo + 2^32 p0_hi) + 2^32 ((p1_lo + 2^32 p1_hi) + (p2_lo + 2^32 p2_hi)) + 2^64 (p3                )
+-        //   = (p0_lo             ) + 2^32 (p0_hi + p1_lo + p2_lo                      ) + 2^64 (p1_hi + p2_hi + p3)
+-        //   = (p0_lo             ) + 2^32 (Q                                          ) + 2^64 (H                 )
+-        //   = (p0_lo             ) + 2^32 (Q_lo + 2^32 Q_hi                           ) + 2^64 (H                 )
+-        //
+-        // (Since Q might be larger than 2^32 - 1)
+-        //
+-        //   = (p0_lo + 2^32 Q_lo) + 2^64 (Q_hi + H)
+-        //
+-        // (Q_hi + H does not overflow a 64-bit int)
+-        //
+-        //   = p_lo + 2^64 p_hi
+-
+-        const std::uint64_t u_lo = x.f & 0xFFFFFFFFu;
+-        const std::uint64_t u_hi = x.f >> 32u;
+-        const std::uint64_t v_lo = y.f & 0xFFFFFFFFu;
+-        const std::uint64_t v_hi = y.f >> 32u;
+-
+-        const std::uint64_t p0 = u_lo * v_lo;
+-        const std::uint64_t p1 = u_lo * v_hi;
+-        const std::uint64_t p2 = u_hi * v_lo;
+-        const std::uint64_t p3 = u_hi * v_hi;
+-
+-        const std::uint64_t p0_hi = p0 >> 32u;
+-        const std::uint64_t p1_lo = p1 & 0xFFFFFFFFu;
+-        const std::uint64_t p1_hi = p1 >> 32u;
+-        const std::uint64_t p2_lo = p2 & 0xFFFFFFFFu;
+-        const std::uint64_t p2_hi = p2 >> 32u;
+-
+-        std::uint64_t Q = p0_hi + p1_lo + p2_lo;
+-
+-        // The full product might now be computed as
+-        //
+-        // p_hi = p3 + p2_hi + p1_hi + (Q >> 32)
+-        // p_lo = p0_lo + (Q << 32)
+-        //
+-        // But in this particular case here, the full p_lo is not required.
+-        // Effectively we only need to add the highest bit in p_lo to p_hi (and
+-        // Q_hi + 1 does not overflow).
+-
+-        Q += std::uint64_t{1} << (64u - 32u - 1u); // round, ties up
+-
+-        const std::uint64_t h = p3 + p2_hi + p1_hi + (Q >> 32u);
+-
+-        return {h, x.e + y.e + 64};
+-    }
+-
+-    /*!
+-    @brief normalize x such that the significand is >= 2^(q-1)
+-    @pre x.f != 0
+-    */
+-    static diyfp normalize(diyfp x) noexcept
+-    {
+-        JSON_ASSERT(x.f != 0);
+-
+-        while ((x.f >> 63u) == 0)
+-        {
+-            x.f <<= 1u;
+-            x.e--;
+-        }
+-
+-        return x;
+-    }
+-
+-    /*!
+-    @brief normalize x such that the result has the exponent E
+-    @pre e >= x.e and the upper e - x.e bits of x.f must be zero.
+-    */
+-    static diyfp normalize_to(const diyfp& x, const int target_exponent) noexcept
+-    {
+-        const int delta = x.e - target_exponent;
+-
+-        JSON_ASSERT(delta >= 0);
+-        JSON_ASSERT(((x.f << delta) >> delta) == x.f);
+-
+-        return {x.f << delta, target_exponent};
+-    }
+-};
+-
+-struct boundaries
+-{
+-    diyfp w;
+-    diyfp minus;
+-    diyfp plus;
+-};
+-
+-/*!
+-Compute the (normalized) diyfp representing the input number 'value' and its
+-boundaries.
+-
+-@pre value must be finite and positive
+-*/
+-template<typename FloatType>
+-boundaries compute_boundaries(FloatType value)
+-{
+-    JSON_ASSERT(std::isfinite(value));
+-    JSON_ASSERT(value > 0);
+-
+-    // Convert the IEEE representation into a diyfp.
+-    //
+-    // If v is denormal:
+-    //      value = 0.F * 2^(1 - bias) = (          F) * 2^(1 - bias - (p-1))
+-    // If v is normalized:
+-    //      value = 1.F * 2^(E - bias) = (2^(p-1) + F) * 2^(E - bias - (p-1))
+-
+-    static_assert(std::numeric_limits<FloatType>::is_iec559,
+-                  "internal error: dtoa_short requires an IEEE-754 floating-point implementation");
+-
+-    constexpr int      kPrecision = std::numeric_limits<FloatType>::digits; // = p (includes the hidden bit)
+-    constexpr int      kBias      = std::numeric_limits<FloatType>::max_exponent - 1 + (kPrecision - 1);
+-    constexpr int      kMinExp    = 1 - kBias;
+-    constexpr std::uint64_t kHiddenBit = std::uint64_t{1} << (kPrecision - 1); // = 2^(p-1)
+-
+-    using bits_type = typename std::conditional<kPrecision == 24, std::uint32_t, std::uint64_t >::type;
+-
+-    const auto bits = static_cast<std::uint64_t>(reinterpret_bits<bits_type>(value));
+-    const std::uint64_t E = bits >> (kPrecision - 1);
+-    const std::uint64_t F = bits & (kHiddenBit - 1);
+-
+-    const bool is_denormal = E == 0;
+-    const diyfp v = is_denormal
+-                    ? diyfp(F, kMinExp)
+-                    : diyfp(F + kHiddenBit, static_cast<int>(E) - kBias);
+-
+-    // Compute the boundaries m- and m+ of the floating-point value
+-    // v = f * 2^e.
+-    //
+-    // Determine v- and v+, the floating-point predecessor and successor if v,
+-    // respectively.
+-    //
+-    //      v- = v - 2^e        if f != 2^(p-1) or e == e_min                (A)
+-    //         = v - 2^(e-1)    if f == 2^(p-1) and e > e_min                (B)
+-    //
+-    //      v+ = v + 2^e
+-    //
+-    // Let m- = (v- + v) / 2 and m+ = (v + v+) / 2. All real numbers _strictly_
+-    // between m- and m+ round to v, regardless of how the input rounding
+-    // algorithm breaks ties.
+-    //
+-    //      ---+-------------+-------------+-------------+-------------+---  (A)
+-    //         v-            m-            v             m+            v+
+-    //
+-    //      -----------------+------+------+-------------+-------------+---  (B)
+-    //                       v-     m-     v             m+            v+
+-
+-    const bool lower_boundary_is_closer = F == 0 && E > 1;
+-    const diyfp m_plus = diyfp(2 * v.f + 1, v.e - 1);
+-    const diyfp m_minus = lower_boundary_is_closer
+-                          ? diyfp(4 * v.f - 1, v.e - 2)  // (B)
+-                          : diyfp(2 * v.f - 1, v.e - 1); // (A)
+-
+-    // Determine the normalized w+ = m+.
+-    const diyfp w_plus = diyfp::normalize(m_plus);
+-
+-    // Determine w- = m- such that e_(w-) = e_(w+).
+-    const diyfp w_minus = diyfp::normalize_to(m_minus, w_plus.e);
+-
+-    return {diyfp::normalize(v), w_minus, w_plus};
+-}
+-
+-// Given normalized diyfp w, Grisu needs to find a (normalized) cached
+-// power-of-ten c, such that the exponent of the product c * w = f * 2^e lies
+-// within a certain range [alpha, gamma] (Definition 3.2 from [1])
+-//
+-//      alpha <= e = e_c + e_w + q <= gamma
+-//
+-// or
+-//
+-//      f_c * f_w * 2^alpha <= f_c 2^(e_c) * f_w 2^(e_w) * 2^q
+-//                          <= f_c * f_w * 2^gamma
+-//
+-// Since c and w are normalized, i.e. 2^(q-1) <= f < 2^q, this implies
+-//
+-//      2^(q-1) * 2^(q-1) * 2^alpha <= c * w * 2^q < 2^q * 2^q * 2^gamma
+-//
+-// or
+-//
+-//      2^(q - 2 + alpha) <= c * w < 2^(q + gamma)
+-//
+-// The choice of (alpha,gamma) determines the size of the table and the form of
+-// the digit generation procedure. Using (alpha,gamma)=(-60,-32) works out well
+-// in practice:
+-//
+-// The idea is to cut the number c * w = f * 2^e into two parts, which can be
+-// processed independently: An integral part p1, and a fractional part p2:
+-//
+-//      f * 2^e = ( (f div 2^-e) * 2^-e + (f mod 2^-e) ) * 2^e
+-//              = (f div 2^-e) + (f mod 2^-e) * 2^e
+-//              = p1 + p2 * 2^e
+-//
+-// The conversion of p1 into decimal form requires a series of divisions and
+-// modulos by (a power of) 10. These operations are faster for 32-bit than for
+-// 64-bit integers, so p1 should ideally fit into a 32-bit integer. This can be
+-// achieved by choosing
+-//
+-//      -e >= 32   or   e <= -32 := gamma
+-//
+-// In order to convert the fractional part
+-//
+-//      p2 * 2^e = p2 / 2^-e = d[-1] / 10^1 + d[-2] / 10^2 + ...
+-//
+-// into decimal form, the fraction is repeatedly multiplied by 10 and the digits
+-// d[-i] are extracted in order:
+-//
+-//      (10 * p2) div 2^-e = d[-1]
+-//      (10 * p2) mod 2^-e = d[-2] / 10^1 + ...
+-//
+-// The multiplication by 10 must not overflow. It is sufficient to choose
+-//
+-//      10 * p2 < 16 * p2 = 2^4 * p2 <= 2^64.
+-//
+-// Since p2 = f mod 2^-e < 2^-e,
+-//
+-//      -e <= 60   or   e >= -60 := alpha
+-
+-constexpr int kAlpha = -60;
+-constexpr int kGamma = -32;
+-
+-struct cached_power // c = f * 2^e ~= 10^k
+-{
+-    std::uint64_t f;
+-    int e;
+-    int k;
+-};
+-
+-/*!
+-For a normalized diyfp w = f * 2^e, this function returns a (normalized) cached
+-power-of-ten c = f_c * 2^e_c, such that the exponent of the product w * c
+-satisfies (Definition 3.2 from [1])
+-
+-     alpha <= e_c + e + q <= gamma.
+-*/
+-inline cached_power get_cached_power_for_binary_exponent(int e)
+-{
+-    // Now
+-    //
+-    //      alpha <= e_c + e + q <= gamma                                    (1)
+-    //      ==> f_c * 2^alpha <= c * 2^e * 2^q
+-    //
+-    // and since the c's are normalized, 2^(q-1) <= f_c,
+-    //
+-    //      ==> 2^(q - 1 + alpha) <= c * 2^(e + q)
+-    //      ==> 2^(alpha - e - 1) <= c
+-    //
+-    // If c were an exact power of ten, i.e. c = 10^k, one may determine k as
+-    //
+-    //      k = ceil( log_10( 2^(alpha - e - 1) ) )
+-    //        = ceil( (alpha - e - 1) * log_10(2) )
+-    //
+-    // From the paper:
+-    // "In theory the result of the procedure could be wrong since c is rounded,
+-    //  and the computation itself is approximated [...]. In practice, however,
+-    //  this simple function is sufficient."
+-    //
+-    // For IEEE double precision floating-point numbers converted into
+-    // normalized diyfp's w = f * 2^e, with q = 64,
+-    //
+-    //      e >= -1022      (min IEEE exponent)
+-    //           -52        (p - 1)
+-    //           -52        (p - 1, possibly normalize denormal IEEE numbers)
+-    //           -11        (normalize the diyfp)
+-    //         = -1137
+-    //
+-    // and
+-    //
+-    //      e <= +1023      (max IEEE exponent)
+-    //           -52        (p - 1)
+-    //           -11        (normalize the diyfp)
+-    //         = 960
+-    //
+-    // This binary exponent range [-1137,960] results in a decimal exponent
+-    // range [-307,324]. One does not need to store a cached power for each
+-    // k in this range. For each such k it suffices to find a cached power
+-    // such that the exponent of the product lies in [alpha,gamma].
+-    // This implies that the difference of the decimal exponents of adjacent
+-    // table entries must be less than or equal to
+-    //
+-    //      floor( (gamma - alpha) * log_10(2) ) = 8.
+-    //
+-    // (A smaller distance gamma-alpha would require a larger table.)
+-
+-    // NB:
+-    // Actually this function returns c, such that -60 <= e_c + e + 64 <= -34.
+-
+-    constexpr int kCachedPowersMinDecExp = -300;
+-    constexpr int kCachedPowersDecStep = 8;
+-
+-    static constexpr std::array<cached_power, 79> kCachedPowers =
+-    {
+-        {
+-            { 0xAB70FE17C79AC6CA, -1060, -300 },
+-            { 0xFF77B1FCBEBCDC4F, -1034, -292 },
+-            { 0xBE5691EF416BD60C, -1007, -284 },
+-            { 0x8DD01FAD907FFC3C,  -980, -276 },
+-            { 0xD3515C2831559A83,  -954, -268 },
+-            { 0x9D71AC8FADA6C9B5,  -927, -260 },
+-            { 0xEA9C227723EE8BCB,  -901, -252 },
+-            { 0xAECC49914078536D,  -874, -244 },
+-            { 0x823C12795DB6CE57,  -847, -236 },
+-            { 0xC21094364DFB5637,  -821, -228 },
+-            { 0x9096EA6F3848984F,  -794, -220 },
+-            { 0xD77485CB25823AC7,  -768, -212 },
+-            { 0xA086CFCD97BF97F4,  -741, -204 },
+-            { 0xEF340A98172AACE5,  -715, -196 },
+-            { 0xB23867FB2A35B28E,  -688, -188 },
+-            { 0x84C8D4DFD2C63F3B,  -661, -180 },
+-            { 0xC5DD44271AD3CDBA,  -635, -172 },
+-            { 0x936B9FCEBB25C996,  -608, -164 },
+-            { 0xDBAC6C247D62A584,  -582, -156 },
+-            { 0xA3AB66580D5FDAF6,  -555, -148 },
+-            { 0xF3E2F893DEC3F126,  -529, -140 },
+-            { 0xB5B5ADA8AAFF80B8,  -502, -132 },
+-            { 0x87625F056C7C4A8B,  -475, -124 },
+-            { 0xC9BCFF6034C13053,  -449, -116 },
+-            { 0x964E858C91BA2655,  -422, -108 },
+-            { 0xDFF9772470297EBD,  -396, -100 },
+-            { 0xA6DFBD9FB8E5B88F,  -369,  -92 },
+-            { 0xF8A95FCF88747D94,  -343,  -84 },
+-            { 0xB94470938FA89BCF,  -316,  -76 },
+-            { 0x8A08F0F8BF0F156B,  -289,  -68 },
+-            { 0xCDB02555653131B6,  -263,  -60 },
+-            { 0x993FE2C6D07B7FAC,  -236,  -52 },
+-            { 0xE45C10C42A2B3B06,  -210,  -44 },
+-            { 0xAA242499697392D3,  -183,  -36 },
+-            { 0xFD87B5F28300CA0E,  -157,  -28 },
+-            { 0xBCE5086492111AEB,  -130,  -20 },
+-            { 0x8CBCCC096F5088CC,  -103,  -12 },
+-            { 0xD1B71758E219652C,   -77,   -4 },
+-            { 0x9C40000000000000,   -50,    4 },
+-            { 0xE8D4A51000000000,   -24,   12 },
+-            { 0xAD78EBC5AC620000,     3,   20 },
+-            { 0x813F3978F8940984,    30,   28 },
+-            { 0xC097CE7BC90715B3,    56,   36 },
+-            { 0x8F7E32CE7BEA5C70,    83,   44 },
+-            { 0xD5D238A4ABE98068,   109,   52 },
+-            { 0x9F4F2726179A2245,   136,   60 },
+-            { 0xED63A231D4C4FB27,   162,   68 },
+-            { 0xB0DE65388CC8ADA8,   189,   76 },
+-            { 0x83C7088E1AAB65DB,   216,   84 },
+-            { 0xC45D1DF942711D9A,   242,   92 },
+-            { 0x924D692CA61BE758,   269,  100 },
+-            { 0xDA01EE641A708DEA,   295,  108 },
+-            { 0xA26DA3999AEF774A,   322,  116 },
+-            { 0xF209787BB47D6B85,   348,  124 },
+-            { 0xB454E4A179DD1877,   375,  132 },
+-            { 0x865B86925B9BC5C2,   402,  140 },
+-            { 0xC83553C5C8965D3D,   428,  148 },
+-            { 0x952AB45CFA97A0B3,   455,  156 },
+-            { 0xDE469FBD99A05FE3,   481,  164 },
+-            { 0xA59BC234DB398C25,   508,  172 },
+-            { 0xF6C69A72A3989F5C,   534,  180 },
+-            { 0xB7DCBF5354E9BECE,   561,  188 },
+-            { 0x88FCF317F22241E2,   588,  196 },
+-            { 0xCC20CE9BD35C78A5,   614,  204 },
+-            { 0x98165AF37B2153DF,   641,  212 },
+-            { 0xE2A0B5DC971F303A,   667,  220 },
+-            { 0xA8D9D1535CE3B396,   694,  228 },
+-            { 0xFB9B7CD9A4A7443C,   720,  236 },
+-            { 0xBB764C4CA7A44410,   747,  244 },
+-            { 0x8BAB8EEFB6409C1A,   774,  252 },
+-            { 0xD01FEF10A657842C,   800,  260 },
+-            { 0x9B10A4E5E9913129,   827,  268 },
+-            { 0xE7109BFBA19C0C9D,   853,  276 },
+-            { 0xAC2820D9623BF429,   880,  284 },
+-            { 0x80444B5E7AA7CF85,   907,  292 },
+-            { 0xBF21E44003ACDD2D,   933,  300 },
+-            { 0x8E679C2F5E44FF8F,   960,  308 },
+-            { 0xD433179D9C8CB841,   986,  316 },
+-            { 0x9E19DB92B4E31BA9,  1013,  324 },
+-        }
+-    };
+-
+-    // This computation gives exactly the same results for k as
+-    //      k = ceil((kAlpha - e - 1) * 0.30102999566398114)
+-    // for |e| <= 1500, but doesn't require floating-point operations.
+-    // NB: log_10(2) ~= 78913 / 2^18
+-    JSON_ASSERT(e >= -1500);
+-    JSON_ASSERT(e <=  1500);
+-    const int f = kAlpha - e - 1;
+-    const int k = (f * 78913) / (1 << 18) + static_cast<int>(f > 0);
+-
+-    const int index = (-kCachedPowersMinDecExp + k + (kCachedPowersDecStep - 1)) / kCachedPowersDecStep;
+-    JSON_ASSERT(index >= 0);
+-    JSON_ASSERT(static_cast<std::size_t>(index) < kCachedPowers.size());
+-
+-    const cached_power cached = kCachedPowers[static_cast<std::size_t>(index)];
+-    JSON_ASSERT(kAlpha <= cached.e + e + 64);
+-    JSON_ASSERT(kGamma >= cached.e + e + 64);
+-
+-    return cached;
+-}
+-
+-/*!
+-For n != 0, returns k, such that pow10 := 10^(k-1) <= n < 10^k.
+-For n == 0, returns 1 and sets pow10 := 1.
+-*/
+-inline int find_largest_pow10(const std::uint32_t n, std::uint32_t& pow10)
+-{
+-    // LCOV_EXCL_START
+-    if (n >= 1000000000)
+-    {
+-        pow10 = 1000000000;
+-        return 10;
+-    }
+-    // LCOV_EXCL_STOP
+-    if (n >= 100000000)
+-    {
+-        pow10 = 100000000;
+-        return  9;
+-    }
+-    if (n >= 10000000)
+-    {
+-        pow10 = 10000000;
+-        return  8;
+-    }
+-    if (n >= 1000000)
+-    {
+-        pow10 = 1000000;
+-        return  7;
+-    }
+-    if (n >= 100000)
+-    {
+-        pow10 = 100000;
+-        return  6;
+-    }
+-    if (n >= 10000)
+-    {
+-        pow10 = 10000;
+-        return  5;
+-    }
+-    if (n >= 1000)
+-    {
+-        pow10 = 1000;
+-        return  4;
+-    }
+-    if (n >= 100)
+-    {
+-        pow10 = 100;
+-        return  3;
+-    }
+-    if (n >= 10)
+-    {
+-        pow10 = 10;
+-        return  2;
+-    }
+-
+-    pow10 = 1;
+-    return 1;
+-}
+-
+-inline void grisu2_round(char* buf, int len, std::uint64_t dist, std::uint64_t delta,
+-                         std::uint64_t rest, std::uint64_t ten_k)
+-{
+-    JSON_ASSERT(len >= 1);
+-    JSON_ASSERT(dist <= delta);
+-    JSON_ASSERT(rest <= delta);
+-    JSON_ASSERT(ten_k > 0);
+-
+-    //               <--------------------------- delta ---->
+-    //                                  <---- dist --------->
+-    // --------------[------------------+-------------------]--------------
+-    //               M-                 w                   M+
+-    //
+-    //                                  ten_k
+-    //                                <------>
+-    //                                       <---- rest ---->
+-    // --------------[------------------+----+--------------]--------------
+-    //                                  w    V
+-    //                                       = buf * 10^k
+-    //
+-    // ten_k represents a unit-in-the-last-place in the decimal representation
+-    // stored in buf.
+-    // Decrement buf by ten_k while this takes buf closer to w.
+-
+-    // The tests are written in this order to avoid overflow in unsigned
+-    // integer arithmetic.
+-
+-    while (rest < dist
+-            && delta - rest >= ten_k
+-            && (rest + ten_k < dist || dist - rest > rest + ten_k - dist))
+-    {
+-        JSON_ASSERT(buf[len - 1] != '0');
+-        buf[len - 1]--;
+-        rest += ten_k;
+-    }
+-}
+-
+-/*!
+-Generates V = buffer * 10^decimal_exponent, such that M- <= V <= M+.
+-M- and M+ must be normalized and share the same exponent -60 <= e <= -32.
+-*/
+-inline void grisu2_digit_gen(char* buffer, int& length, int& decimal_exponent,
+-                             diyfp M_minus, diyfp w, diyfp M_plus)
+-{
+-    static_assert(kAlpha >= -60, "internal error");
+-    static_assert(kGamma <= -32, "internal error");
+-
+-    // Generates the digits (and the exponent) of a decimal floating-point
+-    // number V = buffer * 10^decimal_exponent in the range [M-, M+]. The diyfp's
+-    // w, M- and M+ share the same exponent e, which satisfies alpha <= e <= gamma.
+-    //
+-    //               <--------------------------- delta ---->
+-    //                                  <---- dist --------->
+-    // --------------[------------------+-------------------]--------------
+-    //               M-                 w                   M+
+-    //
+-    // Grisu2 generates the digits of M+ from left to right and stops as soon as
+-    // V is in [M-,M+].
+-
+-    JSON_ASSERT(M_plus.e >= kAlpha);
+-    JSON_ASSERT(M_plus.e <= kGamma);
+-
+-    std::uint64_t delta = diyfp::sub(M_plus, M_minus).f; // (significand of (M+ - M-), implicit exponent is e)
+-    std::uint64_t dist  = diyfp::sub(M_plus, w      ).f; // (significand of (M+ - w ), implicit exponent is e)
+-
+-    // Split M+ = f * 2^e into two parts p1 and p2 (note: e < 0):
+-    //
+-    //      M+ = f * 2^e
+-    //         = ((f div 2^-e) * 2^-e + (f mod 2^-e)) * 2^e
+-    //         = ((p1        ) * 2^-e + (p2        )) * 2^e
+-    //         = p1 + p2 * 2^e
+-
+-    const diyfp one(std::uint64_t{1} << -M_plus.e, M_plus.e);
+-
+-    auto p1 = static_cast<std::uint32_t>(M_plus.f >> -one.e); // p1 = f div 2^-e (Since -e >= 32, p1 fits into a 32-bit int.)
+-    std::uint64_t p2 = M_plus.f & (one.f - 1);                    // p2 = f mod 2^-e
+-
+-    // 1)
+-    //
+-    // Generate the digits of the integral part p1 = d[n-1]...d[1]d[0]
+-
+-    JSON_ASSERT(p1 > 0);
+-
+-    std::uint32_t pow10{};
+-    const int k = find_largest_pow10(p1, pow10);
+-
+-    //      10^(k-1) <= p1 < 10^k, pow10 = 10^(k-1)
+-    //
+-    //      p1 = (p1 div 10^(k-1)) * 10^(k-1) + (p1 mod 10^(k-1))
+-    //         = (d[k-1]         ) * 10^(k-1) + (p1 mod 10^(k-1))
+-    //
+-    //      M+ = p1                                             + p2 * 2^e
+-    //         = d[k-1] * 10^(k-1) + (p1 mod 10^(k-1))          + p2 * 2^e
+-    //         = d[k-1] * 10^(k-1) + ((p1 mod 10^(k-1)) * 2^-e + p2) * 2^e
+-    //         = d[k-1] * 10^(k-1) + (                         rest) * 2^e
+-    //
+-    // Now generate the digits d[n] of p1 from left to right (n = k-1,...,0)
+-    //
+-    //      p1 = d[k-1]...d[n] * 10^n + d[n-1]...d[0]
+-    //
+-    // but stop as soon as
+-    //
+-    //      rest * 2^e = (d[n-1]...d[0] * 2^-e + p2) * 2^e <= delta * 2^e
+-
+-    int n = k;
+-    while (n > 0)
+-    {
+-        // Invariants:
+-        //      M+ = buffer * 10^n + (p1 + p2 * 2^e)    (buffer = 0 for n = k)
+-        //      pow10 = 10^(n-1) <= p1 < 10^n
+-        //
+-        const std::uint32_t d = p1 / pow10;  // d = p1 div 10^(n-1)
+-        const std::uint32_t r = p1 % pow10;  // r = p1 mod 10^(n-1)
+-        //
+-        //      M+ = buffer * 10^n + (d * 10^(n-1) + r) + p2 * 2^e
+-        //         = (buffer * 10 + d) * 10^(n-1) + (r + p2 * 2^e)
+-        //
+-        JSON_ASSERT(d <= 9);
+-        buffer[length++] = static_cast<char>('0' + d); // buffer := buffer * 10 + d
+-        //
+-        //      M+ = buffer * 10^(n-1) + (r + p2 * 2^e)
+-        //
+-        p1 = r;
+-        n--;
+-        //
+-        //      M+ = buffer * 10^n + (p1 + p2 * 2^e)
+-        //      pow10 = 10^n
+-        //
+-
+-        // Now check if enough digits have been generated.
+-        // Compute
+-        //
+-        //      p1 + p2 * 2^e = (p1 * 2^-e + p2) * 2^e = rest * 2^e
+-        //
+-        // Note:
+-        // Since rest and delta share the same exponent e, it suffices to
+-        // compare the significands.
+-        const std::uint64_t rest = (std::uint64_t{p1} << -one.e) + p2;
+-        if (rest <= delta)
+-        {
+-            // V = buffer * 10^n, with M- <= V <= M+.
+-
+-            decimal_exponent += n;
+-
+-            // We may now just stop. But instead look if the buffer could be
+-            // decremented to bring V closer to w.
+-            //
+-            // pow10 = 10^n is now 1 ulp in the decimal representation V.
+-            // The rounding procedure works with diyfp's with an implicit
+-            // exponent of e.
+-            //
+-            //      10^n = (10^n * 2^-e) * 2^e = ulp * 2^e
+-            //
+-            const std::uint64_t ten_n = std::uint64_t{pow10} << -one.e;
+-            grisu2_round(buffer, length, dist, delta, rest, ten_n);
+-
+-            return;
+-        }
+-
+-        pow10 /= 10;
+-        //
+-        //      pow10 = 10^(n-1) <= p1 < 10^n
+-        // Invariants restored.
+-    }
+-
+-    // 2)
+-    //
+-    // The digits of the integral part have been generated:
+-    //
+-    //      M+ = d[k-1]...d[1]d[0] + p2 * 2^e
+-    //         = buffer            + p2 * 2^e
+-    //
+-    // Now generate the digits of the fractional part p2 * 2^e.
+-    //
+-    // Note:
+-    // No decimal point is generated: the exponent is adjusted instead.
+-    //
+-    // p2 actually represents the fraction
+-    //
+-    //      p2 * 2^e
+-    //          = p2 / 2^-e
+-    //          = d[-1] / 10^1 + d[-2] / 10^2 + ...
+-    //
+-    // Now generate the digits d[-m] of p1 from left to right (m = 1,2,...)
+-    //
+-    //      p2 * 2^e = d[-1]d[-2]...d[-m] * 10^-m
+-    //                      + 10^-m * (d[-m-1] / 10^1 + d[-m-2] / 10^2 + ...)
+-    //
+-    // using
+-    //
+-    //      10^m * p2 = ((10^m * p2) div 2^-e) * 2^-e + ((10^m * p2) mod 2^-e)
+-    //                = (                   d) * 2^-e + (                   r)
+-    //
+-    // or
+-    //      10^m * p2 * 2^e = d + r * 2^e
+-    //
+-    // i.e.
+-    //
+-    //      M+ = buffer + p2 * 2^e
+-    //         = buffer + 10^-m * (d + r * 2^e)
+-    //         = (buffer * 10^m + d) * 10^-m + 10^-m * r * 2^e
+-    //
+-    // and stop as soon as 10^-m * r * 2^e <= delta * 2^e
+-
+-    JSON_ASSERT(p2 > delta);
+-
+-    int m = 0;
+-    for (;;)
+-    {
+-        // Invariant:
+-        //      M+ = buffer * 10^-m + 10^-m * (d[-m-1] / 10 + d[-m-2] / 10^2 + ...) * 2^e
+-        //         = buffer * 10^-m + 10^-m * (p2                                 ) * 2^e
+-        //         = buffer * 10^-m + 10^-m * (1/10 * (10 * p2)                   ) * 2^e
+-        //         = buffer * 10^-m + 10^-m * (1/10 * ((10*p2 div 2^-e) * 2^-e + (10*p2 mod 2^-e)) * 2^e
+-        //
+-        JSON_ASSERT(p2 <= (std::numeric_limits<std::uint64_t>::max)() / 10);
+-        p2 *= 10;
+-        const std::uint64_t d = p2 >> -one.e;     // d = (10 * p2) div 2^-e
+-        const std::uint64_t r = p2 & (one.f - 1); // r = (10 * p2) mod 2^-e
+-        //
+-        //      M+ = buffer * 10^-m + 10^-m * (1/10 * (d * 2^-e + r) * 2^e
+-        //         = buffer * 10^-m + 10^-m * (1/10 * (d + r * 2^e))
+-        //         = (buffer * 10 + d) * 10^(-m-1) + 10^(-m-1) * r * 2^e
+-        //
+-        JSON_ASSERT(d <= 9);
+-        buffer[length++] = static_cast<char>('0' + d); // buffer := buffer * 10 + d
+-        //
+-        //      M+ = buffer * 10^(-m-1) + 10^(-m-1) * r * 2^e
+-        //
+-        p2 = r;
+-        m++;
+-        //
+-        //      M+ = buffer * 10^-m + 10^-m * p2 * 2^e
+-        // Invariant restored.
+-
+-        // Check if enough digits have been generated.
+-        //
+-        //      10^-m * p2 * 2^e <= delta * 2^e
+-        //              p2 * 2^e <= 10^m * delta * 2^e
+-        //                    p2 <= 10^m * delta
+-        delta *= 10;
+-        dist  *= 10;
+-        if (p2 <= delta)
+-        {
+-            break;
+-        }
+-    }
+-
+-    // V = buffer * 10^-m, with M- <= V <= M+.
+-
+-    decimal_exponent -= m;
+-
+-    // 1 ulp in the decimal representation is now 10^-m.
+-    // Since delta and dist are now scaled by 10^m, we need to do the
+-    // same with ulp in order to keep the units in sync.
+-    //
+-    //      10^m * 10^-m = 1 = 2^-e * 2^e = ten_m * 2^e
+-    //
+-    const std::uint64_t ten_m = one.f;
+-    grisu2_round(buffer, length, dist, delta, p2, ten_m);
+-
+-    // By construction this algorithm generates the shortest possible decimal
+-    // number (Loitsch, Theorem 6.2) which rounds back to w.
+-    // For an input number of precision p, at least
+-    //
+-    //      N = 1 + ceil(p * log_10(2))
+-    //
+-    // decimal digits are sufficient to identify all binary floating-point
+-    // numbers (Matula, "In-and-Out conversions").
+-    // This implies that the algorithm does not produce more than N decimal
+-    // digits.
+-    //
+-    //      N = 17 for p = 53 (IEEE double precision)
+-    //      N = 9  for p = 24 (IEEE single precision)
+-}
+-
+-/*!
+-v = buf * 10^decimal_exponent
+-len is the length of the buffer (number of decimal digits)
+-The buffer must be large enough, i.e. >= max_digits10.
+-*/
+-JSON_HEDLEY_NON_NULL(1)
+-inline void grisu2(char* buf, int& len, int& decimal_exponent,
+-                   diyfp m_minus, diyfp v, diyfp m_plus)
+-{
+-    JSON_ASSERT(m_plus.e == m_minus.e);
+-    JSON_ASSERT(m_plus.e == v.e);
+-
+-    //  --------(-----------------------+-----------------------)--------    (A)
+-    //          m-                      v                       m+
+-    //
+-    //  --------------------(-----------+-----------------------)--------    (B)
+-    //                      m-          v                       m+
+-    //
+-    // First scale v (and m- and m+) such that the exponent is in the range
+-    // [alpha, gamma].
+-
+-    const cached_power cached = get_cached_power_for_binary_exponent(m_plus.e);
+-
+-    const diyfp c_minus_k(cached.f, cached.e); // = c ~= 10^-k
+-
+-    // The exponent of the products is = v.e + c_minus_k.e + q and is in the range [alpha,gamma]
+-    const diyfp w       = diyfp::mul(v,       c_minus_k);
+-    const diyfp w_minus = diyfp::mul(m_minus, c_minus_k);
+-    const diyfp w_plus  = diyfp::mul(m_plus,  c_minus_k);
+-
+-    //  ----(---+---)---------------(---+---)---------------(---+---)----
+-    //          w-                      w                       w+
+-    //          = c*m-                  = c*v                   = c*m+
+-    //
+-    // diyfp::mul rounds its result and c_minus_k is approximated too. w, w- and
+-    // w+ are now off by a small amount.
+-    // In fact:
+-    //
+-    //      w - v * 10^k < 1 ulp
+-    //
+-    // To account for this inaccuracy, add resp. subtract 1 ulp.
+-    //
+-    //  --------+---[---------------(---+---)---------------]---+--------
+-    //          w-  M-                  w                   M+  w+
+-    //
+-    // Now any number in [M-, M+] (bounds included) will round to w when input,
+-    // regardless of how the input rounding algorithm breaks ties.
+-    //
+-    // And digit_gen generates the shortest possible such number in [M-, M+].
+-    // Note that this does not mean that Grisu2 always generates the shortest
+-    // possible number in the interval (m-, m+).
+-    const diyfp M_minus(w_minus.f + 1, w_minus.e);
+-    const diyfp M_plus (w_plus.f  - 1, w_plus.e );
+-
+-    decimal_exponent = -cached.k; // = -(-k) = k
+-
+-    grisu2_digit_gen(buf, len, decimal_exponent, M_minus, w, M_plus);
+-}
+-
+-/*!
+-v = buf * 10^decimal_exponent
+-len is the length of the buffer (number of decimal digits)
+-The buffer must be large enough, i.e. >= max_digits10.
+-*/
+-template<typename FloatType>
+-JSON_HEDLEY_NON_NULL(1)
+-void grisu2(char* buf, int& len, int& decimal_exponent, FloatType value)
+-{
+-    static_assert(diyfp::kPrecision >= std::numeric_limits<FloatType>::digits + 3,
+-                  "internal error: not enough precision");
+-
+-    JSON_ASSERT(std::isfinite(value));
+-    JSON_ASSERT(value > 0);
+-
+-    // If the neighbors (and boundaries) of 'value' are always computed for double-precision
+-    // numbers, all float's can be recovered using strtod (and strtof). However, the resulting
+-    // decimal representations are not exactly "short".
+-    //
+-    // The documentation for 'std::to_chars' (https://en.cppreference.com/w/cpp/utility/to_chars)
+-    // says "value is converted to a string as if by std::sprintf in the default ("C") locale"
+-    // and since sprintf promotes floats to doubles, I think this is exactly what 'std::to_chars'
+-    // does.
+-    // On the other hand, the documentation for 'std::to_chars' requires that "parsing the
+-    // representation using the corresponding std::from_chars function recovers value exactly". That
+-    // indicates that single precision floating-point numbers should be recovered using
+-    // 'std::strtof'.
+-    //
+-    // NB: If the neighbors are computed for single-precision numbers, there is a single float
+-    //     (7.0385307e-26f) which can't be recovered using strtod. The resulting double precision
+-    //     value is off by 1 ulp.
+-#if 0
+-    const boundaries w = compute_boundaries(static_cast<double>(value));
+-#else
+-    const boundaries w = compute_boundaries(value);
+-#endif
+-
+-    grisu2(buf, len, decimal_exponent, w.minus, w.w, w.plus);
+-}
+-
+-/*!
+-@brief appends a decimal representation of e to buf
+-@return a pointer to the element following the exponent.
+-@pre -1000 < e < 1000
+-*/
+-JSON_HEDLEY_NON_NULL(1)
+-JSON_HEDLEY_RETURNS_NON_NULL
+-inline char* append_exponent(char* buf, int e)
+-{
+-    JSON_ASSERT(e > -1000);
+-    JSON_ASSERT(e <  1000);
+-
+-    if (e < 0)
+-    {
+-        e = -e;
+-        *buf++ = '-';
+-    }
+-    else
+-    {
+-        *buf++ = '+';
+-    }
+-
+-    auto k = static_cast<std::uint32_t>(e);
+-    if (k < 10)
+-    {
+-        // Always print at least two digits in the exponent.
+-        // This is for compatibility with printf("%g").
+-        *buf++ = '0';
+-        *buf++ = static_cast<char>('0' + k);
+-    }
+-    else if (k < 100)
+-    {
+-        *buf++ = static_cast<char>('0' + k / 10);
+-        k %= 10;
+-        *buf++ = static_cast<char>('0' + k);
+-    }
+-    else
+-    {
+-        *buf++ = static_cast<char>('0' + k / 100);
+-        k %= 100;
+-        *buf++ = static_cast<char>('0' + k / 10);
+-        k %= 10;
+-        *buf++ = static_cast<char>('0' + k);
+-    }
+-
+-    return buf;
+-}
+-
+-/*!
+-@brief prettify v = buf * 10^decimal_exponent
+-
+-If v is in the range [10^min_exp, 10^max_exp) it will be printed in fixed-point
+-notation. Otherwise it will be printed in exponential notation.
+-
+-@pre min_exp < 0
+-@pre max_exp > 0
+-*/
+-JSON_HEDLEY_NON_NULL(1)
+-JSON_HEDLEY_RETURNS_NON_NULL
+-inline char* format_buffer(char* buf, int len, int decimal_exponent,
+-                           int min_exp, int max_exp)
+-{
+-    JSON_ASSERT(min_exp < 0);
+-    JSON_ASSERT(max_exp > 0);
+-
+-    const int k = len;
+-    const int n = len + decimal_exponent;
+-
+-    // v = buf * 10^(n-k)
+-    // k is the length of the buffer (number of decimal digits)
+-    // n is the position of the decimal point relative to the start of the buffer.
+-
+-    if (k <= n && n <= max_exp)
+-    {
+-        // digits[000]
+-        // len <= max_exp + 2
+-
+-        std::memset(buf + k, '0', static_cast<size_t>(n) - static_cast<size_t>(k));
+-        // Make it look like a floating-point number (#362, #378)
+-        buf[n + 0] = '.';
+-        buf[n + 1] = '0';
+-        return buf + (static_cast<size_t>(n) + 2);
+-    }
+-
+-    if (0 < n && n <= max_exp)
+-    {
+-        // dig.its
+-        // len <= max_digits10 + 1
+-
+-        JSON_ASSERT(k > n);
+-
+-        std::memmove(buf + (static_cast<size_t>(n) + 1), buf + n, static_cast<size_t>(k) - static_cast<size_t>(n));
+-        buf[n] = '.';
+-        return buf + (static_cast<size_t>(k) + 1U);
+-    }
+-
+-    if (min_exp < n && n <= 0)
+-    {
+-        // 0.[000]digits
+-        // len <= 2 + (-min_exp - 1) + max_digits10
+-
+-        std::memmove(buf + (2 + static_cast<size_t>(-n)), buf, static_cast<size_t>(k));
+-        buf[0] = '0';
+-        buf[1] = '.';
+-        std::memset(buf + 2, '0', static_cast<size_t>(-n));
+-        return buf + (2U + static_cast<size_t>(-n) + static_cast<size_t>(k));
+-    }
+-
+-    if (k == 1)
+-    {
+-        // dE+123
+-        // len <= 1 + 5
+-
+-        buf += 1;
+-    }
+-    else
+-    {
+-        // d.igitsE+123
+-        // len <= max_digits10 + 1 + 5
+-
+-        std::memmove(buf + 2, buf + 1, static_cast<size_t>(k) - 1);
+-        buf[1] = '.';
+-        buf += 1 + static_cast<size_t>(k);
+-    }
+-
+-    *buf++ = 'e';
+-    return append_exponent(buf, n - 1);
+-}
+-
+-} // namespace dtoa_impl
+-
+-/*!
+-@brief generates a decimal representation of the floating-point number value in [first, last).
+-
+-The format of the resulting decimal representation is similar to printf's %g
+-format. Returns an iterator pointing past-the-end of the decimal representation.
+-
+-@note The input number must be finite, i.e. NaN's and Inf's are not supported.
+-@note The buffer must be large enough.
+-@note The result is NOT null-terminated.
+-*/
+-template<typename FloatType>
+-JSON_HEDLEY_NON_NULL(1, 2)
+-JSON_HEDLEY_RETURNS_NON_NULL
+-char* to_chars(char* first, const char* last, FloatType value)
+-{
+-    static_cast<void>(last); // maybe unused - fix warning
+-    JSON_ASSERT(std::isfinite(value));
+-
+-    // Use signbit(value) instead of (value < 0) since signbit works for -0.
+-    if (std::signbit(value))
+-    {
+-        value = -value;
+-        *first++ = '-';
+-    }
+-
+-#ifdef __GNUC__
+-#pragma GCC diagnostic push
+-#pragma GCC diagnostic ignored "-Wfloat-equal"
+-#endif
+-    if (value == 0) // +-0
+-    {
+-        *first++ = '0';
+-        // Make it look like a floating-point number (#362, #378)
+-        *first++ = '.';
+-        *first++ = '0';
+-        return first;
+-    }
+-#ifdef __GNUC__
+-#pragma GCC diagnostic pop
+-#endif
+-
+-    JSON_ASSERT(last - first >= std::numeric_limits<FloatType>::max_digits10);
+-
+-    // Compute v = buffer * 10^decimal_exponent.
+-    // The decimal digits are stored in the buffer, which needs to be interpreted
+-    // as an unsigned decimal integer.
+-    // len is the length of the buffer, i.e. the number of decimal digits.
+-    int len = 0;
+-    int decimal_exponent = 0;
+-    dtoa_impl::grisu2(first, len, decimal_exponent, value);
+-
+-    JSON_ASSERT(len <= std::numeric_limits<FloatType>::max_digits10);
+-
+-    // Format the buffer like printf("%.*g", prec, value)
+-    constexpr int kMinExp = -4;
+-    // Use digits10 here to increase compatibility with version 2.
+-    constexpr int kMaxExp = std::numeric_limits<FloatType>::digits10;
+-
+-    JSON_ASSERT(last - first >= kMaxExp + 2);
+-    JSON_ASSERT(last - first >= 2 + (-kMinExp - 1) + std::numeric_limits<FloatType>::max_digits10);
+-    JSON_ASSERT(last - first >= std::numeric_limits<FloatType>::max_digits10 + 6);
+-
+-    return dtoa_impl::format_buffer(first, len, decimal_exponent, kMinExp, kMaxExp);
+-}
+-
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/output/binary_writer.hpp>
+-
+-// #include <nlohmann/detail/output/output_adapters.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-///////////////////
+-// serialization //
+-///////////////////
+-
+-/// how to treat decoding errors
+-enum class error_handler_t
+-{
+-    strict,  ///< throw a type_error exception in case of invalid UTF-8
+-    replace, ///< replace invalid UTF-8 sequences with U+FFFD
+-    ignore   ///< ignore invalid UTF-8 sequences
+-};
+-
+-template<typename BasicJsonType>
+-class serializer
+-{
+-    using string_t = typename BasicJsonType::string_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using binary_char_t = typename BasicJsonType::binary_t::value_type;
+-    static constexpr std::uint8_t UTF8_ACCEPT = 0;
+-    static constexpr std::uint8_t UTF8_REJECT = 1;
+-
+-  public:
+-    /*!
+-    @param[in] s  output stream to serialize to
+-    @param[in] ichar  indentation character to use
+-    @param[in] error_handler_  how to react on decoding errors
+-    */
+-    serializer(output_adapter_t<char> s, const char ichar,
+-               error_handler_t error_handler_ = error_handler_t::strict)
+-        : o(std::move(s))
+-        , loc(std::localeconv())
+-        , thousands_sep(loc->thousands_sep == nullptr ? '\0' : std::char_traits<char>::to_char_type(* (loc->thousands_sep)))
+-        , decimal_point(loc->decimal_point == nullptr ? '\0' : std::char_traits<char>::to_char_type(* (loc->decimal_point)))
+-        , indent_char(ichar)
+-        , indent_string(512, indent_char)
+-        , error_handler(error_handler_)
+-    {}
+-
+-    // delete because of pointer members
+-    serializer(const serializer&) = delete;
+-    serializer& operator=(const serializer&) = delete;
+-    serializer(serializer&&) = delete;
+-    serializer& operator=(serializer&&) = delete;
+-    ~serializer() = default;
+-
+-    /*!
+-    @brief internal implementation of the serialization function
+-
+-    This function is called by the public member function dump and organizes
+-    the serialization internally. The indentation level is propagated as
+-    additional parameter. In case of arrays and objects, the function is
+-    called recursively.
+-
+-    - strings and object keys are escaped using `escape_string()`
+-    - integer numbers are converted implicitly via `operator<<`
+-    - floating-point numbers are converted to a string using `"%g"` format
+-    - binary values are serialized as objects containing the subtype and the
+-      byte array
+-
+-    @param[in] val               value to serialize
+-    @param[in] pretty_print      whether the output shall be pretty-printed
+-    @param[in] ensure_ascii If @a ensure_ascii is true, all non-ASCII characters
+-    in the output are escaped with `\uXXXX` sequences, and the result consists
+-    of ASCII characters only.
+-    @param[in] indent_step       the indent level
+-    @param[in] current_indent    the current indent level (only used internally)
+-    */
+-    void dump(const BasicJsonType& val,
+-              const bool pretty_print,
+-              const bool ensure_ascii,
+-              const unsigned int indent_step,
+-              const unsigned int current_indent = 0)
+-    {
+-        switch (val.m_type)
+-        {
+-            case value_t::object:
+-            {
+-                if (val.m_value.object->empty())
+-                {
+-                    o->write_characters("{}", 2);
+-                    return;
+-                }
+-
+-                if (pretty_print)
+-                {
+-                    o->write_characters("{\n", 2);
+-
+-                    // variable to hold indentation for recursive calls
+-                    const auto new_indent = current_indent + indent_step;
+-                    if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent))
+-                    {
+-                        indent_string.resize(indent_string.size() * 2, ' ');
+-                    }
+-
+-                    // first n-1 elements
+-                    auto i = val.m_value.object->cbegin();
+-                    for (std::size_t cnt = 0; cnt < val.m_value.object->size() - 1; ++cnt, ++i)
+-                    {
+-                        o->write_characters(indent_string.c_str(), new_indent);
+-                        o->write_character('\"');
+-                        dump_escaped(i->first, ensure_ascii);
+-                        o->write_characters("\": ", 3);
+-                        dump(i->second, true, ensure_ascii, indent_step, new_indent);
+-                        o->write_characters(",\n", 2);
+-                    }
+-
+-                    // last element
+-                    JSON_ASSERT(i != val.m_value.object->cend());
+-                    JSON_ASSERT(std::next(i) == val.m_value.object->cend());
+-                    o->write_characters(indent_string.c_str(), new_indent);
+-                    o->write_character('\"');
+-                    dump_escaped(i->first, ensure_ascii);
+-                    o->write_characters("\": ", 3);
+-                    dump(i->second, true, ensure_ascii, indent_step, new_indent);
+-
+-                    o->write_character('\n');
+-                    o->write_characters(indent_string.c_str(), current_indent);
+-                    o->write_character('}');
+-                }
+-                else
+-                {
+-                    o->write_character('{');
+-
+-                    // first n-1 elements
+-                    auto i = val.m_value.object->cbegin();
+-                    for (std::size_t cnt = 0; cnt < val.m_value.object->size() - 1; ++cnt, ++i)
+-                    {
+-                        o->write_character('\"');
+-                        dump_escaped(i->first, ensure_ascii);
+-                        o->write_characters("\":", 2);
+-                        dump(i->second, false, ensure_ascii, indent_step, current_indent);
+-                        o->write_character(',');
+-                    }
+-
+-                    // last element
+-                    JSON_ASSERT(i != val.m_value.object->cend());
+-                    JSON_ASSERT(std::next(i) == val.m_value.object->cend());
+-                    o->write_character('\"');
+-                    dump_escaped(i->first, ensure_ascii);
+-                    o->write_characters("\":", 2);
+-                    dump(i->second, false, ensure_ascii, indent_step, current_indent);
+-
+-                    o->write_character('}');
+-                }
+-
+-                return;
+-            }
+-
+-            case value_t::array:
+-            {
+-                if (val.m_value.array->empty())
+-                {
+-                    o->write_characters("[]", 2);
+-                    return;
+-                }
+-
+-                if (pretty_print)
+-                {
+-                    o->write_characters("[\n", 2);
+-
+-                    // variable to hold indentation for recursive calls
+-                    const auto new_indent = current_indent + indent_step;
+-                    if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent))
+-                    {
+-                        indent_string.resize(indent_string.size() * 2, ' ');
+-                    }
+-
+-                    // first n-1 elements
+-                    for (auto i = val.m_value.array->cbegin();
+-                            i != val.m_value.array->cend() - 1; ++i)
+-                    {
+-                        o->write_characters(indent_string.c_str(), new_indent);
+-                        dump(*i, true, ensure_ascii, indent_step, new_indent);
+-                        o->write_characters(",\n", 2);
+-                    }
+-
+-                    // last element
+-                    JSON_ASSERT(!val.m_value.array->empty());
+-                    o->write_characters(indent_string.c_str(), new_indent);
+-                    dump(val.m_value.array->back(), true, ensure_ascii, indent_step, new_indent);
+-
+-                    o->write_character('\n');
+-                    o->write_characters(indent_string.c_str(), current_indent);
+-                    o->write_character(']');
+-                }
+-                else
+-                {
+-                    o->write_character('[');
+-
+-                    // first n-1 elements
+-                    for (auto i = val.m_value.array->cbegin();
+-                            i != val.m_value.array->cend() - 1; ++i)
+-                    {
+-                        dump(*i, false, ensure_ascii, indent_step, current_indent);
+-                        o->write_character(',');
+-                    }
+-
+-                    // last element
+-                    JSON_ASSERT(!val.m_value.array->empty());
+-                    dump(val.m_value.array->back(), false, ensure_ascii, indent_step, current_indent);
+-
+-                    o->write_character(']');
+-                }
+-
+-                return;
+-            }
+-
+-            case value_t::string:
+-            {
+-                o->write_character('\"');
+-                dump_escaped(*val.m_value.string, ensure_ascii);
+-                o->write_character('\"');
+-                return;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                if (pretty_print)
+-                {
+-                    o->write_characters("{\n", 2);
+-
+-                    // variable to hold indentation for recursive calls
+-                    const auto new_indent = current_indent + indent_step;
+-                    if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent))
+-                    {
+-                        indent_string.resize(indent_string.size() * 2, ' ');
+-                    }
+-
+-                    o->write_characters(indent_string.c_str(), new_indent);
+-
+-                    o->write_characters("\"bytes\": [", 10);
+-
+-                    if (!val.m_value.binary->empty())
+-                    {
+-                        for (auto i = val.m_value.binary->cbegin();
+-                                i != val.m_value.binary->cend() - 1; ++i)
+-                        {
+-                            dump_integer(*i);
+-                            o->write_characters(", ", 2);
+-                        }
+-                        dump_integer(val.m_value.binary->back());
+-                    }
+-
+-                    o->write_characters("],\n", 3);
+-                    o->write_characters(indent_string.c_str(), new_indent);
+-
+-                    o->write_characters("\"subtype\": ", 11);
+-                    if (val.m_value.binary->has_subtype())
+-                    {
+-                        dump_integer(val.m_value.binary->subtype());
+-                    }
+-                    else
+-                    {
+-                        o->write_characters("null", 4);
+-                    }
+-                    o->write_character('\n');
+-                    o->write_characters(indent_string.c_str(), current_indent);
+-                    o->write_character('}');
+-                }
+-                else
+-                {
+-                    o->write_characters("{\"bytes\":[", 10);
+-
+-                    if (!val.m_value.binary->empty())
+-                    {
+-                        for (auto i = val.m_value.binary->cbegin();
+-                                i != val.m_value.binary->cend() - 1; ++i)
+-                        {
+-                            dump_integer(*i);
+-                            o->write_character(',');
+-                        }
+-                        dump_integer(val.m_value.binary->back());
+-                    }
+-
+-                    o->write_characters("],\"subtype\":", 12);
+-                    if (val.m_value.binary->has_subtype())
+-                    {
+-                        dump_integer(val.m_value.binary->subtype());
+-                        o->write_character('}');
+-                    }
+-                    else
+-                    {
+-                        o->write_characters("null}", 5);
+-                    }
+-                }
+-                return;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                if (val.m_value.boolean)
+-                {
+-                    o->write_characters("true", 4);
+-                }
+-                else
+-                {
+-                    o->write_characters("false", 5);
+-                }
+-                return;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                dump_integer(val.m_value.number_integer);
+-                return;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                dump_integer(val.m_value.number_unsigned);
+-                return;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                dump_float(val.m_value.number_float);
+-                return;
+-            }
+-
+-            case value_t::discarded:
+-            {
+-                o->write_characters("<discarded>", 11);
+-                return;
+-            }
+-
+-            case value_t::null:
+-            {
+-                o->write_characters("null", 4);
+-                return;
+-            }
+-
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-    }
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /*!
+-    @brief dump escaped string
+-
+-    Escape a string by replacing certain special characters by a sequence of an
+-    escape character (backslash) and another character and other control
+-    characters by a sequence of "\u" followed by a four-digit hex
+-    representation. The escaped string is written to output stream @a o.
+-
+-    @param[in] s  the string to escape
+-    @param[in] ensure_ascii  whether to escape non-ASCII characters with
+-                             \uXXXX sequences
+-
+-    @complexity Linear in the length of string @a s.
+-    */
+-    void dump_escaped(const string_t& s, const bool ensure_ascii)
+-    {
+-        std::uint32_t codepoint{};
+-        std::uint8_t state = UTF8_ACCEPT;
+-        std::size_t bytes = 0;  // number of bytes written to string_buffer
+-
+-        // number of bytes written at the point of the last valid byte
+-        std::size_t bytes_after_last_accept = 0;
+-        std::size_t undumped_chars = 0;
+-
+-        for (std::size_t i = 0; i < s.size(); ++i)
+-        {
+-            const auto byte = static_cast<std::uint8_t>(s[i]);
+-
+-            switch (decode(state, codepoint, byte))
+-            {
+-                case UTF8_ACCEPT:  // decode found a new code point
+-                {
+-                    switch (codepoint)
+-                    {
+-                        case 0x08: // backspace
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 'b';
+-                            break;
+-                        }
+-
+-                        case 0x09: // horizontal tab
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 't';
+-                            break;
+-                        }
+-
+-                        case 0x0A: // newline
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 'n';
+-                            break;
+-                        }
+-
+-                        case 0x0C: // formfeed
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 'f';
+-                            break;
+-                        }
+-
+-                        case 0x0D: // carriage return
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 'r';
+-                            break;
+-                        }
+-
+-                        case 0x22: // quotation mark
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = '\"';
+-                            break;
+-                        }
+-
+-                        case 0x5C: // reverse solidus
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = '\\';
+-                            break;
+-                        }
+-
+-                        default:
+-                        {
+-                            // escape control characters (0x00..0x1F) or, if
+-                            // ensure_ascii parameter is used, non-ASCII characters
+-                            if ((codepoint <= 0x1F) || (ensure_ascii && (codepoint >= 0x7F)))
+-                            {
+-                                if (codepoint <= 0xFFFF)
+-                                {
+-                                    // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-                                    static_cast<void>((std::snprintf)(string_buffer.data() + bytes, 7, "\\u%04x",
+-                                                                      static_cast<std::uint16_t>(codepoint)));
+-                                    bytes += 6;
+-                                }
+-                                else
+-                                {
+-                                    // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-                                    static_cast<void>((std::snprintf)(string_buffer.data() + bytes, 13, "\\u%04x\\u%04x",
+-                                                                      static_cast<std::uint16_t>(0xD7C0u + (codepoint >> 10u)),
+-                                                                      static_cast<std::uint16_t>(0xDC00u + (codepoint & 0x3FFu))));
+-                                    bytes += 12;
+-                                }
+-                            }
+-                            else
+-                            {
+-                                // copy byte to buffer (all previous bytes
+-                                // been copied have in default case above)
+-                                string_buffer[bytes++] = s[i];
+-                            }
+-                            break;
+-                        }
+-                    }
+-
+-                    // write buffer and reset index; there must be 13 bytes
+-                    // left, as this is the maximal number of bytes to be
+-                    // written ("\uxxxx\uxxxx\0") for one code point
+-                    if (string_buffer.size() - bytes < 13)
+-                    {
+-                        o->write_characters(string_buffer.data(), bytes);
+-                        bytes = 0;
+-                    }
+-
+-                    // remember the byte position of this accept
+-                    bytes_after_last_accept = bytes;
+-                    undumped_chars = 0;
+-                    break;
+-                }
+-
+-                case UTF8_REJECT:  // decode found invalid UTF-8 byte
+-                {
+-                    switch (error_handler)
+-                    {
+-                        case error_handler_t::strict:
+-                        {
+-                            std::stringstream ss;
+-                            ss << std::uppercase << std::setfill('0') << std::setw(2) << std::hex << (byte | 0);
+-                            JSON_THROW(type_error::create(316, "invalid UTF-8 byte at index " + std::to_string(i) + ": 0x" + ss.str(), BasicJsonType()));
+-                        }
+-
+-                        case error_handler_t::ignore:
+-                        case error_handler_t::replace:
+-                        {
+-                            // in case we saw this character the first time, we
+-                            // would like to read it again, because the byte
+-                            // may be OK for itself, but just not OK for the
+-                            // previous sequence
+-                            if (undumped_chars > 0)
+-                            {
+-                                --i;
+-                            }
+-
+-                            // reset length buffer to the last accepted index;
+-                            // thus removing/ignoring the invalid characters
+-                            bytes = bytes_after_last_accept;
+-
+-                            if (error_handler == error_handler_t::replace)
+-                            {
+-                                // add a replacement character
+-                                if (ensure_ascii)
+-                                {
+-                                    string_buffer[bytes++] = '\\';
+-                                    string_buffer[bytes++] = 'u';
+-                                    string_buffer[bytes++] = 'f';
+-                                    string_buffer[bytes++] = 'f';
+-                                    string_buffer[bytes++] = 'f';
+-                                    string_buffer[bytes++] = 'd';
+-                                }
+-                                else
+-                                {
+-                                    string_buffer[bytes++] = detail::binary_writer<BasicJsonType, char>::to_char_type('\xEF');
+-                                    string_buffer[bytes++] = detail::binary_writer<BasicJsonType, char>::to_char_type('\xBF');
+-                                    string_buffer[bytes++] = detail::binary_writer<BasicJsonType, char>::to_char_type('\xBD');
+-                                }
+-
+-                                // write buffer and reset index; there must be 13 bytes
+-                                // left, as this is the maximal number of bytes to be
+-                                // written ("\uxxxx\uxxxx\0") for one code point
+-                                if (string_buffer.size() - bytes < 13)
+-                                {
+-                                    o->write_characters(string_buffer.data(), bytes);
+-                                    bytes = 0;
+-                                }
+-
+-                                bytes_after_last_accept = bytes;
+-                            }
+-
+-                            undumped_chars = 0;
+-
+-                            // continue processing the string
+-                            state = UTF8_ACCEPT;
+-                            break;
+-                        }
+-
+-                        default:            // LCOV_EXCL_LINE
+-                            JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-                    }
+-                    break;
+-                }
+-
+-                default:  // decode found yet incomplete multi-byte code point
+-                {
+-                    if (!ensure_ascii)
+-                    {
+-                        // code point will not be escaped - copy byte to buffer
+-                        string_buffer[bytes++] = s[i];
+-                    }
+-                    ++undumped_chars;
+-                    break;
+-                }
+-            }
+-        }
+-
+-        // we finished processing the string
+-        if (JSON_HEDLEY_LIKELY(state == UTF8_ACCEPT))
+-        {
+-            // write buffer
+-            if (bytes > 0)
+-            {
+-                o->write_characters(string_buffer.data(), bytes);
+-            }
+-        }
+-        else
+-        {
+-            // we finish reading, but do not accept: string was incomplete
+-            switch (error_handler)
+-            {
+-                case error_handler_t::strict:
+-                {
+-                    std::stringstream ss;
+-                    ss << std::uppercase << std::setfill('0') << std::setw(2) << std::hex << (static_cast<std::uint8_t>(s.back()) | 0);
+-                    JSON_THROW(type_error::create(316, "incomplete UTF-8 string; last byte: 0x" + ss.str(), BasicJsonType()));
+-                }
+-
+-                case error_handler_t::ignore:
+-                {
+-                    // write all accepted bytes
+-                    o->write_characters(string_buffer.data(), bytes_after_last_accept);
+-                    break;
+-                }
+-
+-                case error_handler_t::replace:
+-                {
+-                    // write all accepted bytes
+-                    o->write_characters(string_buffer.data(), bytes_after_last_accept);
+-                    // add a replacement character
+-                    if (ensure_ascii)
+-                    {
+-                        o->write_characters("\\ufffd", 6);
+-                    }
+-                    else
+-                    {
+-                        o->write_characters("\xEF\xBF\xBD", 3);
+-                    }
+-                    break;
+-                }
+-
+-                default:            // LCOV_EXCL_LINE
+-                    JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-            }
+-        }
+-    }
+-
+-  private:
+-    /*!
+-    @brief count digits
+-
+-    Count the number of decimal (base 10) digits for an input unsigned integer.
+-
+-    @param[in] x  unsigned integer number to count its digits
+-    @return    number of decimal digits
+-    */
+-    inline unsigned int count_digits(number_unsigned_t x) noexcept
+-    {
+-        unsigned int n_digits = 1;
+-        for (;;)
+-        {
+-            if (x < 10)
+-            {
+-                return n_digits;
+-            }
+-            if (x < 100)
+-            {
+-                return n_digits + 1;
+-            }
+-            if (x < 1000)
+-            {
+-                return n_digits + 2;
+-            }
+-            if (x < 10000)
+-            {
+-                return n_digits + 3;
+-            }
+-            x = x / 10000u;
+-            n_digits += 4;
+-        }
+-    }
+-
+-    // templates to avoid warnings about useless casts
+-    template <typename NumberType, enable_if_t<std::is_signed<NumberType>::value, int> = 0>
+-    bool is_negative_number(NumberType x)
+-    {
+-        return x < 0;
+-    }
+-
+-    template < typename NumberType, enable_if_t <std::is_unsigned<NumberType>::value, int > = 0 >
+-    bool is_negative_number(NumberType /*unused*/)
+-    {
+-        return false;
+-    }
+-
+-    /*!
+-    @brief dump an integer
+-
+-    Dump a given integer to output stream @a o. Works internally with
+-    @a number_buffer.
+-
+-    @param[in] x  integer number (signed or unsigned) to dump
+-    @tparam NumberType either @a number_integer_t or @a number_unsigned_t
+-    */
+-    template < typename NumberType, detail::enable_if_t <
+-                   std::is_integral<NumberType>::value ||
+-                   std::is_same<NumberType, number_unsigned_t>::value ||
+-                   std::is_same<NumberType, number_integer_t>::value ||
+-                   std::is_same<NumberType, binary_char_t>::value,
+-                   int > = 0 >
+-    void dump_integer(NumberType x)
+-    {
+-        static constexpr std::array<std::array<char, 2>, 100> digits_to_99
+-        {
+-            {
+-                {{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}},
+-                {{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}},
+-                {{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}},
+-                {{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}},
+-                {{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}},
+-                {{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}},
+-                {{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}},
+-                {{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}},
+-                {{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}},
+-                {{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}},
+-            }
+-        };
+-
+-        // special case for "0"
+-        if (x == 0)
+-        {
+-            o->write_character('0');
+-            return;
+-        }
+-
+-        // use a pointer to fill the buffer
+-        auto buffer_ptr = number_buffer.begin(); // NOLINT(llvm-qualified-auto,readability-qualified-auto,cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-
+-        number_unsigned_t abs_value;
+-
+-        unsigned int n_chars{};
+-
+-        if (is_negative_number(x))
+-        {
+-            *buffer_ptr = '-';
+-            abs_value = remove_sign(static_cast<number_integer_t>(x));
+-
+-            // account one more byte for the minus sign
+-            n_chars = 1 + count_digits(abs_value);
+-        }
+-        else
+-        {
+-            abs_value = static_cast<number_unsigned_t>(x);
+-            n_chars = count_digits(abs_value);
+-        }
+-
+-        // spare 1 byte for '\0'
+-        JSON_ASSERT(n_chars < number_buffer.size() - 1);
+-
+-        // jump to the end to generate the string from backward,
+-        // so we later avoid reversing the result
+-        buffer_ptr += n_chars;
+-
+-        // Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
+-        // See: https://www.youtube.com/watch?v=o4-CwDo2zpg
+-        while (abs_value >= 100)
+-        {
+-            const auto digits_index = static_cast<unsigned>((abs_value % 100));
+-            abs_value /= 100;
+-            *(--buffer_ptr) = digits_to_99[digits_index][1];
+-            *(--buffer_ptr) = digits_to_99[digits_index][0];
+-        }
+-
+-        if (abs_value >= 10)
+-        {
+-            const auto digits_index = static_cast<unsigned>(abs_value);
+-            *(--buffer_ptr) = digits_to_99[digits_index][1];
+-            *(--buffer_ptr) = digits_to_99[digits_index][0];
+-        }
+-        else
+-        {
+-            *(--buffer_ptr) = static_cast<char>('0' + abs_value);
+-        }
+-
+-        o->write_characters(number_buffer.data(), n_chars);
+-    }
+-
+-    /*!
+-    @brief dump a floating-point number
+-
+-    Dump a given floating-point number to output stream @a o. Works internally
+-    with @a number_buffer.
+-
+-    @param[in] x  floating-point number to dump
+-    */
+-    void dump_float(number_float_t x)
+-    {
+-        // NaN / inf
+-        if (!std::isfinite(x))
+-        {
+-            o->write_characters("null", 4);
+-            return;
+-        }
+-
+-        // If number_float_t is an IEEE-754 single or double precision number,
+-        // use the Grisu2 algorithm to produce short numbers which are
+-        // guaranteed to round-trip, using strtof and strtod, resp.
+-        //
+-        // NB: The test below works if <long double> == <double>.
+-        static constexpr bool is_ieee_single_or_double
+-            = (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 24 && std::numeric_limits<number_float_t>::max_exponent == 128) ||
+-              (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 53 && std::numeric_limits<number_float_t>::max_exponent == 1024);
+-
+-        dump_float(x, std::integral_constant<bool, is_ieee_single_or_double>());
+-    }
+-
+-    void dump_float(number_float_t x, std::true_type /*is_ieee_single_or_double*/)
+-    {
+-        auto* begin = number_buffer.data();
+-        auto* end = ::nlohmann::detail::to_chars(begin, begin + number_buffer.size(), x);
+-
+-        o->write_characters(begin, static_cast<size_t>(end - begin));
+-    }
+-
+-    void dump_float(number_float_t x, std::false_type /*is_ieee_single_or_double*/)
+-    {
+-        // get number of digits for a float -> text -> float round-trip
+-        static constexpr auto d = std::numeric_limits<number_float_t>::max_digits10;
+-
+-        // the actual conversion
+-        // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-        std::ptrdiff_t len = (std::snprintf)(number_buffer.data(), number_buffer.size(), "%.*g", d, x);
+-
+-        // negative value indicates an error
+-        JSON_ASSERT(len > 0);
+-        // check if buffer was large enough
+-        JSON_ASSERT(static_cast<std::size_t>(len) < number_buffer.size());
+-
+-        // erase thousands separator
+-        if (thousands_sep != '\0')
+-        {
+-            // NOLINTNEXTLINE(readability-qualified-auto,llvm-qualified-auto): std::remove returns an iterator, see https://github.com/nlohmann/json/issues/3081
+-            const auto end = std::remove(number_buffer.begin(), number_buffer.begin() + len, thousands_sep);
+-            std::fill(end, number_buffer.end(), '\0');
+-            JSON_ASSERT((end - number_buffer.begin()) <= len);
+-            len = (end - number_buffer.begin());
+-        }
+-
+-        // convert decimal point to '.'
+-        if (decimal_point != '\0' && decimal_point != '.')
+-        {
+-            // NOLINTNEXTLINE(readability-qualified-auto,llvm-qualified-auto): std::find returns an iterator, see https://github.com/nlohmann/json/issues/3081
+-            const auto dec_pos = std::find(number_buffer.begin(), number_buffer.end(), decimal_point);
+-            if (dec_pos != number_buffer.end())
+-            {
+-                *dec_pos = '.';
+-            }
+-        }
+-
+-        o->write_characters(number_buffer.data(), static_cast<std::size_t>(len));
+-
+-        // determine if we need to append ".0"
+-        const bool value_is_int_like =
+-            std::none_of(number_buffer.begin(), number_buffer.begin() + len + 1,
+-                         [](char c)
+-        {
+-            return c == '.' || c == 'e';
+-        });
+-
+-        if (value_is_int_like)
+-        {
+-            o->write_characters(".0", 2);
+-        }
+-    }
+-
+-    /*!
+-    @brief check whether a string is UTF-8 encoded
+-
+-    The function checks each byte of a string whether it is UTF-8 encoded. The
+-    result of the check is stored in the @a state parameter. The function must
+-    be called initially with state 0 (accept). State 1 means the string must
+-    be rejected, because the current byte is not allowed. If the string is
+-    completely processed, but the state is non-zero, the string ended
+-    prematurely; that is, the last byte indicated more bytes should have
+-    followed.
+-
+-    @param[in,out] state  the state of the decoding
+-    @param[in,out] codep  codepoint (valid only if resulting state is UTF8_ACCEPT)
+-    @param[in] byte       next byte to decode
+-    @return               new state
+-
+-    @note The function has been edited: a std::array is used.
+-
+-    @copyright Copyright (c) 2008-2009 Bjoern Hoehrmann <bjoern@hoehrmann.de>
+-    @sa http://bjoern.hoehrmann.de/utf-8/decoder/dfa/
+-    */
+-    static std::uint8_t decode(std::uint8_t& state, std::uint32_t& codep, const std::uint8_t byte) noexcept
+-    {
+-        static const std::array<std::uint8_t, 400> utf8d =
+-        {
+-            {
+-                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 00..1F
+-                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 20..3F
+-                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 40..5F
+-                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 60..7F
+-                1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, // 80..9F
+-                7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // A0..BF
+-                8, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, // C0..DF
+-                0xA, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x4, 0x3, 0x3, // E0..EF
+-                0xB, 0x6, 0x6, 0x6, 0x5, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, // F0..FF
+-                0x0, 0x1, 0x2, 0x3, 0x5, 0x8, 0x7, 0x1, 0x1, 0x1, 0x4, 0x6, 0x1, 0x1, 0x1, 0x1, // s0..s0
+-                1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, // s1..s2
+-                1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, // s3..s4
+-                1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, // s5..s6
+-                1, 3, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 // s7..s8
+-            }
+-        };
+-
+-        JSON_ASSERT(byte < utf8d.size());
+-        const std::uint8_t type = utf8d[byte];
+-
+-        codep = (state != UTF8_ACCEPT)
+-                ? (byte & 0x3fu) | (codep << 6u)
+-                : (0xFFu >> type) & (byte);
+-
+-        std::size_t index = 256u + static_cast<size_t>(state) * 16u + static_cast<size_t>(type);
+-        JSON_ASSERT(index < 400);
+-        state = utf8d[index];
+-        return state;
+-    }
+-
+-    /*
+-     * Overload to make the compiler happy while it is instantiating
+-     * dump_integer for number_unsigned_t.
+-     * Must never be called.
+-     */
+-    number_unsigned_t remove_sign(number_unsigned_t x)
+-    {
+-        JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        return x; // LCOV_EXCL_LINE
+-    }
+-
+-    /*
+-     * Helper function for dump_integer
+-     *
+-     * This function takes a negative signed integer and returns its absolute
+-     * value as unsigned integer. The plus/minus shuffling is necessary as we can
+-     * not directly remove the sign of an arbitrary signed integer as the
+-     * absolute values of INT_MIN and INT_MAX are usually not the same. See
+-     * #1708 for details.
+-     */
+-    inline number_unsigned_t remove_sign(number_integer_t x) noexcept
+-    {
+-        JSON_ASSERT(x < 0 && x < (std::numeric_limits<number_integer_t>::max)()); // NOLINT(misc-redundant-expression)
+-        return static_cast<number_unsigned_t>(-(x + 1)) + 1;
+-    }
+-
+-  private:
+-    /// the output of the serializer
+-    output_adapter_t<char> o = nullptr;
+-
+-    /// a (hopefully) large enough character buffer
+-    std::array<char, 64> number_buffer{{}};
+-
+-    /// the locale
+-    const std::lconv* loc = nullptr;
+-    /// the locale's thousand separator character
+-    const char thousands_sep = '\0';
+-    /// the locale's decimal point character
+-    const char decimal_point = '\0';
+-
+-    /// string buffer
+-    std::array<char, 512> string_buffer{{}};
+-
+-    /// the indentation character
+-    const char indent_char;
+-    /// the indentation string
+-    string_t indent_string;
+-
+-    /// error_handler how to react on decoding errors
+-    const error_handler_t error_handler;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-// #include <nlohmann/json_fwd.hpp>
+-
+-// #include <nlohmann/ordered_map.hpp>
+-
+-
+-#include <functional> // less
+-#include <initializer_list> // initializer_list
+-#include <iterator> // input_iterator_tag, iterator_traits
+-#include <memory> // allocator
+-#include <stdexcept> // for out_of_range
+-#include <type_traits> // enable_if, is_convertible
+-#include <utility> // pair
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-
+-/// ordered_map: a minimal map-like container that preserves insertion order
+-/// for use within nlohmann::basic_json<ordered_map>
+-template <class Key, class T, class IgnoredLess = std::less<Key>,
+-          class Allocator = std::allocator<std::pair<const Key, T>>>
+-                  struct ordered_map : std::vector<std::pair<const Key, T>, Allocator>
+-{
+-    using key_type = Key;
+-    using mapped_type = T;
+-    using Container = std::vector<std::pair<const Key, T>, Allocator>;
+-    using iterator = typename Container::iterator;
+-    using const_iterator = typename Container::const_iterator;
+-    using size_type = typename Container::size_type;
+-    using value_type = typename Container::value_type;
+-
+-    // Explicit constructors instead of `using Container::Container`
+-    // otherwise older compilers choke on it (GCC <= 5.5, xcode <= 9.4)
+-    ordered_map(const Allocator& alloc = Allocator()) : Container{alloc} {}
+-    template <class It>
+-    ordered_map(It first, It last, const Allocator& alloc = Allocator())
+-        : Container{first, last, alloc} {}
+-    ordered_map(std::initializer_list<T> init, const Allocator& alloc = Allocator() )
+-        : Container{init, alloc} {}
+-
+-    std::pair<iterator, bool> emplace(const key_type& key, T&& t)
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return {it, false};
+-            }
+-        }
+-        Container::emplace_back(key, t);
+-        return {--this->end(), true};
+-    }
+-
+-    T& operator[](const Key& key)
+-    {
+-        return emplace(key, T{}).first->second;
+-    }
+-
+-    const T& operator[](const Key& key) const
+-    {
+-        return at(key);
+-    }
+-
+-    T& at(const Key& key)
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return it->second;
+-            }
+-        }
+-
+-        JSON_THROW(std::out_of_range("key not found"));
+-    }
+-
+-    const T& at(const Key& key) const
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return it->second;
+-            }
+-        }
+-
+-        JSON_THROW(std::out_of_range("key not found"));
+-    }
+-
+-    size_type erase(const Key& key)
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                // Since we cannot move const Keys, re-construct them in place
+-                for (auto next = it; ++next != this->end(); ++it)
+-                {
+-                    it->~value_type(); // Destroy but keep allocation
+-                    new (&*it) value_type{std::move(*next)};
+-                }
+-                Container::pop_back();
+-                return 1;
+-            }
+-        }
+-        return 0;
+-    }
+-
+-    iterator erase(iterator pos)
+-    {
+-        return erase(pos, std::next(pos));
+-    }
+-
+-    iterator erase(iterator first, iterator last)
+-    {
+-        const auto elements_affected = std::distance(first, last);
+-        const auto offset = std::distance(Container::begin(), first);
+-
+-        // This is the start situation. We need to delete elements_affected
+-        // elements (3 in this example: e, f, g), and need to return an
+-        // iterator past the last deleted element (h in this example).
+-        // Note that offset is the distance from the start of the vector
+-        // to first. We will need this later.
+-
+-        // [ a, b, c, d, e, f, g, h, i, j ]
+-        //               ^        ^
+-        //             first    last
+-
+-        // Since we cannot move const Keys, we re-construct them in place.
+-        // We start at first and re-construct (viz. copy) the elements from
+-        // the back of the vector. Example for first iteration:
+-
+-        //               ,--------.
+-        //               v        |   destroy e and re-construct with h
+-        // [ a, b, c, d, e, f, g, h, i, j ]
+-        //               ^        ^
+-        //               it       it + elements_affected
+-
+-        for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it)
+-        {
+-            it->~value_type(); // destroy but keep allocation
+-            new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it
+-        }
+-
+-        // [ a, b, c, d, h, i, j, h, i, j ]
+-        //               ^        ^
+-        //             first    last
+-
+-        // remove the unneeded elements at the end of the vector
+-        Container::resize(this->size() - static_cast<size_type>(elements_affected));
+-
+-        // [ a, b, c, d, h, i, j ]
+-        //               ^        ^
+-        //             first    last
+-
+-        // first is now pointing past the last deleted element, but we cannot
+-        // use this iterator, because it may have been invalidated by the
+-        // resize call. Instead, we can return begin() + offset.
+-        return Container::begin() + offset;
+-    }
+-
+-    size_type count(const Key& key) const
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return 1;
+-            }
+-        }
+-        return 0;
+-    }
+-
+-    iterator find(const Key& key)
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return it;
+-            }
+-        }
+-        return Container::end();
+-    }
+-
+-    const_iterator find(const Key& key) const
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return it;
+-            }
+-        }
+-        return Container::end();
+-    }
+-
+-    std::pair<iterator, bool> insert( value_type&& value )
+-    {
+-        return emplace(value.first, std::move(value.second));
+-    }
+-
+-    std::pair<iterator, bool> insert( const value_type& value )
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == value.first)
+-            {
+-                return {it, false};
+-            }
+-        }
+-        Container::push_back(value);
+-        return {--this->end(), true};
+-    }
+-
+-    template<typename InputIt>
+-    using require_input_iter = typename std::enable_if<std::is_convertible<typename std::iterator_traits<InputIt>::iterator_category,
+-            std::input_iterator_tag>::value>::type;
+-
+-    template<typename InputIt, typename = require_input_iter<InputIt>>
+-    void insert(InputIt first, InputIt last)
+-    {
+-        for (auto it = first; it != last; ++it)
+-        {
+-            insert(*it);
+-        }
+-    }
+-};
+-
+-}  // namespace nlohmann
+-
+-
+-#if defined(JSON_HAS_CPP_17)
+-    #include <string_view>
+-#endif
+-
+-/*!
+-@brief namespace for Niels Lohmann
+-@see https://github.com/nlohmann
+-@since version 1.0.0
+-*/
+-namespace nlohmann
+-{
+-
+-/*!
+-@brief a class to store JSON values
+-
+-@internal
+-@invariant The member variables @a m_value and @a m_type have the following
+-relationship:
+-- If `m_type == value_t::object`, then `m_value.object != nullptr`.
+-- If `m_type == value_t::array`, then `m_value.array != nullptr`.
+-- If `m_type == value_t::string`, then `m_value.string != nullptr`.
+-The invariants are checked by member function assert_invariant().
+-
+-@note ObjectType trick from https://stackoverflow.com/a/9860911
+-@endinternal
+-
+-@since version 1.0.0
+-
+-@nosubgrouping
+-*/
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-special-member-functions)
+-{
+-  private:
+-    template<detail::value_t> friend struct detail::external_constructor;
+-    friend ::nlohmann::json_pointer<basic_json>;
+-
+-    template<typename BasicJsonType, typename InputType>
+-    friend class ::nlohmann::detail::parser;
+-    friend ::nlohmann::detail::serializer<basic_json>;
+-    template<typename BasicJsonType>
+-    friend class ::nlohmann::detail::iter_impl;
+-    template<typename BasicJsonType, typename CharType>
+-    friend class ::nlohmann::detail::binary_writer;
+-    template<typename BasicJsonType, typename InputType, typename SAX>
+-    friend class ::nlohmann::detail::binary_reader;
+-    template<typename BasicJsonType>
+-    friend class ::nlohmann::detail::json_sax_dom_parser;
+-    template<typename BasicJsonType>
+-    friend class ::nlohmann::detail::json_sax_dom_callback_parser;
+-    friend class ::nlohmann::detail::exception;
+-
+-    /// workaround type for MSVC
+-    using basic_json_t = NLOHMANN_BASIC_JSON_TPL;
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    // convenience aliases for types residing in namespace detail;
+-    using lexer = ::nlohmann::detail::lexer_base<basic_json>;
+-
+-    template<typename InputAdapterType>
+-    static ::nlohmann::detail::parser<basic_json, InputAdapterType> parser(
+-        InputAdapterType adapter,
+-        detail::parser_callback_t<basic_json>cb = nullptr,
+-        const bool allow_exceptions = true,
+-        const bool ignore_comments = false
+-                                 )
+-    {
+-        return ::nlohmann::detail::parser<basic_json, InputAdapterType>(std::move(adapter),
+-                std::move(cb), allow_exceptions, ignore_comments);
+-    }
+-
+-  private:
+-    using primitive_iterator_t = ::nlohmann::detail::primitive_iterator_t;
+-    template<typename BasicJsonType>
+-    using internal_iterator = ::nlohmann::detail::internal_iterator<BasicJsonType>;
+-    template<typename BasicJsonType>
+-    using iter_impl = ::nlohmann::detail::iter_impl<BasicJsonType>;
+-    template<typename Iterator>
+-    using iteration_proxy = ::nlohmann::detail::iteration_proxy<Iterator>;
+-    template<typename Base> using json_reverse_iterator = ::nlohmann::detail::json_reverse_iterator<Base>;
+-
+-    template<typename CharType>
+-    using output_adapter_t = ::nlohmann::detail::output_adapter_t<CharType>;
+-
+-    template<typename InputType>
+-    using binary_reader = ::nlohmann::detail::binary_reader<basic_json, InputType>;
+-    template<typename CharType> using binary_writer = ::nlohmann::detail::binary_writer<basic_json, CharType>;
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    using serializer = ::nlohmann::detail::serializer<basic_json>;
+-
+-  public:
+-    using value_t = detail::value_t;
+-    /// JSON Pointer, see @ref nlohmann::json_pointer
+-    using json_pointer = ::nlohmann::json_pointer<basic_json>;
+-    template<typename T, typename SFINAE>
+-    using json_serializer = JSONSerializer<T, SFINAE>;
+-    /// how to treat decoding errors
+-    using error_handler_t = detail::error_handler_t;
+-    /// how to treat CBOR tags
+-    using cbor_tag_handler_t = detail::cbor_tag_handler_t;
+-    /// helper type for initializer lists of basic_json values
+-    using initializer_list_t = std::initializer_list<detail::json_ref<basic_json>>;
+-
+-    using input_format_t = detail::input_format_t;
+-    /// SAX interface type, see @ref nlohmann::json_sax
+-    using json_sax_t = json_sax<basic_json>;
+-
+-    ////////////////
+-    // exceptions //
+-    ////////////////
+-
+-    /// @name exceptions
+-    /// Classes to implement user-defined exceptions.
+-    /// @{
+-
+-    using exception = detail::exception;
+-    using parse_error = detail::parse_error;
+-    using invalid_iterator = detail::invalid_iterator;
+-    using type_error = detail::type_error;
+-    using out_of_range = detail::out_of_range;
+-    using other_error = detail::other_error;
+-
+-    /// @}
+-
+-
+-    /////////////////////
+-    // container types //
+-    /////////////////////
+-
+-    /// @name container types
+-    /// The canonic container types to use @ref basic_json like any other STL
+-    /// container.
+-    /// @{
+-
+-    /// the type of elements in a basic_json container
+-    using value_type = basic_json;
+-
+-    /// the type of an element reference
+-    using reference = value_type&;
+-    /// the type of an element const reference
+-    using const_reference = const value_type&;
+-
+-    /// a type to represent differences between iterators
+-    using difference_type = std::ptrdiff_t;
+-    /// a type to represent container sizes
+-    using size_type = std::size_t;
+-
+-    /// the allocator type
+-    using allocator_type = AllocatorType<basic_json>;
+-
+-    /// the type of an element pointer
+-    using pointer = typename std::allocator_traits<allocator_type>::pointer;
+-    /// the type of an element const pointer
+-    using const_pointer = typename std::allocator_traits<allocator_type>::const_pointer;
+-
+-    /// an iterator for a basic_json container
+-    using iterator = iter_impl<basic_json>;
+-    /// a const iterator for a basic_json container
+-    using const_iterator = iter_impl<const basic_json>;
+-    /// a reverse iterator for a basic_json container
+-    using reverse_iterator = json_reverse_iterator<typename basic_json::iterator>;
+-    /// a const reverse iterator for a basic_json container
+-    using const_reverse_iterator = json_reverse_iterator<typename basic_json::const_iterator>;
+-
+-    /// @}
+-
+-
+-    /// @brief returns the allocator associated with the container
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_allocator/
+-    static allocator_type get_allocator()
+-    {
+-        return allocator_type();
+-    }
+-
+-    /// @brief returns version information on the library
+-    /// @sa https://json.nlohmann.me/api/basic_json/meta/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json meta()
+-    {
+-        basic_json result;
+-
+-        result["copyright"] = "(C) 2013-2022 Niels Lohmann";
+-        result["name"] = "JSON for Modern C++";
+-        result["url"] = "https://github.com/nlohmann/json";
+-        result["version"]["string"] =
+-            std::to_string(NLOHMANN_JSON_VERSION_MAJOR) + "." +
+-            std::to_string(NLOHMANN_JSON_VERSION_MINOR) + "." +
+-            std::to_string(NLOHMANN_JSON_VERSION_PATCH);
+-        result["version"]["major"] = NLOHMANN_JSON_VERSION_MAJOR;
+-        result["version"]["minor"] = NLOHMANN_JSON_VERSION_MINOR;
+-        result["version"]["patch"] = NLOHMANN_JSON_VERSION_PATCH;
+-
+-#ifdef _WIN32
+-        result["platform"] = "win32";
+-#elif defined __linux__
+-        result["platform"] = "linux";
+-#elif defined __APPLE__
+-        result["platform"] = "apple";
+-#elif defined __unix__
+-        result["platform"] = "unix";
+-#else
+-        result["platform"] = "unknown";
+-#endif
+-
+-#if defined(__ICC) || defined(__INTEL_COMPILER)
+-        result["compiler"] = {{"family", "icc"}, {"version", __INTEL_COMPILER}};
+-#elif defined(__clang__)
+-        result["compiler"] = {{"family", "clang"}, {"version", __clang_version__}};
+-#elif defined(__GNUC__) || defined(__GNUG__)
+-        result["compiler"] = {{"family", "gcc"}, {"version", std::to_string(__GNUC__) + "." + std::to_string(__GNUC_MINOR__) + "." + std::to_string(__GNUC_PATCHLEVEL__)}};
+-#elif defined(__HP_cc) || defined(__HP_aCC)
+-        result["compiler"] = "hp"
+-#elif defined(__IBMCPP__)
+-        result["compiler"] = {{"family", "ilecpp"}, {"version", __IBMCPP__}};
+-#elif defined(_MSC_VER)
+-        result["compiler"] = {{"family", "msvc"}, {"version", _MSC_VER}};
+-#elif defined(__PGI)
+-        result["compiler"] = {{"family", "pgcpp"}, {"version", __PGI}};
+-#elif defined(__SUNPRO_CC)
+-        result["compiler"] = {{"family", "sunpro"}, {"version", __SUNPRO_CC}};
+-#else
+-        result["compiler"] = {{"family", "unknown"}, {"version", "unknown"}};
+-#endif
+-
+-#ifdef __cplusplus
+-        result["compiler"]["c++"] = std::to_string(__cplusplus);
+-#else
+-        result["compiler"]["c++"] = "unknown";
+-#endif
+-        return result;
+-    }
+-
+-
+-    ///////////////////////////
+-    // JSON value data types //
+-    ///////////////////////////
+-
+-    /// @name JSON value data types
+-    /// The data types to store a JSON value. These types are derived from
+-    /// the template arguments passed to class @ref basic_json.
+-    /// @{
+-
+-    /// @brief object key comparator type
+-    /// @sa https://json.nlohmann.me/api/basic_json/object_comparator_t/
+-#if defined(JSON_HAS_CPP_14)
+-    // Use transparent comparator if possible, combined with perfect forwarding
+-    // on find() and count() calls prevents unnecessary string construction.
+-    using object_comparator_t = std::less<>;
+-#else
+-    using object_comparator_t = std::less<StringType>;
+-#endif
+-
+-    /// @brief a type for an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/object_t/
+-    using object_t = ObjectType<StringType,
+-          basic_json,
+-          object_comparator_t,
+-          AllocatorType<std::pair<const StringType,
+-          basic_json>>>;
+-
+-    /// @brief a type for an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/array_t/
+-    using array_t = ArrayType<basic_json, AllocatorType<basic_json>>;
+-
+-    /// @brief a type for a string
+-    /// @sa https://json.nlohmann.me/api/basic_json/string_t/
+-    using string_t = StringType;
+-
+-    /// @brief a type for a boolean
+-    /// @sa https://json.nlohmann.me/api/basic_json/boolean_t/
+-    using boolean_t = BooleanType;
+-
+-    /// @brief a type for a number (integer)
+-    /// @sa https://json.nlohmann.me/api/basic_json/number_integer_t/
+-    using number_integer_t = NumberIntegerType;
+-
+-    /// @brief a type for a number (unsigned)
+-    /// @sa https://json.nlohmann.me/api/basic_json/number_unsigned_t/
+-    using number_unsigned_t = NumberUnsignedType;
+-
+-    /// @brief a type for a number (floating-point)
+-    /// @sa https://json.nlohmann.me/api/basic_json/number_float_t/
+-    using number_float_t = NumberFloatType;
+-
+-    /// @brief a type for a packed binary type
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary_t/
+-    using binary_t = nlohmann::byte_container_with_subtype<BinaryType>;
+-
+-    /// @}
+-
+-  private:
+-
+-    /// helper for exception-safe object creation
+-    template<typename T, typename... Args>
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    static T* create(Args&& ... args)
+-    {
+-        AllocatorType<T> alloc;
+-        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
+-
+-        auto deleter = [&](T * obj)
+-        {
+-            AllocatorTraits::deallocate(alloc, obj, 1);
+-        };
+-        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
+-        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
+-        JSON_ASSERT(obj != nullptr);
+-        return obj.release();
+-    }
+-
+-    ////////////////////////
+-    // JSON value storage //
+-    ////////////////////////
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /*!
+-    @brief a JSON value
+-
+-    The actual storage for a JSON value of the @ref basic_json class. This
+-    union combines the different storage types for the JSON value types
+-    defined in @ref value_t.
+-
+-    JSON type | value_t type    | used type
+-    --------- | --------------- | ------------------------
+-    object    | object          | pointer to @ref object_t
+-    array     | array           | pointer to @ref array_t
+-    string    | string          | pointer to @ref string_t
+-    boolean   | boolean         | @ref boolean_t
+-    number    | number_integer  | @ref number_integer_t
+-    number    | number_unsigned | @ref number_unsigned_t
+-    number    | number_float    | @ref number_float_t
+-    binary    | binary          | pointer to @ref binary_t
+-    null      | null            | *no value is stored*
+-
+-    @note Variable-length types (objects, arrays, and strings) are stored as
+-    pointers. The size of the union should not exceed 64 bits if the default
+-    value types are used.
+-
+-    @since version 1.0.0
+-    */
+-    union json_value
+-    {
+-        /// object (stored with pointer to save storage)
+-        object_t* object;
+-        /// array (stored with pointer to save storage)
+-        array_t* array;
+-        /// string (stored with pointer to save storage)
+-        string_t* string;
+-        /// binary (stored with pointer to save storage)
+-        binary_t* binary;
+-        /// boolean
+-        boolean_t boolean;
+-        /// number (integer)
+-        number_integer_t number_integer;
+-        /// number (unsigned integer)
+-        number_unsigned_t number_unsigned;
+-        /// number (floating-point)
+-        number_float_t number_float;
+-
+-        /// default constructor (for null values)
+-        json_value() = default;
+-        /// constructor for booleans
+-        json_value(boolean_t v) noexcept : boolean(v) {}
+-        /// constructor for numbers (integer)
+-        json_value(number_integer_t v) noexcept : number_integer(v) {}
+-        /// constructor for numbers (unsigned)
+-        json_value(number_unsigned_t v) noexcept : number_unsigned(v) {}
+-        /// constructor for numbers (floating-point)
+-        json_value(number_float_t v) noexcept : number_float(v) {}
+-        /// constructor for empty values of a given type
+-        json_value(value_t t)
+-        {
+-            switch (t)
+-            {
+-                case value_t::object:
+-                {
+-                    object = create<object_t>();
+-                    break;
+-                }
+-
+-                case value_t::array:
+-                {
+-                    array = create<array_t>();
+-                    break;
+-                }
+-
+-                case value_t::string:
+-                {
+-                    string = create<string_t>("");
+-                    break;
+-                }
+-
+-                case value_t::binary:
+-                {
+-                    binary = create<binary_t>();
+-                    break;
+-                }
+-
+-                case value_t::boolean:
+-                {
+-                    boolean = static_cast<boolean_t>(false);
+-                    break;
+-                }
+-
+-                case value_t::number_integer:
+-                {
+-                    number_integer = static_cast<number_integer_t>(0);
+-                    break;
+-                }
+-
+-                case value_t::number_unsigned:
+-                {
+-                    number_unsigned = static_cast<number_unsigned_t>(0);
+-                    break;
+-                }
+-
+-                case value_t::number_float:
+-                {
+-                    number_float = static_cast<number_float_t>(0.0);
+-                    break;
+-                }
+-
+-                case value_t::null:
+-                {
+-                    object = nullptr;  // silence warning, see #821
+-                    break;
+-                }
+-
+-                case value_t::discarded:
+-                default:
+-                {
+-                    object = nullptr;  // silence warning, see #821
+-                    if (JSON_HEDLEY_UNLIKELY(t == value_t::null))
+-                    {
+-                        JSON_THROW(other_error::create(500, "961c151d2e87f2686a955a9be24d316f1362bf21 3.10.5", basic_json())); // LCOV_EXCL_LINE
+-                    }
+-                    break;
+-                }
+-            }
+-        }
+-
+-        /// constructor for strings
+-        json_value(const string_t& value) : string(create<string_t>(value)) {}
+-
+-        /// constructor for rvalue strings
+-        json_value(string_t&& value) : string(create<string_t>(std::move(value))) {}
+-
+-        /// constructor for objects
+-        json_value(const object_t& value) : object(create<object_t>(value)) {}
+-
+-        /// constructor for rvalue objects
+-        json_value(object_t&& value) : object(create<object_t>(std::move(value))) {}
+-
+-        /// constructor for arrays
+-        json_value(const array_t& value) : array(create<array_t>(value)) {}
+-
+-        /// constructor for rvalue arrays
+-        json_value(array_t&& value) : array(create<array_t>(std::move(value))) {}
+-
+-        /// constructor for binary arrays
+-        json_value(const typename binary_t::container_type& value) : binary(create<binary_t>(value)) {}
+-
+-        /// constructor for rvalue binary arrays
+-        json_value(typename binary_t::container_type&& value) : binary(create<binary_t>(std::move(value))) {}
+-
+-        /// constructor for binary arrays (internal type)
+-        json_value(const binary_t& value) : binary(create<binary_t>(value)) {}
+-
+-        /// constructor for rvalue binary arrays (internal type)
+-        json_value(binary_t&& value) : binary(create<binary_t>(std::move(value))) {}
+-
+-        void destroy(value_t t)
+-        {
+-            if (t == value_t::array || t == value_t::object)
+-            {
+-                // flatten the current json_value to a heap-allocated stack
+-                std::vector<basic_json> stack;
+-
+-                // move the top-level items to stack
+-                if (t == value_t::array)
+-                {
+-                    stack.reserve(array->size());
+-                    std::move(array->begin(), array->end(), std::back_inserter(stack));
+-                }
+-                else
+-                {
+-                    stack.reserve(object->size());
+-                    for (auto&& it : *object)
+-                    {
+-                        stack.push_back(std::move(it.second));
+-                    }
+-                }
+-
+-                while (!stack.empty())
+-                {
+-                    // move the last item to local variable to be processed
+-                    basic_json current_item(std::move(stack.back()));
+-                    stack.pop_back();
+-
+-                    // if current_item is array/object, move
+-                    // its children to the stack to be processed later
+-                    if (current_item.is_array())
+-                    {
+-                        std::move(current_item.m_value.array->begin(), current_item.m_value.array->end(), std::back_inserter(stack));
+-
+-                        current_item.m_value.array->clear();
+-                    }
+-                    else if (current_item.is_object())
+-                    {
+-                        for (auto&& it : *current_item.m_value.object)
+-                        {
+-                            stack.push_back(std::move(it.second));
+-                        }
+-
+-                        current_item.m_value.object->clear();
+-                    }
+-
+-                    // it's now safe that current_item get destructed
+-                    // since it doesn't have any children
+-                }
+-            }
+-
+-            switch (t)
+-            {
+-                case value_t::object:
+-                {
+-                    AllocatorType<object_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, object);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1);
+-                    break;
+-                }
+-
+-                case value_t::array:
+-                {
+-                    AllocatorType<array_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, array);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1);
+-                    break;
+-                }
+-
+-                case value_t::string:
+-                {
+-                    AllocatorType<string_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, string);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1);
+-                    break;
+-                }
+-
+-                case value_t::binary:
+-                {
+-                    AllocatorType<binary_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, binary);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1);
+-                    break;
+-                }
+-
+-                case value_t::null:
+-                case value_t::boolean:
+-                case value_t::number_integer:
+-                case value_t::number_unsigned:
+-                case value_t::number_float:
+-                case value_t::discarded:
+-                default:
+-                {
+-                    break;
+-                }
+-            }
+-        }
+-    };
+-
+-  private:
+-    /*!
+-    @brief checks the class invariants
+-
+-    This function asserts the class invariants. It needs to be called at the
+-    end of every constructor to make sure that created objects respect the
+-    invariant. Furthermore, it has to be called each time the type of a JSON
+-    value is changed, because the invariant expresses a relationship between
+-    @a m_type and @a m_value.
+-
+-    Furthermore, the parent relation is checked for arrays and objects: If
+-    @a check_parents true and the value is an array or object, then the
+-    container's elements must have the current value as parent.
+-
+-    @param[in] check_parents  whether the parent relation should be checked.
+-               The value is true by default and should only be set to false
+-               during destruction of objects when the invariant does not
+-               need to hold.
+-    */
+-    void assert_invariant(bool check_parents = true) const noexcept
+-    {
+-        JSON_ASSERT(m_type != value_t::object || m_value.object != nullptr);
+-        JSON_ASSERT(m_type != value_t::array || m_value.array != nullptr);
+-        JSON_ASSERT(m_type != value_t::string || m_value.string != nullptr);
+-        JSON_ASSERT(m_type != value_t::binary || m_value.binary != nullptr);
+-
+-#if JSON_DIAGNOSTICS
+-        JSON_TRY
+-        {
+-            // cppcheck-suppress assertWithSideEffect
+-            JSON_ASSERT(!check_parents || !is_structured() || std::all_of(begin(), end(), [this](const basic_json & j)
+-            {
+-                return j.m_parent == this;
+-            }));
+-        }
+-        JSON_CATCH(...) {} // LCOV_EXCL_LINE
+-#endif
+-        static_cast<void>(check_parents);
+-    }
+-
+-    void set_parents()
+-    {
+-#if JSON_DIAGNOSTICS
+-        switch (m_type)
+-        {
+-            case value_t::array:
+-            {
+-                for (auto& element : *m_value.array)
+-                {
+-                    element.m_parent = this;
+-                }
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                for (auto& element : *m_value.object)
+-                {
+-                    element.second.m_parent = this;
+-                }
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-#endif
+-    }
+-
+-    iterator set_parents(iterator it, typename iterator::difference_type count_set_parents)
+-    {
+-#if JSON_DIAGNOSTICS
+-        for (typename iterator::difference_type i = 0; i < count_set_parents; ++i)
+-        {
+-            (it + i)->m_parent = this;
+-        }
+-#else
+-        static_cast<void>(count_set_parents);
+-#endif
+-        return it;
+-    }
+-
+-    reference set_parent(reference j, std::size_t old_capacity = static_cast<std::size_t>(-1))
+-    {
+-#if JSON_DIAGNOSTICS
+-        if (old_capacity != static_cast<std::size_t>(-1))
+-        {
+-            // see https://github.com/nlohmann/json/issues/2838
+-            JSON_ASSERT(type() == value_t::array);
+-            if (JSON_HEDLEY_UNLIKELY(m_value.array->capacity() != old_capacity))
+-            {
+-                // capacity has changed: update all parents
+-                set_parents();
+-                return j;
+-            }
+-        }
+-
+-        // ordered_json uses a vector internally, so pointers could have
+-        // been invalidated; see https://github.com/nlohmann/json/issues/2962
+-#ifdef JSON_HEDLEY_MSVC_VERSION
+-#pragma warning(push )
+-#pragma warning(disable : 4127) // ignore warning to replace if with if constexpr
+-#endif
+-        if (detail::is_ordered_map<object_t>::value)
+-        {
+-            set_parents();
+-            return j;
+-        }
+-#ifdef JSON_HEDLEY_MSVC_VERSION
+-#pragma warning( pop )
+-#endif
+-
+-        j.m_parent = this;
+-#else
+-        static_cast<void>(j);
+-        static_cast<void>(old_capacity);
+-#endif
+-        return j;
+-    }
+-
+-  public:
+-    //////////////////////////
+-    // JSON parser callback //
+-    //////////////////////////
+-
+-    /// @brief parser event types
+-    /// @sa https://json.nlohmann.me/api/basic_json/parse_event_t/
+-    using parse_event_t = detail::parse_event_t;
+-
+-    /// @brief per-element parser callback type
+-    /// @sa https://json.nlohmann.me/api/basic_json/parser_callback_t/
+-    using parser_callback_t = detail::parser_callback_t<basic_json>;
+-
+-    //////////////////
+-    // constructors //
+-    //////////////////
+-
+-    /// @name constructors and destructors
+-    /// Constructors of class @ref basic_json, copy/move constructor, copy
+-    /// assignment, static functions creating objects, and the destructor.
+-    /// @{
+-
+-    /// @brief create an empty value with a given type
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(const value_t v)
+-        : m_type(v), m_value(v)
+-    {
+-        assert_invariant();
+-    }
+-
+-    /// @brief create a null object
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(std::nullptr_t = nullptr) noexcept
+-        : basic_json(value_t::null)
+-    {
+-        assert_invariant();
+-    }
+-
+-    /// @brief create a JSON value from compatible types
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    template < typename CompatibleType,
+-               typename U = detail::uncvref_t<CompatibleType>,
+-               detail::enable_if_t <
+-                   !detail::is_basic_json<U>::value && detail::is_compatible_type<basic_json_t, U>::value, int > = 0 >
+-    basic_json(CompatibleType && val) noexcept(noexcept( // NOLINT(bugprone-forwarding-reference-overload,bugprone-exception-escape)
+-                JSONSerializer<U>::to_json(std::declval<basic_json_t&>(),
+-                                           std::forward<CompatibleType>(val))))
+-    {
+-        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief create a JSON value from an existing one
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    template < typename BasicJsonType,
+-               detail::enable_if_t <
+-                   detail::is_basic_json<BasicJsonType>::value&& !std::is_same<basic_json, BasicJsonType>::value, int > = 0 >
+-    basic_json(const BasicJsonType& val)
+-    {
+-        using other_boolean_t = typename BasicJsonType::boolean_t;
+-        using other_number_float_t = typename BasicJsonType::number_float_t;
+-        using other_number_integer_t = typename BasicJsonType::number_integer_t;
+-        using other_number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-        using other_string_t = typename BasicJsonType::string_t;
+-        using other_object_t = typename BasicJsonType::object_t;
+-        using other_array_t = typename BasicJsonType::array_t;
+-        using other_binary_t = typename BasicJsonType::binary_t;
+-
+-        switch (val.type())
+-        {
+-            case value_t::boolean:
+-                JSONSerializer<other_boolean_t>::to_json(*this, val.template get<other_boolean_t>());
+-                break;
+-            case value_t::number_float:
+-                JSONSerializer<other_number_float_t>::to_json(*this, val.template get<other_number_float_t>());
+-                break;
+-            case value_t::number_integer:
+-                JSONSerializer<other_number_integer_t>::to_json(*this, val.template get<other_number_integer_t>());
+-                break;
+-            case value_t::number_unsigned:
+-                JSONSerializer<other_number_unsigned_t>::to_json(*this, val.template get<other_number_unsigned_t>());
+-                break;
+-            case value_t::string:
+-                JSONSerializer<other_string_t>::to_json(*this, val.template get_ref<const other_string_t&>());
+-                break;
+-            case value_t::object:
+-                JSONSerializer<other_object_t>::to_json(*this, val.template get_ref<const other_object_t&>());
+-                break;
+-            case value_t::array:
+-                JSONSerializer<other_array_t>::to_json(*this, val.template get_ref<const other_array_t&>());
+-                break;
+-            case value_t::binary:
+-                JSONSerializer<other_binary_t>::to_json(*this, val.template get_ref<const other_binary_t&>());
+-                break;
+-            case value_t::null:
+-                *this = nullptr;
+-                break;
+-            case value_t::discarded:
+-                m_type = value_t::discarded;
+-                break;
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief create a container (array or object) from an initializer list
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(initializer_list_t init,
+-               bool type_deduction = true,
+-               value_t manual_type = value_t::array)
+-    {
+-        // check if each element is an array with two elements whose first
+-        // element is a string
+-        bool is_an_object = std::all_of(init.begin(), init.end(),
+-                                        [](const detail::json_ref<basic_json>& element_ref)
+-        {
+-            return element_ref->is_array() && element_ref->size() == 2 && (*element_ref)[0].is_string();
+-        });
+-
+-        // adjust type if type deduction is not wanted
+-        if (!type_deduction)
+-        {
+-            // if array is wanted, do not create an object though possible
+-            if (manual_type == value_t::array)
+-            {
+-                is_an_object = false;
+-            }
+-
+-            // if object is wanted but impossible, throw an exception
+-            if (JSON_HEDLEY_UNLIKELY(manual_type == value_t::object && !is_an_object))
+-            {
+-                JSON_THROW(type_error::create(301, "cannot create object from initializer list", basic_json()));
+-            }
+-        }
+-
+-        if (is_an_object)
+-        {
+-            // the initializer list is a list of pairs -> create object
+-            m_type = value_t::object;
+-            m_value = value_t::object;
+-
+-            for (auto& element_ref : init)
+-            {
+-                auto element = element_ref.moved_or_copied();
+-                m_value.object->emplace(
+-                    std::move(*((*element.m_value.array)[0].m_value.string)),
+-                    std::move((*element.m_value.array)[1]));
+-            }
+-        }
+-        else
+-        {
+-            // the initializer list describes an array -> create array
+-            m_type = value_t::array;
+-            m_value.array = create<array_t>(init.begin(), init.end());
+-        }
+-
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief explicitly create a binary array (without subtype)
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json binary(const typename binary_t::container_type& init)
+-    {
+-        auto res = basic_json();
+-        res.m_type = value_t::binary;
+-        res.m_value = init;
+-        return res;
+-    }
+-
+-    /// @brief explicitly create a binary array (with subtype)
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json binary(const typename binary_t::container_type& init, typename binary_t::subtype_type subtype)
+-    {
+-        auto res = basic_json();
+-        res.m_type = value_t::binary;
+-        res.m_value = binary_t(init, subtype);
+-        return res;
+-    }
+-
+-    /// @brief explicitly create a binary array
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json binary(typename binary_t::container_type&& init)
+-    {
+-        auto res = basic_json();
+-        res.m_type = value_t::binary;
+-        res.m_value = std::move(init);
+-        return res;
+-    }
+-
+-    /// @brief explicitly create a binary array (with subtype)
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json binary(typename binary_t::container_type&& init, typename binary_t::subtype_type subtype)
+-    {
+-        auto res = basic_json();
+-        res.m_type = value_t::binary;
+-        res.m_value = binary_t(std::move(init), subtype);
+-        return res;
+-    }
+-
+-    /// @brief explicitly create an array from an initializer list
+-    /// @sa https://json.nlohmann.me/api/basic_json/array/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json array(initializer_list_t init = {})
+-    {
+-        return basic_json(init, false, value_t::array);
+-    }
+-
+-    /// @brief explicitly create an object from an initializer list
+-    /// @sa https://json.nlohmann.me/api/basic_json/object/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json object(initializer_list_t init = {})
+-    {
+-        return basic_json(init, false, value_t::object);
+-    }
+-
+-    /// @brief construct an array with count copies of given value
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(size_type cnt, const basic_json& val)
+-        : m_type(value_t::array)
+-    {
+-        m_value.array = create<array_t>(cnt, val);
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief construct a JSON container given an iterator range
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    template < class InputIT, typename std::enable_if <
+-                   std::is_same<InputIT, typename basic_json_t::iterator>::value ||
+-                   std::is_same<InputIT, typename basic_json_t::const_iterator>::value, int >::type = 0 >
+-    basic_json(InputIT first, InputIT last)
+-    {
+-        JSON_ASSERT(first.m_object != nullptr);
+-        JSON_ASSERT(last.m_object != nullptr);
+-
+-        // make sure iterator fits the current value
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(201, "iterators are not compatible", basic_json()));
+-        }
+-
+-        // copy type from first iterator
+-        m_type = first.m_object->m_type;
+-
+-        // check if iterator range is complete for primitive values
+-        switch (m_type)
+-        {
+-            case value_t::boolean:
+-            case value_t::number_float:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::string:
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!first.m_it.primitive_iterator.is_begin()
+-                                         || !last.m_it.primitive_iterator.is_end()))
+-                {
+-                    JSON_THROW(invalid_iterator::create(204, "iterators out of range", *first.m_object));
+-                }
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::object:
+-            case value_t::array:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-
+-        switch (m_type)
+-        {
+-            case value_t::number_integer:
+-            {
+-                m_value.number_integer = first.m_object->m_value.number_integer;
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                m_value.number_unsigned = first.m_object->m_value.number_unsigned;
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                m_value.number_float = first.m_object->m_value.number_float;
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                m_value.boolean = first.m_object->m_value.boolean;
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                m_value = *first.m_object->m_value.string;
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                m_value.object = create<object_t>(first.m_it.object_iterator,
+-                                                  last.m_it.object_iterator);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_value.array = create<array_t>(first.m_it.array_iterator,
+-                                                last.m_it.array_iterator);
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                m_value = *first.m_object->m_value.binary;
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                JSON_THROW(invalid_iterator::create(206, "cannot construct with iterators from " + std::string(first.m_object->type_name()), *first.m_object));
+-        }
+-
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-
+-    ///////////////////////////////////////
+-    // other constructors and destructor //
+-    ///////////////////////////////////////
+-
+-    template<typename JsonRef,
+-             detail::enable_if_t<detail::conjunction<detail::is_json_ref<JsonRef>,
+-                                 std::is_same<typename JsonRef::value_type, basic_json>>::value, int> = 0 >
+-    basic_json(const JsonRef& ref) : basic_json(ref.moved_or_copied()) {}
+-
+-    /// @brief copy constructor
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(const basic_json& other)
+-        : m_type(other.m_type)
+-    {
+-        // check of passed value is valid
+-        other.assert_invariant();
+-
+-        switch (m_type)
+-        {
+-            case value_t::object:
+-            {
+-                m_value = *other.m_value.object;
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_value = *other.m_value.array;
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                m_value = *other.m_value.string;
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                m_value = other.m_value.boolean;
+-                break;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                m_value = other.m_value.number_integer;
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                m_value = other.m_value.number_unsigned;
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                m_value = other.m_value.number_float;
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                m_value = *other.m_value.binary;
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief move constructor
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(basic_json&& other) noexcept
+-        : m_type(std::move(other.m_type)),
+-          m_value(std::move(other.m_value))
+-    {
+-        // check that passed value is valid
+-        other.assert_invariant(false);
+-
+-        // invalidate payload
+-        other.m_type = value_t::null;
+-        other.m_value = {};
+-
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief copy assignment
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator=/
+-    basic_json& operator=(basic_json other) noexcept (
+-        std::is_nothrow_move_constructible<value_t>::value&&
+-        std::is_nothrow_move_assignable<value_t>::value&&
+-        std::is_nothrow_move_constructible<json_value>::value&&
+-        std::is_nothrow_move_assignable<json_value>::value
+-    )
+-    {
+-        // check that passed value is valid
+-        other.assert_invariant();
+-
+-        using std::swap;
+-        swap(m_type, other.m_type);
+-        swap(m_value, other.m_value);
+-
+-        set_parents();
+-        assert_invariant();
+-        return *this;
+-    }
+-
+-    /// @brief destructor
+-    /// @sa https://json.nlohmann.me/api/basic_json/~basic_json/
+-    ~basic_json() noexcept
+-    {
+-        assert_invariant(false);
+-        m_value.destroy(m_type);
+-    }
+-
+-    /// @}
+-
+-  public:
+-    ///////////////////////
+-    // object inspection //
+-    ///////////////////////
+-
+-    /// @name object inspection
+-    /// Functions to inspect the type of a JSON value.
+-    /// @{
+-
+-    /// @brief serialization
+-    /// @sa https://json.nlohmann.me/api/basic_json/dump/
+-    string_t dump(const int indent = -1,
+-                  const char indent_char = ' ',
+-                  const bool ensure_ascii = false,
+-                  const error_handler_t error_handler = error_handler_t::strict) const
+-    {
+-        string_t result;
+-        serializer s(detail::output_adapter<char, string_t>(result), indent_char, error_handler);
+-
+-        if (indent >= 0)
+-        {
+-            s.dump(*this, true, ensure_ascii, static_cast<unsigned int>(indent));
+-        }
+-        else
+-        {
+-            s.dump(*this, false, ensure_ascii, 0);
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief return the type of the JSON value (explicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/type/
+-    constexpr value_t type() const noexcept
+-    {
+-        return m_type;
+-    }
+-
+-    /// @brief return whether type is primitive
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_primitive/
+-    constexpr bool is_primitive() const noexcept
+-    {
+-        return is_null() || is_string() || is_boolean() || is_number() || is_binary();
+-    }
+-
+-    /// @brief return whether type is structured
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_structured/
+-    constexpr bool is_structured() const noexcept
+-    {
+-        return is_array() || is_object();
+-    }
+-
+-    /// @brief return whether value is null
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_null/
+-    constexpr bool is_null() const noexcept
+-    {
+-        return m_type == value_t::null;
+-    }
+-
+-    /// @brief return whether value is a boolean
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_boolean/
+-    constexpr bool is_boolean() const noexcept
+-    {
+-        return m_type == value_t::boolean;
+-    }
+-
+-    /// @brief return whether value is a number
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_number/
+-    constexpr bool is_number() const noexcept
+-    {
+-        return is_number_integer() || is_number_float();
+-    }
+-
+-    /// @brief return whether value is an integer number
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_number_integer/
+-    constexpr bool is_number_integer() const noexcept
+-    {
+-        return m_type == value_t::number_integer || m_type == value_t::number_unsigned;
+-    }
+-
+-    /// @brief return whether value is an unsigned integer number
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_number_unsigned/
+-    constexpr bool is_number_unsigned() const noexcept
+-    {
+-        return m_type == value_t::number_unsigned;
+-    }
+-
+-    /// @brief return whether value is a floating-point number
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_number_float/
+-    constexpr bool is_number_float() const noexcept
+-    {
+-        return m_type == value_t::number_float;
+-    }
+-
+-    /// @brief return whether value is an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_object/
+-    constexpr bool is_object() const noexcept
+-    {
+-        return m_type == value_t::object;
+-    }
+-
+-    /// @brief return whether value is an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_array/
+-    constexpr bool is_array() const noexcept
+-    {
+-        return m_type == value_t::array;
+-    }
+-
+-    /// @brief return whether value is a string
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_string/
+-    constexpr bool is_string() const noexcept
+-    {
+-        return m_type == value_t::string;
+-    }
+-
+-    /// @brief return whether value is a binary array
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_binary/
+-    constexpr bool is_binary() const noexcept
+-    {
+-        return m_type == value_t::binary;
+-    }
+-
+-    /// @brief return whether value is discarded
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_discarded/
+-    constexpr bool is_discarded() const noexcept
+-    {
+-        return m_type == value_t::discarded;
+-    }
+-
+-    /// @brief return the type of the JSON value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_value_t/
+-    constexpr operator value_t() const noexcept
+-    {
+-        return m_type;
+-    }
+-
+-    /// @}
+-
+-  private:
+-    //////////////////
+-    // value access //
+-    //////////////////
+-
+-    /// get a boolean (explicit)
+-    boolean_t get_impl(boolean_t* /*unused*/) const
+-    {
+-        if (JSON_HEDLEY_LIKELY(is_boolean()))
+-        {
+-            return m_value.boolean;
+-        }
+-
+-        JSON_THROW(type_error::create(302, "type must be boolean, but is " + std::string(type_name()), *this));
+-    }
+-
+-    /// get a pointer to the value (object)
+-    object_t* get_impl_ptr(object_t* /*unused*/) noexcept
+-    {
+-        return is_object() ? m_value.object : nullptr;
+-    }
+-
+-    /// get a pointer to the value (object)
+-    constexpr const object_t* get_impl_ptr(const object_t* /*unused*/) const noexcept
+-    {
+-        return is_object() ? m_value.object : nullptr;
+-    }
+-
+-    /// get a pointer to the value (array)
+-    array_t* get_impl_ptr(array_t* /*unused*/) noexcept
+-    {
+-        return is_array() ? m_value.array : nullptr;
+-    }
+-
+-    /// get a pointer to the value (array)
+-    constexpr const array_t* get_impl_ptr(const array_t* /*unused*/) const noexcept
+-    {
+-        return is_array() ? m_value.array : nullptr;
+-    }
+-
+-    /// get a pointer to the value (string)
+-    string_t* get_impl_ptr(string_t* /*unused*/) noexcept
+-    {
+-        return is_string() ? m_value.string : nullptr;
+-    }
+-
+-    /// get a pointer to the value (string)
+-    constexpr const string_t* get_impl_ptr(const string_t* /*unused*/) const noexcept
+-    {
+-        return is_string() ? m_value.string : nullptr;
+-    }
+-
+-    /// get a pointer to the value (boolean)
+-    boolean_t* get_impl_ptr(boolean_t* /*unused*/) noexcept
+-    {
+-        return is_boolean() ? &m_value.boolean : nullptr;
+-    }
+-
+-    /// get a pointer to the value (boolean)
+-    constexpr const boolean_t* get_impl_ptr(const boolean_t* /*unused*/) const noexcept
+-    {
+-        return is_boolean() ? &m_value.boolean : nullptr;
+-    }
+-
+-    /// get a pointer to the value (integer number)
+-    number_integer_t* get_impl_ptr(number_integer_t* /*unused*/) noexcept
+-    {
+-        return is_number_integer() ? &m_value.number_integer : nullptr;
+-    }
+-
+-    /// get a pointer to the value (integer number)
+-    constexpr const number_integer_t* get_impl_ptr(const number_integer_t* /*unused*/) const noexcept
+-    {
+-        return is_number_integer() ? &m_value.number_integer : nullptr;
+-    }
+-
+-    /// get a pointer to the value (unsigned number)
+-    number_unsigned_t* get_impl_ptr(number_unsigned_t* /*unused*/) noexcept
+-    {
+-        return is_number_unsigned() ? &m_value.number_unsigned : nullptr;
+-    }
+-
+-    /// get a pointer to the value (unsigned number)
+-    constexpr const number_unsigned_t* get_impl_ptr(const number_unsigned_t* /*unused*/) const noexcept
+-    {
+-        return is_number_unsigned() ? &m_value.number_unsigned : nullptr;
+-    }
+-
+-    /// get a pointer to the value (floating-point number)
+-    number_float_t* get_impl_ptr(number_float_t* /*unused*/) noexcept
+-    {
+-        return is_number_float() ? &m_value.number_float : nullptr;
+-    }
+-
+-    /// get a pointer to the value (floating-point number)
+-    constexpr const number_float_t* get_impl_ptr(const number_float_t* /*unused*/) const noexcept
+-    {
+-        return is_number_float() ? &m_value.number_float : nullptr;
+-    }
+-
+-    /// get a pointer to the value (binary)
+-    binary_t* get_impl_ptr(binary_t* /*unused*/) noexcept
+-    {
+-        return is_binary() ? m_value.binary : nullptr;
+-    }
+-
+-    /// get a pointer to the value (binary)
+-    constexpr const binary_t* get_impl_ptr(const binary_t* /*unused*/) const noexcept
+-    {
+-        return is_binary() ? m_value.binary : nullptr;
+-    }
+-
+-    /*!
+-    @brief helper function to implement get_ref()
+-
+-    This function helps to implement get_ref() without code duplication for
+-    const and non-const overloads
+-
+-    @tparam ThisType will be deduced as `basic_json` or `const basic_json`
+-
+-    @throw type_error.303 if ReferenceType does not match underlying value
+-    type of the current JSON
+-    */
+-    template<typename ReferenceType, typename ThisType>
+-    static ReferenceType get_ref_impl(ThisType& obj)
+-    {
+-        // delegate the call to get_ptr<>()
+-        auto* ptr = obj.template get_ptr<typename std::add_pointer<ReferenceType>::type>();
+-
+-        if (JSON_HEDLEY_LIKELY(ptr != nullptr))
+-        {
+-            return *ptr;
+-        }
+-
+-        JSON_THROW(type_error::create(303, "incompatible ReferenceType for get_ref, actual type is " + std::string(obj.type_name()), obj));
+-    }
+-
+-  public:
+-    /// @name value access
+-    /// Direct access to the stored value of a JSON value.
+-    /// @{
+-
+-    /// @brief get a pointer value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_ptr/
+-    template<typename PointerType, typename std::enable_if<
+-                 std::is_pointer<PointerType>::value, int>::type = 0>
+-    auto get_ptr() noexcept -> decltype(std::declval<basic_json_t&>().get_impl_ptr(std::declval<PointerType>()))
+-    {
+-        // delegate the call to get_impl_ptr<>()
+-        return get_impl_ptr(static_cast<PointerType>(nullptr));
+-    }
+-
+-    /// @brief get a pointer value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_ptr/
+-    template < typename PointerType, typename std::enable_if <
+-                   std::is_pointer<PointerType>::value&&
+-                   std::is_const<typename std::remove_pointer<PointerType>::type>::value, int >::type = 0 >
+-    constexpr auto get_ptr() const noexcept -> decltype(std::declval<const basic_json_t&>().get_impl_ptr(std::declval<PointerType>()))
+-    {
+-        // delegate the call to get_impl_ptr<>() const
+-        return get_impl_ptr(static_cast<PointerType>(nullptr));
+-    }
+-
+-  private:
+-    /*!
+-    @brief get a value (explicit)
+-
+-    Explicit type conversion between the JSON value and a compatible value
+-    which is [CopyConstructible](https://en.cppreference.com/w/cpp/named_req/CopyConstructible)
+-    and [DefaultConstructible](https://en.cppreference.com/w/cpp/named_req/DefaultConstructible).
+-    The value is converted by calling the @ref json_serializer<ValueType>
+-    `from_json()` method.
+-
+-    The function is equivalent to executing
+-    @code {.cpp}
+-    ValueType ret;
+-    JSONSerializer<ValueType>::from_json(*this, ret);
+-    return ret;
+-    @endcode
+-
+-    This overloads is chosen if:
+-    - @a ValueType is not @ref basic_json,
+-    - @ref json_serializer<ValueType> has a `from_json()` method of the form
+-      `void from_json(const basic_json&, ValueType&)`, and
+-    - @ref json_serializer<ValueType> does not have a `from_json()` method of
+-      the form `ValueType from_json(const basic_json&)`
+-
+-    @tparam ValueType the returned value type
+-
+-    @return copy of the JSON value, converted to @a ValueType
+-
+-    @throw what @ref json_serializer<ValueType> `from_json()` method throws
+-
+-    @liveexample{The example below shows several conversions from JSON values
+-    to other types. There a few things to note: (1) Floating-point numbers can
+-    be converted to integers\, (2) A JSON array can be converted to a standard
+-    `std::vector<short>`\, (3) A JSON object can be converted to C++
+-    associative containers such as `std::unordered_map<std::string\,
+-    json>`.,get__ValueType_const}
+-
+-    @since version 2.1.0
+-    */
+-    template < typename ValueType,
+-               detail::enable_if_t <
+-                   detail::is_default_constructible<ValueType>::value&&
+-                   detail::has_from_json<basic_json_t, ValueType>::value,
+-                   int > = 0 >
+-    ValueType get_impl(detail::priority_tag<0> /*unused*/) const noexcept(noexcept(
+-                JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>(), std::declval<ValueType&>())))
+-    {
+-        auto ret = ValueType();
+-        JSONSerializer<ValueType>::from_json(*this, ret);
+-        return ret;
+-    }
+-
+-    /*!
+-    @brief get a value (explicit); special case
+-
+-    Explicit type conversion between the JSON value and a compatible value
+-    which is **not** [CopyConstructible](https://en.cppreference.com/w/cpp/named_req/CopyConstructible)
+-    and **not** [DefaultConstructible](https://en.cppreference.com/w/cpp/named_req/DefaultConstructible).
+-    The value is converted by calling the @ref json_serializer<ValueType>
+-    `from_json()` method.
+-
+-    The function is equivalent to executing
+-    @code {.cpp}
+-    return JSONSerializer<ValueType>::from_json(*this);
+-    @endcode
+-
+-    This overloads is chosen if:
+-    - @a ValueType is not @ref basic_json and
+-    - @ref json_serializer<ValueType> has a `from_json()` method of the form
+-      `ValueType from_json(const basic_json&)`
+-
+-    @note If @ref json_serializer<ValueType> has both overloads of
+-    `from_json()`, this one is chosen.
+-
+-    @tparam ValueType the returned value type
+-
+-    @return copy of the JSON value, converted to @a ValueType
+-
+-    @throw what @ref json_serializer<ValueType> `from_json()` method throws
+-
+-    @since version 2.1.0
+-    */
+-    template < typename ValueType,
+-               detail::enable_if_t <
+-                   detail::has_non_default_from_json<basic_json_t, ValueType>::value,
+-                   int > = 0 >
+-    ValueType get_impl(detail::priority_tag<1> /*unused*/) const noexcept(noexcept(
+-                JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>())))
+-    {
+-        return JSONSerializer<ValueType>::from_json(*this);
+-    }
+-
+-    /*!
+-    @brief get special-case overload
+-
+-    This overloads converts the current @ref basic_json in a different
+-    @ref basic_json type
+-
+-    @tparam BasicJsonType == @ref basic_json
+-
+-    @return a copy of *this, converted into @a BasicJsonType
+-
+-    @complexity Depending on the implementation of the called `from_json()`
+-                method.
+-
+-    @since version 3.2.0
+-    */
+-    template < typename BasicJsonType,
+-               detail::enable_if_t <
+-                   detail::is_basic_json<BasicJsonType>::value,
+-                   int > = 0 >
+-    BasicJsonType get_impl(detail::priority_tag<2> /*unused*/) const
+-    {
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief get special-case overload
+-
+-    This overloads avoids a lot of template boilerplate, it can be seen as the
+-    identity method
+-
+-    @tparam BasicJsonType == @ref basic_json
+-
+-    @return a copy of *this
+-
+-    @complexity Constant.
+-
+-    @since version 2.1.0
+-    */
+-    template<typename BasicJsonType,
+-             detail::enable_if_t<
+-                 std::is_same<BasicJsonType, basic_json_t>::value,
+-                 int> = 0>
+-    basic_json get_impl(detail::priority_tag<3> /*unused*/) const
+-    {
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief get a pointer value (explicit)
+-    @copydoc get()
+-    */
+-    template<typename PointerType,
+-             detail::enable_if_t<
+-                 std::is_pointer<PointerType>::value,
+-                 int> = 0>
+-    constexpr auto get_impl(detail::priority_tag<4> /*unused*/) const noexcept
+-    -> decltype(std::declval<const basic_json_t&>().template get_ptr<PointerType>())
+-    {
+-        // delegate the call to get_ptr
+-        return get_ptr<PointerType>();
+-    }
+-
+-  public:
+-    /*!
+-    @brief get a (pointer) value (explicit)
+-
+-    Performs explicit type conversion between the JSON value and a compatible value if required.
+-
+-    - If the requested type is a pointer to the internally stored JSON value that pointer is returned.
+-    No copies are made.
+-
+-    - If the requested type is the current @ref basic_json, or a different @ref basic_json convertible
+-    from the current @ref basic_json.
+-
+-    - Otherwise the value is converted by calling the @ref json_serializer<ValueType> `from_json()`
+-    method.
+-
+-    @tparam ValueTypeCV the provided value type
+-    @tparam ValueType the returned value type
+-
+-    @return copy of the JSON value, converted to @tparam ValueType if necessary
+-
+-    @throw what @ref json_serializer<ValueType> `from_json()` method throws if conversion is required
+-
+-    @since version 2.1.0
+-    */
+-    template < typename ValueTypeCV, typename ValueType = detail::uncvref_t<ValueTypeCV>>
+-#if defined(JSON_HAS_CPP_14)
+-    constexpr
+-#endif
+-    auto get() const noexcept(
+-    noexcept(std::declval<const basic_json_t&>().template get_impl<ValueType>(detail::priority_tag<4> {})))
+-    -> decltype(std::declval<const basic_json_t&>().template get_impl<ValueType>(detail::priority_tag<4> {}))
+-    {
+-        // we cannot static_assert on ValueTypeCV being non-const, because
+-        // there is support for get<const basic_json_t>(), which is why we
+-        // still need the uncvref
+-        static_assert(!std::is_reference<ValueTypeCV>::value,
+-                      "get() cannot be used with reference types, you might want to use get_ref()");
+-        return get_impl<ValueType>(detail::priority_tag<4> {});
+-    }
+-
+-    /*!
+-    @brief get a pointer value (explicit)
+-
+-    Explicit pointer access to the internally stored JSON value. No copies are
+-    made.
+-
+-    @warning The pointer becomes invalid if the underlying JSON object
+-    changes.
+-
+-    @tparam PointerType pointer type; must be a pointer to @ref array_t, @ref
+-    object_t, @ref string_t, @ref boolean_t, @ref number_integer_t,
+-    @ref number_unsigned_t, or @ref number_float_t.
+-
+-    @return pointer to the internally stored JSON value if the requested
+-    pointer type @a PointerType fits to the JSON value; `nullptr` otherwise
+-
+-    @complexity Constant.
+-
+-    @liveexample{The example below shows how pointers to internal values of a
+-    JSON value can be requested. Note that no type conversions are made and a
+-    `nullptr` is returned if the value and the requested pointer type does not
+-    match.,get__PointerType}
+-
+-    @sa see @ref get_ptr() for explicit pointer-member access
+-
+-    @since version 1.0.0
+-    */
+-    template<typename PointerType, typename std::enable_if<
+-                 std::is_pointer<PointerType>::value, int>::type = 0>
+-    auto get() noexcept -> decltype(std::declval<basic_json_t&>().template get_ptr<PointerType>())
+-    {
+-        // delegate the call to get_ptr
+-        return get_ptr<PointerType>();
+-    }
+-
+-    /// @brief get a value (explicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_to/
+-    template < typename ValueType,
+-               detail::enable_if_t <
+-                   !detail::is_basic_json<ValueType>::value&&
+-                   detail::has_from_json<basic_json_t, ValueType>::value,
+-                   int > = 0 >
+-    ValueType & get_to(ValueType& v) const noexcept(noexcept(
+-                JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>(), v)))
+-    {
+-        JSONSerializer<ValueType>::from_json(*this, v);
+-        return v;
+-    }
+-
+-    // specialization to allow calling get_to with a basic_json value
+-    // see https://github.com/nlohmann/json/issues/2175
+-    template<typename ValueType,
+-             detail::enable_if_t <
+-                 detail::is_basic_json<ValueType>::value,
+-                 int> = 0>
+-    ValueType & get_to(ValueType& v) const
+-    {
+-        v = *this;
+-        return v;
+-    }
+-
+-    template <
+-        typename T, std::size_t N,
+-        typename Array = T (&)[N], // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-        detail::enable_if_t <
+-            detail::has_from_json<basic_json_t, Array>::value, int > = 0 >
+-    Array get_to(T (&v)[N]) const // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-    noexcept(noexcept(JSONSerializer<Array>::from_json(
+-                          std::declval<const basic_json_t&>(), v)))
+-    {
+-        JSONSerializer<Array>::from_json(*this, v);
+-        return v;
+-    }
+-
+-    /// @brief get a reference value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_ref/
+-    template<typename ReferenceType, typename std::enable_if<
+-                 std::is_reference<ReferenceType>::value, int>::type = 0>
+-    ReferenceType get_ref()
+-    {
+-        // delegate call to get_ref_impl
+-        return get_ref_impl<ReferenceType>(*this);
+-    }
+-
+-    /// @brief get a reference value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_ref/
+-    template < typename ReferenceType, typename std::enable_if <
+-                   std::is_reference<ReferenceType>::value&&
+-                   std::is_const<typename std::remove_reference<ReferenceType>::type>::value, int >::type = 0 >
+-    ReferenceType get_ref() const
+-    {
+-        // delegate call to get_ref_impl
+-        return get_ref_impl<ReferenceType>(*this);
+-    }
+-
+-    /*!
+-    @brief get a value (implicit)
+-
+-    Implicit type conversion between the JSON value and a compatible value.
+-    The call is realized by calling @ref get() const.
+-
+-    @tparam ValueType non-pointer type compatible to the JSON value, for
+-    instance `int` for JSON integer numbers, `bool` for JSON booleans, or
+-    `std::vector` types for JSON arrays. The character type of @ref string_t
+-    as well as an initializer list of this type is excluded to avoid
+-    ambiguities as these types implicitly convert to `std::string`.
+-
+-    @return copy of the JSON value, converted to type @a ValueType
+-
+-    @throw type_error.302 in case passed type @a ValueType is incompatible
+-    to the JSON value type (e.g., the JSON value is of type boolean, but a
+-    string is requested); see example below
+-
+-    @complexity Linear in the size of the JSON value.
+-
+-    @liveexample{The example below shows several conversions from JSON values
+-    to other types. There a few things to note: (1) Floating-point numbers can
+-    be converted to integers\, (2) A JSON array can be converted to a standard
+-    `std::vector<short>`\, (3) A JSON object can be converted to C++
+-    associative containers such as `std::unordered_map<std::string\,
+-    json>`.,operator__ValueType}
+-
+-    @since version 1.0.0
+-    */
+-    template < typename ValueType, typename std::enable_if <
+-                   detail::conjunction <
+-                       detail::negation<std::is_pointer<ValueType>>,
+-                       detail::negation<std::is_same<ValueType, detail::json_ref<basic_json>>>,
+-                                        detail::negation<std::is_same<ValueType, typename string_t::value_type>>,
+-                                        detail::negation<detail::is_basic_json<ValueType>>,
+-                                        detail::negation<std::is_same<ValueType, std::initializer_list<typename string_t::value_type>>>,
+-
+-#if defined(JSON_HAS_CPP_17) && (defined(__GNUC__) || (defined(_MSC_VER) && _MSC_VER >= 1910 && _MSC_VER <= 1914))
+-                                                detail::negation<std::is_same<ValueType, std::string_view>>,
+-#endif
+-                                                detail::is_detected_lazy<detail::get_template_function, const basic_json_t&, ValueType>
+-                                                >::value, int >::type = 0 >
+-                                        JSON_EXPLICIT operator ValueType() const
+-    {
+-        // delegate the call to get<>() const
+-        return get<ValueType>();
+-    }
+-
+-    /// @brief get a binary value
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_binary/
+-    binary_t& get_binary()
+-    {
+-        if (!is_binary())
+-        {
+-            JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(type_name()), *this));
+-        }
+-
+-        return *get_ptr<binary_t*>();
+-    }
+-
+-    /// @brief get a binary value
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_binary/
+-    const binary_t& get_binary() const
+-    {
+-        if (!is_binary())
+-        {
+-            JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(type_name()), *this));
+-        }
+-
+-        return *get_ptr<const binary_t*>();
+-    }
+-
+-    /// @}
+-
+-
+-    ////////////////////
+-    // element access //
+-    ////////////////////
+-
+-    /// @name element access
+-    /// Access to the JSON value.
+-    /// @{
+-
+-    /// @brief access specified array element with bounds checking
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    reference at(size_type idx)
+-    {
+-        // at only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            JSON_TRY
+-            {
+-                return set_parent(m_value.array->at(idx));
+-            }
+-            JSON_CATCH (std::out_of_range&)
+-            {
+-                // create better exception explanation
+-                JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range", *this));
+-            }
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief access specified array element with bounds checking
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    const_reference at(size_type idx) const
+-    {
+-        // at only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            JSON_TRY
+-            {
+-                return m_value.array->at(idx);
+-            }
+-            JSON_CATCH (std::out_of_range&)
+-            {
+-                // create better exception explanation
+-                JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range", *this));
+-            }
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief access specified object element with bounds checking
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    reference at(const typename object_t::key_type& key)
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            JSON_TRY
+-            {
+-                return set_parent(m_value.object->at(key));
+-            }
+-            JSON_CATCH (std::out_of_range&)
+-            {
+-                // create better exception explanation
+-                JSON_THROW(out_of_range::create(403, "key '" + key + "' not found", *this));
+-            }
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief access specified object element with bounds checking
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    const_reference at(const typename object_t::key_type& key) const
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            JSON_TRY
+-            {
+-                return m_value.object->at(key);
+-            }
+-            JSON_CATCH (std::out_of_range&)
+-            {
+-                // create better exception explanation
+-                JSON_THROW(out_of_range::create(403, "key '" + key + "' not found", *this));
+-            }
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief access specified array element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    reference operator[](size_type idx)
+-    {
+-        // implicitly convert null value to an empty array
+-        if (is_null())
+-        {
+-            m_type = value_t::array;
+-            m_value.array = create<array_t>();
+-            assert_invariant();
+-        }
+-
+-        // operator[] only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            // fill up array with null values if given idx is outside range
+-            if (idx >= m_value.array->size())
+-            {
+-#if JSON_DIAGNOSTICS
+-                // remember array size & capacity before resizing
+-                const auto old_size = m_value.array->size();
+-                const auto old_capacity = m_value.array->capacity();
+-#endif
+-                m_value.array->resize(idx + 1);
+-
+-#if JSON_DIAGNOSTICS
+-                if (JSON_HEDLEY_UNLIKELY(m_value.array->capacity() != old_capacity))
+-                {
+-                    // capacity has changed: update all parents
+-                    set_parents();
+-                }
+-                else
+-                {
+-                    // set parent for values added above
+-                    set_parents(begin() + static_cast<typename iterator::difference_type>(old_size), static_cast<typename iterator::difference_type>(idx + 1 - old_size));
+-                }
+-#endif
+-                assert_invariant();
+-            }
+-
+-            return m_value.array->operator[](idx);
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a numeric argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified array element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    const_reference operator[](size_type idx) const
+-    {
+-        // const operator[] only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            return m_value.array->operator[](idx);
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a numeric argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    reference operator[](const typename object_t::key_type& key)
+-    {
+-        // implicitly convert null value to an empty object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value.object = create<object_t>();
+-            assert_invariant();
+-        }
+-
+-        // operator[] only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            return set_parent(m_value.object->operator[](key));
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    const_reference operator[](const typename object_t::key_type& key) const
+-    {
+-        // const operator[] only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            JSON_ASSERT(m_value.object->find(key) != m_value.object->end());
+-            return m_value.object->find(key)->second;
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    template<typename T>
+-    JSON_HEDLEY_NON_NULL(2)
+-    reference operator[](T* key)
+-    {
+-        // implicitly convert null to object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value = value_t::object;
+-            assert_invariant();
+-        }
+-
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            return set_parent(m_value.object->operator[](key));
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    template<typename T>
+-    JSON_HEDLEY_NON_NULL(2)
+-    const_reference operator[](T* key) const
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            JSON_ASSERT(m_value.object->find(key) != m_value.object->end());
+-            return m_value.object->find(key)->second;
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element with default value
+-    /// @sa https://json.nlohmann.me/api/basic_json/value/
+-    /// using std::is_convertible in a std::enable_if will fail when using explicit conversions
+-    template < class ValueType, typename std::enable_if <
+-                   detail::is_getable<basic_json_t, ValueType>::value
+-                   && !std::is_same<value_t, ValueType>::value, int >::type = 0 >
+-    ValueType value(const typename object_t::key_type& key, const ValueType& default_value) const
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            // if key is found, return value and given default value otherwise
+-            const auto it = find(key);
+-            if (it != end())
+-            {
+-                return it->template get<ValueType>();
+-            }
+-
+-            return default_value;
+-        }
+-
+-        JSON_THROW(type_error::create(306, "cannot use value() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element with default value
+-    /// @sa https://json.nlohmann.me/api/basic_json/value/
+-    /// overload for a default value of type const char*
+-    string_t value(const typename object_t::key_type& key, const char* default_value) const
+-    {
+-        return value(key, string_t(default_value));
+-    }
+-
+-    /// @brief access specified object element via JSON Pointer with default value
+-    /// @sa https://json.nlohmann.me/api/basic_json/value/
+-    template<class ValueType, typename std::enable_if<
+-                 detail::is_getable<basic_json_t, ValueType>::value, int>::type = 0>
+-    ValueType value(const json_pointer& ptr, const ValueType& default_value) const
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            // if pointer resolves a value, return it or use default value
+-            JSON_TRY
+-            {
+-                return ptr.get_checked(this).template get<ValueType>();
+-            }
+-            JSON_INTERNAL_CATCH (out_of_range&)
+-            {
+-                return default_value;
+-            }
+-        }
+-
+-        JSON_THROW(type_error::create(306, "cannot use value() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element via JSON Pointer with default value
+-    /// @sa https://json.nlohmann.me/api/basic_json/value/
+-    /// overload for a default value of type const char*
+-    JSON_HEDLEY_NON_NULL(3)
+-    string_t value(const json_pointer& ptr, const char* default_value) const
+-    {
+-        return value(ptr, string_t(default_value));
+-    }
+-
+-    /// @brief access the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/front/
+-    reference front()
+-    {
+-        return *begin();
+-    }
+-
+-    /// @brief access the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/front/
+-    const_reference front() const
+-    {
+-        return *cbegin();
+-    }
+-
+-    /// @brief access the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/back/
+-    reference back()
+-    {
+-        auto tmp = end();
+-        --tmp;
+-        return *tmp;
+-    }
+-
+-    /// @brief access the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/back/
+-    const_reference back() const
+-    {
+-        auto tmp = cend();
+-        --tmp;
+-        return *tmp;
+-    }
+-
+-    /// @brief remove element given an iterator
+-    /// @sa https://json.nlohmann.me/api/basic_json/erase/
+-    template < class IteratorType, typename std::enable_if <
+-                   std::is_same<IteratorType, typename basic_json_t::iterator>::value ||
+-                   std::is_same<IteratorType, typename basic_json_t::const_iterator>::value, int >::type
+-               = 0 >
+-    IteratorType erase(IteratorType pos)
+-    {
+-        // make sure iterator fits the current value
+-        if (JSON_HEDLEY_UNLIKELY(this != pos.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-        }
+-
+-        IteratorType result = end();
+-
+-        switch (m_type)
+-        {
+-            case value_t::boolean:
+-            case value_t::number_float:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::string:
+-            case value_t::binary:
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!pos.m_it.primitive_iterator.is_begin()))
+-                {
+-                    JSON_THROW(invalid_iterator::create(205, "iterator out of range", *this));
+-                }
+-
+-                if (is_string())
+-                {
+-                    AllocatorType<string_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.string);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.string, 1);
+-                    m_value.string = nullptr;
+-                }
+-                else if (is_binary())
+-                {
+-                    AllocatorType<binary_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.binary);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.binary, 1);
+-                    m_value.binary = nullptr;
+-                }
+-
+-                m_type = value_t::null;
+-                assert_invariant();
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                result.m_it.object_iterator = m_value.object->erase(pos.m_it.object_iterator);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                result.m_it.array_iterator = m_value.array->erase(pos.m_it.array_iterator);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief remove elements given an iterator range
+-    /// @sa https://json.nlohmann.me/api/basic_json/erase/
+-    template < class IteratorType, typename std::enable_if <
+-                   std::is_same<IteratorType, typename basic_json_t::iterator>::value ||
+-                   std::is_same<IteratorType, typename basic_json_t::const_iterator>::value, int >::type
+-               = 0 >
+-    IteratorType erase(IteratorType first, IteratorType last)
+-    {
+-        // make sure iterator fits the current value
+-        if (JSON_HEDLEY_UNLIKELY(this != first.m_object || this != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(203, "iterators do not fit current value", *this));
+-        }
+-
+-        IteratorType result = end();
+-
+-        switch (m_type)
+-        {
+-            case value_t::boolean:
+-            case value_t::number_float:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::string:
+-            case value_t::binary:
+-            {
+-                if (JSON_HEDLEY_LIKELY(!first.m_it.primitive_iterator.is_begin()
+-                                       || !last.m_it.primitive_iterator.is_end()))
+-                {
+-                    JSON_THROW(invalid_iterator::create(204, "iterators out of range", *this));
+-                }
+-
+-                if (is_string())
+-                {
+-                    AllocatorType<string_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.string);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.string, 1);
+-                    m_value.string = nullptr;
+-                }
+-                else if (is_binary())
+-                {
+-                    AllocatorType<binary_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.binary);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.binary, 1);
+-                    m_value.binary = nullptr;
+-                }
+-
+-                m_type = value_t::null;
+-                assert_invariant();
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                result.m_it.object_iterator = m_value.object->erase(first.m_it.object_iterator,
+-                                              last.m_it.object_iterator);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                result.m_it.array_iterator = m_value.array->erase(first.m_it.array_iterator,
+-                                             last.m_it.array_iterator);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief remove element from a JSON object given a key
+-    /// @sa https://json.nlohmann.me/api/basic_json/erase/
+-    size_type erase(const typename object_t::key_type& key)
+-    {
+-        // this erase only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            return m_value.object->erase(key);
+-        }
+-
+-        JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief remove element from a JSON array given an index
+-    /// @sa https://json.nlohmann.me/api/basic_json/erase/
+-    void erase(const size_type idx)
+-    {
+-        // this erase only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(idx >= size()))
+-            {
+-                JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range", *this));
+-            }
+-
+-            m_value.array->erase(m_value.array->begin() + static_cast<difference_type>(idx));
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @}
+-
+-
+-    ////////////
+-    // lookup //
+-    ////////////
+-
+-    /// @name lookup
+-    /// @{
+-
+-    /// @brief find an element in a JSON object
+-    /// @sa https://json.nlohmann.me/api/basic_json/find/
+-    template<typename KeyT>
+-    iterator find(KeyT&& key)
+-    {
+-        auto result = end();
+-
+-        if (is_object())
+-        {
+-            result.m_it.object_iterator = m_value.object->find(std::forward<KeyT>(key));
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief find an element in a JSON object
+-    /// @sa https://json.nlohmann.me/api/basic_json/find/
+-    template<typename KeyT>
+-    const_iterator find(KeyT&& key) const
+-    {
+-        auto result = cend();
+-
+-        if (is_object())
+-        {
+-            result.m_it.object_iterator = m_value.object->find(std::forward<KeyT>(key));
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief returns the number of occurrences of a key in a JSON object
+-    /// @sa https://json.nlohmann.me/api/basic_json/count/
+-    template<typename KeyT>
+-    size_type count(KeyT&& key) const
+-    {
+-        // return 0 for all nonobject types
+-        return is_object() ? m_value.object->count(std::forward<KeyT>(key)) : 0;
+-    }
+-
+-    /// @brief check the existence of an element in a JSON object
+-    /// @sa https://json.nlohmann.me/api/basic_json/contains/
+-    template < typename KeyT, typename std::enable_if <
+-                   !std::is_same<typename std::decay<KeyT>::type, json_pointer>::value, int >::type = 0 >
+-    bool contains(KeyT && key) const
+-    {
+-        return is_object() && m_value.object->find(std::forward<KeyT>(key)) != m_value.object->end();
+-    }
+-
+-    /// @brief check the existence of an element in a JSON object given a JSON pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/contains/
+-    bool contains(const json_pointer& ptr) const
+-    {
+-        return ptr.contains(this);
+-    }
+-
+-    /// @}
+-
+-
+-    ///////////////
+-    // iterators //
+-    ///////////////
+-
+-    /// @name iterators
+-    /// @{
+-
+-    /// @brief returns an iterator to the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/begin/
+-    iterator begin() noexcept
+-    {
+-        iterator result(this);
+-        result.set_begin();
+-        return result;
+-    }
+-
+-    /// @brief returns an iterator to the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/begin/
+-    const_iterator begin() const noexcept
+-    {
+-        return cbegin();
+-    }
+-
+-    /// @brief returns a const iterator to the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/cbegin/
+-    const_iterator cbegin() const noexcept
+-    {
+-        const_iterator result(this);
+-        result.set_begin();
+-        return result;
+-    }
+-
+-    /// @brief returns an iterator to one past the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/end/
+-    iterator end() noexcept
+-    {
+-        iterator result(this);
+-        result.set_end();
+-        return result;
+-    }
+-
+-    /// @brief returns an iterator to one past the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/end/
+-    const_iterator end() const noexcept
+-    {
+-        return cend();
+-    }
+-
+-    /// @brief returns an iterator to one past the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/cend/
+-    const_iterator cend() const noexcept
+-    {
+-        const_iterator result(this);
+-        result.set_end();
+-        return result;
+-    }
+-
+-    /// @brief returns an iterator to the reverse-beginning
+-    /// @sa https://json.nlohmann.me/api/basic_json/rbegin/
+-    reverse_iterator rbegin() noexcept
+-    {
+-        return reverse_iterator(end());
+-    }
+-
+-    /// @brief returns an iterator to the reverse-beginning
+-    /// @sa https://json.nlohmann.me/api/basic_json/rbegin/
+-    const_reverse_iterator rbegin() const noexcept
+-    {
+-        return crbegin();
+-    }
+-
+-    /// @brief returns an iterator to the reverse-end
+-    /// @sa https://json.nlohmann.me/api/basic_json/rend/
+-    reverse_iterator rend() noexcept
+-    {
+-        return reverse_iterator(begin());
+-    }
+-
+-    /// @brief returns an iterator to the reverse-end
+-    /// @sa https://json.nlohmann.me/api/basic_json/rend/
+-    const_reverse_iterator rend() const noexcept
+-    {
+-        return crend();
+-    }
+-
+-    /// @brief returns a const reverse iterator to the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/crbegin/
+-    const_reverse_iterator crbegin() const noexcept
+-    {
+-        return const_reverse_iterator(cend());
+-    }
+-
+-    /// @brief returns a const reverse iterator to one before the first
+-    /// @sa https://json.nlohmann.me/api/basic_json/crend/
+-    const_reverse_iterator crend() const noexcept
+-    {
+-        return const_reverse_iterator(cbegin());
+-    }
+-
+-  public:
+-    /// @brief wrapper to access iterator member functions in range-based for
+-    /// @sa https://json.nlohmann.me/api/basic_json/items/
+-    /// @deprecated This function is deprecated since 3.1.0 and will be removed in
+-    ///             version 4.0.0 of the library. Please use @ref items() instead;
+-    ///             that is, replace `json::iterator_wrapper(j)` with `j.items()`.
+-    JSON_HEDLEY_DEPRECATED_FOR(3.1.0, items())
+-    static iteration_proxy<iterator> iterator_wrapper(reference ref) noexcept
+-    {
+-        return ref.items();
+-    }
+-
+-    /// @brief wrapper to access iterator member functions in range-based for
+-    /// @sa https://json.nlohmann.me/api/basic_json/items/
+-    /// @deprecated This function is deprecated since 3.1.0 and will be removed in
+-    ///         version 4.0.0 of the library. Please use @ref items() instead;
+-    ///         that is, replace `json::iterator_wrapper(j)` with `j.items()`.
+-    JSON_HEDLEY_DEPRECATED_FOR(3.1.0, items())
+-    static iteration_proxy<const_iterator> iterator_wrapper(const_reference ref) noexcept
+-    {
+-        return ref.items();
+-    }
+-
+-    /// @brief helper to access iterator member functions in range-based for
+-    /// @sa https://json.nlohmann.me/api/basic_json/items/
+-    iteration_proxy<iterator> items() noexcept
+-    {
+-        return iteration_proxy<iterator>(*this);
+-    }
+-
+-    /// @brief helper to access iterator member functions in range-based for
+-    /// @sa https://json.nlohmann.me/api/basic_json/items/
+-    iteration_proxy<const_iterator> items() const noexcept
+-    {
+-        return iteration_proxy<const_iterator>(*this);
+-    }
+-
+-    /// @}
+-
+-
+-    //////////////
+-    // capacity //
+-    //////////////
+-
+-    /// @name capacity
+-    /// @{
+-
+-    /// @brief checks whether the container is empty.
+-    /// @sa https://json.nlohmann.me/api/basic_json/empty/
+-    bool empty() const noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::null:
+-            {
+-                // null values are empty
+-                return true;
+-            }
+-
+-            case value_t::array:
+-            {
+-                // delegate call to array_t::empty()
+-                return m_value.array->empty();
+-            }
+-
+-            case value_t::object:
+-            {
+-                // delegate call to object_t::empty()
+-                return m_value.object->empty();
+-            }
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                // all other types are nonempty
+-                return false;
+-            }
+-        }
+-    }
+-
+-    /// @brief returns the number of elements
+-    /// @sa https://json.nlohmann.me/api/basic_json/size/
+-    size_type size() const noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::null:
+-            {
+-                // null values are empty
+-                return 0;
+-            }
+-
+-            case value_t::array:
+-            {
+-                // delegate call to array_t::size()
+-                return m_value.array->size();
+-            }
+-
+-            case value_t::object:
+-            {
+-                // delegate call to object_t::size()
+-                return m_value.object->size();
+-            }
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                // all other types have size 1
+-                return 1;
+-            }
+-        }
+-    }
+-
+-    /// @brief returns the maximum possible number of elements
+-    /// @sa https://json.nlohmann.me/api/basic_json/max_size/
+-    size_type max_size() const noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::array:
+-            {
+-                // delegate call to array_t::max_size()
+-                return m_value.array->max_size();
+-            }
+-
+-            case value_t::object:
+-            {
+-                // delegate call to object_t::max_size()
+-                return m_value.object->max_size();
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                // all other types have max_size() == size()
+-                return size();
+-            }
+-        }
+-    }
+-
+-    /// @}
+-
+-
+-    ///////////////
+-    // modifiers //
+-    ///////////////
+-
+-    /// @name modifiers
+-    /// @{
+-
+-    /// @brief clears the contents
+-    /// @sa https://json.nlohmann.me/api/basic_json/clear/
+-    void clear() noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::number_integer:
+-            {
+-                m_value.number_integer = 0;
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                m_value.number_unsigned = 0;
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                m_value.number_float = 0.0;
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                m_value.boolean = false;
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                m_value.string->clear();
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                m_value.binary->clear();
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_value.array->clear();
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                m_value.object->clear();
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/push_back/
+-    void push_back(basic_json&& val)
+-    {
+-        // push_back only works for null objects or arrays
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array())))
+-        {
+-            JSON_THROW(type_error::create(308, "cannot use push_back() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an array
+-        if (is_null())
+-        {
+-            m_type = value_t::array;
+-            m_value = value_t::array;
+-            assert_invariant();
+-        }
+-
+-        // add element to array (move semantics)
+-        const auto old_capacity = m_value.array->capacity();
+-        m_value.array->push_back(std::move(val));
+-        set_parent(m_value.array->back(), old_capacity);
+-        // if val is moved from, basic_json move constructor marks it null, so we do not call the destructor
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
+-    reference operator+=(basic_json&& val)
+-    {
+-        push_back(std::move(val));
+-        return *this;
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/push_back/
+-    void push_back(const basic_json& val)
+-    {
+-        // push_back only works for null objects or arrays
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array())))
+-        {
+-            JSON_THROW(type_error::create(308, "cannot use push_back() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an array
+-        if (is_null())
+-        {
+-            m_type = value_t::array;
+-            m_value = value_t::array;
+-            assert_invariant();
+-        }
+-
+-        // add element to array
+-        const auto old_capacity = m_value.array->capacity();
+-        m_value.array->push_back(val);
+-        set_parent(m_value.array->back(), old_capacity);
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
+-    reference operator+=(const basic_json& val)
+-    {
+-        push_back(val);
+-        return *this;
+-    }
+-
+-    /// @brief add an object to an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/push_back/
+-    void push_back(const typename object_t::value_type& val)
+-    {
+-        // push_back only works for null objects or objects
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_object())))
+-        {
+-            JSON_THROW(type_error::create(308, "cannot use push_back() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value = value_t::object;
+-            assert_invariant();
+-        }
+-
+-        // add element to object
+-        auto res = m_value.object->insert(val);
+-        set_parent(res.first->second);
+-    }
+-
+-    /// @brief add an object to an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
+-    reference operator+=(const typename object_t::value_type& val)
+-    {
+-        push_back(val);
+-        return *this;
+-    }
+-
+-    /// @brief add an object to an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/push_back/
+-    void push_back(initializer_list_t init)
+-    {
+-        if (is_object() && init.size() == 2 && (*init.begin())->is_string())
+-        {
+-            basic_json&& key = init.begin()->moved_or_copied();
+-            push_back(typename object_t::value_type(
+-                          std::move(key.get_ref<string_t&>()), (init.begin() + 1)->moved_or_copied()));
+-        }
+-        else
+-        {
+-            push_back(basic_json(init));
+-        }
+-    }
+-
+-    /// @brief add an object to an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
+-    reference operator+=(initializer_list_t init)
+-    {
+-        push_back(init);
+-        return *this;
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/emplace_back/
+-    template<class... Args>
+-    reference emplace_back(Args&& ... args)
+-    {
+-        // emplace_back only works for null objects or arrays
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array())))
+-        {
+-            JSON_THROW(type_error::create(311, "cannot use emplace_back() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an array
+-        if (is_null())
+-        {
+-            m_type = value_t::array;
+-            m_value = value_t::array;
+-            assert_invariant();
+-        }
+-
+-        // add element to array (perfect forwarding)
+-        const auto old_capacity = m_value.array->capacity();
+-        m_value.array->emplace_back(std::forward<Args>(args)...);
+-        return set_parent(m_value.array->back(), old_capacity);
+-    }
+-
+-    /// @brief add an object to an object if key does not exist
+-    /// @sa https://json.nlohmann.me/api/basic_json/emplace/
+-    template<class... Args>
+-    std::pair<iterator, bool> emplace(Args&& ... args)
+-    {
+-        // emplace only works for null objects or arrays
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_object())))
+-        {
+-            JSON_THROW(type_error::create(311, "cannot use emplace() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value = value_t::object;
+-            assert_invariant();
+-        }
+-
+-        // add element to array (perfect forwarding)
+-        auto res = m_value.object->emplace(std::forward<Args>(args)...);
+-        set_parent(res.first->second);
+-
+-        // create result iterator and set iterator to the result of emplace
+-        auto it = begin();
+-        it.m_it.object_iterator = res.first;
+-
+-        // return pair of iterator and boolean
+-        return {it, res.second};
+-    }
+-
+-    /// Helper for insertion of an iterator
+-    /// @note: This uses std::distance to support GCC 4.8,
+-    ///        see https://github.com/nlohmann/json/pull/1257
+-    template<typename... Args>
+-    iterator insert_iterator(const_iterator pos, Args&& ... args)
+-    {
+-        iterator result(this);
+-        JSON_ASSERT(m_value.array != nullptr);
+-
+-        auto insert_pos = std::distance(m_value.array->begin(), pos.m_it.array_iterator);
+-        m_value.array->insert(pos.m_it.array_iterator, std::forward<Args>(args)...);
+-        result.m_it.array_iterator = m_value.array->begin() + insert_pos;
+-
+-        // This could have been written as:
+-        // result.m_it.array_iterator = m_value.array->insert(pos.m_it.array_iterator, cnt, val);
+-        // but the return value of insert is missing in GCC 4.8, so it is written this way instead.
+-
+-        set_parents();
+-        return result;
+-    }
+-
+-    /// @brief inserts element into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, const basic_json& val)
+-    {
+-        // insert only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            // check if iterator pos fits to this JSON value
+-            if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
+-            {
+-                JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-            }
+-
+-            // insert to array and return iterator
+-            return insert_iterator(pos, val);
+-        }
+-
+-        JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief inserts element into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, basic_json&& val)
+-    {
+-        return insert(pos, val);
+-    }
+-
+-    /// @brief inserts copies of element into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, size_type cnt, const basic_json& val)
+-    {
+-        // insert only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            // check if iterator pos fits to this JSON value
+-            if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
+-            {
+-                JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-            }
+-
+-            // insert to array and return iterator
+-            return insert_iterator(pos, cnt, val);
+-        }
+-
+-        JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief inserts range of elements into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, const_iterator first, const_iterator last)
+-    {
+-        // insert only works for arrays
+-        if (JSON_HEDLEY_UNLIKELY(!is_array()))
+-        {
+-            JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-        }
+-
+-        // check if iterator pos fits to this JSON value
+-        if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
+-        {
+-            JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-        }
+-
+-        // check if range iterators belong to the same JSON object
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(210, "iterators do not fit", *this));
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object == this))
+-        {
+-            JSON_THROW(invalid_iterator::create(211, "passed iterators may not belong to container", *this));
+-        }
+-
+-        // insert to array and return iterator
+-        return insert_iterator(pos, first.m_it.array_iterator, last.m_it.array_iterator);
+-    }
+-
+-    /// @brief inserts elements from initializer list into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, initializer_list_t ilist)
+-    {
+-        // insert only works for arrays
+-        if (JSON_HEDLEY_UNLIKELY(!is_array()))
+-        {
+-            JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-        }
+-
+-        // check if iterator pos fits to this JSON value
+-        if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
+-        {
+-            JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-        }
+-
+-        // insert to array and return iterator
+-        return insert_iterator(pos, ilist.begin(), ilist.end());
+-    }
+-
+-    /// @brief inserts range of elements into object
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    void insert(const_iterator first, const_iterator last)
+-    {
+-        // insert only works for objects
+-        if (JSON_HEDLEY_UNLIKELY(!is_object()))
+-        {
+-            JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-        }
+-
+-        // check if range iterators belong to the same JSON object
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(210, "iterators do not fit", *this));
+-        }
+-
+-        // passed iterators must belong to objects
+-        if (JSON_HEDLEY_UNLIKELY(!first.m_object->is_object()))
+-        {
+-            JSON_THROW(invalid_iterator::create(202, "iterators first and last must point to objects", *this));
+-        }
+-
+-        m_value.object->insert(first.m_it.object_iterator, last.m_it.object_iterator);
+-    }
+-
+-    /// @brief updates a JSON object from another object, overwriting existing keys
+-    /// @sa https://json.nlohmann.me/api/basic_json/update/
+-    void update(const_reference j, bool merge_objects = false)
+-    {
+-        update(j.begin(), j.end(), merge_objects);
+-    }
+-
+-    /// @brief updates a JSON object from another object, overwriting existing keys
+-    /// @sa https://json.nlohmann.me/api/basic_json/update/
+-    void update(const_iterator first, const_iterator last, bool merge_objects = false)
+-    {
+-        // implicitly convert null value to an empty object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value.object = create<object_t>();
+-            assert_invariant();
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(!is_object()))
+-        {
+-            JSON_THROW(type_error::create(312, "cannot use update() with " + std::string(type_name()), *this));
+-        }
+-
+-        // check if range iterators belong to the same JSON object
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(210, "iterators do not fit", *this));
+-        }
+-
+-        // passed iterators must belong to objects
+-        if (JSON_HEDLEY_UNLIKELY(!first.m_object->is_object()))
+-        {
+-            JSON_THROW(type_error::create(312, "cannot use update() with " + std::string(first.m_object->type_name()), *first.m_object));
+-        }
+-
+-        for (auto it = first; it != last; ++it)
+-        {
+-            if (merge_objects && it.value().is_object())
+-            {
+-                auto it2 = m_value.object->find(it.key());
+-                if (it2 != m_value.object->end())
+-                {
+-                    it2->second.update(it.value(), true);
+-                    continue;
+-                }
+-            }
+-            m_value.object->operator[](it.key()) = it.value();
+-#if JSON_DIAGNOSTICS
+-            m_value.object->operator[](it.key()).m_parent = this;
+-#endif
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(reference other) noexcept (
+-        std::is_nothrow_move_constructible<value_t>::value&&
+-        std::is_nothrow_move_assignable<value_t>::value&&
+-        std::is_nothrow_move_constructible<json_value>::value&&
+-        std::is_nothrow_move_assignable<json_value>::value
+-    )
+-    {
+-        std::swap(m_type, other.m_type);
+-        std::swap(m_value, other.m_value);
+-
+-        set_parents();
+-        other.set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    friend void swap(reference left, reference right) noexcept (
+-        std::is_nothrow_move_constructible<value_t>::value&&
+-        std::is_nothrow_move_assignable<value_t>::value&&
+-        std::is_nothrow_move_constructible<json_value>::value&&
+-        std::is_nothrow_move_assignable<json_value>::value
+-    )
+-    {
+-        left.swap(right);
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(array_t& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            std::swap(*(m_value.array), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(object_t& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            std::swap(*(m_value.object), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(string_t& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for strings
+-        if (JSON_HEDLEY_LIKELY(is_string()))
+-        {
+-            std::swap(*(m_value.string), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(binary_t& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for strings
+-        if (JSON_HEDLEY_LIKELY(is_binary()))
+-        {
+-            std::swap(*(m_value.binary), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(typename binary_t::container_type& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for strings
+-        if (JSON_HEDLEY_LIKELY(is_binary()))
+-        {
+-            std::swap(*(m_value.binary), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @}
+-
+-  public:
+-    //////////////////////////////////////////
+-    // lexicographical comparison operators //
+-    //////////////////////////////////////////
+-
+-    /// @name lexicographical comparison operators
+-    /// @{
+-
+-    /// @brief comparison: equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
+-    friend bool operator==(const_reference lhs, const_reference rhs) noexcept
+-    {
+-#ifdef __GNUC__
+-#pragma GCC diagnostic push
+-#pragma GCC diagnostic ignored "-Wfloat-equal"
+-#endif
+-        const auto lhs_type = lhs.type();
+-        const auto rhs_type = rhs.type();
+-
+-        if (lhs_type == rhs_type)
+-        {
+-            switch (lhs_type)
+-            {
+-                case value_t::array:
+-                    return *lhs.m_value.array == *rhs.m_value.array;
+-
+-                case value_t::object:
+-                    return *lhs.m_value.object == *rhs.m_value.object;
+-
+-                case value_t::null:
+-                    return true;
+-
+-                case value_t::string:
+-                    return *lhs.m_value.string == *rhs.m_value.string;
+-
+-                case value_t::boolean:
+-                    return lhs.m_value.boolean == rhs.m_value.boolean;
+-
+-                case value_t::number_integer:
+-                    return lhs.m_value.number_integer == rhs.m_value.number_integer;
+-
+-                case value_t::number_unsigned:
+-                    return lhs.m_value.number_unsigned == rhs.m_value.number_unsigned;
+-
+-                case value_t::number_float:
+-                    return lhs.m_value.number_float == rhs.m_value.number_float;
+-
+-                case value_t::binary:
+-                    return *lhs.m_value.binary == *rhs.m_value.binary;
+-
+-                case value_t::discarded:
+-                default:
+-                    return false;
+-            }
+-        }
+-        else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_float)
+-        {
+-            return static_cast<number_float_t>(lhs.m_value.number_integer) == rhs.m_value.number_float;
+-        }
+-        else if (lhs_type == value_t::number_float && rhs_type == value_t::number_integer)
+-        {
+-            return lhs.m_value.number_float == static_cast<number_float_t>(rhs.m_value.number_integer);
+-        }
+-        else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_float)
+-        {
+-            return static_cast<number_float_t>(lhs.m_value.number_unsigned) == rhs.m_value.number_float;
+-        }
+-        else if (lhs_type == value_t::number_float && rhs_type == value_t::number_unsigned)
+-        {
+-            return lhs.m_value.number_float == static_cast<number_float_t>(rhs.m_value.number_unsigned);
+-        }
+-        else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_integer)
+-        {
+-            return static_cast<number_integer_t>(lhs.m_value.number_unsigned) == rhs.m_value.number_integer;
+-        }
+-        else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_unsigned)
+-        {
+-            return lhs.m_value.number_integer == static_cast<number_integer_t>(rhs.m_value.number_unsigned);
+-        }
+-
+-        return false;
+-#ifdef __GNUC__
+-#pragma GCC diagnostic pop
+-#endif
+-    }
+-
+-    /// @brief comparison: equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator==(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs == basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator==(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) == rhs;
+-    }
+-
+-    /// @brief comparison: not equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ne/
+-    friend bool operator!=(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        return !(lhs == rhs);
+-    }
+-
+-    /// @brief comparison: not equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ne/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator!=(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs != basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: not equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ne/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator!=(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) != rhs;
+-    }
+-
+-    /// @brief comparison: less than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_lt/
+-    friend bool operator<(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        const auto lhs_type = lhs.type();
+-        const auto rhs_type = rhs.type();
+-
+-        if (lhs_type == rhs_type)
+-        {
+-            switch (lhs_type)
+-            {
+-                case value_t::array:
+-                    // note parentheses are necessary, see
+-                    // https://github.com/nlohmann/json/issues/1530
+-                    return (*lhs.m_value.array) < (*rhs.m_value.array);
+-
+-                case value_t::object:
+-                    return (*lhs.m_value.object) < (*rhs.m_value.object);
+-
+-                case value_t::null:
+-                    return false;
+-
+-                case value_t::string:
+-                    return (*lhs.m_value.string) < (*rhs.m_value.string);
+-
+-                case value_t::boolean:
+-                    return (lhs.m_value.boolean) < (rhs.m_value.boolean);
+-
+-                case value_t::number_integer:
+-                    return (lhs.m_value.number_integer) < (rhs.m_value.number_integer);
+-
+-                case value_t::number_unsigned:
+-                    return (lhs.m_value.number_unsigned) < (rhs.m_value.number_unsigned);
+-
+-                case value_t::number_float:
+-                    return (lhs.m_value.number_float) < (rhs.m_value.number_float);
+-
+-                case value_t::binary:
+-                    return (*lhs.m_value.binary) < (*rhs.m_value.binary);
+-
+-                case value_t::discarded:
+-                default:
+-                    return false;
+-            }
+-        }
+-        else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_float)
+-        {
+-            return static_cast<number_float_t>(lhs.m_value.number_integer) < rhs.m_value.number_float;
+-        }
+-        else if (lhs_type == value_t::number_float && rhs_type == value_t::number_integer)
+-        {
+-            return lhs.m_value.number_float < static_cast<number_float_t>(rhs.m_value.number_integer);
+-        }
+-        else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_float)
+-        {
+-            return static_cast<number_float_t>(lhs.m_value.number_unsigned) < rhs.m_value.number_float;
+-        }
+-        else if (lhs_type == value_t::number_float && rhs_type == value_t::number_unsigned)
+-        {
+-            return lhs.m_value.number_float < static_cast<number_float_t>(rhs.m_value.number_unsigned);
+-        }
+-        else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_unsigned)
+-        {
+-            return lhs.m_value.number_integer < static_cast<number_integer_t>(rhs.m_value.number_unsigned);
+-        }
+-        else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_integer)
+-        {
+-            return static_cast<number_integer_t>(lhs.m_value.number_unsigned) < rhs.m_value.number_integer;
+-        }
+-
+-        // We only reach this line if we cannot compare values. In that case,
+-        // we compare types. Note we have to call the operator explicitly,
+-        // because MSVC has problems otherwise.
+-        return operator<(lhs_type, rhs_type);
+-    }
+-
+-    /// @brief comparison: less than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_lt/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator<(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs < basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: less than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_lt/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator<(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) < rhs;
+-    }
+-
+-    /// @brief comparison: less than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_le/
+-    friend bool operator<=(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        return !(rhs < lhs);
+-    }
+-
+-    /// @brief comparison: less than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_le/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator<=(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs <= basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: less than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_le/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator<=(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) <= rhs;
+-    }
+-
+-    /// @brief comparison: greater than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gt/
+-    friend bool operator>(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        return !(lhs <= rhs);
+-    }
+-
+-    /// @brief comparison: greater than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gt/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator>(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs > basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: greater than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gt/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator>(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) > rhs;
+-    }
+-
+-    /// @brief comparison: greater than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ge/
+-    friend bool operator>=(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        return !(lhs < rhs);
+-    }
+-
+-    /// @brief comparison: greater than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ge/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator>=(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs >= basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: greater than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ge/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator>=(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) >= rhs;
+-    }
+-
+-    /// @}
+-
+-    ///////////////////
+-    // serialization //
+-    ///////////////////
+-
+-    /// @name serialization
+-    /// @{
+-#ifndef JSON_NO_IO
+-    /// @brief serialize to stream
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ltlt/
+-    friend std::ostream& operator<<(std::ostream& o, const basic_json& j)
+-    {
+-        // read width member and use it as indentation parameter if nonzero
+-        const bool pretty_print = o.width() > 0;
+-        const auto indentation = pretty_print ? o.width() : 0;
+-
+-        // reset width to 0 for subsequent calls to this stream
+-        o.width(0);
+-
+-        // do the actual serialization
+-        serializer s(detail::output_adapter<char>(o), o.fill());
+-        s.dump(j, pretty_print, false, static_cast<unsigned int>(indentation));
+-        return o;
+-    }
+-
+-    /// @brief serialize to stream
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ltlt/
+-    /// @deprecated This function is deprecated since 3.0.0 and will be removed in
+-    ///             version 4.0.0 of the library. Please use
+-    ///             operator<<(std::ostream&, const basic_json&) instead; that is,
+-    ///             replace calls like `j >> o;` with `o << j;`.
+-    JSON_HEDLEY_DEPRECATED_FOR(3.0.0, operator<<(std::ostream&, const basic_json&))
+-    friend std::ostream& operator>>(const basic_json& j, std::ostream& o)
+-    {
+-        return o << j;
+-    }
+-#endif  // JSON_NO_IO
+-    /// @}
+-
+-
+-    /////////////////////
+-    // deserialization //
+-    /////////////////////
+-
+-    /// @name deserialization
+-    /// @{
+-
+-    /// @brief deserialize from a compatible input
+-    /// @sa https://json.nlohmann.me/api/basic_json/parse/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json parse(InputType&& i,
+-                            const parser_callback_t cb = nullptr,
+-                            const bool allow_exceptions = true,
+-                            const bool ignore_comments = false)
+-    {
+-        basic_json result;
+-        parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result);
+-        return result;
+-    }
+-
+-    /// @brief deserialize from a pair of character iterators
+-    /// @sa https://json.nlohmann.me/api/basic_json/parse/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json parse(IteratorType first,
+-                            IteratorType last,
+-                            const parser_callback_t cb = nullptr,
+-                            const bool allow_exceptions = true,
+-                            const bool ignore_comments = false)
+-    {
+-        basic_json result;
+-        parser(detail::input_adapter(std::move(first), std::move(last)), cb, allow_exceptions, ignore_comments).parse(true, result);
+-        return result;
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, parse(ptr, ptr + len))
+-    static basic_json parse(detail::span_input_adapter&& i,
+-                            const parser_callback_t cb = nullptr,
+-                            const bool allow_exceptions = true,
+-                            const bool ignore_comments = false)
+-    {
+-        basic_json result;
+-        parser(i.get(), cb, allow_exceptions, ignore_comments).parse(true, result);
+-        return result;
+-    }
+-
+-    /// @brief check if the input is valid JSON
+-    /// @sa https://json.nlohmann.me/api/basic_json/accept/
+-    template<typename InputType>
+-    static bool accept(InputType&& i,
+-                       const bool ignore_comments = false)
+-    {
+-        return parser(detail::input_adapter(std::forward<InputType>(i)), nullptr, false, ignore_comments).accept(true);
+-    }
+-
+-    /// @brief check if the input is valid JSON
+-    /// @sa https://json.nlohmann.me/api/basic_json/accept/
+-    template<typename IteratorType>
+-    static bool accept(IteratorType first, IteratorType last,
+-                       const bool ignore_comments = false)
+-    {
+-        return parser(detail::input_adapter(std::move(first), std::move(last)), nullptr, false, ignore_comments).accept(true);
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, accept(ptr, ptr + len))
+-    static bool accept(detail::span_input_adapter&& i,
+-                       const bool ignore_comments = false)
+-    {
+-        return parser(i.get(), nullptr, false, ignore_comments).accept(true);
+-    }
+-
+-    /// @brief generate SAX events
+-    /// @sa https://json.nlohmann.me/api/basic_json/sax_parse/
+-    template <typename InputType, typename SAX>
+-    JSON_HEDLEY_NON_NULL(2)
+-    static bool sax_parse(InputType&& i, SAX* sax,
+-                          input_format_t format = input_format_t::json,
+-                          const bool strict = true,
+-                          const bool ignore_comments = false)
+-    {
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        return format == input_format_t::json
+-               ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
+-               : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict);
+-    }
+-
+-    /// @brief generate SAX events
+-    /// @sa https://json.nlohmann.me/api/basic_json/sax_parse/
+-    template<class IteratorType, class SAX>
+-    JSON_HEDLEY_NON_NULL(3)
+-    static bool sax_parse(IteratorType first, IteratorType last, SAX* sax,
+-                          input_format_t format = input_format_t::json,
+-                          const bool strict = true,
+-                          const bool ignore_comments = false)
+-    {
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        return format == input_format_t::json
+-               ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
+-               : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict);
+-    }
+-
+-    /// @brief generate SAX events
+-    /// @sa https://json.nlohmann.me/api/basic_json/sax_parse/
+-    /// @deprecated This function is deprecated since 3.8.0 and will be removed in
+-    ///             version 4.0.0 of the library. Please use
+-    ///             sax_parse(ptr, ptr + len) instead.
+-    template <typename SAX>
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, sax_parse(ptr, ptr + len, ...))
+-    JSON_HEDLEY_NON_NULL(2)
+-    static bool sax_parse(detail::span_input_adapter&& i, SAX* sax,
+-                          input_format_t format = input_format_t::json,
+-                          const bool strict = true,
+-                          const bool ignore_comments = false)
+-    {
+-        auto ia = i.get();
+-        return format == input_format_t::json
+-               // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-               ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
+-               // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-               : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict);
+-    }
+-#ifndef JSON_NO_IO
+-    /// @brief deserialize from stream
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gtgt/
+-    /// @deprecated This stream operator is deprecated since 3.0.0 and will be removed in
+-    ///             version 4.0.0 of the library. Please use
+-    ///             operator>>(std::istream&, basic_json&) instead; that is,
+-    ///             replace calls like `j << i;` with `i >> j;`.
+-    JSON_HEDLEY_DEPRECATED_FOR(3.0.0, operator>>(std::istream&, basic_json&))
+-    friend std::istream& operator<<(basic_json& j, std::istream& i)
+-    {
+-        return operator>>(i, j);
+-    }
+-
+-    /// @brief deserialize from stream
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gtgt/
+-    friend std::istream& operator>>(std::istream& i, basic_json& j)
+-    {
+-        parser(detail::input_adapter(i)).parse(false, j);
+-        return i;
+-    }
+-#endif  // JSON_NO_IO
+-    /// @}
+-
+-    ///////////////////////////
+-    // convenience functions //
+-    ///////////////////////////
+-
+-    /// @brief return the type as string
+-    /// @sa https://json.nlohmann.me/api/basic_json/type_name/
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    const char* type_name() const noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::null:
+-                return "null";
+-            case value_t::object:
+-                return "object";
+-            case value_t::array:
+-                return "array";
+-            case value_t::string:
+-                return "string";
+-            case value_t::boolean:
+-                return "boolean";
+-            case value_t::binary:
+-                return "binary";
+-            case value_t::discarded:
+-                return "discarded";
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            default:
+-                return "number";
+-        }
+-    }
+-
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    //////////////////////
+-    // member variables //
+-    //////////////////////
+-
+-    /// the type of the current element
+-    value_t m_type = value_t::null;
+-
+-    /// the value of the current element
+-    json_value m_value = {};
+-
+-#if JSON_DIAGNOSTICS
+-    /// a pointer to a parent value (for debugging purposes)
+-    basic_json* m_parent = nullptr;
+-#endif
+-
+-    //////////////////////////////////////////
+-    // binary serialization/deserialization //
+-    //////////////////////////////////////////
+-
+-    /// @name binary serialization/deserialization support
+-    /// @{
+-
+-  public:
+-    /// @brief create a CBOR serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
+-    static std::vector<std::uint8_t> to_cbor(const basic_json& j)
+-    {
+-        std::vector<std::uint8_t> result;
+-        to_cbor(j, result);
+-        return result;
+-    }
+-
+-    /// @brief create a CBOR serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
+-    static void to_cbor(const basic_json& j, detail::output_adapter<std::uint8_t> o)
+-    {
+-        binary_writer<std::uint8_t>(o).write_cbor(j);
+-    }
+-
+-    /// @brief create a CBOR serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
+-    static void to_cbor(const basic_json& j, detail::output_adapter<char> o)
+-    {
+-        binary_writer<char>(o).write_cbor(j);
+-    }
+-
+-    /// @brief create a MessagePack serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_msgpack/
+-    static std::vector<std::uint8_t> to_msgpack(const basic_json& j)
+-    {
+-        std::vector<std::uint8_t> result;
+-        to_msgpack(j, result);
+-        return result;
+-    }
+-
+-    /// @brief create a MessagePack serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_msgpack/
+-    static void to_msgpack(const basic_json& j, detail::output_adapter<std::uint8_t> o)
+-    {
+-        binary_writer<std::uint8_t>(o).write_msgpack(j);
+-    }
+-
+-    /// @brief create a MessagePack serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_msgpack/
+-    static void to_msgpack(const basic_json& j, detail::output_adapter<char> o)
+-    {
+-        binary_writer<char>(o).write_msgpack(j);
+-    }
+-
+-    /// @brief create a UBJSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_ubjson/
+-    static std::vector<std::uint8_t> to_ubjson(const basic_json& j,
+-            const bool use_size = false,
+-            const bool use_type = false)
+-    {
+-        std::vector<std::uint8_t> result;
+-        to_ubjson(j, result, use_size, use_type);
+-        return result;
+-    }
+-
+-    /// @brief create a UBJSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_ubjson/
+-    static void to_ubjson(const basic_json& j, detail::output_adapter<std::uint8_t> o,
+-                          const bool use_size = false, const bool use_type = false)
+-    {
+-        binary_writer<std::uint8_t>(o).write_ubjson(j, use_size, use_type);
+-    }
+-
+-    /// @brief create a UBJSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_ubjson/
+-    static void to_ubjson(const basic_json& j, detail::output_adapter<char> o,
+-                          const bool use_size = false, const bool use_type = false)
+-    {
+-        binary_writer<char>(o).write_ubjson(j, use_size, use_type);
+-    }
+-
+-    /// @brief create a BSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_bson/
+-    static std::vector<std::uint8_t> to_bson(const basic_json& j)
+-    {
+-        std::vector<std::uint8_t> result;
+-        to_bson(j, result);
+-        return result;
+-    }
+-
+-    /// @brief create a BSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_bson/
+-    static void to_bson(const basic_json& j, detail::output_adapter<std::uint8_t> o)
+-    {
+-        binary_writer<std::uint8_t>(o).write_bson(j);
+-    }
+-
+-    /// @brief create a BSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_bson/
+-    static void to_bson(const basic_json& j, detail::output_adapter<char> o)
+-    {
+-        binary_writer<char>(o).write_bson(j);
+-    }
+-
+-    /// @brief create a JSON value from an input in CBOR format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_cbor/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_cbor(InputType&& i,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true,
+-                                const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, strict, tag_handler);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in CBOR format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_cbor/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_cbor(IteratorType first, IteratorType last,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true,
+-                                const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, strict, tag_handler);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    template<typename T>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_cbor(ptr, ptr + len))
+-    static basic_json from_cbor(const T* ptr, std::size_t len,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true,
+-                                const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        return from_cbor(ptr, ptr + len, strict, allow_exceptions, tag_handler);
+-    }
+-
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_cbor(ptr, ptr + len))
+-    static basic_json from_cbor(detail::span_input_adapter&& i,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true,
+-                                const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = i.get();
+-        // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, strict, tag_handler);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in MessagePack format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_msgpack/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_msgpack(InputType&& i,
+-                                   const bool strict = true,
+-                                   const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::msgpack, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in MessagePack format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_msgpack/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_msgpack(IteratorType first, IteratorType last,
+-                                   const bool strict = true,
+-                                   const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::msgpack, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    template<typename T>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_msgpack(ptr, ptr + len))
+-    static basic_json from_msgpack(const T* ptr, std::size_t len,
+-                                   const bool strict = true,
+-                                   const bool allow_exceptions = true)
+-    {
+-        return from_msgpack(ptr, ptr + len, strict, allow_exceptions);
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_msgpack(ptr, ptr + len))
+-    static basic_json from_msgpack(detail::span_input_adapter&& i,
+-                                   const bool strict = true,
+-                                   const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = i.get();
+-        // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::msgpack, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in UBJSON format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_ubjson/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_ubjson(InputType&& i,
+-                                  const bool strict = true,
+-                                  const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::ubjson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in UBJSON format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_ubjson/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_ubjson(IteratorType first, IteratorType last,
+-                                  const bool strict = true,
+-                                  const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::ubjson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    template<typename T>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_ubjson(ptr, ptr + len))
+-    static basic_json from_ubjson(const T* ptr, std::size_t len,
+-                                  const bool strict = true,
+-                                  const bool allow_exceptions = true)
+-    {
+-        return from_ubjson(ptr, ptr + len, strict, allow_exceptions);
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_ubjson(ptr, ptr + len))
+-    static basic_json from_ubjson(detail::span_input_adapter&& i,
+-                                  const bool strict = true,
+-                                  const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = i.get();
+-        // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::ubjson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in BSON format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_bson/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_bson(InputType&& i,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::bson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in BSON format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_bson/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_bson(IteratorType first, IteratorType last,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::bson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    template<typename T>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_bson(ptr, ptr + len))
+-    static basic_json from_bson(const T* ptr, std::size_t len,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true)
+-    {
+-        return from_bson(ptr, ptr + len, strict, allow_exceptions);
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_bson(ptr, ptr + len))
+-    static basic_json from_bson(detail::span_input_adapter&& i,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = i.get();
+-        // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::bson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-    /// @}
+-
+-    //////////////////////////
+-    // JSON Pointer support //
+-    //////////////////////////
+-
+-    /// @name JSON Pointer functions
+-    /// @{
+-
+-    /// @brief access specified element via JSON Pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    reference operator[](const json_pointer& ptr)
+-    {
+-        return ptr.get_unchecked(this);
+-    }
+-
+-    /// @brief access specified element via JSON Pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    const_reference operator[](const json_pointer& ptr) const
+-    {
+-        return ptr.get_unchecked(this);
+-    }
+-
+-    /// @brief access specified element via JSON Pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    reference at(const json_pointer& ptr)
+-    {
+-        return ptr.get_checked(this);
+-    }
+-
+-    /// @brief access specified element via JSON Pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    const_reference at(const json_pointer& ptr) const
+-    {
+-        return ptr.get_checked(this);
+-    }
+-
+-    /// @brief return flattened JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/flatten/
+-    basic_json flatten() const
+-    {
+-        basic_json result(value_t::object);
+-        json_pointer::flatten("", *this, result);
+-        return result;
+-    }
+-
+-    /// @brief unflatten a previously flattened JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/unflatten/
+-    basic_json unflatten() const
+-    {
+-        return json_pointer::unflatten(*this);
+-    }
+-
+-    /// @}
+-
+-    //////////////////////////
+-    // JSON Patch functions //
+-    //////////////////////////
+-
+-    /// @name JSON Patch functions
+-    /// @{
+-
+-    /// @brief applies a JSON patch
+-    /// @sa https://json.nlohmann.me/api/basic_json/patch/
+-    basic_json patch(const basic_json& json_patch) const
+-    {
+-        // make a working copy to apply the patch to
+-        basic_json result = *this;
+-
+-        // the valid JSON Patch operations
+-        enum class patch_operations {add, remove, replace, move, copy, test, invalid};
+-
+-        const auto get_op = [](const std::string & op)
+-        {
+-            if (op == "add")
+-            {
+-                return patch_operations::add;
+-            }
+-            if (op == "remove")
+-            {
+-                return patch_operations::remove;
+-            }
+-            if (op == "replace")
+-            {
+-                return patch_operations::replace;
+-            }
+-            if (op == "move")
+-            {
+-                return patch_operations::move;
+-            }
+-            if (op == "copy")
+-            {
+-                return patch_operations::copy;
+-            }
+-            if (op == "test")
+-            {
+-                return patch_operations::test;
+-            }
+-
+-            return patch_operations::invalid;
+-        };
+-
+-        // wrapper for "add" operation; add value at ptr
+-        const auto operation_add = [&result](json_pointer & ptr, basic_json val)
+-        {
+-            // adding to the root of the target document means replacing it
+-            if (ptr.empty())
+-            {
+-                result = val;
+-                return;
+-            }
+-
+-            // make sure the top element of the pointer exists
+-            json_pointer top_pointer = ptr.top();
+-            if (top_pointer != ptr)
+-            {
+-                result.at(top_pointer);
+-            }
+-
+-            // get reference to parent of JSON pointer ptr
+-            const auto last_path = ptr.back();
+-            ptr.pop_back();
+-            basic_json& parent = result[ptr];
+-
+-            switch (parent.m_type)
+-            {
+-                case value_t::null:
+-                case value_t::object:
+-                {
+-                    // use operator[] to add value
+-                    parent[last_path] = val;
+-                    break;
+-                }
+-
+-                case value_t::array:
+-                {
+-                    if (last_path == "-")
+-                    {
+-                        // special case: append to back
+-                        parent.push_back(val);
+-                    }
+-                    else
+-                    {
+-                        const auto idx = json_pointer::array_index(last_path);
+-                        if (JSON_HEDLEY_UNLIKELY(idx > parent.size()))
+-                        {
+-                            // avoid undefined behavior
+-                            JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range", parent));
+-                        }
+-
+-                        // default case: insert add offset
+-                        parent.insert(parent.begin() + static_cast<difference_type>(idx), val);
+-                    }
+-                    break;
+-                }
+-
+-                // if there exists a parent it cannot be primitive
+-                case value_t::string: // LCOV_EXCL_LINE
+-                case value_t::boolean: // LCOV_EXCL_LINE
+-                case value_t::number_integer: // LCOV_EXCL_LINE
+-                case value_t::number_unsigned: // LCOV_EXCL_LINE
+-                case value_t::number_float: // LCOV_EXCL_LINE
+-                case value_t::binary: // LCOV_EXCL_LINE
+-                case value_t::discarded: // LCOV_EXCL_LINE
+-                default:            // LCOV_EXCL_LINE
+-                    JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-            }
+-        };
+-
+-        // wrapper for "remove" operation; remove value at ptr
+-        const auto operation_remove = [this, &result](json_pointer & ptr)
+-        {
+-            // get reference to parent of JSON pointer ptr
+-            const auto last_path = ptr.back();
+-            ptr.pop_back();
+-            basic_json& parent = result.at(ptr);
+-
+-            // remove child
+-            if (parent.is_object())
+-            {
+-                // perform range check
+-                auto it = parent.find(last_path);
+-                if (JSON_HEDLEY_LIKELY(it != parent.end()))
+-                {
+-                    parent.erase(it);
+-                }
+-                else
+-                {
+-                    JSON_THROW(out_of_range::create(403, "key '" + last_path + "' not found", *this));
+-                }
+-            }
+-            else if (parent.is_array())
+-            {
+-                // note erase performs range check
+-                parent.erase(json_pointer::array_index(last_path));
+-            }
+-        };
+-
+-        // type check: top level value must be an array
+-        if (JSON_HEDLEY_UNLIKELY(!json_patch.is_array()))
+-        {
+-            JSON_THROW(parse_error::create(104, 0, "JSON patch must be an array of objects", json_patch));
+-        }
+-
+-        // iterate and apply the operations
+-        for (const auto& val : json_patch)
+-        {
+-            // wrapper to get a value for an operation
+-            const auto get_value = [&val](const std::string & op,
+-                                          const std::string & member,
+-                                          bool string_type) -> basic_json &
+-            {
+-                // find value
+-                auto it = val.m_value.object->find(member);
+-
+-                // context-sensitive error message
+-                const auto error_msg = (op == "op") ? "operation" : "operation '" + op + "'";
+-
+-                // check if desired value is present
+-                if (JSON_HEDLEY_UNLIKELY(it == val.m_value.object->end()))
+-                {
+-                    // NOLINTNEXTLINE(performance-inefficient-string-concatenation)
+-                    JSON_THROW(parse_error::create(105, 0, error_msg + " must have member '" + member + "'", val));
+-                }
+-
+-                // check if result is of type string
+-                if (JSON_HEDLEY_UNLIKELY(string_type && !it->second.is_string()))
+-                {
+-                    // NOLINTNEXTLINE(performance-inefficient-string-concatenation)
+-                    JSON_THROW(parse_error::create(105, 0, error_msg + " must have string member '" + member + "'", val));
+-                }
+-
+-                // no error: return value
+-                return it->second;
+-            };
+-
+-            // type check: every element of the array must be an object
+-            if (JSON_HEDLEY_UNLIKELY(!val.is_object()))
+-            {
+-                JSON_THROW(parse_error::create(104, 0, "JSON patch must be an array of objects", val));
+-            }
+-
+-            // collect mandatory members
+-            const auto op = get_value("op", "op", true).template get<std::string>();
+-            const auto path = get_value(op, "path", true).template get<std::string>();
+-            json_pointer ptr(path);
+-
+-            switch (get_op(op))
+-            {
+-                case patch_operations::add:
+-                {
+-                    operation_add(ptr, get_value("add", "value", false));
+-                    break;
+-                }
+-
+-                case patch_operations::remove:
+-                {
+-                    operation_remove(ptr);
+-                    break;
+-                }
+-
+-                case patch_operations::replace:
+-                {
+-                    // the "path" location must exist - use at()
+-                    result.at(ptr) = get_value("replace", "value", false);
+-                    break;
+-                }
+-
+-                case patch_operations::move:
+-                {
+-                    const auto from_path = get_value("move", "from", true).template get<std::string>();
+-                    json_pointer from_ptr(from_path);
+-
+-                    // the "from" location must exist - use at()
+-                    basic_json v = result.at(from_ptr);
+-
+-                    // The move operation is functionally identical to a
+-                    // "remove" operation on the "from" location, followed
+-                    // immediately by an "add" operation at the target
+-                    // location with the value that was just removed.
+-                    operation_remove(from_ptr);
+-                    operation_add(ptr, v);
+-                    break;
+-                }
+-
+-                case patch_operations::copy:
+-                {
+-                    const auto from_path = get_value("copy", "from", true).template get<std::string>();
+-                    const json_pointer from_ptr(from_path);
+-
+-                    // the "from" location must exist - use at()
+-                    basic_json v = result.at(from_ptr);
+-
+-                    // The copy is functionally identical to an "add"
+-                    // operation at the target location using the value
+-                    // specified in the "from" member.
+-                    operation_add(ptr, v);
+-                    break;
+-                }
+-
+-                case patch_operations::test:
+-                {
+-                    bool success = false;
+-                    JSON_TRY
+-                    {
+-                        // check if "value" matches the one at "path"
+-                        // the "path" location must exist - use at()
+-                        success = (result.at(ptr) == get_value("test", "value", false));
+-                    }
+-                    JSON_INTERNAL_CATCH (out_of_range&)
+-                    {
+-                        // ignore out of range errors: success remains false
+-                    }
+-
+-                    // throw an exception if test fails
+-                    if (JSON_HEDLEY_UNLIKELY(!success))
+-                    {
+-                        JSON_THROW(other_error::create(501, "unsuccessful: " + val.dump(), val));
+-                    }
+-
+-                    break;
+-                }
+-
+-                case patch_operations::invalid:
+-                default:
+-                {
+-                    // op must be "add", "remove", "replace", "move", "copy", or
+-                    // "test"
+-                    JSON_THROW(parse_error::create(105, 0, "operation value '" + op + "' is invalid", val));
+-                }
+-            }
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief creates a diff as a JSON patch
+-    /// @sa https://json.nlohmann.me/api/basic_json/diff/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json diff(const basic_json& source, const basic_json& target,
+-                           const std::string& path = "")
+-    {
+-        // the patch
+-        basic_json result(value_t::array);
+-
+-        // if the values are the same, return empty patch
+-        if (source == target)
+-        {
+-            return result;
+-        }
+-
+-        if (source.type() != target.type())
+-        {
+-            // different types: replace value
+-            result.push_back(
+-            {
+-                {"op", "replace"}, {"path", path}, {"value", target}
+-            });
+-            return result;
+-        }
+-
+-        switch (source.type())
+-        {
+-            case value_t::array:
+-            {
+-                // first pass: traverse common elements
+-                std::size_t i = 0;
+-                while (i < source.size() && i < target.size())
+-                {
+-                    // recursive call to compare array values at index i
+-                    auto temp_diff = diff(source[i], target[i], path + "/" + std::to_string(i));
+-                    result.insert(result.end(), temp_diff.begin(), temp_diff.end());
+-                    ++i;
+-                }
+-
+-                // We now reached the end of at least one array
+-                // in a second pass, traverse the remaining elements
+-
+-                // remove my remaining elements
+-                const auto end_index = static_cast<difference_type>(result.size());
+-                while (i < source.size())
+-                {
+-                    // add operations in reverse order to avoid invalid
+-                    // indices
+-                    result.insert(result.begin() + end_index, object(
+-                    {
+-                        {"op", "remove"},
+-                        {"path", path + "/" + std::to_string(i)}
+-                    }));
+-                    ++i;
+-                }
+-
+-                // add other remaining elements
+-                while (i < target.size())
+-                {
+-                    result.push_back(
+-                    {
+-                        {"op", "add"},
+-                        {"path", path + "/-"},
+-                        {"value", target[i]}
+-                    });
+-                    ++i;
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                // first pass: traverse this object's elements
+-                for (auto it = source.cbegin(); it != source.cend(); ++it)
+-                {
+-                    // escape the key name to be used in a JSON patch
+-                    const auto path_key = path + "/" + detail::escape(it.key());
+-
+-                    if (target.find(it.key()) != target.end())
+-                    {
+-                        // recursive call to compare object values at key it
+-                        auto temp_diff = diff(it.value(), target[it.key()], path_key);
+-                        result.insert(result.end(), temp_diff.begin(), temp_diff.end());
+-                    }
+-                    else
+-                    {
+-                        // found a key that is not in o -> remove it
+-                        result.push_back(object(
+-                        {
+-                            {"op", "remove"}, {"path", path_key}
+-                        }));
+-                    }
+-                }
+-
+-                // second pass: traverse other object's elements
+-                for (auto it = target.cbegin(); it != target.cend(); ++it)
+-                {
+-                    if (source.find(it.key()) == source.end())
+-                    {
+-                        // found a key that is not in this -> add it
+-                        const auto path_key = path + "/" + detail::escape(it.key());
+-                        result.push_back(
+-                        {
+-                            {"op", "add"}, {"path", path_key},
+-                            {"value", it.value()}
+-                        });
+-                    }
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                // both primitive type: replace value
+-                result.push_back(
+-                {
+-                    {"op", "replace"}, {"path", path}, {"value", target}
+-                });
+-                break;
+-            }
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @}
+-
+-    ////////////////////////////////
+-    // JSON Merge Patch functions //
+-    ////////////////////////////////
+-
+-    /// @name JSON Merge Patch functions
+-    /// @{
+-
+-    /// @brief applies a JSON Merge Patch
+-    /// @sa https://json.nlohmann.me/api/basic_json/merge_patch/
+-    void merge_patch(const basic_json& apply_patch)
+-    {
+-        if (apply_patch.is_object())
+-        {
+-            if (!is_object())
+-            {
+-                *this = object();
+-            }
+-            for (auto it = apply_patch.begin(); it != apply_patch.end(); ++it)
+-            {
+-                if (it.value().is_null())
+-                {
+-                    erase(it.key());
+-                }
+-                else
+-                {
+-                    operator[](it.key()).merge_patch(it.value());
+-                }
+-            }
+-        }
+-        else
+-        {
+-            *this = apply_patch;
+-        }
+-    }
+-
+-    /// @}
+-};
+-
+-/// @brief user-defined to_string function for JSON values
+-/// @sa https://json.nlohmann.me/api/basic_json/to_string/
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-std::string to_string(const NLOHMANN_BASIC_JSON_TPL& j)
+-{
+-    return j.dump();
+-}
+-
+-} // namespace nlohmann
+-
+-///////////////////////
+-// nonmember support //
+-///////////////////////
+-
+-namespace std // NOLINT(cert-dcl58-cpp)
+-{
+-
+-/// @brief hash value for JSON objects
+-/// @sa https://json.nlohmann.me/api/basic_json/std_hash/
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-struct hash<nlohmann::NLOHMANN_BASIC_JSON_TPL>
+-{
+-    std::size_t operator()(const nlohmann::NLOHMANN_BASIC_JSON_TPL& j) const
+-    {
+-        return nlohmann::detail::hash(j);
+-    }
+-};
+-
+-// specialization for std::less<value_t>
+-template<>
+-struct less< ::nlohmann::detail::value_t> // do not remove the space after '<', see https://github.com/nlohmann/json/pull/679
+-{
+-    /*!
+-    @brief compare two value_t enum values
+-    @since version 3.0.0
+-    */
+-    bool operator()(nlohmann::detail::value_t lhs,
+-                    nlohmann::detail::value_t rhs) const noexcept
+-    {
+-        return nlohmann::detail::operator<(lhs, rhs);
+-    }
+-};
+-
+-// C++20 prohibit function specialization in the std namespace.
+-#ifndef JSON_HAS_CPP_20
+-
+-/// @brief exchanges the values of two JSON objects
+-/// @sa https://json.nlohmann.me/api/basic_json/std_swap/
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-inline void swap(nlohmann::NLOHMANN_BASIC_JSON_TPL& j1, nlohmann::NLOHMANN_BASIC_JSON_TPL& j2) noexcept(  // NOLINT(readability-inconsistent-declaration-parameter-name)
+-    is_nothrow_move_constructible<nlohmann::NLOHMANN_BASIC_JSON_TPL>::value&&                          // NOLINT(misc-redundant-expression)
+-    is_nothrow_move_assignable<nlohmann::NLOHMANN_BASIC_JSON_TPL>::value)
+-{
+-    j1.swap(j2);
+-}
+-
+-#endif
+-
+-} // namespace std
+-
+-/// @brief user-defined string literal for JSON values
+-/// @sa https://json.nlohmann.me/api/basic_json/operator_literal_json/
+-JSON_HEDLEY_NON_NULL(1)
+-inline nlohmann::json operator "" _json(const char* s, std::size_t n)
+-{
+-    return nlohmann::json::parse(s, s + n);
+-}
+-
+-/// @brief user-defined string literal for JSON pointer
+-/// @sa https://json.nlohmann.me/api/basic_json/operator_literal_json_pointer/
+-JSON_HEDLEY_NON_NULL(1)
+-inline nlohmann::json::json_pointer operator "" _json_pointer(const char* s, std::size_t n)
+-{
+-    return nlohmann::json::json_pointer(std::string(s, n));
+-}
+-
+-// #include <nlohmann/detail/macro_unscope.hpp>
+-
+-
+-// restore clang diagnostic settings
+-#if defined(__clang__)
+-    #pragma clang diagnostic pop
+-#endif
+-
+-// clean up
+-#undef JSON_ASSERT
+-#undef JSON_INTERNAL_CATCH
+-#undef JSON_CATCH
+-#undef JSON_THROW
+-#undef JSON_TRY
+-#undef JSON_PRIVATE_UNLESS_TESTED
+-#undef JSON_HAS_CPP_11
+-#undef JSON_HAS_CPP_14
+-#undef JSON_HAS_CPP_17
+-#undef JSON_HAS_CPP_20
+-#undef JSON_HAS_FILESYSTEM
+-#undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-#undef NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-#undef NLOHMANN_BASIC_JSON_TPL
+-#undef JSON_EXPLICIT
+-#undef NLOHMANN_CAN_CALL_STD_FUNC_IMPL
+-
+-// #include <nlohmann/thirdparty/hedley/hedley_undef.hpp>
+-
+-
+-#undef JSON_HEDLEY_ALWAYS_INLINE
+-#undef JSON_HEDLEY_ARM_VERSION
+-#undef JSON_HEDLEY_ARM_VERSION_CHECK
+-#undef JSON_HEDLEY_ARRAY_PARAM
+-#undef JSON_HEDLEY_ASSUME
+-#undef JSON_HEDLEY_BEGIN_C_DECLS
+-#undef JSON_HEDLEY_CLANG_HAS_ATTRIBUTE
+-#undef JSON_HEDLEY_CLANG_HAS_BUILTIN
+-#undef JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE
+-#undef JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE
+-#undef JSON_HEDLEY_CLANG_HAS_EXTENSION
+-#undef JSON_HEDLEY_CLANG_HAS_FEATURE
+-#undef JSON_HEDLEY_CLANG_HAS_WARNING
+-#undef JSON_HEDLEY_COMPCERT_VERSION
+-#undef JSON_HEDLEY_COMPCERT_VERSION_CHECK
+-#undef JSON_HEDLEY_CONCAT
+-#undef JSON_HEDLEY_CONCAT3
+-#undef JSON_HEDLEY_CONCAT3_EX
+-#undef JSON_HEDLEY_CONCAT_EX
+-#undef JSON_HEDLEY_CONST
+-#undef JSON_HEDLEY_CONSTEXPR
+-#undef JSON_HEDLEY_CONST_CAST
+-#undef JSON_HEDLEY_CPP_CAST
+-#undef JSON_HEDLEY_CRAY_VERSION
+-#undef JSON_HEDLEY_CRAY_VERSION_CHECK
+-#undef JSON_HEDLEY_C_DECL
+-#undef JSON_HEDLEY_DEPRECATED
+-#undef JSON_HEDLEY_DEPRECATED_FOR
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION
+-#undef JSON_HEDLEY_DIAGNOSTIC_POP
+-#undef JSON_HEDLEY_DIAGNOSTIC_PUSH
+-#undef JSON_HEDLEY_DMC_VERSION
+-#undef JSON_HEDLEY_DMC_VERSION_CHECK
+-#undef JSON_HEDLEY_EMPTY_BASES
+-#undef JSON_HEDLEY_EMSCRIPTEN_VERSION
+-#undef JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK
+-#undef JSON_HEDLEY_END_C_DECLS
+-#undef JSON_HEDLEY_FLAGS
+-#undef JSON_HEDLEY_FLAGS_CAST
+-#undef JSON_HEDLEY_GCC_HAS_ATTRIBUTE
+-#undef JSON_HEDLEY_GCC_HAS_BUILTIN
+-#undef JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE
+-#undef JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE
+-#undef JSON_HEDLEY_GCC_HAS_EXTENSION
+-#undef JSON_HEDLEY_GCC_HAS_FEATURE
+-#undef JSON_HEDLEY_GCC_HAS_WARNING
+-#undef JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK
+-#undef JSON_HEDLEY_GCC_VERSION
+-#undef JSON_HEDLEY_GCC_VERSION_CHECK
+-#undef JSON_HEDLEY_GNUC_HAS_ATTRIBUTE
+-#undef JSON_HEDLEY_GNUC_HAS_BUILTIN
+-#undef JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE
+-#undef JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE
+-#undef JSON_HEDLEY_GNUC_HAS_EXTENSION
+-#undef JSON_HEDLEY_GNUC_HAS_FEATURE
+-#undef JSON_HEDLEY_GNUC_HAS_WARNING
+-#undef JSON_HEDLEY_GNUC_VERSION
+-#undef JSON_HEDLEY_GNUC_VERSION_CHECK
+-#undef JSON_HEDLEY_HAS_ATTRIBUTE
+-#undef JSON_HEDLEY_HAS_BUILTIN
+-#undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE
+-#undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS
+-#undef JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE
+-#undef JSON_HEDLEY_HAS_EXTENSION
+-#undef JSON_HEDLEY_HAS_FEATURE
+-#undef JSON_HEDLEY_HAS_WARNING
+-#undef JSON_HEDLEY_IAR_VERSION
+-#undef JSON_HEDLEY_IAR_VERSION_CHECK
+-#undef JSON_HEDLEY_IBM_VERSION
+-#undef JSON_HEDLEY_IBM_VERSION_CHECK
+-#undef JSON_HEDLEY_IMPORT
+-#undef JSON_HEDLEY_INLINE
+-#undef JSON_HEDLEY_INTEL_CL_VERSION
+-#undef JSON_HEDLEY_INTEL_CL_VERSION_CHECK
+-#undef JSON_HEDLEY_INTEL_VERSION
+-#undef JSON_HEDLEY_INTEL_VERSION_CHECK
+-#undef JSON_HEDLEY_IS_CONSTANT
+-#undef JSON_HEDLEY_IS_CONSTEXPR_
+-#undef JSON_HEDLEY_LIKELY
+-#undef JSON_HEDLEY_MALLOC
+-#undef JSON_HEDLEY_MCST_LCC_VERSION
+-#undef JSON_HEDLEY_MCST_LCC_VERSION_CHECK
+-#undef JSON_HEDLEY_MESSAGE
+-#undef JSON_HEDLEY_MSVC_VERSION
+-#undef JSON_HEDLEY_MSVC_VERSION_CHECK
+-#undef JSON_HEDLEY_NEVER_INLINE
+-#undef JSON_HEDLEY_NON_NULL
+-#undef JSON_HEDLEY_NO_ESCAPE
+-#undef JSON_HEDLEY_NO_RETURN
+-#undef JSON_HEDLEY_NO_THROW
+-#undef JSON_HEDLEY_NULL
+-#undef JSON_HEDLEY_PELLES_VERSION
+-#undef JSON_HEDLEY_PELLES_VERSION_CHECK
+-#undef JSON_HEDLEY_PGI_VERSION
+-#undef JSON_HEDLEY_PGI_VERSION_CHECK
+-#undef JSON_HEDLEY_PREDICT
+-#undef JSON_HEDLEY_PRINTF_FORMAT
+-#undef JSON_HEDLEY_PRIVATE
+-#undef JSON_HEDLEY_PUBLIC
+-#undef JSON_HEDLEY_PURE
+-#undef JSON_HEDLEY_REINTERPRET_CAST
+-#undef JSON_HEDLEY_REQUIRE
+-#undef JSON_HEDLEY_REQUIRE_CONSTEXPR
+-#undef JSON_HEDLEY_REQUIRE_MSG
+-#undef JSON_HEDLEY_RESTRICT
+-#undef JSON_HEDLEY_RETURNS_NON_NULL
+-#undef JSON_HEDLEY_SENTINEL
+-#undef JSON_HEDLEY_STATIC_ASSERT
+-#undef JSON_HEDLEY_STATIC_CAST
+-#undef JSON_HEDLEY_STRINGIFY
+-#undef JSON_HEDLEY_STRINGIFY_EX
+-#undef JSON_HEDLEY_SUNPRO_VERSION
+-#undef JSON_HEDLEY_SUNPRO_VERSION_CHECK
+-#undef JSON_HEDLEY_TINYC_VERSION
+-#undef JSON_HEDLEY_TINYC_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_ARMCL_VERSION
+-#undef JSON_HEDLEY_TI_ARMCL_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CL2000_VERSION
+-#undef JSON_HEDLEY_TI_CL2000_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CL430_VERSION
+-#undef JSON_HEDLEY_TI_CL430_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CL6X_VERSION
+-#undef JSON_HEDLEY_TI_CL6X_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CL7X_VERSION
+-#undef JSON_HEDLEY_TI_CL7X_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CLPRU_VERSION
+-#undef JSON_HEDLEY_TI_CLPRU_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_VERSION
+-#undef JSON_HEDLEY_TI_VERSION_CHECK
+-#undef JSON_HEDLEY_UNAVAILABLE
+-#undef JSON_HEDLEY_UNLIKELY
+-#undef JSON_HEDLEY_UNPREDICTABLE
+-#undef JSON_HEDLEY_UNREACHABLE
+-#undef JSON_HEDLEY_UNREACHABLE_RETURN
+-#undef JSON_HEDLEY_VERSION
+-#undef JSON_HEDLEY_VERSION_DECODE_MAJOR
+-#undef JSON_HEDLEY_VERSION_DECODE_MINOR
+-#undef JSON_HEDLEY_VERSION_DECODE_REVISION
+-#undef JSON_HEDLEY_VERSION_ENCODE
+-#undef JSON_HEDLEY_WARNING
+-#undef JSON_HEDLEY_WARN_UNUSED_RESULT
+-#undef JSON_HEDLEY_WARN_UNUSED_RESULT_MSG
+-#undef JSON_HEDLEY_FALL_THROUGH
+-
+-
+-
+-#endif  // INCLUDE_NLOHMANN_JSON_HPP_
+diff --git a/include/dpp/nlohmann/json_fwd.hpp b/include/dpp/nlohmann/json_fwd.hpp
+deleted file mode 100755
+index 2d5ba38..0000000
+--- a/include/dpp/nlohmann/json_fwd.hpp
++++ /dev/null
+@@ -1,64 +0,0 @@
+-#ifndef INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-#define INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-
+-#include <cstdint> // int64_t, uint64_t
+-#include <map> // map
+-#include <memory> // allocator
+-#include <string> // string
+-#include <vector> // vector
+-
+-/*!
+-@brief namespace for Niels Lohmann
+-@see https://github.com/nlohmann
+-@since version 1.0.0
+-*/
+-namespace nlohmann
+-{
+-/*!
+-@brief default JSONSerializer template argument
+-
+-This serializer ignores the template arguments and uses ADL
+-([argument-dependent lookup](https://en.cppreference.com/w/cpp/language/adl))
+-for serialization.
+-*/
+-template<typename T = void, typename SFINAE = void>
+-struct adl_serializer;
+-
+-/// a class to store JSON values
+-/// @sa https://json.nlohmann.me/api/basic_json/
+-template<template<typename U, typename V, typename... Args> class ObjectType =
+-         std::map,
+-         template<typename U, typename... Args> class ArrayType = std::vector,
+-         class StringType = std::string, class BooleanType = bool,
+-         class NumberIntegerType = std::int64_t,
+-         class NumberUnsignedType = std::uint64_t,
+-         class NumberFloatType = double,
+-         template<typename U> class AllocatorType = std::allocator,
+-         template<typename T, typename SFINAE = void> class JSONSerializer =
+-         adl_serializer,
+-         class BinaryType = std::vector<std::uint8_t>>
+-class basic_json;
+-
+-/// @brief JSON Pointer defines a string syntax for identifying a specific value within a JSON document
+-/// @sa https://json.nlohmann.me/api/json_pointer/
+-template<typename BasicJsonType>
+-class json_pointer;
+-
+-/*!
+-@brief default specialization
+-@sa https://json.nlohmann.me/api/json/
+-*/
+-using json = basic_json<>;
+-
+-/// @brief a minimal map-like container that preserves insertion order
+-/// @sa https://json.nlohmann.me/api/ordered_map/
+-template<class Key, class T, class IgnoredLess, class Allocator>
+-struct ordered_map;
+-
+-/// @brief specialization that maintains the insertion order of object keys
+-/// @sa https://json.nlohmann.me/api/ordered_json/
+-using ordered_json = basic_json<nlohmann::ordered_map>;
+-
+-}  // namespace nlohmann
+-
+-#endif  // INCLUDE_NLOHMANN_JSON_FWD_HPP_
+diff --git a/include/dpp/presence.h b/include/dpp/presence.h
+index e018f92..bcf322b 100644
+--- a/include/dpp/presence.h
++++ b/include/dpp/presence.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/prune.h b/include/dpp/prune.h
+index dd1b19b..7528a37 100644
+--- a/include/dpp/prune.h
++++ b/include/dpp/prune.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/restrequest.h b/include/dpp/restrequest.h
+index 2d1915c..20a4b3d 100644
+--- a/include/dpp/restrequest.h
++++ b/include/dpp/restrequest.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/role.h b/include/dpp/role.h
+index 00d380a..389ca43 100644
+--- a/include/dpp/role.h
++++ b/include/dpp/role.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/guild.h>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/scheduled_event.h b/include/dpp/scheduled_event.h
+index 2cddd63..39be997 100644
+--- a/include/dpp/scheduled_event.h
++++ b/include/dpp/scheduled_event.h
+@@ -24,7 +24,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/user.h>
+ #include <dpp/guild.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/stage_instance.h b/include/dpp/stage_instance.h
+index 90a134f..0ab205e 100644
+--- a/include/dpp/stage_instance.h
++++ b/include/dpp/stage_instance.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/user.h b/include/dpp/user.h
+index a723941..a77fccf 100644
+--- a/include/dpp/user.h
++++ b/include/dpp/user.h
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #pragma once
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+diff --git a/include/dpp/voiceregion.h b/include/dpp/voiceregion.h
+index a1def0a..a0a88e5 100644
+--- a/include/dpp/voiceregion.h
++++ b/include/dpp/voiceregion.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <unordered_map>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/voicestate.h b/include/dpp/voicestate.h
+index 64f1517..c14461e 100644
+--- a/include/dpp/voicestate.h
++++ b/include/dpp/voicestate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/webhook.h b/include/dpp/webhook.h
+index 98fa176..95c09dc 100644
+--- a/include/dpp/webhook.h
++++ b/include/dpp/webhook.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/src/dpp/application.cpp b/src/dpp/application.cpp
+index b5eea41..5ffc9fc 100644
+--- a/src/dpp/application.cpp
++++ b/src/dpp/application.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/auditlog.cpp b/src/dpp/auditlog.cpp
+index 72ef078..2a45729 100644
+--- a/src/dpp/auditlog.cpp
++++ b/src/dpp/auditlog.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/auditlog.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/ban.cpp b/src/dpp/ban.cpp
+index b959d75..860e5a4 100644
+--- a/src/dpp/ban.cpp
++++ b/src/dpp/ban.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/ban.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/channel.cpp b/src/dpp/channel.cpp
+index 405372c..6495b10 100644
+--- a/src/dpp/channel.cpp
++++ b/src/dpp/channel.cpp
+@@ -25,7 +25,7 @@
+ #include <dpp/role.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/cluster.cpp b/src/dpp/cluster.cpp
+index 210753f..6290413 100644
+--- a/src/dpp/cluster.cpp
++++ b/src/dpp/cluster.cpp
+@@ -29,7 +29,7 @@
+ #include <dpp/sync.h>
+ #include <chrono>
+ #include <iostream>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <utility>
+ #include <dpp/fmt-minimal.h>
+ #include <algorithm>
+diff --git a/src/dpp/cluster/confirmation.cpp b/src/dpp/cluster/confirmation.cpp
+index c7e579b..fcccb4c 100644
+--- a/src/dpp/cluster/confirmation.cpp
++++ b/src/dpp/cluster/confirmation.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/cluster/timer.cpp b/src/dpp/cluster/timer.cpp
+index a4b6d83..7159574 100644
+--- a/src/dpp/cluster/timer.cpp
++++ b/src/dpp/cluster/timer.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/timer.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/discordclient.cpp b/src/dpp/discordclient.cpp
+index 9444fcb..8a498b8 100644
+--- a/src/dpp/discordclient.cpp
++++ b/src/dpp/discordclient.cpp
+@@ -26,7 +26,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+ #include <thread>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ #include <dpp/etf.h>
+ #include <zlib.h>
+diff --git a/src/dpp/discordevents.cpp b/src/dpp/discordevents.cpp
+index 92bd66d..73b2b2f 100644
+--- a/src/dpp/discordevents.cpp
++++ b/src/dpp/discordevents.cpp
+@@ -30,7 +30,7 @@
+ #include <dpp/event.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <time.h>
+ #include <iomanip>
+ #include <sstream>
+diff --git a/src/dpp/discordvoiceclient.cpp b/src/dpp/discordvoiceclient.cpp
+index a1b6247..e809d91 100644
+--- a/src/dpp/discordvoiceclient.cpp
++++ b/src/dpp/discordvoiceclient.cpp
+@@ -43,7 +43,7 @@
+ #include <dpp/discordvoiceclient.h>
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ #ifdef HAVE_VOICE
+diff --git a/src/dpp/dtemplate.cpp b/src/dpp/dtemplate.cpp
+index 31f6bbf..e3c67ea 100644
+--- a/src/dpp/dtemplate.cpp
++++ b/src/dpp/dtemplate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/dtemplate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/emoji.cpp b/src/dpp/emoji.cpp
+index c0b3613..4f00958 100644
+--- a/src/dpp/emoji.cpp
++++ b/src/dpp/emoji.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/emoji.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/etf.cpp b/src/dpp/etf.cpp
+index 6395d9b..3b6159e 100644
+--- a/src/dpp/etf.cpp
++++ b/src/dpp/etf.cpp
+@@ -34,7 +34,7 @@
+ #include <dpp/sysdep.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <zlib.h>
+ #include <iostream>
+ 
+diff --git a/src/dpp/events/channel_create.cpp b/src/dpp/events/channel_create.cpp
+index 07b0c2c..1a0b812 100644
+--- a/src/dpp/events/channel_create.cpp
++++ b/src/dpp/events/channel_create.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_delete.cpp b/src/dpp/events/channel_delete.cpp
+index 09d23a4..5e48f96 100644
+--- a/src/dpp/events/channel_delete.cpp
++++ b/src/dpp/events/channel_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_pins_update.cpp b/src/dpp/events/channel_pins_update.cpp
+index 3a4244b..cc2f908 100644
+--- a/src/dpp/events/channel_pins_update.cpp
++++ b/src/dpp/events/channel_pins_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_update.cpp b/src/dpp/events/channel_update.cpp
+index 7e05d8f..fde836a 100644
+--- a/src/dpp/events/channel_update.cpp
++++ b/src/dpp/events/channel_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_add.cpp b/src/dpp/events/guild_ban_add.cpp
+index 872b875..61dfb5b 100644
+--- a/src/dpp/events/guild_ban_add.cpp
++++ b/src/dpp/events/guild_ban_add.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_remove.cpp b/src/dpp/events/guild_ban_remove.cpp
+index e170fde..510a280 100644
+--- a/src/dpp/events/guild_ban_remove.cpp
++++ b/src/dpp/events/guild_ban_remove.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_create.cpp b/src/dpp/events/guild_create.cpp
+index 6f1e369..9de1c39 100644
+--- a/src/dpp/events/guild_create.cpp
++++ b/src/dpp/events/guild_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_delete.cpp b/src/dpp/events/guild_delete.cpp
+index 82f75d3..e39f4c8 100644
+--- a/src/dpp/events/guild_delete.cpp
++++ b/src/dpp/events/guild_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_emojis_update.cpp b/src/dpp/events/guild_emojis_update.cpp
+index 62588c0..ec4303d 100644
+--- a/src/dpp/events/guild_emojis_update.cpp
++++ b/src/dpp/events/guild_emojis_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/emoji.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_integrations_update.cpp b/src/dpp/events/guild_integrations_update.cpp
+index 58146ae..0d2036f 100644
+--- a/src/dpp/events/guild_integrations_update.cpp
++++ b/src/dpp/events/guild_integrations_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_join_request_delete.cpp b/src/dpp/events/guild_join_request_delete.cpp
+index 4b6da22..5642b4c 100644
+--- a/src/dpp/events/guild_join_request_delete.cpp
++++ b/src/dpp/events/guild_join_request_delete.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_add.cpp b/src/dpp/events/guild_member_add.cpp
+index 6c865bb..2b3b8e8 100644
+--- a/src/dpp/events/guild_member_add.cpp
++++ b/src/dpp/events/guild_member_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_remove.cpp b/src/dpp/events/guild_member_remove.cpp
+index fa23bed..46646b7 100644
+--- a/src/dpp/events/guild_member_remove.cpp
++++ b/src/dpp/events/guild_member_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_update.cpp b/src/dpp/events/guild_member_update.cpp
+index 6a9c3b7..689aac4 100644
+--- a/src/dpp/events/guild_member_update.cpp
++++ b/src/dpp/events/guild_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_members_chunk.cpp b/src/dpp/events/guild_members_chunk.cpp
+index 03e1eb3..0e68089 100644
+--- a/src/dpp/events/guild_members_chunk.cpp
++++ b/src/dpp/events/guild_members_chunk.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_create.cpp b/src/dpp/events/guild_role_create.cpp
+index b668bb5..ed8bc79 100644
+--- a/src/dpp/events/guild_role_create.cpp
++++ b/src/dpp/events/guild_role_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_delete.cpp b/src/dpp/events/guild_role_delete.cpp
+index 6c8cedc..336f11b 100644
+--- a/src/dpp/events/guild_role_delete.cpp
++++ b/src/dpp/events/guild_role_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_update.cpp b/src/dpp/events/guild_role_update.cpp
+index 29130c0..32e3146 100644
+--- a/src/dpp/events/guild_role_update.cpp
++++ b/src/dpp/events/guild_role_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_create.cpp b/src/dpp/events/guild_scheduled_event_create.cpp
+index 02b3ba9..e84c134 100644
+--- a/src/dpp/events/guild_scheduled_event_create.cpp
++++ b/src/dpp/events/guild_scheduled_event_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_delete.cpp b/src/dpp/events/guild_scheduled_event_delete.cpp
+index ea11ed9..a098a0f 100644
+--- a/src/dpp/events/guild_scheduled_event_delete.cpp
++++ b/src/dpp/events/guild_scheduled_event_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_update.cpp b/src/dpp/events/guild_scheduled_event_update.cpp
+index b43f02d..6fd2795 100644
+--- a/src/dpp/events/guild_scheduled_event_update.cpp
++++ b/src/dpp/events/guild_scheduled_event_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_add.cpp b/src/dpp/events/guild_scheduled_event_user_add.cpp
+index 38e07b6..c549c39 100644
+--- a/src/dpp/events/guild_scheduled_event_user_add.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_add.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_remove.cpp b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+index 4d6e8a0..08be1e9 100644
+--- a/src/dpp/events/guild_scheduled_event_user_remove.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_stickers_update.cpp b/src/dpp/events/guild_stickers_update.cpp
+index 7f00c23..583d936 100644
+--- a/src/dpp/events/guild_stickers_update.cpp
++++ b/src/dpp/events/guild_stickers_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_update.cpp b/src/dpp/events/guild_update.cpp
+index d80b40b..e116688 100644
+--- a/src/dpp/events/guild_update.cpp
++++ b/src/dpp/events/guild_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_create.cpp b/src/dpp/events/integration_create.cpp
+index f72193c..112320b 100644
+--- a/src/dpp/events/integration_create.cpp
++++ b/src/dpp/events/integration_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_delete.cpp b/src/dpp/events/integration_delete.cpp
+index 0438076..e0b2202 100644
+--- a/src/dpp/events/integration_delete.cpp
++++ b/src/dpp/events/integration_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_update.cpp b/src/dpp/events/integration_update.cpp
+index 8175fab..38b3eda 100644
+--- a/src/dpp/events/integration_update.cpp
++++ b/src/dpp/events/integration_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/interaction_create.cpp b/src/dpp/events/interaction_create.cpp
+index a7bf466..a8aa25b 100644
+--- a/src/dpp/events/interaction_create.cpp
++++ b/src/dpp/events/interaction_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/appcommand.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_create.cpp b/src/dpp/events/invite_create.cpp
+index 377ba3f..7d03d06 100644
+--- a/src/dpp/events/invite_create.cpp
++++ b/src/dpp/events/invite_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_delete.cpp b/src/dpp/events/invite_delete.cpp
+index 5f2f084..c9d81bb 100644
+--- a/src/dpp/events/invite_delete.cpp
++++ b/src/dpp/events/invite_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/logger.cpp b/src/dpp/events/logger.cpp
+index aefc82f..ee9d202 100644
+--- a/src/dpp/events/logger.cpp
++++ b/src/dpp/events/logger.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_create.cpp b/src/dpp/events/message_create.cpp
+index be56ef8..80481e8 100644
+--- a/src/dpp/events/message_create.cpp
++++ b/src/dpp/events/message_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete.cpp b/src/dpp/events/message_delete.cpp
+index d7ba0ea..98e7c2c 100644
+--- a/src/dpp/events/message_delete.cpp
++++ b/src/dpp/events/message_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete_bulk.cpp b/src/dpp/events/message_delete_bulk.cpp
+index a158bf1..cbffcf2 100644
+--- a/src/dpp/events/message_delete_bulk.cpp
++++ b/src/dpp/events/message_delete_bulk.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_add.cpp b/src/dpp/events/message_reaction_add.cpp
+index fac7237..5e61959 100644
+--- a/src/dpp/events/message_reaction_add.cpp
++++ b/src/dpp/events/message_reaction_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove.cpp b/src/dpp/events/message_reaction_remove.cpp
+index 1036757..1f602b1 100644
+--- a/src/dpp/events/message_reaction_remove.cpp
++++ b/src/dpp/events/message_reaction_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_all.cpp b/src/dpp/events/message_reaction_remove_all.cpp
+index 7a63660..a564afb 100644
+--- a/src/dpp/events/message_reaction_remove_all.cpp
++++ b/src/dpp/events/message_reaction_remove_all.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_emoji.cpp b/src/dpp/events/message_reaction_remove_emoji.cpp
+index c820bbe..93a3f9c 100644
+--- a/src/dpp/events/message_reaction_remove_emoji.cpp
++++ b/src/dpp/events/message_reaction_remove_emoji.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_update.cpp b/src/dpp/events/message_update.cpp
+index 3259d88..90b6418 100644
+--- a/src/dpp/events/message_update.cpp
++++ b/src/dpp/events/message_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/presence.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/presence_update.cpp b/src/dpp/events/presence_update.cpp
+index af16087..7718019 100644
+--- a/src/dpp/events/presence_update.cpp
++++ b/src/dpp/events/presence_update.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/ready.cpp b/src/dpp/events/ready.cpp
+index 1434794..b6dd917 100644
+--- a/src/dpp/events/ready.cpp
++++ b/src/dpp/events/ready.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/events/resumed.cpp b/src/dpp/events/resumed.cpp
+index e28c8d8..98e174e 100644
+--- a/src/dpp/events/resumed.cpp
++++ b/src/dpp/events/resumed.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_create.cpp b/src/dpp/events/stage_instance_create.cpp
+index bb191df..a53b3bc 100644
+--- a/src/dpp/events/stage_instance_create.cpp
++++ b/src/dpp/events/stage_instance_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_delete.cpp b/src/dpp/events/stage_instance_delete.cpp
+index 639d259..d5bb97c 100644
+--- a/src/dpp/events/stage_instance_delete.cpp
++++ b/src/dpp/events/stage_instance_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_update.cpp b/src/dpp/events/stage_instance_update.cpp
+index 8422ffb..5349aab 100644
+--- a/src/dpp/events/stage_instance_update.cpp
++++ b/src/dpp/events/stage_instance_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_create.cpp b/src/dpp/events/thread_create.cpp
+index 896999a..680bc92 100644
+--- a/src/dpp/events/thread_create.cpp
++++ b/src/dpp/events/thread_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_delete.cpp b/src/dpp/events/thread_delete.cpp
+index 3969469..d195dac 100644
+--- a/src/dpp/events/thread_delete.cpp
++++ b/src/dpp/events/thread_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_list_sync.cpp b/src/dpp/events/thread_list_sync.cpp
+index ce518f5..19eee46 100644
+--- a/src/dpp/events/thread_list_sync.cpp
++++ b/src/dpp/events/thread_list_sync.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_member_update.cpp b/src/dpp/events/thread_member_update.cpp
+index 00a5949..5868e8d 100644
+--- a/src/dpp/events/thread_member_update.cpp
++++ b/src/dpp/events/thread_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_members_update.cpp b/src/dpp/events/thread_members_update.cpp
+index c744029..ea702a2 100644
+--- a/src/dpp/events/thread_members_update.cpp
++++ b/src/dpp/events/thread_members_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_update.cpp b/src/dpp/events/thread_update.cpp
+index 6be9cb6..b97e271 100644
+--- a/src/dpp/events/thread_update.cpp
++++ b/src/dpp/events/thread_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/typing_start.cpp b/src/dpp/events/typing_start.cpp
+index fc8667b..189129a 100644
+--- a/src/dpp/events/typing_start.cpp
++++ b/src/dpp/events/typing_start.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/user_update.cpp b/src/dpp/events/user_update.cpp
+index 3236c27..63fde16 100644
+--- a/src/dpp/events/user_update.cpp
++++ b/src/dpp/events/user_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/user.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_server_update.cpp b/src/dpp/events/voice_server_update.cpp
+index a70c831..fd5d984 100644
+--- a/src/dpp/events/voice_server_update.cpp
++++ b/src/dpp/events/voice_server_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_state_update.cpp b/src/dpp/events/voice_state_update.cpp
+index 4b316d4..79895e0 100644
+--- a/src/dpp/events/voice_state_update.cpp
++++ b/src/dpp/events/voice_state_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/webhooks_update.cpp b/src/dpp/events/webhooks_update.cpp
+index e94e585..d4c49d0 100644
+--- a/src/dpp/events/webhooks_update.cpp
++++ b/src/dpp/events/webhooks_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/webhook.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/format.cpp b/src/dpp/format.cpp
+index f95ab5d..2c6a1f2 100644
+--- a/src/dpp/format.cpp
++++ b/src/dpp/format.cpp
+@@ -5,7 +5,7 @@
+ //
+ // For the license information refer to format.h.
+ 
+-#include <dpp/fmt/format-inl.h>
++#include <fmt/format-inl.h>
+ 
+ FMT_BEGIN_NAMESPACE
+ namespace detail {
+diff --git a/src/dpp/guild.cpp b/src/dpp/guild.cpp
+index 1d47e7f..da26b04 100644
+--- a/src/dpp/guild.cpp
++++ b/src/dpp/guild.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/integration.cpp b/src/dpp/integration.cpp
+index 0d7ffba..2057271 100644
+--- a/src/dpp/integration.cpp
++++ b/src/dpp/integration.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/integration.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/cache.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/invite.cpp b/src/dpp/invite.cpp
+index ec02903..9a39fee 100644
+--- a/src/dpp/invite.cpp
++++ b/src/dpp/invite.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/invite.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/message.cpp b/src/dpp/message.cpp
+index 284fd0d..252807c 100644
+--- a/src/dpp/message.cpp
++++ b/src/dpp/message.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/exception.h>
+diff --git a/src/dpp/os.cpp b/src/dpp/os.cpp
+index 9a126ca..f76e086 100644
+--- a/src/dpp/os.cpp
++++ b/src/dpp/os.cpp
+@@ -10,7 +10,7 @@
+ #  define _CRT_SECURE_NO_WARNINGS
+ #endif
+ 
+-#include <dpp/fmt/os.h>
++#include <fmt/os.h>
+ 
+ #include <climits>
+ 
+diff --git a/src/dpp/permissions.cpp b/src/dpp/permissions.cpp
+index 5985e6e..e7adab6 100644
+--- a/src/dpp/permissions.cpp
++++ b/src/dpp/permissions.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/presence.cpp b/src/dpp/presence.cpp
+index b432044..ab8b5f4 100644
+--- a/src/dpp/presence.cpp
++++ b/src/dpp/presence.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/utility.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/prune.cpp b/src/dpp/prune.cpp
+index 1d7cd49..50b0315 100644
+--- a/src/dpp/prune.cpp
++++ b/src/dpp/prune.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/prune.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/role.cpp b/src/dpp/role.cpp
+index 618e16d..3a8182b 100644
+--- a/src/dpp/role.cpp
++++ b/src/dpp/role.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/permissions.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/scheduled_event.cpp b/src/dpp/scheduled_event.cpp
+index e049889..3113260 100644
+--- a/src/dpp/scheduled_event.cpp
++++ b/src/dpp/scheduled_event.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/exception.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/slashcommand.cpp b/src/dpp/slashcommand.cpp
+index 9ae3024..2872dac 100644
+--- a/src/dpp/slashcommand.cpp
++++ b/src/dpp/slashcommand.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/stringops.h>
+ #include <dpp/cache.h>
+ #include <iostream>
+diff --git a/src/dpp/stage_instance.cpp b/src/dpp/stage_instance.cpp
+index 2b10760..34e514d 100644
+--- a/src/dpp/stage_instance.cpp
++++ b/src/dpp/stage_instance.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/stage_instance.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/user.cpp b/src/dpp/user.cpp
+index e8e4dcd..5107c0f 100644
+--- a/src/dpp/user.cpp
++++ b/src/dpp/user.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/user.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/utility.cpp b/src/dpp/utility.cpp
+index 57c9874..80a6b82 100644
+--- a/src/dpp/utility.cpp
++++ b/src/dpp/utility.cpp
+@@ -33,7 +33,7 @@
+ #include <fstream>
+ #include <streambuf>
+ #include <array>
+-#include <dpp/fmt/format.h>
++#include <fmt/format.h>
+ #include <dpp/cluster.h>
+ #include <dpp/dispatcher.h>
+ 
+diff --git a/src/dpp/voiceregion.cpp b/src/dpp/voiceregion.cpp
+index 0e13179..895f659 100644
+--- a/src/dpp/voiceregion.cpp
++++ b/src/dpp/voiceregion.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voiceregion.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/voicestate.cpp b/src/dpp/voicestate.cpp
+index e1dd521..a68865f 100644
+--- a/src/dpp/voicestate.cpp
++++ b/src/dpp/voicestate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voicestate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/webhook.cpp b/src/dpp/webhook.cpp
+index a5e5e53..ad73796 100644
+--- a/src/dpp/webhook.cpp
++++ b/src/dpp/webhook.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/webhook.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/test.h b/src/test.h
+index 0b714f9..421ccad 100644
+--- a/src/test.h
++++ b/src/test.h
+@@ -24,7 +24,7 @@ _Pragma("warning( disable : 4251 )"); // 4251 warns when we export classes or st
+ _Pragma("warning( disable : 5105 )"); // 4251 warns when we export classes or structures with stl member variables
+ #endif
+ #include <dpp/dpp.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <iomanip>
+ 
+ #ifdef _WIN32
diff --git a/srcpkgs/libdpp/files/fix-installed-cmakefiles b/srcpkgs/libdpp/files/fix-installed-cmakefiles
new file mode 100644
index 000000000000..90efc1a3938e
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-installed-cmakefiles
@@ -0,0 +1,86 @@
+diff -ruN /usr/lib/cmake/dpp/dpp-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-noconfig.cmake	2022-06-18 14:50:52.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake	2022-06-18 14:55:08.371653178 +0800
+@@ -8,12 +8,12 @@
+ # Import target "dpp::dpp" for configuration ""
+ set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+ set_target_properties(dpp::dpp PROPERTIES
+-  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.11"
++  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.11"
+   )
+ 
+ list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.11" )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake	2022-06-18 14:50:52.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake	2022-06-18 14:55:08.446653180 +0800
+@@ -6,14 +6,14 @@
+ set(CMAKE_IMPORT_FILE_VERSION 1)
+ 
+ # Import target "dpp" for configuration ""
+-set_property(TARGET dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+-set_target_properties(dpp PROPERTIES
++set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
++set_target_properties(dpp::dpp PROPERTIES
+   IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.11"
+   )
+ 
+-list(APPEND _IMPORT_CHECK_TARGETS dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11" )
++list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets.cmake /usr/lib/cmake/dpp_patch/dpp-targets.cmake
+--- /usr/lib/cmake/dpp/dpp-targets.cmake	2022-06-18 14:50:52.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets.cmake	2022-06-18 14:55:08.442653180 +0800
+@@ -47,7 +47,7 @@
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+ get_filename_component(_realOrig "/usr/lib64" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
++if(1)
+   set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+@@ -61,7 +61,7 @@
+ add_library(dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
+diff -ruN /usr/lib/cmake/dpp/dpp.cmake /usr/lib/cmake/dpp_patch/dpp.cmake
+--- /usr/lib/cmake/dpp/dpp.cmake	2022-06-18 14:50:52.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp.cmake	2022-06-18 14:55:08.380653178 +0800
+@@ -46,9 +46,9 @@
+ # Use original install prefix when loaded through a
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+-get_filename_component(_realOrig "/usr/lib64/dpp-10.0" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
+-  set(_IMPORT_PREFIX "/usr/lib64/dpp-10.0")
++get_filename_component(_realOrig "/usr/lib64" REALPATH)
++if(1)
++  set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+ unset(_realCurr)
+@@ -62,7 +62,7 @@
+ add_library(dpp::dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp::dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..27e05a35d269
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,38 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+hostmakedepends="pkg-config git"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+    cp "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	git apply ${FILESDIR}/fix-headers-and-cmakefiles
+}
+
+post_install() {
+	rm -r "${DESTDIR}/usr/lib/dpp-${version%.*}"
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmove usr/include
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		vcopy ${FILESDIR}/fix-installed-cmakefiles ${PKGDESTDIR}/usr/lib/cmake
+		patch -s -p0 < ${PKGDESTDIR}/usr/lib/cmake/fix-installed-cmakefiles
+		mv ${PKGDESTDIR}/usr/lib/cmake/dpp_patch ${PKGDESTDIR}/usr/lib/cmake/dpp
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (37 preceding siblings ...)
  2022-06-18  7:28 ` [PR PATCH] [Updated] " JuniorSuperTux
@ 2022-06-18  7:29 ` JuniorSuperTux
  2022-06-18 11:55 ` JuniorSuperTux
                   ` (10 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-18  7:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 1468209 bytes --]

From 398859454339b75f7cd6b04ac2481686f1f1763f Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel                          |     1 +
 .../libdpp/files/fix-headers-and-cmakefiles   | 38772 ++++++++++++++++
 srcpkgs/libdpp/files/fix-installed-cmakefiles |    86 +
 srcpkgs/libdpp/template                       |    38 +
 4 files changed, 38897 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/files/fix-headers-and-cmakefiles
 create mode 100644 srcpkgs/libdpp/files/fix-installed-cmakefiles
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/files/fix-headers-and-cmakefiles b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
new file mode 100644
index 000000000000..f63df5313e96
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
@@ -0,0 +1,38772 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index bbcc4b3..524a3ca 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -43,7 +43,7 @@ math(EXPR DPP_VERSION_PATCH ${CMAKE_MATCH_3})
+ 
+ string(CONCAT DPP_VERSION ${DPP_VERSION_MAJOR}.${DPP_VERSION_MINOR}.${DPP_VERSION_PATCH})
+ 
+-project(libdpp VERSION ${DPP_VERSION} LANGUAGES CXX)
++project(dpp VERSION ${DPP_VERSION} LANGUAGES CXX)
+ 
+ check_cxx_symbol_exists(prctl "sys/prctl.h" HAVE_PRCTL)
+ check_cxx_symbol_exists(pthread_setname_np "pthread.h" HAVE_PTHREAD_SETNAME_NP)
+@@ -240,8 +240,8 @@ foreach (fullmodname ${subdirlist})
+ 	target_precompile_headers(
+ 		${modname}
+ 		PRIVATE
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json.hpp"
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json_fwd.hpp"
++		<nlohmann/json.hpp>
++		<nlohmann/json_fwd.hpp>
+ 	)
+ 
+ 	if (WIN32 AND NOT MINGW)
+@@ -325,14 +325,16 @@ if(NOT WIN32)
+ 	# Installation
+ 
+ 	include(GNUInstallDirs)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ 	install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -DRUN_LDCONFIG=${RUN_LDCONFIG} -DLDCONFIG_EXECUTABLE=${LDCONFIG_EXECUTABLE} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/PostInstall.cmake)")
+ 
+ 	configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dpp.pc.in" "${CMAKE_BINARY_DIR}/dpp.pc" @ONLY)
+ 	install(FILES "${CMAKE_BINARY_DIR}/dpp.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
+ elseif(MINGW)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
+ endif()
+ 
+diff --git a/cmake/CPackSetup.cmake b/cmake/CPackSetup.cmake
+index a6bcf59..73abe7e 100644
+--- a/cmake/CPackSetup.cmake
++++ b/cmake/CPackSetup.cmake
+@@ -24,7 +24,7 @@ write_basic_package_version_file(${DPP_VERSION_FILE}
+ install(DIRECTORY include/ DESTINATION ${DPP_INSTALL_INCLUDE_DIR})
+ 
+ ## Include the file which allows `find_package(libdpp)` to function.
+-install(FILES cmake/libdpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
++install(FILES cmake/dpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
+ 
+ ## Export the targets to allow other projects to easily include this project
+ install(EXPORT ${DPP_EXPORT_NAME} DESTINATION ${DPP_INSTALL_LIBRARY_DIR} NAMESPACE dpp::)
+diff --git a/cmake/libdpp-config.cmake b/cmake/libdpp-config.cmake
+deleted file mode 100644
+index d6dd5bd..0000000
+--- a/cmake/libdpp-config.cmake
++++ /dev/null
+@@ -1,21 +0,0 @@
+-# libdpp-config.cmake - package configuration file
+-
+-## Get current filesystem path (will a prefixed by where this package was installed)
+-get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+-
+-## Use this directory to include libdpp which has the rest of the project targets
+-include(${SELF_DIR}/libdpp.cmake)
+-
+-## Set OpenSSl directory for macos. It is also in our main CMakeLists.txt, but this file is independent from that.
+-if(APPLE)
+-	if(CMAKE_APPLE_SILICON_PROCESSOR)
+-		set(OPENSSL_ROOT_DIR "/opt/homebrew/opt/openssl")
+-	else()
+-		set(OPENSSL_ROOT_DIR "/usr/local/opt/openssl")
+-	endif()
+-	find_package(OpenSSL REQUIRED)
+-endif()
+-
+-# Search for libdpp dependencies
+-include(CMakeFindDependencyMacro)
+-find_dependency(OpenSSL REQUIRED)
+diff --git a/include/dpp/appcommand.h b/include/dpp/appcommand.h
+index 424823c..36f8f82 100644
+--- a/include/dpp/appcommand.h
++++ b/include/dpp/appcommand.h
+@@ -27,7 +27,7 @@
+ #include <dpp/role.h>
+ #include <dpp/user.h>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/application.h b/include/dpp/application.h
+index 7e9d80d..19fad83 100644
+--- a/include/dpp/application.h
++++ b/include/dpp/application.h
+@@ -26,7 +26,7 @@
+ #include <dpp/utility.h>
+ #include <dpp/user.h>
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/auditlog.h b/include/dpp/auditlog.h
+index 3469630..ca878da 100644
+--- a/include/dpp/auditlog.h
++++ b/include/dpp/auditlog.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <optional>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/ban.h b/include/dpp/ban.h
+index 6bbcdd2..8ad88d6 100644
+--- a/include/dpp/ban.h
++++ b/include/dpp/ban.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+ 
+diff --git a/include/dpp/channel.h b/include/dpp/channel.h
+index 7335b28..b2fcc33 100644
+--- a/include/dpp/channel.h
++++ b/include/dpp/channel.h
+@@ -25,7 +25,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+ #include <dpp/voicestate.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+diff --git a/include/dpp/cluster.h b/include/dpp/cluster.h
+index 5400695..6e7b41b 100644
+--- a/include/dpp/cluster.h
++++ b/include/dpp/cluster.h
+@@ -29,7 +29,7 @@
+ #include <dpp/dispatcher.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/timer.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/discordclient.h>
+ #include <dpp/voiceregion.h>
+ #include <dpp/dtemplate.h>
+diff --git a/include/dpp/commandhandler.h b/include/dpp/commandhandler.h
+index 29da473..0b15417 100644
+--- a/include/dpp/commandhandler.h
++++ b/include/dpp/commandhandler.h
+@@ -29,7 +29,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/utility.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <vector>
+ #include <functional>
+diff --git a/include/dpp/discordclient.h b/include/dpp/discordclient.h
+index 1eb875a..10f010e 100644
+--- a/include/dpp/discordclient.h
++++ b/include/dpp/discordclient.h
+@@ -24,7 +24,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/discordevents.h b/include/dpp/discordevents.h
+index c6474a4..1a70b18 100644
+--- a/include/dpp/discordevents.h
++++ b/include/dpp/discordevents.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ 
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/discordvoiceclient.h b/include/dpp/discordvoiceclient.h
+index e11d653..6692e54 100644
+--- a/include/dpp/discordvoiceclient.h
++++ b/include/dpp/discordvoiceclient.h
+@@ -32,7 +32,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/dtemplate.h b/include/dpp/dtemplate.h
+index 948b25d..5fbe17e 100644
+--- a/include/dpp/dtemplate.h
++++ b/include/dpp/dtemplate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/emoji.h b/include/dpp/emoji.h
+index a73e58a..9ab9c1e 100644
+--- a/include/dpp/emoji.h
++++ b/include/dpp/emoji.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/etf.h b/include/dpp/etf.h
+index 1c98e6a..1acd63b 100644
+--- a/include/dpp/etf.h
++++ b/include/dpp/etf.h
+@@ -34,7 +34,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/event.h b/include/dpp/event.h
+index cd945f5..388a0d6 100644
+--- a/include/dpp/event.h
++++ b/include/dpp/event.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ #define event_decl(x,wstype) /** @brief Internal event handler for wstype websocket events. Called for each websocket message of this type. @internal */ \
+ 	class x : public event { public: virtual void handle(dpp::discord_client* client, nlohmann::json &j, const std::string &raw); };
+diff --git a/include/dpp/fmt-minimal.h b/include/dpp/fmt-minimal.h
+index a5e7a5d..88f1e38 100644
+--- a/include/dpp/fmt-minimal.h
++++ b/include/dpp/fmt-minimal.h
+@@ -1,3 +1,3 @@
+ #pragma once
+-#include <dpp/fmt/core.h>
++#include <fmt/core.h>
+ #define FMT_STRING(s) s
+diff --git a/include/dpp/fmt/args.h b/include/dpp/fmt/args.h
+deleted file mode 100644
+index 9a8e4ed..0000000
+--- a/include/dpp/fmt/args.h
++++ /dev/null
+@@ -1,234 +0,0 @@
+-// Formatting library for C++ - dynamic format arguments
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_ARGS_H_
+-#define FMT_ARGS_H_
+-
+-#include <functional>  // std::reference_wrapper
+-#include <memory>      // std::unique_ptr
+-#include <vector>
+-
+-#include "core.h"
+-
+-FMT_BEGIN_NAMESPACE
+-
+-namespace detail {
+-
+-template <typename T> struct is_reference_wrapper : std::false_type {};
+-template <typename T>
+-struct is_reference_wrapper<std::reference_wrapper<T>> : std::true_type {};
+-
+-template <typename T> const T& unwrap(const T& v) { return v; }
+-template <typename T> const T& unwrap(const std::reference_wrapper<T>& v) {
+-  return static_cast<const T&>(v);
+-}
+-
+-class dynamic_arg_list {
+-  // Workaround for clang's -Wweak-vtables. Unlike for regular classes, for
+-  // templates it doesn't complain about inability to deduce single translation
+-  // unit for placing vtable. So storage_node_base is made a fake template.
+-  template <typename = void> struct node {
+-    virtual ~node() = default;
+-    std::unique_ptr<node<>> next;
+-  };
+-
+-  template <typename T> struct typed_node : node<> {
+-    T value;
+-
+-    template <typename Arg>
+-    FMT_CONSTEXPR typed_node(const Arg& arg) : value(arg) {}
+-
+-    template <typename Char>
+-    FMT_CONSTEXPR typed_node(const basic_string_view<Char>& arg)
+-        : value(arg.data(), arg.size()) {}
+-  };
+-
+-  std::unique_ptr<node<>> head_;
+-
+- public:
+-  template <typename T, typename Arg> const T& push(const Arg& arg) {
+-    auto new_node = std::unique_ptr<typed_node<T>>(new typed_node<T>(arg));
+-    auto& value = new_node->value;
+-    new_node->next = std::move(head_);
+-    head_ = std::move(new_node);
+-    return value;
+-  }
+-};
+-}  // namespace detail
+-
+-/**
+-  \rst
+-  A dynamic version of `fmt::format_arg_store`.
+-  It's equipped with a storage to potentially temporary objects which lifetimes
+-  could be shorter than the format arguments object.
+-
+-  It can be implicitly converted into `~fmt::basic_format_args` for passing
+-  into type-erased formatting functions such as `~fmt::vformat`.
+-  \endrst
+- */
+-template <typename Context>
+-class dynamic_format_arg_store
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-    // Workaround a GCC template argument substitution bug.
+-    : public basic_format_args<Context>
+-#endif
+-{
+- private:
+-  using char_type = typename Context::char_type;
+-
+-  template <typename T> struct need_copy {
+-    static constexpr detail::type mapped_type =
+-        detail::mapped_type_constant<T, Context>::value;
+-
+-    enum {
+-      value = !(detail::is_reference_wrapper<T>::value ||
+-                std::is_same<T, basic_string_view<char_type>>::value ||
+-                std::is_same<T, detail::std_string_view<char_type>>::value ||
+-                (mapped_type != detail::type::cstring_type &&
+-                 mapped_type != detail::type::string_type &&
+-                 mapped_type != detail::type::custom_type))
+-    };
+-  };
+-
+-  template <typename T>
+-  using stored_type = conditional_t<detail::is_string<T>::value &&
+-                                        !has_formatter<T, Context>::value &&
+-                                        !detail::is_reference_wrapper<T>::value,
+-                                    std::basic_string<char_type>, T>;
+-
+-  // Storage of basic_format_arg must be contiguous.
+-  std::vector<basic_format_arg<Context>> data_;
+-  std::vector<detail::named_arg_info<char_type>> named_info_;
+-
+-  // Storage of arguments not fitting into basic_format_arg must grow
+-  // without relocation because items in data_ refer to it.
+-  detail::dynamic_arg_list dynamic_args_;
+-
+-  friend class basic_format_args<Context>;
+-
+-  unsigned long long get_types() const {
+-    return detail::is_unpacked_bit | data_.size() |
+-           (named_info_.empty()
+-                ? 0ULL
+-                : static_cast<unsigned long long>(detail::has_named_args_bit));
+-  }
+-
+-  const basic_format_arg<Context>* data() const {
+-    return named_info_.empty() ? data_.data() : data_.data() + 1;
+-  }
+-
+-  template <typename T> void emplace_arg(const T& arg) {
+-    data_.emplace_back(detail::make_arg<Context>(arg));
+-  }
+-
+-  template <typename T>
+-  void emplace_arg(const detail::named_arg<char_type, T>& arg) {
+-    if (named_info_.empty()) {
+-      constexpr const detail::named_arg_info<char_type>* zero_ptr{nullptr};
+-      data_.insert(data_.begin(), {zero_ptr, 0});
+-    }
+-    data_.emplace_back(detail::make_arg<Context>(detail::unwrap(arg.value)));
+-    auto pop_one = [](std::vector<basic_format_arg<Context>>* data) {
+-      data->pop_back();
+-    };
+-    std::unique_ptr<std::vector<basic_format_arg<Context>>, decltype(pop_one)>
+-        guard{&data_, pop_one};
+-    named_info_.push_back({arg.name, static_cast<int>(data_.size() - 2u)});
+-    data_[0].value_.named_args = {named_info_.data(), named_info_.size()};
+-    guard.release();
+-  }
+-
+- public:
+-  constexpr dynamic_format_arg_store() = default;
+-
+-  /**
+-    \rst
+-    Adds an argument into the dynamic store for later passing to a formatting
+-    function.
+-
+-    Note that custom types and string types (but not string views) are copied
+-    into the store dynamically allocating memory if necessary.
+-
+-    **Example**::
+-
+-      fmt::dynamic_format_arg_store<fmt::format_context> store;
+-      store.push_back(42);
+-      store.push_back("abc");
+-      store.push_back(1.5f);
+-      std::string result = fmt::vformat("{} and {} and {}", store);
+-    \endrst
+-  */
+-  template <typename T> void push_back(const T& arg) {
+-    if (detail::const_check(need_copy<T>::value))
+-      emplace_arg(dynamic_args_.push<stored_type<T>>(arg));
+-    else
+-      emplace_arg(detail::unwrap(arg));
+-  }
+-
+-  /**
+-    \rst
+-    Adds a reference to the argument into the dynamic store for later passing to
+-    a formatting function.
+-
+-    **Example**::
+-
+-      fmt::dynamic_format_arg_store<fmt::format_context> store;
+-      char band[] = "Rolling Stones";
+-      store.push_back(std::cref(band));
+-      band[9] = 'c'; // Changing str affects the output.
+-      std::string result = fmt::vformat("{}", store);
+-      // result == "Rolling Scones"
+-    \endrst
+-  */
+-  template <typename T> void push_back(std::reference_wrapper<T> arg) {
+-    static_assert(
+-        need_copy<T>::value,
+-        "objects of built-in types and string views are always copied");
+-    emplace_arg(arg.get());
+-  }
+-
+-  /**
+-    Adds named argument into the dynamic store for later passing to a formatting
+-    function. ``std::reference_wrapper`` is supported to avoid copying of the
+-    argument. The name is always copied into the store.
+-  */
+-  template <typename T>
+-  void push_back(const detail::named_arg<char_type, T>& arg) {
+-    const char_type* arg_name =
+-        dynamic_args_.push<std::basic_string<char_type>>(arg.name).c_str();
+-    if (detail::const_check(need_copy<T>::value)) {
+-      emplace_arg(
+-          fmt::arg(arg_name, dynamic_args_.push<stored_type<T>>(arg.value)));
+-    } else {
+-      emplace_arg(fmt::arg(arg_name, arg.value));
+-    }
+-  }
+-
+-  /** Erase all elements from the store */
+-  void clear() {
+-    data_.clear();
+-    named_info_.clear();
+-    dynamic_args_ = detail::dynamic_arg_list();
+-  }
+-
+-  /**
+-    \rst
+-    Reserves space to store at least *new_cap* arguments including
+-    *new_cap_named* named arguments.
+-    \endrst
+-  */
+-  void reserve(size_t new_cap, size_t new_cap_named) {
+-    FMT_ASSERT(new_cap >= new_cap_named,
+-               "Set of arguments includes set of named arguments");
+-    data_.reserve(new_cap);
+-    named_info_.reserve(new_cap_named);
+-  }
+-};
+-
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_ARGS_H_
+diff --git a/include/dpp/fmt/chrono.h b/include/dpp/fmt/chrono.h
+deleted file mode 100644
+index 682efd8..0000000
+--- a/include/dpp/fmt/chrono.h
++++ /dev/null
+@@ -1,2067 +0,0 @@
+-// Formatting library for C++ - chrono support
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_CHRONO_H_
+-#define FMT_CHRONO_H_
+-
+-#include <algorithm>
+-#include <chrono>
+-#include <ctime>
+-#include <iterator>
+-#include <locale>
+-#include <ostream>
+-#include <type_traits>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-
+-// Enable tzset.
+-#ifndef FMT_USE_TZSET
+-// UWP doesn't provide _tzset.
+-#  if FMT_HAS_INCLUDE("winapifamily.h")
+-#    include <winapifamily.h>
+-#  endif
+-#  if defined(_WIN32) && (!defined(WINAPI_FAMILY) || \
+-                          (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP))
+-#    define FMT_USE_TZSET 1
+-#  else
+-#    define FMT_USE_TZSET 0
+-#  endif
+-#endif
+-
+-// Enable safe chrono durations, unless explicitly disabled.
+-#ifndef FMT_SAFE_DURATION_CAST
+-#  define FMT_SAFE_DURATION_CAST 1
+-#endif
+-#if FMT_SAFE_DURATION_CAST
+-
+-// For conversion between std::chrono::durations without undefined
+-// behaviour or erroneous results.
+-// This is a stripped down version of duration_cast, for inclusion in fmt.
+-// See https://github.com/pauldreik/safe_duration_cast
+-//
+-// Copyright Paul Dreik 2019
+-namespace safe_duration_cast {
+-
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(!std::is_same<From, To>::value &&
+-                        std::numeric_limits<From>::is_signed ==
+-                            std::numeric_limits<To>::is_signed)>
+-FMT_CONSTEXPR To lossless_integral_conversion(const From from, int& ec) {
+-  ec = 0;
+-  using F = std::numeric_limits<From>;
+-  using T = std::numeric_limits<To>;
+-  static_assert(F::is_integer, "From must be integral");
+-  static_assert(T::is_integer, "To must be integral");
+-
+-  // A and B are both signed, or both unsigned.
+-  if (detail::const_check(F::digits <= T::digits)) {
+-    // From fits in To without any problem.
+-  } else {
+-    // From does not always fit in To, resort to a dynamic check.
+-    if (from < (T::min)() || from > (T::max)()) {
+-      // outside range.
+-      ec = 1;
+-      return {};
+-    }
+-  }
+-  return static_cast<To>(from);
+-}
+-
+-/**
+- * converts From to To, without loss. If the dynamic value of from
+- * can't be converted to To without loss, ec is set.
+- */
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(!std::is_same<From, To>::value &&
+-                        std::numeric_limits<From>::is_signed !=
+-                            std::numeric_limits<To>::is_signed)>
+-FMT_CONSTEXPR To lossless_integral_conversion(const From from, int& ec) {
+-  ec = 0;
+-  using F = std::numeric_limits<From>;
+-  using T = std::numeric_limits<To>;
+-  static_assert(F::is_integer, "From must be integral");
+-  static_assert(T::is_integer, "To must be integral");
+-
+-  if (detail::const_check(F::is_signed && !T::is_signed)) {
+-    // From may be negative, not allowed!
+-    if (fmt::detail::is_negative(from)) {
+-      ec = 1;
+-      return {};
+-    }
+-    // From is positive. Can it always fit in To?
+-    if (detail::const_check(F::digits > T::digits) &&
+-        from > static_cast<From>(detail::max_value<To>())) {
+-      ec = 1;
+-      return {};
+-    }
+-  }
+-
+-  if (detail::const_check(!F::is_signed && T::is_signed &&
+-                          F::digits >= T::digits) &&
+-      from > static_cast<From>(detail::max_value<To>())) {
+-    ec = 1;
+-    return {};
+-  }
+-  return static_cast<To>(from);  // Lossless conversion.
+-}
+-
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(std::is_same<From, To>::value)>
+-FMT_CONSTEXPR To lossless_integral_conversion(const From from, int& ec) {
+-  ec = 0;
+-  return from;
+-}  // function
+-
+-// clang-format off
+-/**
+- * converts From to To if possible, otherwise ec is set.
+- *
+- * input                            |    output
+- * ---------------------------------|---------------
+- * NaN                              | NaN
+- * Inf                              | Inf
+- * normal, fits in output           | converted (possibly lossy)
+- * normal, does not fit in output   | ec is set
+- * subnormal                        | best effort
+- * -Inf                             | -Inf
+- */
+-// clang-format on
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(!std::is_same<From, To>::value)>
+-FMT_CONSTEXPR To safe_float_conversion(const From from, int& ec) {
+-  ec = 0;
+-  using T = std::numeric_limits<To>;
+-  static_assert(std::is_floating_point<From>::value, "From must be floating");
+-  static_assert(std::is_floating_point<To>::value, "To must be floating");
+-
+-  // catch the only happy case
+-  if (std::isfinite(from)) {
+-    if (from >= T::lowest() && from <= (T::max)()) {
+-      return static_cast<To>(from);
+-    }
+-    // not within range.
+-    ec = 1;
+-    return {};
+-  }
+-
+-  // nan and inf will be preserved
+-  return static_cast<To>(from);
+-}  // function
+-
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(std::is_same<From, To>::value)>
+-FMT_CONSTEXPR To safe_float_conversion(const From from, int& ec) {
+-  ec = 0;
+-  static_assert(std::is_floating_point<From>::value, "From must be floating");
+-  return from;
+-}
+-
+-/**
+- * safe duration cast between integral durations
+- */
+-template <typename To, typename FromRep, typename FromPeriod,
+-          FMT_ENABLE_IF(std::is_integral<FromRep>::value),
+-          FMT_ENABLE_IF(std::is_integral<typename To::rep>::value)>
+-To safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from,
+-                      int& ec) {
+-  using From = std::chrono::duration<FromRep, FromPeriod>;
+-  ec = 0;
+-  // the basic idea is that we need to convert from count() in the from type
+-  // to count() in the To type, by multiplying it with this:
+-  struct Factor
+-      : std::ratio_divide<typename From::period, typename To::period> {};
+-
+-  static_assert(Factor::num > 0, "num must be positive");
+-  static_assert(Factor::den > 0, "den must be positive");
+-
+-  // the conversion is like this: multiply from.count() with Factor::num
+-  // /Factor::den and convert it to To::rep, all this without
+-  // overflow/underflow. let's start by finding a suitable type that can hold
+-  // both To, From and Factor::num
+-  using IntermediateRep =
+-      typename std::common_type<typename From::rep, typename To::rep,
+-                                decltype(Factor::num)>::type;
+-
+-  // safe conversion to IntermediateRep
+-  IntermediateRep count =
+-      lossless_integral_conversion<IntermediateRep>(from.count(), ec);
+-  if (ec) return {};
+-  // multiply with Factor::num without overflow or underflow
+-  if (detail::const_check(Factor::num != 1)) {
+-    const auto max1 = detail::max_value<IntermediateRep>() / Factor::num;
+-    if (count > max1) {
+-      ec = 1;
+-      return {};
+-    }
+-    const auto min1 =
+-        (std::numeric_limits<IntermediateRep>::min)() / Factor::num;
+-    if (count < min1) {
+-      ec = 1;
+-      return {};
+-    }
+-    count *= Factor::num;
+-  }
+-
+-  if (detail::const_check(Factor::den != 1)) count /= Factor::den;
+-  auto tocount = lossless_integral_conversion<typename To::rep>(count, ec);
+-  return ec ? To() : To(tocount);
+-}
+-
+-/**
+- * safe duration_cast between floating point durations
+- */
+-template <typename To, typename FromRep, typename FromPeriod,
+-          FMT_ENABLE_IF(std::is_floating_point<FromRep>::value),
+-          FMT_ENABLE_IF(std::is_floating_point<typename To::rep>::value)>
+-To safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from,
+-                      int& ec) {
+-  using From = std::chrono::duration<FromRep, FromPeriod>;
+-  ec = 0;
+-  if (std::isnan(from.count())) {
+-    // nan in, gives nan out. easy.
+-    return To{std::numeric_limits<typename To::rep>::quiet_NaN()};
+-  }
+-  // maybe we should also check if from is denormal, and decide what to do about
+-  // it.
+-
+-  // +-inf should be preserved.
+-  if (std::isinf(from.count())) {
+-    return To{from.count()};
+-  }
+-
+-  // the basic idea is that we need to convert from count() in the from type
+-  // to count() in the To type, by multiplying it with this:
+-  struct Factor
+-      : std::ratio_divide<typename From::period, typename To::period> {};
+-
+-  static_assert(Factor::num > 0, "num must be positive");
+-  static_assert(Factor::den > 0, "den must be positive");
+-
+-  // the conversion is like this: multiply from.count() with Factor::num
+-  // /Factor::den and convert it to To::rep, all this without
+-  // overflow/underflow. let's start by finding a suitable type that can hold
+-  // both To, From and Factor::num
+-  using IntermediateRep =
+-      typename std::common_type<typename From::rep, typename To::rep,
+-                                decltype(Factor::num)>::type;
+-
+-  // force conversion of From::rep -> IntermediateRep to be safe,
+-  // even if it will never happen be narrowing in this context.
+-  IntermediateRep count =
+-      safe_float_conversion<IntermediateRep>(from.count(), ec);
+-  if (ec) {
+-    return {};
+-  }
+-
+-  // multiply with Factor::num without overflow or underflow
+-  if (detail::const_check(Factor::num != 1)) {
+-    constexpr auto max1 = detail::max_value<IntermediateRep>() /
+-                          static_cast<IntermediateRep>(Factor::num);
+-    if (count > max1) {
+-      ec = 1;
+-      return {};
+-    }
+-    constexpr auto min1 = std::numeric_limits<IntermediateRep>::lowest() /
+-                          static_cast<IntermediateRep>(Factor::num);
+-    if (count < min1) {
+-      ec = 1;
+-      return {};
+-    }
+-    count *= static_cast<IntermediateRep>(Factor::num);
+-  }
+-
+-  // this can't go wrong, right? den>0 is checked earlier.
+-  if (detail::const_check(Factor::den != 1)) {
+-    using common_t = typename std::common_type<IntermediateRep, intmax_t>::type;
+-    count /= static_cast<common_t>(Factor::den);
+-  }
+-
+-  // convert to the to type, safely
+-  using ToRep = typename To::rep;
+-
+-  const ToRep tocount = safe_float_conversion<ToRep>(count, ec);
+-  if (ec) {
+-    return {};
+-  }
+-  return To{tocount};
+-}
+-}  // namespace safe_duration_cast
+-#endif
+-
+-// Prevents expansion of a preceding token as a function-style macro.
+-// Usage: f FMT_NOMACRO()
+-#define FMT_NOMACRO
+-
+-namespace detail {
+-template <typename T = void> struct null {};
+-inline null<> localtime_r FMT_NOMACRO(...) { return null<>(); }
+-inline null<> localtime_s(...) { return null<>(); }
+-inline null<> gmtime_r(...) { return null<>(); }
+-inline null<> gmtime_s(...) { return null<>(); }
+-
+-inline const std::locale& get_classic_locale() {
+-  static const auto& locale = std::locale::classic();
+-  return locale;
+-}
+-
+-template <typename CodeUnit> struct codecvt_result {
+-  static constexpr const size_t max_size = 32;
+-  CodeUnit buf[max_size];
+-  CodeUnit* end;
+-};
+-template <typename CodeUnit>
+-constexpr const size_t codecvt_result<CodeUnit>::max_size;
+-
+-template <typename CodeUnit>
+-void write_codecvt(codecvt_result<CodeUnit>& out, string_view in_buf,
+-                   const std::locale& loc) {
+-  using codecvt = std::codecvt<CodeUnit, char, std::mbstate_t>;
+-#if FMT_CLANG_VERSION
+-#  pragma clang diagnostic push
+-#  pragma clang diagnostic ignored "-Wdeprecated"
+-  auto& f = std::use_facet<codecvt>(loc);
+-#  pragma clang diagnostic pop
+-#else
+-  auto& f = std::use_facet<codecvt>(loc);
+-#endif
+-  auto mb = std::mbstate_t();
+-  const char* from_next = nullptr;
+-  auto result = f.in(mb, in_buf.begin(), in_buf.end(), from_next,
+-                     std::begin(out.buf), std::end(out.buf), out.end);
+-  if (result != std::codecvt_base::ok)
+-    FMT_THROW(format_error("failed to format time"));
+-}
+-
+-template <typename OutputIt>
+-auto write_encoded_tm_str(OutputIt out, string_view in, const std::locale& loc)
+-    -> OutputIt {
+-  if (detail::is_utf8() && loc != get_classic_locale()) {
+-    // char16_t and char32_t codecvts are broken in MSVC (linkage errors) and
+-    // gcc-4.
+-#if FMT_MSC_VER != 0 || \
+-    (defined(__GLIBCXX__) && !defined(_GLIBCXX_USE_DUAL_ABI))
+-    // The _GLIBCXX_USE_DUAL_ABI macro is always defined in libstdc++ from gcc-5
+-    // and newer.
+-    using code_unit = wchar_t;
+-#else
+-    using code_unit = char32_t;
+-#endif
+-
+-    using unit_t = codecvt_result<code_unit>;
+-    unit_t unit;
+-    write_codecvt(unit, in, loc);
+-    // In UTF-8 is used one to four one-byte code units.
+-    auto&& buf = basic_memory_buffer<char, unit_t::max_size * 4>();
+-    for (code_unit* p = unit.buf; p != unit.end; ++p) {
+-      uint32_t c = static_cast<uint32_t>(*p);
+-      if (sizeof(code_unit) == 2 && c >= 0xd800 && c <= 0xdfff) {
+-        // surrogate pair
+-        ++p;
+-        if (p == unit.end || (c & 0xfc00) != 0xd800 ||
+-            (*p & 0xfc00) != 0xdc00) {
+-          FMT_THROW(format_error("failed to format time"));
+-        }
+-        c = (c << 10) + static_cast<uint32_t>(*p) - 0x35fdc00;
+-      }
+-      if (c < 0x80) {
+-        buf.push_back(static_cast<char>(c));
+-      } else if (c < 0x800) {
+-        buf.push_back(static_cast<char>(0xc0 | (c >> 6)));
+-        buf.push_back(static_cast<char>(0x80 | (c & 0x3f)));
+-      } else if ((c >= 0x800 && c <= 0xd7ff) || (c >= 0xe000 && c <= 0xffff)) {
+-        buf.push_back(static_cast<char>(0xe0 | (c >> 12)));
+-        buf.push_back(static_cast<char>(0x80 | ((c & 0xfff) >> 6)));
+-        buf.push_back(static_cast<char>(0x80 | (c & 0x3f)));
+-      } else if (c >= 0x10000 && c <= 0x10ffff) {
+-        buf.push_back(static_cast<char>(0xf0 | (c >> 18)));
+-        buf.push_back(static_cast<char>(0x80 | ((c & 0x3ffff) >> 12)));
+-        buf.push_back(static_cast<char>(0x80 | ((c & 0xfff) >> 6)));
+-        buf.push_back(static_cast<char>(0x80 | (c & 0x3f)));
+-      } else {
+-        FMT_THROW(format_error("failed to format time"));
+-      }
+-    }
+-    return copy_str<char>(buf.data(), buf.data() + buf.size(), out);
+-  }
+-  return copy_str<char>(in.data(), in.data() + in.size(), out);
+-}
+-
+-template <typename Char, typename OutputIt,
+-          FMT_ENABLE_IF(!std::is_same<Char, char>::value)>
+-auto write_tm_str(OutputIt out, string_view sv, const std::locale& loc)
+-    -> OutputIt {
+-  codecvt_result<Char> unit;
+-  write_codecvt(unit, sv, loc);
+-  return copy_str<Char>(unit.buf, unit.end, out);
+-}
+-
+-template <typename Char, typename OutputIt,
+-          FMT_ENABLE_IF(std::is_same<Char, char>::value)>
+-auto write_tm_str(OutputIt out, string_view sv, const std::locale& loc)
+-    -> OutputIt {
+-  return write_encoded_tm_str(out, sv, loc);
+-}
+-
+-template <typename Char>
+-inline void do_write(buffer<Char>& buf, const std::tm& time,
+-                     const std::locale& loc, char format, char modifier) {
+-  auto&& format_buf = formatbuf<std::basic_streambuf<Char>>(buf);
+-  auto&& os = std::basic_ostream<Char>(&format_buf);
+-  os.imbue(loc);
+-  using iterator = std::ostreambuf_iterator<Char>;
+-  const auto& facet = std::use_facet<std::time_put<Char, iterator>>(loc);
+-  auto end = facet.put(os, os, Char(' '), &time, format, modifier);
+-  if (end.failed()) FMT_THROW(format_error("failed to format time"));
+-}
+-
+-template <typename Char, typename OutputIt,
+-          FMT_ENABLE_IF(!std::is_same<Char, char>::value)>
+-auto write(OutputIt out, const std::tm& time, const std::locale& loc,
+-           char format, char modifier = 0) -> OutputIt {
+-  auto&& buf = get_buffer<Char>(out);
+-  do_write<Char>(buf, time, loc, format, modifier);
+-  return buf.out();
+-}
+-
+-template <typename Char, typename OutputIt,
+-          FMT_ENABLE_IF(std::is_same<Char, char>::value)>
+-auto write(OutputIt out, const std::tm& time, const std::locale& loc,
+-           char format, char modifier = 0) -> OutputIt {
+-  auto&& buf = basic_memory_buffer<Char>();
+-  do_write<char>(buf, time, loc, format, modifier);
+-  return write_encoded_tm_str(out, string_view(buf.data(), buf.size()), loc);
+-}
+-
+-}  // namespace detail
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-/**
+-  Converts given time since epoch as ``std::time_t`` value into calendar time,
+-  expressed in local time. Unlike ``std::localtime``, this function is
+-  thread-safe on most platforms.
+- */
+-inline std::tm localtime(std::time_t time) {
+-  struct dispatcher {
+-    std::time_t time_;
+-    std::tm tm_;
+-
+-    dispatcher(std::time_t t) : time_(t) {}
+-
+-    bool run() {
+-      using namespace fmt::detail;
+-      return handle(localtime_r(&time_, &tm_));
+-    }
+-
+-    bool handle(std::tm* tm) { return tm != nullptr; }
+-
+-    bool handle(detail::null<>) {
+-      using namespace fmt::detail;
+-      return fallback(localtime_s(&tm_, &time_));
+-    }
+-
+-    bool fallback(int res) { return res == 0; }
+-
+-#if !FMT_MSC_VER
+-    bool fallback(detail::null<>) {
+-      using namespace fmt::detail;
+-      std::tm* tm = std::localtime(&time_);
+-      if (tm) tm_ = *tm;
+-      return tm != nullptr;
+-    }
+-#endif
+-  };
+-  dispatcher lt(time);
+-  // Too big time values may be unsupported.
+-  if (!lt.run()) FMT_THROW(format_error("time_t value out of range"));
+-  return lt.tm_;
+-}
+-
+-inline std::tm localtime(
+-    std::chrono::time_point<std::chrono::system_clock> time_point) {
+-  return localtime(std::chrono::system_clock::to_time_t(time_point));
+-}
+-
+-/**
+-  Converts given time since epoch as ``std::time_t`` value into calendar time,
+-  expressed in Coordinated Universal Time (UTC). Unlike ``std::gmtime``, this
+-  function is thread-safe on most platforms.
+- */
+-inline std::tm gmtime(std::time_t time) {
+-  struct dispatcher {
+-    std::time_t time_;
+-    std::tm tm_;
+-
+-    dispatcher(std::time_t t) : time_(t) {}
+-
+-    bool run() {
+-      using namespace fmt::detail;
+-      return handle(gmtime_r(&time_, &tm_));
+-    }
+-
+-    bool handle(std::tm* tm) { return tm != nullptr; }
+-
+-    bool handle(detail::null<>) {
+-      using namespace fmt::detail;
+-      return fallback(gmtime_s(&tm_, &time_));
+-    }
+-
+-    bool fallback(int res) { return res == 0; }
+-
+-#if !FMT_MSC_VER
+-    bool fallback(detail::null<>) {
+-      std::tm* tm = std::gmtime(&time_);
+-      if (tm) tm_ = *tm;
+-      return tm != nullptr;
+-    }
+-#endif
+-  };
+-  dispatcher gt(time);
+-  // Too big time values may be unsupported.
+-  if (!gt.run()) FMT_THROW(format_error("time_t value out of range"));
+-  return gt.tm_;
+-}
+-
+-inline std::tm gmtime(
+-    std::chrono::time_point<std::chrono::system_clock> time_point) {
+-  return gmtime(std::chrono::system_clock::to_time_t(time_point));
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// Writes two-digit numbers a, b and c separated by sep to buf.
+-// The method by Pavel Novikov based on
+-// https://johnnylee-sde.github.io/Fast-unsigned-integer-to-time-string/.
+-inline void write_digit2_separated(char* buf, unsigned a, unsigned b,
+-                                   unsigned c, char sep) {
+-  unsigned long long digits =
+-      a | (b << 24) | (static_cast<unsigned long long>(c) << 48);
+-  // Convert each value to BCD.
+-  // We have x = a * 10 + b and we want to convert it to BCD y = a * 16 + b.
+-  // The difference is
+-  //   y - x = a * 6
+-  // a can be found from x:
+-  //   a = floor(x / 10)
+-  // then
+-  //   y = x + a * 6 = x + floor(x / 10) * 6
+-  // floor(x / 10) is (x * 205) >> 11 (needs 16 bits).
+-  digits += (((digits * 205) >> 11) & 0x000f00000f00000f) * 6;
+-  // Put low nibbles to high bytes and high nibbles to low bytes.
+-  digits = ((digits & 0x00f00000f00000f0) >> 4) |
+-           ((digits & 0x000f00000f00000f) << 8);
+-  auto usep = static_cast<unsigned long long>(sep);
+-  // Add ASCII '0' to each digit byte and insert separators.
+-  digits |= 0x3030003030003030 | (usep << 16) | (usep << 40);
+-
+-  constexpr const size_t len = 8;
+-  if (const_check(is_big_endian())) {
+-    char tmp[len];
+-    memcpy(tmp, &digits, len);
+-    std::reverse_copy(tmp, tmp + len, buf);
+-  } else {
+-    memcpy(buf, &digits, len);
+-  }
+-}
+-
+-template <typename Period> FMT_CONSTEXPR inline const char* get_units() {
+-  if (std::is_same<Period, std::atto>::value) return "as";
+-  if (std::is_same<Period, std::femto>::value) return "fs";
+-  if (std::is_same<Period, std::pico>::value) return "ps";
+-  if (std::is_same<Period, std::nano>::value) return "ns";
+-  if (std::is_same<Period, std::micro>::value) return "µs";
+-  if (std::is_same<Period, std::milli>::value) return "ms";
+-  if (std::is_same<Period, std::centi>::value) return "cs";
+-  if (std::is_same<Period, std::deci>::value) return "ds";
+-  if (std::is_same<Period, std::ratio<1>>::value) return "s";
+-  if (std::is_same<Period, std::deca>::value) return "das";
+-  if (std::is_same<Period, std::hecto>::value) return "hs";
+-  if (std::is_same<Period, std::kilo>::value) return "ks";
+-  if (std::is_same<Period, std::mega>::value) return "Ms";
+-  if (std::is_same<Period, std::giga>::value) return "Gs";
+-  if (std::is_same<Period, std::tera>::value) return "Ts";
+-  if (std::is_same<Period, std::peta>::value) return "Ps";
+-  if (std::is_same<Period, std::exa>::value) return "Es";
+-  if (std::is_same<Period, std::ratio<60>>::value) return "m";
+-  if (std::is_same<Period, std::ratio<3600>>::value) return "h";
+-  return nullptr;
+-}
+-
+-enum class numeric_system {
+-  standard,
+-  // Alternative numeric system, e.g. 十二 instead of 12 in ja_JP locale.
+-  alternative
+-};
+-
+-// Parses a put_time-like format string and invokes handler actions.
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR const Char* parse_chrono_format(const Char* begin,
+-                                              const Char* end,
+-                                              Handler&& handler) {
+-  auto ptr = begin;
+-  while (ptr != end) {
+-    auto c = *ptr;
+-    if (c == '}') break;
+-    if (c != '%') {
+-      ++ptr;
+-      continue;
+-    }
+-    if (begin != ptr) handler.on_text(begin, ptr);
+-    ++ptr;  // consume '%'
+-    if (ptr == end) FMT_THROW(format_error("invalid format"));
+-    c = *ptr++;
+-    switch (c) {
+-    case '%':
+-      handler.on_text(ptr - 1, ptr);
+-      break;
+-    case 'n': {
+-      const Char newline[] = {'\n'};
+-      handler.on_text(newline, newline + 1);
+-      break;
+-    }
+-    case 't': {
+-      const Char tab[] = {'\t'};
+-      handler.on_text(tab, tab + 1);
+-      break;
+-    }
+-    // Year:
+-    case 'Y':
+-      handler.on_year(numeric_system::standard);
+-      break;
+-    case 'y':
+-      handler.on_short_year(numeric_system::standard);
+-      break;
+-    case 'C':
+-      handler.on_century(numeric_system::standard);
+-      break;
+-    case 'G':
+-      handler.on_iso_week_based_year();
+-      break;
+-    case 'g':
+-      handler.on_iso_week_based_short_year();
+-      break;
+-    // Day of the week:
+-    case 'a':
+-      handler.on_abbr_weekday();
+-      break;
+-    case 'A':
+-      handler.on_full_weekday();
+-      break;
+-    case 'w':
+-      handler.on_dec0_weekday(numeric_system::standard);
+-      break;
+-    case 'u':
+-      handler.on_dec1_weekday(numeric_system::standard);
+-      break;
+-    // Month:
+-    case 'b':
+-    case 'h':
+-      handler.on_abbr_month();
+-      break;
+-    case 'B':
+-      handler.on_full_month();
+-      break;
+-    case 'm':
+-      handler.on_dec_month(numeric_system::standard);
+-      break;
+-    // Day of the year/month:
+-    case 'U':
+-      handler.on_dec0_week_of_year(numeric_system::standard);
+-      break;
+-    case 'W':
+-      handler.on_dec1_week_of_year(numeric_system::standard);
+-      break;
+-    case 'V':
+-      handler.on_iso_week_of_year(numeric_system::standard);
+-      break;
+-    case 'j':
+-      handler.on_day_of_year();
+-      break;
+-    case 'd':
+-      handler.on_day_of_month(numeric_system::standard);
+-      break;
+-    case 'e':
+-      handler.on_day_of_month_space(numeric_system::standard);
+-      break;
+-    // Hour, minute, second:
+-    case 'H':
+-      handler.on_24_hour(numeric_system::standard);
+-      break;
+-    case 'I':
+-      handler.on_12_hour(numeric_system::standard);
+-      break;
+-    case 'M':
+-      handler.on_minute(numeric_system::standard);
+-      break;
+-    case 'S':
+-      handler.on_second(numeric_system::standard);
+-      break;
+-    // Other:
+-    case 'c':
+-      handler.on_datetime(numeric_system::standard);
+-      break;
+-    case 'x':
+-      handler.on_loc_date(numeric_system::standard);
+-      break;
+-    case 'X':
+-      handler.on_loc_time(numeric_system::standard);
+-      break;
+-    case 'D':
+-      handler.on_us_date();
+-      break;
+-    case 'F':
+-      handler.on_iso_date();
+-      break;
+-    case 'r':
+-      handler.on_12_hour_time();
+-      break;
+-    case 'R':
+-      handler.on_24_hour_time();
+-      break;
+-    case 'T':
+-      handler.on_iso_time();
+-      break;
+-    case 'p':
+-      handler.on_am_pm();
+-      break;
+-    case 'Q':
+-      handler.on_duration_value();
+-      break;
+-    case 'q':
+-      handler.on_duration_unit();
+-      break;
+-    case 'z':
+-      handler.on_utc_offset();
+-      break;
+-    case 'Z':
+-      handler.on_tz_name();
+-      break;
+-    // Alternative representation:
+-    case 'E': {
+-      if (ptr == end) FMT_THROW(format_error("invalid format"));
+-      c = *ptr++;
+-      switch (c) {
+-      case 'Y':
+-        handler.on_year(numeric_system::alternative);
+-        break;
+-      case 'y':
+-        handler.on_offset_year();
+-        break;
+-      case 'C':
+-        handler.on_century(numeric_system::alternative);
+-        break;
+-      case 'c':
+-        handler.on_datetime(numeric_system::alternative);
+-        break;
+-      case 'x':
+-        handler.on_loc_date(numeric_system::alternative);
+-        break;
+-      case 'X':
+-        handler.on_loc_time(numeric_system::alternative);
+-        break;
+-      default:
+-        FMT_THROW(format_error("invalid format"));
+-      }
+-      break;
+-    }
+-    case 'O':
+-      if (ptr == end) FMT_THROW(format_error("invalid format"));
+-      c = *ptr++;
+-      switch (c) {
+-      case 'y':
+-        handler.on_short_year(numeric_system::alternative);
+-        break;
+-      case 'm':
+-        handler.on_dec_month(numeric_system::alternative);
+-        break;
+-      case 'U':
+-        handler.on_dec0_week_of_year(numeric_system::alternative);
+-        break;
+-      case 'W':
+-        handler.on_dec1_week_of_year(numeric_system::alternative);
+-        break;
+-      case 'V':
+-        handler.on_iso_week_of_year(numeric_system::alternative);
+-        break;
+-      case 'd':
+-        handler.on_day_of_month(numeric_system::alternative);
+-        break;
+-      case 'e':
+-        handler.on_day_of_month_space(numeric_system::alternative);
+-        break;
+-      case 'w':
+-        handler.on_dec0_weekday(numeric_system::alternative);
+-        break;
+-      case 'u':
+-        handler.on_dec1_weekday(numeric_system::alternative);
+-        break;
+-      case 'H':
+-        handler.on_24_hour(numeric_system::alternative);
+-        break;
+-      case 'I':
+-        handler.on_12_hour(numeric_system::alternative);
+-        break;
+-      case 'M':
+-        handler.on_minute(numeric_system::alternative);
+-        break;
+-      case 'S':
+-        handler.on_second(numeric_system::alternative);
+-        break;
+-      default:
+-        FMT_THROW(format_error("invalid format"));
+-      }
+-      break;
+-    default:
+-      FMT_THROW(format_error("invalid format"));
+-    }
+-    begin = ptr;
+-  }
+-  if (begin != ptr) handler.on_text(begin, ptr);
+-  return ptr;
+-}
+-
+-template <typename Derived> struct null_chrono_spec_handler {
+-  FMT_CONSTEXPR void unsupported() {
+-    static_cast<Derived*>(this)->unsupported();
+-  }
+-  FMT_CONSTEXPR void on_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_short_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_offset_year() { unsupported(); }
+-  FMT_CONSTEXPR void on_century(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_week_based_year() { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_week_based_short_year() { unsupported(); }
+-  FMT_CONSTEXPR void on_abbr_weekday() { unsupported(); }
+-  FMT_CONSTEXPR void on_full_weekday() { unsupported(); }
+-  FMT_CONSTEXPR void on_dec0_weekday(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_dec1_weekday(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_abbr_month() { unsupported(); }
+-  FMT_CONSTEXPR void on_full_month() { unsupported(); }
+-  FMT_CONSTEXPR void on_dec_month(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_dec0_week_of_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_dec1_week_of_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_week_of_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_day_of_year() { unsupported(); }
+-  FMT_CONSTEXPR void on_day_of_month(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_day_of_month_space(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_24_hour(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_12_hour(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_minute(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_second(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_datetime(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_loc_date(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_loc_time(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_us_date() { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_date() { unsupported(); }
+-  FMT_CONSTEXPR void on_12_hour_time() { unsupported(); }
+-  FMT_CONSTEXPR void on_24_hour_time() { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_time() { unsupported(); }
+-  FMT_CONSTEXPR void on_am_pm() { unsupported(); }
+-  FMT_CONSTEXPR void on_duration_value() { unsupported(); }
+-  FMT_CONSTEXPR void on_duration_unit() { unsupported(); }
+-  FMT_CONSTEXPR void on_utc_offset() { unsupported(); }
+-  FMT_CONSTEXPR void on_tz_name() { unsupported(); }
+-};
+-
+-struct tm_format_checker : null_chrono_spec_handler<tm_format_checker> {
+-  FMT_NORETURN void unsupported() { FMT_THROW(format_error("no format")); }
+-
+-  template <typename Char>
+-  FMT_CONSTEXPR void on_text(const Char*, const Char*) {}
+-  FMT_CONSTEXPR void on_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_short_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_offset_year() {}
+-  FMT_CONSTEXPR void on_century(numeric_system) {}
+-  FMT_CONSTEXPR void on_iso_week_based_year() {}
+-  FMT_CONSTEXPR void on_iso_week_based_short_year() {}
+-  FMT_CONSTEXPR void on_abbr_weekday() {}
+-  FMT_CONSTEXPR void on_full_weekday() {}
+-  FMT_CONSTEXPR void on_dec0_weekday(numeric_system) {}
+-  FMT_CONSTEXPR void on_dec1_weekday(numeric_system) {}
+-  FMT_CONSTEXPR void on_abbr_month() {}
+-  FMT_CONSTEXPR void on_full_month() {}
+-  FMT_CONSTEXPR void on_dec_month(numeric_system) {}
+-  FMT_CONSTEXPR void on_dec0_week_of_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_dec1_week_of_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_iso_week_of_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_day_of_year() {}
+-  FMT_CONSTEXPR void on_day_of_month(numeric_system) {}
+-  FMT_CONSTEXPR void on_day_of_month_space(numeric_system) {}
+-  FMT_CONSTEXPR void on_24_hour(numeric_system) {}
+-  FMT_CONSTEXPR void on_12_hour(numeric_system) {}
+-  FMT_CONSTEXPR void on_minute(numeric_system) {}
+-  FMT_CONSTEXPR void on_second(numeric_system) {}
+-  FMT_CONSTEXPR void on_datetime(numeric_system) {}
+-  FMT_CONSTEXPR void on_loc_date(numeric_system) {}
+-  FMT_CONSTEXPR void on_loc_time(numeric_system) {}
+-  FMT_CONSTEXPR void on_us_date() {}
+-  FMT_CONSTEXPR void on_iso_date() {}
+-  FMT_CONSTEXPR void on_12_hour_time() {}
+-  FMT_CONSTEXPR void on_24_hour_time() {}
+-  FMT_CONSTEXPR void on_iso_time() {}
+-  FMT_CONSTEXPR void on_am_pm() {}
+-  FMT_CONSTEXPR void on_utc_offset() {}
+-  FMT_CONSTEXPR void on_tz_name() {}
+-};
+-
+-inline const char* tm_wday_full_name(int wday) {
+-  static constexpr const char* full_name_list[] = {
+-      "Sunday",   "Monday", "Tuesday", "Wednesday",
+-      "Thursday", "Friday", "Saturday"};
+-  return wday >= 0 && wday <= 6 ? full_name_list[wday] : "?";
+-}
+-inline const char* tm_wday_short_name(int wday) {
+-  static constexpr const char* short_name_list[] = {"Sun", "Mon", "Tue", "Wed",
+-                                                    "Thu", "Fri", "Sat"};
+-  return wday >= 0 && wday <= 6 ? short_name_list[wday] : "???";
+-}
+-
+-inline const char* tm_mon_full_name(int mon) {
+-  static constexpr const char* full_name_list[] = {
+-      "January", "February", "March",     "April",   "May",      "June",
+-      "July",    "August",   "September", "October", "November", "December"};
+-  return mon >= 0 && mon <= 11 ? full_name_list[mon] : "?";
+-}
+-inline const char* tm_mon_short_name(int mon) {
+-  static constexpr const char* short_name_list[] = {
+-      "Jan", "Feb", "Mar", "Apr", "May", "Jun",
+-      "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
+-  };
+-  return mon >= 0 && mon <= 11 ? short_name_list[mon] : "???";
+-}
+-
+-template <typename T, typename = void>
+-struct has_member_data_tm_gmtoff : std::false_type {};
+-template <typename T>
+-struct has_member_data_tm_gmtoff<T, void_t<decltype(T::tm_gmtoff)>>
+-    : std::true_type {};
+-
+-template <typename T, typename = void>
+-struct has_member_data_tm_zone : std::false_type {};
+-template <typename T>
+-struct has_member_data_tm_zone<T, void_t<decltype(T::tm_zone)>>
+-    : std::true_type {};
+-
+-#if FMT_USE_TZSET
+-inline void tzset_once() {
+-  static bool init = []() -> bool {
+-    _tzset();
+-    return true;
+-  }();
+-  ignore_unused(init);
+-}
+-#endif
+-
+-template <typename OutputIt, typename Char> class tm_writer {
+- private:
+-  static constexpr int days_per_week = 7;
+-
+-  const std::locale& loc_;
+-  const bool is_classic_;
+-  OutputIt out_;
+-  const std::tm& tm_;
+-
+-  auto tm_sec() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_sec >= 0 && tm_.tm_sec <= 61, "");
+-    return tm_.tm_sec;
+-  }
+-  auto tm_min() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_min >= 0 && tm_.tm_min <= 59, "");
+-    return tm_.tm_min;
+-  }
+-  auto tm_hour() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_hour >= 0 && tm_.tm_hour <= 23, "");
+-    return tm_.tm_hour;
+-  }
+-  auto tm_mday() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_mday >= 1 && tm_.tm_mday <= 31, "");
+-    return tm_.tm_mday;
+-  }
+-  auto tm_mon() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_mon >= 0 && tm_.tm_mon <= 11, "");
+-    return tm_.tm_mon;
+-  }
+-  auto tm_year() const noexcept -> long long { return 1900ll + tm_.tm_year; }
+-  auto tm_wday() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_wday >= 0 && tm_.tm_wday <= 6, "");
+-    return tm_.tm_wday;
+-  }
+-  auto tm_yday() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_yday >= 0 && tm_.tm_yday <= 365, "");
+-    return tm_.tm_yday;
+-  }
+-
+-  auto tm_hour12() const noexcept -> int {
+-    const auto h = tm_hour();
+-    const auto z = h < 12 ? h : h - 12;
+-    return z == 0 ? 12 : z;
+-  }
+-
+-  // POSIX and the C Standard are unclear or inconsistent about what %C and %y
+-  // do if the year is negative or exceeds 9999. Use the convention that %C
+-  // concatenated with %y yields the same output as %Y, and that %Y contains at
+-  // least 4 characters, with more only if necessary.
+-  auto split_year_lower(long long year) const noexcept -> int {
+-    auto l = year % 100;
+-    if (l < 0) l = -l;  // l in [0, 99]
+-    return static_cast<int>(l);
+-  }
+-
+-  // Algorithm:
+-  // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_the_week_number_from_a_month_and_day_of_the_month_or_ordinal_date
+-  auto iso_year_weeks(long long curr_year) const noexcept -> int {
+-    const auto prev_year = curr_year - 1;
+-    const auto curr_p =
+-        (curr_year + curr_year / 4 - curr_year / 100 + curr_year / 400) %
+-        days_per_week;
+-    const auto prev_p =
+-        (prev_year + prev_year / 4 - prev_year / 100 + prev_year / 400) %
+-        days_per_week;
+-    return 52 + ((curr_p == 4 || prev_p == 3) ? 1 : 0);
+-  }
+-  auto iso_week_num(int tm_yday, int tm_wday) const noexcept -> int {
+-    return (tm_yday + 11 - (tm_wday == 0 ? days_per_week : tm_wday)) /
+-           days_per_week;
+-  }
+-  auto tm_iso_week_year() const noexcept -> long long {
+-    const auto year = tm_year();
+-    const auto w = iso_week_num(tm_yday(), tm_wday());
+-    if (w < 1) return year - 1;
+-    if (w > iso_year_weeks(year)) return year + 1;
+-    return year;
+-  }
+-  auto tm_iso_week_of_year() const noexcept -> int {
+-    const auto year = tm_year();
+-    const auto w = iso_week_num(tm_yday(), tm_wday());
+-    if (w < 1) return iso_year_weeks(year - 1);
+-    if (w > iso_year_weeks(year)) return 1;
+-    return w;
+-  }
+-
+-  void write1(int value) {
+-    *out_++ = static_cast<char>('0' + to_unsigned(value) % 10);
+-  }
+-  void write2(int value) {
+-    const char* d = digits2(to_unsigned(value) % 100);
+-    *out_++ = *d++;
+-    *out_++ = *d;
+-  }
+-
+-  void write_year_extended(long long year) {
+-    // At least 4 characters.
+-    int width = 4;
+-    if (year < 0) {
+-      *out_++ = '-';
+-      year = 0 - year;
+-      --width;
+-    }
+-    uint32_or_64_or_128_t<long long> n = to_unsigned(year);
+-    const int num_digits = count_digits(n);
+-    if (width > num_digits) out_ = std::fill_n(out_, width - num_digits, '0');
+-    out_ = format_decimal<Char>(out_, n, num_digits).end;
+-  }
+-  void write_year(long long year) {
+-    if (year >= 0 && year < 10000) {
+-      write2(static_cast<int>(year / 100));
+-      write2(static_cast<int>(year % 100));
+-    } else {
+-      write_year_extended(year);
+-    }
+-  }
+-
+-  void write_utc_offset(long offset) {
+-    if (offset < 0) {
+-      *out_++ = '-';
+-      offset = -offset;
+-    } else {
+-      *out_++ = '+';
+-    }
+-    offset /= 60;
+-    write2(static_cast<int>(offset / 60));
+-    write2(static_cast<int>(offset % 60));
+-  }
+-  template <typename T, FMT_ENABLE_IF(has_member_data_tm_gmtoff<T>::value)>
+-  void format_utc_offset_impl(const T& tm) {
+-    write_utc_offset(tm.tm_gmtoff);
+-  }
+-  template <typename T, FMT_ENABLE_IF(!has_member_data_tm_gmtoff<T>::value)>
+-  void format_utc_offset_impl(const T& tm) {
+-#if defined(_WIN32) && defined(_UCRT)
+-#  if FMT_USE_TZSET
+-    tzset_once();
+-#  endif
+-    long offset = 0;
+-    _get_timezone(&offset);
+-    if (tm.tm_isdst) {
+-      long dstbias = 0;
+-      _get_dstbias(&dstbias);
+-      offset += dstbias;
+-    }
+-    write_utc_offset(-offset);
+-#else
+-    ignore_unused(tm);
+-    format_localized('z');
+-#endif
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(has_member_data_tm_zone<T>::value)>
+-  void format_tz_name_impl(const T& tm) {
+-    if (is_classic_)
+-      out_ = write_tm_str<Char>(out_, tm.tm_zone, loc_);
+-    else
+-      format_localized('Z');
+-  }
+-  template <typename T, FMT_ENABLE_IF(!has_member_data_tm_zone<T>::value)>
+-  void format_tz_name_impl(const T&) {
+-    format_localized('Z');
+-  }
+-
+-  void format_localized(char format, char modifier = 0) {
+-    out_ = write<Char>(out_, tm_, loc_, format, modifier);
+-  }
+-
+- public:
+-  tm_writer(const std::locale& loc, OutputIt out, const std::tm& tm)
+-      : loc_(loc),
+-        is_classic_(loc_ == get_classic_locale()),
+-        out_(out),
+-        tm_(tm) {}
+-
+-  OutputIt out() const { return out_; }
+-
+-  FMT_CONSTEXPR void on_text(const Char* begin, const Char* end) {
+-    out_ = copy_str<Char>(begin, end, out_);
+-  }
+-
+-  void on_abbr_weekday() {
+-    if (is_classic_)
+-      out_ = write(out_, tm_wday_short_name(tm_wday()));
+-    else
+-      format_localized('a');
+-  }
+-  void on_full_weekday() {
+-    if (is_classic_)
+-      out_ = write(out_, tm_wday_full_name(tm_wday()));
+-    else
+-      format_localized('A');
+-  }
+-  void on_dec0_weekday(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write1(tm_wday());
+-    format_localized('w', 'O');
+-  }
+-  void on_dec1_weekday(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) {
+-      auto wday = tm_wday();
+-      write1(wday == 0 ? days_per_week : wday);
+-    } else {
+-      format_localized('u', 'O');
+-    }
+-  }
+-
+-  void on_abbr_month() {
+-    if (is_classic_)
+-      out_ = write(out_, tm_mon_short_name(tm_mon()));
+-    else
+-      format_localized('b');
+-  }
+-  void on_full_month() {
+-    if (is_classic_)
+-      out_ = write(out_, tm_mon_full_name(tm_mon()));
+-    else
+-      format_localized('B');
+-  }
+-
+-  void on_datetime(numeric_system ns) {
+-    if (is_classic_) {
+-      on_abbr_weekday();
+-      *out_++ = ' ';
+-      on_abbr_month();
+-      *out_++ = ' ';
+-      on_day_of_month_space(numeric_system::standard);
+-      *out_++ = ' ';
+-      on_iso_time();
+-      *out_++ = ' ';
+-      on_year(numeric_system::standard);
+-    } else {
+-      format_localized('c', ns == numeric_system::standard ? '\0' : 'E');
+-    }
+-  }
+-  void on_loc_date(numeric_system ns) {
+-    if (is_classic_)
+-      on_us_date();
+-    else
+-      format_localized('x', ns == numeric_system::standard ? '\0' : 'E');
+-  }
+-  void on_loc_time(numeric_system ns) {
+-    if (is_classic_)
+-      on_iso_time();
+-    else
+-      format_localized('X', ns == numeric_system::standard ? '\0' : 'E');
+-  }
+-  void on_us_date() {
+-    char buf[8];
+-    write_digit2_separated(buf, to_unsigned(tm_mon() + 1),
+-                           to_unsigned(tm_mday()),
+-                           to_unsigned(split_year_lower(tm_year())), '/');
+-    out_ = copy_str<Char>(std::begin(buf), std::end(buf), out_);
+-  }
+-  void on_iso_date() {
+-    auto year = tm_year();
+-    char buf[10];
+-    size_t offset = 0;
+-    if (year >= 0 && year < 10000) {
+-      copy2(buf, digits2(to_unsigned(year / 100)));
+-    } else {
+-      offset = 4;
+-      write_year_extended(year);
+-      year = 0;
+-    }
+-    write_digit2_separated(buf + 2, static_cast<unsigned>(year % 100),
+-                           to_unsigned(tm_mon() + 1), to_unsigned(tm_mday()),
+-                           '-');
+-    out_ = copy_str<Char>(std::begin(buf) + offset, std::end(buf), out_);
+-  }
+-
+-  void on_utc_offset() { format_utc_offset_impl(tm_); }
+-  void on_tz_name() { format_tz_name_impl(tm_); }
+-
+-  void on_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write_year(tm_year());
+-    format_localized('Y', 'E');
+-  }
+-  void on_short_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2(split_year_lower(tm_year()));
+-    format_localized('y', 'O');
+-  }
+-  void on_offset_year() {
+-    if (is_classic_) return write2(split_year_lower(tm_year()));
+-    format_localized('y', 'E');
+-  }
+-
+-  void on_century(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) {
+-      auto year = tm_year();
+-      auto upper = year / 100;
+-      if (year >= -99 && year < 0) {
+-        // Zero upper on negative year.
+-        *out_++ = '-';
+-        *out_++ = '0';
+-      } else if (upper >= 0 && upper < 100) {
+-        write2(static_cast<int>(upper));
+-      } else {
+-        out_ = write<Char>(out_, upper);
+-      }
+-    } else {
+-      format_localized('C', 'E');
+-    }
+-  }
+-
+-  void on_dec_month(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2(tm_mon() + 1);
+-    format_localized('m', 'O');
+-  }
+-
+-  void on_dec0_week_of_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2((tm_yday() + days_per_week - tm_wday()) / days_per_week);
+-    format_localized('U', 'O');
+-  }
+-  void on_dec1_week_of_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) {
+-      auto wday = tm_wday();
+-      write2((tm_yday() + days_per_week -
+-              (wday == 0 ? (days_per_week - 1) : (wday - 1))) /
+-             days_per_week);
+-    } else {
+-      format_localized('W', 'O');
+-    }
+-  }
+-  void on_iso_week_of_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2(tm_iso_week_of_year());
+-    format_localized('V', 'O');
+-  }
+-
+-  void on_iso_week_based_year() { write_year(tm_iso_week_year()); }
+-  void on_iso_week_based_short_year() {
+-    write2(split_year_lower(tm_iso_week_year()));
+-  }
+-
+-  void on_day_of_year() {
+-    auto yday = tm_yday() + 1;
+-    write1(yday / 100);
+-    write2(yday % 100);
+-  }
+-  void on_day_of_month(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write2(tm_mday());
+-    format_localized('d', 'O');
+-  }
+-  void on_day_of_month_space(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) {
+-      auto mday = to_unsigned(tm_mday()) % 100;
+-      const char* d2 = digits2(mday);
+-      *out_++ = mday < 10 ? ' ' : d2[0];
+-      *out_++ = d2[1];
+-    } else {
+-      format_localized('e', 'O');
+-    }
+-  }
+-
+-  void on_24_hour(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write2(tm_hour());
+-    format_localized('H', 'O');
+-  }
+-  void on_12_hour(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2(tm_hour12());
+-    format_localized('I', 'O');
+-  }
+-  void on_minute(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write2(tm_min());
+-    format_localized('M', 'O');
+-  }
+-  void on_second(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write2(tm_sec());
+-    format_localized('S', 'O');
+-  }
+-
+-  void on_12_hour_time() {
+-    if (is_classic_) {
+-      char buf[8];
+-      write_digit2_separated(buf, to_unsigned(tm_hour12()),
+-                             to_unsigned(tm_min()), to_unsigned(tm_sec()), ':');
+-      out_ = copy_str<Char>(std::begin(buf), std::end(buf), out_);
+-      *out_++ = ' ';
+-      on_am_pm();
+-    } else {
+-      format_localized('r');
+-    }
+-  }
+-  void on_24_hour_time() {
+-    write2(tm_hour());
+-    *out_++ = ':';
+-    write2(tm_min());
+-  }
+-  void on_iso_time() {
+-    char buf[8];
+-    write_digit2_separated(buf, to_unsigned(tm_hour()), to_unsigned(tm_min()),
+-                           to_unsigned(tm_sec()), ':');
+-    out_ = copy_str<Char>(std::begin(buf), std::end(buf), out_);
+-  }
+-
+-  void on_am_pm() {
+-    if (is_classic_) {
+-      *out_++ = tm_hour() < 12 ? 'A' : 'P';
+-      *out_++ = 'M';
+-    } else {
+-      format_localized('p');
+-    }
+-  }
+-
+-  // These apply to chrono durations but not tm.
+-  void on_duration_value() {}
+-  void on_duration_unit() {}
+-};
+-
+-struct chrono_format_checker : null_chrono_spec_handler<chrono_format_checker> {
+-  FMT_NORETURN void unsupported() { FMT_THROW(format_error("no date")); }
+-
+-  template <typename Char>
+-  FMT_CONSTEXPR void on_text(const Char*, const Char*) {}
+-  FMT_CONSTEXPR void on_24_hour(numeric_system) {}
+-  FMT_CONSTEXPR void on_12_hour(numeric_system) {}
+-  FMT_CONSTEXPR void on_minute(numeric_system) {}
+-  FMT_CONSTEXPR void on_second(numeric_system) {}
+-  FMT_CONSTEXPR void on_12_hour_time() {}
+-  FMT_CONSTEXPR void on_24_hour_time() {}
+-  FMT_CONSTEXPR void on_iso_time() {}
+-  FMT_CONSTEXPR void on_am_pm() {}
+-  FMT_CONSTEXPR void on_duration_value() {}
+-  FMT_CONSTEXPR void on_duration_unit() {}
+-};
+-
+-template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-inline bool isnan(T) {
+-  return false;
+-}
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-inline bool isnan(T value) {
+-  return std::isnan(value);
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-inline bool isfinite(T) {
+-  return true;
+-}
+-
+-// Converts value to Int and checks that it's in the range [0, upper).
+-template <typename T, typename Int, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-inline Int to_nonnegative_int(T value, Int upper) {
+-  FMT_ASSERT(value >= 0 && to_unsigned(value) <= to_unsigned(upper),
+-             "invalid value");
+-  (void)upper;
+-  return static_cast<Int>(value);
+-}
+-template <typename T, typename Int, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-inline Int to_nonnegative_int(T value, Int upper) {
+-  if (value < 0 || value > static_cast<T>(upper))
+-    FMT_THROW(format_error("invalid value"));
+-  return static_cast<Int>(value);
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-inline T mod(T x, int y) {
+-  return x % static_cast<T>(y);
+-}
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-inline T mod(T x, int y) {
+-  return std::fmod(x, static_cast<T>(y));
+-}
+-
+-// If T is an integral type, maps T to its unsigned counterpart, otherwise
+-// leaves it unchanged (unlike std::make_unsigned).
+-template <typename T, bool INTEGRAL = std::is_integral<T>::value>
+-struct make_unsigned_or_unchanged {
+-  using type = T;
+-};
+-
+-template <typename T> struct make_unsigned_or_unchanged<T, true> {
+-  using type = typename std::make_unsigned<T>::type;
+-};
+-
+-#if FMT_SAFE_DURATION_CAST
+-// throwing version of safe_duration_cast
+-template <typename To, typename FromRep, typename FromPeriod>
+-To fmt_safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from) {
+-  int ec;
+-  To to = safe_duration_cast::safe_duration_cast<To>(from, ec);
+-  if (ec) FMT_THROW(format_error("cannot format duration"));
+-  return to;
+-}
+-#endif
+-
+-template <typename Rep, typename Period,
+-          FMT_ENABLE_IF(std::is_integral<Rep>::value)>
+-inline std::chrono::duration<Rep, std::milli> get_milliseconds(
+-    std::chrono::duration<Rep, Period> d) {
+-  // this may overflow and/or the result may not fit in the
+-  // target type.
+-#if FMT_SAFE_DURATION_CAST
+-  using CommonSecondsType =
+-      typename std::common_type<decltype(d), std::chrono::seconds>::type;
+-  const auto d_as_common = fmt_safe_duration_cast<CommonSecondsType>(d);
+-  const auto d_as_whole_seconds =
+-      fmt_safe_duration_cast<std::chrono::seconds>(d_as_common);
+-  // this conversion should be nonproblematic
+-  const auto diff = d_as_common - d_as_whole_seconds;
+-  const auto ms =
+-      fmt_safe_duration_cast<std::chrono::duration<Rep, std::milli>>(diff);
+-  return ms;
+-#else
+-  auto s = std::chrono::duration_cast<std::chrono::seconds>(d);
+-  return std::chrono::duration_cast<std::chrono::milliseconds>(d - s);
+-#endif
+-}
+-
+-// Returns the number of fractional digits in the range [0, 18] according to the
+-// C++20 spec. If more than 18 fractional digits are required then returns 6 for
+-// microseconds precision.
+-constexpr int count_fractional_digits(long long num, long long den, int n = 0) {
+-  return num % den == 0
+-             ? n
+-             : (n > 18 ? 6 : count_fractional_digits(num * 10, den, n + 1));
+-}
+-
+-constexpr long long pow10(std::uint32_t n) {
+-  return n == 0 ? 1 : 10 * pow10(n - 1);
+-}
+-
+-template <class Rep, class Period,
+-          FMT_ENABLE_IF(std::numeric_limits<Rep>::is_signed)>
+-constexpr std::chrono::duration<Rep, Period> abs(
+-    std::chrono::duration<Rep, Period> d) {
+-  // We need to compare the duration using the count() method directly
+-  // due to a compiler bug in clang-11 regarding the spaceship operator,
+-  // when -Wzero-as-null-pointer-constant is enabled.
+-  // In clang-12 the bug has been fixed. See
+-  // https://bugs.llvm.org/show_bug.cgi?id=46235 and the reproducible example:
+-  // https://www.godbolt.org/z/Knbb5joYx.
+-  return d.count() >= d.zero().count() ? d : -d;
+-}
+-
+-template <class Rep, class Period,
+-          FMT_ENABLE_IF(!std::numeric_limits<Rep>::is_signed)>
+-constexpr std::chrono::duration<Rep, Period> abs(
+-    std::chrono::duration<Rep, Period> d) {
+-  return d;
+-}
+-
+-template <typename Char, typename Rep, typename OutputIt,
+-          FMT_ENABLE_IF(std::is_integral<Rep>::value)>
+-OutputIt format_duration_value(OutputIt out, Rep val, int) {
+-  return write<Char>(out, val);
+-}
+-
+-template <typename Char, typename Rep, typename OutputIt,
+-          FMT_ENABLE_IF(std::is_floating_point<Rep>::value)>
+-OutputIt format_duration_value(OutputIt out, Rep val, int precision) {
+-  auto specs = basic_format_specs<Char>();
+-  specs.precision = precision;
+-  specs.type = precision >= 0 ? presentation_type::fixed_lower
+-                              : presentation_type::general_lower;
+-  return write<Char>(out, val, specs);
+-}
+-
+-template <typename Char, typename OutputIt>
+-OutputIt copy_unit(string_view unit, OutputIt out, Char) {
+-  return std::copy(unit.begin(), unit.end(), out);
+-}
+-
+-template <typename OutputIt>
+-OutputIt copy_unit(string_view unit, OutputIt out, wchar_t) {
+-  // This works when wchar_t is UTF-32 because units only contain characters
+-  // that have the same representation in UTF-16 and UTF-32.
+-  utf8_to_utf16 u(unit);
+-  return std::copy(u.c_str(), u.c_str() + u.size(), out);
+-}
+-
+-template <typename Char, typename Period, typename OutputIt>
+-OutputIt format_duration_unit(OutputIt out) {
+-  if (const char* unit = get_units<Period>())
+-    return copy_unit(string_view(unit), out, Char());
+-  *out++ = '[';
+-  out = write<Char>(out, Period::num);
+-  if (const_check(Period::den != 1)) {
+-    *out++ = '/';
+-    out = write<Char>(out, Period::den);
+-  }
+-  *out++ = ']';
+-  *out++ = 's';
+-  return out;
+-}
+-
+-class get_locale {
+- private:
+-  union {
+-    std::locale locale_;
+-  };
+-  bool has_locale_ = false;
+-
+- public:
+-  get_locale(bool localized, locale_ref loc) : has_locale_(localized) {
+-    if (localized)
+-      ::new (&locale_) std::locale(loc.template get<std::locale>());
+-  }
+-  ~get_locale() {
+-    if (has_locale_) locale_.~locale();
+-  }
+-  operator const std::locale&() const {
+-    return has_locale_ ? locale_ : get_classic_locale();
+-  }
+-};
+-
+-template <typename FormatContext, typename OutputIt, typename Rep,
+-          typename Period>
+-struct chrono_formatter {
+-  FormatContext& context;
+-  OutputIt out;
+-  int precision;
+-  bool localized = false;
+-  // rep is unsigned to avoid overflow.
+-  using rep =
+-      conditional_t<std::is_integral<Rep>::value && sizeof(Rep) < sizeof(int),
+-                    unsigned, typename make_unsigned_or_unchanged<Rep>::type>;
+-  rep val;
+-  using seconds = std::chrono::duration<rep>;
+-  seconds s;
+-  using milliseconds = std::chrono::duration<rep, std::milli>;
+-  bool negative;
+-
+-  using char_type = typename FormatContext::char_type;
+-  using tm_writer_type = tm_writer<OutputIt, char_type>;
+-
+-  chrono_formatter(FormatContext& ctx, OutputIt o,
+-                   std::chrono::duration<Rep, Period> d)
+-      : context(ctx),
+-        out(o),
+-        val(static_cast<rep>(d.count())),
+-        negative(false) {
+-    if (d.count() < 0) {
+-      val = 0 - val;
+-      negative = true;
+-    }
+-
+-    // this may overflow and/or the result may not fit in the
+-    // target type.
+-#if FMT_SAFE_DURATION_CAST
+-    // might need checked conversion (rep!=Rep)
+-    auto tmpval = std::chrono::duration<rep, Period>(val);
+-    s = fmt_safe_duration_cast<seconds>(tmpval);
+-#else
+-    s = std::chrono::duration_cast<seconds>(
+-        std::chrono::duration<rep, Period>(val));
+-#endif
+-  }
+-
+-  // returns true if nan or inf, writes to out.
+-  bool handle_nan_inf() {
+-    if (isfinite(val)) {
+-      return false;
+-    }
+-    if (isnan(val)) {
+-      write_nan();
+-      return true;
+-    }
+-    // must be +-inf
+-    if (val > 0) {
+-      write_pinf();
+-    } else {
+-      write_ninf();
+-    }
+-    return true;
+-  }
+-
+-  Rep hour() const { return static_cast<Rep>(mod((s.count() / 3600), 24)); }
+-
+-  Rep hour12() const {
+-    Rep hour = static_cast<Rep>(mod((s.count() / 3600), 12));
+-    return hour <= 0 ? 12 : hour;
+-  }
+-
+-  Rep minute() const { return static_cast<Rep>(mod((s.count() / 60), 60)); }
+-  Rep second() const { return static_cast<Rep>(mod(s.count(), 60)); }
+-
+-  std::tm time() const {
+-    auto time = std::tm();
+-    time.tm_hour = to_nonnegative_int(hour(), 24);
+-    time.tm_min = to_nonnegative_int(minute(), 60);
+-    time.tm_sec = to_nonnegative_int(second(), 60);
+-    return time;
+-  }
+-
+-  void write_sign() {
+-    if (negative) {
+-      *out++ = '-';
+-      negative = false;
+-    }
+-  }
+-
+-  void write(Rep value, int width) {
+-    write_sign();
+-    if (isnan(value)) return write_nan();
+-    uint32_or_64_or_128_t<int> n =
+-        to_unsigned(to_nonnegative_int(value, max_value<int>()));
+-    int num_digits = detail::count_digits(n);
+-    if (width > num_digits) out = std::fill_n(out, width - num_digits, '0');
+-    out = format_decimal<char_type>(out, n, num_digits).end;
+-  }
+-
+-  template <class Duration> void write_fractional_seconds(Duration d) {
+-    constexpr auto num_fractional_digits =
+-        count_fractional_digits(Duration::period::num, Duration::period::den);
+-
+-    using subsecond_precision = std::chrono::duration<
+-        typename std::common_type<typename Duration::rep,
+-                                  std::chrono::seconds::rep>::type,
+-        std::ratio<1, detail::pow10(num_fractional_digits)>>;
+-    if (std::ratio_less<typename subsecond_precision::period,
+-                        std::chrono::seconds::period>::value) {
+-      *out++ = '.';
+-      // Don't convert long double to integer seconds to avoid overflow.
+-      using sec = conditional_t<
+-          std::is_same<typename Duration::rep, long double>::value,
+-          std::chrono::duration<long double>, std::chrono::seconds>;
+-      auto fractional = detail::abs(d) - std::chrono::duration_cast<sec>(d);
+-      const auto subseconds =
+-          std::chrono::treat_as_floating_point<
+-              typename subsecond_precision::rep>::value
+-              ? fractional.count()
+-              : std::chrono::duration_cast<subsecond_precision>(fractional)
+-                    .count();
+-      uint32_or_64_or_128_t<long long> n =
+-          to_unsigned(to_nonnegative_int(subseconds, max_value<long long>()));
+-      int num_digits = detail::count_digits(n);
+-      if (num_fractional_digits > num_digits)
+-        out = std::fill_n(out, num_fractional_digits - num_digits, '0');
+-      out = format_decimal<char_type>(out, n, num_digits).end;
+-    }
+-  }
+-
+-  void write_nan() { std::copy_n("nan", 3, out); }
+-  void write_pinf() { std::copy_n("inf", 3, out); }
+-  void write_ninf() { std::copy_n("-inf", 4, out); }
+-
+-  template <typename Callback, typename... Args>
+-  void format_tm(const tm& time, Callback cb, Args... args) {
+-    if (isnan(val)) return write_nan();
+-    get_locale loc(localized, context.locale());
+-    auto w = tm_writer_type(loc, out, time);
+-    (w.*cb)(args...);
+-    out = w.out();
+-  }
+-
+-  void on_text(const char_type* begin, const char_type* end) {
+-    std::copy(begin, end, out);
+-  }
+-
+-  // These are not implemented because durations don't have date information.
+-  void on_abbr_weekday() {}
+-  void on_full_weekday() {}
+-  void on_dec0_weekday(numeric_system) {}
+-  void on_dec1_weekday(numeric_system) {}
+-  void on_abbr_month() {}
+-  void on_full_month() {}
+-  void on_datetime(numeric_system) {}
+-  void on_loc_date(numeric_system) {}
+-  void on_loc_time(numeric_system) {}
+-  void on_us_date() {}
+-  void on_iso_date() {}
+-  void on_utc_offset() {}
+-  void on_tz_name() {}
+-  void on_year(numeric_system) {}
+-  void on_short_year(numeric_system) {}
+-  void on_offset_year() {}
+-  void on_century(numeric_system) {}
+-  void on_iso_week_based_year() {}
+-  void on_iso_week_based_short_year() {}
+-  void on_dec_month(numeric_system) {}
+-  void on_dec0_week_of_year(numeric_system) {}
+-  void on_dec1_week_of_year(numeric_system) {}
+-  void on_iso_week_of_year(numeric_system) {}
+-  void on_day_of_year() {}
+-  void on_day_of_month(numeric_system) {}
+-  void on_day_of_month_space(numeric_system) {}
+-
+-  void on_24_hour(numeric_system ns) {
+-    if (handle_nan_inf()) return;
+-
+-    if (ns == numeric_system::standard) return write(hour(), 2);
+-    auto time = tm();
+-    time.tm_hour = to_nonnegative_int(hour(), 24);
+-    format_tm(time, &tm_writer_type::on_24_hour, ns);
+-  }
+-
+-  void on_12_hour(numeric_system ns) {
+-    if (handle_nan_inf()) return;
+-
+-    if (ns == numeric_system::standard) return write(hour12(), 2);
+-    auto time = tm();
+-    time.tm_hour = to_nonnegative_int(hour12(), 12);
+-    format_tm(time, &tm_writer_type::on_12_hour, ns);
+-  }
+-
+-  void on_minute(numeric_system ns) {
+-    if (handle_nan_inf()) return;
+-
+-    if (ns == numeric_system::standard) return write(minute(), 2);
+-    auto time = tm();
+-    time.tm_min = to_nonnegative_int(minute(), 60);
+-    format_tm(time, &tm_writer_type::on_minute, ns);
+-  }
+-
+-  void on_second(numeric_system ns) {
+-    if (handle_nan_inf()) return;
+-
+-    if (ns == numeric_system::standard) {
+-      write(second(), 2);
+-      write_fractional_seconds(std::chrono::duration<rep, Period>{val});
+-      return;
+-    }
+-    auto time = tm();
+-    time.tm_sec = to_nonnegative_int(second(), 60);
+-    format_tm(time, &tm_writer_type::on_second, ns);
+-  }
+-
+-  void on_12_hour_time() {
+-    if (handle_nan_inf()) return;
+-    format_tm(time(), &tm_writer_type::on_12_hour_time);
+-  }
+-
+-  void on_24_hour_time() {
+-    if (handle_nan_inf()) {
+-      *out++ = ':';
+-      handle_nan_inf();
+-      return;
+-    }
+-
+-    write(hour(), 2);
+-    *out++ = ':';
+-    write(minute(), 2);
+-  }
+-
+-  void on_iso_time() {
+-    on_24_hour_time();
+-    *out++ = ':';
+-    if (handle_nan_inf()) return;
+-    on_second(numeric_system::standard);
+-  }
+-
+-  void on_am_pm() {
+-    if (handle_nan_inf()) return;
+-    format_tm(time(), &tm_writer_type::on_am_pm);
+-  }
+-
+-  void on_duration_value() {
+-    if (handle_nan_inf()) return;
+-    write_sign();
+-    out = format_duration_value<char_type>(out, val, precision);
+-  }
+-
+-  void on_duration_unit() {
+-    out = format_duration_unit<char_type, Period>(out);
+-  }
+-};
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-#if defined(__cpp_lib_chrono) && __cpp_lib_chrono >= 201907
+-using weekday = std::chrono::weekday;
+-#else
+-// A fallback version of weekday.
+-class weekday {
+- private:
+-  unsigned char value;
+-
+- public:
+-  weekday() = default;
+-  explicit constexpr weekday(unsigned wd) noexcept
+-      : value(static_cast<unsigned char>(wd != 7 ? wd : 0)) {}
+-  constexpr unsigned c_encoding() const noexcept { return value; }
+-};
+-
+-class year_month_day {};
+-#endif
+-
+-// A rudimentary weekday formatter.
+-template <typename Char> struct formatter<weekday, Char> {
+- private:
+-  bool localized = false;
+-
+- public:
+-  FMT_CONSTEXPR auto parse(basic_format_parse_context<Char>& ctx)
+-      -> decltype(ctx.begin()) {
+-    auto begin = ctx.begin(), end = ctx.end();
+-    if (begin != end && *begin == 'L') {
+-      ++begin;
+-      localized = true;
+-    }
+-    return begin;
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(weekday wd, FormatContext& ctx) const -> decltype(ctx.out()) {
+-    auto time = std::tm();
+-    time.tm_wday = static_cast<int>(wd.c_encoding());
+-    detail::get_locale loc(localized, ctx.locale());
+-    auto w = detail::tm_writer<decltype(ctx.out()), Char>(loc, ctx.out(), time);
+-    w.on_abbr_weekday();
+-    return w.out();
+-  }
+-};
+-
+-template <typename Rep, typename Period, typename Char>
+-struct formatter<std::chrono::duration<Rep, Period>, Char> {
+- private:
+-  basic_format_specs<Char> specs;
+-  int precision = -1;
+-  using arg_ref_type = detail::arg_ref<Char>;
+-  arg_ref_type width_ref;
+-  arg_ref_type precision_ref;
+-  bool localized = false;
+-  basic_string_view<Char> format_str;
+-  using duration = std::chrono::duration<Rep, Period>;
+-
+-  struct spec_handler {
+-    formatter& f;
+-    basic_format_parse_context<Char>& context;
+-    basic_string_view<Char> format_str;
+-
+-    template <typename Id> FMT_CONSTEXPR arg_ref_type make_arg_ref(Id arg_id) {
+-      context.check_arg_id(arg_id);
+-      return arg_ref_type(arg_id);
+-    }
+-
+-    FMT_CONSTEXPR arg_ref_type make_arg_ref(basic_string_view<Char> arg_id) {
+-      context.check_arg_id(arg_id);
+-      return arg_ref_type(arg_id);
+-    }
+-
+-    FMT_CONSTEXPR arg_ref_type make_arg_ref(detail::auto_id) {
+-      return arg_ref_type(context.next_arg_id());
+-    }
+-
+-    void on_error(const char* msg) { FMT_THROW(format_error(msg)); }
+-    FMT_CONSTEXPR void on_fill(basic_string_view<Char> fill) {
+-      f.specs.fill = fill;
+-    }
+-    FMT_CONSTEXPR void on_align(align_t align) { f.specs.align = align; }
+-    FMT_CONSTEXPR void on_width(int width) { f.specs.width = width; }
+-    FMT_CONSTEXPR void on_precision(int _precision) {
+-      f.precision = _precision;
+-    }
+-    FMT_CONSTEXPR void end_precision() {}
+-
+-    template <typename Id> FMT_CONSTEXPR void on_dynamic_width(Id arg_id) {
+-      f.width_ref = make_arg_ref(arg_id);
+-    }
+-
+-    template <typename Id> FMT_CONSTEXPR void on_dynamic_precision(Id arg_id) {
+-      f.precision_ref = make_arg_ref(arg_id);
+-    }
+-  };
+-
+-  using iterator = typename basic_format_parse_context<Char>::iterator;
+-  struct parse_range {
+-    iterator begin;
+-    iterator end;
+-  };
+-
+-  FMT_CONSTEXPR parse_range do_parse(basic_format_parse_context<Char>& ctx) {
+-    auto begin = ctx.begin(), end = ctx.end();
+-    if (begin == end || *begin == '}') return {begin, begin};
+-    spec_handler handler{*this, ctx, format_str};
+-    begin = detail::parse_align(begin, end, handler);
+-    if (begin == end) return {begin, begin};
+-    begin = detail::parse_width(begin, end, handler);
+-    if (begin == end) return {begin, begin};
+-    if (*begin == '.') {
+-      if (std::is_floating_point<Rep>::value)
+-        begin = detail::parse_precision(begin, end, handler);
+-      else
+-        handler.on_error("precision not allowed for this argument type");
+-    }
+-    if (begin != end && *begin == 'L') {
+-      ++begin;
+-      localized = true;
+-    }
+-    end = detail::parse_chrono_format(begin, end,
+-                                      detail::chrono_format_checker());
+-    return {begin, end};
+-  }
+-
+- public:
+-  FMT_CONSTEXPR auto parse(basic_format_parse_context<Char>& ctx)
+-      -> decltype(ctx.begin()) {
+-    auto range = do_parse(ctx);
+-    format_str = basic_string_view<Char>(
+-        &*range.begin, detail::to_unsigned(range.end - range.begin));
+-    return range.end;
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(const duration& d, FormatContext& ctx) const
+-      -> decltype(ctx.out()) {
+-    auto specs_copy = specs;
+-    auto precision_copy = precision;
+-    auto begin = format_str.begin(), end = format_str.end();
+-    // As a possible future optimization, we could avoid extra copying if width
+-    // is not specified.
+-    basic_memory_buffer<Char> buf;
+-    auto out = std::back_inserter(buf);
+-    detail::handle_dynamic_spec<detail::width_checker>(specs_copy.width,
+-                                                       width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(precision_copy,
+-                                                           precision_ref, ctx);
+-    if (begin == end || *begin == '}') {
+-      out = detail::format_duration_value<Char>(out, d.count(), precision_copy);
+-      detail::format_duration_unit<Char, Period>(out);
+-    } else {
+-      detail::chrono_formatter<FormatContext, decltype(out), Rep, Period> f(
+-          ctx, out, d);
+-      f.precision = precision_copy;
+-      f.localized = localized;
+-      detail::parse_chrono_format(begin, end, f);
+-    }
+-    return detail::write(
+-        ctx.out(), basic_string_view<Char>(buf.data(), buf.size()), specs_copy);
+-  }
+-};
+-
+-template <typename Char, typename Duration>
+-struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
+-                 Char> : formatter<std::tm, Char> {
+-  FMT_CONSTEXPR formatter() {
+-    this->do_parse(default_specs,
+-                   default_specs + sizeof(default_specs) / sizeof(Char));
+-  }
+-
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return this->do_parse(ctx.begin(), ctx.end(), true);
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(std::chrono::time_point<std::chrono::system_clock> val,
+-              FormatContext& ctx) const -> decltype(ctx.out()) {
+-    return formatter<std::tm, Char>::format(localtime(val), ctx);
+-  }
+-
+-  static constexpr const Char default_specs[] = {'%', 'F', ' ', '%', 'T'};
+-};
+-
+-template <typename Char, typename Duration>
+-constexpr const Char
+-    formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
+-              Char>::default_specs[];
+-
+-template <typename Char> struct formatter<std::tm, Char> {
+- private:
+-  enum class spec {
+-    unknown,
+-    year_month_day,
+-    hh_mm_ss,
+-  };
+-  spec spec_ = spec::unknown;
+-  basic_string_view<Char> specs;
+-
+- protected:
+-  template <typename It>
+-  FMT_CONSTEXPR auto do_parse(It begin, It end, bool with_default = false)
+-      -> It {
+-    if (begin != end && *begin == ':') ++begin;
+-    end = detail::parse_chrono_format(begin, end, detail::tm_format_checker());
+-    if (!with_default || end != begin)
+-      specs = {begin, detail::to_unsigned(end - begin)};
+-    // basic_string_view<>::compare isn't constexpr before C++17.
+-    if (specs.size() == 2 && specs[0] == Char('%')) {
+-      if (specs[1] == Char('F'))
+-        spec_ = spec::year_month_day;
+-      else if (specs[1] == Char('T'))
+-        spec_ = spec::hh_mm_ss;
+-    }
+-    return end;
+-  }
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return this->do_parse(ctx.begin(), ctx.end());
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(const std::tm& tm, FormatContext& ctx) const
+-      -> decltype(ctx.out()) {
+-    const auto loc_ref = ctx.locale();
+-    detail::get_locale loc(static_cast<bool>(loc_ref), loc_ref);
+-    auto w = detail::tm_writer<decltype(ctx.out()), Char>(loc, ctx.out(), tm);
+-    if (spec_ == spec::year_month_day)
+-      w.on_iso_date();
+-    else if (spec_ == spec::hh_mm_ss)
+-      w.on_iso_time();
+-    else
+-      detail::parse_chrono_format(specs.begin(), specs.end(), w);
+-    return w.out();
+-  }
+-};
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_CHRONO_H_
+diff --git a/include/dpp/fmt/color.h b/include/dpp/fmt/color.h
+deleted file mode 100644
+index dfbe482..0000000
+--- a/include/dpp/fmt/color.h
++++ /dev/null
+@@ -1,638 +0,0 @@
+-// Formatting library for C++ - color support
+-//
+-// Copyright (c) 2018 - present, Victor Zverovich and fmt contributors
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_COLOR_H_
+-#define FMT_COLOR_H_
+-
+-#include "format.h"
+-
+-// __declspec(deprecated) is broken in some MSVC versions.
+-#if FMT_MSC_VER
+-#  define FMT_DEPRECATED_NONMSVC
+-#else
+-#  define FMT_DEPRECATED_NONMSVC FMT_DEPRECATED
+-#endif
+-
+-FMT_BEGIN_NAMESPACE
+-FMT_MODULE_EXPORT_BEGIN
+-
+-enum class color : uint32_t {
+-  alice_blue = 0xF0F8FF,               // rgb(240,248,255)
+-  antique_white = 0xFAEBD7,            // rgb(250,235,215)
+-  aqua = 0x00FFFF,                     // rgb(0,255,255)
+-  aquamarine = 0x7FFFD4,               // rgb(127,255,212)
+-  azure = 0xF0FFFF,                    // rgb(240,255,255)
+-  beige = 0xF5F5DC,                    // rgb(245,245,220)
+-  bisque = 0xFFE4C4,                   // rgb(255,228,196)
+-  black = 0x000000,                    // rgb(0,0,0)
+-  blanched_almond = 0xFFEBCD,          // rgb(255,235,205)
+-  blue = 0x0000FF,                     // rgb(0,0,255)
+-  blue_violet = 0x8A2BE2,              // rgb(138,43,226)
+-  brown = 0xA52A2A,                    // rgb(165,42,42)
+-  burly_wood = 0xDEB887,               // rgb(222,184,135)
+-  cadet_blue = 0x5F9EA0,               // rgb(95,158,160)
+-  chartreuse = 0x7FFF00,               // rgb(127,255,0)
+-  chocolate = 0xD2691E,                // rgb(210,105,30)
+-  coral = 0xFF7F50,                    // rgb(255,127,80)
+-  cornflower_blue = 0x6495ED,          // rgb(100,149,237)
+-  cornsilk = 0xFFF8DC,                 // rgb(255,248,220)
+-  crimson = 0xDC143C,                  // rgb(220,20,60)
+-  cyan = 0x00FFFF,                     // rgb(0,255,255)
+-  dark_blue = 0x00008B,                // rgb(0,0,139)
+-  dark_cyan = 0x008B8B,                // rgb(0,139,139)
+-  dark_golden_rod = 0xB8860B,          // rgb(184,134,11)
+-  dark_gray = 0xA9A9A9,                // rgb(169,169,169)
+-  dark_green = 0x006400,               // rgb(0,100,0)
+-  dark_khaki = 0xBDB76B,               // rgb(189,183,107)
+-  dark_magenta = 0x8B008B,             // rgb(139,0,139)
+-  dark_olive_green = 0x556B2F,         // rgb(85,107,47)
+-  dark_orange = 0xFF8C00,              // rgb(255,140,0)
+-  dark_orchid = 0x9932CC,              // rgb(153,50,204)
+-  dark_red = 0x8B0000,                 // rgb(139,0,0)
+-  dark_salmon = 0xE9967A,              // rgb(233,150,122)
+-  dark_sea_green = 0x8FBC8F,           // rgb(143,188,143)
+-  dark_slate_blue = 0x483D8B,          // rgb(72,61,139)
+-  dark_slate_gray = 0x2F4F4F,          // rgb(47,79,79)
+-  dark_turquoise = 0x00CED1,           // rgb(0,206,209)
+-  dark_violet = 0x9400D3,              // rgb(148,0,211)
+-  deep_pink = 0xFF1493,                // rgb(255,20,147)
+-  deep_sky_blue = 0x00BFFF,            // rgb(0,191,255)
+-  dim_gray = 0x696969,                 // rgb(105,105,105)
+-  dodger_blue = 0x1E90FF,              // rgb(30,144,255)
+-  fire_brick = 0xB22222,               // rgb(178,34,34)
+-  floral_white = 0xFFFAF0,             // rgb(255,250,240)
+-  forest_green = 0x228B22,             // rgb(34,139,34)
+-  fuchsia = 0xFF00FF,                  // rgb(255,0,255)
+-  gainsboro = 0xDCDCDC,                // rgb(220,220,220)
+-  ghost_white = 0xF8F8FF,              // rgb(248,248,255)
+-  gold = 0xFFD700,                     // rgb(255,215,0)
+-  golden_rod = 0xDAA520,               // rgb(218,165,32)
+-  gray = 0x808080,                     // rgb(128,128,128)
+-  green = 0x008000,                    // rgb(0,128,0)
+-  green_yellow = 0xADFF2F,             // rgb(173,255,47)
+-  honey_dew = 0xF0FFF0,                // rgb(240,255,240)
+-  hot_pink = 0xFF69B4,                 // rgb(255,105,180)
+-  indian_red = 0xCD5C5C,               // rgb(205,92,92)
+-  indigo = 0x4B0082,                   // rgb(75,0,130)
+-  ivory = 0xFFFFF0,                    // rgb(255,255,240)
+-  khaki = 0xF0E68C,                    // rgb(240,230,140)
+-  lavender = 0xE6E6FA,                 // rgb(230,230,250)
+-  lavender_blush = 0xFFF0F5,           // rgb(255,240,245)
+-  lawn_green = 0x7CFC00,               // rgb(124,252,0)
+-  lemon_chiffon = 0xFFFACD,            // rgb(255,250,205)
+-  light_blue = 0xADD8E6,               // rgb(173,216,230)
+-  light_coral = 0xF08080,              // rgb(240,128,128)
+-  light_cyan = 0xE0FFFF,               // rgb(224,255,255)
+-  light_golden_rod_yellow = 0xFAFAD2,  // rgb(250,250,210)
+-  light_gray = 0xD3D3D3,               // rgb(211,211,211)
+-  light_green = 0x90EE90,              // rgb(144,238,144)
+-  light_pink = 0xFFB6C1,               // rgb(255,182,193)
+-  light_salmon = 0xFFA07A,             // rgb(255,160,122)
+-  light_sea_green = 0x20B2AA,          // rgb(32,178,170)
+-  light_sky_blue = 0x87CEFA,           // rgb(135,206,250)
+-  light_slate_gray = 0x778899,         // rgb(119,136,153)
+-  light_steel_blue = 0xB0C4DE,         // rgb(176,196,222)
+-  light_yellow = 0xFFFFE0,             // rgb(255,255,224)
+-  lime = 0x00FF00,                     // rgb(0,255,0)
+-  lime_green = 0x32CD32,               // rgb(50,205,50)
+-  linen = 0xFAF0E6,                    // rgb(250,240,230)
+-  magenta = 0xFF00FF,                  // rgb(255,0,255)
+-  maroon = 0x800000,                   // rgb(128,0,0)
+-  medium_aquamarine = 0x66CDAA,        // rgb(102,205,170)
+-  medium_blue = 0x0000CD,              // rgb(0,0,205)
+-  medium_orchid = 0xBA55D3,            // rgb(186,85,211)
+-  medium_purple = 0x9370DB,            // rgb(147,112,219)
+-  medium_sea_green = 0x3CB371,         // rgb(60,179,113)
+-  medium_slate_blue = 0x7B68EE,        // rgb(123,104,238)
+-  medium_spring_green = 0x00FA9A,      // rgb(0,250,154)
+-  medium_turquoise = 0x48D1CC,         // rgb(72,209,204)
+-  medium_violet_red = 0xC71585,        // rgb(199,21,133)
+-  midnight_blue = 0x191970,            // rgb(25,25,112)
+-  mint_cream = 0xF5FFFA,               // rgb(245,255,250)
+-  misty_rose = 0xFFE4E1,               // rgb(255,228,225)
+-  moccasin = 0xFFE4B5,                 // rgb(255,228,181)
+-  navajo_white = 0xFFDEAD,             // rgb(255,222,173)
+-  navy = 0x000080,                     // rgb(0,0,128)
+-  old_lace = 0xFDF5E6,                 // rgb(253,245,230)
+-  olive = 0x808000,                    // rgb(128,128,0)
+-  olive_drab = 0x6B8E23,               // rgb(107,142,35)
+-  orange = 0xFFA500,                   // rgb(255,165,0)
+-  orange_red = 0xFF4500,               // rgb(255,69,0)
+-  orchid = 0xDA70D6,                   // rgb(218,112,214)
+-  pale_golden_rod = 0xEEE8AA,          // rgb(238,232,170)
+-  pale_green = 0x98FB98,               // rgb(152,251,152)
+-  pale_turquoise = 0xAFEEEE,           // rgb(175,238,238)
+-  pale_violet_red = 0xDB7093,          // rgb(219,112,147)
+-  papaya_whip = 0xFFEFD5,              // rgb(255,239,213)
+-  peach_puff = 0xFFDAB9,               // rgb(255,218,185)
+-  peru = 0xCD853F,                     // rgb(205,133,63)
+-  pink = 0xFFC0CB,                     // rgb(255,192,203)
+-  plum = 0xDDA0DD,                     // rgb(221,160,221)
+-  powder_blue = 0xB0E0E6,              // rgb(176,224,230)
+-  purple = 0x800080,                   // rgb(128,0,128)
+-  rebecca_purple = 0x663399,           // rgb(102,51,153)
+-  red = 0xFF0000,                      // rgb(255,0,0)
+-  rosy_brown = 0xBC8F8F,               // rgb(188,143,143)
+-  royal_blue = 0x4169E1,               // rgb(65,105,225)
+-  saddle_brown = 0x8B4513,             // rgb(139,69,19)
+-  salmon = 0xFA8072,                   // rgb(250,128,114)
+-  sandy_brown = 0xF4A460,              // rgb(244,164,96)
+-  sea_green = 0x2E8B57,                // rgb(46,139,87)
+-  sea_shell = 0xFFF5EE,                // rgb(255,245,238)
+-  sienna = 0xA0522D,                   // rgb(160,82,45)
+-  silver = 0xC0C0C0,                   // rgb(192,192,192)
+-  sky_blue = 0x87CEEB,                 // rgb(135,206,235)
+-  slate_blue = 0x6A5ACD,               // rgb(106,90,205)
+-  slate_gray = 0x708090,               // rgb(112,128,144)
+-  snow = 0xFFFAFA,                     // rgb(255,250,250)
+-  spring_green = 0x00FF7F,             // rgb(0,255,127)
+-  steel_blue = 0x4682B4,               // rgb(70,130,180)
+-  tan = 0xD2B48C,                      // rgb(210,180,140)
+-  teal = 0x008080,                     // rgb(0,128,128)
+-  thistle = 0xD8BFD8,                  // rgb(216,191,216)
+-  tomato = 0xFF6347,                   // rgb(255,99,71)
+-  turquoise = 0x40E0D0,                // rgb(64,224,208)
+-  violet = 0xEE82EE,                   // rgb(238,130,238)
+-  wheat = 0xF5DEB3,                    // rgb(245,222,179)
+-  white = 0xFFFFFF,                    // rgb(255,255,255)
+-  white_smoke = 0xF5F5F5,              // rgb(245,245,245)
+-  yellow = 0xFFFF00,                   // rgb(255,255,0)
+-  yellow_green = 0x9ACD32              // rgb(154,205,50)
+-};                                     // enum class color
+-
+-enum class terminal_color : uint8_t {
+-  black = 30,
+-  red,
+-  green,
+-  yellow,
+-  blue,
+-  magenta,
+-  cyan,
+-  white,
+-  bright_black = 90,
+-  bright_red,
+-  bright_green,
+-  bright_yellow,
+-  bright_blue,
+-  bright_magenta,
+-  bright_cyan,
+-  bright_white
+-};
+-
+-enum class emphasis : uint8_t {
+-  bold = 1,
+-  faint = 1 << 1,
+-  italic = 1 << 2,
+-  underline = 1 << 3,
+-  blink = 1 << 4,
+-  reverse = 1 << 5,
+-  conceal = 1 << 6,
+-  strikethrough = 1 << 7,
+-};
+-
+-// rgb is a struct for red, green and blue colors.
+-// Using the name "rgb" makes some editors show the color in a tooltip.
+-struct rgb {
+-  FMT_CONSTEXPR rgb() : r(0), g(0), b(0) {}
+-  FMT_CONSTEXPR rgb(uint8_t r_, uint8_t g_, uint8_t b_) : r(r_), g(g_), b(b_) {}
+-  FMT_CONSTEXPR rgb(uint32_t hex)
+-      : r((hex >> 16) & 0xFF), g((hex >> 8) & 0xFF), b(hex & 0xFF) {}
+-  FMT_CONSTEXPR rgb(color hex)
+-      : r((uint32_t(hex) >> 16) & 0xFF),
+-        g((uint32_t(hex) >> 8) & 0xFF),
+-        b(uint32_t(hex) & 0xFF) {}
+-  uint8_t r;
+-  uint8_t g;
+-  uint8_t b;
+-};
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// color is a struct of either a rgb color or a terminal color.
+-struct color_type {
+-  FMT_CONSTEXPR color_type() FMT_NOEXCEPT : is_rgb(), value{} {}
+-  FMT_CONSTEXPR color_type(color rgb_color) FMT_NOEXCEPT : is_rgb(true),
+-                                                           value{} {
+-    value.rgb_color = static_cast<uint32_t>(rgb_color);
+-  }
+-  FMT_CONSTEXPR color_type(rgb rgb_color) FMT_NOEXCEPT : is_rgb(true), value{} {
+-    value.rgb_color = (static_cast<uint32_t>(rgb_color.r) << 16) |
+-                      (static_cast<uint32_t>(rgb_color.g) << 8) | rgb_color.b;
+-  }
+-  FMT_CONSTEXPR color_type(terminal_color term_color) FMT_NOEXCEPT : is_rgb(),
+-                                                                     value{} {
+-    value.term_color = static_cast<uint8_t>(term_color);
+-  }
+-  bool is_rgb;
+-  union color_union {
+-    uint8_t term_color;
+-    uint32_t rgb_color;
+-  } value;
+-};
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-/** A text style consisting of foreground and background colors and emphasis. */
+-class text_style {
+- public:
+-  FMT_CONSTEXPR text_style(emphasis em = emphasis()) FMT_NOEXCEPT
+-      : set_foreground_color(),
+-        set_background_color(),
+-        ems(em) {}
+-
+-  FMT_CONSTEXPR text_style& operator|=(const text_style& rhs) {
+-    if (!set_foreground_color) {
+-      set_foreground_color = rhs.set_foreground_color;
+-      foreground_color = rhs.foreground_color;
+-    } else if (rhs.set_foreground_color) {
+-      if (!foreground_color.is_rgb || !rhs.foreground_color.is_rgb)
+-        FMT_THROW(format_error("can't OR a terminal color"));
+-      foreground_color.value.rgb_color |= rhs.foreground_color.value.rgb_color;
+-    }
+-
+-    if (!set_background_color) {
+-      set_background_color = rhs.set_background_color;
+-      background_color = rhs.background_color;
+-    } else if (rhs.set_background_color) {
+-      if (!background_color.is_rgb || !rhs.background_color.is_rgb)
+-        FMT_THROW(format_error("can't OR a terminal color"));
+-      background_color.value.rgb_color |= rhs.background_color.value.rgb_color;
+-    }
+-
+-    ems = static_cast<emphasis>(static_cast<uint8_t>(ems) |
+-                                static_cast<uint8_t>(rhs.ems));
+-    return *this;
+-  }
+-
+-  friend FMT_CONSTEXPR text_style operator|(text_style lhs,
+-                                            const text_style& rhs) {
+-    return lhs |= rhs;
+-  }
+-
+-  FMT_DEPRECATED_NONMSVC FMT_CONSTEXPR text_style& operator&=(
+-      const text_style& rhs) {
+-    return and_assign(rhs);
+-  }
+-
+-  FMT_DEPRECATED_NONMSVC friend FMT_CONSTEXPR text_style
+-  operator&(text_style lhs, const text_style& rhs) {
+-    return lhs.and_assign(rhs);
+-  }
+-
+-  FMT_CONSTEXPR bool has_foreground() const FMT_NOEXCEPT {
+-    return set_foreground_color;
+-  }
+-  FMT_CONSTEXPR bool has_background() const FMT_NOEXCEPT {
+-    return set_background_color;
+-  }
+-  FMT_CONSTEXPR bool has_emphasis() const FMT_NOEXCEPT {
+-    return static_cast<uint8_t>(ems) != 0;
+-  }
+-  FMT_CONSTEXPR detail::color_type get_foreground() const FMT_NOEXCEPT {
+-    FMT_ASSERT(has_foreground(), "no foreground specified for this style");
+-    return foreground_color;
+-  }
+-  FMT_CONSTEXPR detail::color_type get_background() const FMT_NOEXCEPT {
+-    FMT_ASSERT(has_background(), "no background specified for this style");
+-    return background_color;
+-  }
+-  FMT_CONSTEXPR emphasis get_emphasis() const FMT_NOEXCEPT {
+-    FMT_ASSERT(has_emphasis(), "no emphasis specified for this style");
+-    return ems;
+-  }
+-
+- private:
+-  FMT_CONSTEXPR text_style(bool is_foreground,
+-                           detail::color_type text_color) FMT_NOEXCEPT
+-      : set_foreground_color(),
+-        set_background_color(),
+-        ems() {
+-    if (is_foreground) {
+-      foreground_color = text_color;
+-      set_foreground_color = true;
+-    } else {
+-      background_color = text_color;
+-      set_background_color = true;
+-    }
+-  }
+-
+-  // DEPRECATED!
+-  FMT_CONSTEXPR text_style& and_assign(const text_style& rhs) {
+-    if (!set_foreground_color) {
+-      set_foreground_color = rhs.set_foreground_color;
+-      foreground_color = rhs.foreground_color;
+-    } else if (rhs.set_foreground_color) {
+-      if (!foreground_color.is_rgb || !rhs.foreground_color.is_rgb)
+-        FMT_THROW(format_error("can't AND a terminal color"));
+-      foreground_color.value.rgb_color &= rhs.foreground_color.value.rgb_color;
+-    }
+-
+-    if (!set_background_color) {
+-      set_background_color = rhs.set_background_color;
+-      background_color = rhs.background_color;
+-    } else if (rhs.set_background_color) {
+-      if (!background_color.is_rgb || !rhs.background_color.is_rgb)
+-        FMT_THROW(format_error("can't AND a terminal color"));
+-      background_color.value.rgb_color &= rhs.background_color.value.rgb_color;
+-    }
+-
+-    ems = static_cast<emphasis>(static_cast<uint8_t>(ems) &
+-                                static_cast<uint8_t>(rhs.ems));
+-    return *this;
+-  }
+-
+-  friend FMT_CONSTEXPR_DECL text_style fg(detail::color_type foreground)
+-      FMT_NOEXCEPT;
+-
+-  friend FMT_CONSTEXPR_DECL text_style bg(detail::color_type background)
+-      FMT_NOEXCEPT;
+-
+-  detail::color_type foreground_color;
+-  detail::color_type background_color;
+-  bool set_foreground_color;
+-  bool set_background_color;
+-  emphasis ems;
+-};
+-
+-/** Creates a text style from the foreground (text) color. */
+-FMT_CONSTEXPR inline text_style fg(detail::color_type foreground) FMT_NOEXCEPT {
+-  return text_style(true, foreground);
+-}
+-
+-/** Creates a text style from the background color. */
+-FMT_CONSTEXPR inline text_style bg(detail::color_type background) FMT_NOEXCEPT {
+-  return text_style(false, background);
+-}
+-
+-FMT_CONSTEXPR inline text_style operator|(emphasis lhs,
+-                                          emphasis rhs) FMT_NOEXCEPT {
+-  return text_style(lhs) | rhs;
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename Char> struct ansi_color_escape {
+-  FMT_CONSTEXPR ansi_color_escape(detail::color_type text_color,
+-                                  const char* esc) FMT_NOEXCEPT {
+-    // If we have a terminal color, we need to output another escape code
+-    // sequence.
+-    if (!text_color.is_rgb) {
+-      bool is_background = esc == string_view("\x1b[48;2;");
+-      uint32_t value = text_color.value.term_color;
+-      // Background ASCII codes are the same as the foreground ones but with
+-      // 10 more.
+-      if (is_background) value += 10u;
+-
+-      size_t index = 0;
+-      buffer[index++] = static_cast<Char>('\x1b');
+-      buffer[index++] = static_cast<Char>('[');
+-
+-      if (value >= 100u) {
+-        buffer[index++] = static_cast<Char>('1');
+-        value %= 100u;
+-      }
+-      buffer[index++] = static_cast<Char>('0' + value / 10u);
+-      buffer[index++] = static_cast<Char>('0' + value % 10u);
+-
+-      buffer[index++] = static_cast<Char>('m');
+-      buffer[index++] = static_cast<Char>('\0');
+-      return;
+-    }
+-
+-    for (int i = 0; i < 7; i++) {
+-      buffer[i] = static_cast<Char>(esc[i]);
+-    }
+-    rgb color(text_color.value.rgb_color);
+-    to_esc(color.r, buffer + 7, ';');
+-    to_esc(color.g, buffer + 11, ';');
+-    to_esc(color.b, buffer + 15, 'm');
+-    buffer[19] = static_cast<Char>(0);
+-  }
+-  FMT_CONSTEXPR ansi_color_escape(emphasis em) FMT_NOEXCEPT {
+-    uint8_t em_codes[num_emphases] = {};
+-    if (has_emphasis(em, emphasis::bold)) em_codes[0] = 1;
+-    if (has_emphasis(em, emphasis::faint)) em_codes[1] = 2;
+-    if (has_emphasis(em, emphasis::italic)) em_codes[2] = 3;
+-    if (has_emphasis(em, emphasis::underline)) em_codes[3] = 4;
+-    if (has_emphasis(em, emphasis::blink)) em_codes[4] = 5;
+-    if (has_emphasis(em, emphasis::reverse)) em_codes[5] = 7;
+-    if (has_emphasis(em, emphasis::conceal)) em_codes[6] = 8;
+-    if (has_emphasis(em, emphasis::strikethrough)) em_codes[7] = 9;
+-
+-    size_t index = 0;
+-    for (size_t i = 0; i < num_emphases; ++i) {
+-      if (!em_codes[i]) continue;
+-      buffer[index++] = static_cast<Char>('\x1b');
+-      buffer[index++] = static_cast<Char>('[');
+-      buffer[index++] = static_cast<Char>('0' + em_codes[i]);
+-      buffer[index++] = static_cast<Char>('m');
+-    }
+-    buffer[index++] = static_cast<Char>(0);
+-  }
+-  FMT_CONSTEXPR operator const Char*() const FMT_NOEXCEPT { return buffer; }
+-
+-  FMT_CONSTEXPR const Char* begin() const FMT_NOEXCEPT { return buffer; }
+-  FMT_CONSTEXPR_CHAR_TRAITS const Char* end() const FMT_NOEXCEPT {
+-    return buffer + std::char_traits<Char>::length(buffer);
+-  }
+-
+- private:
+-  static constexpr size_t num_emphases = 8;
+-  Char buffer[7u + 3u * num_emphases + 1u];
+-
+-  static FMT_CONSTEXPR void to_esc(uint8_t c, Char* out,
+-                                   char delimiter) FMT_NOEXCEPT {
+-    out[0] = static_cast<Char>('0' + c / 100);
+-    out[1] = static_cast<Char>('0' + c / 10 % 10);
+-    out[2] = static_cast<Char>('0' + c % 10);
+-    out[3] = static_cast<Char>(delimiter);
+-  }
+-  static FMT_CONSTEXPR bool has_emphasis(emphasis em,
+-                                         emphasis mask) FMT_NOEXCEPT {
+-    return static_cast<uint8_t>(em) & static_cast<uint8_t>(mask);
+-  }
+-};
+-
+-template <typename Char>
+-FMT_CONSTEXPR ansi_color_escape<Char> make_foreground_color(
+-    detail::color_type foreground) FMT_NOEXCEPT {
+-  return ansi_color_escape<Char>(foreground, "\x1b[38;2;");
+-}
+-
+-template <typename Char>
+-FMT_CONSTEXPR ansi_color_escape<Char> make_background_color(
+-    detail::color_type background) FMT_NOEXCEPT {
+-  return ansi_color_escape<Char>(background, "\x1b[48;2;");
+-}
+-
+-template <typename Char>
+-FMT_CONSTEXPR ansi_color_escape<Char> make_emphasis(emphasis em) FMT_NOEXCEPT {
+-  return ansi_color_escape<Char>(em);
+-}
+-
+-template <typename Char>
+-inline void fputs(const Char* chars, FILE* stream) FMT_NOEXCEPT {
+-  std::fputs(chars, stream);
+-}
+-
+-template <>
+-inline void fputs<wchar_t>(const wchar_t* chars, FILE* stream) FMT_NOEXCEPT {
+-  std::fputws(chars, stream);
+-}
+-
+-template <typename Char> inline void reset_color(FILE* stream) FMT_NOEXCEPT {
+-  fputs("\x1b[0m", stream);
+-}
+-
+-template <> inline void reset_color<wchar_t>(FILE* stream) FMT_NOEXCEPT {
+-  fputs(L"\x1b[0m", stream);
+-}
+-
+-template <typename Char>
+-inline void reset_color(buffer<Char>& buffer) FMT_NOEXCEPT {
+-  auto reset_color = string_view("\x1b[0m");
+-  buffer.append(reset_color.begin(), reset_color.end());
+-}
+-
+-template <typename Char>
+-void vformat_to(buffer<Char>& buf, const text_style& ts,
+-                basic_string_view<Char> format_str,
+-                basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  bool has_style = false;
+-  if (ts.has_emphasis()) {
+-    has_style = true;
+-    auto emphasis = detail::make_emphasis<Char>(ts.get_emphasis());
+-    buf.append(emphasis.begin(), emphasis.end());
+-  }
+-  if (ts.has_foreground()) {
+-    has_style = true;
+-    auto foreground = detail::make_foreground_color<Char>(ts.get_foreground());
+-    buf.append(foreground.begin(), foreground.end());
+-  }
+-  if (ts.has_background()) {
+-    has_style = true;
+-    auto background = detail::make_background_color<Char>(ts.get_background());
+-    buf.append(background.begin(), background.end());
+-  }
+-  detail::vformat_to(buf, format_str, args, {});
+-  if (has_style) detail::reset_color<Char>(buf);
+-}
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-template <typename S, typename Char = char_t<S>>
+-void vprint(std::FILE* f, const text_style& ts, const S& format,
+-            basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  basic_memory_buffer<Char> buf;
+-  detail::vformat_to(buf, ts, to_string_view(format), args);
+-  buf.push_back(Char(0));
+-  detail::fputs(buf.data(), f);
+-}
+-
+-/**
+-  \rst
+-  Formats a string and prints it to the specified file stream using ANSI
+-  escape sequences to specify text formatting.
+-
+-  **Example**::
+-
+-    fmt::print(fmt::emphasis::bold | fg(fmt::color::red),
+-               "Elapsed time: {0:.2f} seconds", 1.23);
+-  \endrst
+- */
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_string<S>::value)>
+-void print(std::FILE* f, const text_style& ts, const S& format_str,
+-           const Args&... args) {
+-  vprint(f, ts, format_str,
+-         fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-
+-/**
+-  \rst
+-  Formats a string and prints it to stdout using ANSI escape sequences to
+-  specify text formatting.
+-
+-  **Example**::
+-
+-    fmt::print(fmt::emphasis::bold | fg(fmt::color::red),
+-               "Elapsed time: {0:.2f} seconds", 1.23);
+-  \endrst
+- */
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_string<S>::value)>
+-void print(const text_style& ts, const S& format_str, const Args&... args) {
+-  return print(stdout, ts, format_str, args...);
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-inline std::basic_string<Char> vformat(
+-    const text_style& ts, const S& format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  basic_memory_buffer<Char> buf;
+-  detail::vformat_to(buf, ts, to_string_view(format_str), args);
+-  return fmt::to_string(buf);
+-}
+-
+-/**
+-  \rst
+-  Formats arguments and returns the result as a string using ANSI
+-  escape sequences to specify text formatting.
+-
+-  **Example**::
+-
+-    #include <fmt/color.h>
+-    std::string message = fmt::format(fmt::emphasis::bold | fg(fmt::color::red),
+-                                      "The answer is {}", 42);
+-  \endrst
+-*/
+-template <typename S, typename... Args, typename Char = char_t<S>>
+-inline std::basic_string<Char> format(const text_style& ts, const S& format_str,
+-                                      const Args&... args) {
+-  return fmt::vformat(ts, to_string_view(format_str),
+-                      fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-
+-/**
+-  Formats a string with the given text_style and writes the output to ``out``.
+- */
+-template <typename OutputIt, typename Char,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value)>
+-OutputIt vformat_to(
+-    OutputIt out, const text_style& ts, basic_string_view<Char> format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  auto&& buf = detail::get_buffer<Char>(out);
+-  detail::vformat_to(buf, ts, format_str, args);
+-  return detail::get_iterator(buf);
+-}
+-
+-/**
+-  \rst
+-  Formats arguments with the given text_style, writes the result to the output
+-  iterator ``out`` and returns the iterator past the end of the output range.
+-
+-  **Example**::
+-
+-    std::vector<char> out;
+-    fmt::format_to(std::back_inserter(out),
+-                   fmt::emphasis::bold | fg(fmt::color::red), "{}", 42);
+-  \endrst
+-*/
+-template <typename OutputIt, typename S, typename... Args,
+-          bool enable = detail::is_output_iterator<OutputIt, char_t<S>>::value&&
+-              detail::is_string<S>::value>
+-inline auto format_to(OutputIt out, const text_style& ts, const S& format_str,
+-                      Args&&... args) ->
+-    typename std::enable_if<enable, OutputIt>::type {
+-  return vformat_to(out, ts, to_string_view(format_str),
+-                    fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_COLOR_H_
+diff --git a/include/dpp/fmt/compile.h b/include/dpp/fmt/compile.h
+deleted file mode 100644
+index 1dba3dd..0000000
+--- a/include/dpp/fmt/compile.h
++++ /dev/null
+@@ -1,642 +0,0 @@
+-// Formatting library for C++ - experimental format string compilation
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich and fmt contributors
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_COMPILE_H_
+-#define FMT_COMPILE_H_
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-
+-// An output iterator that counts the number of objects written to it and
+-// discards them.
+-class counting_iterator {
+- private:
+-  size_t count_;
+-
+- public:
+-  using iterator_category = std::output_iterator_tag;
+-  using difference_type = std::ptrdiff_t;
+-  using pointer = void;
+-  using reference = void;
+-  using _Unchecked_type = counting_iterator;  // Mark iterator as checked.
+-
+-  struct value_type {
+-    template <typename T> void operator=(const T&) {}
+-  };
+-
+-  counting_iterator() : count_(0) {}
+-
+-  size_t count() const { return count_; }
+-
+-  counting_iterator& operator++() {
+-    ++count_;
+-    return *this;
+-  }
+-  counting_iterator operator++(int) {
+-    auto it = *this;
+-    ++*this;
+-    return it;
+-  }
+-
+-  friend counting_iterator operator+(counting_iterator it, difference_type n) {
+-    it.count_ += static_cast<size_t>(n);
+-    return it;
+-  }
+-
+-  value_type operator*() const { return {}; }
+-};
+-
+-template <typename Char, typename InputIt>
+-inline counting_iterator copy_str(InputIt begin, InputIt end,
+-                                  counting_iterator it) {
+-  return it + (end - begin);
+-}
+-
+-template <typename OutputIt> class truncating_iterator_base {
+- protected:
+-  OutputIt out_;
+-  size_t limit_;
+-  size_t count_ = 0;
+-
+-  truncating_iterator_base() : out_(), limit_(0) {}
+-
+-  truncating_iterator_base(OutputIt out, size_t limit)
+-      : out_(out), limit_(limit) {}
+-
+- public:
+-  using iterator_category = std::output_iterator_tag;
+-  using value_type = typename std::iterator_traits<OutputIt>::value_type;
+-  using difference_type = std::ptrdiff_t;
+-  using pointer = void;
+-  using reference = void;
+-  using _Unchecked_type =
+-      truncating_iterator_base;  // Mark iterator as checked.
+-
+-  OutputIt base() const { return out_; }
+-  size_t count() const { return count_; }
+-};
+-
+-// An output iterator that truncates the output and counts the number of objects
+-// written to it.
+-template <typename OutputIt,
+-          typename Enable = typename std::is_void<
+-              typename std::iterator_traits<OutputIt>::value_type>::type>
+-class truncating_iterator;
+-
+-template <typename OutputIt>
+-class truncating_iterator<OutputIt, std::false_type>
+-    : public truncating_iterator_base<OutputIt> {
+-  mutable typename truncating_iterator_base<OutputIt>::value_type blackhole_;
+-
+- public:
+-  using value_type = typename truncating_iterator_base<OutputIt>::value_type;
+-
+-  truncating_iterator() = default;
+-
+-  truncating_iterator(OutputIt out, size_t limit)
+-      : truncating_iterator_base<OutputIt>(out, limit) {}
+-
+-  truncating_iterator& operator++() {
+-    if (this->count_++ < this->limit_) ++this->out_;
+-    return *this;
+-  }
+-
+-  truncating_iterator operator++(int) {
+-    auto it = *this;
+-    ++*this;
+-    return it;
+-  }
+-
+-  value_type& operator*() const {
+-    return this->count_ < this->limit_ ? *this->out_ : blackhole_;
+-  }
+-};
+-
+-template <typename OutputIt>
+-class truncating_iterator<OutputIt, std::true_type>
+-    : public truncating_iterator_base<OutputIt> {
+- public:
+-  truncating_iterator() = default;
+-
+-  truncating_iterator(OutputIt out, size_t limit)
+-      : truncating_iterator_base<OutputIt>(out, limit) {}
+-
+-  template <typename T> truncating_iterator& operator=(T val) {
+-    if (this->count_++ < this->limit_) *this->out_++ = val;
+-    return *this;
+-  }
+-
+-  truncating_iterator& operator++() { return *this; }
+-  truncating_iterator& operator++(int) { return *this; }
+-  truncating_iterator& operator*() { return *this; }
+-};
+-
+-// A compile-time string which is compiled into fast formatting code.
+-class compiled_string {};
+-
+-template <typename S>
+-struct is_compiled_string : std::is_base_of<compiled_string, S> {};
+-
+-/**
+-  \rst
+-  Converts a string literal *s* into a format string that will be parsed at
+-  compile time and converted into efficient formatting code. Requires C++17
+-  ``constexpr if`` compiler support.
+-
+-  **Example**::
+-
+-    // Converts 42 into std::string using the most efficient method and no
+-    // runtime format string processing.
+-    std::string s = fmt::format(FMT_COMPILE("{}"), 42);
+-  \endrst
+- */
+-#if defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
+-#  define FMT_COMPILE(s) \
+-    FMT_STRING_IMPL(s, fmt::detail::compiled_string, explicit)
+-#else
+-#  define FMT_COMPILE(s) FMT_STRING(s)
+-#endif
+-
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct udl_compiled_string : compiled_string {
+-  using char_type = Char;
+-  constexpr operator basic_string_view<char_type>() const {
+-    return {Str.data, N - 1};
+-  }
+-};
+-#endif
+-
+-template <typename T, typename... Tail>
+-const T& first(const T& value, const Tail&...) {
+-  return value;
+-}
+-
+-#if defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
+-template <typename... Args> struct type_list {};
+-
+-// Returns a reference to the argument at index N from [first, rest...].
+-template <int N, typename T, typename... Args>
+-constexpr const auto& get([[maybe_unused]] const T& first,
+-                          [[maybe_unused]] const Args&... rest) {
+-  static_assert(N < 1 + sizeof...(Args), "index is out of bounds");
+-  if constexpr (N == 0)
+-    return first;
+-  else
+-    return detail::get<N - 1>(rest...);
+-}
+-
+-template <typename Char, typename... Args>
+-constexpr int get_arg_index_by_name(basic_string_view<Char> name,
+-                                    type_list<Args...>) {
+-  return get_arg_index_by_name<Args...>(name);
+-}
+-
+-template <int N, typename> struct get_type_impl;
+-
+-template <int N, typename... Args> struct get_type_impl<N, type_list<Args...>> {
+-  using type =
+-      remove_cvref_t<decltype(detail::get<N>(std::declval<Args>()...))>;
+-};
+-
+-template <int N, typename T>
+-using get_type = typename get_type_impl<N, T>::type;
+-
+-template <typename T> struct is_compiled_format : std::false_type {};
+-
+-template <typename Char> struct text {
+-  basic_string_view<Char> data;
+-  using char_type = Char;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&...) const {
+-    return write<Char>(out, data);
+-  }
+-};
+-
+-template <typename Char>
+-struct is_compiled_format<text<Char>> : std::true_type {};
+-
+-template <typename Char>
+-constexpr text<Char> make_text(basic_string_view<Char> s, size_t pos,
+-                               size_t size) {
+-  return {{&s[pos], size}};
+-}
+-
+-template <typename Char> struct code_unit {
+-  Char value;
+-  using char_type = Char;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&...) const {
+-    return write<Char>(out, value);
+-  }
+-};
+-
+-// This ensures that the argument type is convertible to `const T&`.
+-template <typename T, int N, typename... Args>
+-constexpr const T& get_arg_checked(const Args&... args) {
+-  const auto& arg = detail::get<N>(args...);
+-  if constexpr (detail::is_named_arg<remove_cvref_t<decltype(arg)>>()) {
+-    return arg.value;
+-  } else {
+-    return arg;
+-  }
+-}
+-
+-template <typename Char>
+-struct is_compiled_format<code_unit<Char>> : std::true_type {};
+-
+-// A replacement field that refers to argument N.
+-template <typename Char, typename T, int N> struct field {
+-  using char_type = Char;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&... args) const {
+-    return write<Char>(out, get_arg_checked<T, N>(args...));
+-  }
+-};
+-
+-template <typename Char, typename T, int N>
+-struct is_compiled_format<field<Char, T, N>> : std::true_type {};
+-
+-// A replacement field that refers to argument with name.
+-template <typename Char> struct runtime_named_field {
+-  using char_type = Char;
+-  basic_string_view<Char> name;
+-
+-  template <typename OutputIt, typename T>
+-  constexpr static bool try_format_argument(
+-      OutputIt& out,
+-      // [[maybe_unused]] due to unused-but-set-parameter warning in GCC 7,8,9
+-      [[maybe_unused]] basic_string_view<Char> arg_name, const T& arg) {
+-    if constexpr (is_named_arg<typename std::remove_cv<T>::type>::value) {
+-      if (arg_name == arg.name) {
+-        out = write<Char>(out, arg.value);
+-        return true;
+-      }
+-    }
+-    return false;
+-  }
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&... args) const {
+-    bool found = (try_format_argument(out, name, args) || ...);
+-    if (!found) {
+-      FMT_THROW(format_error("argument with specified name is not found"));
+-    }
+-    return out;
+-  }
+-};
+-
+-template <typename Char>
+-struct is_compiled_format<runtime_named_field<Char>> : std::true_type {};
+-
+-// A replacement field that refers to argument N and has format specifiers.
+-template <typename Char, typename T, int N> struct spec_field {
+-  using char_type = Char;
+-  formatter<T, Char> fmt;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr FMT_INLINE OutputIt format(OutputIt out,
+-                                       const Args&... args) const {
+-    const auto& vargs =
+-        fmt::make_format_args<basic_format_context<OutputIt, Char>>(args...);
+-    basic_format_context<OutputIt, Char> ctx(out, vargs);
+-    return fmt.format(get_arg_checked<T, N>(args...), ctx);
+-  }
+-};
+-
+-template <typename Char, typename T, int N>
+-struct is_compiled_format<spec_field<Char, T, N>> : std::true_type {};
+-
+-template <typename L, typename R> struct concat {
+-  L lhs;
+-  R rhs;
+-  using char_type = typename L::char_type;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&... args) const {
+-    out = lhs.format(out, args...);
+-    return rhs.format(out, args...);
+-  }
+-};
+-
+-template <typename L, typename R>
+-struct is_compiled_format<concat<L, R>> : std::true_type {};
+-
+-template <typename L, typename R>
+-constexpr concat<L, R> make_concat(L lhs, R rhs) {
+-  return {lhs, rhs};
+-}
+-
+-struct unknown_format {};
+-
+-template <typename Char>
+-constexpr size_t parse_text(basic_string_view<Char> str, size_t pos) {
+-  for (size_t size = str.size(); pos != size; ++pos) {
+-    if (str[pos] == '{' || str[pos] == '}') break;
+-  }
+-  return pos;
+-}
+-
+-template <typename Args, size_t POS, int ID, typename S>
+-constexpr auto compile_format_string(S format_str);
+-
+-template <typename Args, size_t POS, int ID, typename T, typename S>
+-constexpr auto parse_tail(T head, S format_str) {
+-  if constexpr (POS !=
+-                basic_string_view<typename S::char_type>(format_str).size()) {
+-    constexpr auto tail = compile_format_string<Args, POS, ID>(format_str);
+-    if constexpr (std::is_same<remove_cvref_t<decltype(tail)>,
+-                               unknown_format>())
+-      return tail;
+-    else
+-      return make_concat(head, tail);
+-  } else {
+-    return head;
+-  }
+-}
+-
+-template <typename T, typename Char> struct parse_specs_result {
+-  formatter<T, Char> fmt;
+-  size_t end;
+-  int next_arg_id;
+-};
+-
+-constexpr int manual_indexing_id = -1;
+-
+-template <typename T, typename Char>
+-constexpr parse_specs_result<T, Char> parse_specs(basic_string_view<Char> str,
+-                                                  size_t pos, int next_arg_id) {
+-  str.remove_prefix(pos);
+-  auto ctx = basic_format_parse_context<Char>(str, {}, next_arg_id);
+-  auto f = formatter<T, Char>();
+-  auto end = f.parse(ctx);
+-  return {f, pos + fmt::detail::to_unsigned(end - str.data()) + 1,
+-          next_arg_id == 0 ? manual_indexing_id : ctx.next_arg_id()};
+-}
+-
+-template <typename Char> struct arg_id_handler {
+-  arg_ref<Char> arg_id;
+-
+-  constexpr int operator()() {
+-    FMT_ASSERT(false, "handler cannot be used with automatic indexing");
+-    return 0;
+-  }
+-  constexpr int operator()(int id) {
+-    arg_id = arg_ref<Char>(id);
+-    return 0;
+-  }
+-  constexpr int operator()(basic_string_view<Char> id) {
+-    arg_id = arg_ref<Char>(id);
+-    return 0;
+-  }
+-
+-  constexpr void on_error(const char* message) {
+-    FMT_THROW(format_error(message));
+-  }
+-};
+-
+-template <typename Char> struct parse_arg_id_result {
+-  arg_ref<Char> arg_id;
+-  const Char* arg_id_end;
+-};
+-
+-template <int ID, typename Char>
+-constexpr auto parse_arg_id(const Char* begin, const Char* end) {
+-  auto handler = arg_id_handler<Char>{arg_ref<Char>{}};
+-  auto arg_id_end = parse_arg_id(begin, end, handler);
+-  return parse_arg_id_result<Char>{handler.arg_id, arg_id_end};
+-}
+-
+-template <typename T, typename Enable = void> struct field_type {
+-  using type = remove_cvref_t<T>;
+-};
+-
+-template <typename T>
+-struct field_type<T, enable_if_t<detail::is_named_arg<T>::value>> {
+-  using type = remove_cvref_t<decltype(T::value)>;
+-};
+-
+-template <typename T, typename Args, size_t END_POS, int ARG_INDEX, int NEXT_ID,
+-          typename S>
+-constexpr auto parse_replacement_field_then_tail(S format_str) {
+-  using char_type = typename S::char_type;
+-  constexpr auto str = basic_string_view<char_type>(format_str);
+-  constexpr char_type c = END_POS != str.size() ? str[END_POS] : char_type();
+-  if constexpr (c == '}') {
+-    return parse_tail<Args, END_POS + 1, NEXT_ID>(
+-        field<char_type, typename field_type<T>::type, ARG_INDEX>(),
+-        format_str);
+-  } else if constexpr (c == ':') {
+-    constexpr auto result = parse_specs<typename field_type<T>::type>(
+-        str, END_POS + 1, NEXT_ID == manual_indexing_id ? 0 : NEXT_ID);
+-    return parse_tail<Args, result.end, result.next_arg_id>(
+-        spec_field<char_type, typename field_type<T>::type, ARG_INDEX>{
+-            result.fmt},
+-        format_str);
+-  }
+-}
+-
+-// Compiles a non-empty format string and returns the compiled representation
+-// or unknown_format() on unrecognized input.
+-template <typename Args, size_t POS, int ID, typename S>
+-constexpr auto compile_format_string(S format_str) {
+-  using char_type = typename S::char_type;
+-  constexpr auto str = basic_string_view<char_type>(format_str);
+-  if constexpr (str[POS] == '{') {
+-    if constexpr (POS + 1 == str.size())
+-      FMT_THROW(format_error("unmatched '{' in format string"));
+-    if constexpr (str[POS + 1] == '{') {
+-      return parse_tail<Args, POS + 2, ID>(make_text(str, POS, 1), format_str);
+-    } else if constexpr (str[POS + 1] == '}' || str[POS + 1] == ':') {
+-      static_assert(ID != manual_indexing_id,
+-                    "cannot switch from manual to automatic argument indexing");
+-      constexpr auto next_id =
+-          ID != manual_indexing_id ? ID + 1 : manual_indexing_id;
+-      return parse_replacement_field_then_tail<get_type<ID, Args>, Args,
+-                                               POS + 1, ID, next_id>(
+-          format_str);
+-    } else {
+-      constexpr auto arg_id_result =
+-          parse_arg_id<ID>(str.data() + POS + 1, str.data() + str.size());
+-      constexpr auto arg_id_end_pos = arg_id_result.arg_id_end - str.data();
+-      constexpr char_type c =
+-          arg_id_end_pos != str.size() ? str[arg_id_end_pos] : char_type();
+-      static_assert(c == '}' || c == ':', "missing '}' in format string");
+-      if constexpr (arg_id_result.arg_id.kind == arg_id_kind::index) {
+-        static_assert(
+-            ID == manual_indexing_id || ID == 0,
+-            "cannot switch from automatic to manual argument indexing");
+-        constexpr auto arg_index = arg_id_result.arg_id.val.index;
+-        return parse_replacement_field_then_tail<get_type<arg_index, Args>,
+-                                                 Args, arg_id_end_pos,
+-                                                 arg_index, manual_indexing_id>(
+-            format_str);
+-      } else if constexpr (arg_id_result.arg_id.kind == arg_id_kind::name) {
+-        constexpr auto arg_index =
+-            get_arg_index_by_name(arg_id_result.arg_id.val.name, Args{});
+-        if constexpr (arg_index != invalid_arg_index) {
+-          constexpr auto next_id =
+-              ID != manual_indexing_id ? ID + 1 : manual_indexing_id;
+-          return parse_replacement_field_then_tail<
+-              decltype(get_type<arg_index, Args>::value), Args, arg_id_end_pos,
+-              arg_index, next_id>(format_str);
+-        } else {
+-          if constexpr (c == '}') {
+-            return parse_tail<Args, arg_id_end_pos + 1, ID>(
+-                runtime_named_field<char_type>{arg_id_result.arg_id.val.name},
+-                format_str);
+-          } else if constexpr (c == ':') {
+-            return unknown_format();  // no type info for specs parsing
+-          }
+-        }
+-      }
+-    }
+-  } else if constexpr (str[POS] == '}') {
+-    if constexpr (POS + 1 == str.size())
+-      FMT_THROW(format_error("unmatched '}' in format string"));
+-    return parse_tail<Args, POS + 2, ID>(make_text(str, POS, 1), format_str);
+-  } else {
+-    constexpr auto end = parse_text(str, POS + 1);
+-    if constexpr (end - POS > 1) {
+-      return parse_tail<Args, end, ID>(make_text(str, POS, end - POS),
+-                                       format_str);
+-    } else {
+-      return parse_tail<Args, end, ID>(code_unit<char_type>{str[POS]},
+-                                       format_str);
+-    }
+-  }
+-}
+-
+-template <typename... Args, typename S,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-constexpr auto compile(S format_str) {
+-  constexpr auto str = basic_string_view<typename S::char_type>(format_str);
+-  if constexpr (str.size() == 0) {
+-    return detail::make_text(str, 0, 0);
+-  } else {
+-    constexpr auto result =
+-        detail::compile_format_string<detail::type_list<Args...>, 0, 0>(
+-            format_str);
+-    return result;
+-  }
+-}
+-#endif  // defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
+-}  // namespace detail
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-#if defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
+-
+-template <typename CompiledFormat, typename... Args,
+-          typename Char = typename CompiledFormat::char_type,
+-          FMT_ENABLE_IF(detail::is_compiled_format<CompiledFormat>::value)>
+-FMT_INLINE std::basic_string<Char> format(const CompiledFormat& cf,
+-                                          const Args&... args) {
+-  auto s = std::basic_string<Char>();
+-  cf.format(std::back_inserter(s), args...);
+-  return s;
+-}
+-
+-template <typename OutputIt, typename CompiledFormat, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_format<CompiledFormat>::value)>
+-constexpr FMT_INLINE OutputIt format_to(OutputIt out, const CompiledFormat& cf,
+-                                        const Args&... args) {
+-  return cf.format(out, args...);
+-}
+-
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-FMT_INLINE std::basic_string<typename S::char_type> format(const S&,
+-                                                           Args&&... args) {
+-  if constexpr (std::is_same<typename S::char_type, char>::value) {
+-    constexpr auto str = basic_string_view<typename S::char_type>(S());
+-    if constexpr (str.size() == 2 && str[0] == '{' && str[1] == '}') {
+-      const auto& first = detail::first(args...);
+-      if constexpr (detail::is_named_arg<
+-                        remove_cvref_t<decltype(first)>>::value) {
+-        return fmt::to_string(first.value);
+-      } else {
+-        return fmt::to_string(first);
+-      }
+-    }
+-  }
+-  constexpr auto compiled = detail::compile<Args...>(S());
+-  if constexpr (std::is_same<remove_cvref_t<decltype(compiled)>,
+-                             detail::unknown_format>()) {
+-    return format(static_cast<basic_string_view<typename S::char_type>>(S()),
+-                  std::forward<Args>(args)...);
+-  } else {
+-    return format(compiled, std::forward<Args>(args)...);
+-  }
+-}
+-
+-template <typename OutputIt, typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-FMT_CONSTEXPR OutputIt format_to(OutputIt out, const S&, Args&&... args) {
+-  constexpr auto compiled = detail::compile<Args...>(S());
+-  if constexpr (std::is_same<remove_cvref_t<decltype(compiled)>,
+-                             detail::unknown_format>()) {
+-    return format_to(out,
+-                     static_cast<basic_string_view<typename S::char_type>>(S()),
+-                     std::forward<Args>(args)...);
+-  } else {
+-    return format_to(out, compiled, std::forward<Args>(args)...);
+-  }
+-}
+-#endif
+-
+-template <typename OutputIt, typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-format_to_n_result<OutputIt> format_to_n(OutputIt out, size_t n,
+-                                         const S& format_str, Args&&... args) {
+-  auto it = format_to(detail::truncating_iterator<OutputIt>(out, n), format_str,
+-                      std::forward<Args>(args)...);
+-  return {it.base(), it.count()};
+-}
+-
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-size_t formatted_size(const S& format_str, const Args&... args) {
+-  return format_to(detail::counting_iterator(), format_str, args...).count();
+-}
+-
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-void print(std::FILE* f, const S& format_str, const Args&... args) {
+-  memory_buffer buffer;
+-  format_to(std::back_inserter(buffer), format_str, args...);
+-  detail::print(f, {buffer.data(), buffer.size()});
+-}
+-
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-void print(const S& format_str, const Args&... args) {
+-  print(stdout, format_str, args...);
+-}
+-
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-inline namespace literals {
+-template <detail_exported::fixed_string Str>
+-constexpr detail::udl_compiled_string<
+-    remove_cvref_t<decltype(Str.data[0])>,
+-    sizeof(Str.data) / sizeof(decltype(Str.data[0])), Str>
+-operator""_cf() {
+-  return {};
+-}
+-}  // namespace literals
+-#endif
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_COMPILE_H_
+diff --git a/include/dpp/fmt/core.h b/include/dpp/fmt/core.h
+deleted file mode 100644
+index 92a7aa1..0000000
+--- a/include/dpp/fmt/core.h
++++ /dev/null
+@@ -1,3236 +0,0 @@
+-// Formatting library for C++ - the core API for char/UTF-8
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_CORE_H_
+-#define FMT_CORE_H_
+-
+-#include <cstddef>  // std::byte
+-#include <cstdio>   // std::FILE
+-#include <cstring>
+-#include <iterator>
+-#include <limits>
+-#include <string>
+-#include <type_traits>
+-
+-// The fmt library version in the form major * 10000 + minor * 100 + patch.
+-#define FMT_VERSION 80101
+-
+-#if defined(__clang__) && !defined(__ibmxl__)
+-#  define FMT_CLANG_VERSION (__clang_major__ * 100 + __clang_minor__)
+-#else
+-#  define FMT_CLANG_VERSION 0
+-#endif
+-
+-#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) && \
+-    !defined(__NVCOMPILER)
+-#  define FMT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
+-#else
+-#  define FMT_GCC_VERSION 0
+-#endif
+-
+-#ifndef FMT_GCC_PRAGMA
+-// Workaround _Pragma bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59884.
+-#  if FMT_GCC_VERSION >= 504
+-#    define FMT_GCC_PRAGMA(arg) _Pragma(arg)
+-#  else
+-#    define FMT_GCC_PRAGMA(arg)
+-#  endif
+-#endif
+-
+-#ifdef __ICL
+-#  define FMT_ICC_VERSION __ICL
+-#elif defined(__INTEL_COMPILER)
+-#  define FMT_ICC_VERSION __INTEL_COMPILER
+-#else
+-#  define FMT_ICC_VERSION 0
+-#endif
+-
+-#ifdef __NVCC__
+-#  define FMT_NVCC __NVCC__
+-#else
+-#  define FMT_NVCC 0
+-#endif
+-
+-#ifdef _MSC_VER
+-#  define FMT_MSC_VER _MSC_VER
+-#  define FMT_MSC_WARNING(...) __pragma(warning(__VA_ARGS__))
+-#else
+-#  define FMT_MSC_VER 0
+-#  define FMT_MSC_WARNING(...)
+-#endif
+-
+-#ifdef __has_feature
+-#  define FMT_HAS_FEATURE(x) __has_feature(x)
+-#else
+-#  define FMT_HAS_FEATURE(x) 0
+-#endif
+-
+-#if defined(__has_include) &&                             \
+-    (!defined(__INTELLISENSE__) || FMT_MSC_VER > 1900) && \
+-    (!FMT_ICC_VERSION || FMT_ICC_VERSION >= 1600)
+-#  define FMT_HAS_INCLUDE(x) __has_include(x)
+-#else
+-#  define FMT_HAS_INCLUDE(x) 0
+-#endif
+-
+-#ifdef __has_cpp_attribute
+-#  define FMT_HAS_CPP_ATTRIBUTE(x) __has_cpp_attribute(x)
+-#else
+-#  define FMT_HAS_CPP_ATTRIBUTE(x) 0
+-#endif
+-
+-#ifdef _MSVC_LANG
+-#  define FMT_CPLUSPLUS _MSVC_LANG
+-#else
+-#  define FMT_CPLUSPLUS __cplusplus
+-#endif
+-
+-#define FMT_HAS_CPP14_ATTRIBUTE(attribute) \
+-  (FMT_CPLUSPLUS >= 201402L && FMT_HAS_CPP_ATTRIBUTE(attribute))
+-
+-#define FMT_HAS_CPP17_ATTRIBUTE(attribute) \
+-  (FMT_CPLUSPLUS >= 201703L && FMT_HAS_CPP_ATTRIBUTE(attribute))
+-
+-// Check if relaxed C++14 constexpr is supported.
+-// GCC doesn't allow throw in constexpr until version 6 (bug 67371).
+-#ifndef FMT_USE_CONSTEXPR
+-#  define FMT_USE_CONSTEXPR                                           \
+-    (FMT_HAS_FEATURE(cxx_relaxed_constexpr) || FMT_MSC_VER >= 1912 || \
+-     (FMT_GCC_VERSION >= 600 && __cplusplus >= 201402L)) &&           \
+-        !FMT_NVCC && !FMT_ICC_VERSION
+-#endif
+-#if FMT_USE_CONSTEXPR
+-#  define FMT_CONSTEXPR constexpr
+-#  define FMT_CONSTEXPR_DECL constexpr
+-#else
+-#  define FMT_CONSTEXPR
+-#  define FMT_CONSTEXPR_DECL
+-#endif
+-
+-#if ((__cplusplus >= 202002L) &&                              \
+-     (!defined(_GLIBCXX_RELEASE) || _GLIBCXX_RELEASE > 9)) || \
+-    (__cplusplus >= 201709L && FMT_GCC_VERSION >= 1002)
+-#  define FMT_CONSTEXPR20 constexpr
+-#else
+-#  define FMT_CONSTEXPR20
+-#endif
+-
+-// Check if constexpr std::char_traits<>::compare,length is supported.
+-#if defined(__GLIBCXX__)
+-#  if __cplusplus >= 201703L && defined(_GLIBCXX_RELEASE) && \
+-      _GLIBCXX_RELEASE >= 7  // GCC 7+ libstdc++ has _GLIBCXX_RELEASE.
+-#    define FMT_CONSTEXPR_CHAR_TRAITS constexpr
+-#  endif
+-#elif defined(_LIBCPP_VERSION) && __cplusplus >= 201703L && \
+-    _LIBCPP_VERSION >= 4000
+-#  define FMT_CONSTEXPR_CHAR_TRAITS constexpr
+-#elif FMT_MSC_VER >= 1914 && _MSVC_LANG >= 201703L
+-#  define FMT_CONSTEXPR_CHAR_TRAITS constexpr
+-#endif
+-#ifndef FMT_CONSTEXPR_CHAR_TRAITS
+-#  define FMT_CONSTEXPR_CHAR_TRAITS
+-#endif
+-
+-// Check if exceptions are disabled.
+-#ifndef FMT_EXCEPTIONS
+-#  if (defined(__GNUC__) && !defined(__EXCEPTIONS)) || \
+-      FMT_MSC_VER && !_HAS_EXCEPTIONS
+-#    define FMT_EXCEPTIONS 0
+-#  else
+-#    define FMT_EXCEPTIONS 1
+-#  endif
+-#endif
+-
+-// Define FMT_USE_NOEXCEPT to make fmt use noexcept (C++11 feature).
+-#ifndef FMT_USE_NOEXCEPT
+-#  define FMT_USE_NOEXCEPT 0
+-#endif
+-
+-#if FMT_USE_NOEXCEPT || FMT_HAS_FEATURE(cxx_noexcept) || \
+-    FMT_GCC_VERSION >= 408 || FMT_MSC_VER >= 1900
+-#  define FMT_DETECTED_NOEXCEPT noexcept
+-#  define FMT_HAS_CXX11_NOEXCEPT 1
+-#else
+-#  define FMT_DETECTED_NOEXCEPT throw()
+-#  define FMT_HAS_CXX11_NOEXCEPT 0
+-#endif
+-
+-#ifndef FMT_NOEXCEPT
+-#  if FMT_EXCEPTIONS || FMT_HAS_CXX11_NOEXCEPT
+-#    define FMT_NOEXCEPT FMT_DETECTED_NOEXCEPT
+-#  else
+-#    define FMT_NOEXCEPT
+-#  endif
+-#endif
+-
+-// [[noreturn]] is disabled on MSVC and NVCC because of bogus unreachable code
+-// warnings.
+-#if FMT_EXCEPTIONS && FMT_HAS_CPP_ATTRIBUTE(noreturn) && !FMT_MSC_VER && \
+-    !FMT_NVCC
+-#  define FMT_NORETURN [[noreturn]]
+-#else
+-#  define FMT_NORETURN
+-#endif
+-
+-#if __cplusplus == 201103L || __cplusplus == 201402L
+-#  if defined(__INTEL_COMPILER) || defined(__PGI)
+-#    define FMT_FALLTHROUGH
+-#  elif defined(__clang__)
+-#    define FMT_FALLTHROUGH [[clang::fallthrough]]
+-#  elif FMT_GCC_VERSION >= 700 && \
+-      (!defined(__EDG_VERSION__) || __EDG_VERSION__ >= 520)
+-#    define FMT_FALLTHROUGH [[gnu::fallthrough]]
+-#  else
+-#    define FMT_FALLTHROUGH
+-#  endif
+-#elif FMT_HAS_CPP17_ATTRIBUTE(fallthrough)
+-#  define FMT_FALLTHROUGH [[fallthrough]]
+-#else
+-#  define FMT_FALLTHROUGH
+-#endif
+-
+-#ifndef FMT_NODISCARD
+-#  if FMT_HAS_CPP17_ATTRIBUTE(nodiscard)
+-#    define FMT_NODISCARD [[nodiscard]]
+-#  else
+-#    define FMT_NODISCARD
+-#  endif
+-#endif
+-
+-#ifndef FMT_USE_FLOAT
+-#  define FMT_USE_FLOAT 1
+-#endif
+-#ifndef FMT_USE_DOUBLE
+-#  define FMT_USE_DOUBLE 1
+-#endif
+-#ifndef FMT_USE_LONG_DOUBLE
+-#  define FMT_USE_LONG_DOUBLE 1
+-#endif
+-
+-#ifndef FMT_INLINE
+-#  if FMT_GCC_VERSION || FMT_CLANG_VERSION
+-#    define FMT_INLINE inline __attribute__((always_inline))
+-#  else
+-#    define FMT_INLINE inline
+-#  endif
+-#endif
+-
+-#ifndef FMT_DEPRECATED
+-#  if FMT_HAS_CPP14_ATTRIBUTE(deprecated) || FMT_MSC_VER >= 1900
+-#    define FMT_DEPRECATED [[deprecated]]
+-#  else
+-#    if (defined(__GNUC__) && !defined(__LCC__)) || defined(__clang__)
+-#      define FMT_DEPRECATED __attribute__((deprecated))
+-#    elif FMT_MSC_VER
+-#      define FMT_DEPRECATED __declspec(deprecated)
+-#    else
+-#      define FMT_DEPRECATED /* deprecated */
+-#    endif
+-#  endif
+-#endif
+-
+-#ifndef FMT_BEGIN_NAMESPACE
+-#  define FMT_BEGIN_NAMESPACE \
+-    namespace fmt {           \
+-    inline namespace v8 {
+-#  define FMT_END_NAMESPACE \
+-    }                       \
+-    }
+-#endif
+-
+-#ifndef FMT_MODULE_EXPORT
+-#  define FMT_MODULE_EXPORT
+-#  define FMT_MODULE_EXPORT_BEGIN
+-#  define FMT_MODULE_EXPORT_END
+-#  define FMT_BEGIN_DETAIL_NAMESPACE namespace detail {
+-#  define FMT_END_DETAIL_NAMESPACE }
+-#endif
+-
+-#if !defined(FMT_HEADER_ONLY) && defined(_WIN32)
+-#  define FMT_CLASS_API FMT_MSC_WARNING(suppress : 4275)
+-#  ifdef FMT_EXPORT
+-#    define FMT_API __declspec(dllexport)
+-#  elif defined(FMT_SHARED)
+-#    define FMT_API __declspec(dllimport)
+-#  endif
+-#else
+-#  define FMT_CLASS_API
+-#  if defined(FMT_EXPORT) || defined(FMT_SHARED)
+-#    if defined(__GNUC__) || defined(__clang__)
+-#      define FMT_API __attribute__((visibility("default")))
+-#    endif
+-#  endif
+-#endif
+-#ifndef FMT_API
+-#  define FMT_API
+-#endif
+-
+-// libc++ supports string_view in pre-c++17.
+-#if (FMT_HAS_INCLUDE(<string_view>) &&                       \
+-     (__cplusplus > 201402L || defined(_LIBCPP_VERSION))) || \
+-    (defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910)
+-#  include <string_view>
+-#  define FMT_USE_STRING_VIEW
+-#elif FMT_HAS_INCLUDE("experimental/string_view") && __cplusplus >= 201402L
+-#  include <experimental/string_view>
+-#  define FMT_USE_EXPERIMENTAL_STRING_VIEW
+-#endif
+-
+-#ifndef FMT_UNICODE
+-#  define FMT_UNICODE !FMT_MSC_VER
+-#endif
+-
+-#ifndef FMT_CONSTEVAL
+-#  if ((FMT_GCC_VERSION >= 1000 || FMT_CLANG_VERSION >= 1101) &&      \
+-       __cplusplus > 201703L && !defined(__apple_build_version__)) || \
+-      (defined(__cpp_consteval) &&                                    \
+-       (!FMT_MSC_VER || _MSC_FULL_VER >= 193030704))
+-// consteval is broken in MSVC before VS2022 and Apple clang 13.
+-#    define FMT_CONSTEVAL consteval
+-#    define FMT_HAS_CONSTEVAL
+-#  else
+-#    define FMT_CONSTEVAL
+-#  endif
+-#endif
+-
+-#ifndef FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-#  if defined(__cpp_nontype_template_args) &&                \
+-      ((FMT_GCC_VERSION >= 903 && __cplusplus >= 201709L) || \
+-       __cpp_nontype_template_args >= 201911L)
+-#    define FMT_USE_NONTYPE_TEMPLATE_PARAMETERS 1
+-#  else
+-#    define FMT_USE_NONTYPE_TEMPLATE_PARAMETERS 0
+-#  endif
+-#endif
+-
+-// Enable minimal optimizations for more compact code in debug mode.
+-FMT_GCC_PRAGMA("GCC push_options")
+-#ifndef __OPTIMIZE__
+-FMT_GCC_PRAGMA("GCC optimize(\"Og\")")
+-#endif
+-
+-FMT_BEGIN_NAMESPACE
+-FMT_MODULE_EXPORT_BEGIN
+-
+-// Implementations of enable_if_t and other metafunctions for older systems.
+-template <bool B, typename T = void>
+-using enable_if_t = typename std::enable_if<B, T>::type;
+-template <bool B, typename T, typename F>
+-using conditional_t = typename std::conditional<B, T, F>::type;
+-template <bool B> using bool_constant = std::integral_constant<bool, B>;
+-template <typename T>
+-using remove_reference_t = typename std::remove_reference<T>::type;
+-template <typename T>
+-using remove_const_t = typename std::remove_const<T>::type;
+-template <typename T>
+-using remove_cvref_t = typename std::remove_cv<remove_reference_t<T>>::type;
+-template <typename T> struct type_identity { using type = T; };
+-template <typename T> using type_identity_t = typename type_identity<T>::type;
+-
+-struct monostate {
+-  constexpr monostate() {}
+-};
+-
+-// An enable_if helper to be used in template parameters which results in much
+-// shorter symbols: https://godbolt.org/z/sWw4vP. Extra parentheses are needed
+-// to workaround a bug in MSVC 2019 (see #1140 and #1186).
+-#ifdef FMT_DOC
+-#  define FMT_ENABLE_IF(...)
+-#else
+-#  define FMT_ENABLE_IF(...) enable_if_t<(__VA_ARGS__), int> = 0
+-#endif
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// Suppress "unused variable" warnings with the method described in
+-// https://herbsutter.com/2009/10/18/mailbag-shutting-up-compiler-warnings/.
+-// (void)var does not work on many Intel compilers.
+-template <typename... T> FMT_CONSTEXPR void ignore_unused(const T&...) {}
+-
+-constexpr FMT_INLINE auto is_constant_evaluated(bool default_value = false)
+-    FMT_NOEXCEPT -> bool {
+-#ifdef __cpp_lib_is_constant_evaluated
+-  ignore_unused(default_value);
+-  return std::is_constant_evaluated();
+-#else
+-  return default_value;
+-#endif
+-}
+-
+-// A function to suppress "conditional expression is constant" warnings.
+-template <typename T> constexpr FMT_INLINE auto const_check(T value) -> T {
+-  return value;
+-}
+-
+-FMT_NORETURN FMT_API void assert_fail(const char* file, int line,
+-                                      const char* message);
+-
+-#ifndef FMT_ASSERT
+-#  ifdef NDEBUG
+-// FMT_ASSERT is not empty to avoid -Werror=empty-body.
+-#    define FMT_ASSERT(condition, message) \
+-      ::fmt::detail::ignore_unused((condition), (message))
+-#  else
+-#    define FMT_ASSERT(condition, message)                                    \
+-      ((condition) /* void() fails with -Winvalid-constexpr on clang 4.0.1 */ \
+-           ? (void)0                                                          \
+-           : ::fmt::detail::assert_fail(__FILE__, __LINE__, (message)))
+-#  endif
+-#endif
+-
+-#ifdef __cpp_lib_byte
+-using byte = std::byte;
+-#else
+-enum class byte : unsigned char {};
+-#endif
+-
+-#if defined(FMT_USE_STRING_VIEW)
+-template <typename Char> using std_string_view = std::basic_string_view<Char>;
+-#elif defined(FMT_USE_EXPERIMENTAL_STRING_VIEW)
+-template <typename Char>
+-using std_string_view = std::experimental::basic_string_view<Char>;
+-#else
+-template <typename T> struct std_string_view {};
+-#endif
+-
+-#ifdef FMT_USE_INT128
+-// Do nothing.
+-#elif defined(__SIZEOF_INT128__) && !FMT_NVCC && \
+-    !(FMT_CLANG_VERSION && FMT_MSC_VER)
+-#  define FMT_USE_INT128 1
+-using int128_t = __int128_t;
+-using uint128_t = __uint128_t;
+-template <typename T> inline auto convert_for_visit(T value) -> T {
+-  return value;
+-}
+-#else
+-#  define FMT_USE_INT128 0
+-#endif
+-#if !FMT_USE_INT128
+-enum class int128_t {};
+-enum class uint128_t {};
+-// Reduce template instantiations.
+-template <typename T> inline auto convert_for_visit(T) -> monostate {
+-  return {};
+-}
+-#endif
+-
+-// Casts a nonnegative integer to unsigned.
+-template <typename Int>
+-FMT_CONSTEXPR auto to_unsigned(Int value) ->
+-    typename std::make_unsigned<Int>::type {
+-  FMT_ASSERT(value >= 0, "negative value");
+-  return static_cast<typename std::make_unsigned<Int>::type>(value);
+-}
+-
+-FMT_MSC_WARNING(suppress : 4566) constexpr unsigned char micro[] = "\u00B5";
+-
+-constexpr auto is_utf8() -> bool {
+-  // Avoid buggy sign extensions in MSVC's constant evaluation mode.
+-  // https://developercommunity.visualstudio.com/t/C-difference-in-behavior-for-unsigned/1233612
+-  using uchar = unsigned char;
+-  return FMT_UNICODE || (sizeof(micro) == 3 && uchar(micro[0]) == 0xC2 &&
+-                         uchar(micro[1]) == 0xB5);
+-}
+-FMT_END_DETAIL_NAMESPACE
+-
+-/**
+-  An implementation of ``std::basic_string_view`` for pre-C++17. It provides a
+-  subset of the API. ``fmt::basic_string_view`` is used for format strings even
+-  if ``std::string_view`` is available to prevent issues when a library is
+-  compiled with a different ``-std`` option than the client code (which is not
+-  recommended).
+- */
+-template <typename Char> class basic_string_view {
+- private:
+-  const Char* data_;
+-  size_t size_;
+-
+- public:
+-  using value_type = Char;
+-  using iterator = const Char*;
+-
+-  constexpr basic_string_view() FMT_NOEXCEPT : data_(nullptr), size_(0) {}
+-
+-  /** Constructs a string reference object from a C string and a size. */
+-  constexpr basic_string_view(const Char* s, size_t count) FMT_NOEXCEPT
+-      : data_(s),
+-        size_(count) {}
+-
+-  /**
+-    \rst
+-    Constructs a string reference object from a C string computing
+-    the size with ``std::char_traits<Char>::length``.
+-    \endrst
+-   */
+-  FMT_CONSTEXPR_CHAR_TRAITS
+-  FMT_INLINE
+-  basic_string_view(const Char* s)
+-      : data_(s),
+-        size_(detail::const_check(std::is_same<Char, char>::value &&
+-                                  !detail::is_constant_evaluated(true))
+-                  ? std::strlen(reinterpret_cast<const char*>(s))
+-                  : std::char_traits<Char>::length(s)) {}
+-
+-  /** Constructs a string reference from a ``std::basic_string`` object. */
+-  template <typename Traits, typename Alloc>
+-  FMT_CONSTEXPR basic_string_view(
+-      const std::basic_string<Char, Traits, Alloc>& s) FMT_NOEXCEPT
+-      : data_(s.data()),
+-        size_(s.size()) {}
+-
+-  template <typename S, FMT_ENABLE_IF(std::is_same<
+-                                      S, detail::std_string_view<Char>>::value)>
+-  FMT_CONSTEXPR basic_string_view(S s) FMT_NOEXCEPT : data_(s.data()),
+-                                                      size_(s.size()) {}
+-
+-  /** Returns a pointer to the string data. */
+-  constexpr auto data() const FMT_NOEXCEPT -> const Char* { return data_; }
+-
+-  /** Returns the string size. */
+-  constexpr auto size() const FMT_NOEXCEPT -> size_t { return size_; }
+-
+-  constexpr auto begin() const FMT_NOEXCEPT -> iterator { return data_; }
+-  constexpr auto end() const FMT_NOEXCEPT -> iterator { return data_ + size_; }
+-
+-  constexpr auto operator[](size_t pos) const FMT_NOEXCEPT -> const Char& {
+-    return data_[pos];
+-  }
+-
+-  FMT_CONSTEXPR void remove_prefix(size_t n) FMT_NOEXCEPT {
+-    data_ += n;
+-    size_ -= n;
+-  }
+-
+-  // Lexicographically compare this string reference to other.
+-  FMT_CONSTEXPR_CHAR_TRAITS auto compare(basic_string_view other) const -> int {
+-    size_t str_size = size_ < other.size_ ? size_ : other.size_;
+-    int result = std::char_traits<Char>::compare(data_, other.data_, str_size);
+-    if (result == 0)
+-      result = size_ == other.size_ ? 0 : (size_ < other.size_ ? -1 : 1);
+-    return result;
+-  }
+-
+-  FMT_CONSTEXPR_CHAR_TRAITS friend auto operator==(basic_string_view lhs,
+-                                                   basic_string_view rhs)
+-      -> bool {
+-    return lhs.compare(rhs) == 0;
+-  }
+-  friend auto operator!=(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) != 0;
+-  }
+-  friend auto operator<(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) < 0;
+-  }
+-  friend auto operator<=(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) <= 0;
+-  }
+-  friend auto operator>(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) > 0;
+-  }
+-  friend auto operator>=(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) >= 0;
+-  }
+-};
+-
+-using string_view = basic_string_view<char>;
+-
+-/** Specifies if ``T`` is a character type. Can be specialized by users. */
+-template <typename T> struct is_char : std::false_type {};
+-template <> struct is_char<char> : std::true_type {};
+-
+-// Returns a string view of `s`.
+-template <typename Char, FMT_ENABLE_IF(is_char<Char>::value)>
+-FMT_INLINE auto to_string_view(const Char* s) -> basic_string_view<Char> {
+-  return s;
+-}
+-template <typename Char, typename Traits, typename Alloc>
+-inline auto to_string_view(const std::basic_string<Char, Traits, Alloc>& s)
+-    -> basic_string_view<Char> {
+-  return s;
+-}
+-template <typename Char>
+-constexpr auto to_string_view(basic_string_view<Char> s)
+-    -> basic_string_view<Char> {
+-  return s;
+-}
+-template <typename Char,
+-          FMT_ENABLE_IF(!std::is_empty<detail::std_string_view<Char>>::value)>
+-inline auto to_string_view(detail::std_string_view<Char> s)
+-    -> basic_string_view<Char> {
+-  return s;
+-}
+-
+-// A base class for compile-time strings. It is defined in the fmt namespace to
+-// make formatting functions visible via ADL, e.g. format(FMT_STRING("{}"), 42).
+-struct compile_string {};
+-
+-template <typename S>
+-struct is_compile_string : std::is_base_of<compile_string, S> {};
+-
+-template <typename S, FMT_ENABLE_IF(is_compile_string<S>::value)>
+-constexpr auto to_string_view(const S& s)
+-    -> basic_string_view<typename S::char_type> {
+-  return basic_string_view<typename S::char_type>(s);
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-void to_string_view(...);
+-using fmt::to_string_view;
+-
+-// Specifies whether S is a string type convertible to fmt::basic_string_view.
+-// It should be a constexpr function but MSVC 2017 fails to compile it in
+-// enable_if and MSVC 2015 fails to compile it as an alias template.
+-template <typename S>
+-struct is_string : std::is_class<decltype(to_string_view(std::declval<S>()))> {
+-};
+-
+-template <typename S, typename = void> struct char_t_impl {};
+-template <typename S> struct char_t_impl<S, enable_if_t<is_string<S>::value>> {
+-  using result = decltype(to_string_view(std::declval<S>()));
+-  using type = typename result::value_type;
+-};
+-
+-// Reports a compile-time error if S is not a valid format string.
+-template <typename..., typename S, FMT_ENABLE_IF(!is_compile_string<S>::value)>
+-FMT_INLINE void check_format_string(const S&) {
+-#ifdef FMT_ENFORCE_COMPILE_STRING
+-  static_assert(is_compile_string<S>::value,
+-                "FMT_ENFORCE_COMPILE_STRING requires all format strings to use "
+-                "FMT_STRING.");
+-#endif
+-}
+-template <typename..., typename S, FMT_ENABLE_IF(is_compile_string<S>::value)>
+-void check_format_string(S);
+-
+-FMT_NORETURN FMT_API void throw_format_error(const char* message);
+-
+-struct error_handler {
+-  constexpr error_handler() = default;
+-  constexpr error_handler(const error_handler&) = default;
+-
+-  // This function is intentionally not constexpr to give a compile-time error.
+-  FMT_NORETURN FMT_API void on_error(const char* message);
+-};
+-FMT_END_DETAIL_NAMESPACE
+-
+-/** String's character type. */
+-template <typename S> using char_t = typename detail::char_t_impl<S>::type;
+-
+-/**
+-  \rst
+-  Parsing context consisting of a format string range being parsed and an
+-  argument counter for automatic indexing.
+-  You can use the ``format_parse_context`` type alias for ``char`` instead.
+-  \endrst
+- */
+-template <typename Char, typename ErrorHandler = detail::error_handler>
+-class basic_format_parse_context : private ErrorHandler {
+- private:
+-  basic_string_view<Char> format_str_;
+-  int next_arg_id_;
+-
+- public:
+-  using char_type = Char;
+-  using iterator = typename basic_string_view<Char>::iterator;
+-
+-  explicit constexpr basic_format_parse_context(
+-      basic_string_view<Char> format_str, ErrorHandler eh = {},
+-      int next_arg_id = 0)
+-      : ErrorHandler(eh), format_str_(format_str), next_arg_id_(next_arg_id) {}
+-
+-  /**
+-    Returns an iterator to the beginning of the format string range being
+-    parsed.
+-   */
+-  constexpr auto begin() const FMT_NOEXCEPT -> iterator {
+-    return format_str_.begin();
+-  }
+-
+-  /**
+-    Returns an iterator past the end of the format string range being parsed.
+-   */
+-  constexpr auto end() const FMT_NOEXCEPT -> iterator {
+-    return format_str_.end();
+-  }
+-
+-  /** Advances the begin iterator to ``it``. */
+-  FMT_CONSTEXPR void advance_to(iterator it) {
+-    format_str_.remove_prefix(detail::to_unsigned(it - begin()));
+-  }
+-
+-  /**
+-    Reports an error if using the manual argument indexing; otherwise returns
+-    the next argument index and switches to the automatic indexing.
+-   */
+-  FMT_CONSTEXPR auto next_arg_id() -> int {
+-    // Don't check if the argument id is valid to avoid overhead and because it
+-    // will be checked during formatting anyway.
+-    if (next_arg_id_ >= 0) return next_arg_id_++;
+-    on_error("cannot switch from manual to automatic argument indexing");
+-    return 0;
+-  }
+-
+-  /**
+-    Reports an error if using the automatic argument indexing; otherwise
+-    switches to the manual indexing.
+-   */
+-  FMT_CONSTEXPR void check_arg_id(int) {
+-    if (next_arg_id_ > 0)
+-      on_error("cannot switch from automatic to manual argument indexing");
+-    else
+-      next_arg_id_ = -1;
+-  }
+-
+-  FMT_CONSTEXPR void check_arg_id(basic_string_view<Char>) {}
+-
+-  FMT_CONSTEXPR void on_error(const char* message) {
+-    ErrorHandler::on_error(message);
+-  }
+-
+-  constexpr auto error_handler() const -> ErrorHandler { return *this; }
+-};
+-
+-using format_parse_context = basic_format_parse_context<char>;
+-
+-template <typename Context> class basic_format_arg;
+-template <typename Context> class basic_format_args;
+-template <typename Context> class dynamic_format_arg_store;
+-
+-// A formatter for objects of type T.
+-template <typename T, typename Char = char, typename Enable = void>
+-struct formatter {
+-  // A deleted default constructor indicates a disabled formatter.
+-  formatter() = delete;
+-};
+-
+-// Specifies if T has an enabled formatter specialization. A type can be
+-// formattable even if it doesn't have a formatter e.g. via a conversion.
+-template <typename T, typename Context>
+-using has_formatter =
+-    std::is_constructible<typename Context::template formatter_type<T>>;
+-
+-// Checks whether T is a container with contiguous storage.
+-template <typename T> struct is_contiguous : std::false_type {};
+-template <typename Char>
+-struct is_contiguous<std::basic_string<Char>> : std::true_type {};
+-
+-class appender;
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename Context, typename T>
+-constexpr auto has_const_formatter_impl(T*)
+-    -> decltype(typename Context::template formatter_type<T>().format(
+-                    std::declval<const T&>(), std::declval<Context&>()),
+-                true) {
+-  return true;
+-}
+-template <typename Context>
+-constexpr auto has_const_formatter_impl(...) -> bool {
+-  return false;
+-}
+-template <typename T, typename Context>
+-constexpr auto has_const_formatter() -> bool {
+-  return has_const_formatter_impl<Context>(static_cast<T*>(nullptr));
+-}
+-
+-// Extracts a reference to the container from back_insert_iterator.
+-template <typename Container>
+-inline auto get_container(std::back_insert_iterator<Container> it)
+-    -> Container& {
+-  using bi_iterator = std::back_insert_iterator<Container>;
+-  struct accessor : bi_iterator {
+-    accessor(bi_iterator iter) : bi_iterator(iter) {}
+-    using bi_iterator::container;
+-  };
+-  return *accessor(it).container;
+-}
+-
+-template <typename Char, typename InputIt, typename OutputIt>
+-FMT_CONSTEXPR auto copy_str(InputIt begin, InputIt end, OutputIt out)
+-    -> OutputIt {
+-  while (begin != end) *out++ = static_cast<Char>(*begin++);
+-  return out;
+-}
+-
+-template <typename Char, typename T, typename U,
+-          FMT_ENABLE_IF(
+-              std::is_same<remove_const_t<T>, U>::value&& is_char<U>::value)>
+-FMT_CONSTEXPR auto copy_str(T* begin, T* end, U* out) -> U* {
+-  if (is_constant_evaluated()) return copy_str<Char, T*, U*>(begin, end, out);
+-  auto size = to_unsigned(end - begin);
+-  memcpy(out, begin, size * sizeof(U));
+-  return out + size;
+-}
+-
+-/**
+-  \rst
+-  A contiguous memory buffer with an optional growing ability. It is an internal
+-  class and shouldn't be used directly, only via `~fmt::basic_memory_buffer`.
+-  \endrst
+- */
+-template <typename T> class buffer {
+- private:
+-  T* ptr_;
+-  size_t size_;
+-  size_t capacity_;
+-
+- protected:
+-  // Don't initialize ptr_ since it is not accessed to save a few cycles.
+-  FMT_MSC_WARNING(suppress : 26495)
+-  buffer(size_t sz) FMT_NOEXCEPT : size_(sz), capacity_(sz) {}
+-
+-  FMT_CONSTEXPR20 buffer(T* p = nullptr, size_t sz = 0,
+-                         size_t cap = 0) FMT_NOEXCEPT : ptr_(p),
+-                                                        size_(sz),
+-                                                        capacity_(cap) {}
+-
+-  FMT_CONSTEXPR20 ~buffer() = default;
+-  buffer(buffer&&) = default;
+-
+-  /** Sets the buffer data and capacity. */
+-  FMT_CONSTEXPR void set(T* buf_data, size_t buf_capacity) FMT_NOEXCEPT {
+-    ptr_ = buf_data;
+-    capacity_ = buf_capacity;
+-  }
+-
+-  /** Increases the buffer capacity to hold at least *capacity* elements. */
+-  virtual FMT_CONSTEXPR20 void grow(size_t capacity) = 0;
+-
+- public:
+-  using value_type = T;
+-  using const_reference = const T&;
+-
+-  buffer(const buffer&) = delete;
+-  void operator=(const buffer&) = delete;
+-
+-  auto begin() FMT_NOEXCEPT -> T* { return ptr_; }
+-  auto end() FMT_NOEXCEPT -> T* { return ptr_ + size_; }
+-
+-  auto begin() const FMT_NOEXCEPT -> const T* { return ptr_; }
+-  auto end() const FMT_NOEXCEPT -> const T* { return ptr_ + size_; }
+-
+-  /** Returns the size of this buffer. */
+-  constexpr auto size() const FMT_NOEXCEPT -> size_t { return size_; }
+-
+-  /** Returns the capacity of this buffer. */
+-  constexpr auto capacity() const FMT_NOEXCEPT -> size_t { return capacity_; }
+-
+-  /** Returns a pointer to the buffer data. */
+-  FMT_CONSTEXPR auto data() FMT_NOEXCEPT -> T* { return ptr_; }
+-
+-  /** Returns a pointer to the buffer data. */
+-  FMT_CONSTEXPR auto data() const FMT_NOEXCEPT -> const T* { return ptr_; }
+-
+-  /** Clears this buffer. */
+-  void clear() { size_ = 0; }
+-
+-  // Tries resizing the buffer to contain *count* elements. If T is a POD type
+-  // the new elements may not be initialized.
+-  FMT_CONSTEXPR20 void try_resize(size_t count) {
+-    try_reserve(count);
+-    size_ = count <= capacity_ ? count : capacity_;
+-  }
+-
+-  // Tries increasing the buffer capacity to *new_capacity*. It can increase the
+-  // capacity by a smaller amount than requested but guarantees there is space
+-  // for at least one additional element either by increasing the capacity or by
+-  // flushing the buffer if it is full.
+-  FMT_CONSTEXPR20 void try_reserve(size_t new_capacity) {
+-    if (new_capacity > capacity_) grow(new_capacity);
+-  }
+-
+-  FMT_CONSTEXPR20 void push_back(const T& value) {
+-    try_reserve(size_ + 1);
+-    ptr_[size_++] = value;
+-  }
+-
+-  /** Appends data to the end of the buffer. */
+-  template <typename U> void append(const U* begin, const U* end);
+-
+-  template <typename I> FMT_CONSTEXPR auto operator[](I index) -> T& {
+-    return ptr_[index];
+-  }
+-  template <typename I>
+-  FMT_CONSTEXPR auto operator[](I index) const -> const T& {
+-    return ptr_[index];
+-  }
+-};
+-
+-struct buffer_traits {
+-  explicit buffer_traits(size_t) {}
+-  auto count() const -> size_t { return 0; }
+-  auto limit(size_t size) -> size_t { return size; }
+-};
+-
+-class fixed_buffer_traits {
+- private:
+-  size_t count_ = 0;
+-  size_t limit_;
+-
+- public:
+-  explicit fixed_buffer_traits(size_t limit) : limit_(limit) {}
+-  auto count() const -> size_t { return count_; }
+-  auto limit(size_t size) -> size_t {
+-    size_t n = limit_ > count_ ? limit_ - count_ : 0;
+-    count_ += size;
+-    return size < n ? size : n;
+-  }
+-};
+-
+-// A buffer that writes to an output iterator when flushed.
+-template <typename OutputIt, typename T, typename Traits = buffer_traits>
+-class iterator_buffer final : public Traits, public buffer<T> {
+- private:
+-  OutputIt out_;
+-  enum { buffer_size = 256 };
+-  T data_[buffer_size];
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t) override {
+-    if (this->size() == buffer_size) flush();
+-  }
+-
+-  void flush() {
+-    auto size = this->size();
+-    this->clear();
+-    out_ = copy_str<T>(data_, data_ + this->limit(size), out_);
+-  }
+-
+- public:
+-  explicit iterator_buffer(OutputIt out, size_t n = buffer_size)
+-      : Traits(n), buffer<T>(data_, 0, buffer_size), out_(out) {}
+-  iterator_buffer(iterator_buffer&& other)
+-      : Traits(other), buffer<T>(data_, 0, buffer_size), out_(other.out_) {}
+-  ~iterator_buffer() { flush(); }
+-
+-  auto out() -> OutputIt {
+-    flush();
+-    return out_;
+-  }
+-  auto count() const -> size_t { return Traits::count() + this->size(); }
+-};
+-
+-template <typename T>
+-class iterator_buffer<T*, T, fixed_buffer_traits> final
+-    : public fixed_buffer_traits,
+-      public buffer<T> {
+- private:
+-  T* out_;
+-  enum { buffer_size = 256 };
+-  T data_[buffer_size];
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t) override {
+-    if (this->size() == this->capacity()) flush();
+-  }
+-
+-  void flush() {
+-    size_t n = this->limit(this->size());
+-    if (this->data() == out_) {
+-      out_ += n;
+-      this->set(data_, buffer_size);
+-    }
+-    this->clear();
+-  }
+-
+- public:
+-  explicit iterator_buffer(T* out, size_t n = buffer_size)
+-      : fixed_buffer_traits(n), buffer<T>(out, 0, n), out_(out) {}
+-  iterator_buffer(iterator_buffer&& other)
+-      : fixed_buffer_traits(other),
+-        buffer<T>(std::move(other)),
+-        out_(other.out_) {
+-    if (this->data() != out_) {
+-      this->set(data_, buffer_size);
+-      this->clear();
+-    }
+-  }
+-  ~iterator_buffer() { flush(); }
+-
+-  auto out() -> T* {
+-    flush();
+-    return out_;
+-  }
+-  auto count() const -> size_t {
+-    return fixed_buffer_traits::count() + this->size();
+-  }
+-};
+-
+-template <typename T> class iterator_buffer<T*, T> final : public buffer<T> {
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t) override {}
+-
+- public:
+-  explicit iterator_buffer(T* out, size_t = 0) : buffer<T>(out, 0, ~size_t()) {}
+-
+-  auto out() -> T* { return &*this->end(); }
+-};
+-
+-// A buffer that writes to a container with the contiguous storage.
+-template <typename Container>
+-class iterator_buffer<std::back_insert_iterator<Container>,
+-                      enable_if_t<is_contiguous<Container>::value,
+-                                  typename Container::value_type>>
+-    final : public buffer<typename Container::value_type> {
+- private:
+-  Container& container_;
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t capacity) override {
+-    container_.resize(capacity);
+-    this->set(&container_[0], capacity);
+-  }
+-
+- public:
+-  explicit iterator_buffer(Container& c)
+-      : buffer<typename Container::value_type>(c.size()), container_(c) {}
+-  explicit iterator_buffer(std::back_insert_iterator<Container> out, size_t = 0)
+-      : iterator_buffer(get_container(out)) {}
+-  auto out() -> std::back_insert_iterator<Container> {
+-    return std::back_inserter(container_);
+-  }
+-};
+-
+-// A buffer that counts the number of code units written discarding the output.
+-template <typename T = char> class counting_buffer final : public buffer<T> {
+- private:
+-  enum { buffer_size = 256 };
+-  T data_[buffer_size];
+-  size_t count_ = 0;
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t) override {
+-    if (this->size() != buffer_size) return;
+-    count_ += this->size();
+-    this->clear();
+-  }
+-
+- public:
+-  counting_buffer() : buffer<T>(data_, 0, buffer_size) {}
+-
+-  auto count() -> size_t { return count_ + this->size(); }
+-};
+-
+-template <typename T>
+-using buffer_appender = conditional_t<std::is_same<T, char>::value, appender,
+-                                      std::back_insert_iterator<buffer<T>>>;
+-
+-// Maps an output iterator to a buffer.
+-template <typename T, typename OutputIt>
+-auto get_buffer(OutputIt out) -> iterator_buffer<OutputIt, T> {
+-  return iterator_buffer<OutputIt, T>(out);
+-}
+-
+-template <typename Buffer>
+-auto get_iterator(Buffer& buf) -> decltype(buf.out()) {
+-  return buf.out();
+-}
+-template <typename T> auto get_iterator(buffer<T>& buf) -> buffer_appender<T> {
+-  return buffer_appender<T>(buf);
+-}
+-
+-template <typename T, typename Char = char, typename Enable = void>
+-struct fallback_formatter {
+-  fallback_formatter() = delete;
+-};
+-
+-// Specifies if T has an enabled fallback_formatter specialization.
+-template <typename T, typename Char>
+-using has_fallback_formatter =
+-    std::is_constructible<fallback_formatter<T, Char>>;
+-
+-struct view {};
+-
+-template <typename Char, typename T> struct named_arg : view {
+-  const Char* name;
+-  const T& value;
+-  named_arg(const Char* n, const T& v) : name(n), value(v) {}
+-};
+-
+-template <typename Char> struct named_arg_info {
+-  const Char* name;
+-  int id;
+-};
+-
+-template <typename T, typename Char, size_t NUM_ARGS, size_t NUM_NAMED_ARGS>
+-struct arg_data {
+-  // args_[0].named_args points to named_args_ to avoid bloating format_args.
+-  // +1 to workaround a bug in gcc 7.5 that causes duplicated-branches warning.
+-  T args_[1 + (NUM_ARGS != 0 ? NUM_ARGS : +1)];
+-  named_arg_info<Char> named_args_[NUM_NAMED_ARGS];
+-
+-  template <typename... U>
+-  arg_data(const U&... init) : args_{T(named_args_, NUM_NAMED_ARGS), init...} {}
+-  arg_data(const arg_data& other) = delete;
+-  auto args() const -> const T* { return args_ + 1; }
+-  auto named_args() -> named_arg_info<Char>* { return named_args_; }
+-};
+-
+-template <typename T, typename Char, size_t NUM_ARGS>
+-struct arg_data<T, Char, NUM_ARGS, 0> {
+-  // +1 to workaround a bug in gcc 7.5 that causes duplicated-branches warning.
+-  T args_[NUM_ARGS != 0 ? NUM_ARGS : +1];
+-
+-  template <typename... U>
+-  FMT_CONSTEXPR FMT_INLINE arg_data(const U&... init) : args_{init...} {}
+-  FMT_CONSTEXPR FMT_INLINE auto args() const -> const T* { return args_; }
+-  FMT_CONSTEXPR FMT_INLINE auto named_args() -> std::nullptr_t {
+-    return nullptr;
+-  }
+-};
+-
+-template <typename Char>
+-inline void init_named_args(named_arg_info<Char>*, int, int) {}
+-
+-template <typename T> struct is_named_arg : std::false_type {};
+-template <typename T> struct is_statically_named_arg : std::false_type {};
+-
+-template <typename T, typename Char>
+-struct is_named_arg<named_arg<Char, T>> : std::true_type {};
+-
+-template <typename Char, typename T, typename... Tail,
+-          FMT_ENABLE_IF(!is_named_arg<T>::value)>
+-void init_named_args(named_arg_info<Char>* named_args, int arg_count,
+-                     int named_arg_count, const T&, const Tail&... args) {
+-  init_named_args(named_args, arg_count + 1, named_arg_count, args...);
+-}
+-
+-template <typename Char, typename T, typename... Tail,
+-          FMT_ENABLE_IF(is_named_arg<T>::value)>
+-void init_named_args(named_arg_info<Char>* named_args, int arg_count,
+-                     int named_arg_count, const T& arg, const Tail&... args) {
+-  named_args[named_arg_count++] = {arg.name, arg_count};
+-  init_named_args(named_args, arg_count + 1, named_arg_count, args...);
+-}
+-
+-template <typename... Args>
+-FMT_CONSTEXPR FMT_INLINE void init_named_args(std::nullptr_t, int, int,
+-                                              const Args&...) {}
+-
+-template <bool B = false> constexpr auto count() -> size_t { return B ? 1 : 0; }
+-template <bool B1, bool B2, bool... Tail> constexpr auto count() -> size_t {
+-  return (B1 ? 1 : 0) + count<B2, Tail...>();
+-}
+-
+-template <typename... Args> constexpr auto count_named_args() -> size_t {
+-  return count<is_named_arg<Args>::value...>();
+-}
+-
+-template <typename... Args>
+-constexpr auto count_statically_named_args() -> size_t {
+-  return count<is_statically_named_arg<Args>::value...>();
+-}
+-
+-enum class type {
+-  none_type,
+-  // Integer types should go first,
+-  int_type,
+-  uint_type,
+-  long_long_type,
+-  ulong_long_type,
+-  int128_type,
+-  uint128_type,
+-  bool_type,
+-  char_type,
+-  last_integer_type = char_type,
+-  // followed by floating-point types.
+-  float_type,
+-  double_type,
+-  long_double_type,
+-  last_numeric_type = long_double_type,
+-  cstring_type,
+-  string_type,
+-  pointer_type,
+-  custom_type
+-};
+-
+-// Maps core type T to the corresponding type enum constant.
+-template <typename T, typename Char>
+-struct type_constant : std::integral_constant<type, type::custom_type> {};
+-
+-#define FMT_TYPE_CONSTANT(Type, constant) \
+-  template <typename Char>                \
+-  struct type_constant<Type, Char>        \
+-      : std::integral_constant<type, type::constant> {}
+-
+-FMT_TYPE_CONSTANT(int, int_type);
+-FMT_TYPE_CONSTANT(unsigned, uint_type);
+-FMT_TYPE_CONSTANT(long long, long_long_type);
+-FMT_TYPE_CONSTANT(unsigned long long, ulong_long_type);
+-FMT_TYPE_CONSTANT(int128_t, int128_type);
+-FMT_TYPE_CONSTANT(uint128_t, uint128_type);
+-FMT_TYPE_CONSTANT(bool, bool_type);
+-FMT_TYPE_CONSTANT(Char, char_type);
+-FMT_TYPE_CONSTANT(float, float_type);
+-FMT_TYPE_CONSTANT(double, double_type);
+-FMT_TYPE_CONSTANT(long double, long_double_type);
+-FMT_TYPE_CONSTANT(const Char*, cstring_type);
+-FMT_TYPE_CONSTANT(basic_string_view<Char>, string_type);
+-FMT_TYPE_CONSTANT(const void*, pointer_type);
+-
+-constexpr bool is_integral_type(type t) {
+-  return t > type::none_type && t <= type::last_integer_type;
+-}
+-
+-constexpr bool is_arithmetic_type(type t) {
+-  return t > type::none_type && t <= type::last_numeric_type;
+-}
+-
+-struct unformattable {};
+-struct unformattable_char : unformattable {};
+-struct unformattable_const : unformattable {};
+-struct unformattable_pointer : unformattable {};
+-
+-template <typename Char> struct string_value {
+-  const Char* data;
+-  size_t size;
+-};
+-
+-template <typename Char> struct named_arg_value {
+-  const named_arg_info<Char>* data;
+-  size_t size;
+-};
+-
+-template <typename Context> struct custom_value {
+-  using parse_context = typename Context::parse_context_type;
+-  void* value;
+-  void (*format)(void* arg, parse_context& parse_ctx, Context& ctx);
+-};
+-
+-// A formatting argument value.
+-template <typename Context> class value {
+- public:
+-  using char_type = typename Context::char_type;
+-
+-  union {
+-    monostate no_value;
+-    int int_value;
+-    unsigned uint_value;
+-    long long long_long_value;
+-    unsigned long long ulong_long_value;
+-    int128_t int128_value;
+-    uint128_t uint128_value;
+-    bool bool_value;
+-    char_type char_value;
+-    float float_value;
+-    double double_value;
+-    long double long_double_value;
+-    const void* pointer;
+-    string_value<char_type> string;
+-    custom_value<Context> custom;
+-    named_arg_value<char_type> named_args;
+-  };
+-
+-  constexpr FMT_INLINE value() : no_value() {}
+-  constexpr FMT_INLINE value(int val) : int_value(val) {}
+-  constexpr FMT_INLINE value(unsigned val) : uint_value(val) {}
+-  constexpr FMT_INLINE value(long long val) : long_long_value(val) {}
+-  constexpr FMT_INLINE value(unsigned long long val) : ulong_long_value(val) {}
+-  FMT_INLINE value(int128_t val) : int128_value(val) {}
+-  FMT_INLINE value(uint128_t val) : uint128_value(val) {}
+-  constexpr FMT_INLINE value(float val) : float_value(val) {}
+-  constexpr FMT_INLINE value(double val) : double_value(val) {}
+-  FMT_INLINE value(long double val) : long_double_value(val) {}
+-  constexpr FMT_INLINE value(bool val) : bool_value(val) {}
+-  constexpr FMT_INLINE value(char_type val) : char_value(val) {}
+-  FMT_CONSTEXPR FMT_INLINE value(const char_type* val) {
+-    string.data = val;
+-    if (is_constant_evaluated()) string.size = {};
+-  }
+-  FMT_CONSTEXPR FMT_INLINE value(basic_string_view<char_type> val) {
+-    string.data = val.data();
+-    string.size = val.size();
+-  }
+-  FMT_INLINE value(const void* val) : pointer(val) {}
+-  FMT_INLINE value(const named_arg_info<char_type>* args, size_t size)
+-      : named_args{args, size} {}
+-
+-  template <typename T> FMT_CONSTEXPR FMT_INLINE value(T& val) {
+-    using value_type = remove_cvref_t<T>;
+-    custom.value = const_cast<value_type*>(&val);
+-    // Get the formatter type through the context to allow different contexts
+-    // have different extension points, e.g. `formatter<T>` for `format` and
+-    // `printf_formatter<T>` for `printf`.
+-    custom.format = format_custom_arg<
+-        value_type,
+-        conditional_t<has_formatter<value_type, Context>::value,
+-                      typename Context::template formatter_type<value_type>,
+-                      fallback_formatter<value_type, char_type>>>;
+-  }
+-  value(unformattable);
+-  value(unformattable_char);
+-  value(unformattable_const);
+-  value(unformattable_pointer);
+-
+- private:
+-  // Formats an argument of a custom type, such as a user-defined class.
+-  template <typename T, typename Formatter>
+-  static void format_custom_arg(void* arg,
+-                                typename Context::parse_context_type& parse_ctx,
+-                                Context& ctx) {
+-    auto f = Formatter();
+-    parse_ctx.advance_to(f.parse(parse_ctx));
+-    using qualified_type =
+-        conditional_t<has_const_formatter<T, Context>(), const T, T>;
+-    ctx.advance_to(f.format(*static_cast<qualified_type*>(arg), ctx));
+-  }
+-};
+-
+-template <typename Context, typename T>
+-FMT_CONSTEXPR auto make_arg(const T& value) -> basic_format_arg<Context>;
+-
+-// To minimize the number of types we need to deal with, long is translated
+-// either to int or to long long depending on its size.
+-enum { long_short = sizeof(long) == sizeof(int) };
+-using long_type = conditional_t<long_short, int, long long>;
+-using ulong_type = conditional_t<long_short, unsigned, unsigned long long>;
+-
+-// Maps formatting arguments to core types.
+-// arg_mapper reports errors by returning unformattable instead of using
+-// static_assert because it's used in the is_formattable trait.
+-template <typename Context> struct arg_mapper {
+-  using char_type = typename Context::char_type;
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(signed char val) -> int { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned char val) -> unsigned {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(short val) -> int { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned short val) -> unsigned {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(int val) -> int { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned val) -> unsigned { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(long val) -> long_type { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned long val) -> ulong_type {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(long long val) -> long long { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned long long val)
+-      -> unsigned long long {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(int128_t val) -> int128_t { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(uint128_t val) -> uint128_t { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(bool val) -> bool { return val; }
+-
+-  template <typename T, FMT_ENABLE_IF(std::is_same<T, char>::value ||
+-                                      std::is_same<T, char_type>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(T val) -> char_type {
+-    return val;
+-  }
+-  template <typename T, enable_if_t<(std::is_same<T, wchar_t>::value ||
+-#ifdef __cpp_char8_t
+-                                     std::is_same<T, char8_t>::value ||
+-#endif
+-                                     std::is_same<T, char16_t>::value ||
+-                                     std::is_same<T, char32_t>::value) &&
+-                                        !std::is_same<T, char_type>::value,
+-                                    int> = 0>
+-  FMT_CONSTEXPR FMT_INLINE auto map(T) -> unformattable_char {
+-    return {};
+-  }
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(float val) -> float { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(double val) -> double { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(long double val) -> long double {
+-    return val;
+-  }
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(char_type* val) -> const char_type* {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(const char_type* val) -> const char_type* {
+-    return val;
+-  }
+-  template <typename T,
+-            FMT_ENABLE_IF(is_string<T>::value && !std::is_pointer<T>::value &&
+-                          std::is_same<char_type, char_t<T>>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
+-      -> basic_string_view<char_type> {
+-    return to_string_view(val);
+-  }
+-  template <typename T,
+-            FMT_ENABLE_IF(is_string<T>::value && !std::is_pointer<T>::value &&
+-                          !std::is_same<char_type, char_t<T>>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T&) -> unformattable_char {
+-    return {};
+-  }
+-  template <typename T,
+-            FMT_ENABLE_IF(
+-                std::is_constructible<basic_string_view<char_type>, T>::value &&
+-                !is_string<T>::value && !has_formatter<T, Context>::value &&
+-                !has_fallback_formatter<T, char_type>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
+-      -> basic_string_view<char_type> {
+-    return basic_string_view<char_type>(val);
+-  }
+-  template <
+-      typename T,
+-      FMT_ENABLE_IF(
+-          std::is_constructible<std_string_view<char_type>, T>::value &&
+-          !std::is_constructible<basic_string_view<char_type>, T>::value &&
+-          !is_string<T>::value && !has_formatter<T, Context>::value &&
+-          !has_fallback_formatter<T, char_type>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
+-      -> basic_string_view<char_type> {
+-    return std_string_view<char_type>(val);
+-  }
+-
+-  using cstring_result = conditional_t<std::is_same<char_type, char>::value,
+-                                       const char*, unformattable_pointer>;
+-
+-  FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(const signed char* val)
+-      -> cstring_result {
+-    return map(reinterpret_cast<const char*>(val));
+-  }
+-  FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(const unsigned char* val)
+-      -> cstring_result {
+-    return map(reinterpret_cast<const char*>(val));
+-  }
+-  FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(signed char* val)
+-      -> cstring_result {
+-    return map(reinterpret_cast<const char*>(val));
+-  }
+-  FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(unsigned char* val)
+-      -> cstring_result {
+-    return map(reinterpret_cast<const char*>(val));
+-  }
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(void* val) -> const void* { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(const void* val) -> const void* {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(std::nullptr_t val) -> const void* {
+-    return val;
+-  }
+-
+-  // We use SFINAE instead of a const T* parameter to avoid conflicting with
+-  // the C array overload.
+-  template <
+-      typename T,
+-      FMT_ENABLE_IF(
+-          std::is_member_pointer<T>::value ||
+-          std::is_function<typename std::remove_pointer<T>::type>::value ||
+-          (std::is_convertible<const T&, const void*>::value &&
+-           !std::is_convertible<const T&, const char_type*>::value))>
+-  FMT_CONSTEXPR auto map(const T&) -> unformattable_pointer {
+-    return {};
+-  }
+-
+-  template <typename T, std::size_t N,
+-            FMT_ENABLE_IF(!std::is_same<T, wchar_t>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T (&values)[N]) -> const T (&)[N] {
+-    return values;
+-  }
+-
+-  template <typename T,
+-            FMT_ENABLE_IF(
+-                std::is_enum<T>::value&& std::is_convertible<T, int>::value &&
+-                !has_formatter<T, Context>::value &&
+-                !has_fallback_formatter<T, char_type>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
+-      -> decltype(std::declval<arg_mapper>().map(
+-          static_cast<typename std::underlying_type<T>::type>(val))) {
+-    return map(static_cast<typename std::underlying_type<T>::type>(val));
+-  }
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(detail::byte val) -> unsigned {
+-    return map(static_cast<unsigned char>(val));
+-  }
+-
+-  template <typename T, typename U = remove_cvref_t<T>>
+-  struct formattable
+-      : bool_constant<has_const_formatter<U, Context>() ||
+-                      !std::is_const<remove_reference_t<T>>::value ||
+-                      has_fallback_formatter<U, char_type>::value> {};
+-
+-#if FMT_MSC_VER != 0 && FMT_MSC_VER < 1910
+-  // Workaround a bug in MSVC.
+-  template <typename T> FMT_CONSTEXPR FMT_INLINE auto do_map(T&& val) -> T& {
+-    return val;
+-  }
+-#else
+-  template <typename T, FMT_ENABLE_IF(formattable<T>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto do_map(T&& val) -> T& {
+-    return val;
+-  }
+-  template <typename T, FMT_ENABLE_IF(!formattable<T>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto do_map(T&&) -> unformattable_const {
+-    return {};
+-  }
+-#endif
+-
+-  template <typename T, typename U = remove_cvref_t<T>,
+-            FMT_ENABLE_IF(!is_string<U>::value && !is_char<U>::value &&
+-                          !std::is_array<U>::value &&
+-                          (has_formatter<U, Context>::value ||
+-                           has_fallback_formatter<U, char_type>::value))>
+-  FMT_CONSTEXPR FMT_INLINE auto map(T&& val)
+-      -> decltype(this->do_map(std::forward<T>(val))) {
+-    return do_map(std::forward<T>(val));
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(is_named_arg<T>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& named_arg)
+-      -> decltype(std::declval<arg_mapper>().map(named_arg.value)) {
+-    return map(named_arg.value);
+-  }
+-
+-  auto map(...) -> unformattable { return {}; }
+-};
+-
+-// A type constant after applying arg_mapper<Context>.
+-template <typename T, typename Context>
+-using mapped_type_constant =
+-    type_constant<decltype(arg_mapper<Context>().map(std::declval<const T&>())),
+-                  typename Context::char_type>;
+-
+-enum { packed_arg_bits = 4 };
+-// Maximum number of arguments with packed types.
+-enum { max_packed_args = 62 / packed_arg_bits };
+-enum : unsigned long long { is_unpacked_bit = 1ULL << 63 };
+-enum : unsigned long long { has_named_args_bit = 1ULL << 62 };
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-// An output iterator that appends to a buffer.
+-// It is used to reduce symbol sizes for the common case.
+-class appender : public std::back_insert_iterator<detail::buffer<char>> {
+-  using base = std::back_insert_iterator<detail::buffer<char>>;
+-
+-  template <typename T>
+-  friend auto get_buffer(appender out) -> detail::buffer<char>& {
+-    return detail::get_container(out);
+-  }
+-
+- public:
+-  using std::back_insert_iterator<detail::buffer<char>>::back_insert_iterator;
+-  appender(base it) FMT_NOEXCEPT : base(it) {}
+-  using _Unchecked_type = appender;  // Mark iterator as checked.
+-
+-  auto operator++() FMT_NOEXCEPT -> appender& { return *this; }
+-
+-  auto operator++(int) FMT_NOEXCEPT -> appender { return *this; }
+-};
+-
+-// A formatting argument. It is a trivially copyable/constructible type to
+-// allow storage in basic_memory_buffer.
+-template <typename Context> class basic_format_arg {
+- private:
+-  detail::value<Context> value_;
+-  detail::type type_;
+-
+-  template <typename ContextType, typename T>
+-  friend FMT_CONSTEXPR auto detail::make_arg(const T& value)
+-      -> basic_format_arg<ContextType>;
+-
+-  template <typename Visitor, typename Ctx>
+-  friend FMT_CONSTEXPR auto visit_format_arg(Visitor&& vis,
+-                                             const basic_format_arg<Ctx>& arg)
+-      -> decltype(vis(0));
+-
+-  friend class basic_format_args<Context>;
+-  friend class dynamic_format_arg_store<Context>;
+-
+-  using char_type = typename Context::char_type;
+-
+-  template <typename T, typename Char, size_t NUM_ARGS, size_t NUM_NAMED_ARGS>
+-  friend struct detail::arg_data;
+-
+-  basic_format_arg(const detail::named_arg_info<char_type>* args, size_t size)
+-      : value_(args, size) {}
+-
+- public:
+-  class handle {
+-   public:
+-    explicit handle(detail::custom_value<Context> custom) : custom_(custom) {}
+-
+-    void format(typename Context::parse_context_type& parse_ctx,
+-                Context& ctx) const {
+-      custom_.format(custom_.value, parse_ctx, ctx);
+-    }
+-
+-   private:
+-    detail::custom_value<Context> custom_;
+-  };
+-
+-  constexpr basic_format_arg() : type_(detail::type::none_type) {}
+-
+-  constexpr explicit operator bool() const FMT_NOEXCEPT {
+-    return type_ != detail::type::none_type;
+-  }
+-
+-  auto type() const -> detail::type { return type_; }
+-
+-  auto is_integral() const -> bool { return detail::is_integral_type(type_); }
+-  auto is_arithmetic() const -> bool {
+-    return detail::is_arithmetic_type(type_);
+-  }
+-};
+-
+-/**
+-  \rst
+-  Visits an argument dispatching to the appropriate visit method based on
+-  the argument type. For example, if the argument type is ``double`` then
+-  ``vis(value)`` will be called with the value of type ``double``.
+-  \endrst
+- */
+-template <typename Visitor, typename Context>
+-FMT_CONSTEXPR FMT_INLINE auto visit_format_arg(
+-    Visitor&& vis, const basic_format_arg<Context>& arg) -> decltype(vis(0)) {
+-  switch (arg.type_) {
+-  case detail::type::none_type:
+-    break;
+-  case detail::type::int_type:
+-    return vis(arg.value_.int_value);
+-  case detail::type::uint_type:
+-    return vis(arg.value_.uint_value);
+-  case detail::type::long_long_type:
+-    return vis(arg.value_.long_long_value);
+-  case detail::type::ulong_long_type:
+-    return vis(arg.value_.ulong_long_value);
+-  case detail::type::int128_type:
+-    return vis(detail::convert_for_visit(arg.value_.int128_value));
+-  case detail::type::uint128_type:
+-    return vis(detail::convert_for_visit(arg.value_.uint128_value));
+-  case detail::type::bool_type:
+-    return vis(arg.value_.bool_value);
+-  case detail::type::char_type:
+-    return vis(arg.value_.char_value);
+-  case detail::type::float_type:
+-    return vis(arg.value_.float_value);
+-  case detail::type::double_type:
+-    return vis(arg.value_.double_value);
+-  case detail::type::long_double_type:
+-    return vis(arg.value_.long_double_value);
+-  case detail::type::cstring_type:
+-    return vis(arg.value_.string.data);
+-  case detail::type::string_type:
+-    using sv = basic_string_view<typename Context::char_type>;
+-    return vis(sv(arg.value_.string.data, arg.value_.string.size));
+-  case detail::type::pointer_type:
+-    return vis(arg.value_.pointer);
+-  case detail::type::custom_type:
+-    return vis(typename basic_format_arg<Context>::handle(arg.value_.custom));
+-  }
+-  return vis(monostate());
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename Char, typename InputIt>
+-auto copy_str(InputIt begin, InputIt end, appender out) -> appender {
+-  get_container(out).append(begin, end);
+-  return out;
+-}
+-
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 500
+-// A workaround for gcc 4.8 to make void_t work in a SFINAE context.
+-template <typename... Ts> struct void_t_impl { using type = void; };
+-template <typename... Ts>
+-using void_t = typename detail::void_t_impl<Ts...>::type;
+-#else
+-template <typename...> using void_t = void;
+-#endif
+-
+-template <typename It, typename T, typename Enable = void>
+-struct is_output_iterator : std::false_type {};
+-
+-template <typename It, typename T>
+-struct is_output_iterator<
+-    It, T,
+-    void_t<typename std::iterator_traits<It>::iterator_category,
+-           decltype(*std::declval<It>() = std::declval<T>())>>
+-    : std::true_type {};
+-
+-template <typename OutputIt>
+-struct is_back_insert_iterator : std::false_type {};
+-template <typename Container>
+-struct is_back_insert_iterator<std::back_insert_iterator<Container>>
+-    : std::true_type {};
+-
+-template <typename OutputIt>
+-struct is_contiguous_back_insert_iterator : std::false_type {};
+-template <typename Container>
+-struct is_contiguous_back_insert_iterator<std::back_insert_iterator<Container>>
+-    : is_contiguous<Container> {};
+-template <>
+-struct is_contiguous_back_insert_iterator<appender> : std::true_type {};
+-
+-// A type-erased reference to an std::locale to avoid heavy <locale> include.
+-class locale_ref {
+- private:
+-  const void* locale_;  // A type-erased pointer to std::locale.
+-
+- public:
+-  constexpr locale_ref() : locale_(nullptr) {}
+-  template <typename Locale> explicit locale_ref(const Locale& loc);
+-
+-  explicit operator bool() const FMT_NOEXCEPT { return locale_ != nullptr; }
+-
+-  template <typename Locale> auto get() const -> Locale;
+-};
+-
+-template <typename> constexpr auto encode_types() -> unsigned long long {
+-  return 0;
+-}
+-
+-template <typename Context, typename Arg, typename... Args>
+-constexpr auto encode_types() -> unsigned long long {
+-  return static_cast<unsigned>(mapped_type_constant<Arg, Context>::value) |
+-         (encode_types<Context, Args...>() << packed_arg_bits);
+-}
+-
+-template <typename Context, typename T>
+-FMT_CONSTEXPR auto make_arg(const T& value) -> basic_format_arg<Context> {
+-  basic_format_arg<Context> arg;
+-  arg.type_ = mapped_type_constant<T, Context>::value;
+-  arg.value_ = arg_mapper<Context>().map(value);
+-  return arg;
+-}
+-
+-// The type template parameter is there to avoid an ODR violation when using
+-// a fallback formatter in one translation unit and an implicit conversion in
+-// another (not recommended).
+-template <bool IS_PACKED, typename Context, type, typename T,
+-          FMT_ENABLE_IF(IS_PACKED)>
+-FMT_CONSTEXPR FMT_INLINE auto make_arg(T&& val) -> value<Context> {
+-  const auto& arg = arg_mapper<Context>().map(std::forward<T>(val));
+-
+-  constexpr bool formattable_char =
+-      !std::is_same<decltype(arg), const unformattable_char&>::value;
+-  static_assert(formattable_char, "Mixing character types is disallowed.");
+-
+-  constexpr bool formattable_const =
+-      !std::is_same<decltype(arg), const unformattable_const&>::value;
+-  static_assert(formattable_const, "Cannot format a const argument.");
+-
+-  // Formatting of arbitrary pointers is disallowed. If you want to output
+-  // a pointer cast it to "void *" or "const void *". In particular, this
+-  // forbids formatting of "[const] volatile char *" which is printed as bool
+-  // by iostreams.
+-  constexpr bool formattable_pointer =
+-      !std::is_same<decltype(arg), const unformattable_pointer&>::value;
+-  static_assert(formattable_pointer,
+-                "Formatting of non-void pointers is disallowed.");
+-
+-  constexpr bool formattable =
+-      !std::is_same<decltype(arg), const unformattable&>::value;
+-  static_assert(
+-      formattable,
+-      "Cannot format an argument. To make type T formattable provide a "
+-      "formatter<T> specialization: https://fmt.dev/latest/api.html#udt");
+-  return {arg};
+-}
+-
+-template <bool IS_PACKED, typename Context, type, typename T,
+-          FMT_ENABLE_IF(!IS_PACKED)>
+-inline auto make_arg(const T& value) -> basic_format_arg<Context> {
+-  return make_arg<Context>(value);
+-}
+-FMT_END_DETAIL_NAMESPACE
+-
+-// Formatting context.
+-template <typename OutputIt, typename Char> class basic_format_context {
+- public:
+-  /** The character type for the output. */
+-  using char_type = Char;
+-
+- private:
+-  OutputIt out_;
+-  basic_format_args<basic_format_context> args_;
+-  detail::locale_ref loc_;
+-
+- public:
+-  using iterator = OutputIt;
+-  using format_arg = basic_format_arg<basic_format_context>;
+-  using parse_context_type = basic_format_parse_context<Char>;
+-  template <typename T> using formatter_type = formatter<T, char_type>;
+-
+-  basic_format_context(basic_format_context&&) = default;
+-  basic_format_context(const basic_format_context&) = delete;
+-  void operator=(const basic_format_context&) = delete;
+-  /**
+-   Constructs a ``basic_format_context`` object. References to the arguments are
+-   stored in the object so make sure they have appropriate lifetimes.
+-   */
+-  constexpr basic_format_context(
+-      OutputIt out, basic_format_args<basic_format_context> ctx_args,
+-      detail::locale_ref loc = detail::locale_ref())
+-      : out_(out), args_(ctx_args), loc_(loc) {}
+-
+-  constexpr auto arg(int id) const -> format_arg { return args_.get(id); }
+-  FMT_CONSTEXPR auto arg(basic_string_view<char_type> name) -> format_arg {
+-    return args_.get(name);
+-  }
+-  FMT_CONSTEXPR auto arg_id(basic_string_view<char_type> name) -> int {
+-    return args_.get_id(name);
+-  }
+-  auto args() const -> const basic_format_args<basic_format_context>& {
+-    return args_;
+-  }
+-
+-  FMT_CONSTEXPR auto error_handler() -> detail::error_handler { return {}; }
+-  void on_error(const char* message) { error_handler().on_error(message); }
+-
+-  // Returns an iterator to the beginning of the output range.
+-  FMT_CONSTEXPR auto out() -> iterator { return out_; }
+-
+-  // Advances the begin iterator to ``it``.
+-  void advance_to(iterator it) {
+-    if (!detail::is_back_insert_iterator<iterator>()) out_ = it;
+-  }
+-
+-  FMT_CONSTEXPR auto locale() -> detail::locale_ref { return loc_; }
+-};
+-
+-template <typename Char>
+-using buffer_context =
+-    basic_format_context<detail::buffer_appender<Char>, Char>;
+-using format_context = buffer_context<char>;
+-
+-// Workaround an alias issue: https://stackoverflow.com/q/62767544/471164.
+-#define FMT_BUFFER_CONTEXT(Char) \
+-  basic_format_context<detail::buffer_appender<Char>, Char>
+-
+-template <typename T, typename Char = char>
+-using is_formattable = bool_constant<
+-    !std::is_base_of<detail::unformattable,
+-                     decltype(detail::arg_mapper<buffer_context<Char>>().map(
+-                         std::declval<T>()))>::value &&
+-    !detail::has_fallback_formatter<T, Char>::value>;
+-
+-/**
+-  \rst
+-  An array of references to arguments. It can be implicitly converted into
+-  `~fmt::basic_format_args` for passing into type-erased formatting functions
+-  such as `~fmt::vformat`.
+-  \endrst
+- */
+-template <typename Context, typename... Args>
+-class format_arg_store
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-    // Workaround a GCC template argument substitution bug.
+-    : public basic_format_args<Context>
+-#endif
+-{
+- private:
+-  static const size_t num_args = sizeof...(Args);
+-  static const size_t num_named_args = detail::count_named_args<Args...>();
+-  static const bool is_packed = num_args <= detail::max_packed_args;
+-
+-  using value_type = conditional_t<is_packed, detail::value<Context>,
+-                                   basic_format_arg<Context>>;
+-
+-  detail::arg_data<value_type, typename Context::char_type, num_args,
+-                   num_named_args>
+-      data_;
+-
+-  friend class basic_format_args<Context>;
+-
+-  static constexpr unsigned long long desc =
+-      (is_packed ? detail::encode_types<Context, Args...>()
+-                 : detail::is_unpacked_bit | num_args) |
+-      (num_named_args != 0
+-           ? static_cast<unsigned long long>(detail::has_named_args_bit)
+-           : 0);
+-
+- public:
+-  template <typename... T>
+-  FMT_CONSTEXPR FMT_INLINE format_arg_store(T&&... args)
+-      :
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-        basic_format_args<Context>(*this),
+-#endif
+-        data_{detail::make_arg<
+-            is_packed, Context,
+-            detail::mapped_type_constant<remove_cvref_t<T>, Context>::value>(
+-            std::forward<T>(args))...} {
+-    detail::init_named_args(data_.named_args(), 0, 0, args...);
+-  }
+-};
+-
+-/**
+-  \rst
+-  Constructs a `~fmt::format_arg_store` object that contains references to
+-  arguments and can be implicitly converted to `~fmt::format_args`. `Context`
+-  can be omitted in which case it defaults to `~fmt::context`.
+-  See `~fmt::arg` for lifetime considerations.
+-  \endrst
+- */
+-template <typename Context = format_context, typename... Args>
+-constexpr auto make_format_args(Args&&... args)
+-    -> format_arg_store<Context, remove_cvref_t<Args>...> {
+-  return {std::forward<Args>(args)...};
+-}
+-
+-/**
+-  \rst
+-  Returns a named argument to be used in a formatting function.
+-  It should only be used in a call to a formatting function or
+-  `dynamic_format_arg_store::push_back`.
+-
+-  **Example**::
+-
+-    fmt::print("Elapsed time: {s:.2f} seconds", fmt::arg("s", 1.23));
+-  \endrst
+- */
+-template <typename Char, typename T>
+-inline auto arg(const Char* name, const T& arg) -> detail::named_arg<Char, T> {
+-  static_assert(!detail::is_named_arg<T>(), "nested named arguments");
+-  return {name, arg};
+-}
+-
+-/**
+-  \rst
+-  A view of a collection of formatting arguments. To avoid lifetime issues it
+-  should only be used as a parameter type in type-erased functions such as
+-  ``vformat``::
+-
+-    void vlog(string_view format_str, format_args args);  // OK
+-    format_args args = make_format_args(42);  // Error: dangling reference
+-  \endrst
+- */
+-template <typename Context> class basic_format_args {
+- public:
+-  using size_type = int;
+-  using format_arg = basic_format_arg<Context>;
+-
+- private:
+-  // A descriptor that contains information about formatting arguments.
+-  // If the number of arguments is less or equal to max_packed_args then
+-  // argument types are passed in the descriptor. This reduces binary code size
+-  // per formatting function call.
+-  unsigned long long desc_;
+-  union {
+-    // If is_packed() returns true then argument values are stored in values_;
+-    // otherwise they are stored in args_. This is done to improve cache
+-    // locality and reduce compiled code size since storing larger objects
+-    // may require more code (at least on x86-64) even if the same amount of
+-    // data is actually copied to stack. It saves ~10% on the bloat test.
+-    const detail::value<Context>* values_;
+-    const format_arg* args_;
+-  };
+-
+-  constexpr auto is_packed() const -> bool {
+-    return (desc_ & detail::is_unpacked_bit) == 0;
+-  }
+-  auto has_named_args() const -> bool {
+-    return (desc_ & detail::has_named_args_bit) != 0;
+-  }
+-
+-  FMT_CONSTEXPR auto type(int index) const -> detail::type {
+-    int shift = index * detail::packed_arg_bits;
+-    unsigned int mask = (1 << detail::packed_arg_bits) - 1;
+-    return static_cast<detail::type>((desc_ >> shift) & mask);
+-  }
+-
+-  constexpr FMT_INLINE basic_format_args(unsigned long long desc,
+-                                         const detail::value<Context>* values)
+-      : desc_(desc), values_(values) {}
+-  constexpr basic_format_args(unsigned long long desc, const format_arg* args)
+-      : desc_(desc), args_(args) {}
+-
+- public:
+-  constexpr basic_format_args() : desc_(0), args_(nullptr) {}
+-
+-  /**
+-   \rst
+-   Constructs a `basic_format_args` object from `~fmt::format_arg_store`.
+-   \endrst
+-   */
+-  template <typename... Args>
+-  constexpr FMT_INLINE basic_format_args(
+-      const format_arg_store<Context, Args...>& store)
+-      : basic_format_args(format_arg_store<Context, Args...>::desc,
+-                          store.data_.args()) {}
+-
+-  /**
+-   \rst
+-   Constructs a `basic_format_args` object from
+-   `~fmt::dynamic_format_arg_store`.
+-   \endrst
+-   */
+-  constexpr FMT_INLINE basic_format_args(
+-      const dynamic_format_arg_store<Context>& store)
+-      : basic_format_args(store.get_types(), store.data()) {}
+-
+-  /**
+-   \rst
+-   Constructs a `basic_format_args` object from a dynamic set of arguments.
+-   \endrst
+-   */
+-  constexpr basic_format_args(const format_arg* args, int count)
+-      : basic_format_args(detail::is_unpacked_bit | detail::to_unsigned(count),
+-                          args) {}
+-
+-  /** Returns the argument with the specified id. */
+-  FMT_CONSTEXPR auto get(int id) const -> format_arg {
+-    format_arg arg;
+-    if (!is_packed()) {
+-      if (id < max_size()) arg = args_[id];
+-      return arg;
+-    }
+-    if (id >= detail::max_packed_args) return arg;
+-    arg.type_ = type(id);
+-    if (arg.type_ == detail::type::none_type) return arg;
+-    arg.value_ = values_[id];
+-    return arg;
+-  }
+-
+-  template <typename Char>
+-  auto get(basic_string_view<Char> name) const -> format_arg {
+-    int id = get_id(name);
+-    return id >= 0 ? get(id) : format_arg();
+-  }
+-
+-  template <typename Char>
+-  auto get_id(basic_string_view<Char> name) const -> int {
+-    if (!has_named_args()) return -1;
+-    const auto& named_args =
+-        (is_packed() ? values_[-1] : args_[-1].value_).named_args;
+-    for (size_t i = 0; i < named_args.size; ++i) {
+-      if (named_args.data[i].name == name) return named_args.data[i].id;
+-    }
+-    return -1;
+-  }
+-
+-  auto max_size() const -> int {
+-    unsigned long long max_packed = detail::max_packed_args;
+-    return static_cast<int>(is_packed() ? max_packed
+-                                        : desc_ & ~detail::is_unpacked_bit);
+-  }
+-};
+-
+-/** An alias to ``basic_format_args<format_context>``. */
+-// A separate type would result in shorter symbols but break ABI compatibility
+-// between clang and gcc on ARM (#1919).
+-using format_args = basic_format_args<format_context>;
+-
+-// We cannot use enum classes as bit fields because of a gcc bug
+-// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414.
+-namespace align {
+-enum type { none, left, right, center, numeric };
+-}
+-using align_t = align::type;
+-namespace sign {
+-enum type { none, minus, plus, space };
+-}
+-using sign_t = sign::type;
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// Workaround an array initialization issue in gcc 4.8.
+-template <typename Char> struct fill_t {
+- private:
+-  enum { max_size = 4 };
+-  Char data_[max_size] = {Char(' '), Char(0), Char(0), Char(0)};
+-  unsigned char size_ = 1;
+-
+- public:
+-  FMT_CONSTEXPR void operator=(basic_string_view<Char> s) {
+-    auto size = s.size();
+-    if (size > max_size) return throw_format_error("invalid fill");
+-    for (size_t i = 0; i < size; ++i) data_[i] = s[i];
+-    size_ = static_cast<unsigned char>(size);
+-  }
+-
+-  constexpr auto size() const -> size_t { return size_; }
+-  constexpr auto data() const -> const Char* { return data_; }
+-
+-  FMT_CONSTEXPR auto operator[](size_t index) -> Char& { return data_[index]; }
+-  FMT_CONSTEXPR auto operator[](size_t index) const -> const Char& {
+-    return data_[index];
+-  }
+-};
+-FMT_END_DETAIL_NAMESPACE
+-
+-enum class presentation_type : unsigned char {
+-  none,
+-  // Integer types should go first,
+-  dec,             // 'd'
+-  oct,             // 'o'
+-  hex_lower,       // 'x'
+-  hex_upper,       // 'X'
+-  bin_lower,       // 'b'
+-  bin_upper,       // 'B'
+-  hexfloat_lower,  // 'a'
+-  hexfloat_upper,  // 'A'
+-  exp_lower,       // 'e'
+-  exp_upper,       // 'E'
+-  fixed_lower,     // 'f'
+-  fixed_upper,     // 'F'
+-  general_lower,   // 'g'
+-  general_upper,   // 'G'
+-  chr,             // 'c'
+-  string,          // 's'
+-  pointer          // 'p'
+-};
+-
+-// Format specifiers for built-in and string types.
+-template <typename Char> struct basic_format_specs {
+-  int width;
+-  int precision;
+-  presentation_type type;
+-  align_t align : 4;
+-  sign_t sign : 3;
+-  bool alt : 1;  // Alternate form ('#').
+-  bool localized : 1;
+-  detail::fill_t<Char> fill;
+-
+-  constexpr basic_format_specs()
+-      : width(0),
+-        precision(-1),
+-        type(presentation_type::none),
+-        align(align::none),
+-        sign(sign::none),
+-        alt(false),
+-        localized(false) {}
+-};
+-
+-using format_specs = basic_format_specs<char>;
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-enum class arg_id_kind { none, index, name };
+-
+-// An argument reference.
+-template <typename Char> struct arg_ref {
+-  FMT_CONSTEXPR arg_ref() : kind(arg_id_kind::none), val() {}
+-
+-  FMT_CONSTEXPR explicit arg_ref(int index)
+-      : kind(arg_id_kind::index), val(index) {}
+-  FMT_CONSTEXPR explicit arg_ref(basic_string_view<Char> name)
+-      : kind(arg_id_kind::name), val(name) {}
+-
+-  FMT_CONSTEXPR auto operator=(int idx) -> arg_ref& {
+-    kind = arg_id_kind::index;
+-    val.index = idx;
+-    return *this;
+-  }
+-
+-  arg_id_kind kind;
+-  union value {
+-    FMT_CONSTEXPR value(int id = 0) : index{id} {}
+-    FMT_CONSTEXPR value(basic_string_view<Char> n) : name(n) {}
+-
+-    int index;
+-    basic_string_view<Char> name;
+-  } val;
+-};
+-
+-// Format specifiers with width and precision resolved at formatting rather
+-// than parsing time to allow re-using the same parsed specifiers with
+-// different sets of arguments (precompilation of format strings).
+-template <typename Char>
+-struct dynamic_format_specs : basic_format_specs<Char> {
+-  arg_ref<Char> width_ref;
+-  arg_ref<Char> precision_ref;
+-};
+-
+-struct auto_id {};
+-
+-// A format specifier handler that sets fields in basic_format_specs.
+-template <typename Char> class specs_setter {
+- protected:
+-  basic_format_specs<Char>& specs_;
+-
+- public:
+-  explicit FMT_CONSTEXPR specs_setter(basic_format_specs<Char>& specs)
+-      : specs_(specs) {}
+-
+-  FMT_CONSTEXPR specs_setter(const specs_setter& other)
+-      : specs_(other.specs_) {}
+-
+-  FMT_CONSTEXPR void on_align(align_t align) { specs_.align = align; }
+-  FMT_CONSTEXPR void on_fill(basic_string_view<Char> fill) {
+-    specs_.fill = fill;
+-  }
+-  FMT_CONSTEXPR void on_sign(sign_t s) { specs_.sign = s; }
+-  FMT_CONSTEXPR void on_hash() { specs_.alt = true; }
+-  FMT_CONSTEXPR void on_localized() { specs_.localized = true; }
+-
+-  FMT_CONSTEXPR void on_zero() {
+-    if (specs_.align == align::none) specs_.align = align::numeric;
+-    specs_.fill[0] = Char('0');
+-  }
+-
+-  FMT_CONSTEXPR void on_width(int width) { specs_.width = width; }
+-  FMT_CONSTEXPR void on_precision(int precision) {
+-    specs_.precision = precision;
+-  }
+-  FMT_CONSTEXPR void end_precision() {}
+-
+-  FMT_CONSTEXPR void on_type(presentation_type type) { specs_.type = type; }
+-};
+-
+-// Format spec handler that saves references to arguments representing dynamic
+-// width and precision to be resolved at formatting time.
+-template <typename ParseContext>
+-class dynamic_specs_handler
+-    : public specs_setter<typename ParseContext::char_type> {
+- public:
+-  using char_type = typename ParseContext::char_type;
+-
+-  FMT_CONSTEXPR dynamic_specs_handler(dynamic_format_specs<char_type>& specs,
+-                                      ParseContext& ctx)
+-      : specs_setter<char_type>(specs), specs_(specs), context_(ctx) {}
+-
+-  FMT_CONSTEXPR dynamic_specs_handler(const dynamic_specs_handler& other)
+-      : specs_setter<char_type>(other),
+-        specs_(other.specs_),
+-        context_(other.context_) {}
+-
+-  template <typename Id> FMT_CONSTEXPR void on_dynamic_width(Id arg_id) {
+-    specs_.width_ref = make_arg_ref(arg_id);
+-  }
+-
+-  template <typename Id> FMT_CONSTEXPR void on_dynamic_precision(Id arg_id) {
+-    specs_.precision_ref = make_arg_ref(arg_id);
+-  }
+-
+-  FMT_CONSTEXPR void on_error(const char* message) {
+-    context_.on_error(message);
+-  }
+-
+- private:
+-  dynamic_format_specs<char_type>& specs_;
+-  ParseContext& context_;
+-
+-  using arg_ref_type = arg_ref<char_type>;
+-
+-  FMT_CONSTEXPR auto make_arg_ref(int arg_id) -> arg_ref_type {
+-    context_.check_arg_id(arg_id);
+-    return arg_ref_type(arg_id);
+-  }
+-
+-  FMT_CONSTEXPR auto make_arg_ref(auto_id) -> arg_ref_type {
+-    return arg_ref_type(context_.next_arg_id());
+-  }
+-
+-  FMT_CONSTEXPR auto make_arg_ref(basic_string_view<char_type> arg_id)
+-      -> arg_ref_type {
+-    context_.check_arg_id(arg_id);
+-    basic_string_view<char_type> format_str(
+-        context_.begin(), to_unsigned(context_.end() - context_.begin()));
+-    return arg_ref_type(arg_id);
+-  }
+-};
+-
+-template <typename Char> constexpr bool is_ascii_letter(Char c) {
+-  return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');
+-}
+-
+-// Converts a character to ASCII. Returns a number > 127 on conversion failure.
+-template <typename Char, FMT_ENABLE_IF(std::is_integral<Char>::value)>
+-constexpr auto to_ascii(Char value) -> Char {
+-  return value;
+-}
+-template <typename Char, FMT_ENABLE_IF(std::is_enum<Char>::value)>
+-constexpr auto to_ascii(Char value) ->
+-    typename std::underlying_type<Char>::type {
+-  return value;
+-}
+-
+-template <typename Char>
+-FMT_CONSTEXPR auto code_point_length(const Char* begin) -> int {
+-  if (const_check(sizeof(Char) != 1)) return 1;
+-  auto lengths =
+-      "\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0\0\0\0\0\0\2\2\2\2\3\3\4";
+-  int len = lengths[static_cast<unsigned char>(*begin) >> 3];
+-
+-  // Compute the pointer to the next character early so that the next
+-  // iteration can start working on the next character. Neither Clang
+-  // nor GCC figure out this reordering on their own.
+-  return len + !len;
+-}
+-
+-// Return the result via the out param to workaround gcc bug 77539.
+-template <bool IS_CONSTEXPR, typename T, typename Ptr = const T*>
+-FMT_CONSTEXPR auto find(Ptr first, Ptr last, T value, Ptr& out) -> bool {
+-  for (out = first; out != last; ++out) {
+-    if (*out == value) return true;
+-  }
+-  return false;
+-}
+-
+-template <>
+-inline auto find<false, char>(const char* first, const char* last, char value,
+-                              const char*& out) -> bool {
+-  out = static_cast<const char*>(
+-      std::memchr(first, value, to_unsigned(last - first)));
+-  return out != nullptr;
+-}
+-
+-// Parses the range [begin, end) as an unsigned integer. This function assumes
+-// that the range is non-empty and the first character is a digit.
+-template <typename Char>
+-FMT_CONSTEXPR auto parse_nonnegative_int(const Char*& begin, const Char* end,
+-                                         int error_value) noexcept -> int {
+-  FMT_ASSERT(begin != end && '0' <= *begin && *begin <= '9', "");
+-  unsigned value = 0, prev = 0;
+-  auto p = begin;
+-  do {
+-    prev = value;
+-    value = value * 10 + unsigned(*p - '0');
+-    ++p;
+-  } while (p != end && '0' <= *p && *p <= '9');
+-  auto num_digits = p - begin;
+-  begin = p;
+-  if (num_digits <= std::numeric_limits<int>::digits10)
+-    return static_cast<int>(value);
+-  // Check for overflow.
+-  const unsigned max = to_unsigned((std::numeric_limits<int>::max)());
+-  return num_digits == std::numeric_limits<int>::digits10 + 1 &&
+-                 prev * 10ull + unsigned(p[-1] - '0') <= max
+-             ? static_cast<int>(value)
+-             : error_value;
+-}
+-
+-// Parses fill and alignment.
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR auto parse_align(const Char* begin, const Char* end,
+-                               Handler&& handler) -> const Char* {
+-  FMT_ASSERT(begin != end, "");
+-  auto align = align::none;
+-  auto p = begin + code_point_length(begin);
+-  if (p >= end) p = begin;
+-  for (;;) {
+-    switch (to_ascii(*p)) {
+-    case '<':
+-      align = align::left;
+-      break;
+-    case '>':
+-      align = align::right;
+-      break;
+-    case '^':
+-      align = align::center;
+-      break;
+-    default:
+-      break;
+-    }
+-    if (align != align::none) {
+-      if (p != begin) {
+-        auto c = *begin;
+-        if (c == '{')
+-          return handler.on_error("invalid fill character '{'"), begin;
+-        handler.on_fill(basic_string_view<Char>(begin, to_unsigned(p - begin)));
+-        begin = p + 1;
+-      } else
+-        ++begin;
+-      handler.on_align(align);
+-      break;
+-    } else if (p == begin) {
+-      break;
+-    }
+-    p = begin;
+-  }
+-  return begin;
+-}
+-
+-template <typename Char> FMT_CONSTEXPR bool is_name_start(Char c) {
+-  return ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || '_' == c;
+-}
+-
+-template <typename Char, typename IDHandler>
+-FMT_CONSTEXPR auto do_parse_arg_id(const Char* begin, const Char* end,
+-                                   IDHandler&& handler) -> const Char* {
+-  FMT_ASSERT(begin != end, "");
+-  Char c = *begin;
+-  if (c >= '0' && c <= '9') {
+-    int index = 0;
+-    if (c != '0')
+-      index =
+-          parse_nonnegative_int(begin, end, (std::numeric_limits<int>::max)());
+-    else
+-      ++begin;
+-    if (begin == end || (*begin != '}' && *begin != ':'))
+-      handler.on_error("invalid format string");
+-    else
+-      handler(index);
+-    return begin;
+-  }
+-  if (!is_name_start(c)) {
+-    handler.on_error("invalid format string");
+-    return begin;
+-  }
+-  auto it = begin;
+-  do {
+-    ++it;
+-  } while (it != end && (is_name_start(c = *it) || ('0' <= c && c <= '9')));
+-  handler(basic_string_view<Char>(begin, to_unsigned(it - begin)));
+-  return it;
+-}
+-
+-template <typename Char, typename IDHandler>
+-FMT_CONSTEXPR FMT_INLINE auto parse_arg_id(const Char* begin, const Char* end,
+-                                           IDHandler&& handler) -> const Char* {
+-  Char c = *begin;
+-  if (c != '}' && c != ':') return do_parse_arg_id(begin, end, handler);
+-  handler();
+-  return begin;
+-}
+-
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR auto parse_width(const Char* begin, const Char* end,
+-                               Handler&& handler) -> const Char* {
+-  using detail::auto_id;
+-  struct width_adapter {
+-    Handler& handler;
+-
+-    FMT_CONSTEXPR void operator()() { handler.on_dynamic_width(auto_id()); }
+-    FMT_CONSTEXPR void operator()(int id) { handler.on_dynamic_width(id); }
+-    FMT_CONSTEXPR void operator()(basic_string_view<Char> id) {
+-      handler.on_dynamic_width(id);
+-    }
+-    FMT_CONSTEXPR void on_error(const char* message) {
+-      if (message) handler.on_error(message);
+-    }
+-  };
+-
+-  FMT_ASSERT(begin != end, "");
+-  if ('0' <= *begin && *begin <= '9') {
+-    int width = parse_nonnegative_int(begin, end, -1);
+-    if (width != -1)
+-      handler.on_width(width);
+-    else
+-      handler.on_error("number is too big");
+-  } else if (*begin == '{') {
+-    ++begin;
+-    if (begin != end) begin = parse_arg_id(begin, end, width_adapter{handler});
+-    if (begin == end || *begin != '}')
+-      return handler.on_error("invalid format string"), begin;
+-    ++begin;
+-  }
+-  return begin;
+-}
+-
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR auto parse_precision(const Char* begin, const Char* end,
+-                                   Handler&& handler) -> const Char* {
+-  using detail::auto_id;
+-  struct precision_adapter {
+-    Handler& handler;
+-
+-    FMT_CONSTEXPR void operator()() { handler.on_dynamic_precision(auto_id()); }
+-    FMT_CONSTEXPR void operator()(int id) { handler.on_dynamic_precision(id); }
+-    FMT_CONSTEXPR void operator()(basic_string_view<Char> id) {
+-      handler.on_dynamic_precision(id);
+-    }
+-    FMT_CONSTEXPR void on_error(const char* message) {
+-      if (message) handler.on_error(message);
+-    }
+-  };
+-
+-  ++begin;
+-  auto c = begin != end ? *begin : Char();
+-  if ('0' <= c && c <= '9') {
+-    auto precision = parse_nonnegative_int(begin, end, -1);
+-    if (precision != -1)
+-      handler.on_precision(precision);
+-    else
+-      handler.on_error("number is too big");
+-  } else if (c == '{') {
+-    ++begin;
+-    if (begin != end)
+-      begin = parse_arg_id(begin, end, precision_adapter{handler});
+-    if (begin == end || *begin++ != '}')
+-      return handler.on_error("invalid format string"), begin;
+-  } else {
+-    return handler.on_error("missing precision specifier"), begin;
+-  }
+-  handler.end_precision();
+-  return begin;
+-}
+-
+-template <typename Char>
+-FMT_CONSTEXPR auto parse_presentation_type(Char type) -> presentation_type {
+-  switch (to_ascii(type)) {
+-  case 'd':
+-    return presentation_type::dec;
+-  case 'o':
+-    return presentation_type::oct;
+-  case 'x':
+-    return presentation_type::hex_lower;
+-  case 'X':
+-    return presentation_type::hex_upper;
+-  case 'b':
+-    return presentation_type::bin_lower;
+-  case 'B':
+-    return presentation_type::bin_upper;
+-  case 'a':
+-    return presentation_type::hexfloat_lower;
+-  case 'A':
+-    return presentation_type::hexfloat_upper;
+-  case 'e':
+-    return presentation_type::exp_lower;
+-  case 'E':
+-    return presentation_type::exp_upper;
+-  case 'f':
+-    return presentation_type::fixed_lower;
+-  case 'F':
+-    return presentation_type::fixed_upper;
+-  case 'g':
+-    return presentation_type::general_lower;
+-  case 'G':
+-    return presentation_type::general_upper;
+-  case 'c':
+-    return presentation_type::chr;
+-  case 's':
+-    return presentation_type::string;
+-  case 'p':
+-    return presentation_type::pointer;
+-  default:
+-    return presentation_type::none;
+-  }
+-}
+-
+-// Parses standard format specifiers and sends notifications about parsed
+-// components to handler.
+-template <typename Char, typename SpecHandler>
+-FMT_CONSTEXPR FMT_INLINE auto parse_format_specs(const Char* begin,
+-                                                 const Char* end,
+-                                                 SpecHandler&& handler)
+-    -> const Char* {
+-  if (1 < end - begin && begin[1] == '}' && is_ascii_letter(*begin) &&
+-      *begin != 'L') {
+-    presentation_type type = parse_presentation_type(*begin++);
+-    if (type == presentation_type::none)
+-      handler.on_error("invalid type specifier");
+-    handler.on_type(type);
+-    return begin;
+-  }
+-
+-  if (begin == end) return begin;
+-
+-  begin = parse_align(begin, end, handler);
+-  if (begin == end) return begin;
+-
+-  // Parse sign.
+-  switch (to_ascii(*begin)) {
+-  case '+':
+-    handler.on_sign(sign::plus);
+-    ++begin;
+-    break;
+-  case '-':
+-    handler.on_sign(sign::minus);
+-    ++begin;
+-    break;
+-  case ' ':
+-    handler.on_sign(sign::space);
+-    ++begin;
+-    break;
+-  default:
+-    break;
+-  }
+-  if (begin == end) return begin;
+-
+-  if (*begin == '#') {
+-    handler.on_hash();
+-    if (++begin == end) return begin;
+-  }
+-
+-  // Parse zero flag.
+-  if (*begin == '0') {
+-    handler.on_zero();
+-    if (++begin == end) return begin;
+-  }
+-
+-  begin = parse_width(begin, end, handler);
+-  if (begin == end) return begin;
+-
+-  // Parse precision.
+-  if (*begin == '.') {
+-    begin = parse_precision(begin, end, handler);
+-    if (begin == end) return begin;
+-  }
+-
+-  if (*begin == 'L') {
+-    handler.on_localized();
+-    ++begin;
+-  }
+-
+-  // Parse type.
+-  if (begin != end && *begin != '}') {
+-    presentation_type type = parse_presentation_type(*begin++);
+-    if (type == presentation_type::none)
+-      handler.on_error("invalid type specifier");
+-    handler.on_type(type);
+-  }
+-  return begin;
+-}
+-
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR auto parse_replacement_field(const Char* begin, const Char* end,
+-                                           Handler&& handler) -> const Char* {
+-  struct id_adapter {
+-    Handler& handler;
+-    int arg_id;
+-
+-    FMT_CONSTEXPR void operator()() { arg_id = handler.on_arg_id(); }
+-    FMT_CONSTEXPR void operator()(int id) { arg_id = handler.on_arg_id(id); }
+-    FMT_CONSTEXPR void operator()(basic_string_view<Char> id) {
+-      arg_id = handler.on_arg_id(id);
+-    }
+-    FMT_CONSTEXPR void on_error(const char* message) {
+-      if (message) handler.on_error(message);
+-    }
+-  };
+-
+-  ++begin;
+-  if (begin == end) return handler.on_error("invalid format string"), end;
+-  if (*begin == '}') {
+-    handler.on_replacement_field(handler.on_arg_id(), begin);
+-  } else if (*begin == '{') {
+-    handler.on_text(begin, begin + 1);
+-  } else {
+-    auto adapter = id_adapter{handler, 0};
+-    begin = parse_arg_id(begin, end, adapter);
+-    Char c = begin != end ? *begin : Char();
+-    if (c == '}') {
+-      handler.on_replacement_field(adapter.arg_id, begin);
+-    } else if (c == ':') {
+-      begin = handler.on_format_specs(adapter.arg_id, begin + 1, end);
+-      if (begin == end || *begin != '}')
+-        return handler.on_error("unknown format specifier"), end;
+-    } else {
+-      return handler.on_error("missing '}' in format string"), end;
+-    }
+-  }
+-  return begin + 1;
+-}
+-
+-template <bool IS_CONSTEXPR, typename Char, typename Handler>
+-FMT_CONSTEXPR FMT_INLINE void parse_format_string(
+-    basic_string_view<Char> format_str, Handler&& handler) {
+-  // Workaround a name-lookup bug in MSVC's modules implementation.
+-  using detail::find;
+-
+-  auto begin = format_str.data();
+-  auto end = begin + format_str.size();
+-  if (end - begin < 32) {
+-    // Use a simple loop instead of memchr for small strings.
+-    const Char* p = begin;
+-    while (p != end) {
+-      auto c = *p++;
+-      if (c == '{') {
+-        handler.on_text(begin, p - 1);
+-        begin = p = parse_replacement_field(p - 1, end, handler);
+-      } else if (c == '}') {
+-        if (p == end || *p != '}')
+-          return handler.on_error("unmatched '}' in format string");
+-        handler.on_text(begin, p);
+-        begin = ++p;
+-      }
+-    }
+-    handler.on_text(begin, end);
+-    return;
+-  }
+-  struct writer {
+-    FMT_CONSTEXPR void operator()(const Char* pbegin, const Char* pend) {
+-      if (pbegin == pend) return;
+-      for (;;) {
+-        const Char* p = nullptr;
+-        if (!find<IS_CONSTEXPR>(pbegin, pend, Char('}'), p))
+-          return handler_.on_text(pbegin, pend);
+-        ++p;
+-        if (p == pend || *p != '}')
+-          return handler_.on_error("unmatched '}' in format string");
+-        handler_.on_text(pbegin, p);
+-        pbegin = p + 1;
+-      }
+-    }
+-    Handler& handler_;
+-  } write{handler};
+-  while (begin != end) {
+-    // Doing two passes with memchr (one for '{' and another for '}') is up to
+-    // 2.5x faster than the naive one-pass implementation on big format strings.
+-    const Char* p = begin;
+-    if (*begin != '{' && !find<IS_CONSTEXPR>(begin + 1, end, Char('{'), p))
+-      return write(begin, end);
+-    write(begin, p);
+-    begin = parse_replacement_field(p, end, handler);
+-  }
+-}
+-
+-template <typename T, typename ParseContext>
+-FMT_CONSTEXPR auto parse_format_specs(ParseContext& ctx)
+-    -> decltype(ctx.begin()) {
+-  using char_type = typename ParseContext::char_type;
+-  using context = buffer_context<char_type>;
+-  using mapped_type = conditional_t<
+-      mapped_type_constant<T, context>::value != type::custom_type,
+-      decltype(arg_mapper<context>().map(std::declval<const T&>())), T>;
+-  auto f = conditional_t<has_formatter<mapped_type, context>::value,
+-                         formatter<mapped_type, char_type>,
+-                         fallback_formatter<T, char_type>>();
+-  return f.parse(ctx);
+-}
+-
+-// A parse context with extra argument id checks. It is only used at compile
+-// time because adding checks at runtime would introduce substantial overhead
+-// and would be redundant since argument ids are checked when arguments are
+-// retrieved anyway.
+-template <typename Char, typename ErrorHandler = error_handler>
+-class compile_parse_context
+-    : public basic_format_parse_context<Char, ErrorHandler> {
+- private:
+-  int num_args_;
+-  using base = basic_format_parse_context<Char, ErrorHandler>;
+-
+- public:
+-  explicit FMT_CONSTEXPR compile_parse_context(
+-      basic_string_view<Char> format_str,
+-      int num_args = (std::numeric_limits<int>::max)(), ErrorHandler eh = {})
+-      : base(format_str, eh), num_args_(num_args) {}
+-
+-  FMT_CONSTEXPR auto next_arg_id() -> int {
+-    int id = base::next_arg_id();
+-    if (id >= num_args_) this->on_error("argument not found");
+-    return id;
+-  }
+-
+-  FMT_CONSTEXPR void check_arg_id(int id) {
+-    base::check_arg_id(id);
+-    if (id >= num_args_) this->on_error("argument not found");
+-  }
+-  using base::check_arg_id;
+-};
+-
+-template <typename ErrorHandler>
+-FMT_CONSTEXPR void check_int_type_spec(presentation_type type,
+-                                       ErrorHandler&& eh) {
+-  if (type > presentation_type::bin_upper && type != presentation_type::chr)
+-    eh.on_error("invalid type specifier");
+-}
+-
+-// Checks char specs and returns true if the type spec is char (and not int).
+-template <typename Char, typename ErrorHandler = error_handler>
+-FMT_CONSTEXPR auto check_char_specs(const basic_format_specs<Char>& specs,
+-                                    ErrorHandler&& eh = {}) -> bool {
+-  if (specs.type != presentation_type::none &&
+-      specs.type != presentation_type::chr) {
+-    check_int_type_spec(specs.type, eh);
+-    return false;
+-  }
+-  if (specs.align == align::numeric || specs.sign != sign::none || specs.alt)
+-    eh.on_error("invalid format specifier for char");
+-  return true;
+-}
+-
+-// A floating-point presentation format.
+-enum class float_format : unsigned char {
+-  general,  // General: exponent notation or fixed point based on magnitude.
+-  exp,      // Exponent notation with the default precision of 6, e.g. 1.2e-3.
+-  fixed,    // Fixed point with the default precision of 6, e.g. 0.0012.
+-  hex
+-};
+-
+-struct float_specs {
+-  int precision;
+-  float_format format : 8;
+-  sign_t sign : 8;
+-  bool upper : 1;
+-  bool locale : 1;
+-  bool binary32 : 1;
+-  bool fallback : 1;
+-  bool showpoint : 1;
+-};
+-
+-template <typename ErrorHandler = error_handler, typename Char>
+-FMT_CONSTEXPR auto parse_float_type_spec(const basic_format_specs<Char>& specs,
+-                                         ErrorHandler&& eh = {})
+-    -> float_specs {
+-  auto result = float_specs();
+-  result.showpoint = specs.alt;
+-  result.locale = specs.localized;
+-  switch (specs.type) {
+-  case presentation_type::none:
+-    result.format = float_format::general;
+-    break;
+-  case presentation_type::general_upper:
+-    result.upper = true;
+-    FMT_FALLTHROUGH;
+-  case presentation_type::general_lower:
+-    result.format = float_format::general;
+-    break;
+-  case presentation_type::exp_upper:
+-    result.upper = true;
+-    FMT_FALLTHROUGH;
+-  case presentation_type::exp_lower:
+-    result.format = float_format::exp;
+-    result.showpoint |= specs.precision != 0;
+-    break;
+-  case presentation_type::fixed_upper:
+-    result.upper = true;
+-    FMT_FALLTHROUGH;
+-  case presentation_type::fixed_lower:
+-    result.format = float_format::fixed;
+-    result.showpoint |= specs.precision != 0;
+-    break;
+-  case presentation_type::hexfloat_upper:
+-    result.upper = true;
+-    FMT_FALLTHROUGH;
+-  case presentation_type::hexfloat_lower:
+-    result.format = float_format::hex;
+-    break;
+-  default:
+-    eh.on_error("invalid type specifier");
+-    break;
+-  }
+-  return result;
+-}
+-
+-template <typename ErrorHandler = error_handler>
+-FMT_CONSTEXPR auto check_cstring_type_spec(presentation_type type,
+-                                           ErrorHandler&& eh = {}) -> bool {
+-  if (type == presentation_type::none || type == presentation_type::string)
+-    return true;
+-  if (type != presentation_type::pointer) eh.on_error("invalid type specifier");
+-  return false;
+-}
+-
+-template <typename ErrorHandler = error_handler>
+-FMT_CONSTEXPR void check_string_type_spec(presentation_type type,
+-                                          ErrorHandler&& eh = {}) {
+-  if (type != presentation_type::none && type != presentation_type::string)
+-    eh.on_error("invalid type specifier");
+-}
+-
+-template <typename ErrorHandler>
+-FMT_CONSTEXPR void check_pointer_type_spec(presentation_type type,
+-                                           ErrorHandler&& eh) {
+-  if (type != presentation_type::none && type != presentation_type::pointer)
+-    eh.on_error("invalid type specifier");
+-}
+-
+-// A parse_format_specs handler that checks if specifiers are consistent with
+-// the argument type.
+-template <typename Handler> class specs_checker : public Handler {
+- private:
+-  detail::type arg_type_;
+-
+-  FMT_CONSTEXPR void require_numeric_argument() {
+-    if (!is_arithmetic_type(arg_type_))
+-      this->on_error("format specifier requires numeric argument");
+-  }
+-
+- public:
+-  FMT_CONSTEXPR specs_checker(const Handler& handler, detail::type arg_type)
+-      : Handler(handler), arg_type_(arg_type) {}
+-
+-  FMT_CONSTEXPR void on_align(align_t align) {
+-    if (align == align::numeric) require_numeric_argument();
+-    Handler::on_align(align);
+-  }
+-
+-  FMT_CONSTEXPR void on_sign(sign_t s) {
+-    require_numeric_argument();
+-    if (is_integral_type(arg_type_) && arg_type_ != type::int_type &&
+-        arg_type_ != type::long_long_type && arg_type_ != type::char_type) {
+-      this->on_error("format specifier requires signed argument");
+-    }
+-    Handler::on_sign(s);
+-  }
+-
+-  FMT_CONSTEXPR void on_hash() {
+-    require_numeric_argument();
+-    Handler::on_hash();
+-  }
+-
+-  FMT_CONSTEXPR void on_localized() {
+-    require_numeric_argument();
+-    Handler::on_localized();
+-  }
+-
+-  FMT_CONSTEXPR void on_zero() {
+-    require_numeric_argument();
+-    Handler::on_zero();
+-  }
+-
+-  FMT_CONSTEXPR void end_precision() {
+-    if (is_integral_type(arg_type_) || arg_type_ == type::pointer_type)
+-      this->on_error("precision not allowed for this argument type");
+-  }
+-};
+-
+-constexpr int invalid_arg_index = -1;
+-
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <int N, typename T, typename... Args, typename Char>
+-constexpr auto get_arg_index_by_name(basic_string_view<Char> name) -> int {
+-  if constexpr (detail::is_statically_named_arg<T>()) {
+-    if (name == T::name) return N;
+-  }
+-  if constexpr (sizeof...(Args) > 0)
+-    return get_arg_index_by_name<N + 1, Args...>(name);
+-  (void)name;  // Workaround an MSVC bug about "unused" parameter.
+-  return invalid_arg_index;
+-}
+-#endif
+-
+-template <typename... Args, typename Char>
+-FMT_CONSTEXPR auto get_arg_index_by_name(basic_string_view<Char> name) -> int {
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-  if constexpr (sizeof...(Args) > 0)
+-    return get_arg_index_by_name<0, Args...>(name);
+-#endif
+-  (void)name;
+-  return invalid_arg_index;
+-}
+-
+-template <typename Char, typename ErrorHandler, typename... Args>
+-class format_string_checker {
+- private:
+-  using parse_context_type = compile_parse_context<Char, ErrorHandler>;
+-  enum { num_args = sizeof...(Args) };
+-
+-  // Format specifier parsing function.
+-  using parse_func = const Char* (*)(parse_context_type&);
+-
+-  parse_context_type context_;
+-  parse_func parse_funcs_[num_args > 0 ? num_args : 1];
+-
+- public:
+-  explicit FMT_CONSTEXPR format_string_checker(
+-      basic_string_view<Char> format_str, ErrorHandler eh)
+-      : context_(format_str, num_args, eh),
+-        parse_funcs_{&parse_format_specs<Args, parse_context_type>...} {}
+-
+-  FMT_CONSTEXPR void on_text(const Char*, const Char*) {}
+-
+-  FMT_CONSTEXPR auto on_arg_id() -> int { return context_.next_arg_id(); }
+-  FMT_CONSTEXPR auto on_arg_id(int id) -> int {
+-    return context_.check_arg_id(id), id;
+-  }
+-  FMT_CONSTEXPR auto on_arg_id(basic_string_view<Char> id) -> int {
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-    auto index = get_arg_index_by_name<Args...>(id);
+-    if (index == invalid_arg_index) on_error("named argument is not found");
+-    return context_.check_arg_id(index), index;
+-#else
+-    (void)id;
+-    on_error("compile-time checks for named arguments require C++20 support");
+-    return 0;
+-#endif
+-  }
+-
+-  FMT_CONSTEXPR void on_replacement_field(int, const Char*) {}
+-
+-  FMT_CONSTEXPR auto on_format_specs(int id, const Char* begin, const Char*)
+-      -> const Char* {
+-    context_.advance_to(context_.begin() + (begin - &*context_.begin()));
+-    // id >= 0 check is a workaround for gcc 10 bug (#2065).
+-    return id >= 0 && id < num_args ? parse_funcs_[id](context_) : begin;
+-  }
+-
+-  FMT_CONSTEXPR void on_error(const char* message) {
+-    context_.on_error(message);
+-  }
+-};
+-
+-template <typename... Args, typename S,
+-          enable_if_t<(is_compile_string<S>::value), int>>
+-void check_format_string(S format_str) {
+-  FMT_CONSTEXPR auto s = to_string_view(format_str);
+-  using checker = format_string_checker<typename S::char_type, error_handler,
+-                                        remove_cvref_t<Args>...>;
+-  FMT_CONSTEXPR bool invalid_format =
+-      (parse_format_string<true>(s, checker(s, {})), true);
+-  ignore_unused(invalid_format);
+-}
+-
+-template <typename Char>
+-void vformat_to(
+-    buffer<Char>& buf, basic_string_view<Char> fmt,
+-    basic_format_args<FMT_BUFFER_CONTEXT(type_identity_t<Char>)> args,
+-    locale_ref loc = {});
+-
+-FMT_API void vprint_mojibake(std::FILE*, string_view, format_args);
+-#ifndef _WIN32
+-inline void vprint_mojibake(std::FILE*, string_view, format_args) {}
+-#endif
+-FMT_END_DETAIL_NAMESPACE
+-
+-// A formatter specialization for the core types corresponding to detail::type
+-// constants.
+-template <typename T, typename Char>
+-struct formatter<T, Char,
+-                 enable_if_t<detail::type_constant<T, Char>::value !=
+-                             detail::type::custom_type>> {
+- private:
+-  detail::dynamic_format_specs<Char> specs_;
+-
+- public:
+-  // Parses format specifiers stopping either at the end of the range or at the
+-  // terminating '}'.
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    auto begin = ctx.begin(), end = ctx.end();
+-    if (begin == end) return begin;
+-    using handler_type = detail::dynamic_specs_handler<ParseContext>;
+-    auto type = detail::type_constant<T, Char>::value;
+-    auto checker =
+-        detail::specs_checker<handler_type>(handler_type(specs_, ctx), type);
+-    auto it = detail::parse_format_specs(begin, end, checker);
+-    auto eh = ctx.error_handler();
+-    switch (type) {
+-    case detail::type::none_type:
+-      FMT_ASSERT(false, "invalid argument type");
+-      break;
+-    case detail::type::bool_type:
+-      if (specs_.type == presentation_type::none ||
+-          specs_.type == presentation_type::string) {
+-        break;
+-      }
+-      FMT_FALLTHROUGH;
+-    case detail::type::int_type:
+-    case detail::type::uint_type:
+-    case detail::type::long_long_type:
+-    case detail::type::ulong_long_type:
+-    case detail::type::int128_type:
+-    case detail::type::uint128_type:
+-      detail::check_int_type_spec(specs_.type, eh);
+-      break;
+-    case detail::type::char_type:
+-      detail::check_char_specs(specs_, eh);
+-      break;
+-    case detail::type::float_type:
+-      if (detail::const_check(FMT_USE_FLOAT))
+-        detail::parse_float_type_spec(specs_, eh);
+-      else
+-        FMT_ASSERT(false, "float support disabled");
+-      break;
+-    case detail::type::double_type:
+-      if (detail::const_check(FMT_USE_DOUBLE))
+-        detail::parse_float_type_spec(specs_, eh);
+-      else
+-        FMT_ASSERT(false, "double support disabled");
+-      break;
+-    case detail::type::long_double_type:
+-      if (detail::const_check(FMT_USE_LONG_DOUBLE))
+-        detail::parse_float_type_spec(specs_, eh);
+-      else
+-        FMT_ASSERT(false, "long double support disabled");
+-      break;
+-    case detail::type::cstring_type:
+-      detail::check_cstring_type_spec(specs_.type, eh);
+-      break;
+-    case detail::type::string_type:
+-      detail::check_string_type_spec(specs_.type, eh);
+-      break;
+-    case detail::type::pointer_type:
+-      detail::check_pointer_type_spec(specs_.type, eh);
+-      break;
+-    case detail::type::custom_type:
+-      // Custom format specifiers are checked in parse functions of
+-      // formatter specializations.
+-      break;
+-    }
+-    return it;
+-  }
+-
+-  template <typename FormatContext>
+-  FMT_CONSTEXPR auto format(const T& val, FormatContext& ctx) const
+-      -> decltype(ctx.out());
+-};
+-
+-template <typename Char> struct basic_runtime { basic_string_view<Char> str; };
+-
+-/** A compile-time format string. */
+-template <typename Char, typename... Args> class basic_format_string {
+- private:
+-  basic_string_view<Char> str_;
+-
+- public:
+-  template <typename S,
+-            FMT_ENABLE_IF(
+-                std::is_convertible<const S&, basic_string_view<Char>>::value)>
+-  FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
+-    static_assert(
+-        detail::count<
+-            (std::is_base_of<detail::view, remove_reference_t<Args>>::value &&
+-             std::is_reference<Args>::value)...>() == 0,
+-        "passing views as lvalues is disallowed");
+-#ifdef FMT_HAS_CONSTEVAL
+-    if constexpr (detail::count_named_args<Args...>() ==
+-                  detail::count_statically_named_args<Args...>()) {
+-      using checker = detail::format_string_checker<Char, detail::error_handler,
+-                                                    remove_cvref_t<Args>...>;
+-      detail::parse_format_string<true>(str_, checker(s, {}));
+-    }
+-#else
+-    detail::check_format_string<Args...>(s);
+-#endif
+-  }
+-  basic_format_string(basic_runtime<Char> r) : str_(r.str) {}
+-
+-  FMT_INLINE operator basic_string_view<Char>() const { return str_; }
+-};
+-
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-// Workaround broken conversion on older gcc.
+-template <typename... Args> using format_string = string_view;
+-template <typename S> auto runtime(const S& s) -> basic_string_view<char_t<S>> {
+-  return s;
+-}
+-#else
+-template <typename... Args>
+-using format_string = basic_format_string<char, type_identity_t<Args>...>;
+-/**
+-  \rst
+-  Creates a runtime format string.
+-
+-  **Example**::
+-
+-    // Check format string at runtime instead of compile-time.
+-    fmt::print(fmt::runtime("{:d}"), "I am not a number");
+-  \endrst
+- */
+-template <typename S> auto runtime(const S& s) -> basic_runtime<char_t<S>> {
+-  return {{s}};
+-}
+-#endif
+-
+-FMT_API auto vformat(string_view fmt, format_args args) -> std::string;
+-
+-/**
+-  \rst
+-  Formats ``args`` according to specifications in ``fmt`` and returns the result
+-  as a string.
+-
+-  **Example**::
+-
+-    #include <fmt/core.h>
+-    std::string message = fmt::format("The answer is {}.", 42);
+-  \endrst
+-*/
+-template <typename... T>
+-FMT_NODISCARD FMT_INLINE auto format(format_string<T...> fmt, T&&... args)
+-    -> std::string {
+-  return vformat(fmt, fmt::make_format_args(args...));
+-}
+-
+-/** Formats a string and writes the output to ``out``. */
+-template <typename OutputIt,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value)>
+-auto vformat_to(OutputIt out, string_view fmt, format_args args) -> OutputIt {
+-  using detail::get_buffer;
+-  auto&& buf = get_buffer<char>(out);
+-  detail::vformat_to(buf, fmt, args, {});
+-  return detail::get_iterator(buf);
+-}
+-
+-/**
+- \rst
+- Formats ``args`` according to specifications in ``fmt``, writes the result to
+- the output iterator ``out`` and returns the iterator past the end of the output
+- range. `format_to` does not append a terminating null character.
+-
+- **Example**::
+-
+-   auto out = std::vector<char>();
+-   fmt::format_to(std::back_inserter(out), "{}", 42);
+- \endrst
+- */
+-template <typename OutputIt, typename... T,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value)>
+-FMT_INLINE auto format_to(OutputIt out, format_string<T...> fmt, T&&... args)
+-    -> OutputIt {
+-  return vformat_to(out, fmt, fmt::make_format_args(args...));
+-}
+-
+-template <typename OutputIt> struct format_to_n_result {
+-  /** Iterator past the end of the output range. */
+-  OutputIt out;
+-  /** Total (not truncated) output size. */
+-  size_t size;
+-};
+-
+-template <typename OutputIt, typename... T,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value)>
+-auto vformat_to_n(OutputIt out, size_t n, string_view fmt, format_args args)
+-    -> format_to_n_result<OutputIt> {
+-  using traits = detail::fixed_buffer_traits;
+-  auto buf = detail::iterator_buffer<OutputIt, char, traits>(out, n);
+-  detail::vformat_to(buf, fmt, args, {});
+-  return {buf.out(), buf.count()};
+-}
+-
+-/**
+-  \rst
+-  Formats ``args`` according to specifications in ``fmt``, writes up to ``n``
+-  characters of the result to the output iterator ``out`` and returns the total
+-  (not truncated) output size and the iterator past the end of the output range.
+-  `format_to_n` does not append a terminating null character.
+-  \endrst
+- */
+-template <typename OutputIt, typename... T,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value)>
+-FMT_INLINE auto format_to_n(OutputIt out, size_t n, format_string<T...> fmt,
+-                            T&&... args) -> format_to_n_result<OutputIt> {
+-  return vformat_to_n(out, n, fmt, fmt::make_format_args(args...));
+-}
+-
+-/** Returns the number of chars in the output of ``format(fmt, args...)``. */
+-template <typename... T>
+-FMT_NODISCARD FMT_INLINE auto formatted_size(format_string<T...> fmt,
+-                                             T&&... args) -> size_t {
+-  auto buf = detail::counting_buffer<>();
+-  detail::vformat_to(buf, string_view(fmt), fmt::make_format_args(args...), {});
+-  return buf.count();
+-}
+-
+-FMT_API void vprint(string_view fmt, format_args args);
+-FMT_API void vprint(std::FILE* f, string_view fmt, format_args args);
+-
+-/**
+-  \rst
+-  Formats ``args`` according to specifications in ``fmt`` and writes the output
+-  to ``stdout``.
+-
+-  **Example**::
+-
+-    fmt::print("Elapsed time: {0:.2f} seconds", 1.23);
+-  \endrst
+- */
+-template <typename... T>
+-FMT_INLINE void print(format_string<T...> fmt, T&&... args) {
+-  const auto& vargs = fmt::make_format_args(args...);
+-  return detail::is_utf8() ? vprint(fmt, vargs)
+-                           : detail::vprint_mojibake(stdout, fmt, vargs);
+-}
+-
+-/**
+-  \rst
+-  Formats ``args`` according to specifications in ``fmt`` and writes the
+-  output to the file ``f``.
+-
+-  **Example**::
+-
+-    fmt::print(stderr, "Don't {}!", "panic");
+-  \endrst
+- */
+-template <typename... T>
+-FMT_INLINE void print(std::FILE* f, format_string<T...> fmt, T&&... args) {
+-  const auto& vargs = fmt::make_format_args(args...);
+-  return detail::is_utf8() ? vprint(f, fmt, vargs)
+-                           : detail::vprint_mojibake(f, fmt, vargs);
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_GCC_PRAGMA("GCC pop_options")
+-FMT_END_NAMESPACE
+-
+-#ifdef FMT_HEADER_ONLY
+-#  include "format.h"
+-#endif
+-#endif  // FMT_CORE_H_
+diff --git a/include/dpp/fmt/format-inl.h b/include/dpp/fmt/format-inl.h
+deleted file mode 100644
+index 5902bf1..0000000
+--- a/include/dpp/fmt/format-inl.h
++++ /dev/null
+@@ -1,2643 +0,0 @@
+-// Formatting library for C++ - implementation
+-//
+-// Copyright (c) 2012 - 2016, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_FORMAT_INL_H_
+-#define FMT_FORMAT_INL_H_
+-
+-#include <algorithm>
+-#include <cctype>
+-#include <cerrno>  // errno
+-#include <climits>
+-#include <cmath>
+-#include <cstdarg>
+-#include <cstring>  // std::memmove
+-#include <cwchar>
+-#include <exception>
+-
+-#ifndef FMT_STATIC_THOUSANDS_SEPARATOR
+-#  include <locale>
+-#endif
+-
+-#ifdef _WIN32
+-#  include <io.h>  // _isatty
+-#endif
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-
+-FMT_FUNC void assert_fail(const char* file, int line, const char* message) {
+-  // Use unchecked std::fprintf to avoid triggering another assertion when
+-  // writing to stderr fails
+-  std::fprintf(stderr, "%s:%d: assertion failed: %s", file, line, message);
+-  // Chosen instead of std::abort to satisfy Clang in CUDA mode during device
+-  // code pass.
+-  std::terminate();
+-}
+-
+-FMT_FUNC void throw_format_error(const char* message) {
+-  FMT_THROW(format_error(message));
+-}
+-
+-#ifndef _MSC_VER
+-#  define FMT_SNPRINTF snprintf
+-#else  // _MSC_VER
+-inline int fmt_snprintf(char* buffer, size_t size, const char* format, ...) {
+-  va_list args;
+-  va_start(args, format);
+-  int result = vsnprintf_s(buffer, size, _TRUNCATE, format, args);
+-  va_end(args);
+-  return result;
+-}
+-#  define FMT_SNPRINTF fmt_snprintf
+-#endif  // _MSC_VER
+-
+-FMT_FUNC void format_error_code(detail::buffer<char>& out, int error_code,
+-                                string_view message) FMT_NOEXCEPT {
+-  // Report error code making sure that the output fits into
+-  // inline_buffer_size to avoid dynamic memory allocation and potential
+-  // bad_alloc.
+-  out.try_resize(0);
+-  static const char SEP[] = ": ";
+-  static const char ERROR_STR[] = "error ";
+-  // Subtract 2 to account for terminating null characters in SEP and ERROR_STR.
+-  size_t error_code_size = sizeof(SEP) + sizeof(ERROR_STR) - 2;
+-  auto abs_value = static_cast<uint32_or_64_or_128_t<int>>(error_code);
+-  if (detail::is_negative(error_code)) {
+-    abs_value = 0 - abs_value;
+-    ++error_code_size;
+-  }
+-  error_code_size += detail::to_unsigned(detail::count_digits(abs_value));
+-  auto it = buffer_appender<char>(out);
+-  if (message.size() <= inline_buffer_size - error_code_size)
+-    format_to(it, FMT_STRING("{}{}"), message, SEP);
+-  format_to(it, FMT_STRING("{}{}"), ERROR_STR, error_code);
+-  FMT_ASSERT(out.size() <= inline_buffer_size, "");
+-}
+-
+-FMT_FUNC void report_error(format_func func, int error_code,
+-                           const char* message) FMT_NOEXCEPT {
+-  memory_buffer full_message;
+-  func(full_message, error_code, message);
+-  // Don't use fwrite_fully because the latter may throw.
+-  if (std::fwrite(full_message.data(), full_message.size(), 1, stderr) > 0)
+-    std::fputc('\n', stderr);
+-}
+-
+-// A wrapper around fwrite that throws on error.
+-inline void fwrite_fully(const void* ptr, size_t size, size_t count,
+-                         FILE* stream) {
+-  size_t written = std::fwrite(ptr, size, count, stream);
+-  if (written < count) FMT_THROW(system_error(errno, "cannot write to file"));
+-}
+-
+-#ifndef FMT_STATIC_THOUSANDS_SEPARATOR
+-template <typename Locale>
+-locale_ref::locale_ref(const Locale& loc) : locale_(&loc) {
+-  static_assert(std::is_same<Locale, std::locale>::value, "");
+-}
+-
+-template <typename Locale> Locale locale_ref::get() const {
+-  static_assert(std::is_same<Locale, std::locale>::value, "");
+-  return locale_ ? *static_cast<const std::locale*>(locale_) : std::locale();
+-}
+-
+-template <typename Char>
+-FMT_FUNC auto thousands_sep_impl(locale_ref loc) -> thousands_sep_result<Char> {
+-  auto& facet = std::use_facet<std::numpunct<Char>>(loc.get<std::locale>());
+-  auto grouping = facet.grouping();
+-  auto thousands_sep = grouping.empty() ? Char() : facet.thousands_sep();
+-  return {std::move(grouping), thousands_sep};
+-}
+-template <typename Char> FMT_FUNC Char decimal_point_impl(locale_ref loc) {
+-  return std::use_facet<std::numpunct<Char>>(loc.get<std::locale>())
+-      .decimal_point();
+-}
+-#else
+-template <typename Char>
+-FMT_FUNC auto thousands_sep_impl(locale_ref) -> thousands_sep_result<Char> {
+-  return {"\03", FMT_STATIC_THOUSANDS_SEPARATOR};
+-}
+-template <typename Char> FMT_FUNC Char decimal_point_impl(locale_ref) {
+-  return '.';
+-}
+-#endif
+-}  // namespace detail
+-
+-#if !FMT_MSC_VER
+-FMT_API FMT_FUNC format_error::~format_error() FMT_NOEXCEPT = default;
+-#endif
+-
+-FMT_FUNC std::system_error vsystem_error(int error_code, string_view format_str,
+-                                         format_args args) {
+-  auto ec = std::error_code(error_code, std::generic_category());
+-  return std::system_error(ec, vformat(format_str, args));
+-}
+-
+-namespace detail {
+-
+-template <> FMT_FUNC int count_digits<4>(detail::fallback_uintptr n) {
+-  // fallback_uintptr is always stored in little endian.
+-  int i = static_cast<int>(sizeof(void*)) - 1;
+-  while (i > 0 && n.value[i] == 0) --i;
+-  auto char_digits = std::numeric_limits<unsigned char>::digits / 4;
+-  return i >= 0 ? i * char_digits + count_digits<4, unsigned>(n.value[i]) : 1;
+-}
+-
+-// log10(2) = 0x0.4d104d427de7fbcc...
+-static constexpr uint64_t log10_2_significand = 0x4d104d427de7fbcc;
+-
+-template <typename T = void> struct basic_impl_data {
+-  // Normalized 64-bit significands of pow(10, k), for k = -348, -340, ..., 340.
+-  // These are generated by support/compute-powers.py.
+-  static constexpr uint64_t pow10_significands[87] = {
+-      0xfa8fd5a0081c0288, 0xbaaee17fa23ebf76, 0x8b16fb203055ac76,
+-      0xcf42894a5dce35ea, 0x9a6bb0aa55653b2d, 0xe61acf033d1a45df,
+-      0xab70fe17c79ac6ca, 0xff77b1fcbebcdc4f, 0xbe5691ef416bd60c,
+-      0x8dd01fad907ffc3c, 0xd3515c2831559a83, 0x9d71ac8fada6c9b5,
+-      0xea9c227723ee8bcb, 0xaecc49914078536d, 0x823c12795db6ce57,
+-      0xc21094364dfb5637, 0x9096ea6f3848984f, 0xd77485cb25823ac7,
+-      0xa086cfcd97bf97f4, 0xef340a98172aace5, 0xb23867fb2a35b28e,
+-      0x84c8d4dfd2c63f3b, 0xc5dd44271ad3cdba, 0x936b9fcebb25c996,
+-      0xdbac6c247d62a584, 0xa3ab66580d5fdaf6, 0xf3e2f893dec3f126,
+-      0xb5b5ada8aaff80b8, 0x87625f056c7c4a8b, 0xc9bcff6034c13053,
+-      0x964e858c91ba2655, 0xdff9772470297ebd, 0xa6dfbd9fb8e5b88f,
+-      0xf8a95fcf88747d94, 0xb94470938fa89bcf, 0x8a08f0f8bf0f156b,
+-      0xcdb02555653131b6, 0x993fe2c6d07b7fac, 0xe45c10c42a2b3b06,
+-      0xaa242499697392d3, 0xfd87b5f28300ca0e, 0xbce5086492111aeb,
+-      0x8cbccc096f5088cc, 0xd1b71758e219652c, 0x9c40000000000000,
+-      0xe8d4a51000000000, 0xad78ebc5ac620000, 0x813f3978f8940984,
+-      0xc097ce7bc90715b3, 0x8f7e32ce7bea5c70, 0xd5d238a4abe98068,
+-      0x9f4f2726179a2245, 0xed63a231d4c4fb27, 0xb0de65388cc8ada8,
+-      0x83c7088e1aab65db, 0xc45d1df942711d9a, 0x924d692ca61be758,
+-      0xda01ee641a708dea, 0xa26da3999aef774a, 0xf209787bb47d6b85,
+-      0xb454e4a179dd1877, 0x865b86925b9bc5c2, 0xc83553c5c8965d3d,
+-      0x952ab45cfa97a0b3, 0xde469fbd99a05fe3, 0xa59bc234db398c25,
+-      0xf6c69a72a3989f5c, 0xb7dcbf5354e9bece, 0x88fcf317f22241e2,
+-      0xcc20ce9bd35c78a5, 0x98165af37b2153df, 0xe2a0b5dc971f303a,
+-      0xa8d9d1535ce3b396, 0xfb9b7cd9a4a7443c, 0xbb764c4ca7a44410,
+-      0x8bab8eefb6409c1a, 0xd01fef10a657842c, 0x9b10a4e5e9913129,
+-      0xe7109bfba19c0c9d, 0xac2820d9623bf429, 0x80444b5e7aa7cf85,
+-      0xbf21e44003acdd2d, 0x8e679c2f5e44ff8f, 0xd433179d9c8cb841,
+-      0x9e19db92b4e31ba9, 0xeb96bf6ebadf77d9, 0xaf87023b9bf0ee6b,
+-  };
+-
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-#  pragma GCC diagnostic push
+-#  pragma GCC diagnostic ignored "-Wnarrowing"
+-#endif
+-  // Binary exponents of pow(10, k), for k = -348, -340, ..., 340, corresponding
+-  // to significands above.
+-  static constexpr int16_t pow10_exponents[87] = {
+-      -1220, -1193, -1166, -1140, -1113, -1087, -1060, -1034, -1007, -980, -954,
+-      -927,  -901,  -874,  -847,  -821,  -794,  -768,  -741,  -715,  -688, -661,
+-      -635,  -608,  -582,  -555,  -529,  -502,  -475,  -449,  -422,  -396, -369,
+-      -343,  -316,  -289,  -263,  -236,  -210,  -183,  -157,  -130,  -103, -77,
+-      -50,   -24,   3,     30,    56,    83,    109,   136,   162,   189,  216,
+-      242,   269,   295,   322,   348,   375,   402,   428,   455,   481,  508,
+-      534,   561,   588,   614,   641,   667,   694,   720,   747,   774,  800,
+-      827,   853,   880,   907,   933,   960,   986,   1013,  1039,  1066};
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-#  pragma GCC diagnostic pop
+-#endif
+-
+-  static constexpr uint64_t power_of_10_64[20] = {
+-      1, FMT_POWERS_OF_10(1ULL), FMT_POWERS_OF_10(1000000000ULL),
+-      10000000000000000000ULL};
+-};
+-
+-// This is a struct rather than an alias to avoid shadowing warnings in gcc.
+-struct impl_data : basic_impl_data<> {};
+-
+-#if __cplusplus < 201703L
+-template <typename T>
+-constexpr uint64_t basic_impl_data<T>::pow10_significands[];
+-template <typename T> constexpr int16_t basic_impl_data<T>::pow10_exponents[];
+-template <typename T> constexpr uint64_t basic_impl_data<T>::power_of_10_64[];
+-#endif
+-
+-template <typename T> struct bits {
+-  static FMT_CONSTEXPR_DECL const int value =
+-      static_cast<int>(sizeof(T) * std::numeric_limits<unsigned char>::digits);
+-};
+-
+-// Returns the number of significand bits in Float excluding the implicit bit.
+-template <typename Float> constexpr int num_significand_bits() {
+-  // Subtract 1 to account for an implicit most significant bit in the
+-  // normalized form.
+-  return std::numeric_limits<Float>::digits - 1;
+-}
+-
+-// A floating-point number f * pow(2, e).
+-struct fp {
+-  uint64_t f;
+-  int e;
+-
+-  static constexpr const int num_significand_bits = bits<decltype(f)>::value;
+-
+-  constexpr fp() : f(0), e(0) {}
+-  constexpr fp(uint64_t f_val, int e_val) : f(f_val), e(e_val) {}
+-
+-  // Constructs fp from an IEEE754 floating-point number. It is a template to
+-  // prevent compile errors on systems where n is not IEEE754.
+-  template <typename Float> explicit FMT_CONSTEXPR fp(Float n) { assign(n); }
+-
+-  template <typename Float>
+-  using is_supported = bool_constant<sizeof(Float) == sizeof(uint64_t) ||
+-                                     sizeof(Float) == sizeof(uint32_t)>;
+-
+-  // Assigns d to this and return true iff predecessor is closer than successor.
+-  template <typename Float, FMT_ENABLE_IF(is_supported<Float>::value)>
+-  FMT_CONSTEXPR bool assign(Float n) {
+-    // Assume float is in the format [sign][exponent][significand].
+-    const int num_float_significand_bits =
+-        detail::num_significand_bits<Float>();
+-    const uint64_t implicit_bit = 1ULL << num_float_significand_bits;
+-    const uint64_t significand_mask = implicit_bit - 1;
+-    constexpr bool is_double = sizeof(Float) == sizeof(uint64_t);
+-    auto u = bit_cast<conditional_t<is_double, uint64_t, uint32_t>>(n);
+-    f = u & significand_mask;
+-    const uint64_t exponent_mask = (~0ULL >> 1) & ~significand_mask;
+-    int biased_e =
+-        static_cast<int>((u & exponent_mask) >> num_float_significand_bits);
+-    // The predecessor is closer if n is a normalized power of 2 (f == 0) other
+-    // than the smallest normalized number (biased_e > 1).
+-    bool is_predecessor_closer = f == 0 && biased_e > 1;
+-    if (biased_e != 0)
+-      f += implicit_bit;
+-    else
+-      biased_e = 1;  // Subnormals use biased exponent 1 (min exponent).
+-    const int exponent_bias = std::numeric_limits<Float>::max_exponent - 1;
+-    e = biased_e - exponent_bias - num_float_significand_bits;
+-    return is_predecessor_closer;
+-  }
+-
+-  template <typename Float, FMT_ENABLE_IF(!is_supported<Float>::value)>
+-  bool assign(Float) {
+-    FMT_ASSERT(false, "");
+-    return false;
+-  }
+-};
+-
+-// Normalizes the value converted from double and multiplied by (1 << SHIFT).
+-template <int SHIFT = 0> FMT_CONSTEXPR fp normalize(fp value) {
+-  // Handle subnormals.
+-  const uint64_t implicit_bit = 1ULL << num_significand_bits<double>();
+-  const auto shifted_implicit_bit = implicit_bit << SHIFT;
+-  while ((value.f & shifted_implicit_bit) == 0) {
+-    value.f <<= 1;
+-    --value.e;
+-  }
+-  // Subtract 1 to account for hidden bit.
+-  const auto offset =
+-      fp::num_significand_bits - num_significand_bits<double>() - SHIFT - 1;
+-  value.f <<= offset;
+-  value.e -= offset;
+-  return value;
+-}
+-
+-inline bool operator==(fp x, fp y) { return x.f == y.f && x.e == y.e; }
+-
+-// Computes lhs * rhs / pow(2, 64) rounded to nearest with half-up tie breaking.
+-FMT_CONSTEXPR inline uint64_t multiply(uint64_t lhs, uint64_t rhs) {
+-#if FMT_USE_INT128
+-  auto product = static_cast<__uint128_t>(lhs) * rhs;
+-  auto f = static_cast<uint64_t>(product >> 64);
+-  return (static_cast<uint64_t>(product) & (1ULL << 63)) != 0 ? f + 1 : f;
+-#else
+-  // Multiply 32-bit parts of significands.
+-  uint64_t mask = (1ULL << 32) - 1;
+-  uint64_t a = lhs >> 32, b = lhs & mask;
+-  uint64_t c = rhs >> 32, d = rhs & mask;
+-  uint64_t ac = a * c, bc = b * c, ad = a * d, bd = b * d;
+-  // Compute mid 64-bit of result and round.
+-  uint64_t mid = (bd >> 32) + (ad & mask) + (bc & mask) + (1U << 31);
+-  return ac + (ad >> 32) + (bc >> 32) + (mid >> 32);
+-#endif
+-}
+-
+-FMT_CONSTEXPR inline fp operator*(fp x, fp y) {
+-  return {multiply(x.f, y.f), x.e + y.e + 64};
+-}
+-
+-// Returns a cached power of 10 `c_k = c_k.f * pow(2, c_k.e)` such that its
+-// (binary) exponent satisfies `min_exponent <= c_k.e <= min_exponent + 28`.
+-FMT_CONSTEXPR inline fp get_cached_power(int min_exponent,
+-                                         int& pow10_exponent) {
+-  const int shift = 32;
+-  const auto significand = static_cast<int64_t>(log10_2_significand);
+-  int index = static_cast<int>(
+-      ((min_exponent + fp::num_significand_bits - 1) * (significand >> shift) +
+-       ((int64_t(1) << shift) - 1))  // ceil
+-      >> 32                          // arithmetic shift
+-  );
+-  // Decimal exponent of the first (smallest) cached power of 10.
+-  const int first_dec_exp = -348;
+-  // Difference between 2 consecutive decimal exponents in cached powers of 10.
+-  const int dec_exp_step = 8;
+-  index = (index - first_dec_exp - 1) / dec_exp_step + 1;
+-  pow10_exponent = first_dec_exp + index * dec_exp_step;
+-  return {impl_data::pow10_significands[index],
+-          impl_data::pow10_exponents[index]};
+-}
+-
+-// A simple accumulator to hold the sums of terms in bigint::square if uint128_t
+-// is not available.
+-struct accumulator {
+-  uint64_t lower;
+-  uint64_t upper;
+-
+-  constexpr accumulator() : lower(0), upper(0) {}
+-  constexpr explicit operator uint32_t() const {
+-    return static_cast<uint32_t>(lower);
+-  }
+-
+-  FMT_CONSTEXPR void operator+=(uint64_t n) {
+-    lower += n;
+-    if (lower < n) ++upper;
+-  }
+-  FMT_CONSTEXPR void operator>>=(int shift) {
+-    FMT_ASSERT(shift == 32, "");
+-    (void)shift;
+-    lower = (upper << 32) | (lower >> 32);
+-    upper >>= 32;
+-  }
+-};
+-
+-class bigint {
+- private:
+-  // A bigint is stored as an array of bigits (big digits), with bigit at index
+-  // 0 being the least significant one.
+-  using bigit = uint32_t;
+-  using double_bigit = uint64_t;
+-  enum { bigits_capacity = 32 };
+-  basic_memory_buffer<bigit, bigits_capacity> bigits_;
+-  int exp_;
+-
+-  FMT_CONSTEXPR20 bigit operator[](int index) const {
+-    return bigits_[to_unsigned(index)];
+-  }
+-  FMT_CONSTEXPR20 bigit& operator[](int index) {
+-    return bigits_[to_unsigned(index)];
+-  }
+-
+-  static FMT_CONSTEXPR_DECL const int bigit_bits = bits<bigit>::value;
+-
+-  friend struct formatter<bigint>;
+-
+-  FMT_CONSTEXPR20 void subtract_bigits(int index, bigit other, bigit& borrow) {
+-    auto result = static_cast<double_bigit>((*this)[index]) - other - borrow;
+-    (*this)[index] = static_cast<bigit>(result);
+-    borrow = static_cast<bigit>(result >> (bigit_bits * 2 - 1));
+-  }
+-
+-  FMT_CONSTEXPR20 void remove_leading_zeros() {
+-    int num_bigits = static_cast<int>(bigits_.size()) - 1;
+-    while (num_bigits > 0 && (*this)[num_bigits] == 0) --num_bigits;
+-    bigits_.resize(to_unsigned(num_bigits + 1));
+-  }
+-
+-  // Computes *this -= other assuming aligned bigints and *this >= other.
+-  FMT_CONSTEXPR20 void subtract_aligned(const bigint& other) {
+-    FMT_ASSERT(other.exp_ >= exp_, "unaligned bigints");
+-    FMT_ASSERT(compare(*this, other) >= 0, "");
+-    bigit borrow = 0;
+-    int i = other.exp_ - exp_;
+-    for (size_t j = 0, n = other.bigits_.size(); j != n; ++i, ++j)
+-      subtract_bigits(i, other.bigits_[j], borrow);
+-    while (borrow > 0) subtract_bigits(i, 0, borrow);
+-    remove_leading_zeros();
+-  }
+-
+-  FMT_CONSTEXPR20 void multiply(uint32_t value) {
+-    const double_bigit wide_value = value;
+-    bigit carry = 0;
+-    for (size_t i = 0, n = bigits_.size(); i < n; ++i) {
+-      double_bigit result = bigits_[i] * wide_value + carry;
+-      bigits_[i] = static_cast<bigit>(result);
+-      carry = static_cast<bigit>(result >> bigit_bits);
+-    }
+-    if (carry != 0) bigits_.push_back(carry);
+-  }
+-
+-  FMT_CONSTEXPR20 void multiply(uint64_t value) {
+-    const bigit mask = ~bigit(0);
+-    const double_bigit lower = value & mask;
+-    const double_bigit upper = value >> bigit_bits;
+-    double_bigit carry = 0;
+-    for (size_t i = 0, n = bigits_.size(); i < n; ++i) {
+-      double_bigit result = bigits_[i] * lower + (carry & mask);
+-      carry =
+-          bigits_[i] * upper + (result >> bigit_bits) + (carry >> bigit_bits);
+-      bigits_[i] = static_cast<bigit>(result);
+-    }
+-    while (carry != 0) {
+-      bigits_.push_back(carry & mask);
+-      carry >>= bigit_bits;
+-    }
+-  }
+-
+- public:
+-  FMT_CONSTEXPR20 bigint() : exp_(0) {}
+-  explicit bigint(uint64_t n) { assign(n); }
+-  FMT_CONSTEXPR20 ~bigint() {
+-    FMT_ASSERT(bigits_.capacity() <= bigits_capacity, "");
+-  }
+-
+-  bigint(const bigint&) = delete;
+-  void operator=(const bigint&) = delete;
+-
+-  FMT_CONSTEXPR20 void assign(const bigint& other) {
+-    auto size = other.bigits_.size();
+-    bigits_.resize(size);
+-    auto data = other.bigits_.data();
+-    std::copy(data, data + size, make_checked(bigits_.data(), size));
+-    exp_ = other.exp_;
+-  }
+-
+-  FMT_CONSTEXPR20 void assign(uint64_t n) {
+-    size_t num_bigits = 0;
+-    do {
+-      bigits_[num_bigits++] = n & ~bigit(0);
+-      n >>= bigit_bits;
+-    } while (n != 0);
+-    bigits_.resize(num_bigits);
+-    exp_ = 0;
+-  }
+-
+-  FMT_CONSTEXPR20 int num_bigits() const {
+-    return static_cast<int>(bigits_.size()) + exp_;
+-  }
+-
+-  FMT_NOINLINE FMT_CONSTEXPR20 bigint& operator<<=(int shift) {
+-    FMT_ASSERT(shift >= 0, "");
+-    exp_ += shift / bigit_bits;
+-    shift %= bigit_bits;
+-    if (shift == 0) return *this;
+-    bigit carry = 0;
+-    for (size_t i = 0, n = bigits_.size(); i < n; ++i) {
+-      bigit c = bigits_[i] >> (bigit_bits - shift);
+-      bigits_[i] = (bigits_[i] << shift) + carry;
+-      carry = c;
+-    }
+-    if (carry != 0) bigits_.push_back(carry);
+-    return *this;
+-  }
+-
+-  template <typename Int> FMT_CONSTEXPR20 bigint& operator*=(Int value) {
+-    FMT_ASSERT(value > 0, "");
+-    multiply(uint32_or_64_or_128_t<Int>(value));
+-    return *this;
+-  }
+-
+-  friend FMT_CONSTEXPR20 int compare(const bigint& lhs, const bigint& rhs) {
+-    int num_lhs_bigits = lhs.num_bigits(), num_rhs_bigits = rhs.num_bigits();
+-    if (num_lhs_bigits != num_rhs_bigits)
+-      return num_lhs_bigits > num_rhs_bigits ? 1 : -1;
+-    int i = static_cast<int>(lhs.bigits_.size()) - 1;
+-    int j = static_cast<int>(rhs.bigits_.size()) - 1;
+-    int end = i - j;
+-    if (end < 0) end = 0;
+-    for (; i >= end; --i, --j) {
+-      bigit lhs_bigit = lhs[i], rhs_bigit = rhs[j];
+-      if (lhs_bigit != rhs_bigit) return lhs_bigit > rhs_bigit ? 1 : -1;
+-    }
+-    if (i != j) return i > j ? 1 : -1;
+-    return 0;
+-  }
+-
+-  // Returns compare(lhs1 + lhs2, rhs).
+-  friend FMT_CONSTEXPR20 int add_compare(const bigint& lhs1, const bigint& lhs2,
+-                                         const bigint& rhs) {
+-    int max_lhs_bigits = (std::max)(lhs1.num_bigits(), lhs2.num_bigits());
+-    int num_rhs_bigits = rhs.num_bigits();
+-    if (max_lhs_bigits + 1 < num_rhs_bigits) return -1;
+-    if (max_lhs_bigits > num_rhs_bigits) return 1;
+-    auto get_bigit = [](const bigint& n, int i) -> bigit {
+-      return i >= n.exp_ && i < n.num_bigits() ? n[i - n.exp_] : 0;
+-    };
+-    double_bigit borrow = 0;
+-    int min_exp = (std::min)((std::min)(lhs1.exp_, lhs2.exp_), rhs.exp_);
+-    for (int i = num_rhs_bigits - 1; i >= min_exp; --i) {
+-      double_bigit sum =
+-          static_cast<double_bigit>(get_bigit(lhs1, i)) + get_bigit(lhs2, i);
+-      bigit rhs_bigit = get_bigit(rhs, i);
+-      if (sum > rhs_bigit + borrow) return 1;
+-      borrow = rhs_bigit + borrow - sum;
+-      if (borrow > 1) return -1;
+-      borrow <<= bigit_bits;
+-    }
+-    return borrow != 0 ? -1 : 0;
+-  }
+-
+-  // Assigns pow(10, exp) to this bigint.
+-  FMT_CONSTEXPR20 void assign_pow10(int exp) {
+-    FMT_ASSERT(exp >= 0, "");
+-    if (exp == 0) return assign(1);
+-    // Find the top bit.
+-    int bitmask = 1;
+-    while (exp >= bitmask) bitmask <<= 1;
+-    bitmask >>= 1;
+-    // pow(10, exp) = pow(5, exp) * pow(2, exp). First compute pow(5, exp) by
+-    // repeated squaring and multiplication.
+-    assign(5);
+-    bitmask >>= 1;
+-    while (bitmask != 0) {
+-      square();
+-      if ((exp & bitmask) != 0) *this *= 5;
+-      bitmask >>= 1;
+-    }
+-    *this <<= exp;  // Multiply by pow(2, exp) by shifting.
+-  }
+-
+-  FMT_CONSTEXPR20 void square() {
+-    int num_bigits = static_cast<int>(bigits_.size());
+-    int num_result_bigits = 2 * num_bigits;
+-    basic_memory_buffer<bigit, bigits_capacity> n(std::move(bigits_));
+-    bigits_.resize(to_unsigned(num_result_bigits));
+-    using accumulator_t = conditional_t<FMT_USE_INT128, uint128_t, accumulator>;
+-    auto sum = accumulator_t();
+-    for (int bigit_index = 0; bigit_index < num_bigits; ++bigit_index) {
+-      // Compute bigit at position bigit_index of the result by adding
+-      // cross-product terms n[i] * n[j] such that i + j == bigit_index.
+-      for (int i = 0, j = bigit_index; j >= 0; ++i, --j) {
+-        // Most terms are multiplied twice which can be optimized in the future.
+-        sum += static_cast<double_bigit>(n[i]) * n[j];
+-      }
+-      (*this)[bigit_index] = static_cast<bigit>(sum);
+-      sum >>= bits<bigit>::value;  // Compute the carry.
+-    }
+-    // Do the same for the top half.
+-    for (int bigit_index = num_bigits; bigit_index < num_result_bigits;
+-         ++bigit_index) {
+-      for (int j = num_bigits - 1, i = bigit_index - j; i < num_bigits;)
+-        sum += static_cast<double_bigit>(n[i++]) * n[j--];
+-      (*this)[bigit_index] = static_cast<bigit>(sum);
+-      sum >>= bits<bigit>::value;
+-    }
+-    remove_leading_zeros();
+-    exp_ *= 2;
+-  }
+-
+-  // If this bigint has a bigger exponent than other, adds trailing zero to make
+-  // exponents equal. This simplifies some operations such as subtraction.
+-  FMT_CONSTEXPR20 void align(const bigint& other) {
+-    int exp_difference = exp_ - other.exp_;
+-    if (exp_difference <= 0) return;
+-    int num_bigits = static_cast<int>(bigits_.size());
+-    bigits_.resize(to_unsigned(num_bigits + exp_difference));
+-    for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j)
+-      bigits_[j] = bigits_[i];
+-    std::uninitialized_fill_n(bigits_.data(), exp_difference, 0);
+-    exp_ -= exp_difference;
+-  }
+-
+-  // Divides this bignum by divisor, assigning the remainder to this and
+-  // returning the quotient.
+-  FMT_CONSTEXPR20 int divmod_assign(const bigint& divisor) {
+-    FMT_ASSERT(this != &divisor, "");
+-    if (compare(*this, divisor) < 0) return 0;
+-    FMT_ASSERT(divisor.bigits_[divisor.bigits_.size() - 1u] != 0, "");
+-    align(divisor);
+-    int quotient = 0;
+-    do {
+-      subtract_aligned(divisor);
+-      ++quotient;
+-    } while (compare(*this, divisor) >= 0);
+-    return quotient;
+-  }
+-};
+-
+-enum class round_direction { unknown, up, down };
+-
+-// Given the divisor (normally a power of 10), the remainder = v % divisor for
+-// some number v and the error, returns whether v should be rounded up, down, or
+-// whether the rounding direction can't be determined due to error.
+-// error should be less than divisor / 2.
+-FMT_CONSTEXPR inline round_direction get_round_direction(uint64_t divisor,
+-                                                         uint64_t remainder,
+-                                                         uint64_t error) {
+-  FMT_ASSERT(remainder < divisor, "");  // divisor - remainder won't overflow.
+-  FMT_ASSERT(error < divisor, "");      // divisor - error won't overflow.
+-  FMT_ASSERT(error < divisor - error, "");  // error * 2 won't overflow.
+-  // Round down if (remainder + error) * 2 <= divisor.
+-  if (remainder <= divisor - remainder && error * 2 <= divisor - remainder * 2)
+-    return round_direction::down;
+-  // Round up if (remainder - error) * 2 >= divisor.
+-  if (remainder >= error &&
+-      remainder - error >= divisor - (remainder - error)) {
+-    return round_direction::up;
+-  }
+-  return round_direction::unknown;
+-}
+-
+-namespace digits {
+-enum result {
+-  more,  // Generate more digits.
+-  done,  // Done generating digits.
+-  error  // Digit generation cancelled due to an error.
+-};
+-}
+-
+-struct gen_digits_handler {
+-  char* buf;
+-  int size;
+-  int precision;
+-  int exp10;
+-  bool fixed;
+-
+-  FMT_CONSTEXPR digits::result on_digit(char digit, uint64_t divisor,
+-                                        uint64_t remainder, uint64_t error,
+-                                        bool integral) {
+-    FMT_ASSERT(remainder < divisor, "");
+-    buf[size++] = digit;
+-    if (!integral && error >= remainder) return digits::error;
+-    if (size < precision) return digits::more;
+-    if (!integral) {
+-      // Check if error * 2 < divisor with overflow prevention.
+-      // The check is not needed for the integral part because error = 1
+-      // and divisor > (1 << 32) there.
+-      if (error >= divisor || error >= divisor - error) return digits::error;
+-    } else {
+-      FMT_ASSERT(error == 1 && divisor > 2, "");
+-    }
+-    auto dir = get_round_direction(divisor, remainder, error);
+-    if (dir != round_direction::up)
+-      return dir == round_direction::down ? digits::done : digits::error;
+-    ++buf[size - 1];
+-    for (int i = size - 1; i > 0 && buf[i] > '9'; --i) {
+-      buf[i] = '0';
+-      ++buf[i - 1];
+-    }
+-    if (buf[0] > '9') {
+-      buf[0] = '1';
+-      if (fixed)
+-        buf[size++] = '0';
+-      else
+-        ++exp10;
+-    }
+-    return digits::done;
+-  }
+-};
+-
+-// Generates output using the Grisu digit-gen algorithm.
+-// error: the size of the region (lower, upper) outside of which numbers
+-// definitely do not round to value (Delta in Grisu3).
+-FMT_INLINE FMT_CONSTEXPR20 digits::result grisu_gen_digits(
+-    fp value, uint64_t error, int& exp, gen_digits_handler& handler) {
+-  const fp one(1ULL << -value.e, value.e);
+-  // The integral part of scaled value (p1 in Grisu) = value / one. It cannot be
+-  // zero because it contains a product of two 64-bit numbers with MSB set (due
+-  // to normalization) - 1, shifted right by at most 60 bits.
+-  auto integral = static_cast<uint32_t>(value.f >> -one.e);
+-  FMT_ASSERT(integral != 0, "");
+-  FMT_ASSERT(integral == value.f >> -one.e, "");
+-  // The fractional part of scaled value (p2 in Grisu) c = value % one.
+-  uint64_t fractional = value.f & (one.f - 1);
+-  exp = count_digits(integral);  // kappa in Grisu.
+-  // Non-fixed formats require at least one digit and no precision adjustment.
+-  if (handler.fixed) {
+-    // Adjust fixed precision by exponent because it is relative to decimal
+-    // point.
+-    int precision_offset = exp + handler.exp10;
+-    if (precision_offset > 0 &&
+-        handler.precision > max_value<int>() - precision_offset) {
+-      FMT_THROW(format_error("number is too big"));
+-    }
+-    handler.precision += precision_offset;
+-    // Check if precision is satisfied just by leading zeros, e.g.
+-    // format("{:.2f}", 0.001) gives "0.00" without generating any digits.
+-    if (handler.precision <= 0) {
+-      if (handler.precision < 0) return digits::done;
+-      // Divide by 10 to prevent overflow.
+-      uint64_t divisor = impl_data::power_of_10_64[exp - 1] << -one.e;
+-      auto dir = get_round_direction(divisor, value.f / 10, error * 10);
+-      if (dir == round_direction::unknown) return digits::error;
+-      handler.buf[handler.size++] = dir == round_direction::up ? '1' : '0';
+-      return digits::done;
+-    }
+-  }
+-  // Generate digits for the integral part. This can produce up to 10 digits.
+-  do {
+-    uint32_t digit = 0;
+-    auto divmod_integral = [&](uint32_t divisor) {
+-      digit = integral / divisor;
+-      integral %= divisor;
+-    };
+-    // This optimization by Milo Yip reduces the number of integer divisions by
+-    // one per iteration.
+-    switch (exp) {
+-    case 10:
+-      divmod_integral(1000000000);
+-      break;
+-    case 9:
+-      divmod_integral(100000000);
+-      break;
+-    case 8:
+-      divmod_integral(10000000);
+-      break;
+-    case 7:
+-      divmod_integral(1000000);
+-      break;
+-    case 6:
+-      divmod_integral(100000);
+-      break;
+-    case 5:
+-      divmod_integral(10000);
+-      break;
+-    case 4:
+-      divmod_integral(1000);
+-      break;
+-    case 3:
+-      divmod_integral(100);
+-      break;
+-    case 2:
+-      divmod_integral(10);
+-      break;
+-    case 1:
+-      digit = integral;
+-      integral = 0;
+-      break;
+-    default:
+-      FMT_ASSERT(false, "invalid number of digits");
+-    }
+-    --exp;
+-    auto remainder = (static_cast<uint64_t>(integral) << -one.e) + fractional;
+-    auto result = handler.on_digit(static_cast<char>('0' + digit),
+-                                   impl_data::power_of_10_64[exp] << -one.e,
+-                                   remainder, error, true);
+-    if (result != digits::more) return result;
+-  } while (exp > 0);
+-  // Generate digits for the fractional part.
+-  for (;;) {
+-    fractional *= 10;
+-    error *= 10;
+-    char digit = static_cast<char>('0' + (fractional >> -one.e));
+-    fractional &= one.f - 1;
+-    --exp;
+-    auto result = handler.on_digit(digit, one.f, fractional, error, false);
+-    if (result != digits::more) return result;
+-  }
+-}
+-
+-// A 128-bit integer type used internally,
+-struct uint128_wrapper {
+-  uint128_wrapper() = default;
+-
+-#if FMT_USE_INT128
+-  uint128_t internal_;
+-
+-  constexpr uint128_wrapper(uint64_t high, uint64_t low) FMT_NOEXCEPT
+-      : internal_{static_cast<uint128_t>(low) |
+-                  (static_cast<uint128_t>(high) << 64)} {}
+-
+-  constexpr uint128_wrapper(uint128_t u) : internal_{u} {}
+-
+-  constexpr uint64_t high() const FMT_NOEXCEPT {
+-    return uint64_t(internal_ >> 64);
+-  }
+-  constexpr uint64_t low() const FMT_NOEXCEPT { return uint64_t(internal_); }
+-
+-  uint128_wrapper& operator+=(uint64_t n) FMT_NOEXCEPT {
+-    internal_ += n;
+-    return *this;
+-  }
+-#else
+-  uint64_t high_;
+-  uint64_t low_;
+-
+-  constexpr uint128_wrapper(uint64_t high, uint64_t low) FMT_NOEXCEPT
+-      : high_{high},
+-        low_{low} {}
+-
+-  constexpr uint64_t high() const FMT_NOEXCEPT { return high_; }
+-  constexpr uint64_t low() const FMT_NOEXCEPT { return low_; }
+-
+-  uint128_wrapper& operator+=(uint64_t n) FMT_NOEXCEPT {
+-#  if defined(_MSC_VER) && defined(_M_X64)
+-    unsigned char carry = _addcarry_u64(0, low_, n, &low_);
+-    _addcarry_u64(carry, high_, 0, &high_);
+-    return *this;
+-#  else
+-    uint64_t sum = low_ + n;
+-    high_ += (sum < low_ ? 1 : 0);
+-    low_ = sum;
+-    return *this;
+-#  endif
+-  }
+-#endif
+-};
+-
+-// Implementation of Dragonbox algorithm: https://github.com/jk-jeon/dragonbox.
+-namespace dragonbox {
+-// Computes 128-bit result of multiplication of two 64-bit unsigned integers.
+-inline uint128_wrapper umul128(uint64_t x, uint64_t y) FMT_NOEXCEPT {
+-#if FMT_USE_INT128
+-  return static_cast<uint128_t>(x) * static_cast<uint128_t>(y);
+-#elif defined(_MSC_VER) && defined(_M_X64)
+-  uint128_wrapper result;
+-  result.low_ = _umul128(x, y, &result.high_);
+-  return result;
+-#else
+-  const uint64_t mask = (uint64_t(1) << 32) - uint64_t(1);
+-
+-  uint64_t a = x >> 32;
+-  uint64_t b = x & mask;
+-  uint64_t c = y >> 32;
+-  uint64_t d = y & mask;
+-
+-  uint64_t ac = a * c;
+-  uint64_t bc = b * c;
+-  uint64_t ad = a * d;
+-  uint64_t bd = b * d;
+-
+-  uint64_t intermediate = (bd >> 32) + (ad & mask) + (bc & mask);
+-
+-  return {ac + (intermediate >> 32) + (ad >> 32) + (bc >> 32),
+-          (intermediate << 32) + (bd & mask)};
+-#endif
+-}
+-
+-// Computes upper 64 bits of multiplication of two 64-bit unsigned integers.
+-inline uint64_t umul128_upper64(uint64_t x, uint64_t y) FMT_NOEXCEPT {
+-#if FMT_USE_INT128
+-  auto p = static_cast<uint128_t>(x) * static_cast<uint128_t>(y);
+-  return static_cast<uint64_t>(p >> 64);
+-#elif defined(_MSC_VER) && defined(_M_X64)
+-  return __umulh(x, y);
+-#else
+-  return umul128(x, y).high();
+-#endif
+-}
+-
+-// Computes upper 64 bits of multiplication of a 64-bit unsigned integer and a
+-// 128-bit unsigned integer.
+-inline uint64_t umul192_upper64(uint64_t x, uint128_wrapper y) FMT_NOEXCEPT {
+-  uint128_wrapper g0 = umul128(x, y.high());
+-  g0 += umul128_upper64(x, y.low());
+-  return g0.high();
+-}
+-
+-// Computes upper 32 bits of multiplication of a 32-bit unsigned integer and a
+-// 64-bit unsigned integer.
+-inline uint32_t umul96_upper32(uint32_t x, uint64_t y) FMT_NOEXCEPT {
+-  return static_cast<uint32_t>(umul128_upper64(x, y));
+-}
+-
+-// Computes middle 64 bits of multiplication of a 64-bit unsigned integer and a
+-// 128-bit unsigned integer.
+-inline uint64_t umul192_middle64(uint64_t x, uint128_wrapper y) FMT_NOEXCEPT {
+-  uint64_t g01 = x * y.high();
+-  uint64_t g10 = umul128_upper64(x, y.low());
+-  return g01 + g10;
+-}
+-
+-// Computes lower 64 bits of multiplication of a 32-bit unsigned integer and a
+-// 64-bit unsigned integer.
+-inline uint64_t umul96_lower64(uint32_t x, uint64_t y) FMT_NOEXCEPT {
+-  return x * y;
+-}
+-
+-// Computes floor(log10(pow(2, e))) for e in [-1700, 1700] using the method from
+-// https://fmt.dev/papers/Grisu-Exact.pdf#page=5, section 3.4.
+-inline int floor_log10_pow2(int e) FMT_NOEXCEPT {
+-  FMT_ASSERT(e <= 1700 && e >= -1700, "too large exponent");
+-  const int shift = 22;
+-  return (e * static_cast<int>(log10_2_significand >> (64 - shift))) >> shift;
+-}
+-
+-// Various fast log computations.
+-inline int floor_log2_pow10(int e) FMT_NOEXCEPT {
+-  FMT_ASSERT(e <= 1233 && e >= -1233, "too large exponent");
+-  const uint64_t log2_10_integer_part = 3;
+-  const uint64_t log2_10_fractional_digits = 0x5269e12f346e2bf9;
+-  const int shift_amount = 19;
+-  return (e * static_cast<int>(
+-                  (log2_10_integer_part << shift_amount) |
+-                  (log2_10_fractional_digits >> (64 - shift_amount)))) >>
+-         shift_amount;
+-}
+-inline int floor_log10_pow2_minus_log10_4_over_3(int e) FMT_NOEXCEPT {
+-  FMT_ASSERT(e <= 1700 && e >= -1700, "too large exponent");
+-  const uint64_t log10_4_over_3_fractional_digits = 0x1ffbfc2bbc780375;
+-  const int shift_amount = 22;
+-  return (e * static_cast<int>(log10_2_significand >> (64 - shift_amount)) -
+-          static_cast<int>(log10_4_over_3_fractional_digits >>
+-                           (64 - shift_amount))) >>
+-         shift_amount;
+-}
+-
+-// Returns true iff x is divisible by pow(2, exp).
+-inline bool divisible_by_power_of_2(uint32_t x, int exp) FMT_NOEXCEPT {
+-  FMT_ASSERT(exp >= 1, "");
+-  FMT_ASSERT(x != 0, "");
+-#ifdef FMT_BUILTIN_CTZ
+-  return FMT_BUILTIN_CTZ(x) >= exp;
+-#else
+-  return exp < num_bits<uint32_t>() && x == ((x >> exp) << exp);
+-#endif
+-}
+-inline bool divisible_by_power_of_2(uint64_t x, int exp) FMT_NOEXCEPT {
+-  FMT_ASSERT(exp >= 1, "");
+-  FMT_ASSERT(x != 0, "");
+-#ifdef FMT_BUILTIN_CTZLL
+-  return FMT_BUILTIN_CTZLL(x) >= exp;
+-#else
+-  return exp < num_bits<uint64_t>() && x == ((x >> exp) << exp);
+-#endif
+-}
+-
+-// Table entry type for divisibility test.
+-template <typename T> struct divtest_table_entry {
+-  T mod_inv;
+-  T max_quotient;
+-};
+-
+-// Returns true iff x is divisible by pow(5, exp).
+-inline bool divisible_by_power_of_5(uint32_t x, int exp) FMT_NOEXCEPT {
+-  FMT_ASSERT(exp <= 10, "too large exponent");
+-  static constexpr const divtest_table_entry<uint32_t> divtest_table[] = {
+-      {0x00000001, 0xffffffff}, {0xcccccccd, 0x33333333},
+-      {0xc28f5c29, 0x0a3d70a3}, {0x26e978d5, 0x020c49ba},
+-      {0x3afb7e91, 0x0068db8b}, {0x0bcbe61d, 0x0014f8b5},
+-      {0x68c26139, 0x000431bd}, {0xae8d46a5, 0x0000d6bf},
+-      {0x22e90e21, 0x00002af3}, {0x3a2e9c6d, 0x00000897},
+-      {0x3ed61f49, 0x000001b7}};
+-  return x * divtest_table[exp].mod_inv <= divtest_table[exp].max_quotient;
+-}
+-inline bool divisible_by_power_of_5(uint64_t x, int exp) FMT_NOEXCEPT {
+-  FMT_ASSERT(exp <= 23, "too large exponent");
+-  static constexpr const divtest_table_entry<uint64_t> divtest_table[] = {
+-      {0x0000000000000001, 0xffffffffffffffff},
+-      {0xcccccccccccccccd, 0x3333333333333333},
+-      {0x8f5c28f5c28f5c29, 0x0a3d70a3d70a3d70},
+-      {0x1cac083126e978d5, 0x020c49ba5e353f7c},
+-      {0xd288ce703afb7e91, 0x0068db8bac710cb2},
+-      {0x5d4e8fb00bcbe61d, 0x0014f8b588e368f0},
+-      {0x790fb65668c26139, 0x000431bde82d7b63},
+-      {0xe5032477ae8d46a5, 0x0000d6bf94d5e57a},
+-      {0xc767074b22e90e21, 0x00002af31dc46118},
+-      {0x8e47ce423a2e9c6d, 0x0000089705f4136b},
+-      {0x4fa7f60d3ed61f49, 0x000001b7cdfd9d7b},
+-      {0x0fee64690c913975, 0x00000057f5ff85e5},
+-      {0x3662e0e1cf503eb1, 0x000000119799812d},
+-      {0xa47a2cf9f6433fbd, 0x0000000384b84d09},
+-      {0x54186f653140a659, 0x00000000b424dc35},
+-      {0x7738164770402145, 0x0000000024075f3d},
+-      {0xe4a4d1417cd9a041, 0x000000000734aca5},
+-      {0xc75429d9e5c5200d, 0x000000000170ef54},
+-      {0xc1773b91fac10669, 0x000000000049c977},
+-      {0x26b172506559ce15, 0x00000000000ec1e4},
+-      {0xd489e3a9addec2d1, 0x000000000002f394},
+-      {0x90e860bb892c8d5d, 0x000000000000971d},
+-      {0x502e79bf1b6f4f79, 0x0000000000001e39},
+-      {0xdcd618596be30fe5, 0x000000000000060b}};
+-  return x * divtest_table[exp].mod_inv <= divtest_table[exp].max_quotient;
+-}
+-
+-// Replaces n by floor(n / pow(5, N)) returning true if and only if n is
+-// divisible by pow(5, N).
+-// Precondition: n <= 2 * pow(5, N + 1).
+-template <int N>
+-bool check_divisibility_and_divide_by_pow5(uint32_t& n) FMT_NOEXCEPT {
+-  static constexpr struct {
+-    uint32_t magic_number;
+-    int bits_for_comparison;
+-    uint32_t threshold;
+-    int shift_amount;
+-  } infos[] = {{0xcccd, 16, 0x3333, 18}, {0xa429, 8, 0x0a, 20}};
+-  constexpr auto info = infos[N - 1];
+-  n *= info.magic_number;
+-  const uint32_t comparison_mask = (1u << info.bits_for_comparison) - 1;
+-  bool result = (n & comparison_mask) <= info.threshold;
+-  n >>= info.shift_amount;
+-  return result;
+-}
+-
+-// Computes floor(n / pow(10, N)) for small n and N.
+-// Precondition: n <= pow(10, N + 1).
+-template <int N> uint32_t small_division_by_pow10(uint32_t n) FMT_NOEXCEPT {
+-  static constexpr struct {
+-    uint32_t magic_number;
+-    int shift_amount;
+-    uint32_t divisor_times_10;
+-  } infos[] = {{0xcccd, 19, 100}, {0xa3d8, 22, 1000}};
+-  constexpr auto info = infos[N - 1];
+-  FMT_ASSERT(n <= info.divisor_times_10, "n is too large");
+-  return n * info.magic_number >> info.shift_amount;
+-}
+-
+-// Computes floor(n / 10^(kappa + 1)) (float)
+-inline uint32_t divide_by_10_to_kappa_plus_1(uint32_t n) FMT_NOEXCEPT {
+-  return n / float_info<float>::big_divisor;
+-}
+-// Computes floor(n / 10^(kappa + 1)) (double)
+-inline uint64_t divide_by_10_to_kappa_plus_1(uint64_t n) FMT_NOEXCEPT {
+-  return umul128_upper64(n, 0x83126e978d4fdf3c) >> 9;
+-}
+-
+-// Various subroutines using pow10 cache
+-template <class T> struct cache_accessor;
+-
+-template <> struct cache_accessor<float> {
+-  using carrier_uint = float_info<float>::carrier_uint;
+-  using cache_entry_type = uint64_t;
+-
+-  static uint64_t get_cached_power(int k) FMT_NOEXCEPT {
+-    FMT_ASSERT(k >= float_info<float>::min_k && k <= float_info<float>::max_k,
+-               "k is out of range");
+-    static constexpr const uint64_t pow10_significands[] = {
+-        0x81ceb32c4b43fcf5, 0xa2425ff75e14fc32, 0xcad2f7f5359a3b3f,
+-        0xfd87b5f28300ca0e, 0x9e74d1b791e07e49, 0xc612062576589ddb,
+-        0xf79687aed3eec552, 0x9abe14cd44753b53, 0xc16d9a0095928a28,
+-        0xf1c90080baf72cb2, 0x971da05074da7bef, 0xbce5086492111aeb,
+-        0xec1e4a7db69561a6, 0x9392ee8e921d5d08, 0xb877aa3236a4b44a,
+-        0xe69594bec44de15c, 0x901d7cf73ab0acda, 0xb424dc35095cd810,
+-        0xe12e13424bb40e14, 0x8cbccc096f5088cc, 0xafebff0bcb24aaff,
+-        0xdbe6fecebdedd5bf, 0x89705f4136b4a598, 0xabcc77118461cefd,
+-        0xd6bf94d5e57a42bd, 0x8637bd05af6c69b6, 0xa7c5ac471b478424,
+-        0xd1b71758e219652c, 0x83126e978d4fdf3c, 0xa3d70a3d70a3d70b,
+-        0xcccccccccccccccd, 0x8000000000000000, 0xa000000000000000,
+-        0xc800000000000000, 0xfa00000000000000, 0x9c40000000000000,
+-        0xc350000000000000, 0xf424000000000000, 0x9896800000000000,
+-        0xbebc200000000000, 0xee6b280000000000, 0x9502f90000000000,
+-        0xba43b74000000000, 0xe8d4a51000000000, 0x9184e72a00000000,
+-        0xb5e620f480000000, 0xe35fa931a0000000, 0x8e1bc9bf04000000,
+-        0xb1a2bc2ec5000000, 0xde0b6b3a76400000, 0x8ac7230489e80000,
+-        0xad78ebc5ac620000, 0xd8d726b7177a8000, 0x878678326eac9000,
+-        0xa968163f0a57b400, 0xd3c21bcecceda100, 0x84595161401484a0,
+-        0xa56fa5b99019a5c8, 0xcecb8f27f4200f3a, 0x813f3978f8940984,
+-        0xa18f07d736b90be5, 0xc9f2c9cd04674ede, 0xfc6f7c4045812296,
+-        0x9dc5ada82b70b59d, 0xc5371912364ce305, 0xf684df56c3e01bc6,
+-        0x9a130b963a6c115c, 0xc097ce7bc90715b3, 0xf0bdc21abb48db20,
+-        0x96769950b50d88f4, 0xbc143fa4e250eb31, 0xeb194f8e1ae525fd,
+-        0x92efd1b8d0cf37be, 0xb7abc627050305ad, 0xe596b7b0c643c719,
+-        0x8f7e32ce7bea5c6f, 0xb35dbf821ae4f38b, 0xe0352f62a19e306e};
+-    return pow10_significands[k - float_info<float>::min_k];
+-  }
+-
+-  static carrier_uint compute_mul(carrier_uint u,
+-                                  const cache_entry_type& cache) FMT_NOEXCEPT {
+-    return umul96_upper32(u, cache);
+-  }
+-
+-  static uint32_t compute_delta(const cache_entry_type& cache,
+-                                int beta_minus_1) FMT_NOEXCEPT {
+-    return static_cast<uint32_t>(cache >> (64 - 1 - beta_minus_1));
+-  }
+-
+-  static bool compute_mul_parity(carrier_uint two_f,
+-                                 const cache_entry_type& cache,
+-                                 int beta_minus_1) FMT_NOEXCEPT {
+-    FMT_ASSERT(beta_minus_1 >= 1, "");
+-    FMT_ASSERT(beta_minus_1 < 64, "");
+-
+-    return ((umul96_lower64(two_f, cache) >> (64 - beta_minus_1)) & 1) != 0;
+-  }
+-
+-  static carrier_uint compute_left_endpoint_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return static_cast<carrier_uint>(
+-        (cache - (cache >> (float_info<float>::significand_bits + 2))) >>
+-        (64 - float_info<float>::significand_bits - 1 - beta_minus_1));
+-  }
+-
+-  static carrier_uint compute_right_endpoint_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return static_cast<carrier_uint>(
+-        (cache + (cache >> (float_info<float>::significand_bits + 1))) >>
+-        (64 - float_info<float>::significand_bits - 1 - beta_minus_1));
+-  }
+-
+-  static carrier_uint compute_round_up_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return (static_cast<carrier_uint>(
+-                cache >>
+-                (64 - float_info<float>::significand_bits - 2 - beta_minus_1)) +
+-            1) /
+-           2;
+-  }
+-};
+-
+-template <> struct cache_accessor<double> {
+-  using carrier_uint = float_info<double>::carrier_uint;
+-  using cache_entry_type = uint128_wrapper;
+-
+-  static uint128_wrapper get_cached_power(int k) FMT_NOEXCEPT {
+-    FMT_ASSERT(k >= float_info<double>::min_k && k <= float_info<double>::max_k,
+-               "k is out of range");
+-
+-    static constexpr const uint128_wrapper pow10_significands[] = {
+-#if FMT_USE_FULL_CACHE_DRAGONBOX
+-      {0xff77b1fcbebcdc4f, 0x25e8e89c13bb0f7b},
+-      {0x9faacf3df73609b1, 0x77b191618c54e9ad},
+-      {0xc795830d75038c1d, 0xd59df5b9ef6a2418},
+-      {0xf97ae3d0d2446f25, 0x4b0573286b44ad1e},
+-      {0x9becce62836ac577, 0x4ee367f9430aec33},
+-      {0xc2e801fb244576d5, 0x229c41f793cda740},
+-      {0xf3a20279ed56d48a, 0x6b43527578c11110},
+-      {0x9845418c345644d6, 0x830a13896b78aaaa},
+-      {0xbe5691ef416bd60c, 0x23cc986bc656d554},
+-      {0xedec366b11c6cb8f, 0x2cbfbe86b7ec8aa9},
+-      {0x94b3a202eb1c3f39, 0x7bf7d71432f3d6aa},
+-      {0xb9e08a83a5e34f07, 0xdaf5ccd93fb0cc54},
+-      {0xe858ad248f5c22c9, 0xd1b3400f8f9cff69},
+-      {0x91376c36d99995be, 0x23100809b9c21fa2},
+-      {0xb58547448ffffb2d, 0xabd40a0c2832a78b},
+-      {0xe2e69915b3fff9f9, 0x16c90c8f323f516d},
+-      {0x8dd01fad907ffc3b, 0xae3da7d97f6792e4},
+-      {0xb1442798f49ffb4a, 0x99cd11cfdf41779d},
+-      {0xdd95317f31c7fa1d, 0x40405643d711d584},
+-      {0x8a7d3eef7f1cfc52, 0x482835ea666b2573},
+-      {0xad1c8eab5ee43b66, 0xda3243650005eed0},
+-      {0xd863b256369d4a40, 0x90bed43e40076a83},
+-      {0x873e4f75e2224e68, 0x5a7744a6e804a292},
+-      {0xa90de3535aaae202, 0x711515d0a205cb37},
+-      {0xd3515c2831559a83, 0x0d5a5b44ca873e04},
+-      {0x8412d9991ed58091, 0xe858790afe9486c3},
+-      {0xa5178fff668ae0b6, 0x626e974dbe39a873},
+-      {0xce5d73ff402d98e3, 0xfb0a3d212dc81290},
+-      {0x80fa687f881c7f8e, 0x7ce66634bc9d0b9a},
+-      {0xa139029f6a239f72, 0x1c1fffc1ebc44e81},
+-      {0xc987434744ac874e, 0xa327ffb266b56221},
+-      {0xfbe9141915d7a922, 0x4bf1ff9f0062baa9},
+-      {0x9d71ac8fada6c9b5, 0x6f773fc3603db4aa},
+-      {0xc4ce17b399107c22, 0xcb550fb4384d21d4},
+-      {0xf6019da07f549b2b, 0x7e2a53a146606a49},
+-      {0x99c102844f94e0fb, 0x2eda7444cbfc426e},
+-      {0xc0314325637a1939, 0xfa911155fefb5309},
+-      {0xf03d93eebc589f88, 0x793555ab7eba27cb},
+-      {0x96267c7535b763b5, 0x4bc1558b2f3458df},
+-      {0xbbb01b9283253ca2, 0x9eb1aaedfb016f17},
+-      {0xea9c227723ee8bcb, 0x465e15a979c1cadd},
+-      {0x92a1958a7675175f, 0x0bfacd89ec191eca},
+-      {0xb749faed14125d36, 0xcef980ec671f667c},
+-      {0xe51c79a85916f484, 0x82b7e12780e7401b},
+-      {0x8f31cc0937ae58d2, 0xd1b2ecb8b0908811},
+-      {0xb2fe3f0b8599ef07, 0x861fa7e6dcb4aa16},
+-      {0xdfbdcece67006ac9, 0x67a791e093e1d49b},
+-      {0x8bd6a141006042bd, 0xe0c8bb2c5c6d24e1},
+-      {0xaecc49914078536d, 0x58fae9f773886e19},
+-      {0xda7f5bf590966848, 0xaf39a475506a899f},
+-      {0x888f99797a5e012d, 0x6d8406c952429604},
+-      {0xaab37fd7d8f58178, 0xc8e5087ba6d33b84},
+-      {0xd5605fcdcf32e1d6, 0xfb1e4a9a90880a65},
+-      {0x855c3be0a17fcd26, 0x5cf2eea09a550680},
+-      {0xa6b34ad8c9dfc06f, 0xf42faa48c0ea481f},
+-      {0xd0601d8efc57b08b, 0xf13b94daf124da27},
+-      {0x823c12795db6ce57, 0x76c53d08d6b70859},
+-      {0xa2cb1717b52481ed, 0x54768c4b0c64ca6f},
+-      {0xcb7ddcdda26da268, 0xa9942f5dcf7dfd0a},
+-      {0xfe5d54150b090b02, 0xd3f93b35435d7c4d},
+-      {0x9efa548d26e5a6e1, 0xc47bc5014a1a6db0},
+-      {0xc6b8e9b0709f109a, 0x359ab6419ca1091c},
+-      {0xf867241c8cc6d4c0, 0xc30163d203c94b63},
+-      {0x9b407691d7fc44f8, 0x79e0de63425dcf1e},
+-      {0xc21094364dfb5636, 0x985915fc12f542e5},
+-      {0xf294b943e17a2bc4, 0x3e6f5b7b17b2939e},
+-      {0x979cf3ca6cec5b5a, 0xa705992ceecf9c43},
+-      {0xbd8430bd08277231, 0x50c6ff782a838354},
+-      {0xece53cec4a314ebd, 0xa4f8bf5635246429},
+-      {0x940f4613ae5ed136, 0x871b7795e136be9a},
+-      {0xb913179899f68584, 0x28e2557b59846e40},
+-      {0xe757dd7ec07426e5, 0x331aeada2fe589d0},
+-      {0x9096ea6f3848984f, 0x3ff0d2c85def7622},
+-      {0xb4bca50b065abe63, 0x0fed077a756b53aa},
+-      {0xe1ebce4dc7f16dfb, 0xd3e8495912c62895},
+-      {0x8d3360f09cf6e4bd, 0x64712dd7abbbd95d},
+-      {0xb080392cc4349dec, 0xbd8d794d96aacfb4},
+-      {0xdca04777f541c567, 0xecf0d7a0fc5583a1},
+-      {0x89e42caaf9491b60, 0xf41686c49db57245},
+-      {0xac5d37d5b79b6239, 0x311c2875c522ced6},
+-      {0xd77485cb25823ac7, 0x7d633293366b828c},
+-      {0x86a8d39ef77164bc, 0xae5dff9c02033198},
+-      {0xa8530886b54dbdeb, 0xd9f57f830283fdfd},
+-      {0xd267caa862a12d66, 0xd072df63c324fd7c},
+-      {0x8380dea93da4bc60, 0x4247cb9e59f71e6e},
+-      {0xa46116538d0deb78, 0x52d9be85f074e609},
+-      {0xcd795be870516656, 0x67902e276c921f8c},
+-      {0x806bd9714632dff6, 0x00ba1cd8a3db53b7},
+-      {0xa086cfcd97bf97f3, 0x80e8a40eccd228a5},
+-      {0xc8a883c0fdaf7df0, 0x6122cd128006b2ce},
+-      {0xfad2a4b13d1b5d6c, 0x796b805720085f82},
+-      {0x9cc3a6eec6311a63, 0xcbe3303674053bb1},
+-      {0xc3f490aa77bd60fc, 0xbedbfc4411068a9d},
+-      {0xf4f1b4d515acb93b, 0xee92fb5515482d45},
+-      {0x991711052d8bf3c5, 0x751bdd152d4d1c4b},
+-      {0xbf5cd54678eef0b6, 0xd262d45a78a0635e},
+-      {0xef340a98172aace4, 0x86fb897116c87c35},
+-      {0x9580869f0e7aac0e, 0xd45d35e6ae3d4da1},
+-      {0xbae0a846d2195712, 0x8974836059cca10a},
+-      {0xe998d258869facd7, 0x2bd1a438703fc94c},
+-      {0x91ff83775423cc06, 0x7b6306a34627ddd0},
+-      {0xb67f6455292cbf08, 0x1a3bc84c17b1d543},
+-      {0xe41f3d6a7377eeca, 0x20caba5f1d9e4a94},
+-      {0x8e938662882af53e, 0x547eb47b7282ee9d},
+-      {0xb23867fb2a35b28d, 0xe99e619a4f23aa44},
+-      {0xdec681f9f4c31f31, 0x6405fa00e2ec94d5},
+-      {0x8b3c113c38f9f37e, 0xde83bc408dd3dd05},
+-      {0xae0b158b4738705e, 0x9624ab50b148d446},
+-      {0xd98ddaee19068c76, 0x3badd624dd9b0958},
+-      {0x87f8a8d4cfa417c9, 0xe54ca5d70a80e5d7},
+-      {0xa9f6d30a038d1dbc, 0x5e9fcf4ccd211f4d},
+-      {0xd47487cc8470652b, 0x7647c32000696720},
+-      {0x84c8d4dfd2c63f3b, 0x29ecd9f40041e074},
+-      {0xa5fb0a17c777cf09, 0xf468107100525891},
+-      {0xcf79cc9db955c2cc, 0x7182148d4066eeb5},
+-      {0x81ac1fe293d599bf, 0xc6f14cd848405531},
+-      {0xa21727db38cb002f, 0xb8ada00e5a506a7d},
+-      {0xca9cf1d206fdc03b, 0xa6d90811f0e4851d},
+-      {0xfd442e4688bd304a, 0x908f4a166d1da664},
+-      {0x9e4a9cec15763e2e, 0x9a598e4e043287ff},
+-      {0xc5dd44271ad3cdba, 0x40eff1e1853f29fe},
+-      {0xf7549530e188c128, 0xd12bee59e68ef47d},
+-      {0x9a94dd3e8cf578b9, 0x82bb74f8301958cf},
+-      {0xc13a148e3032d6e7, 0xe36a52363c1faf02},
+-      {0xf18899b1bc3f8ca1, 0xdc44e6c3cb279ac2},
+-      {0x96f5600f15a7b7e5, 0x29ab103a5ef8c0ba},
+-      {0xbcb2b812db11a5de, 0x7415d448f6b6f0e8},
+-      {0xebdf661791d60f56, 0x111b495b3464ad22},
+-      {0x936b9fcebb25c995, 0xcab10dd900beec35},
+-      {0xb84687c269ef3bfb, 0x3d5d514f40eea743},
+-      {0xe65829b3046b0afa, 0x0cb4a5a3112a5113},
+-      {0x8ff71a0fe2c2e6dc, 0x47f0e785eaba72ac},
+-      {0xb3f4e093db73a093, 0x59ed216765690f57},
+-      {0xe0f218b8d25088b8, 0x306869c13ec3532d},
+-      {0x8c974f7383725573, 0x1e414218c73a13fc},
+-      {0xafbd2350644eeacf, 0xe5d1929ef90898fb},
+-      {0xdbac6c247d62a583, 0xdf45f746b74abf3a},
+-      {0x894bc396ce5da772, 0x6b8bba8c328eb784},
+-      {0xab9eb47c81f5114f, 0x066ea92f3f326565},
+-      {0xd686619ba27255a2, 0xc80a537b0efefebe},
+-      {0x8613fd0145877585, 0xbd06742ce95f5f37},
+-      {0xa798fc4196e952e7, 0x2c48113823b73705},
+-      {0xd17f3b51fca3a7a0, 0xf75a15862ca504c6},
+-      {0x82ef85133de648c4, 0x9a984d73dbe722fc},
+-      {0xa3ab66580d5fdaf5, 0xc13e60d0d2e0ebbb},
+-      {0xcc963fee10b7d1b3, 0x318df905079926a9},
+-      {0xffbbcfe994e5c61f, 0xfdf17746497f7053},
+-      {0x9fd561f1fd0f9bd3, 0xfeb6ea8bedefa634},
+-      {0xc7caba6e7c5382c8, 0xfe64a52ee96b8fc1},
+-      {0xf9bd690a1b68637b, 0x3dfdce7aa3c673b1},
+-      {0x9c1661a651213e2d, 0x06bea10ca65c084f},
+-      {0xc31bfa0fe5698db8, 0x486e494fcff30a63},
+-      {0xf3e2f893dec3f126, 0x5a89dba3c3efccfb},
+-      {0x986ddb5c6b3a76b7, 0xf89629465a75e01d},
+-      {0xbe89523386091465, 0xf6bbb397f1135824},
+-      {0xee2ba6c0678b597f, 0x746aa07ded582e2d},
+-      {0x94db483840b717ef, 0xa8c2a44eb4571cdd},
+-      {0xba121a4650e4ddeb, 0x92f34d62616ce414},
+-      {0xe896a0d7e51e1566, 0x77b020baf9c81d18},
+-      {0x915e2486ef32cd60, 0x0ace1474dc1d122f},
+-      {0xb5b5ada8aaff80b8, 0x0d819992132456bb},
+-      {0xe3231912d5bf60e6, 0x10e1fff697ed6c6a},
+-      {0x8df5efabc5979c8f, 0xca8d3ffa1ef463c2},
+-      {0xb1736b96b6fd83b3, 0xbd308ff8a6b17cb3},
+-      {0xddd0467c64bce4a0, 0xac7cb3f6d05ddbdf},
+-      {0x8aa22c0dbef60ee4, 0x6bcdf07a423aa96c},
+-      {0xad4ab7112eb3929d, 0x86c16c98d2c953c7},
+-      {0xd89d64d57a607744, 0xe871c7bf077ba8b8},
+-      {0x87625f056c7c4a8b, 0x11471cd764ad4973},
+-      {0xa93af6c6c79b5d2d, 0xd598e40d3dd89bd0},
+-      {0xd389b47879823479, 0x4aff1d108d4ec2c4},
+-      {0x843610cb4bf160cb, 0xcedf722a585139bb},
+-      {0xa54394fe1eedb8fe, 0xc2974eb4ee658829},
+-      {0xce947a3da6a9273e, 0x733d226229feea33},
+-      {0x811ccc668829b887, 0x0806357d5a3f5260},
+-      {0xa163ff802a3426a8, 0xca07c2dcb0cf26f8},
+-      {0xc9bcff6034c13052, 0xfc89b393dd02f0b6},
+-      {0xfc2c3f3841f17c67, 0xbbac2078d443ace3},
+-      {0x9d9ba7832936edc0, 0xd54b944b84aa4c0e},
+-      {0xc5029163f384a931, 0x0a9e795e65d4df12},
+-      {0xf64335bcf065d37d, 0x4d4617b5ff4a16d6},
+-      {0x99ea0196163fa42e, 0x504bced1bf8e4e46},
+-      {0xc06481fb9bcf8d39, 0xe45ec2862f71e1d7},
+-      {0xf07da27a82c37088, 0x5d767327bb4e5a4d},
+-      {0x964e858c91ba2655, 0x3a6a07f8d510f870},
+-      {0xbbe226efb628afea, 0x890489f70a55368c},
+-      {0xeadab0aba3b2dbe5, 0x2b45ac74ccea842f},
+-      {0x92c8ae6b464fc96f, 0x3b0b8bc90012929e},
+-      {0xb77ada0617e3bbcb, 0x09ce6ebb40173745},
+-      {0xe55990879ddcaabd, 0xcc420a6a101d0516},
+-      {0x8f57fa54c2a9eab6, 0x9fa946824a12232e},
+-      {0xb32df8e9f3546564, 0x47939822dc96abfa},
+-      {0xdff9772470297ebd, 0x59787e2b93bc56f8},
+-      {0x8bfbea76c619ef36, 0x57eb4edb3c55b65b},
+-      {0xaefae51477a06b03, 0xede622920b6b23f2},
+-      {0xdab99e59958885c4, 0xe95fab368e45ecee},
+-      {0x88b402f7fd75539b, 0x11dbcb0218ebb415},
+-      {0xaae103b5fcd2a881, 0xd652bdc29f26a11a},
+-      {0xd59944a37c0752a2, 0x4be76d3346f04960},
+-      {0x857fcae62d8493a5, 0x6f70a4400c562ddc},
+-      {0xa6dfbd9fb8e5b88e, 0xcb4ccd500f6bb953},
+-      {0xd097ad07a71f26b2, 0x7e2000a41346a7a8},
+-      {0x825ecc24c873782f, 0x8ed400668c0c28c9},
+-      {0xa2f67f2dfa90563b, 0x728900802f0f32fb},
+-      {0xcbb41ef979346bca, 0x4f2b40a03ad2ffba},
+-      {0xfea126b7d78186bc, 0xe2f610c84987bfa9},
+-      {0x9f24b832e6b0f436, 0x0dd9ca7d2df4d7ca},
+-      {0xc6ede63fa05d3143, 0x91503d1c79720dbc},
+-      {0xf8a95fcf88747d94, 0x75a44c6397ce912b},
+-      {0x9b69dbe1b548ce7c, 0xc986afbe3ee11abb},
+-      {0xc24452da229b021b, 0xfbe85badce996169},
+-      {0xf2d56790ab41c2a2, 0xfae27299423fb9c4},
+-      {0x97c560ba6b0919a5, 0xdccd879fc967d41b},
+-      {0xbdb6b8e905cb600f, 0x5400e987bbc1c921},
+-      {0xed246723473e3813, 0x290123e9aab23b69},
+-      {0x9436c0760c86e30b, 0xf9a0b6720aaf6522},
+-      {0xb94470938fa89bce, 0xf808e40e8d5b3e6a},
+-      {0xe7958cb87392c2c2, 0xb60b1d1230b20e05},
+-      {0x90bd77f3483bb9b9, 0xb1c6f22b5e6f48c3},
+-      {0xb4ecd5f01a4aa828, 0x1e38aeb6360b1af4},
+-      {0xe2280b6c20dd5232, 0x25c6da63c38de1b1},
+-      {0x8d590723948a535f, 0x579c487e5a38ad0f},
+-      {0xb0af48ec79ace837, 0x2d835a9df0c6d852},
+-      {0xdcdb1b2798182244, 0xf8e431456cf88e66},
+-      {0x8a08f0f8bf0f156b, 0x1b8e9ecb641b5900},
+-      {0xac8b2d36eed2dac5, 0xe272467e3d222f40},
+-      {0xd7adf884aa879177, 0x5b0ed81dcc6abb10},
+-      {0x86ccbb52ea94baea, 0x98e947129fc2b4ea},
+-      {0xa87fea27a539e9a5, 0x3f2398d747b36225},
+-      {0xd29fe4b18e88640e, 0x8eec7f0d19a03aae},
+-      {0x83a3eeeef9153e89, 0x1953cf68300424ad},
+-      {0xa48ceaaab75a8e2b, 0x5fa8c3423c052dd8},
+-      {0xcdb02555653131b6, 0x3792f412cb06794e},
+-      {0x808e17555f3ebf11, 0xe2bbd88bbee40bd1},
+-      {0xa0b19d2ab70e6ed6, 0x5b6aceaeae9d0ec5},
+-      {0xc8de047564d20a8b, 0xf245825a5a445276},
+-      {0xfb158592be068d2e, 0xeed6e2f0f0d56713},
+-      {0x9ced737bb6c4183d, 0x55464dd69685606c},
+-      {0xc428d05aa4751e4c, 0xaa97e14c3c26b887},
+-      {0xf53304714d9265df, 0xd53dd99f4b3066a9},
+-      {0x993fe2c6d07b7fab, 0xe546a8038efe402a},
+-      {0xbf8fdb78849a5f96, 0xde98520472bdd034},
+-      {0xef73d256a5c0f77c, 0x963e66858f6d4441},
+-      {0x95a8637627989aad, 0xdde7001379a44aa9},
+-      {0xbb127c53b17ec159, 0x5560c018580d5d53},
+-      {0xe9d71b689dde71af, 0xaab8f01e6e10b4a7},
+-      {0x9226712162ab070d, 0xcab3961304ca70e9},
+-      {0xb6b00d69bb55c8d1, 0x3d607b97c5fd0d23},
+-      {0xe45c10c42a2b3b05, 0x8cb89a7db77c506b},
+-      {0x8eb98a7a9a5b04e3, 0x77f3608e92adb243},
+-      {0xb267ed1940f1c61c, 0x55f038b237591ed4},
+-      {0xdf01e85f912e37a3, 0x6b6c46dec52f6689},
+-      {0x8b61313bbabce2c6, 0x2323ac4b3b3da016},
+-      {0xae397d8aa96c1b77, 0xabec975e0a0d081b},
+-      {0xd9c7dced53c72255, 0x96e7bd358c904a22},
+-      {0x881cea14545c7575, 0x7e50d64177da2e55},
+-      {0xaa242499697392d2, 0xdde50bd1d5d0b9ea},
+-      {0xd4ad2dbfc3d07787, 0x955e4ec64b44e865},
+-      {0x84ec3c97da624ab4, 0xbd5af13bef0b113f},
+-      {0xa6274bbdd0fadd61, 0xecb1ad8aeacdd58f},
+-      {0xcfb11ead453994ba, 0x67de18eda5814af3},
+-      {0x81ceb32c4b43fcf4, 0x80eacf948770ced8},
+-      {0xa2425ff75e14fc31, 0xa1258379a94d028e},
+-      {0xcad2f7f5359a3b3e, 0x096ee45813a04331},
+-      {0xfd87b5f28300ca0d, 0x8bca9d6e188853fd},
+-      {0x9e74d1b791e07e48, 0x775ea264cf55347e},
+-      {0xc612062576589dda, 0x95364afe032a819e},
+-      {0xf79687aed3eec551, 0x3a83ddbd83f52205},
+-      {0x9abe14cd44753b52, 0xc4926a9672793543},
+-      {0xc16d9a0095928a27, 0x75b7053c0f178294},
+-      {0xf1c90080baf72cb1, 0x5324c68b12dd6339},
+-      {0x971da05074da7bee, 0xd3f6fc16ebca5e04},
+-      {0xbce5086492111aea, 0x88f4bb1ca6bcf585},
+-      {0xec1e4a7db69561a5, 0x2b31e9e3d06c32e6},
+-      {0x9392ee8e921d5d07, 0x3aff322e62439fd0},
+-      {0xb877aa3236a4b449, 0x09befeb9fad487c3},
+-      {0xe69594bec44de15b, 0x4c2ebe687989a9b4},
+-      {0x901d7cf73ab0acd9, 0x0f9d37014bf60a11},
+-      {0xb424dc35095cd80f, 0x538484c19ef38c95},
+-      {0xe12e13424bb40e13, 0x2865a5f206b06fba},
+-      {0x8cbccc096f5088cb, 0xf93f87b7442e45d4},
+-      {0xafebff0bcb24aafe, 0xf78f69a51539d749},
+-      {0xdbe6fecebdedd5be, 0xb573440e5a884d1c},
+-      {0x89705f4136b4a597, 0x31680a88f8953031},
+-      {0xabcc77118461cefc, 0xfdc20d2b36ba7c3e},
+-      {0xd6bf94d5e57a42bc, 0x3d32907604691b4d},
+-      {0x8637bd05af6c69b5, 0xa63f9a49c2c1b110},
+-      {0xa7c5ac471b478423, 0x0fcf80dc33721d54},
+-      {0xd1b71758e219652b, 0xd3c36113404ea4a9},
+-      {0x83126e978d4fdf3b, 0x645a1cac083126ea},
+-      {0xa3d70a3d70a3d70a, 0x3d70a3d70a3d70a4},
+-      {0xcccccccccccccccc, 0xcccccccccccccccd},
+-      {0x8000000000000000, 0x0000000000000000},
+-      {0xa000000000000000, 0x0000000000000000},
+-      {0xc800000000000000, 0x0000000000000000},
+-      {0xfa00000000000000, 0x0000000000000000},
+-      {0x9c40000000000000, 0x0000000000000000},
+-      {0xc350000000000000, 0x0000000000000000},
+-      {0xf424000000000000, 0x0000000000000000},
+-      {0x9896800000000000, 0x0000000000000000},
+-      {0xbebc200000000000, 0x0000000000000000},
+-      {0xee6b280000000000, 0x0000000000000000},
+-      {0x9502f90000000000, 0x0000000000000000},
+-      {0xba43b74000000000, 0x0000000000000000},
+-      {0xe8d4a51000000000, 0x0000000000000000},
+-      {0x9184e72a00000000, 0x0000000000000000},
+-      {0xb5e620f480000000, 0x0000000000000000},
+-      {0xe35fa931a0000000, 0x0000000000000000},
+-      {0x8e1bc9bf04000000, 0x0000000000000000},
+-      {0xb1a2bc2ec5000000, 0x0000000000000000},
+-      {0xde0b6b3a76400000, 0x0000000000000000},
+-      {0x8ac7230489e80000, 0x0000000000000000},
+-      {0xad78ebc5ac620000, 0x0000000000000000},
+-      {0xd8d726b7177a8000, 0x0000000000000000},
+-      {0x878678326eac9000, 0x0000000000000000},
+-      {0xa968163f0a57b400, 0x0000000000000000},
+-      {0xd3c21bcecceda100, 0x0000000000000000},
+-      {0x84595161401484a0, 0x0000000000000000},
+-      {0xa56fa5b99019a5c8, 0x0000000000000000},
+-      {0xcecb8f27f4200f3a, 0x0000000000000000},
+-      {0x813f3978f8940984, 0x4000000000000000},
+-      {0xa18f07d736b90be5, 0x5000000000000000},
+-      {0xc9f2c9cd04674ede, 0xa400000000000000},
+-      {0xfc6f7c4045812296, 0x4d00000000000000},
+-      {0x9dc5ada82b70b59d, 0xf020000000000000},
+-      {0xc5371912364ce305, 0x6c28000000000000},
+-      {0xf684df56c3e01bc6, 0xc732000000000000},
+-      {0x9a130b963a6c115c, 0x3c7f400000000000},
+-      {0xc097ce7bc90715b3, 0x4b9f100000000000},
+-      {0xf0bdc21abb48db20, 0x1e86d40000000000},
+-      {0x96769950b50d88f4, 0x1314448000000000},
+-      {0xbc143fa4e250eb31, 0x17d955a000000000},
+-      {0xeb194f8e1ae525fd, 0x5dcfab0800000000},
+-      {0x92efd1b8d0cf37be, 0x5aa1cae500000000},
+-      {0xb7abc627050305ad, 0xf14a3d9e40000000},
+-      {0xe596b7b0c643c719, 0x6d9ccd05d0000000},
+-      {0x8f7e32ce7bea5c6f, 0xe4820023a2000000},
+-      {0xb35dbf821ae4f38b, 0xdda2802c8a800000},
+-      {0xe0352f62a19e306e, 0xd50b2037ad200000},
+-      {0x8c213d9da502de45, 0x4526f422cc340000},
+-      {0xaf298d050e4395d6, 0x9670b12b7f410000},
+-      {0xdaf3f04651d47b4c, 0x3c0cdd765f114000},
+-      {0x88d8762bf324cd0f, 0xa5880a69fb6ac800},
+-      {0xab0e93b6efee0053, 0x8eea0d047a457a00},
+-      {0xd5d238a4abe98068, 0x72a4904598d6d880},
+-      {0x85a36366eb71f041, 0x47a6da2b7f864750},
+-      {0xa70c3c40a64e6c51, 0x999090b65f67d924},
+-      {0xd0cf4b50cfe20765, 0xfff4b4e3f741cf6d},
+-      {0x82818f1281ed449f, 0xbff8f10e7a8921a4},
+-      {0xa321f2d7226895c7, 0xaff72d52192b6a0d},
+-      {0xcbea6f8ceb02bb39, 0x9bf4f8a69f764490},
+-      {0xfee50b7025c36a08, 0x02f236d04753d5b4},
+-      {0x9f4f2726179a2245, 0x01d762422c946590},
+-      {0xc722f0ef9d80aad6, 0x424d3ad2b7b97ef5},
+-      {0xf8ebad2b84e0d58b, 0xd2e0898765a7deb2},
+-      {0x9b934c3b330c8577, 0x63cc55f49f88eb2f},
+-      {0xc2781f49ffcfa6d5, 0x3cbf6b71c76b25fb},
+-      {0xf316271c7fc3908a, 0x8bef464e3945ef7a},
+-      {0x97edd871cfda3a56, 0x97758bf0e3cbb5ac},
+-      {0xbde94e8e43d0c8ec, 0x3d52eeed1cbea317},
+-      {0xed63a231d4c4fb27, 0x4ca7aaa863ee4bdd},
+-      {0x945e455f24fb1cf8, 0x8fe8caa93e74ef6a},
+-      {0xb975d6b6ee39e436, 0xb3e2fd538e122b44},
+-      {0xe7d34c64a9c85d44, 0x60dbbca87196b616},
+-      {0x90e40fbeea1d3a4a, 0xbc8955e946fe31cd},
+-      {0xb51d13aea4a488dd, 0x6babab6398bdbe41},
+-      {0xe264589a4dcdab14, 0xc696963c7eed2dd1},
+-      {0x8d7eb76070a08aec, 0xfc1e1de5cf543ca2},
+-      {0xb0de65388cc8ada8, 0x3b25a55f43294bcb},
+-      {0xdd15fe86affad912, 0x49ef0eb713f39ebe},
+-      {0x8a2dbf142dfcc7ab, 0x6e3569326c784337},
+-      {0xacb92ed9397bf996, 0x49c2c37f07965404},
+-      {0xd7e77a8f87daf7fb, 0xdc33745ec97be906},
+-      {0x86f0ac99b4e8dafd, 0x69a028bb3ded71a3},
+-      {0xa8acd7c0222311bc, 0xc40832ea0d68ce0c},
+-      {0xd2d80db02aabd62b, 0xf50a3fa490c30190},
+-      {0x83c7088e1aab65db, 0x792667c6da79e0fa},
+-      {0xa4b8cab1a1563f52, 0x577001b891185938},
+-      {0xcde6fd5e09abcf26, 0xed4c0226b55e6f86},
+-      {0x80b05e5ac60b6178, 0x544f8158315b05b4},
+-      {0xa0dc75f1778e39d6, 0x696361ae3db1c721},
+-      {0xc913936dd571c84c, 0x03bc3a19cd1e38e9},
+-      {0xfb5878494ace3a5f, 0x04ab48a04065c723},
+-      {0x9d174b2dcec0e47b, 0x62eb0d64283f9c76},
+-      {0xc45d1df942711d9a, 0x3ba5d0bd324f8394},
+-      {0xf5746577930d6500, 0xca8f44ec7ee36479},
+-      {0x9968bf6abbe85f20, 0x7e998b13cf4e1ecb},
+-      {0xbfc2ef456ae276e8, 0x9e3fedd8c321a67e},
+-      {0xefb3ab16c59b14a2, 0xc5cfe94ef3ea101e},
+-      {0x95d04aee3b80ece5, 0xbba1f1d158724a12},
+-      {0xbb445da9ca61281f, 0x2a8a6e45ae8edc97},
+-      {0xea1575143cf97226, 0xf52d09d71a3293bd},
+-      {0x924d692ca61be758, 0x593c2626705f9c56},
+-      {0xb6e0c377cfa2e12e, 0x6f8b2fb00c77836c},
+-      {0xe498f455c38b997a, 0x0b6dfb9c0f956447},
+-      {0x8edf98b59a373fec, 0x4724bd4189bd5eac},
+-      {0xb2977ee300c50fe7, 0x58edec91ec2cb657},
+-      {0xdf3d5e9bc0f653e1, 0x2f2967b66737e3ed},
+-      {0x8b865b215899f46c, 0xbd79e0d20082ee74},
+-      {0xae67f1e9aec07187, 0xecd8590680a3aa11},
+-      {0xda01ee641a708de9, 0xe80e6f4820cc9495},
+-      {0x884134fe908658b2, 0x3109058d147fdcdd},
+-      {0xaa51823e34a7eede, 0xbd4b46f0599fd415},
+-      {0xd4e5e2cdc1d1ea96, 0x6c9e18ac7007c91a},
+-      {0x850fadc09923329e, 0x03e2cf6bc604ddb0},
+-      {0xa6539930bf6bff45, 0x84db8346b786151c},
+-      {0xcfe87f7cef46ff16, 0xe612641865679a63},
+-      {0x81f14fae158c5f6e, 0x4fcb7e8f3f60c07e},
+-      {0xa26da3999aef7749, 0xe3be5e330f38f09d},
+-      {0xcb090c8001ab551c, 0x5cadf5bfd3072cc5},
+-      {0xfdcb4fa002162a63, 0x73d9732fc7c8f7f6},
+-      {0x9e9f11c4014dda7e, 0x2867e7fddcdd9afa},
+-      {0xc646d63501a1511d, 0xb281e1fd541501b8},
+-      {0xf7d88bc24209a565, 0x1f225a7ca91a4226},
+-      {0x9ae757596946075f, 0x3375788de9b06958},
+-      {0xc1a12d2fc3978937, 0x0052d6b1641c83ae},
+-      {0xf209787bb47d6b84, 0xc0678c5dbd23a49a},
+-      {0x9745eb4d50ce6332, 0xf840b7ba963646e0},
+-      {0xbd176620a501fbff, 0xb650e5a93bc3d898},
+-      {0xec5d3fa8ce427aff, 0xa3e51f138ab4cebe},
+-      {0x93ba47c980e98cdf, 0xc66f336c36b10137},
+-      {0xb8a8d9bbe123f017, 0xb80b0047445d4184},
+-      {0xe6d3102ad96cec1d, 0xa60dc059157491e5},
+-      {0x9043ea1ac7e41392, 0x87c89837ad68db2f},
+-      {0xb454e4a179dd1877, 0x29babe4598c311fb},
+-      {0xe16a1dc9d8545e94, 0xf4296dd6fef3d67a},
+-      {0x8ce2529e2734bb1d, 0x1899e4a65f58660c},
+-      {0xb01ae745b101e9e4, 0x5ec05dcff72e7f8f},
+-      {0xdc21a1171d42645d, 0x76707543f4fa1f73},
+-      {0x899504ae72497eba, 0x6a06494a791c53a8},
+-      {0xabfa45da0edbde69, 0x0487db9d17636892},
+-      {0xd6f8d7509292d603, 0x45a9d2845d3c42b6},
+-      {0x865b86925b9bc5c2, 0x0b8a2392ba45a9b2},
+-      {0xa7f26836f282b732, 0x8e6cac7768d7141e},
+-      {0xd1ef0244af2364ff, 0x3207d795430cd926},
+-      {0x8335616aed761f1f, 0x7f44e6bd49e807b8},
+-      {0xa402b9c5a8d3a6e7, 0x5f16206c9c6209a6},
+-      {0xcd036837130890a1, 0x36dba887c37a8c0f},
+-      {0x802221226be55a64, 0xc2494954da2c9789},
+-      {0xa02aa96b06deb0fd, 0xf2db9baa10b7bd6c},
+-      {0xc83553c5c8965d3d, 0x6f92829494e5acc7},
+-      {0xfa42a8b73abbf48c, 0xcb772339ba1f17f9},
+-      {0x9c69a97284b578d7, 0xff2a760414536efb},
+-      {0xc38413cf25e2d70d, 0xfef5138519684aba},
+-      {0xf46518c2ef5b8cd1, 0x7eb258665fc25d69},
+-      {0x98bf2f79d5993802, 0xef2f773ffbd97a61},
+-      {0xbeeefb584aff8603, 0xaafb550ffacfd8fa},
+-      {0xeeaaba2e5dbf6784, 0x95ba2a53f983cf38},
+-      {0x952ab45cfa97a0b2, 0xdd945a747bf26183},
+-      {0xba756174393d88df, 0x94f971119aeef9e4},
+-      {0xe912b9d1478ceb17, 0x7a37cd5601aab85d},
+-      {0x91abb422ccb812ee, 0xac62e055c10ab33a},
+-      {0xb616a12b7fe617aa, 0x577b986b314d6009},
+-      {0xe39c49765fdf9d94, 0xed5a7e85fda0b80b},
+-      {0x8e41ade9fbebc27d, 0x14588f13be847307},
+-      {0xb1d219647ae6b31c, 0x596eb2d8ae258fc8},
+-      {0xde469fbd99a05fe3, 0x6fca5f8ed9aef3bb},
+-      {0x8aec23d680043bee, 0x25de7bb9480d5854},
+-      {0xada72ccc20054ae9, 0xaf561aa79a10ae6a},
+-      {0xd910f7ff28069da4, 0x1b2ba1518094da04},
+-      {0x87aa9aff79042286, 0x90fb44d2f05d0842},
+-      {0xa99541bf57452b28, 0x353a1607ac744a53},
+-      {0xd3fa922f2d1675f2, 0x42889b8997915ce8},
+-      {0x847c9b5d7c2e09b7, 0x69956135febada11},
+-      {0xa59bc234db398c25, 0x43fab9837e699095},
+-      {0xcf02b2c21207ef2e, 0x94f967e45e03f4bb},
+-      {0x8161afb94b44f57d, 0x1d1be0eebac278f5},
+-      {0xa1ba1ba79e1632dc, 0x6462d92a69731732},
+-      {0xca28a291859bbf93, 0x7d7b8f7503cfdcfe},
+-      {0xfcb2cb35e702af78, 0x5cda735244c3d43e},
+-      {0x9defbf01b061adab, 0x3a0888136afa64a7},
+-      {0xc56baec21c7a1916, 0x088aaa1845b8fdd0},
+-      {0xf6c69a72a3989f5b, 0x8aad549e57273d45},
+-      {0x9a3c2087a63f6399, 0x36ac54e2f678864b},
+-      {0xc0cb28a98fcf3c7f, 0x84576a1bb416a7dd},
+-      {0xf0fdf2d3f3c30b9f, 0x656d44a2a11c51d5},
+-      {0x969eb7c47859e743, 0x9f644ae5a4b1b325},
+-      {0xbc4665b596706114, 0x873d5d9f0dde1fee},
+-      {0xeb57ff22fc0c7959, 0xa90cb506d155a7ea},
+-      {0x9316ff75dd87cbd8, 0x09a7f12442d588f2},
+-      {0xb7dcbf5354e9bece, 0x0c11ed6d538aeb2f},
+-      {0xe5d3ef282a242e81, 0x8f1668c8a86da5fa},
+-      {0x8fa475791a569d10, 0xf96e017d694487bc},
+-      {0xb38d92d760ec4455, 0x37c981dcc395a9ac},
+-      {0xe070f78d3927556a, 0x85bbe253f47b1417},
+-      {0x8c469ab843b89562, 0x93956d7478ccec8e},
+-      {0xaf58416654a6babb, 0x387ac8d1970027b2},
+-      {0xdb2e51bfe9d0696a, 0x06997b05fcc0319e},
+-      {0x88fcf317f22241e2, 0x441fece3bdf81f03},
+-      {0xab3c2fddeeaad25a, 0xd527e81cad7626c3},
+-      {0xd60b3bd56a5586f1, 0x8a71e223d8d3b074},
+-      {0x85c7056562757456, 0xf6872d5667844e49},
+-      {0xa738c6bebb12d16c, 0xb428f8ac016561db},
+-      {0xd106f86e69d785c7, 0xe13336d701beba52},
+-      {0x82a45b450226b39c, 0xecc0024661173473},
+-      {0xa34d721642b06084, 0x27f002d7f95d0190},
+-      {0xcc20ce9bd35c78a5, 0x31ec038df7b441f4},
+-      {0xff290242c83396ce, 0x7e67047175a15271},
+-      {0x9f79a169bd203e41, 0x0f0062c6e984d386},
+-      {0xc75809c42c684dd1, 0x52c07b78a3e60868},
+-      {0xf92e0c3537826145, 0xa7709a56ccdf8a82},
+-      {0x9bbcc7a142b17ccb, 0x88a66076400bb691},
+-      {0xc2abf989935ddbfe, 0x6acff893d00ea435},
+-      {0xf356f7ebf83552fe, 0x0583f6b8c4124d43},
+-      {0x98165af37b2153de, 0xc3727a337a8b704a},
+-      {0xbe1bf1b059e9a8d6, 0x744f18c0592e4c5c},
+-      {0xeda2ee1c7064130c, 0x1162def06f79df73},
+-      {0x9485d4d1c63e8be7, 0x8addcb5645ac2ba8},
+-      {0xb9a74a0637ce2ee1, 0x6d953e2bd7173692},
+-      {0xe8111c87c5c1ba99, 0xc8fa8db6ccdd0437},
+-      {0x910ab1d4db9914a0, 0x1d9c9892400a22a2},
+-      {0xb54d5e4a127f59c8, 0x2503beb6d00cab4b},
+-      {0xe2a0b5dc971f303a, 0x2e44ae64840fd61d},
+-      {0x8da471a9de737e24, 0x5ceaecfed289e5d2},
+-      {0xb10d8e1456105dad, 0x7425a83e872c5f47},
+-      {0xdd50f1996b947518, 0xd12f124e28f77719},
+-      {0x8a5296ffe33cc92f, 0x82bd6b70d99aaa6f},
+-      {0xace73cbfdc0bfb7b, 0x636cc64d1001550b},
+-      {0xd8210befd30efa5a, 0x3c47f7e05401aa4e},
+-      {0x8714a775e3e95c78, 0x65acfaec34810a71},
+-      {0xa8d9d1535ce3b396, 0x7f1839a741a14d0d},
+-      {0xd31045a8341ca07c, 0x1ede48111209a050},
+-      {0x83ea2b892091e44d, 0x934aed0aab460432},
+-      {0xa4e4b66b68b65d60, 0xf81da84d5617853f},
+-      {0xce1de40642e3f4b9, 0x36251260ab9d668e},
+-      {0x80d2ae83e9ce78f3, 0xc1d72b7c6b426019},
+-      {0xa1075a24e4421730, 0xb24cf65b8612f81f},
+-      {0xc94930ae1d529cfc, 0xdee033f26797b627},
+-      {0xfb9b7cd9a4a7443c, 0x169840ef017da3b1},
+-      {0x9d412e0806e88aa5, 0x8e1f289560ee864e},
+-      {0xc491798a08a2ad4e, 0xf1a6f2bab92a27e2},
+-      {0xf5b5d7ec8acb58a2, 0xae10af696774b1db},
+-      {0x9991a6f3d6bf1765, 0xacca6da1e0a8ef29},
+-      {0xbff610b0cc6edd3f, 0x17fd090a58d32af3},
+-      {0xeff394dcff8a948e, 0xddfc4b4cef07f5b0},
+-      {0x95f83d0a1fb69cd9, 0x4abdaf101564f98e},
+-      {0xbb764c4ca7a4440f, 0x9d6d1ad41abe37f1},
+-      {0xea53df5fd18d5513, 0x84c86189216dc5ed},
+-      {0x92746b9be2f8552c, 0x32fd3cf5b4e49bb4},
+-      {0xb7118682dbb66a77, 0x3fbc8c33221dc2a1},
+-      {0xe4d5e82392a40515, 0x0fabaf3feaa5334a},
+-      {0x8f05b1163ba6832d, 0x29cb4d87f2a7400e},
+-      {0xb2c71d5bca9023f8, 0x743e20e9ef511012},
+-      {0xdf78e4b2bd342cf6, 0x914da9246b255416},
+-      {0x8bab8eefb6409c1a, 0x1ad089b6c2f7548e},
+-      {0xae9672aba3d0c320, 0xa184ac2473b529b1},
+-      {0xda3c0f568cc4f3e8, 0xc9e5d72d90a2741e},
+-      {0x8865899617fb1871, 0x7e2fa67c7a658892},
+-      {0xaa7eebfb9df9de8d, 0xddbb901b98feeab7},
+-      {0xd51ea6fa85785631, 0x552a74227f3ea565},
+-      {0x8533285c936b35de, 0xd53a88958f87275f},
+-      {0xa67ff273b8460356, 0x8a892abaf368f137},
+-      {0xd01fef10a657842c, 0x2d2b7569b0432d85},
+-      {0x8213f56a67f6b29b, 0x9c3b29620e29fc73},
+-      {0xa298f2c501f45f42, 0x8349f3ba91b47b8f},
+-      {0xcb3f2f7642717713, 0x241c70a936219a73},
+-      {0xfe0efb53d30dd4d7, 0xed238cd383aa0110},
+-      {0x9ec95d1463e8a506, 0xf4363804324a40aa},
+-      {0xc67bb4597ce2ce48, 0xb143c6053edcd0d5},
+-      {0xf81aa16fdc1b81da, 0xdd94b7868e94050a},
+-      {0x9b10a4e5e9913128, 0xca7cf2b4191c8326},
+-      {0xc1d4ce1f63f57d72, 0xfd1c2f611f63a3f0},
+-      {0xf24a01a73cf2dccf, 0xbc633b39673c8cec},
+-      {0x976e41088617ca01, 0xd5be0503e085d813},
+-      {0xbd49d14aa79dbc82, 0x4b2d8644d8a74e18},
+-      {0xec9c459d51852ba2, 0xddf8e7d60ed1219e},
+-      {0x93e1ab8252f33b45, 0xcabb90e5c942b503},
+-      {0xb8da1662e7b00a17, 0x3d6a751f3b936243},
+-      {0xe7109bfba19c0c9d, 0x0cc512670a783ad4},
+-      {0x906a617d450187e2, 0x27fb2b80668b24c5},
+-      {0xb484f9dc9641e9da, 0xb1f9f660802dedf6},
+-      {0xe1a63853bbd26451, 0x5e7873f8a0396973},
+-      {0x8d07e33455637eb2, 0xdb0b487b6423e1e8},
+-      {0xb049dc016abc5e5f, 0x91ce1a9a3d2cda62},
+-      {0xdc5c5301c56b75f7, 0x7641a140cc7810fb},
+-      {0x89b9b3e11b6329ba, 0xa9e904c87fcb0a9d},
+-      {0xac2820d9623bf429, 0x546345fa9fbdcd44},
+-      {0xd732290fbacaf133, 0xa97c177947ad4095},
+-      {0x867f59a9d4bed6c0, 0x49ed8eabcccc485d},
+-      {0xa81f301449ee8c70, 0x5c68f256bfff5a74},
+-      {0xd226fc195c6a2f8c, 0x73832eec6fff3111},
+-      {0x83585d8fd9c25db7, 0xc831fd53c5ff7eab},
+-      {0xa42e74f3d032f525, 0xba3e7ca8b77f5e55},
+-      {0xcd3a1230c43fb26f, 0x28ce1bd2e55f35eb},
+-      {0x80444b5e7aa7cf85, 0x7980d163cf5b81b3},
+-      {0xa0555e361951c366, 0xd7e105bcc332621f},
+-      {0xc86ab5c39fa63440, 0x8dd9472bf3fefaa7},
+-      {0xfa856334878fc150, 0xb14f98f6f0feb951},
+-      {0x9c935e00d4b9d8d2, 0x6ed1bf9a569f33d3},
+-      {0xc3b8358109e84f07, 0x0a862f80ec4700c8},
+-      {0xf4a642e14c6262c8, 0xcd27bb612758c0fa},
+-      {0x98e7e9cccfbd7dbd, 0x8038d51cb897789c},
+-      {0xbf21e44003acdd2c, 0xe0470a63e6bd56c3},
+-      {0xeeea5d5004981478, 0x1858ccfce06cac74},
+-      {0x95527a5202df0ccb, 0x0f37801e0c43ebc8},
+-      {0xbaa718e68396cffd, 0xd30560258f54e6ba},
+-      {0xe950df20247c83fd, 0x47c6b82ef32a2069},
+-      {0x91d28b7416cdd27e, 0x4cdc331d57fa5441},
+-      {0xb6472e511c81471d, 0xe0133fe4adf8e952},
+-      {0xe3d8f9e563a198e5, 0x58180fddd97723a6},
+-      {0x8e679c2f5e44ff8f, 0x570f09eaa7ea7648},
+-      {0xb201833b35d63f73, 0x2cd2cc6551e513da},
+-      {0xde81e40a034bcf4f, 0xf8077f7ea65e58d1},
+-      {0x8b112e86420f6191, 0xfb04afaf27faf782},
+-      {0xadd57a27d29339f6, 0x79c5db9af1f9b563},
+-      {0xd94ad8b1c7380874, 0x18375281ae7822bc},
+-      {0x87cec76f1c830548, 0x8f2293910d0b15b5},
+-      {0xa9c2794ae3a3c69a, 0xb2eb3875504ddb22},
+-      {0xd433179d9c8cb841, 0x5fa60692a46151eb},
+-      {0x849feec281d7f328, 0xdbc7c41ba6bcd333},
+-      {0xa5c7ea73224deff3, 0x12b9b522906c0800},
+-      {0xcf39e50feae16bef, 0xd768226b34870a00},
+-      {0x81842f29f2cce375, 0xe6a1158300d46640},
+-      {0xa1e53af46f801c53, 0x60495ae3c1097fd0},
+-      {0xca5e89b18b602368, 0x385bb19cb14bdfc4},
+-      {0xfcf62c1dee382c42, 0x46729e03dd9ed7b5},
+-      {0x9e19db92b4e31ba9, 0x6c07a2c26a8346d1},
+-      {0xc5a05277621be293, 0xc7098b7305241885},
+-      { 0xf70867153aa2db38,
+-        0xb8cbee4fc66d1ea7 }
+-#else
+-      {0xff77b1fcbebcdc4f, 0x25e8e89c13bb0f7b},
+-      {0xce5d73ff402d98e3, 0xfb0a3d212dc81290},
+-      {0xa6b34ad8c9dfc06f, 0xf42faa48c0ea481f},
+-      {0x86a8d39ef77164bc, 0xae5dff9c02033198},
+-      {0xd98ddaee19068c76, 0x3badd624dd9b0958},
+-      {0xafbd2350644eeacf, 0xe5d1929ef90898fb},
+-      {0x8df5efabc5979c8f, 0xca8d3ffa1ef463c2},
+-      {0xe55990879ddcaabd, 0xcc420a6a101d0516},
+-      {0xb94470938fa89bce, 0xf808e40e8d5b3e6a},
+-      {0x95a8637627989aad, 0xdde7001379a44aa9},
+-      {0xf1c90080baf72cb1, 0x5324c68b12dd6339},
+-      {0xc350000000000000, 0x0000000000000000},
+-      {0x9dc5ada82b70b59d, 0xf020000000000000},
+-      {0xfee50b7025c36a08, 0x02f236d04753d5b4},
+-      {0xcde6fd5e09abcf26, 0xed4c0226b55e6f86},
+-      {0xa6539930bf6bff45, 0x84db8346b786151c},
+-      {0x865b86925b9bc5c2, 0x0b8a2392ba45a9b2},
+-      {0xd910f7ff28069da4, 0x1b2ba1518094da04},
+-      {0xaf58416654a6babb, 0x387ac8d1970027b2},
+-      {0x8da471a9de737e24, 0x5ceaecfed289e5d2},
+-      {0xe4d5e82392a40515, 0x0fabaf3feaa5334a},
+-      {0xb8da1662e7b00a17, 0x3d6a751f3b936243},
+-      { 0x95527a5202df0ccb,
+-        0x0f37801e0c43ebc8 }
+-#endif
+-    };
+-
+-#if FMT_USE_FULL_CACHE_DRAGONBOX
+-    return pow10_significands[k - float_info<double>::min_k];
+-#else
+-    static constexpr const uint64_t powers_of_5_64[] = {
+-        0x0000000000000001, 0x0000000000000005, 0x0000000000000019,
+-        0x000000000000007d, 0x0000000000000271, 0x0000000000000c35,
+-        0x0000000000003d09, 0x000000000001312d, 0x000000000005f5e1,
+-        0x00000000001dcd65, 0x00000000009502f9, 0x0000000002e90edd,
+-        0x000000000e8d4a51, 0x0000000048c27395, 0x000000016bcc41e9,
+-        0x000000071afd498d, 0x0000002386f26fc1, 0x000000b1a2bc2ec5,
+-        0x000003782dace9d9, 0x00001158e460913d, 0x000056bc75e2d631,
+-        0x0001b1ae4d6e2ef5, 0x000878678326eac9, 0x002a5a058fc295ed,
+-        0x00d3c21bcecceda1, 0x0422ca8b0a00a425, 0x14adf4b7320334b9};
+-
+-    static constexpr const uint32_t pow10_recovery_errors[] = {
+-        0x50001400, 0x54044100, 0x54014555, 0x55954415, 0x54115555, 0x00000001,
+-        0x50000000, 0x00104000, 0x54010004, 0x05004001, 0x55555544, 0x41545555,
+-        0x54040551, 0x15445545, 0x51555514, 0x10000015, 0x00101100, 0x01100015,
+-        0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x04450514, 0x45414110,
+-        0x55555145, 0x50544050, 0x15040155, 0x11054140, 0x50111514, 0x11451454,
+-        0x00400541, 0x00000000, 0x55555450, 0x10056551, 0x10054011, 0x55551014,
+-        0x69514555, 0x05151109, 0x00155555};
+-
+-    static const int compression_ratio = 27;
+-
+-    // Compute base index.
+-    int cache_index = (k - float_info<double>::min_k) / compression_ratio;
+-    int kb = cache_index * compression_ratio + float_info<double>::min_k;
+-    int offset = k - kb;
+-
+-    // Get base cache.
+-    uint128_wrapper base_cache = pow10_significands[cache_index];
+-    if (offset == 0) return base_cache;
+-
+-    // Compute the required amount of bit-shift.
+-    int alpha = floor_log2_pow10(kb + offset) - floor_log2_pow10(kb) - offset;
+-    FMT_ASSERT(alpha > 0 && alpha < 64, "shifting error detected");
+-
+-    // Try to recover the real cache.
+-    uint64_t pow5 = powers_of_5_64[offset];
+-    uint128_wrapper recovered_cache = umul128(base_cache.high(), pow5);
+-    uint128_wrapper middle_low =
+-        umul128(base_cache.low() - (kb < 0 ? 1u : 0u), pow5);
+-
+-    recovered_cache += middle_low.high();
+-
+-    uint64_t high_to_middle = recovered_cache.high() << (64 - alpha);
+-    uint64_t middle_to_low = recovered_cache.low() << (64 - alpha);
+-
+-    recovered_cache =
+-        uint128_wrapper{(recovered_cache.low() >> alpha) | high_to_middle,
+-                        ((middle_low.low() >> alpha) | middle_to_low)};
+-
+-    if (kb < 0) recovered_cache += 1;
+-
+-    // Get error.
+-    int error_idx = (k - float_info<double>::min_k) / 16;
+-    uint32_t error = (pow10_recovery_errors[error_idx] >>
+-                      ((k - float_info<double>::min_k) % 16) * 2) &
+-                     0x3;
+-
+-    // Add the error back.
+-    FMT_ASSERT(recovered_cache.low() + error >= recovered_cache.low(), "");
+-    return {recovered_cache.high(), recovered_cache.low() + error};
+-#endif
+-  }
+-
+-  static carrier_uint compute_mul(carrier_uint u,
+-                                  const cache_entry_type& cache) FMT_NOEXCEPT {
+-    return umul192_upper64(u, cache);
+-  }
+-
+-  static uint32_t compute_delta(cache_entry_type const& cache,
+-                                int beta_minus_1) FMT_NOEXCEPT {
+-    return static_cast<uint32_t>(cache.high() >> (64 - 1 - beta_minus_1));
+-  }
+-
+-  static bool compute_mul_parity(carrier_uint two_f,
+-                                 const cache_entry_type& cache,
+-                                 int beta_minus_1) FMT_NOEXCEPT {
+-    FMT_ASSERT(beta_minus_1 >= 1, "");
+-    FMT_ASSERT(beta_minus_1 < 64, "");
+-
+-    return ((umul192_middle64(two_f, cache) >> (64 - beta_minus_1)) & 1) != 0;
+-  }
+-
+-  static carrier_uint compute_left_endpoint_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return (cache.high() -
+-            (cache.high() >> (float_info<double>::significand_bits + 2))) >>
+-           (64 - float_info<double>::significand_bits - 1 - beta_minus_1);
+-  }
+-
+-  static carrier_uint compute_right_endpoint_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return (cache.high() +
+-            (cache.high() >> (float_info<double>::significand_bits + 1))) >>
+-           (64 - float_info<double>::significand_bits - 1 - beta_minus_1);
+-  }
+-
+-  static carrier_uint compute_round_up_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return ((cache.high() >>
+-             (64 - float_info<double>::significand_bits - 2 - beta_minus_1)) +
+-            1) /
+-           2;
+-  }
+-};
+-
+-// Various integer checks
+-template <class T>
+-bool is_left_endpoint_integer_shorter_interval(int exponent) FMT_NOEXCEPT {
+-  return exponent >=
+-             float_info<
+-                 T>::case_shorter_interval_left_endpoint_lower_threshold &&
+-         exponent <=
+-             float_info<T>::case_shorter_interval_left_endpoint_upper_threshold;
+-}
+-template <class T>
+-bool is_endpoint_integer(typename float_info<T>::carrier_uint two_f,
+-                         int exponent, int minus_k) FMT_NOEXCEPT {
+-  if (exponent < float_info<T>::case_fc_pm_half_lower_threshold) return false;
+-  // For k >= 0.
+-  if (exponent <= float_info<T>::case_fc_pm_half_upper_threshold) return true;
+-  // For k < 0.
+-  if (exponent > float_info<T>::divisibility_check_by_5_threshold) return false;
+-  return divisible_by_power_of_5(two_f, minus_k);
+-}
+-
+-template <class T>
+-bool is_center_integer(typename float_info<T>::carrier_uint two_f, int exponent,
+-                       int minus_k) FMT_NOEXCEPT {
+-  // Exponent for 5 is negative.
+-  if (exponent > float_info<T>::divisibility_check_by_5_threshold) return false;
+-  if (exponent > float_info<T>::case_fc_upper_threshold)
+-    return divisible_by_power_of_5(two_f, minus_k);
+-  // Both exponents are nonnegative.
+-  if (exponent >= float_info<T>::case_fc_lower_threshold) return true;
+-  // Exponent for 2 is negative.
+-  return divisible_by_power_of_2(two_f, minus_k - exponent + 1);
+-}
+-
+-// Remove trailing zeros from n and return the number of zeros removed (float)
+-FMT_INLINE int remove_trailing_zeros(uint32_t& n) FMT_NOEXCEPT {
+-#ifdef FMT_BUILTIN_CTZ
+-  int t = FMT_BUILTIN_CTZ(n);
+-#else
+-  int t = ctz(n);
+-#endif
+-  if (t > float_info<float>::max_trailing_zeros)
+-    t = float_info<float>::max_trailing_zeros;
+-
+-  const uint32_t mod_inv1 = 0xcccccccd;
+-  const uint32_t max_quotient1 = 0x33333333;
+-  const uint32_t mod_inv2 = 0xc28f5c29;
+-  const uint32_t max_quotient2 = 0x0a3d70a3;
+-
+-  int s = 0;
+-  for (; s < t - 1; s += 2) {
+-    if (n * mod_inv2 > max_quotient2) break;
+-    n *= mod_inv2;
+-  }
+-  if (s < t && n * mod_inv1 <= max_quotient1) {
+-    n *= mod_inv1;
+-    ++s;
+-  }
+-  n >>= s;
+-  return s;
+-}
+-
+-// Removes trailing zeros and returns the number of zeros removed (double)
+-FMT_INLINE int remove_trailing_zeros(uint64_t& n) FMT_NOEXCEPT {
+-#ifdef FMT_BUILTIN_CTZLL
+-  int t = FMT_BUILTIN_CTZLL(n);
+-#else
+-  int t = ctzll(n);
+-#endif
+-  if (t > float_info<double>::max_trailing_zeros)
+-    t = float_info<double>::max_trailing_zeros;
+-  // Divide by 10^8 and reduce to 32-bits
+-  // Since ret_value.significand <= (2^64 - 1) / 1000 < 10^17,
+-  // both of the quotient and the r should fit in 32-bits
+-
+-  const uint32_t mod_inv1 = 0xcccccccd;
+-  const uint32_t max_quotient1 = 0x33333333;
+-  const uint64_t mod_inv8 = 0xc767074b22e90e21;
+-  const uint64_t max_quotient8 = 0x00002af31dc46118;
+-
+-  // If the number is divisible by 1'0000'0000, work with the quotient
+-  if (t >= 8) {
+-    auto quotient_candidate = n * mod_inv8;
+-
+-    if (quotient_candidate <= max_quotient8) {
+-      auto quotient = static_cast<uint32_t>(quotient_candidate >> 8);
+-
+-      int s = 8;
+-      for (; s < t; ++s) {
+-        if (quotient * mod_inv1 > max_quotient1) break;
+-        quotient *= mod_inv1;
+-      }
+-      quotient >>= (s - 8);
+-      n = quotient;
+-      return s;
+-    }
+-  }
+-
+-  // Otherwise, work with the remainder
+-  auto quotient = static_cast<uint32_t>(n / 100000000);
+-  auto remainder = static_cast<uint32_t>(n - 100000000 * quotient);
+-
+-  if (t == 0 || remainder * mod_inv1 > max_quotient1) {
+-    return 0;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 1 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 1) + quotient * 10000000ull;
+-    return 1;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 2 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 2) + quotient * 1000000ull;
+-    return 2;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 3 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 3) + quotient * 100000ull;
+-    return 3;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 4 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 4) + quotient * 10000ull;
+-    return 4;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 5 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 5) + quotient * 1000ull;
+-    return 5;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 6 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 6) + quotient * 100ull;
+-    return 6;
+-  }
+-  remainder *= mod_inv1;
+-
+-  n = (remainder >> 7) + quotient * 10ull;
+-  return 7;
+-}
+-
+-// The main algorithm for shorter interval case
+-template <class T>
+-FMT_INLINE decimal_fp<T> shorter_interval_case(int exponent) FMT_NOEXCEPT {
+-  decimal_fp<T> ret_value;
+-  // Compute k and beta
+-  const int minus_k = floor_log10_pow2_minus_log10_4_over_3(exponent);
+-  const int beta_minus_1 = exponent + floor_log2_pow10(-minus_k);
+-
+-  // Compute xi and zi
+-  using cache_entry_type = typename cache_accessor<T>::cache_entry_type;
+-  const cache_entry_type cache = cache_accessor<T>::get_cached_power(-minus_k);
+-
+-  auto xi = cache_accessor<T>::compute_left_endpoint_for_shorter_interval_case(
+-      cache, beta_minus_1);
+-  auto zi = cache_accessor<T>::compute_right_endpoint_for_shorter_interval_case(
+-      cache, beta_minus_1);
+-
+-  // If the left endpoint is not an integer, increase it
+-  if (!is_left_endpoint_integer_shorter_interval<T>(exponent)) ++xi;
+-
+-  // Try bigger divisor
+-  ret_value.significand = zi / 10;
+-
+-  // If succeed, remove trailing zeros if necessary and return
+-  if (ret_value.significand * 10 >= xi) {
+-    ret_value.exponent = minus_k + 1;
+-    ret_value.exponent += remove_trailing_zeros(ret_value.significand);
+-    return ret_value;
+-  }
+-
+-  // Otherwise, compute the round-up of y
+-  ret_value.significand =
+-      cache_accessor<T>::compute_round_up_for_shorter_interval_case(
+-          cache, beta_minus_1);
+-  ret_value.exponent = minus_k;
+-
+-  // When tie occurs, choose one of them according to the rule
+-  if (exponent >= float_info<T>::shorter_interval_tie_lower_threshold &&
+-      exponent <= float_info<T>::shorter_interval_tie_upper_threshold) {
+-    ret_value.significand = ret_value.significand % 2 == 0
+-                                ? ret_value.significand
+-                                : ret_value.significand - 1;
+-  } else if (ret_value.significand < xi) {
+-    ++ret_value.significand;
+-  }
+-  return ret_value;
+-}
+-
+-template <typename T> decimal_fp<T> to_decimal(T x) FMT_NOEXCEPT {
+-  // Step 1: integer promotion & Schubfach multiplier calculation.
+-
+-  using carrier_uint = typename float_info<T>::carrier_uint;
+-  using cache_entry_type = typename cache_accessor<T>::cache_entry_type;
+-  auto br = bit_cast<carrier_uint>(x);
+-
+-  // Extract significand bits and exponent bits.
+-  const carrier_uint significand_mask =
+-      (static_cast<carrier_uint>(1) << float_info<T>::significand_bits) - 1;
+-  carrier_uint significand = (br & significand_mask);
+-  int exponent = static_cast<int>((br & exponent_mask<T>()) >>
+-                                  float_info<T>::significand_bits);
+-
+-  if (exponent != 0) {  // Check if normal.
+-    exponent += float_info<T>::exponent_bias - float_info<T>::significand_bits;
+-
+-    // Shorter interval case; proceed like Schubfach.
+-    if (significand == 0) return shorter_interval_case<T>(exponent);
+-
+-    significand |=
+-        (static_cast<carrier_uint>(1) << float_info<T>::significand_bits);
+-  } else {
+-    // Subnormal case; the interval is always regular.
+-    if (significand == 0) return {0, 0};
+-    exponent = float_info<T>::min_exponent - float_info<T>::significand_bits;
+-  }
+-
+-  const bool include_left_endpoint = (significand % 2 == 0);
+-  const bool include_right_endpoint = include_left_endpoint;
+-
+-  // Compute k and beta.
+-  const int minus_k = floor_log10_pow2(exponent) - float_info<T>::kappa;
+-  const cache_entry_type cache = cache_accessor<T>::get_cached_power(-minus_k);
+-  const int beta_minus_1 = exponent + floor_log2_pow10(-minus_k);
+-
+-  // Compute zi and deltai
+-  // 10^kappa <= deltai < 10^(kappa + 1)
+-  const uint32_t deltai = cache_accessor<T>::compute_delta(cache, beta_minus_1);
+-  const carrier_uint two_fc = significand << 1;
+-  const carrier_uint two_fr = two_fc | 1;
+-  const carrier_uint zi =
+-      cache_accessor<T>::compute_mul(two_fr << beta_minus_1, cache);
+-
+-  // Step 2: Try larger divisor; remove trailing zeros if necessary
+-
+-  // Using an upper bound on zi, we might be able to optimize the division
+-  // better than the compiler; we are computing zi / big_divisor here
+-  decimal_fp<T> ret_value;
+-  ret_value.significand = divide_by_10_to_kappa_plus_1(zi);
+-  uint32_t r = static_cast<uint32_t>(zi - float_info<T>::big_divisor *
+-                                              ret_value.significand);
+-
+-  if (r > deltai) {
+-    goto small_divisor_case_label;
+-  } else if (r < deltai) {
+-    // Exclude the right endpoint if necessary
+-    if (r == 0 && !include_right_endpoint &&
+-        is_endpoint_integer<T>(two_fr, exponent, minus_k)) {
+-      --ret_value.significand;
+-      r = float_info<T>::big_divisor;
+-      goto small_divisor_case_label;
+-    }
+-  } else {
+-    // r == deltai; compare fractional parts
+-    // Check conditions in the order different from the paper
+-    // to take advantage of short-circuiting
+-    const carrier_uint two_fl = two_fc - 1;
+-    if ((!include_left_endpoint ||
+-         !is_endpoint_integer<T>(two_fl, exponent, minus_k)) &&
+-        !cache_accessor<T>::compute_mul_parity(two_fl, cache, beta_minus_1)) {
+-      goto small_divisor_case_label;
+-    }
+-  }
+-  ret_value.exponent = minus_k + float_info<T>::kappa + 1;
+-
+-  // We may need to remove trailing zeros
+-  ret_value.exponent += remove_trailing_zeros(ret_value.significand);
+-  return ret_value;
+-
+-  // Step 3: Find the significand with the smaller divisor
+-
+-small_divisor_case_label:
+-  ret_value.significand *= 10;
+-  ret_value.exponent = minus_k + float_info<T>::kappa;
+-
+-  const uint32_t mask = (1u << float_info<T>::kappa) - 1;
+-  auto dist = r - (deltai / 2) + (float_info<T>::small_divisor / 2);
+-
+-  // Is dist divisible by 2^kappa?
+-  if ((dist & mask) == 0) {
+-    const bool approx_y_parity =
+-        ((dist ^ (float_info<T>::small_divisor / 2)) & 1) != 0;
+-    dist >>= float_info<T>::kappa;
+-
+-    // Is dist divisible by 5^kappa?
+-    if (check_divisibility_and_divide_by_pow5<float_info<T>::kappa>(dist)) {
+-      ret_value.significand += dist;
+-
+-      // Check z^(f) >= epsilon^(f)
+-      // We have either yi == zi - epsiloni or yi == (zi - epsiloni) - 1,
+-      // where yi == zi - epsiloni if and only if z^(f) >= epsilon^(f)
+-      // Since there are only 2 possibilities, we only need to care about the
+-      // parity. Also, zi and r should have the same parity since the divisor
+-      // is an even number
+-      if (cache_accessor<T>::compute_mul_parity(two_fc, cache, beta_minus_1) !=
+-          approx_y_parity) {
+-        --ret_value.significand;
+-      } else {
+-        // If z^(f) >= epsilon^(f), we might have a tie
+-        // when z^(f) == epsilon^(f), or equivalently, when y is an integer
+-        if (is_center_integer<T>(two_fc, exponent, minus_k)) {
+-          ret_value.significand = ret_value.significand % 2 == 0
+-                                      ? ret_value.significand
+-                                      : ret_value.significand - 1;
+-        }
+-      }
+-    }
+-    // Is dist not divisible by 5^kappa?
+-    else {
+-      ret_value.significand += dist;
+-    }
+-  }
+-  // Is dist not divisible by 2^kappa?
+-  else {
+-    // Since we know dist is small, we might be able to optimize the division
+-    // better than the compiler; we are computing dist / small_divisor here
+-    ret_value.significand +=
+-        small_division_by_pow10<float_info<T>::kappa>(dist);
+-  }
+-  return ret_value;
+-}
+-}  // namespace dragonbox
+-
+-// Formats a floating-point number using a variation of the Fixed-Precision
+-// Positive Floating-Point Printout ((FPP)^2) algorithm by Steele & White:
+-// https://fmt.dev/papers/p372-steele.pdf.
+-FMT_CONSTEXPR20 inline void format_dragon(fp value, bool is_predecessor_closer,
+-                                          int num_digits, buffer<char>& buf,
+-                                          int& exp10) {
+-  bigint numerator;    // 2 * R in (FPP)^2.
+-  bigint denominator;  // 2 * S in (FPP)^2.
+-  // lower and upper are differences between value and corresponding boundaries.
+-  bigint lower;             // (M^- in (FPP)^2).
+-  bigint upper_store;       // upper's value if different from lower.
+-  bigint* upper = nullptr;  // (M^+ in (FPP)^2).
+-  // Shift numerator and denominator by an extra bit or two (if lower boundary
+-  // is closer) to make lower and upper integers. This eliminates multiplication
+-  // by 2 during later computations.
+-  int shift = is_predecessor_closer ? 2 : 1;
+-  uint64_t significand = value.f << shift;
+-  if (value.e >= 0) {
+-    numerator.assign(significand);
+-    numerator <<= value.e;
+-    lower.assign(1);
+-    lower <<= value.e;
+-    if (shift != 1) {
+-      upper_store.assign(1);
+-      upper_store <<= value.e + 1;
+-      upper = &upper_store;
+-    }
+-    denominator.assign_pow10(exp10);
+-    denominator <<= shift;
+-  } else if (exp10 < 0) {
+-    numerator.assign_pow10(-exp10);
+-    lower.assign(numerator);
+-    if (shift != 1) {
+-      upper_store.assign(numerator);
+-      upper_store <<= 1;
+-      upper = &upper_store;
+-    }
+-    numerator *= significand;
+-    denominator.assign(1);
+-    denominator <<= shift - value.e;
+-  } else {
+-    numerator.assign(significand);
+-    denominator.assign_pow10(exp10);
+-    denominator <<= shift - value.e;
+-    lower.assign(1);
+-    if (shift != 1) {
+-      upper_store.assign(1ULL << 1);
+-      upper = &upper_store;
+-    }
+-  }
+-  // Invariant: value == (numerator / denominator) * pow(10, exp10).
+-  if (num_digits < 0) {
+-    // Generate the shortest representation.
+-    if (!upper) upper = &lower;
+-    bool even = (value.f & 1) == 0;
+-    num_digits = 0;
+-    char* data = buf.data();
+-    for (;;) {
+-      int digit = numerator.divmod_assign(denominator);
+-      bool low = compare(numerator, lower) - even < 0;  // numerator <[=] lower.
+-      // numerator + upper >[=] pow10:
+-      bool high = add_compare(numerator, *upper, denominator) + even > 0;
+-      data[num_digits++] = static_cast<char>('0' + digit);
+-      if (low || high) {
+-        if (!low) {
+-          ++data[num_digits - 1];
+-        } else if (high) {
+-          int result = add_compare(numerator, numerator, denominator);
+-          // Round half to even.
+-          if (result > 0 || (result == 0 && (digit % 2) != 0))
+-            ++data[num_digits - 1];
+-        }
+-        buf.try_resize(to_unsigned(num_digits));
+-        exp10 -= num_digits - 1;
+-        return;
+-      }
+-      numerator *= 10;
+-      lower *= 10;
+-      if (upper != &lower) *upper *= 10;
+-    }
+-  }
+-  // Generate the given number of digits.
+-  exp10 -= num_digits - 1;
+-  if (num_digits == 0) {
+-    denominator *= 10;
+-    auto digit = add_compare(numerator, numerator, denominator) > 0 ? '1' : '0';
+-    buf.push_back(digit);
+-    return;
+-  }
+-  buf.try_resize(to_unsigned(num_digits));
+-  for (int i = 0; i < num_digits - 1; ++i) {
+-    int digit = numerator.divmod_assign(denominator);
+-    buf[i] = static_cast<char>('0' + digit);
+-    numerator *= 10;
+-  }
+-  int digit = numerator.divmod_assign(denominator);
+-  auto result = add_compare(numerator, numerator, denominator);
+-  if (result > 0 || (result == 0 && (digit % 2) != 0)) {
+-    if (digit == 9) {
+-      const auto overflow = '0' + 10;
+-      buf[num_digits - 1] = overflow;
+-      // Propagate the carry.
+-      for (int i = num_digits - 1; i > 0 && buf[i] == overflow; --i) {
+-        buf[i] = '0';
+-        ++buf[i - 1];
+-      }
+-      if (buf[0] == overflow) {
+-        buf[0] = '1';
+-        ++exp10;
+-      }
+-      return;
+-    }
+-    ++digit;
+-  }
+-  buf[num_digits - 1] = static_cast<char>('0' + digit);
+-}
+-
+-template <typename Float>
+-FMT_HEADER_ONLY_CONSTEXPR20 int format_float(Float value, int precision,
+-                                             float_specs specs,
+-                                             buffer<char>& buf) {
+-  // float is passed as double to reduce the number of instantiations.
+-  static_assert(!std::is_same<Float, float>::value, "");
+-  FMT_ASSERT(value >= 0, "value is negative");
+-
+-  const bool fixed = specs.format == float_format::fixed;
+-  if (value <= 0) {  // <= instead of == to silence a warning.
+-    if (precision <= 0 || !fixed) {
+-      buf.push_back('0');
+-      return 0;
+-    }
+-    buf.try_resize(to_unsigned(precision));
+-    fill_n(buf.data(), precision, '0');
+-    return -precision;
+-  }
+-
+-  if (specs.fallback) return snprintf_float(value, precision, specs, buf);
+-
+-  if (!is_constant_evaluated() && precision < 0) {
+-    // Use Dragonbox for the shortest format.
+-    if (specs.binary32) {
+-      auto dec = dragonbox::to_decimal(static_cast<float>(value));
+-      write<char>(buffer_appender<char>(buf), dec.significand);
+-      return dec.exponent;
+-    }
+-    auto dec = dragonbox::to_decimal(static_cast<double>(value));
+-    write<char>(buffer_appender<char>(buf), dec.significand);
+-    return dec.exponent;
+-  }
+-
+-  int exp = 0;
+-  bool use_dragon = true;
+-  if (is_fast_float<Float>()) {
+-    // Use Grisu + Dragon4 for the given precision:
+-    // https://www.cs.tufts.edu/~nr/cs257/archive/florian-loitsch/printf.pdf.
+-    const int min_exp = -60;  // alpha in Grisu.
+-    int cached_exp10 = 0;     // K in Grisu.
+-    fp normalized = normalize(fp(value));
+-    const auto cached_pow = get_cached_power(
+-        min_exp - (normalized.e + fp::num_significand_bits), cached_exp10);
+-    normalized = normalized * cached_pow;
+-    gen_digits_handler handler{buf.data(), 0, precision, -cached_exp10, fixed};
+-    if (grisu_gen_digits(normalized, 1, exp, handler) != digits::error &&
+-        !is_constant_evaluated()) {
+-      exp += handler.exp10;
+-      buf.try_resize(to_unsigned(handler.size));
+-      use_dragon = false;
+-    } else {
+-      exp += handler.size - cached_exp10 - 1;
+-      precision = handler.precision;
+-    }
+-  }
+-  if (use_dragon) {
+-    auto f = fp();
+-    bool is_predecessor_closer =
+-        specs.binary32 ? f.assign(static_cast<float>(value)) : f.assign(value);
+-    // Limit precision to the maximum possible number of significant digits in
+-    // an IEEE754 double because we don't need to generate zeros.
+-    const int max_double_digits = 767;
+-    if (precision > max_double_digits) precision = max_double_digits;
+-    format_dragon(f, is_predecessor_closer, precision, buf, exp);
+-  }
+-  if (!fixed && !specs.showpoint) {
+-    // Remove trailing zeros.
+-    auto num_digits = buf.size();
+-    while (num_digits > 0 && buf[num_digits - 1] == '0') {
+-      --num_digits;
+-      ++exp;
+-    }
+-    buf.try_resize(num_digits);
+-  }
+-  return exp;
+-}
+-
+-template <typename T>
+-int snprintf_float(T value, int precision, float_specs specs,
+-                   buffer<char>& buf) {
+-  // Buffer capacity must be non-zero, otherwise MSVC's vsnprintf_s will fail.
+-  FMT_ASSERT(buf.capacity() > buf.size(), "empty buffer");
+-  static_assert(!std::is_same<T, float>::value, "");
+-
+-  // Subtract 1 to account for the difference in precision since we use %e for
+-  // both general and exponent format.
+-  if (specs.format == float_format::general ||
+-      specs.format == float_format::exp)
+-    precision = (precision >= 0 ? precision : 6) - 1;
+-
+-  // Build the format string.
+-  enum { max_format_size = 7 };  // The longest format is "%#.*Le".
+-  char format[max_format_size];
+-  char* format_ptr = format;
+-  *format_ptr++ = '%';
+-  if (specs.showpoint && specs.format == float_format::hex) *format_ptr++ = '#';
+-  if (precision >= 0) {
+-    *format_ptr++ = '.';
+-    *format_ptr++ = '*';
+-  }
+-  if (std::is_same<T, long double>()) *format_ptr++ = 'L';
+-  *format_ptr++ = specs.format != float_format::hex
+-                      ? (specs.format == float_format::fixed ? 'f' : 'e')
+-                      : (specs.upper ? 'A' : 'a');
+-  *format_ptr = '\0';
+-
+-  // Format using snprintf.
+-  auto offset = buf.size();
+-  for (;;) {
+-    auto begin = buf.data() + offset;
+-    auto capacity = buf.capacity() - offset;
+-#ifdef FMT_FUZZ
+-    if (precision > 100000)
+-      throw std::runtime_error(
+-          "fuzz mode - avoid large allocation inside snprintf");
+-#endif
+-    // Suppress the warning about a nonliteral format string.
+-    // Cannot use auto because of a bug in MinGW (#1532).
+-    int (*snprintf_ptr)(char*, size_t, const char*, ...) = FMT_SNPRINTF;
+-    int result = precision >= 0
+-                     ? snprintf_ptr(begin, capacity, format, precision, value)
+-                     : snprintf_ptr(begin, capacity, format, value);
+-    if (result < 0) {
+-      // The buffer will grow exponentially.
+-      buf.try_reserve(buf.capacity() + 1);
+-      continue;
+-    }
+-    auto size = to_unsigned(result);
+-    // Size equal to capacity means that the last character was truncated.
+-    if (size >= capacity) {
+-      buf.try_reserve(size + offset + 1);  // Add 1 for the terminating '\0'.
+-      continue;
+-    }
+-    auto is_digit = [](char c) { return c >= '0' && c <= '9'; };
+-    if (specs.format == float_format::fixed) {
+-      if (precision == 0) {
+-        buf.try_resize(size);
+-        return 0;
+-      }
+-      // Find and remove the decimal point.
+-      auto end = begin + size, p = end;
+-      do {
+-        --p;
+-      } while (is_digit(*p));
+-      int fraction_size = static_cast<int>(end - p - 1);
+-      std::memmove(p, p + 1, to_unsigned(fraction_size));
+-      buf.try_resize(size - 1);
+-      return -fraction_size;
+-    }
+-    if (specs.format == float_format::hex) {
+-      buf.try_resize(size + offset);
+-      return 0;
+-    }
+-    // Find and parse the exponent.
+-    auto end = begin + size, exp_pos = end;
+-    do {
+-      --exp_pos;
+-    } while (*exp_pos != 'e');
+-    char sign = exp_pos[1];
+-    FMT_ASSERT(sign == '+' || sign == '-', "");
+-    int exp = 0;
+-    auto p = exp_pos + 2;  // Skip 'e' and sign.
+-    do {
+-      FMT_ASSERT(is_digit(*p), "");
+-      exp = exp * 10 + (*p++ - '0');
+-    } while (p != end);
+-    if (sign == '-') exp = -exp;
+-    int fraction_size = 0;
+-    if (exp_pos != begin + 1) {
+-      // Remove trailing zeros.
+-      auto fraction_end = exp_pos - 1;
+-      while (*fraction_end == '0') --fraction_end;
+-      // Move the fractional part left to get rid of the decimal point.
+-      fraction_size = static_cast<int>(fraction_end - begin - 1);
+-      std::memmove(begin + 1, begin + 2, to_unsigned(fraction_size));
+-    }
+-    buf.try_resize(to_unsigned(fraction_size) + offset + 1);
+-    return exp - fraction_size;
+-  }
+-}
+-}  // namespace detail
+-
+-template <> struct formatter<detail::bigint> {
+-  FMT_CONSTEXPR format_parse_context::iterator parse(
+-      format_parse_context& ctx) {
+-    return ctx.begin();
+-  }
+-
+-  format_context::iterator format(const detail::bigint& n,
+-                                  format_context& ctx) {
+-    auto out = ctx.out();
+-    bool first = true;
+-    for (auto i = n.bigits_.size(); i > 0; --i) {
+-      auto value = n.bigits_[i - 1u];
+-      if (first) {
+-        out = format_to(out, FMT_STRING("{:x}"), value);
+-        first = false;
+-        continue;
+-      }
+-      out = format_to(out, FMT_STRING("{:08x}"), value);
+-    }
+-    if (n.exp_ > 0)
+-      out = format_to(out, FMT_STRING("p{}"),
+-                      n.exp_ * detail::bigint::bigit_bits);
+-    return out;
+-  }
+-};
+-
+-FMT_FUNC detail::utf8_to_utf16::utf8_to_utf16(string_view s) {
+-  for_each_codepoint(s, [this](uint32_t cp, string_view) {
+-    if (cp == invalid_code_point) FMT_THROW(std::runtime_error("invalid utf8"));
+-    if (cp <= 0xFFFF) {
+-      buffer_.push_back(static_cast<wchar_t>(cp));
+-    } else {
+-      cp -= 0x10000;
+-      buffer_.push_back(static_cast<wchar_t>(0xD800 + (cp >> 10)));
+-      buffer_.push_back(static_cast<wchar_t>(0xDC00 + (cp & 0x3FF)));
+-    }
+-    return true;
+-  });
+-  buffer_.push_back(0);
+-}
+-
+-FMT_FUNC void format_system_error(detail::buffer<char>& out, int error_code,
+-                                  const char* message) FMT_NOEXCEPT {
+-  FMT_TRY {
+-    auto ec = std::error_code(error_code, std::generic_category());
+-    write(std::back_inserter(out), std::system_error(ec, message).what());
+-    return;
+-  }
+-  FMT_CATCH(...) {}
+-  format_error_code(out, error_code, message);
+-}
+-
+-FMT_FUNC void report_system_error(int error_code,
+-                                  const char* message) FMT_NOEXCEPT {
+-  report_error(format_system_error, error_code, message);
+-}
+-
+-// DEPRECATED!
+-// This function is defined here and not inline for ABI compatibility.
+-FMT_FUNC void detail::error_handler::on_error(const char* message) {
+-  throw_format_error(message);
+-}
+-
+-FMT_FUNC std::string vformat(string_view fmt, format_args args) {
+-  // Don't optimize the "{}" case to keep the binary size small and because it
+-  // can be better optimized in fmt::format anyway.
+-  auto buffer = memory_buffer();
+-  detail::vformat_to(buffer, fmt, args);
+-  return to_string(buffer);
+-}
+-
+-#ifdef _WIN32
+-namespace detail {
+-using dword = conditional_t<sizeof(long) == 4, unsigned long, unsigned>;
+-extern "C" __declspec(dllimport) int __stdcall WriteConsoleW(  //
+-    void*, const void*, dword, dword*, void*);
+-}  // namespace detail
+-#endif
+-
+-namespace detail {
+-FMT_FUNC void print(std::FILE* f, string_view text) {
+-#ifdef _WIN32
+-  auto fd = _fileno(f);
+-  if (_isatty(fd)) {
+-    detail::utf8_to_utf16 u16(string_view(text.data(), text.size()));
+-    auto written = detail::dword();
+-    if (detail::WriteConsoleW(reinterpret_cast<void*>(_get_osfhandle(fd)),
+-                              u16.c_str(), static_cast<uint32_t>(u16.size()),
+-                              &written, nullptr)) {
+-      return;
+-    }
+-    // Fallback to fwrite on failure. It can happen if the output has been
+-    // redirected to NUL.
+-  }
+-#endif
+-  detail::fwrite_fully(text.data(), 1, text.size(), f);
+-}
+-}  // namespace detail
+-
+-FMT_FUNC void vprint(std::FILE* f, string_view format_str, format_args args) {
+-  memory_buffer buffer;
+-  detail::vformat_to(buffer, format_str, args);
+-  detail::print(f, {buffer.data(), buffer.size()});
+-}
+-
+-#ifdef _WIN32
+-// Print assuming legacy (non-Unicode) encoding.
+-FMT_FUNC void detail::vprint_mojibake(std::FILE* f, string_view format_str,
+-                                      format_args args) {
+-  memory_buffer buffer;
+-  detail::vformat_to(buffer, format_str,
+-                     basic_format_args<buffer_context<char>>(args));
+-  fwrite_fully(buffer.data(), 1, buffer.size(), f);
+-}
+-#endif
+-
+-FMT_FUNC void vprint(string_view format_str, format_args args) {
+-  vprint(stdout, format_str, args);
+-}
+-
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_FORMAT_INL_H_
+diff --git a/include/dpp/fmt/format.h b/include/dpp/fmt/format.h
+deleted file mode 100644
+index ee69651..0000000
+--- a/include/dpp/fmt/format.h
++++ /dev/null
+@@ -1,3104 +0,0 @@
+-/*
+- Formatting library for C++
+-
+- Copyright (c) 2012 - present, Victor Zverovich
+-
+- 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.
+-
+- --- Optional exception to the license ---
+-
+- As an exception, if, as a result of your compiling your source code, portions
+- of this Software are embedded into a machine-executable object form of such
+- source code, you may redistribute such embedded portions in such object form
+- without including the above copyright and permission notices.
+- */
+-
+-#ifndef FMT_FORMAT_H_
+-#define FMT_FORMAT_H_
+-
+-#include <cmath>         // std::signbit
+-#include <cstdint>       // uint32_t
+-#include <limits>        // std::numeric_limits
+-#include <memory>        // std::uninitialized_copy
+-#include <stdexcept>     // std::runtime_error
+-#include <system_error>  // std::system_error
+-#include <utility>       // std::swap
+-
+-#ifdef __cpp_lib_bit_cast
+-#  include <bit>  // std::bitcast
+-#endif
+-
+-#include "core.h"
+-
+-#if FMT_GCC_VERSION
+-#  define FMT_GCC_VISIBILITY_HIDDEN __attribute__((visibility("hidden")))
+-#else
+-#  define FMT_GCC_VISIBILITY_HIDDEN
+-#endif
+-
+-#ifdef __NVCC__
+-#  define FMT_CUDA_VERSION (__CUDACC_VER_MAJOR__ * 100 + __CUDACC_VER_MINOR__)
+-#else
+-#  define FMT_CUDA_VERSION 0
+-#endif
+-
+-#ifdef __has_builtin
+-#  define FMT_HAS_BUILTIN(x) __has_builtin(x)
+-#else
+-#  define FMT_HAS_BUILTIN(x) 0
+-#endif
+-
+-#if FMT_GCC_VERSION || FMT_CLANG_VERSION
+-#  define FMT_NOINLINE __attribute__((noinline))
+-#else
+-#  define FMT_NOINLINE
+-#endif
+-
+-#if FMT_MSC_VER
+-#  define FMT_MSC_DEFAULT = default
+-#else
+-#  define FMT_MSC_DEFAULT
+-#endif
+-
+-#ifndef FMT_THROW
+-#  if FMT_EXCEPTIONS
+-#    if FMT_MSC_VER || FMT_NVCC
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-template <typename Exception> inline void do_throw(const Exception& x) {
+-  // Silence unreachable code warnings in MSVC and NVCC because these
+-  // are nearly impossible to fix in a generic code.
+-  volatile bool b = true;
+-  if (b) throw x;
+-}
+-}  // namespace detail
+-FMT_END_NAMESPACE
+-#      define FMT_THROW(x) detail::do_throw(x)
+-#    else
+-#      define FMT_THROW(x) throw x
+-#    endif
+-#  else
+-#    define FMT_THROW(x)               \
+-      do {                             \
+-        FMT_ASSERT(false, (x).what()); \
+-      } while (false)
+-#  endif
+-#endif
+-
+-#if FMT_EXCEPTIONS
+-#  define FMT_TRY try
+-#  define FMT_CATCH(x) catch (x)
+-#else
+-#  define FMT_TRY if (true)
+-#  define FMT_CATCH(x) if (false)
+-#endif
+-
+-#ifndef FMT_MAYBE_UNUSED
+-#  if FMT_HAS_CPP17_ATTRIBUTE(maybe_unused)
+-#    define FMT_MAYBE_UNUSED [[maybe_unused]]
+-#  else
+-#    define FMT_MAYBE_UNUSED
+-#  endif
+-#endif
+-
+-// Workaround broken [[deprecated]] in the Intel, PGI and NVCC compilers.
+-#if FMT_ICC_VERSION || defined(__PGI) || FMT_NVCC
+-#  define FMT_DEPRECATED_ALIAS
+-#else
+-#  define FMT_DEPRECATED_ALIAS FMT_DEPRECATED
+-#endif
+-
+-#ifndef FMT_USE_USER_DEFINED_LITERALS
+-// EDG based compilers (Intel, NVIDIA, Elbrus, etc), GCC and MSVC support UDLs.
+-#  if (FMT_HAS_FEATURE(cxx_user_literals) || FMT_GCC_VERSION >= 407 || \
+-       FMT_MSC_VER >= 1900) &&                                         \
+-      (!defined(__EDG_VERSION__) || __EDG_VERSION__ >= /* UDL feature */ 480)
+-#    define FMT_USE_USER_DEFINED_LITERALS 1
+-#  else
+-#    define FMT_USE_USER_DEFINED_LITERALS 0
+-#  endif
+-#endif
+-
+-// Defining FMT_REDUCE_INT_INSTANTIATIONS to 1, will reduce the number of
+-// integer formatter template instantiations to just one by only using the
+-// largest integer type. This results in a reduction in binary size but will
+-// cause a decrease in integer formatting performance.
+-#if !defined(FMT_REDUCE_INT_INSTANTIATIONS)
+-#  define FMT_REDUCE_INT_INSTANTIATIONS 0
+-#endif
+-
+-// __builtin_clz is broken in clang with Microsoft CodeGen:
+-// https://github.com/fmtlib/fmt/issues/519.
+-#if !FMT_MSC_VER
+-#  if FMT_HAS_BUILTIN(__builtin_clz) || FMT_GCC_VERSION || FMT_ICC_VERSION
+-#    define FMT_BUILTIN_CLZ(n) __builtin_clz(n)
+-#  endif
+-#  if FMT_HAS_BUILTIN(__builtin_clzll) || FMT_GCC_VERSION || FMT_ICC_VERSION
+-#    define FMT_BUILTIN_CLZLL(n) __builtin_clzll(n)
+-#  endif
+-#endif
+-
+-// __builtin_ctz is broken in Intel Compiler Classic on Windows:
+-// https://github.com/fmtlib/fmt/issues/2510.
+-#ifndef __ICL
+-#  if FMT_HAS_BUILTIN(__builtin_ctz) || FMT_GCC_VERSION || FMT_ICC_VERSION
+-#    define FMT_BUILTIN_CTZ(n) __builtin_ctz(n)
+-#  endif
+-#  if FMT_HAS_BUILTIN(__builtin_ctzll) || FMT_GCC_VERSION || FMT_ICC_VERSION
+-#    define FMT_BUILTIN_CTZLL(n) __builtin_ctzll(n)
+-#  endif
+-#endif
+-
+-#if FMT_MSC_VER
+-#  include <intrin.h>  // _BitScanReverse[64], _BitScanForward[64], _umul128
+-#endif
+-
+-// Some compilers masquerade as both MSVC and GCC-likes or otherwise support
+-// __builtin_clz and __builtin_clzll, so only define FMT_BUILTIN_CLZ using the
+-// MSVC intrinsics if the clz and clzll builtins are not available.
+-#if FMT_MSC_VER && !defined(FMT_BUILTIN_CLZLL) && !defined(FMT_BUILTIN_CTZLL)
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-// Avoid Clang with Microsoft CodeGen's -Wunknown-pragmas warning.
+-#  if !defined(__clang__)
+-#    pragma intrinsic(_BitScanForward)
+-#    pragma intrinsic(_BitScanReverse)
+-#    if defined(_WIN64)
+-#      pragma intrinsic(_BitScanForward64)
+-#      pragma intrinsic(_BitScanReverse64)
+-#    endif
+-#  endif
+-
+-inline auto clz(uint32_t x) -> int {
+-  unsigned long r = 0;
+-  _BitScanReverse(&r, x);
+-  FMT_ASSERT(x != 0, "");
+-  // Static analysis complains about using uninitialized data
+-  // "r", but the only way that can happen is if "x" is 0,
+-  // which the callers guarantee to not happen.
+-  FMT_MSC_WARNING(suppress : 6102)
+-  return 31 ^ static_cast<int>(r);
+-}
+-#  define FMT_BUILTIN_CLZ(n) detail::clz(n)
+-
+-inline auto clzll(uint64_t x) -> int {
+-  unsigned long r = 0;
+-#  ifdef _WIN64
+-  _BitScanReverse64(&r, x);
+-#  else
+-  // Scan the high 32 bits.
+-  if (_BitScanReverse(&r, static_cast<uint32_t>(x >> 32))) return 63 ^ (r + 32);
+-  // Scan the low 32 bits.
+-  _BitScanReverse(&r, static_cast<uint32_t>(x));
+-#  endif
+-  FMT_ASSERT(x != 0, "");
+-  FMT_MSC_WARNING(suppress : 6102)  // Suppress a bogus static analysis warning.
+-  return 63 ^ static_cast<int>(r);
+-}
+-#  define FMT_BUILTIN_CLZLL(n) detail::clzll(n)
+-
+-inline auto ctz(uint32_t x) -> int {
+-  unsigned long r = 0;
+-  _BitScanForward(&r, x);
+-  FMT_ASSERT(x != 0, "");
+-  FMT_MSC_WARNING(suppress : 6102)  // Suppress a bogus static analysis warning.
+-  return static_cast<int>(r);
+-}
+-#  define FMT_BUILTIN_CTZ(n) detail::ctz(n)
+-
+-inline auto ctzll(uint64_t x) -> int {
+-  unsigned long r = 0;
+-  FMT_ASSERT(x != 0, "");
+-  FMT_MSC_WARNING(suppress : 6102)  // Suppress a bogus static analysis warning.
+-#  ifdef _WIN64
+-  _BitScanForward64(&r, x);
+-#  else
+-  // Scan the low 32 bits.
+-  if (_BitScanForward(&r, static_cast<uint32_t>(x))) return static_cast<int>(r);
+-  // Scan the high 32 bits.
+-  _BitScanForward(&r, static_cast<uint32_t>(x >> 32));
+-  r += 32;
+-#  endif
+-  return static_cast<int>(r);
+-}
+-#  define FMT_BUILTIN_CTZLL(n) detail::ctzll(n)
+-}  // namespace detail
+-FMT_END_NAMESPACE
+-#endif
+-
+-#ifdef FMT_HEADER_ONLY
+-#  define FMT_HEADER_ONLY_CONSTEXPR20 FMT_CONSTEXPR20
+-#else
+-#  define FMT_HEADER_ONLY_CONSTEXPR20
+-#endif
+-
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-
+-template <typename Streambuf> class formatbuf : public Streambuf {
+- private:
+-  using char_type = typename Streambuf::char_type;
+-  using streamsize = decltype(std::declval<Streambuf>().sputn(nullptr, 0));
+-  using int_type = typename Streambuf::int_type;
+-  using traits_type = typename Streambuf::traits_type;
+-
+-  buffer<char_type>& buffer_;
+-
+- public:
+-  explicit formatbuf(buffer<char_type>& buf) : buffer_(buf) {}
+-
+- protected:
+-  // The put area is always empty. This makes the implementation simpler and has
+-  // the advantage that the streambuf and the buffer are always in sync and
+-  // sputc never writes into uninitialized memory. A disadvantage is that each
+-  // call to sputc always results in a (virtual) call to overflow. There is no
+-  // disadvantage here for sputn since this always results in a call to xsputn.
+-
+-  auto overflow(int_type ch) -> int_type override {
+-    if (!traits_type::eq_int_type(ch, traits_type::eof()))
+-      buffer_.push_back(static_cast<char_type>(ch));
+-    return ch;
+-  }
+-
+-  auto xsputn(const char_type* s, streamsize count) -> streamsize override {
+-    buffer_.append(s, s + count);
+-    return count;
+-  }
+-};
+-
+-// Implementation of std::bit_cast for pre-C++20.
+-template <typename To, typename From>
+-FMT_CONSTEXPR20 auto bit_cast(const From& from) -> To {
+-  static_assert(sizeof(To) == sizeof(From), "size mismatch");
+-#ifdef __cpp_lib_bit_cast
+-  if (is_constant_evaluated()) return std::bit_cast<To>(from);
+-#endif
+-  auto to = To();
+-  std::memcpy(&to, &from, sizeof(to));
+-  return to;
+-}
+-
+-inline auto is_big_endian() -> bool {
+-#ifdef _WIN32
+-  return false;
+-#elif defined(__BIG_ENDIAN__)
+-  return true;
+-#elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__)
+-  return __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__;
+-#else
+-  struct bytes {
+-    char data[sizeof(int)];
+-  };
+-  return bit_cast<bytes>(1).data[0] == 0;
+-#endif
+-}
+-
+-// A fallback implementation of uintptr_t for systems that lack it.
+-struct fallback_uintptr {
+-  unsigned char value[sizeof(void*)];
+-
+-  fallback_uintptr() = default;
+-  explicit fallback_uintptr(const void* p) {
+-    *this = bit_cast<fallback_uintptr>(p);
+-    if (const_check(is_big_endian())) {
+-      for (size_t i = 0, j = sizeof(void*) - 1; i < j; ++i, --j)
+-        std::swap(value[i], value[j]);
+-    }
+-  }
+-};
+-#ifdef UINTPTR_MAX
+-using uintptr_t = ::uintptr_t;
+-inline auto to_uintptr(const void* p) -> uintptr_t {
+-  return bit_cast<uintptr_t>(p);
+-}
+-#else
+-using uintptr_t = fallback_uintptr;
+-inline auto to_uintptr(const void* p) -> fallback_uintptr {
+-  return fallback_uintptr(p);
+-}
+-#endif
+-
+-// Returns the largest possible value for type T. Same as
+-// std::numeric_limits<T>::max() but shorter and not affected by the max macro.
+-template <typename T> constexpr auto max_value() -> T {
+-  return (std::numeric_limits<T>::max)();
+-}
+-template <typename T> constexpr auto num_bits() -> int {
+-  return std::numeric_limits<T>::digits;
+-}
+-// std::numeric_limits<T>::digits may return 0 for 128-bit ints.
+-template <> constexpr auto num_bits<int128_t>() -> int { return 128; }
+-template <> constexpr auto num_bits<uint128_t>() -> int { return 128; }
+-template <> constexpr auto num_bits<fallback_uintptr>() -> int {
+-  return static_cast<int>(sizeof(void*) *
+-                          std::numeric_limits<unsigned char>::digits);
+-}
+-
+-FMT_INLINE void assume(bool condition) {
+-  (void)condition;
+-#if FMT_HAS_BUILTIN(__builtin_assume)
+-  __builtin_assume(condition);
+-#endif
+-}
+-
+-// An approximation of iterator_t for pre-C++20 systems.
+-template <typename T>
+-using iterator_t = decltype(std::begin(std::declval<T&>()));
+-template <typename T> using sentinel_t = decltype(std::end(std::declval<T&>()));
+-
+-// A workaround for std::string not having mutable data() until C++17.
+-template <typename Char>
+-inline auto get_data(std::basic_string<Char>& s) -> Char* {
+-  return &s[0];
+-}
+-template <typename Container>
+-inline auto get_data(Container& c) -> typename Container::value_type* {
+-  return c.data();
+-}
+-
+-#if defined(_SECURE_SCL) && _SECURE_SCL
+-// Make a checked iterator to avoid MSVC warnings.
+-template <typename T> using checked_ptr = stdext::checked_array_iterator<T*>;
+-template <typename T>
+-constexpr auto make_checked(T* p, size_t size) -> checked_ptr<T> {
+-  return {p, size};
+-}
+-#else
+-template <typename T> using checked_ptr = T*;
+-template <typename T> constexpr auto make_checked(T* p, size_t) -> T* {
+-  return p;
+-}
+-#endif
+-
+-// Attempts to reserve space for n extra characters in the output range.
+-// Returns a pointer to the reserved range or a reference to it.
+-template <typename Container, FMT_ENABLE_IF(is_contiguous<Container>::value)>
+-#if FMT_CLANG_VERSION >= 307 && !FMT_ICC_VERSION
+-__attribute__((no_sanitize("undefined")))
+-#endif
+-inline auto
+-reserve(std::back_insert_iterator<Container> it, size_t n)
+-    -> checked_ptr<typename Container::value_type> {
+-  Container& c = get_container(it);
+-  size_t size = c.size();
+-  c.resize(size + n);
+-  return make_checked(get_data(c) + size, n);
+-}
+-
+-template <typename T>
+-inline auto reserve(buffer_appender<T> it, size_t n) -> buffer_appender<T> {
+-  buffer<T>& buf = get_container(it);
+-  buf.try_reserve(buf.size() + n);
+-  return it;
+-}
+-
+-template <typename Iterator>
+-constexpr auto reserve(Iterator& it, size_t) -> Iterator& {
+-  return it;
+-}
+-
+-template <typename OutputIt>
+-using reserve_iterator =
+-    remove_reference_t<decltype(reserve(std::declval<OutputIt&>(), 0))>;
+-
+-template <typename T, typename OutputIt>
+-constexpr auto to_pointer(OutputIt, size_t) -> T* {
+-  return nullptr;
+-}
+-template <typename T> auto to_pointer(buffer_appender<T> it, size_t n) -> T* {
+-  buffer<T>& buf = get_container(it);
+-  auto size = buf.size();
+-  if (buf.capacity() < size + n) return nullptr;
+-  buf.try_resize(size + n);
+-  return buf.data() + size;
+-}
+-
+-template <typename Container, FMT_ENABLE_IF(is_contiguous<Container>::value)>
+-inline auto base_iterator(std::back_insert_iterator<Container>& it,
+-                          checked_ptr<typename Container::value_type>)
+-    -> std::back_insert_iterator<Container> {
+-  return it;
+-}
+-
+-template <typename Iterator>
+-constexpr auto base_iterator(Iterator, Iterator it) -> Iterator {
+-  return it;
+-}
+-
+-// <algorithm> is spectacularly slow to compile in C++20 so use a simple fill_n
+-// instead (#1998).
+-template <typename OutputIt, typename Size, typename T>
+-FMT_CONSTEXPR auto fill_n(OutputIt out, Size count, const T& value)
+-    -> OutputIt {
+-  for (Size i = 0; i < count; ++i) *out++ = value;
+-  return out;
+-}
+-template <typename T, typename Size>
+-FMT_CONSTEXPR20 auto fill_n(T* out, Size count, char value) -> T* {
+-  if (is_constant_evaluated()) {
+-    return fill_n<T*, Size, T>(out, count, value);
+-  }
+-  std::memset(out, value, to_unsigned(count));
+-  return out + count;
+-}
+-
+-#ifdef __cpp_char8_t
+-using char8_type = char8_t;
+-#else
+-enum char8_type : unsigned char {};
+-#endif
+-
+-template <typename OutChar, typename InputIt, typename OutputIt>
+-FMT_CONSTEXPR FMT_NOINLINE auto copy_str_noinline(InputIt begin, InputIt end,
+-                                                  OutputIt out) -> OutputIt {
+-  return copy_str<OutChar>(begin, end, out);
+-}
+-
+-// A public domain branchless UTF-8 decoder by Christopher Wellons:
+-// https://github.com/skeeto/branchless-utf8
+-/* Decode the next character, c, from s, reporting errors in e.
+- *
+- * Since this is a branchless decoder, four bytes will be read from the
+- * buffer regardless of the actual length of the next character. This
+- * means the buffer _must_ have at least three bytes of zero padding
+- * following the end of the data stream.
+- *
+- * Errors are reported in e, which will be non-zero if the parsed
+- * character was somehow invalid: invalid byte sequence, non-canonical
+- * encoding, or a surrogate half.
+- *
+- * The function returns a pointer to the next character. When an error
+- * occurs, this pointer will be a guess that depends on the particular
+- * error, but it will always advance at least one byte.
+- */
+-FMT_CONSTEXPR inline auto utf8_decode(const char* s, uint32_t* c, int* e)
+-    -> const char* {
+-  constexpr const int masks[] = {0x00, 0x7f, 0x1f, 0x0f, 0x07};
+-  constexpr const uint32_t mins[] = {4194304, 0, 128, 2048, 65536};
+-  constexpr const int shiftc[] = {0, 18, 12, 6, 0};
+-  constexpr const int shifte[] = {0, 6, 4, 2, 0};
+-
+-  int len = code_point_length(s);
+-  const char* next = s + len;
+-
+-  // Assume a four-byte character and load four bytes. Unused bits are
+-  // shifted out.
+-  *c = uint32_t(s[0] & masks[len]) << 18;
+-  *c |= uint32_t(s[1] & 0x3f) << 12;
+-  *c |= uint32_t(s[2] & 0x3f) << 6;
+-  *c |= uint32_t(s[3] & 0x3f) << 0;
+-  *c >>= shiftc[len];
+-
+-  // Accumulate the various error conditions.
+-  using uchar = unsigned char;
+-  *e = (*c < mins[len]) << 6;       // non-canonical encoding
+-  *e |= ((*c >> 11) == 0x1b) << 7;  // surrogate half?
+-  *e |= (*c > 0x10FFFF) << 8;       // out of range?
+-  *e |= (uchar(s[1]) & 0xc0) >> 2;
+-  *e |= (uchar(s[2]) & 0xc0) >> 4;
+-  *e |= uchar(s[3]) >> 6;
+-  *e ^= 0x2a;  // top two bits of each tail byte correct?
+-  *e >>= shifte[len];
+-
+-  return next;
+-}
+-
+-constexpr uint32_t invalid_code_point = ~uint32_t();
+-
+-// Invokes f(cp, sv) for every code point cp in s with sv being the string view
+-// corresponding to the code point. cp is invalid_code_point on error.
+-template <typename F>
+-FMT_CONSTEXPR void for_each_codepoint(string_view s, F f) {
+-  auto decode = [f](const char* buf_ptr, const char* ptr) {
+-    auto cp = uint32_t();
+-    auto error = 0;
+-    auto end = utf8_decode(buf_ptr, &cp, &error);
+-    bool result = f(error ? invalid_code_point : cp,
+-                    string_view(ptr, to_unsigned(end - buf_ptr)));
+-    return result ? end : nullptr;
+-  };
+-  auto p = s.data();
+-  const size_t block_size = 4;  // utf8_decode always reads blocks of 4 chars.
+-  if (s.size() >= block_size) {
+-    for (auto end = p + s.size() - block_size + 1; p < end;) {
+-      p = decode(p, p);
+-      if (!p) return;
+-    }
+-  }
+-  if (auto num_chars_left = s.data() + s.size() - p) {
+-    char buf[2 * block_size - 1] = {};
+-    copy_str<char>(p, p + num_chars_left, buf);
+-    const char* buf_ptr = buf;
+-    do {
+-      auto end = decode(buf_ptr, p);
+-      if (!end) return;
+-      p += end - buf_ptr;
+-      buf_ptr = end;
+-    } while (buf_ptr - buf < num_chars_left);
+-  }
+-}
+-
+-template <typename Char>
+-inline auto compute_width(basic_string_view<Char> s) -> size_t {
+-  return s.size();
+-}
+-
+-// Computes approximate display width of a UTF-8 string.
+-FMT_CONSTEXPR inline size_t compute_width(string_view s) {
+-  size_t num_code_points = 0;
+-  // It is not a lambda for compatibility with C++14.
+-  struct count_code_points {
+-    size_t* count;
+-    FMT_CONSTEXPR auto operator()(uint32_t cp, string_view) const -> bool {
+-      *count += detail::to_unsigned(
+-          1 +
+-          (cp >= 0x1100 &&
+-           (cp <= 0x115f ||  // Hangul Jamo init. consonants
+-            cp == 0x2329 ||  // LEFT-POINTING ANGLE BRACKET
+-            cp == 0x232a ||  // RIGHT-POINTING ANGLE BRACKET
+-            // CJK ... Yi except IDEOGRAPHIC HALF FILL SPACE:
+-            (cp >= 0x2e80 && cp <= 0xa4cf && cp != 0x303f) ||
+-            (cp >= 0xac00 && cp <= 0xd7a3) ||    // Hangul Syllables
+-            (cp >= 0xf900 && cp <= 0xfaff) ||    // CJK Compatibility Ideographs
+-            (cp >= 0xfe10 && cp <= 0xfe19) ||    // Vertical Forms
+-            (cp >= 0xfe30 && cp <= 0xfe6f) ||    // CJK Compatibility Forms
+-            (cp >= 0xff00 && cp <= 0xff60) ||    // Fullwidth Forms
+-            (cp >= 0xffe0 && cp <= 0xffe6) ||    // Fullwidth Forms
+-            (cp >= 0x20000 && cp <= 0x2fffd) ||  // CJK
+-            (cp >= 0x30000 && cp <= 0x3fffd) ||
+-            // Miscellaneous Symbols and Pictographs + Emoticons:
+-            (cp >= 0x1f300 && cp <= 0x1f64f) ||
+-            // Supplemental Symbols and Pictographs:
+-            (cp >= 0x1f900 && cp <= 0x1f9ff))));
+-      return true;
+-    }
+-  };
+-  for_each_codepoint(s, count_code_points{&num_code_points});
+-  return num_code_points;
+-}
+-
+-inline auto compute_width(basic_string_view<char8_type> s) -> size_t {
+-  return compute_width(basic_string_view<char>(
+-      reinterpret_cast<const char*>(s.data()), s.size()));
+-}
+-
+-template <typename Char>
+-inline auto code_point_index(basic_string_view<Char> s, size_t n) -> size_t {
+-  size_t size = s.size();
+-  return n < size ? n : size;
+-}
+-
+-// Calculates the index of the nth code point in a UTF-8 string.
+-inline auto code_point_index(basic_string_view<char8_type> s, size_t n)
+-    -> size_t {
+-  const char8_type* data = s.data();
+-  size_t num_code_points = 0;
+-  for (size_t i = 0, size = s.size(); i != size; ++i) {
+-    if ((data[i] & 0xc0) != 0x80 && ++num_code_points > n) return i;
+-  }
+-  return s.size();
+-}
+-
+-template <typename T, bool = std::is_floating_point<T>::value>
+-struct is_fast_float : bool_constant<std::numeric_limits<T>::is_iec559 &&
+-                                     sizeof(T) <= sizeof(double)> {};
+-template <typename T> struct is_fast_float<T, false> : std::false_type {};
+-
+-#ifndef FMT_USE_FULL_CACHE_DRAGONBOX
+-#  define FMT_USE_FULL_CACHE_DRAGONBOX 0
+-#endif
+-
+-template <typename T>
+-template <typename U>
+-void buffer<T>::append(const U* begin, const U* end) {
+-  while (begin != end) {
+-    auto count = to_unsigned(end - begin);
+-    try_reserve(size_ + count);
+-    auto free_cap = capacity_ - size_;
+-    if (free_cap < count) count = free_cap;
+-    std::uninitialized_copy_n(begin, count, make_checked(ptr_ + size_, count));
+-    size_ += count;
+-    begin += count;
+-  }
+-}
+-
+-template <typename T, typename Enable = void>
+-struct is_locale : std::false_type {};
+-template <typename T>
+-struct is_locale<T, void_t<decltype(T::classic())>> : std::true_type {};
+-}  // namespace detail
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-// The number of characters to store in the basic_memory_buffer object itself
+-// to avoid dynamic memory allocation.
+-enum { inline_buffer_size = 500 };
+-
+-/**
+-  \rst
+-  A dynamically growing memory buffer for trivially copyable/constructible types
+-  with the first ``SIZE`` elements stored in the object itself.
+-
+-  You can use the ``memory_buffer`` type alias for ``char`` instead.
+-
+-  **Example**::
+-
+-     auto out = fmt::memory_buffer();
+-     format_to(std::back_inserter(out), "The answer is {}.", 42);
+-
+-  This will append the following output to the ``out`` object:
+-
+-  .. code-block:: none
+-
+-     The answer is 42.
+-
+-  The output can be converted to an ``std::string`` with ``to_string(out)``.
+-  \endrst
+- */
+-template <typename T, size_t SIZE = inline_buffer_size,
+-          typename Allocator = std::allocator<T>>
+-class basic_memory_buffer final : public detail::buffer<T> {
+- private:
+-  T store_[SIZE];
+-
+-  // Don't inherit from Allocator avoid generating type_info for it.
+-  Allocator alloc_;
+-
+-  // Deallocate memory allocated by the buffer.
+-  FMT_CONSTEXPR20 void deallocate() {
+-    T* data = this->data();
+-    if (data != store_) alloc_.deallocate(data, this->capacity());
+-  }
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t size) override;
+-
+- public:
+-  using value_type = T;
+-  using const_reference = const T&;
+-
+-  FMT_CONSTEXPR20 explicit basic_memory_buffer(
+-      const Allocator& alloc = Allocator())
+-      : alloc_(alloc) {
+-    this->set(store_, SIZE);
+-    if (detail::is_constant_evaluated()) {
+-      detail::fill_n(store_, SIZE, T{});
+-    }
+-  }
+-  FMT_CONSTEXPR20 ~basic_memory_buffer() { deallocate(); }
+-
+- private:
+-  // Move data from other to this buffer.
+-  FMT_CONSTEXPR20 void move(basic_memory_buffer& other) {
+-    alloc_ = std::move(other.alloc_);
+-    T* data = other.data();
+-    size_t size = other.size(), capacity = other.capacity();
+-    if (data == other.store_) {
+-      this->set(store_, capacity);
+-      if (detail::is_constant_evaluated()) {
+-        detail::copy_str<T>(other.store_, other.store_ + size,
+-                            detail::make_checked(store_, capacity));
+-      } else {
+-        std::uninitialized_copy(other.store_, other.store_ + size,
+-                                detail::make_checked(store_, capacity));
+-      }
+-    } else {
+-      this->set(data, capacity);
+-      // Set pointer to the inline array so that delete is not called
+-      // when deallocating.
+-      other.set(other.store_, 0);
+-    }
+-    this->resize(size);
+-  }
+-
+- public:
+-  /**
+-    \rst
+-    Constructs a :class:`fmt::basic_memory_buffer` object moving the content
+-    of the other object to it.
+-    \endrst
+-   */
+-  FMT_CONSTEXPR20 basic_memory_buffer(basic_memory_buffer&& other)
+-      FMT_NOEXCEPT {
+-    move(other);
+-  }
+-
+-  /**
+-    \rst
+-    Moves the content of the other ``basic_memory_buffer`` object to this one.
+-    \endrst
+-   */
+-  auto operator=(basic_memory_buffer&& other) FMT_NOEXCEPT
+-      -> basic_memory_buffer& {
+-    FMT_ASSERT(this != &other, "");
+-    deallocate();
+-    move(other);
+-    return *this;
+-  }
+-
+-  // Returns a copy of the allocator associated with this buffer.
+-  auto get_allocator() const -> Allocator { return alloc_; }
+-
+-  /**
+-    Resizes the buffer to contain *count* elements. If T is a POD type new
+-    elements may not be initialized.
+-   */
+-  FMT_CONSTEXPR20 void resize(size_t count) { this->try_resize(count); }
+-
+-  /** Increases the buffer capacity to *new_capacity*. */
+-  void reserve(size_t new_capacity) { this->try_reserve(new_capacity); }
+-
+-  // Directly append data into the buffer
+-  using detail::buffer<T>::append;
+-  template <typename ContiguousRange>
+-  void append(const ContiguousRange& range) {
+-    append(range.data(), range.data() + range.size());
+-  }
+-};
+-
+-template <typename T, size_t SIZE, typename Allocator>
+-FMT_CONSTEXPR20 void basic_memory_buffer<T, SIZE, Allocator>::grow(
+-    size_t size) {
+-#ifdef FMT_FUZZ
+-  if (size > 5000) throw std::runtime_error("fuzz mode - won't grow that much");
+-#endif
+-  const size_t max_size = std::allocator_traits<Allocator>::max_size(alloc_);
+-  size_t old_capacity = this->capacity();
+-  size_t new_capacity = old_capacity + old_capacity / 2;
+-  if (size > new_capacity)
+-    new_capacity = size;
+-  else if (new_capacity > max_size)
+-    new_capacity = size > max_size ? size : max_size;
+-  T* old_data = this->data();
+-  T* new_data =
+-      std::allocator_traits<Allocator>::allocate(alloc_, new_capacity);
+-  // The following code doesn't throw, so the raw pointer above doesn't leak.
+-  std::uninitialized_copy(old_data, old_data + this->size(),
+-                          detail::make_checked(new_data, new_capacity));
+-  this->set(new_data, new_capacity);
+-  // deallocate must not throw according to the standard, but even if it does,
+-  // the buffer already uses the new storage and will deallocate it in
+-  // destructor.
+-  if (old_data != store_) alloc_.deallocate(old_data, old_capacity);
+-}
+-
+-using memory_buffer = basic_memory_buffer<char>;
+-
+-template <typename T, size_t SIZE, typename Allocator>
+-struct is_contiguous<basic_memory_buffer<T, SIZE, Allocator>> : std::true_type {
+-};
+-
+-namespace detail {
+-FMT_API void print(std::FILE*, string_view);
+-}
+-
+-/** A formatting error such as invalid format string. */
+-FMT_CLASS_API
+-class FMT_API format_error : public std::runtime_error {
+- public:
+-  explicit format_error(const char* message) : std::runtime_error(message) {}
+-  explicit format_error(const std::string& message)
+-      : std::runtime_error(message) {}
+-  format_error(const format_error&) = default;
+-  format_error& operator=(const format_error&) = default;
+-  format_error(format_error&&) = default;
+-  format_error& operator=(format_error&&) = default;
+-  ~format_error() FMT_NOEXCEPT override FMT_MSC_DEFAULT;
+-};
+-
+-/**
+-  \rst
+-  Constructs a `~fmt::format_arg_store` object that contains references
+-  to arguments and can be implicitly converted to `~fmt::format_args`.
+-  If ``fmt`` is a compile-time string then `make_args_checked` checks
+-  its validity at compile time.
+-  \endrst
+- */
+-template <typename... Args, typename S, typename Char = char_t<S>>
+-FMT_INLINE auto make_args_checked(const S& fmt,
+-                                  const remove_reference_t<Args>&... args)
+-    -> format_arg_store<buffer_context<Char>, remove_reference_t<Args>...> {
+-  static_assert(
+-      detail::count<(
+-              std::is_base_of<detail::view, remove_reference_t<Args>>::value &&
+-              std::is_reference<Args>::value)...>() == 0,
+-      "passing views as lvalues is disallowed");
+-  detail::check_format_string<Args...>(fmt);
+-  return {args...};
+-}
+-
+-// compile-time support
+-namespace detail_exported {
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <typename Char, size_t N> struct fixed_string {
+-  constexpr fixed_string(const Char (&str)[N]) {
+-    detail::copy_str<Char, const Char*, Char*>(static_cast<const Char*>(str),
+-                                               str + N, data);
+-  }
+-  Char data[N]{};
+-};
+-#endif
+-
+-// Converts a compile-time string to basic_string_view.
+-template <typename Char, size_t N>
+-constexpr auto compile_string_to_view(const Char (&s)[N])
+-    -> basic_string_view<Char> {
+-  // Remove trailing NUL character if needed. Won't be present if this is used
+-  // with a raw character array (i.e. not defined as a string).
+-  return {s, N - (std::char_traits<Char>::to_int_type(s[N - 1]) == 0 ? 1 : 0)};
+-}
+-template <typename Char>
+-constexpr auto compile_string_to_view(detail::std_string_view<Char> s)
+-    -> basic_string_view<Char> {
+-  return {s.data(), s.size()};
+-}
+-}  // namespace detail_exported
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename T> struct is_integral : std::is_integral<T> {};
+-template <> struct is_integral<int128_t> : std::true_type {};
+-template <> struct is_integral<uint128_t> : std::true_type {};
+-
+-template <typename T>
+-using is_signed =
+-    std::integral_constant<bool, std::numeric_limits<T>::is_signed ||
+-                                     std::is_same<T, int128_t>::value>;
+-
+-// Returns true if value is negative, false otherwise.
+-// Same as `value < 0` but doesn't produce warnings if T is an unsigned type.
+-template <typename T, FMT_ENABLE_IF(is_signed<T>::value)>
+-FMT_CONSTEXPR auto is_negative(T value) -> bool {
+-  return value < 0;
+-}
+-template <typename T, FMT_ENABLE_IF(!is_signed<T>::value)>
+-FMT_CONSTEXPR auto is_negative(T) -> bool {
+-  return false;
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_CONSTEXPR auto is_supported_floating_point(T) -> uint16_t {
+-  return (std::is_same<T, float>::value && FMT_USE_FLOAT) ||
+-         (std::is_same<T, double>::value && FMT_USE_DOUBLE) ||
+-         (std::is_same<T, long double>::value && FMT_USE_LONG_DOUBLE);
+-}
+-
+-// Smallest of uint32_t, uint64_t, uint128_t that is large enough to
+-// represent all values of an integral type T.
+-template <typename T>
+-using uint32_or_64_or_128_t =
+-    conditional_t<num_bits<T>() <= 32 && !FMT_REDUCE_INT_INSTANTIATIONS,
+-                  uint32_t,
+-                  conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>>;
+-template <typename T>
+-using uint64_or_128_t = conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>;
+-
+-#define FMT_POWERS_OF_10(factor)                                             \
+-  factor * 10, (factor)*100, (factor)*1000, (factor)*10000, (factor)*100000, \
+-      (factor)*1000000, (factor)*10000000, (factor)*100000000,               \
+-      (factor)*1000000000
+-
+-// Converts value in the range [0, 100) to a string.
+-constexpr const char* digits2(size_t value) {
+-  // GCC generates slightly better code when value is pointer-size.
+-  return &"0001020304050607080910111213141516171819"
+-         "2021222324252627282930313233343536373839"
+-         "4041424344454647484950515253545556575859"
+-         "6061626364656667686970717273747576777879"
+-         "8081828384858687888990919293949596979899"[value * 2];
+-}
+-
+-// Sign is a template parameter to workaround a bug in gcc 4.8.
+-template <typename Char, typename Sign> constexpr Char sign(Sign s) {
+-#if !FMT_GCC_VERSION || FMT_GCC_VERSION >= 604
+-  static_assert(std::is_same<Sign, sign_t>::value, "");
+-#endif
+-  return static_cast<Char>("\0-+ "[s]);
+-}
+-
+-template <typename T> FMT_CONSTEXPR auto count_digits_fallback(T n) -> int {
+-  int count = 1;
+-  for (;;) {
+-    // Integer division is slow so do it for a group of four digits instead
+-    // of for every digit. The idea comes from the talk by Alexandrescu
+-    // "Three Optimization Tips for C++". See speed-test for a comparison.
+-    if (n < 10) return count;
+-    if (n < 100) return count + 1;
+-    if (n < 1000) return count + 2;
+-    if (n < 10000) return count + 3;
+-    n /= 10000u;
+-    count += 4;
+-  }
+-}
+-#if FMT_USE_INT128
+-FMT_CONSTEXPR inline auto count_digits(uint128_t n) -> int {
+-  return count_digits_fallback(n);
+-}
+-#endif
+-
+-#ifdef FMT_BUILTIN_CLZLL
+-// It is a separate function rather than a part of count_digits to workaround
+-// the lack of static constexpr in constexpr functions.
+-inline auto do_count_digits(uint64_t n) -> int {
+-  // This has comparable performance to the version by Kendall Willets
+-  // (https://github.com/fmtlib/format-benchmark/blob/master/digits10)
+-  // but uses smaller tables.
+-  // Maps bsr(n) to ceil(log10(pow(2, bsr(n) + 1) - 1)).
+-  static constexpr uint8_t bsr2log10[] = {
+-      1,  1,  1,  2,  2,  2,  3,  3,  3,  4,  4,  4,  4,  5,  5,  5,
+-      6,  6,  6,  7,  7,  7,  7,  8,  8,  8,  9,  9,  9,  10, 10, 10,
+-      10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 15, 15,
+-      15, 16, 16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 19, 20};
+-  auto t = bsr2log10[FMT_BUILTIN_CLZLL(n | 1) ^ 63];
+-  static constexpr const uint64_t zero_or_powers_of_10[] = {
+-      0, 0, FMT_POWERS_OF_10(1U), FMT_POWERS_OF_10(1000000000ULL),
+-      10000000000000000000ULL};
+-  return t - (n < zero_or_powers_of_10[t]);
+-}
+-#endif
+-
+-// Returns the number of decimal digits in n. Leading zeros are not counted
+-// except for n == 0 in which case count_digits returns 1.
+-FMT_CONSTEXPR20 inline auto count_digits(uint64_t n) -> int {
+-#ifdef FMT_BUILTIN_CLZLL
+-  if (!is_constant_evaluated()) {
+-    return do_count_digits(n);
+-  }
+-#endif
+-  return count_digits_fallback(n);
+-}
+-
+-// Counts the number of digits in n. BITS = log2(radix).
+-template <int BITS, typename UInt>
+-FMT_CONSTEXPR auto count_digits(UInt n) -> int {
+-#ifdef FMT_BUILTIN_CLZ
+-  if (num_bits<UInt>() == 32)
+-    return (FMT_BUILTIN_CLZ(static_cast<uint32_t>(n) | 1) ^ 31) / BITS + 1;
+-#endif
+-  // Lambda avoids unreachable code warnings from NVHPC.
+-  return [](UInt m) {
+-    int num_digits = 0;
+-    do {
+-      ++num_digits;
+-    } while ((m >>= BITS) != 0);
+-    return num_digits;
+-  }(n);
+-}
+-
+-template <> auto count_digits<4>(detail::fallback_uintptr n) -> int;
+-
+-#ifdef FMT_BUILTIN_CLZ
+-// It is a separate function rather than a part of count_digits to workaround
+-// the lack of static constexpr in constexpr functions.
+-FMT_INLINE auto do_count_digits(uint32_t n) -> int {
+-// An optimization by Kendall Willets from https://bit.ly/3uOIQrB.
+-// This increments the upper 32 bits (log10(T) - 1) when >= T is added.
+-#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
+-  static constexpr uint64_t table[] = {
+-      FMT_INC(0),          FMT_INC(0),          FMT_INC(0),           // 8
+-      FMT_INC(10),         FMT_INC(10),         FMT_INC(10),          // 64
+-      FMT_INC(100),        FMT_INC(100),        FMT_INC(100),         // 512
+-      FMT_INC(1000),       FMT_INC(1000),       FMT_INC(1000),        // 4096
+-      FMT_INC(10000),      FMT_INC(10000),      FMT_INC(10000),       // 32k
+-      FMT_INC(100000),     FMT_INC(100000),     FMT_INC(100000),      // 256k
+-      FMT_INC(1000000),    FMT_INC(1000000),    FMT_INC(1000000),     // 2048k
+-      FMT_INC(10000000),   FMT_INC(10000000),   FMT_INC(10000000),    // 16M
+-      FMT_INC(100000000),  FMT_INC(100000000),  FMT_INC(100000000),   // 128M
+-      FMT_INC(1000000000), FMT_INC(1000000000), FMT_INC(1000000000),  // 1024M
+-      FMT_INC(1000000000), FMT_INC(1000000000)                        // 4B
+-  };
+-  auto inc = table[FMT_BUILTIN_CLZ(n | 1) ^ 31];
+-  return static_cast<int>((n + inc) >> 32);
+-}
+-#endif
+-
+-// Optional version of count_digits for better performance on 32-bit platforms.
+-FMT_CONSTEXPR20 inline auto count_digits(uint32_t n) -> int {
+-#ifdef FMT_BUILTIN_CLZ
+-  if (!is_constant_evaluated()) {
+-    return do_count_digits(n);
+-  }
+-#endif
+-  return count_digits_fallback(n);
+-}
+-
+-template <typename Int> constexpr auto digits10() FMT_NOEXCEPT -> int {
+-  return std::numeric_limits<Int>::digits10;
+-}
+-template <> constexpr auto digits10<int128_t>() FMT_NOEXCEPT -> int {
+-  return 38;
+-}
+-template <> constexpr auto digits10<uint128_t>() FMT_NOEXCEPT -> int {
+-  return 38;
+-}
+-
+-template <typename Char> struct thousands_sep_result {
+-  std::string grouping;
+-  Char thousands_sep;
+-};
+-
+-template <typename Char>
+-FMT_API auto thousands_sep_impl(locale_ref loc) -> thousands_sep_result<Char>;
+-template <typename Char>
+-inline auto thousands_sep(locale_ref loc) -> thousands_sep_result<Char> {
+-  auto result = thousands_sep_impl<char>(loc);
+-  return {result.grouping, Char(result.thousands_sep)};
+-}
+-template <>
+-inline auto thousands_sep(locale_ref loc) -> thousands_sep_result<wchar_t> {
+-  return thousands_sep_impl<wchar_t>(loc);
+-}
+-
+-template <typename Char>
+-FMT_API auto decimal_point_impl(locale_ref loc) -> Char;
+-template <typename Char> inline auto decimal_point(locale_ref loc) -> Char {
+-  return Char(decimal_point_impl<char>(loc));
+-}
+-template <> inline auto decimal_point(locale_ref loc) -> wchar_t {
+-  return decimal_point_impl<wchar_t>(loc);
+-}
+-
+-// Compares two characters for equality.
+-template <typename Char> auto equal2(const Char* lhs, const char* rhs) -> bool {
+-  return lhs[0] == Char(rhs[0]) && lhs[1] == Char(rhs[1]);
+-}
+-inline auto equal2(const char* lhs, const char* rhs) -> bool {
+-  return memcmp(lhs, rhs, 2) == 0;
+-}
+-
+-// Copies two characters from src to dst.
+-template <typename Char>
+-FMT_CONSTEXPR20 FMT_INLINE void copy2(Char* dst, const char* src) {
+-  if (!is_constant_evaluated() && sizeof(Char) == sizeof(char)) {
+-    memcpy(dst, src, 2);
+-    return;
+-  }
+-  *dst++ = static_cast<Char>(*src++);
+-  *dst = static_cast<Char>(*src);
+-}
+-
+-template <typename Iterator> struct format_decimal_result {
+-  Iterator begin;
+-  Iterator end;
+-};
+-
+-// Formats a decimal unsigned integer value writing into out pointing to a
+-// buffer of specified size. The caller must ensure that the buffer is large
+-// enough.
+-template <typename Char, typename UInt>
+-FMT_CONSTEXPR20 auto format_decimal(Char* out, UInt value, int size)
+-    -> format_decimal_result<Char*> {
+-  FMT_ASSERT(size >= count_digits(value), "invalid digit count");
+-  out += size;
+-  Char* end = out;
+-  while (value >= 100) {
+-    // Integer division is slow so do it for a group of two digits instead
+-    // of for every digit. The idea comes from the talk by Alexandrescu
+-    // "Three Optimization Tips for C++". See speed-test for a comparison.
+-    out -= 2;
+-    copy2(out, digits2(static_cast<size_t>(value % 100)));
+-    value /= 100;
+-  }
+-  if (value < 10) {
+-    *--out = static_cast<Char>('0' + value);
+-    return {out, end};
+-  }
+-  out -= 2;
+-  copy2(out, digits2(static_cast<size_t>(value)));
+-  return {out, end};
+-}
+-
+-template <typename Char, typename UInt, typename Iterator,
+-          FMT_ENABLE_IF(!std::is_pointer<remove_cvref_t<Iterator>>::value)>
+-inline auto format_decimal(Iterator out, UInt value, int size)
+-    -> format_decimal_result<Iterator> {
+-  // Buffer is large enough to hold all digits (digits10 + 1).
+-  Char buffer[digits10<UInt>() + 1];
+-  auto end = format_decimal(buffer, value, size).end;
+-  return {out, detail::copy_str_noinline<Char>(buffer, end, out)};
+-}
+-
+-template <unsigned BASE_BITS, typename Char, typename UInt>
+-FMT_CONSTEXPR auto format_uint(Char* buffer, UInt value, int num_digits,
+-                               bool upper = false) -> Char* {
+-  buffer += num_digits;
+-  Char* end = buffer;
+-  do {
+-    const char* digits = upper ? "0123456789ABCDEF" : "0123456789abcdef";
+-    unsigned digit = (value & ((1 << BASE_BITS) - 1));
+-    *--buffer = static_cast<Char>(BASE_BITS < 4 ? static_cast<char>('0' + digit)
+-                                                : digits[digit]);
+-  } while ((value >>= BASE_BITS) != 0);
+-  return end;
+-}
+-
+-template <unsigned BASE_BITS, typename Char>
+-auto format_uint(Char* buffer, detail::fallback_uintptr n, int num_digits,
+-                 bool = false) -> Char* {
+-  auto char_digits = std::numeric_limits<unsigned char>::digits / 4;
+-  int start = (num_digits + char_digits - 1) / char_digits - 1;
+-  if (int start_digits = num_digits % char_digits) {
+-    unsigned value = n.value[start--];
+-    buffer = format_uint<BASE_BITS>(buffer, value, start_digits);
+-  }
+-  for (; start >= 0; --start) {
+-    unsigned value = n.value[start];
+-    buffer += char_digits;
+-    auto p = buffer;
+-    for (int i = 0; i < char_digits; ++i) {
+-      unsigned digit = (value & ((1 << BASE_BITS) - 1));
+-      *--p = static_cast<Char>("0123456789abcdef"[digit]);
+-      value >>= BASE_BITS;
+-    }
+-  }
+-  return buffer;
+-}
+-
+-template <unsigned BASE_BITS, typename Char, typename It, typename UInt>
+-inline auto format_uint(It out, UInt value, int num_digits, bool upper = false)
+-    -> It {
+-  if (auto ptr = to_pointer<Char>(out, to_unsigned(num_digits))) {
+-    format_uint<BASE_BITS>(ptr, value, num_digits, upper);
+-    return out;
+-  }
+-  // Buffer should be large enough to hold all digits (digits / BASE_BITS + 1).
+-  char buffer[num_bits<UInt>() / BASE_BITS + 1];
+-  format_uint<BASE_BITS>(buffer, value, num_digits, upper);
+-  return detail::copy_str_noinline<Char>(buffer, buffer + num_digits, out);
+-}
+-
+-// A converter from UTF-8 to UTF-16.
+-class utf8_to_utf16 {
+- private:
+-  basic_memory_buffer<wchar_t> buffer_;
+-
+- public:
+-  FMT_API explicit utf8_to_utf16(string_view s);
+-  operator basic_string_view<wchar_t>() const { return {&buffer_[0], size()}; }
+-  auto size() const -> size_t { return buffer_.size() - 1; }
+-  auto c_str() const -> const wchar_t* { return &buffer_[0]; }
+-  auto str() const -> std::wstring { return {&buffer_[0], size()}; }
+-};
+-
+-namespace dragonbox {
+-
+-// Type-specific information that Dragonbox uses.
+-template <class T> struct float_info;
+-
+-template <> struct float_info<float> {
+-  using carrier_uint = uint32_t;
+-  static const int significand_bits = 23;
+-  static const int exponent_bits = 8;
+-  static const int min_exponent = -126;
+-  static const int max_exponent = 127;
+-  static const int exponent_bias = -127;
+-  static const int decimal_digits = 9;
+-  static const int kappa = 1;
+-  static const int big_divisor = 100;
+-  static const int small_divisor = 10;
+-  static const int min_k = -31;
+-  static const int max_k = 46;
+-  static const int cache_bits = 64;
+-  static const int divisibility_check_by_5_threshold = 39;
+-  static const int case_fc_pm_half_lower_threshold = -1;
+-  static const int case_fc_pm_half_upper_threshold = 6;
+-  static const int case_fc_lower_threshold = -2;
+-  static const int case_fc_upper_threshold = 6;
+-  static const int case_shorter_interval_left_endpoint_lower_threshold = 2;
+-  static const int case_shorter_interval_left_endpoint_upper_threshold = 3;
+-  static const int shorter_interval_tie_lower_threshold = -35;
+-  static const int shorter_interval_tie_upper_threshold = -35;
+-  static const int max_trailing_zeros = 7;
+-};
+-
+-template <> struct float_info<double> {
+-  using carrier_uint = uint64_t;
+-  static const int significand_bits = 52;
+-  static const int exponent_bits = 11;
+-  static const int min_exponent = -1022;
+-  static const int max_exponent = 1023;
+-  static const int exponent_bias = -1023;
+-  static const int decimal_digits = 17;
+-  static const int kappa = 2;
+-  static const int big_divisor = 1000;
+-  static const int small_divisor = 100;
+-  static const int min_k = -292;
+-  static const int max_k = 326;
+-  static const int cache_bits = 128;
+-  static const int divisibility_check_by_5_threshold = 86;
+-  static const int case_fc_pm_half_lower_threshold = -2;
+-  static const int case_fc_pm_half_upper_threshold = 9;
+-  static const int case_fc_lower_threshold = -4;
+-  static const int case_fc_upper_threshold = 9;
+-  static const int case_shorter_interval_left_endpoint_lower_threshold = 2;
+-  static const int case_shorter_interval_left_endpoint_upper_threshold = 3;
+-  static const int shorter_interval_tie_lower_threshold = -77;
+-  static const int shorter_interval_tie_upper_threshold = -77;
+-  static const int max_trailing_zeros = 16;
+-};
+-
+-template <typename T> struct decimal_fp {
+-  using significand_type = typename float_info<T>::carrier_uint;
+-  significand_type significand;
+-  int exponent;
+-};
+-
+-template <typename T>
+-FMT_API auto to_decimal(T x) FMT_NOEXCEPT -> decimal_fp<T>;
+-}  // namespace dragonbox
+-
+-template <typename T>
+-constexpr auto exponent_mask() ->
+-    typename dragonbox::float_info<T>::carrier_uint {
+-  using uint = typename dragonbox::float_info<T>::carrier_uint;
+-  return ((uint(1) << dragonbox::float_info<T>::exponent_bits) - 1)
+-         << dragonbox::float_info<T>::significand_bits;
+-}
+-
+-// Writes the exponent exp in the form "[+-]d{2,3}" to buffer.
+-template <typename Char, typename It>
+-FMT_CONSTEXPR auto write_exponent(int exp, It it) -> It {
+-  FMT_ASSERT(-10000 < exp && exp < 10000, "exponent out of range");
+-  if (exp < 0) {
+-    *it++ = static_cast<Char>('-');
+-    exp = -exp;
+-  } else {
+-    *it++ = static_cast<Char>('+');
+-  }
+-  if (exp >= 100) {
+-    const char* top = digits2(to_unsigned(exp / 100));
+-    if (exp >= 1000) *it++ = static_cast<Char>(top[0]);
+-    *it++ = static_cast<Char>(top[1]);
+-    exp %= 100;
+-  }
+-  const char* d = digits2(to_unsigned(exp));
+-  *it++ = static_cast<Char>(d[0]);
+-  *it++ = static_cast<Char>(d[1]);
+-  return it;
+-}
+-
+-template <typename T>
+-FMT_HEADER_ONLY_CONSTEXPR20 auto format_float(T value, int precision,
+-                                              float_specs specs,
+-                                              buffer<char>& buf) -> int;
+-
+-// Formats a floating-point number with snprintf.
+-template <typename T>
+-auto snprintf_float(T value, int precision, float_specs specs,
+-                    buffer<char>& buf) -> int;
+-
+-template <typename T> constexpr auto promote_float(T value) -> T {
+-  return value;
+-}
+-constexpr auto promote_float(float value) -> double {
+-  return static_cast<double>(value);
+-}
+-
+-template <typename OutputIt, typename Char>
+-FMT_NOINLINE FMT_CONSTEXPR auto fill(OutputIt it, size_t n,
+-                                     const fill_t<Char>& fill) -> OutputIt {
+-  auto fill_size = fill.size();
+-  if (fill_size == 1) return detail::fill_n(it, n, fill[0]);
+-  auto data = fill.data();
+-  for (size_t i = 0; i < n; ++i)
+-    it = copy_str<Char>(data, data + fill_size, it);
+-  return it;
+-}
+-
+-// Writes the output of f, padded according to format specifications in specs.
+-// size: output size in code units.
+-// width: output display width in (terminal) column positions.
+-template <align::type align = align::left, typename OutputIt, typename Char,
+-          typename F>
+-FMT_CONSTEXPR auto write_padded(OutputIt out,
+-                                const basic_format_specs<Char>& specs,
+-                                size_t size, size_t width, F&& f) -> OutputIt {
+-  static_assert(align == align::left || align == align::right, "");
+-  unsigned spec_width = to_unsigned(specs.width);
+-  size_t padding = spec_width > width ? spec_width - width : 0;
+-  // Shifts are encoded as string literals because static constexpr is not
+-  // supported in constexpr functions.
+-  auto* shifts = align == align::left ? "\x1f\x1f\x00\x01" : "\x00\x1f\x00\x01";
+-  size_t left_padding = padding >> shifts[specs.align];
+-  size_t right_padding = padding - left_padding;
+-  auto it = reserve(out, size + padding * specs.fill.size());
+-  if (left_padding != 0) it = fill(it, left_padding, specs.fill);
+-  it = f(it);
+-  if (right_padding != 0) it = fill(it, right_padding, specs.fill);
+-  return base_iterator(out, it);
+-}
+-
+-template <align::type align = align::left, typename OutputIt, typename Char,
+-          typename F>
+-constexpr auto write_padded(OutputIt out, const basic_format_specs<Char>& specs,
+-                            size_t size, F&& f) -> OutputIt {
+-  return write_padded<align>(out, specs, size, size, f);
+-}
+-
+-template <align::type align = align::left, typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write_bytes(OutputIt out, string_view bytes,
+-                               const basic_format_specs<Char>& specs)
+-    -> OutputIt {
+-  return write_padded<align>(
+-      out, specs, bytes.size(), [bytes](reserve_iterator<OutputIt> it) {
+-        const char* data = bytes.data();
+-        return copy_str<Char>(data, data + bytes.size(), it);
+-      });
+-}
+-
+-template <typename Char, typename OutputIt, typename UIntPtr>
+-auto write_ptr(OutputIt out, UIntPtr value,
+-               const basic_format_specs<Char>* specs) -> OutputIt {
+-  int num_digits = count_digits<4>(value);
+-  auto size = to_unsigned(num_digits) + size_t(2);
+-  auto write = [=](reserve_iterator<OutputIt> it) {
+-    *it++ = static_cast<Char>('0');
+-    *it++ = static_cast<Char>('x');
+-    return format_uint<4, Char>(it, value, num_digits);
+-  };
+-  return specs ? write_padded<align::right>(out, *specs, size, write)
+-               : base_iterator(out, write(reserve(out, size)));
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write_char(OutputIt out, Char value,
+-                              const basic_format_specs<Char>& specs)
+-    -> OutputIt {
+-  return write_padded(out, specs, 1, [=](reserve_iterator<OutputIt> it) {
+-    *it++ = value;
+-    return it;
+-  });
+-}
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, Char value,
+-                         const basic_format_specs<Char>& specs,
+-                         locale_ref loc = {}) -> OutputIt {
+-  return check_char_specs(specs)
+-             ? write_char(out, value, specs)
+-             : write(out, static_cast<int>(value), specs, loc);
+-}
+-
+-// Data for write_int that doesn't depend on output iterator type. It is used to
+-// avoid template code bloat.
+-template <typename Char> struct write_int_data {
+-  size_t size;
+-  size_t padding;
+-
+-  FMT_CONSTEXPR write_int_data(int num_digits, unsigned prefix,
+-                               const basic_format_specs<Char>& specs)
+-      : size((prefix >> 24) + to_unsigned(num_digits)), padding(0) {
+-    if (specs.align == align::numeric) {
+-      auto width = to_unsigned(specs.width);
+-      if (width > size) {
+-        padding = width - size;
+-        size = width;
+-      }
+-    } else if (specs.precision > num_digits) {
+-      size = (prefix >> 24) + to_unsigned(specs.precision);
+-      padding = to_unsigned(specs.precision - num_digits);
+-    }
+-  }
+-};
+-
+-// Writes an integer in the format
+-//   <left-padding><prefix><numeric-padding><digits><right-padding>
+-// where <digits> are written by write_digits(it).
+-// prefix contains chars in three lower bytes and the size in the fourth byte.
+-template <typename OutputIt, typename Char, typename W>
+-FMT_CONSTEXPR FMT_INLINE auto write_int(OutputIt out, int num_digits,
+-                                        unsigned prefix,
+-                                        const basic_format_specs<Char>& specs,
+-                                        W write_digits) -> OutputIt {
+-  // Slightly faster check for specs.width == 0 && specs.precision == -1.
+-  if ((specs.width | (specs.precision + 1)) == 0) {
+-    auto it = reserve(out, to_unsigned(num_digits) + (prefix >> 24));
+-    if (prefix != 0) {
+-      for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8)
+-        *it++ = static_cast<Char>(p & 0xff);
+-    }
+-    return base_iterator(out, write_digits(it));
+-  }
+-  auto data = write_int_data<Char>(num_digits, prefix, specs);
+-  return write_padded<align::right>(
+-      out, specs, data.size, [=](reserve_iterator<OutputIt> it) {
+-        for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8)
+-          *it++ = static_cast<Char>(p & 0xff);
+-        it = detail::fill_n(it, data.padding, static_cast<Char>('0'));
+-        return write_digits(it);
+-      });
+-}
+-
+-template <typename Char> class digit_grouping {
+- private:
+-  thousands_sep_result<Char> sep_;
+-
+-  struct next_state {
+-    std::string::const_iterator group;
+-    int pos;
+-  };
+-  next_state initial_state() const { return {sep_.grouping.begin(), 0}; }
+-
+-  // Returns the next digit group separator position.
+-  int next(next_state& state) const {
+-    if (!sep_.thousands_sep) return max_value<int>();
+-    if (state.group == sep_.grouping.end())
+-      return state.pos += sep_.grouping.back();
+-    if (*state.group <= 0 || *state.group == max_value<char>())
+-      return max_value<int>();
+-    state.pos += *state.group++;
+-    return state.pos;
+-  }
+-
+- public:
+-  explicit digit_grouping(locale_ref loc, bool localized = true) {
+-    if (localized)
+-      sep_ = thousands_sep<Char>(loc);
+-    else
+-      sep_.thousands_sep = Char();
+-  }
+-  explicit digit_grouping(thousands_sep_result<Char> sep) : sep_(sep) {}
+-
+-  Char separator() const { return sep_.thousands_sep; }
+-
+-  int count_separators(int num_digits) const {
+-    int count = 0;
+-    auto state = initial_state();
+-    while (num_digits > next(state)) ++count;
+-    return count;
+-  }
+-
+-  // Applies grouping to digits and write the output to out.
+-  template <typename Out, typename C>
+-  Out apply(Out out, basic_string_view<C> digits) const {
+-    auto num_digits = static_cast<int>(digits.size());
+-    auto separators = basic_memory_buffer<int>();
+-    separators.push_back(0);
+-    auto state = initial_state();
+-    while (int i = next(state)) {
+-      if (i >= num_digits) break;
+-      separators.push_back(i);
+-    }
+-    for (int i = 0, sep_index = static_cast<int>(separators.size() - 1);
+-         i < num_digits; ++i) {
+-      if (num_digits - i == separators[sep_index]) {
+-        *out++ = separator();
+-        --sep_index;
+-      }
+-      *out++ = static_cast<Char>(digits[to_unsigned(i)]);
+-    }
+-    return out;
+-  }
+-};
+-
+-template <typename OutputIt, typename UInt, typename Char>
+-auto write_int_localized(OutputIt out, UInt value, unsigned prefix,
+-                         const basic_format_specs<Char>& specs,
+-                         const digit_grouping<Char>& grouping) -> OutputIt {
+-  static_assert(std::is_same<uint64_or_128_t<UInt>, UInt>::value, "");
+-  int num_digits = count_digits(value);
+-  char digits[40];
+-  format_decimal(digits, value, num_digits);
+-  unsigned size = to_unsigned((prefix != 0 ? 1 : 0) + num_digits +
+-                              grouping.count_separators(num_digits));
+-  return write_padded<align::right>(
+-      out, specs, size, size, [&](reserve_iterator<OutputIt> it) {
+-        if (prefix != 0) *it++ = static_cast<Char>(prefix);
+-        return grouping.apply(it, string_view(digits, to_unsigned(num_digits)));
+-      });
+-}
+-
+-template <typename OutputIt, typename UInt, typename Char>
+-auto write_int_localized(OutputIt& out, UInt value, unsigned prefix,
+-                         const basic_format_specs<Char>& specs, locale_ref loc)
+-    -> bool {
+-  auto grouping = digit_grouping<Char>(loc);
+-  out = write_int_localized(out, value, prefix, specs, grouping);
+-  return true;
+-}
+-
+-FMT_CONSTEXPR inline void prefix_append(unsigned& prefix, unsigned value) {
+-  prefix |= prefix != 0 ? value << 8 : value;
+-  prefix += (1u + (value > 0xff ? 1 : 0)) << 24;
+-}
+-
+-template <typename UInt> struct write_int_arg {
+-  UInt abs_value;
+-  unsigned prefix;
+-};
+-
+-template <typename T>
+-FMT_CONSTEXPR auto make_write_int_arg(T value, sign_t sign)
+-    -> write_int_arg<uint32_or_64_or_128_t<T>> {
+-  auto prefix = 0u;
+-  auto abs_value = static_cast<uint32_or_64_or_128_t<T>>(value);
+-  if (is_negative(value)) {
+-    prefix = 0x01000000 | '-';
+-    abs_value = 0 - abs_value;
+-  } else {
+-    constexpr const unsigned prefixes[4] = {0, 0, 0x1000000u | '+',
+-                                            0x1000000u | ' '};
+-    prefix = prefixes[sign];
+-  }
+-  return {abs_value, prefix};
+-}
+-
+-template <typename Char, typename OutputIt, typename T>
+-FMT_CONSTEXPR FMT_INLINE auto write_int(OutputIt out, write_int_arg<T> arg,
+-                                        const basic_format_specs<Char>& specs,
+-                                        locale_ref loc) -> OutputIt {
+-  static_assert(std::is_same<T, uint32_or_64_or_128_t<T>>::value, "");
+-  auto abs_value = arg.abs_value;
+-  auto prefix = arg.prefix;
+-  switch (specs.type) {
+-  case presentation_type::none:
+-  case presentation_type::dec: {
+-    if (specs.localized &&
+-        write_int_localized(out, static_cast<uint64_or_128_t<T>>(abs_value),
+-                            prefix, specs, loc)) {
+-      return out;
+-    }
+-    auto num_digits = count_digits(abs_value);
+-    return write_int(
+-        out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) {
+-          return format_decimal<Char>(it, abs_value, num_digits).end;
+-        });
+-  }
+-  case presentation_type::hex_lower:
+-  case presentation_type::hex_upper: {
+-    bool upper = specs.type == presentation_type::hex_upper;
+-    if (specs.alt)
+-      prefix_append(prefix, unsigned(upper ? 'X' : 'x') << 8 | '0');
+-    int num_digits = count_digits<4>(abs_value);
+-    return write_int(
+-        out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) {
+-          return format_uint<4, Char>(it, abs_value, num_digits, upper);
+-        });
+-  }
+-  case presentation_type::bin_lower:
+-  case presentation_type::bin_upper: {
+-    bool upper = specs.type == presentation_type::bin_upper;
+-    if (specs.alt)
+-      prefix_append(prefix, unsigned(upper ? 'B' : 'b') << 8 | '0');
+-    int num_digits = count_digits<1>(abs_value);
+-    return write_int(out, num_digits, prefix, specs,
+-                     [=](reserve_iterator<OutputIt> it) {
+-                       return format_uint<1, Char>(it, abs_value, num_digits);
+-                     });
+-  }
+-  case presentation_type::oct: {
+-    int num_digits = count_digits<3>(abs_value);
+-    // Octal prefix '0' is counted as a digit, so only add it if precision
+-    // is not greater than the number of digits.
+-    if (specs.alt && specs.precision <= num_digits && abs_value != 0)
+-      prefix_append(prefix, '0');
+-    return write_int(out, num_digits, prefix, specs,
+-                     [=](reserve_iterator<OutputIt> it) {
+-                       return format_uint<3, Char>(it, abs_value, num_digits);
+-                     });
+-  }
+-  case presentation_type::chr:
+-    return write_char(out, static_cast<Char>(abs_value), specs);
+-  default:
+-    throw_format_error("invalid type specifier");
+-  }
+-  return out;
+-}
+-template <typename Char, typename OutputIt, typename T>
+-FMT_CONSTEXPR FMT_NOINLINE auto write_int_noinline(
+-    OutputIt out, write_int_arg<T> arg, const basic_format_specs<Char>& specs,
+-    locale_ref loc) -> OutputIt {
+-  return write_int(out, arg, specs, loc);
+-}
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_integral<T>::value &&
+-                        !std::is_same<T, bool>::value &&
+-                        std::is_same<OutputIt, buffer_appender<Char>>::value)>
+-FMT_CONSTEXPR FMT_INLINE auto write(OutputIt out, T value,
+-                                    const basic_format_specs<Char>& specs,
+-                                    locale_ref loc) -> OutputIt {
+-  return write_int_noinline(out, make_write_int_arg(value, specs.sign), specs,
+-                            loc);
+-}
+-// An inlined version of write used in format string compilation.
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_integral<T>::value &&
+-                        !std::is_same<T, bool>::value &&
+-                        !std::is_same<OutputIt, buffer_appender<Char>>::value)>
+-FMT_CONSTEXPR FMT_INLINE auto write(OutputIt out, T value,
+-                                    const basic_format_specs<Char>& specs,
+-                                    locale_ref loc) -> OutputIt {
+-  return write_int(out, make_write_int_arg(value, specs.sign), specs, loc);
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s,
+-                         const basic_format_specs<Char>& specs) -> OutputIt {
+-  auto data = s.data();
+-  auto size = s.size();
+-  if (specs.precision >= 0 && to_unsigned(specs.precision) < size)
+-    size = code_point_index(s, to_unsigned(specs.precision));
+-  auto width =
+-      specs.width != 0 ? compute_width(basic_string_view<Char>(data, size)) : 0;
+-  return write_padded(out, specs, size, width,
+-                      [=](reserve_iterator<OutputIt> it) {
+-                        return copy_str<Char>(data, data + size, it);
+-                      });
+-}
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out,
+-                         basic_string_view<type_identity_t<Char>> s,
+-                         const basic_format_specs<Char>& specs, locale_ref)
+-    -> OutputIt {
+-  check_string_type_spec(specs.type);
+-  return write(out, s, specs);
+-}
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, const Char* s,
+-                         const basic_format_specs<Char>& specs, locale_ref)
+-    -> OutputIt {
+-  return check_cstring_type_spec(specs.type)
+-             ? write(out, basic_string_view<Char>(s), specs, {})
+-             : write_ptr<Char>(out, to_uintptr(s), &specs);
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR20 auto write_nonfinite(OutputIt out, bool isinf,
+-                                     basic_format_specs<Char> specs,
+-                                     const float_specs& fspecs) -> OutputIt {
+-  auto str =
+-      isinf ? (fspecs.upper ? "INF" : "inf") : (fspecs.upper ? "NAN" : "nan");
+-  constexpr size_t str_size = 3;
+-  auto sign = fspecs.sign;
+-  auto size = str_size + (sign ? 1 : 0);
+-  // Replace '0'-padding with space for non-finite values.
+-  const bool is_zero_fill =
+-      specs.fill.size() == 1 && *specs.fill.data() == static_cast<Char>('0');
+-  if (is_zero_fill) specs.fill[0] = static_cast<Char>(' ');
+-  return write_padded(out, specs, size, [=](reserve_iterator<OutputIt> it) {
+-    if (sign) *it++ = detail::sign<Char>(sign);
+-    return copy_str<Char>(str, str + str_size, it);
+-  });
+-}
+-
+-// A decimal floating-point number significand * pow(10, exp).
+-struct big_decimal_fp {
+-  const char* significand;
+-  int significand_size;
+-  int exponent;
+-};
+-
+-constexpr auto get_significand_size(const big_decimal_fp& fp) -> int {
+-  return fp.significand_size;
+-}
+-template <typename T>
+-inline auto get_significand_size(const dragonbox::decimal_fp<T>& fp) -> int {
+-  return count_digits(fp.significand);
+-}
+-
+-template <typename Char, typename OutputIt>
+-constexpr auto write_significand(OutputIt out, const char* significand,
+-                                 int significand_size) -> OutputIt {
+-  return copy_str<Char>(significand, significand + significand_size, out);
+-}
+-template <typename Char, typename OutputIt, typename UInt>
+-inline auto write_significand(OutputIt out, UInt significand,
+-                              int significand_size) -> OutputIt {
+-  return format_decimal<Char>(out, significand, significand_size).end;
+-}
+-template <typename Char, typename OutputIt, typename T, typename Grouping>
+-FMT_CONSTEXPR20 auto write_significand(OutputIt out, T significand,
+-                                       int significand_size, int exponent,
+-                                       const Grouping& grouping) -> OutputIt {
+-  if (!grouping.separator()) {
+-    out = write_significand<Char>(out, significand, significand_size);
+-    return detail::fill_n(out, exponent, static_cast<Char>('0'));
+-  }
+-  auto buffer = memory_buffer();
+-  write_significand<char>(appender(buffer), significand, significand_size);
+-  detail::fill_n(appender(buffer), exponent, '0');
+-  return grouping.apply(out, string_view(buffer.data(), buffer.size()));
+-}
+-
+-template <typename Char, typename UInt,
+-          FMT_ENABLE_IF(std::is_integral<UInt>::value)>
+-inline auto write_significand(Char* out, UInt significand, int significand_size,
+-                              int integral_size, Char decimal_point) -> Char* {
+-  if (!decimal_point)
+-    return format_decimal(out, significand, significand_size).end;
+-  out += significand_size + 1;
+-  Char* end = out;
+-  int floating_size = significand_size - integral_size;
+-  for (int i = floating_size / 2; i > 0; --i) {
+-    out -= 2;
+-    copy2(out, digits2(significand % 100));
+-    significand /= 100;
+-  }
+-  if (floating_size % 2 != 0) {
+-    *--out = static_cast<Char>('0' + significand % 10);
+-    significand /= 10;
+-  }
+-  *--out = decimal_point;
+-  format_decimal(out - integral_size, significand, integral_size);
+-  return end;
+-}
+-
+-template <typename OutputIt, typename UInt, typename Char,
+-          FMT_ENABLE_IF(!std::is_pointer<remove_cvref_t<OutputIt>>::value)>
+-inline auto write_significand(OutputIt out, UInt significand,
+-                              int significand_size, int integral_size,
+-                              Char decimal_point) -> OutputIt {
+-  // Buffer is large enough to hold digits (digits10 + 1) and a decimal point.
+-  Char buffer[digits10<UInt>() + 2];
+-  auto end = write_significand(buffer, significand, significand_size,
+-                               integral_size, decimal_point);
+-  return detail::copy_str_noinline<Char>(buffer, end, out);
+-}
+-
+-template <typename OutputIt, typename Char>
+-FMT_CONSTEXPR auto write_significand(OutputIt out, const char* significand,
+-                                     int significand_size, int integral_size,
+-                                     Char decimal_point) -> OutputIt {
+-  out = detail::copy_str_noinline<Char>(significand,
+-                                        significand + integral_size, out);
+-  if (!decimal_point) return out;
+-  *out++ = decimal_point;
+-  return detail::copy_str_noinline<Char>(significand + integral_size,
+-                                         significand + significand_size, out);
+-}
+-
+-template <typename OutputIt, typename Char, typename T, typename Grouping>
+-FMT_CONSTEXPR20 auto write_significand(OutputIt out, T significand,
+-                                       int significand_size, int integral_size,
+-                                       Char decimal_point,
+-                                       const Grouping& grouping) -> OutputIt {
+-  if (!grouping.separator()) {
+-    return write_significand(out, significand, significand_size, integral_size,
+-                             decimal_point);
+-  }
+-  auto buffer = basic_memory_buffer<Char>();
+-  write_significand(buffer_appender<Char>(buffer), significand,
+-                    significand_size, integral_size, decimal_point);
+-  grouping.apply(
+-      out, basic_string_view<Char>(buffer.data(), to_unsigned(integral_size)));
+-  return detail::copy_str_noinline<Char>(buffer.data() + integral_size,
+-                                         buffer.end(), out);
+-}
+-
+-template <typename OutputIt, typename DecimalFP, typename Char,
+-          typename Grouping = digit_grouping<Char>>
+-FMT_CONSTEXPR20 auto do_write_float(OutputIt out, const DecimalFP& fp,
+-                                    const basic_format_specs<Char>& specs,
+-                                    float_specs fspecs, locale_ref loc)
+-    -> OutputIt {
+-  auto significand = fp.significand;
+-  int significand_size = get_significand_size(fp);
+-  constexpr Char zero = static_cast<Char>('0');
+-  auto sign = fspecs.sign;
+-  size_t size = to_unsigned(significand_size) + (sign ? 1 : 0);
+-  using iterator = reserve_iterator<OutputIt>;
+-
+-  Char decimal_point =
+-      fspecs.locale ? detail::decimal_point<Char>(loc) : static_cast<Char>('.');
+-
+-  int output_exp = fp.exponent + significand_size - 1;
+-  auto use_exp_format = [=]() {
+-    if (fspecs.format == float_format::exp) return true;
+-    if (fspecs.format != float_format::general) return false;
+-    // Use the fixed notation if the exponent is in [exp_lower, exp_upper),
+-    // e.g. 0.0001 instead of 1e-04. Otherwise use the exponent notation.
+-    const int exp_lower = -4, exp_upper = 16;
+-    return output_exp < exp_lower ||
+-           output_exp >= (fspecs.precision > 0 ? fspecs.precision : exp_upper);
+-  };
+-  if (use_exp_format()) {
+-    int num_zeros = 0;
+-    if (fspecs.showpoint) {
+-      num_zeros = fspecs.precision - significand_size;
+-      if (num_zeros < 0) num_zeros = 0;
+-      size += to_unsigned(num_zeros);
+-    } else if (significand_size == 1) {
+-      decimal_point = Char();
+-    }
+-    auto abs_output_exp = output_exp >= 0 ? output_exp : -output_exp;
+-    int exp_digits = 2;
+-    if (abs_output_exp >= 100) exp_digits = abs_output_exp >= 1000 ? 4 : 3;
+-
+-    size += to_unsigned((decimal_point ? 1 : 0) + 2 + exp_digits);
+-    char exp_char = fspecs.upper ? 'E' : 'e';
+-    auto write = [=](iterator it) {
+-      if (sign) *it++ = detail::sign<Char>(sign);
+-      // Insert a decimal point after the first digit and add an exponent.
+-      it = write_significand(it, significand, significand_size, 1,
+-                             decimal_point);
+-      if (num_zeros > 0) it = detail::fill_n(it, num_zeros, zero);
+-      *it++ = static_cast<Char>(exp_char);
+-      return write_exponent<Char>(output_exp, it);
+-    };
+-    return specs.width > 0 ? write_padded<align::right>(out, specs, size, write)
+-                           : base_iterator(out, write(reserve(out, size)));
+-  }
+-
+-  int exp = fp.exponent + significand_size;
+-  if (fp.exponent >= 0) {
+-    // 1234e5 -> 123400000[.0+]
+-    size += to_unsigned(fp.exponent);
+-    int num_zeros = fspecs.precision - exp;
+-#ifdef FMT_FUZZ
+-    if (num_zeros > 5000)
+-      throw std::runtime_error("fuzz mode - avoiding excessive cpu use");
+-#endif
+-    if (fspecs.showpoint) {
+-      if (num_zeros <= 0 && fspecs.format != float_format::fixed) num_zeros = 1;
+-      if (num_zeros > 0) size += to_unsigned(num_zeros) + 1;
+-    }
+-    auto grouping = Grouping(loc, fspecs.locale);
+-    size += to_unsigned(grouping.count_separators(significand_size));
+-    return write_padded<align::right>(out, specs, size, [&](iterator it) {
+-      if (sign) *it++ = detail::sign<Char>(sign);
+-      it = write_significand<Char>(it, significand, significand_size,
+-                                   fp.exponent, grouping);
+-      if (!fspecs.showpoint) return it;
+-      *it++ = decimal_point;
+-      return num_zeros > 0 ? detail::fill_n(it, num_zeros, zero) : it;
+-    });
+-  } else if (exp > 0) {
+-    // 1234e-2 -> 12.34[0+]
+-    int num_zeros = fspecs.showpoint ? fspecs.precision - significand_size : 0;
+-    size += 1 + to_unsigned(num_zeros > 0 ? num_zeros : 0);
+-    auto grouping = Grouping(loc, fspecs.locale);
+-    size += to_unsigned(grouping.count_separators(significand_size));
+-    return write_padded<align::right>(out, specs, size, [&](iterator it) {
+-      if (sign) *it++ = detail::sign<Char>(sign);
+-      it = write_significand(it, significand, significand_size, exp,
+-                             decimal_point, grouping);
+-      return num_zeros > 0 ? detail::fill_n(it, num_zeros, zero) : it;
+-    });
+-  }
+-  // 1234e-6 -> 0.001234
+-  int num_zeros = -exp;
+-  if (significand_size == 0 && fspecs.precision >= 0 &&
+-      fspecs.precision < num_zeros) {
+-    num_zeros = fspecs.precision;
+-  }
+-  bool pointy = num_zeros != 0 || significand_size != 0 || fspecs.showpoint;
+-  size += 1 + (pointy ? 1 : 0) + to_unsigned(num_zeros);
+-  return write_padded<align::right>(out, specs, size, [&](iterator it) {
+-    if (sign) *it++ = detail::sign<Char>(sign);
+-    *it++ = zero;
+-    if (!pointy) return it;
+-    *it++ = decimal_point;
+-    it = detail::fill_n(it, num_zeros, zero);
+-    return write_significand<Char>(it, significand, significand_size);
+-  });
+-}
+-
+-template <typename Char> class fallback_digit_grouping {
+- public:
+-  constexpr fallback_digit_grouping(locale_ref, bool) {}
+-
+-  constexpr Char separator() const { return Char(); }
+-
+-  constexpr int count_separators(int) const { return 0; }
+-
+-  template <typename Out, typename C>
+-  constexpr Out apply(Out out, basic_string_view<C>) const {
+-    return out;
+-  }
+-};
+-
+-template <typename OutputIt, typename DecimalFP, typename Char>
+-FMT_CONSTEXPR20 auto write_float(OutputIt out, const DecimalFP& fp,
+-                                 const basic_format_specs<Char>& specs,
+-                                 float_specs fspecs, locale_ref loc)
+-    -> OutputIt {
+-  if (is_constant_evaluated()) {
+-    return do_write_float<OutputIt, DecimalFP, Char,
+-                          fallback_digit_grouping<Char>>(out, fp, specs, fspecs,
+-                                                         loc);
+-  } else {
+-    return do_write_float(out, fp, specs, fspecs, loc);
+-  }
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_CONSTEXPR20 bool isinf(T value) {
+-  if (is_constant_evaluated()) {
+-#if defined(__cpp_if_constexpr)
+-    if constexpr (std::numeric_limits<double>::is_iec559) {
+-      auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value));
+-      constexpr auto significand_bits =
+-          dragonbox::float_info<double>::significand_bits;
+-      return (bits & exponent_mask<double>()) &&
+-             !(bits & ((uint64_t(1) << significand_bits) - 1));
+-    }
+-#endif
+-  }
+-  return std::isinf(value);
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_CONSTEXPR20 bool isfinite(T value) {
+-  if (is_constant_evaluated()) {
+-#if defined(__cpp_if_constexpr)
+-    if constexpr (std::numeric_limits<double>::is_iec559) {
+-      auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value));
+-      return (bits & exponent_mask<double>()) != exponent_mask<double>();
+-    }
+-#endif
+-  }
+-  return std::isfinite(value);
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_INLINE FMT_CONSTEXPR bool signbit(T value) {
+-  if (is_constant_evaluated()) {
+-#ifdef __cpp_if_constexpr
+-    if constexpr (std::numeric_limits<double>::is_iec559) {
+-      auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value));
+-      return (bits & (uint64_t(1) << (num_bits<uint64_t>() - 1))) != 0;
+-    }
+-#endif
+-  }
+-  return std::signbit(value);
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_CONSTEXPR20 auto write(OutputIt out, T value,
+-                           basic_format_specs<Char> specs, locale_ref loc = {})
+-    -> OutputIt {
+-  if (const_check(!is_supported_floating_point(value))) return out;
+-  float_specs fspecs = parse_float_type_spec(specs);
+-  fspecs.sign = specs.sign;
+-  if (detail::signbit(value)) {  // value < 0 is false for NaN so use signbit.
+-    fspecs.sign = sign::minus;
+-    value = -value;
+-  } else if (fspecs.sign == sign::minus) {
+-    fspecs.sign = sign::none;
+-  }
+-
+-  if (!detail::isfinite(value))
+-    return write_nonfinite(out, detail::isinf(value), specs, fspecs);
+-
+-  if (specs.align == align::numeric && fspecs.sign) {
+-    auto it = reserve(out, 1);
+-    *it++ = detail::sign<Char>(fspecs.sign);
+-    out = base_iterator(out, it);
+-    fspecs.sign = sign::none;
+-    if (specs.width != 0) --specs.width;
+-  }
+-
+-  memory_buffer buffer;
+-  if (fspecs.format == float_format::hex) {
+-    if (fspecs.sign) buffer.push_back(detail::sign<char>(fspecs.sign));
+-    snprintf_float(promote_float(value), specs.precision, fspecs, buffer);
+-    return write_bytes<align::right>(out, {buffer.data(), buffer.size()},
+-                                     specs);
+-  }
+-  int precision = specs.precision >= 0 || specs.type == presentation_type::none
+-                      ? specs.precision
+-                      : 6;
+-  if (fspecs.format == float_format::exp) {
+-    if (precision == max_value<int>())
+-      throw_format_error("number is too big");
+-    else
+-      ++precision;
+-  }
+-  if (const_check(std::is_same<T, float>())) fspecs.binary32 = true;
+-  if (!is_fast_float<T>()) fspecs.fallback = true;
+-  int exp = format_float(promote_float(value), precision, fspecs, buffer);
+-  fspecs.precision = precision;
+-  auto fp = big_decimal_fp{buffer.data(), static_cast<int>(buffer.size()), exp};
+-  return write_float(out, fp, specs, fspecs, loc);
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_fast_float<T>::value)>
+-FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt {
+-  if (is_constant_evaluated()) {
+-    return write(out, value, basic_format_specs<Char>());
+-  }
+-
+-  if (const_check(!is_supported_floating_point(value))) return out;
+-
+-  using floaty = conditional_t<std::is_same<T, long double>::value, double, T>;
+-  using uint = typename dragonbox::float_info<floaty>::carrier_uint;
+-  auto bits = bit_cast<uint>(value);
+-
+-  auto fspecs = float_specs();
+-  if (detail::signbit(value)) {
+-    fspecs.sign = sign::minus;
+-    value = -value;
+-  }
+-
+-  constexpr auto specs = basic_format_specs<Char>();
+-  uint mask = exponent_mask<floaty>();
+-  if ((bits & mask) == mask)
+-    return write_nonfinite(out, std::isinf(value), specs, fspecs);
+-
+-  auto dec = dragonbox::to_decimal(static_cast<floaty>(value));
+-  return write_float(out, dec, specs, fspecs, {});
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_floating_point<T>::value &&
+-                        !is_fast_float<T>::value)>
+-inline auto write(OutputIt out, T value) -> OutputIt {
+-  return write(out, value, basic_format_specs<Char>());
+-}
+-
+-template <typename Char, typename OutputIt>
+-auto write(OutputIt out, monostate, basic_format_specs<Char> = {},
+-           locale_ref = {}) -> OutputIt {
+-  FMT_ASSERT(false, "");
+-  return out;
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> value)
+-    -> OutputIt {
+-  auto it = reserve(out, value.size());
+-  it = copy_str_noinline<Char>(value.begin(), value.end(), it);
+-  return base_iterator(out, it);
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_string<T>::value)>
+-constexpr auto write(OutputIt out, const T& value) -> OutputIt {
+-  return write<Char>(out, to_string_view(value));
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_integral<T>::value &&
+-                        !std::is_same<T, bool>::value &&
+-                        !std::is_same<T, Char>::value)>
+-FMT_CONSTEXPR auto write(OutputIt out, T value) -> OutputIt {
+-  auto abs_value = static_cast<uint32_or_64_or_128_t<T>>(value);
+-  bool negative = is_negative(value);
+-  // Don't do -abs_value since it trips unsigned-integer-overflow sanitizer.
+-  if (negative) abs_value = ~abs_value + 1;
+-  int num_digits = count_digits(abs_value);
+-  auto size = (negative ? 1 : 0) + static_cast<size_t>(num_digits);
+-  auto it = reserve(out, size);
+-  if (auto ptr = to_pointer<Char>(it, size)) {
+-    if (negative) *ptr++ = static_cast<Char>('-');
+-    format_decimal<Char>(ptr, abs_value, num_digits);
+-    return out;
+-  }
+-  if (negative) *it++ = static_cast<Char>('-');
+-  it = format_decimal<Char>(it, abs_value, num_digits).end;
+-  return base_iterator(out, it);
+-}
+-
+-// FMT_ENABLE_IF() condition separated to workaround an MSVC bug.
+-template <
+-    typename Char, typename OutputIt, typename T,
+-    bool check =
+-        std::is_enum<T>::value && !std::is_same<T, Char>::value &&
+-        mapped_type_constant<T, basic_format_context<OutputIt, Char>>::value !=
+-            type::custom_type,
+-    FMT_ENABLE_IF(check)>
+-FMT_CONSTEXPR auto write(OutputIt out, T value) -> OutputIt {
+-  return write<Char>(
+-      out, static_cast<typename std::underlying_type<T>::type>(value));
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_same<T, bool>::value)>
+-FMT_CONSTEXPR auto write(OutputIt out, T value,
+-                         const basic_format_specs<Char>& specs = {},
+-                         locale_ref = {}) -> OutputIt {
+-  return specs.type != presentation_type::none &&
+-                 specs.type != presentation_type::string
+-             ? write(out, value ? 1 : 0, specs, {})
+-             : write_bytes(out, value ? "true" : "false", specs);
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, Char value) -> OutputIt {
+-  auto it = reserve(out, 1);
+-  *it++ = value;
+-  return base_iterator(out, it);
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR_CHAR_TRAITS auto write(OutputIt out, const Char* value)
+-    -> OutputIt {
+-  if (!value) {
+-    throw_format_error("string pointer is null");
+-  } else {
+-    out = write(out, basic_string_view<Char>(value));
+-  }
+-  return out;
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_same<T, void>::value)>
+-auto write(OutputIt out, const T* value,
+-           const basic_format_specs<Char>& specs = {}, locale_ref = {})
+-    -> OutputIt {
+-  check_pointer_type_spec(specs.type, error_handler());
+-  return write_ptr<Char>(out, to_uintptr(value), &specs);
+-}
+-
+-// A write overload that handles implicit conversions.
+-template <typename Char, typename OutputIt, typename T,
+-          typename Context = basic_format_context<OutputIt, Char>>
+-FMT_CONSTEXPR auto write(OutputIt out, const T& value) -> enable_if_t<
+-    std::is_class<T>::value && !is_string<T>::value &&
+-        !std::is_same<T, Char>::value &&
+-        !std::is_same<const T&,
+-                      decltype(arg_mapper<Context>().map(value))>::value,
+-    OutputIt> {
+-  return write<Char>(out, arg_mapper<Context>().map(value));
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          typename Context = basic_format_context<OutputIt, Char>>
+-FMT_CONSTEXPR auto write(OutputIt out, const T& value)
+-    -> enable_if_t<mapped_type_constant<T, Context>::value == type::custom_type,
+-                   OutputIt> {
+-  using formatter_type =
+-      conditional_t<has_formatter<T, Context>::value,
+-                    typename Context::template formatter_type<T>,
+-                    fallback_formatter<T, Char>>;
+-  auto ctx = Context(out, {}, {});
+-  return formatter_type().format(value, ctx);
+-}
+-
+-// An argument visitor that formats the argument and writes it via the output
+-// iterator. It's a class and not a generic lambda for compatibility with C++11.
+-template <typename Char> struct default_arg_formatter {
+-  using iterator = buffer_appender<Char>;
+-  using context = buffer_context<Char>;
+-
+-  iterator out;
+-  basic_format_args<context> args;
+-  locale_ref loc;
+-
+-  template <typename T> auto operator()(T value) -> iterator {
+-    return write<Char>(out, value);
+-  }
+-  auto operator()(typename basic_format_arg<context>::handle h) -> iterator {
+-    basic_format_parse_context<Char> parse_ctx({});
+-    context format_ctx(out, args, loc);
+-    h.format(parse_ctx, format_ctx);
+-    return format_ctx.out();
+-  }
+-};
+-
+-template <typename Char> struct arg_formatter {
+-  using iterator = buffer_appender<Char>;
+-  using context = buffer_context<Char>;
+-
+-  iterator out;
+-  const basic_format_specs<Char>& specs;
+-  locale_ref locale;
+-
+-  template <typename T>
+-  FMT_CONSTEXPR FMT_INLINE auto operator()(T value) -> iterator {
+-    return detail::write(out, value, specs, locale);
+-  }
+-  auto operator()(typename basic_format_arg<context>::handle) -> iterator {
+-    // User-defined types are handled separately because they require access
+-    // to the parse context.
+-    return out;
+-  }
+-};
+-
+-template <typename Char> struct custom_formatter {
+-  basic_format_parse_context<Char>& parse_ctx;
+-  buffer_context<Char>& ctx;
+-
+-  void operator()(
+-      typename basic_format_arg<buffer_context<Char>>::handle h) const {
+-    h.format(parse_ctx, ctx);
+-  }
+-  template <typename T> void operator()(T) const {}
+-};
+-
+-template <typename T>
+-using is_integer =
+-    bool_constant<is_integral<T>::value && !std::is_same<T, bool>::value &&
+-                  !std::is_same<T, char>::value &&
+-                  !std::is_same<T, wchar_t>::value>;
+-
+-template <typename ErrorHandler> class width_checker {
+- public:
+-  explicit FMT_CONSTEXPR width_checker(ErrorHandler& eh) : handler_(eh) {}
+-
+-  template <typename T, FMT_ENABLE_IF(is_integer<T>::value)>
+-  FMT_CONSTEXPR auto operator()(T value) -> unsigned long long {
+-    if (is_negative(value)) handler_.on_error("negative width");
+-    return static_cast<unsigned long long>(value);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!is_integer<T>::value)>
+-  FMT_CONSTEXPR auto operator()(T) -> unsigned long long {
+-    handler_.on_error("width is not integer");
+-    return 0;
+-  }
+-
+- private:
+-  ErrorHandler& handler_;
+-};
+-
+-template <typename ErrorHandler> class precision_checker {
+- public:
+-  explicit FMT_CONSTEXPR precision_checker(ErrorHandler& eh) : handler_(eh) {}
+-
+-  template <typename T, FMT_ENABLE_IF(is_integer<T>::value)>
+-  FMT_CONSTEXPR auto operator()(T value) -> unsigned long long {
+-    if (is_negative(value)) handler_.on_error("negative precision");
+-    return static_cast<unsigned long long>(value);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!is_integer<T>::value)>
+-  FMT_CONSTEXPR auto operator()(T) -> unsigned long long {
+-    handler_.on_error("precision is not integer");
+-    return 0;
+-  }
+-
+- private:
+-  ErrorHandler& handler_;
+-};
+-
+-template <template <typename> class Handler, typename FormatArg,
+-          typename ErrorHandler>
+-FMT_CONSTEXPR auto get_dynamic_spec(FormatArg arg, ErrorHandler eh) -> int {
+-  unsigned long long value = visit_format_arg(Handler<ErrorHandler>(eh), arg);
+-  if (value > to_unsigned(max_value<int>())) eh.on_error("number is too big");
+-  return static_cast<int>(value);
+-}
+-
+-template <typename Context, typename ID>
+-FMT_CONSTEXPR auto get_arg(Context& ctx, ID id) ->
+-    typename Context::format_arg {
+-  auto arg = ctx.arg(id);
+-  if (!arg) ctx.on_error("argument not found");
+-  return arg;
+-}
+-
+-// The standard format specifier handler with checking.
+-template <typename Char> class specs_handler : public specs_setter<Char> {
+- private:
+-  basic_format_parse_context<Char>& parse_context_;
+-  buffer_context<Char>& context_;
+-
+-  // This is only needed for compatibility with gcc 4.4.
+-  using format_arg = basic_format_arg<buffer_context<Char>>;
+-
+-  FMT_CONSTEXPR auto get_arg(auto_id) -> format_arg {
+-    return detail::get_arg(context_, parse_context_.next_arg_id());
+-  }
+-
+-  FMT_CONSTEXPR auto get_arg(int arg_id) -> format_arg {
+-    parse_context_.check_arg_id(arg_id);
+-    return detail::get_arg(context_, arg_id);
+-  }
+-
+-  FMT_CONSTEXPR auto get_arg(basic_string_view<Char> arg_id) -> format_arg {
+-    parse_context_.check_arg_id(arg_id);
+-    return detail::get_arg(context_, arg_id);
+-  }
+-
+- public:
+-  FMT_CONSTEXPR specs_handler(basic_format_specs<Char>& specs,
+-                              basic_format_parse_context<Char>& parse_ctx,
+-                              buffer_context<Char>& ctx)
+-      : specs_setter<Char>(specs), parse_context_(parse_ctx), context_(ctx) {}
+-
+-  template <typename Id> FMT_CONSTEXPR void on_dynamic_width(Id arg_id) {
+-    this->specs_.width = get_dynamic_spec<width_checker>(
+-        get_arg(arg_id), context_.error_handler());
+-  }
+-
+-  template <typename Id> FMT_CONSTEXPR void on_dynamic_precision(Id arg_id) {
+-    this->specs_.precision = get_dynamic_spec<precision_checker>(
+-        get_arg(arg_id), context_.error_handler());
+-  }
+-
+-  void on_error(const char* message) { context_.on_error(message); }
+-};
+-
+-template <template <typename> class Handler, typename Context>
+-FMT_CONSTEXPR void handle_dynamic_spec(int& value,
+-                                       arg_ref<typename Context::char_type> ref,
+-                                       Context& ctx) {
+-  switch (ref.kind) {
+-  case arg_id_kind::none:
+-    break;
+-  case arg_id_kind::index:
+-    value = detail::get_dynamic_spec<Handler>(ctx.arg(ref.val.index),
+-                                              ctx.error_handler());
+-    break;
+-  case arg_id_kind::name:
+-    value = detail::get_dynamic_spec<Handler>(ctx.arg(ref.val.name),
+-                                              ctx.error_handler());
+-    break;
+-  }
+-}
+-
+-#define FMT_STRING_IMPL(s, base, explicit)                                 \
+-  [] {                                                                     \
+-    /* Use the hidden visibility as a workaround for a GCC bug (#1973). */ \
+-    /* Use a macro-like name to avoid shadowing warnings. */               \
+-    struct FMT_GCC_VISIBILITY_HIDDEN FMT_COMPILE_STRING : base {           \
+-      using char_type = fmt::remove_cvref_t<decltype(s[0])>;               \
+-      FMT_MAYBE_UNUSED FMT_CONSTEXPR explicit                              \
+-      operator fmt::basic_string_view<char_type>() const {                 \
+-        return fmt::detail_exported::compile_string_to_view<char_type>(s); \
+-      }                                                                    \
+-    };                                                                     \
+-    return FMT_COMPILE_STRING();                                           \
+-  }()
+-
+-/**
+-  \rst
+-  Constructs a compile-time format string from a string literal *s*.
+-
+-  **Example**::
+-
+-    // A compile-time error because 'd' is an invalid specifier for strings.
+-    std::string s = fmt::format(FMT_STRING("{:d}"), "foo");
+-  \endrst
+- */
+-#define FMT_STRING(s) FMT_STRING_IMPL(s, fmt::compile_string, )
+-
+-#if FMT_USE_USER_DEFINED_LITERALS
+-template <typename Char> struct udl_formatter {
+-  basic_string_view<Char> str;
+-
+-  template <typename... T>
+-  auto operator()(T&&... args) const -> std::basic_string<Char> {
+-    return vformat(str, fmt::make_args_checked<T...>(str, args...));
+-  }
+-};
+-
+-#  if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <typename T, typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct statically_named_arg : view {
+-  static constexpr auto name = Str.data;
+-
+-  const T& value;
+-  statically_named_arg(const T& v) : value(v) {}
+-};
+-
+-template <typename T, typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct is_named_arg<statically_named_arg<T, Char, N, Str>> : std::true_type {};
+-
+-template <typename T, typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct is_statically_named_arg<statically_named_arg<T, Char, N, Str>>
+-    : std::true_type {};
+-
+-template <typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct udl_arg {
+-  template <typename T> auto operator=(T&& value) const {
+-    return statically_named_arg<T, Char, N, Str>(std::forward<T>(value));
+-  }
+-};
+-#  else
+-template <typename Char> struct udl_arg {
+-  const Char* str;
+-
+-  template <typename T> auto operator=(T&& value) const -> named_arg<Char, T> {
+-    return {str, std::forward<T>(value)};
+-  }
+-};
+-#  endif
+-#endif  // FMT_USE_USER_DEFINED_LITERALS
+-
+-template <typename Locale, typename Char>
+-auto vformat(const Locale& loc, basic_string_view<Char> format_str,
+-             basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> std::basic_string<Char> {
+-  basic_memory_buffer<Char> buffer;
+-  detail::vformat_to(buffer, format_str, args, detail::locale_ref(loc));
+-  return {buffer.data(), buffer.size()};
+-}
+-
+-using format_func = void (*)(detail::buffer<char>&, int, const char*);
+-
+-FMT_API void format_error_code(buffer<char>& out, int error_code,
+-                               string_view message) FMT_NOEXCEPT;
+-
+-FMT_API void report_error(format_func func, int error_code,
+-                          const char* message) FMT_NOEXCEPT;
+-FMT_END_DETAIL_NAMESPACE
+-
+-FMT_API auto vsystem_error(int error_code, string_view format_str,
+-                           format_args args) -> std::system_error;
+-
+-/**
+- \rst
+- Constructs :class:`std::system_error` with a message formatted with
+- ``fmt::format(fmt, args...)``.
+-  *error_code* is a system error code as given by ``errno``.
+-
+- **Example**::
+-
+-   // This throws std::system_error with the description
+-   //   cannot open file 'madeup': No such file or directory
+-   // or similar (system message may vary).
+-   const char* filename = "madeup";
+-   std::FILE* file = std::fopen(filename, "r");
+-   if (!file)
+-     throw fmt::system_error(errno, "cannot open file '{}'", filename);
+- \endrst
+-*/
+-template <typename... T>
+-auto system_error(int error_code, format_string<T...> fmt, T&&... args)
+-    -> std::system_error {
+-  return vsystem_error(error_code, fmt, fmt::make_format_args(args...));
+-}
+-
+-/**
+-  \rst
+-  Formats an error message for an error returned by an operating system or a
+-  language runtime, for example a file opening error, and writes it to *out*.
+-  The format is the same as the one used by ``std::system_error(ec, message)``
+-  where ``ec`` is ``std::error_code(error_code, std::generic_category()})``.
+-  It is implementation-defined but normally looks like:
+-
+-  .. parsed-literal::
+-     *<message>*: *<system-message>*
+-
+-  where *<message>* is the passed message and *<system-message>* is the system
+-  message corresponding to the error code.
+-  *error_code* is a system error code as given by ``errno``.
+-  \endrst
+- */
+-FMT_API void format_system_error(detail::buffer<char>& out, int error_code,
+-                                 const char* message) FMT_NOEXCEPT;
+-
+-// Reports a system error without throwing an exception.
+-// Can be used to report errors from destructors.
+-FMT_API void report_system_error(int error_code,
+-                                 const char* message) FMT_NOEXCEPT;
+-
+-/** Fast integer formatter. */
+-class format_int {
+- private:
+-  // Buffer should be large enough to hold all digits (digits10 + 1),
+-  // a sign and a null character.
+-  enum { buffer_size = std::numeric_limits<unsigned long long>::digits10 + 3 };
+-  mutable char buffer_[buffer_size];
+-  char* str_;
+-
+-  template <typename UInt> auto format_unsigned(UInt value) -> char* {
+-    auto n = static_cast<detail::uint32_or_64_or_128_t<UInt>>(value);
+-    return detail::format_decimal(buffer_, n, buffer_size - 1).begin;
+-  }
+-
+-  template <typename Int> auto format_signed(Int value) -> char* {
+-    auto abs_value = static_cast<detail::uint32_or_64_or_128_t<Int>>(value);
+-    bool negative = value < 0;
+-    if (negative) abs_value = 0 - abs_value;
+-    auto begin = format_unsigned(abs_value);
+-    if (negative) *--begin = '-';
+-    return begin;
+-  }
+-
+- public:
+-  explicit format_int(int value) : str_(format_signed(value)) {}
+-  explicit format_int(long value) : str_(format_signed(value)) {}
+-  explicit format_int(long long value) : str_(format_signed(value)) {}
+-  explicit format_int(unsigned value) : str_(format_unsigned(value)) {}
+-  explicit format_int(unsigned long value) : str_(format_unsigned(value)) {}
+-  explicit format_int(unsigned long long value)
+-      : str_(format_unsigned(value)) {}
+-
+-  /** Returns the number of characters written to the output buffer. */
+-  auto size() const -> size_t {
+-    return detail::to_unsigned(buffer_ - str_ + buffer_size - 1);
+-  }
+-
+-  /**
+-    Returns a pointer to the output buffer content. No terminating null
+-    character is appended.
+-   */
+-  auto data() const -> const char* { return str_; }
+-
+-  /**
+-    Returns a pointer to the output buffer content with terminating null
+-    character appended.
+-   */
+-  auto c_str() const -> const char* {
+-    buffer_[buffer_size - 1] = '\0';
+-    return str_;
+-  }
+-
+-  /**
+-    \rst
+-    Returns the content of the output buffer as an ``std::string``.
+-    \endrst
+-   */
+-  auto str() const -> std::string { return std::string(str_, size()); }
+-};
+-
+-template <typename T, typename Char>
+-template <typename FormatContext>
+-FMT_CONSTEXPR FMT_INLINE auto
+-formatter<T, Char,
+-          enable_if_t<detail::type_constant<T, Char>::value !=
+-                      detail::type::custom_type>>::format(const T& val,
+-                                                          FormatContext& ctx)
+-    const -> decltype(ctx.out()) {
+-  if (specs_.width_ref.kind != detail::arg_id_kind::none ||
+-      specs_.precision_ref.kind != detail::arg_id_kind::none) {
+-    auto specs = specs_;
+-    detail::handle_dynamic_spec<detail::width_checker>(specs.width,
+-                                                       specs.width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(
+-        specs.precision, specs.precision_ref, ctx);
+-    return detail::write<Char>(ctx.out(), val, specs, ctx.locale());
+-  }
+-  return detail::write<Char>(ctx.out(), val, specs_, ctx.locale());
+-}
+-
+-#define FMT_FORMAT_AS(Type, Base)                                        \
+-  template <typename Char>                                               \
+-  struct formatter<Type, Char> : formatter<Base, Char> {                 \
+-    template <typename FormatContext>                                    \
+-    auto format(Type const& val, FormatContext& ctx) const               \
+-        -> decltype(ctx.out()) {                                         \
+-      return formatter<Base, Char>::format(static_cast<Base>(val), ctx); \
+-    }                                                                    \
+-  }
+-
+-FMT_FORMAT_AS(signed char, int);
+-FMT_FORMAT_AS(unsigned char, unsigned);
+-FMT_FORMAT_AS(short, int);
+-FMT_FORMAT_AS(unsigned short, unsigned);
+-FMT_FORMAT_AS(long, long long);
+-FMT_FORMAT_AS(unsigned long, unsigned long long);
+-FMT_FORMAT_AS(Char*, const Char*);
+-FMT_FORMAT_AS(std::basic_string<Char>, basic_string_view<Char>);
+-FMT_FORMAT_AS(std::nullptr_t, const void*);
+-FMT_FORMAT_AS(detail::byte, unsigned char);
+-FMT_FORMAT_AS(detail::std_string_view<Char>, basic_string_view<Char>);
+-
+-template <typename Char>
+-struct formatter<void*, Char> : formatter<const void*, Char> {
+-  template <typename FormatContext>
+-  auto format(void* val, FormatContext& ctx) const -> decltype(ctx.out()) {
+-    return formatter<const void*, Char>::format(val, ctx);
+-  }
+-};
+-
+-template <typename Char, size_t N>
+-struct formatter<Char[N], Char> : formatter<basic_string_view<Char>, Char> {
+-  template <typename FormatContext>
+-  FMT_CONSTEXPR auto format(const Char* val, FormatContext& ctx) const
+-      -> decltype(ctx.out()) {
+-    return formatter<basic_string_view<Char>, Char>::format(val, ctx);
+-  }
+-};
+-
+-// A formatter for types known only at run time such as variant alternatives.
+-//
+-// Usage:
+-//   using variant = std::variant<int, std::string>;
+-//   template <>
+-//   struct formatter<variant>: dynamic_formatter<> {
+-//     auto format(const variant& v, format_context& ctx) {
+-//       return visit([&](const auto& val) {
+-//           return dynamic_formatter<>::format(val, ctx);
+-//       }, v);
+-//     }
+-//   };
+-template <typename Char = char> class dynamic_formatter {
+- private:
+-  detail::dynamic_format_specs<Char> specs_;
+-  const Char* format_str_;
+-
+-  struct null_handler : detail::error_handler {
+-    void on_align(align_t) {}
+-    void on_sign(sign_t) {}
+-    void on_hash() {}
+-  };
+-
+-  template <typename Context> void handle_specs(Context& ctx) {
+-    detail::handle_dynamic_spec<detail::width_checker>(specs_.width,
+-                                                       specs_.width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(
+-        specs_.precision, specs_.precision_ref, ctx);
+-  }
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    format_str_ = ctx.begin();
+-    // Checks are deferred to formatting time when the argument type is known.
+-    detail::dynamic_specs_handler<ParseContext> handler(specs_, ctx);
+-    return detail::parse_format_specs(ctx.begin(), ctx.end(), handler);
+-  }
+-
+-  template <typename T, typename FormatContext>
+-  auto format(const T& val, FormatContext& ctx) -> decltype(ctx.out()) {
+-    handle_specs(ctx);
+-    detail::specs_checker<null_handler> checker(
+-        null_handler(), detail::mapped_type_constant<T, FormatContext>::value);
+-    checker.on_align(specs_.align);
+-    if (specs_.sign != sign::none) checker.on_sign(specs_.sign);
+-    if (specs_.alt) checker.on_hash();
+-    if (specs_.precision >= 0) checker.end_precision();
+-    return detail::write<Char>(ctx.out(), val, specs_, ctx.locale());
+-  }
+-};
+-
+-/**
+-  \rst
+-  Converts ``p`` to ``const void*`` for pointer formatting.
+-
+-  **Example**::
+-
+-    auto s = fmt::format("{}", fmt::ptr(p));
+-  \endrst
+- */
+-template <typename T> auto ptr(T p) -> const void* {
+-  static_assert(std::is_pointer<T>::value, "");
+-  return detail::bit_cast<const void*>(p);
+-}
+-template <typename T> auto ptr(const std::unique_ptr<T>& p) -> const void* {
+-  return p.get();
+-}
+-template <typename T> auto ptr(const std::shared_ptr<T>& p) -> const void* {
+-  return p.get();
+-}
+-
+-class bytes {
+- private:
+-  string_view data_;
+-  friend struct formatter<bytes>;
+-
+- public:
+-  explicit bytes(string_view data) : data_(data) {}
+-};
+-
+-template <> struct formatter<bytes> {
+- private:
+-  detail::dynamic_format_specs<char> specs_;
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    using handler_type = detail::dynamic_specs_handler<ParseContext>;
+-    detail::specs_checker<handler_type> handler(handler_type(specs_, ctx),
+-                                                detail::type::string_type);
+-    auto it = parse_format_specs(ctx.begin(), ctx.end(), handler);
+-    detail::check_string_type_spec(specs_.type, ctx.error_handler());
+-    return it;
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(bytes b, FormatContext& ctx) -> decltype(ctx.out()) {
+-    detail::handle_dynamic_spec<detail::width_checker>(specs_.width,
+-                                                       specs_.width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(
+-        specs_.precision, specs_.precision_ref, ctx);
+-    return detail::write_bytes(ctx.out(), b.data_, specs_);
+-  }
+-};
+-
+-// group_digits_view is not derived from view because it copies the argument.
+-template <typename T> struct group_digits_view { T value; };
+-
+-/**
+-  \rst
+-  Returns a view that formats an integer value using ',' as a locale-independent
+-  thousands separator.
+-
+-  **Example**::
+-
+-    fmt::print("{}", fmt::group_digits(12345));
+-    // Output: "12,345"
+-  \endrst
+- */
+-template <typename T> auto group_digits(T value) -> group_digits_view<T> {
+-  return {value};
+-}
+-
+-template <typename T> struct formatter<group_digits_view<T>> : formatter<T> {
+- private:
+-  detail::dynamic_format_specs<char> specs_;
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    using handler_type = detail::dynamic_specs_handler<ParseContext>;
+-    detail::specs_checker<handler_type> handler(handler_type(specs_, ctx),
+-                                                detail::type::int_type);
+-    auto it = parse_format_specs(ctx.begin(), ctx.end(), handler);
+-    detail::check_string_type_spec(specs_.type, ctx.error_handler());
+-    return it;
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(group_digits_view<T> t, FormatContext& ctx)
+-      -> decltype(ctx.out()) {
+-    detail::handle_dynamic_spec<detail::width_checker>(specs_.width,
+-                                                       specs_.width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(
+-        specs_.precision, specs_.precision_ref, ctx);
+-    return detail::write_int_localized(
+-        ctx.out(), static_cast<detail::uint64_or_128_t<T>>(t.value), 0, specs_,
+-        detail::digit_grouping<char>({"\3", ','}));
+-  }
+-};
+-
+-template <typename It, typename Sentinel, typename Char = char>
+-struct join_view : detail::view {
+-  It begin;
+-  Sentinel end;
+-  basic_string_view<Char> sep;
+-
+-  join_view(It b, Sentinel e, basic_string_view<Char> s)
+-      : begin(b), end(e), sep(s) {}
+-};
+-
+-template <typename It, typename Sentinel, typename Char>
+-using arg_join FMT_DEPRECATED_ALIAS = join_view<It, Sentinel, Char>;
+-
+-template <typename It, typename Sentinel, typename Char>
+-struct formatter<join_view<It, Sentinel, Char>, Char> {
+- private:
+-  using value_type =
+-#ifdef __cpp_lib_ranges
+-      std::iter_value_t<It>;
+-#else
+-      typename std::iterator_traits<It>::value_type;
+-#endif
+-  using context = buffer_context<Char>;
+-  using mapper = detail::arg_mapper<context>;
+-
+-  template <typename T, FMT_ENABLE_IF(has_formatter<T, context>::value)>
+-  static auto map(const T& value) -> const T& {
+-    return value;
+-  }
+-  template <typename T, FMT_ENABLE_IF(!has_formatter<T, context>::value)>
+-  static auto map(const T& value) -> decltype(mapper().map(value)) {
+-    return mapper().map(value);
+-  }
+-
+-  using formatter_type =
+-      conditional_t<is_formattable<value_type, Char>::value,
+-                    formatter<remove_cvref_t<decltype(map(
+-                                  std::declval<const value_type&>()))>,
+-                              Char>,
+-                    detail::fallback_formatter<value_type, Char>>;
+-
+-  formatter_type value_formatter_;
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return value_formatter_.parse(ctx);
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(const join_view<It, Sentinel, Char>& value, FormatContext& ctx)
+-      -> decltype(ctx.out()) {
+-    auto it = value.begin;
+-    auto out = ctx.out();
+-    if (it != value.end) {
+-      out = value_formatter_.format(map(*it), ctx);
+-      ++it;
+-      while (it != value.end) {
+-        out = detail::copy_str<Char>(value.sep.begin(), value.sep.end(), out);
+-        ctx.advance_to(out);
+-        out = value_formatter_.format(map(*it), ctx);
+-        ++it;
+-      }
+-    }
+-    return out;
+-  }
+-};
+-
+-/**
+-  Returns a view that formats the iterator range `[begin, end)` with elements
+-  separated by `sep`.
+- */
+-template <typename It, typename Sentinel>
+-auto join(It begin, Sentinel end, string_view sep) -> join_view<It, Sentinel> {
+-  return {begin, end, sep};
+-}
+-
+-/**
+-  \rst
+-  Returns a view that formats `range` with elements separated by `sep`.
+-
+-  **Example**::
+-
+-    std::vector<int> v = {1, 2, 3};
+-    fmt::print("{}", fmt::join(v, ", "));
+-    // Output: "1, 2, 3"
+-
+-  ``fmt::join`` applies passed format specifiers to the range elements::
+-
+-    fmt::print("{:02}", fmt::join(v, ", "));
+-    // Output: "01, 02, 03"
+-  \endrst
+- */
+-template <typename Range>
+-auto join(Range&& range, string_view sep)
+-    -> join_view<detail::iterator_t<Range>, detail::sentinel_t<Range>> {
+-  return join(std::begin(range), std::end(range), sep);
+-}
+-
+-/**
+-  \rst
+-  Converts *value* to ``std::string`` using the default format for type *T*.
+-
+-  **Example**::
+-
+-    #include <fmt/format.h>
+-
+-    std::string answer = fmt::to_string(42);
+-  \endrst
+- */
+-template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-inline auto to_string(const T& value) -> std::string {
+-  auto result = std::string();
+-  detail::write<char>(std::back_inserter(result), value);
+-  return result;
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-FMT_NODISCARD inline auto to_string(T value) -> std::string {
+-  // The buffer should be large enough to store the number including the sign
+-  // or "false" for bool.
+-  constexpr int max_size = detail::digits10<T>() + 2;
+-  char buffer[max_size > 5 ? static_cast<unsigned>(max_size) : 5];
+-  char* begin = buffer;
+-  return std::string(begin, detail::write<char>(begin, value));
+-}
+-
+-template <typename Char, size_t SIZE>
+-FMT_NODISCARD auto to_string(const basic_memory_buffer<Char, SIZE>& buf)
+-    -> std::basic_string<Char> {
+-  auto size = buf.size();
+-  detail::assume(size < std::basic_string<Char>().max_size());
+-  return std::basic_string<Char>(buf.data(), size);
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename Char>
+-void vformat_to(
+-    buffer<Char>& buf, basic_string_view<Char> fmt,
+-    basic_format_args<FMT_BUFFER_CONTEXT(type_identity_t<Char>)> args,
+-    locale_ref loc) {
+-  // workaround for msvc bug regarding name-lookup in module
+-  // link names into function scope
+-  using detail::arg_formatter;
+-  using detail::buffer_appender;
+-  using detail::custom_formatter;
+-  using detail::default_arg_formatter;
+-  using detail::get_arg;
+-  using detail::locale_ref;
+-  using detail::parse_format_specs;
+-  using detail::specs_checker;
+-  using detail::specs_handler;
+-  using detail::to_unsigned;
+-  using detail::type;
+-  using detail::write;
+-  auto out = buffer_appender<Char>(buf);
+-  if (fmt.size() == 2 && equal2(fmt.data(), "{}")) {
+-    auto arg = args.get(0);
+-    if (!arg) error_handler().on_error("argument not found");
+-    visit_format_arg(default_arg_formatter<Char>{out, args, loc}, arg);
+-    return;
+-  }
+-
+-  struct format_handler : error_handler {
+-    basic_format_parse_context<Char> parse_context;
+-    buffer_context<Char> context;
+-
+-    format_handler(buffer_appender<Char> out, basic_string_view<Char> str,
+-                   basic_format_args<buffer_context<Char>> args, locale_ref loc)
+-        : parse_context(str), context(out, args, loc) {}
+-
+-    void on_text(const Char* begin, const Char* end) {
+-      auto text = basic_string_view<Char>(begin, to_unsigned(end - begin));
+-      context.advance_to(write<Char>(context.out(), text));
+-    }
+-
+-    FMT_CONSTEXPR auto on_arg_id() -> int {
+-      return parse_context.next_arg_id();
+-    }
+-    FMT_CONSTEXPR auto on_arg_id(int id) -> int {
+-      return parse_context.check_arg_id(id), id;
+-    }
+-    FMT_CONSTEXPR auto on_arg_id(basic_string_view<Char> id) -> int {
+-      int arg_id = context.arg_id(id);
+-      if (arg_id < 0) on_error("argument not found");
+-      return arg_id;
+-    }
+-
+-    FMT_INLINE void on_replacement_field(int id, const Char*) {
+-      auto arg = get_arg(context, id);
+-      context.advance_to(visit_format_arg(
+-          default_arg_formatter<Char>{context.out(), context.args(),
+-                                      context.locale()},
+-          arg));
+-    }
+-
+-    auto on_format_specs(int id, const Char* begin, const Char* end)
+-        -> const Char* {
+-      auto arg = get_arg(context, id);
+-      if (arg.type() == type::custom_type) {
+-        parse_context.advance_to(parse_context.begin() +
+-                                 (begin - &*parse_context.begin()));
+-        visit_format_arg(custom_formatter<Char>{parse_context, context}, arg);
+-        return parse_context.begin();
+-      }
+-      auto specs = basic_format_specs<Char>();
+-      specs_checker<specs_handler<Char>> handler(
+-          specs_handler<Char>(specs, parse_context, context), arg.type());
+-      begin = parse_format_specs(begin, end, handler);
+-      if (begin == end || *begin != '}')
+-        on_error("missing '}' in format string");
+-      auto f = arg_formatter<Char>{context.out(), specs, context.locale()};
+-      context.advance_to(visit_format_arg(f, arg));
+-      return begin;
+-    }
+-  };
+-  detail::parse_format_string<false>(fmt, format_handler(out, fmt, args, loc));
+-}
+-
+-#ifndef FMT_HEADER_ONLY
+-extern template FMT_API auto thousands_sep_impl<char>(locale_ref)
+-    -> thousands_sep_result<char>;
+-extern template FMT_API auto thousands_sep_impl<wchar_t>(locale_ref)
+-    -> thousands_sep_result<wchar_t>;
+-extern template FMT_API auto decimal_point_impl(locale_ref) -> char;
+-extern template FMT_API auto decimal_point_impl(locale_ref) -> wchar_t;
+-extern template auto format_float<double>(double value, int precision,
+-                                          float_specs specs, buffer<char>& buf)
+-    -> int;
+-extern template auto format_float<long double>(long double value, int precision,
+-                                               float_specs specs,
+-                                               buffer<char>& buf) -> int;
+-void snprintf_float(float, int, float_specs, buffer<char>&) = delete;
+-extern template auto snprintf_float<double>(double value, int precision,
+-                                            float_specs specs,
+-                                            buffer<char>& buf) -> int;
+-extern template auto snprintf_float<long double>(long double value,
+-                                                 int precision,
+-                                                 float_specs specs,
+-                                                 buffer<char>& buf) -> int;
+-#endif  // FMT_HEADER_ONLY
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-#if FMT_USE_USER_DEFINED_LITERALS
+-inline namespace literals {
+-/**
+-  \rst
+-  User-defined literal equivalent of :func:`fmt::arg`.
+-
+-  **Example**::
+-
+-    using namespace fmt::literals;
+-    fmt::print("Elapsed time: {s:.2f} seconds", "s"_a=1.23);
+-  \endrst
+- */
+-#  if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <detail_exported::fixed_string Str>
+-constexpr auto operator""_a()
+-    -> detail::udl_arg<remove_cvref_t<decltype(Str.data[0])>,
+-                       sizeof(Str.data) / sizeof(decltype(Str.data[0])), Str> {
+-  return {};
+-}
+-#  else
+-constexpr auto operator"" _a(const char* s, size_t) -> detail::udl_arg<char> {
+-  return {s};
+-}
+-#  endif
+-
+-// DEPRECATED!
+-// User-defined literal equivalent of fmt::format.
+-FMT_DEPRECATED constexpr auto operator"" _format(const char* s, size_t n)
+-    -> detail::udl_formatter<char> {
+-  return {{s, n}};
+-}
+-}  // namespace literals
+-#endif  // FMT_USE_USER_DEFINED_LITERALS
+-
+-template <typename Locale, FMT_ENABLE_IF(detail::is_locale<Locale>::value)>
+-inline auto vformat(const Locale& loc, string_view fmt, format_args args)
+-    -> std::string {
+-  return detail::vformat(loc, fmt, args);
+-}
+-
+-template <typename Locale, typename... T,
+-          FMT_ENABLE_IF(detail::is_locale<Locale>::value)>
+-inline auto format(const Locale& loc, format_string<T...> fmt, T&&... args)
+-    -> std::string {
+-  return vformat(loc, string_view(fmt), fmt::make_format_args(args...));
+-}
+-
+-template <typename... T, size_t SIZE, typename Allocator>
+-FMT_DEPRECATED auto format_to(basic_memory_buffer<char, SIZE, Allocator>& buf,
+-                              format_string<T...> fmt, T&&... args)
+-    -> appender {
+-  detail::vformat_to(buf, string_view(fmt), fmt::make_format_args(args...));
+-  return appender(buf);
+-}
+-
+-template <typename OutputIt, typename Locale,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value&&
+-                            detail::is_locale<Locale>::value)>
+-auto vformat_to(OutputIt out, const Locale& loc, string_view fmt,
+-                format_args args) -> OutputIt {
+-  using detail::get_buffer;
+-  auto&& buf = get_buffer<char>(out);
+-  detail::vformat_to(buf, fmt, args, detail::locale_ref(loc));
+-  return detail::get_iterator(buf);
+-}
+-
+-template <typename OutputIt, typename Locale, typename... T,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value&&
+-                            detail::is_locale<Locale>::value)>
+-FMT_INLINE auto format_to(OutputIt out, const Locale& loc,
+-                          format_string<T...> fmt, T&&... args) -> OutputIt {
+-  return vformat_to(out, loc, fmt, fmt::make_format_args(args...));
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#ifdef FMT_DEPRECATED_INCLUDE_XCHAR
+-#  include "xchar.h"
+-#endif
+-
+-#ifdef FMT_HEADER_ONLY
+-#  define FMT_FUNC inline
+-#  include "format-inl.h"
+-#else
+-#  define FMT_FUNC
+-#endif
+-
+-#endif  // FMT_FORMAT_H_
+diff --git a/include/dpp/fmt/locale.h b/include/dpp/fmt/locale.h
+deleted file mode 100644
+index 7571b52..0000000
+--- a/include/dpp/fmt/locale.h
++++ /dev/null
+@@ -1,2 +0,0 @@
+-#include "xchar.h"
+-#warning fmt/locale.h is deprecated, include fmt/format.h or fmt/xchar.h instead
+diff --git a/include/dpp/fmt/os.h b/include/dpp/fmt/os.h
+deleted file mode 100644
+index b64f8bb..0000000
+--- a/include/dpp/fmt/os.h
++++ /dev/null
+@@ -1,527 +0,0 @@
+-// Formatting library for C++ - optional OS-specific functionality
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_OS_H_
+-#define FMT_OS_H_
+-
+-#include <cerrno>
+-#include <clocale>  // locale_t
+-#include <cstddef>
+-#include <cstdio>
+-#include <cstdlib>       // strtod_l
+-#include <system_error>  // std::system_error
+-
+-#if defined __APPLE__ || defined(__FreeBSD__)
+-#  include <xlocale.h>  // for LC_NUMERIC_MASK on OS X
+-#endif
+-
+-#include "format.h"
+-
+-#ifndef FMT_USE_FCNTL
+-// UWP doesn't provide _pipe.
+-#  if FMT_HAS_INCLUDE("winapifamily.h")
+-#    include <winapifamily.h>
+-#  endif
+-#  if (FMT_HAS_INCLUDE(<fcntl.h>) || defined(__APPLE__) || \
+-       defined(__linux__)) &&                              \
+-      (!defined(WINAPI_FAMILY) ||                          \
+-       (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP))
+-#    include <fcntl.h>  // for O_RDONLY
+-#    define FMT_USE_FCNTL 1
+-#  else
+-#    define FMT_USE_FCNTL 0
+-#  endif
+-#endif
+-
+-#ifndef FMT_POSIX
+-#  if defined(_WIN32) && !defined(__MINGW32__)
+-// Fix warnings about deprecated symbols.
+-#    define FMT_POSIX(call) _##call
+-#  else
+-#    define FMT_POSIX(call) call
+-#  endif
+-#endif
+-
+-// Calls to system functions are wrapped in FMT_SYSTEM for testability.
+-#ifdef FMT_SYSTEM
+-#  define FMT_POSIX_CALL(call) FMT_SYSTEM(call)
+-#else
+-#  define FMT_SYSTEM(call) ::call
+-#  ifdef _WIN32
+-// Fix warnings about deprecated symbols.
+-#    define FMT_POSIX_CALL(call) ::_##call
+-#  else
+-#    define FMT_POSIX_CALL(call) ::call
+-#  endif
+-#endif
+-
+-// Retries the expression while it evaluates to error_result and errno
+-// equals to EINTR.
+-#ifndef _WIN32
+-#  define FMT_RETRY_VAL(result, expression, error_result) \
+-    do {                                                  \
+-      (result) = (expression);                            \
+-    } while ((result) == (error_result) && errno == EINTR)
+-#else
+-#  define FMT_RETRY_VAL(result, expression, error_result) result = (expression)
+-#endif
+-
+-#define FMT_RETRY(result, expression) FMT_RETRY_VAL(result, expression, -1)
+-
+-FMT_BEGIN_NAMESPACE
+-FMT_MODULE_EXPORT_BEGIN
+-
+-/**
+-  \rst
+-  A reference to a null-terminated string. It can be constructed from a C
+-  string or ``std::string``.
+-
+-  You can use one of the following type aliases for common character types:
+-
+-  +---------------+-----------------------------+
+-  | Type          | Definition                  |
+-  +===============+=============================+
+-  | cstring_view  | basic_cstring_view<char>    |
+-  +---------------+-----------------------------+
+-  | wcstring_view | basic_cstring_view<wchar_t> |
+-  +---------------+-----------------------------+
+-
+-  This class is most useful as a parameter type to allow passing
+-  different types of strings to a function, for example::
+-
+-    template <typename... Args>
+-    std::string format(cstring_view format_str, const Args & ... args);
+-
+-    format("{}", 42);
+-    format(std::string("{}"), 42);
+-  \endrst
+- */
+-template <typename Char> class basic_cstring_view {
+- private:
+-  const Char* data_;
+-
+- public:
+-  /** Constructs a string reference object from a C string. */
+-  basic_cstring_view(const Char* s) : data_(s) {}
+-
+-  /**
+-    \rst
+-    Constructs a string reference from an ``std::string`` object.
+-    \endrst
+-   */
+-  basic_cstring_view(const std::basic_string<Char>& s) : data_(s.c_str()) {}
+-
+-  /** Returns the pointer to a C string. */
+-  const Char* c_str() const { return data_; }
+-};
+-
+-using cstring_view = basic_cstring_view<char>;
+-using wcstring_view = basic_cstring_view<wchar_t>;
+-
+-template <typename Char> struct formatter<std::error_code, Char> {
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <typename FormatContext>
+-  FMT_CONSTEXPR auto format(const std::error_code& ec, FormatContext& ctx) const
+-      -> decltype(ctx.out()) {
+-    auto out = ctx.out();
+-    out = detail::write_bytes(out, ec.category().name(),
+-                              basic_format_specs<Char>());
+-    out = detail::write<Char>(out, Char(':'));
+-    out = detail::write<Char>(out, ec.value());
+-    return out;
+-  }
+-};
+-
+-#ifdef _WIN32
+-FMT_API const std::error_category& system_category() FMT_NOEXCEPT;
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-// A converter from UTF-16 to UTF-8.
+-// It is only provided for Windows since other systems support UTF-8 natively.
+-class utf16_to_utf8 {
+- private:
+-  memory_buffer buffer_;
+-
+- public:
+-  utf16_to_utf8() {}
+-  FMT_API explicit utf16_to_utf8(basic_string_view<wchar_t> s);
+-  operator string_view() const { return string_view(&buffer_[0], size()); }
+-  size_t size() const { return buffer_.size() - 1; }
+-  const char* c_str() const { return &buffer_[0]; }
+-  std::string str() const { return std::string(&buffer_[0], size()); }
+-
+-  // Performs conversion returning a system error code instead of
+-  // throwing exception on conversion error. This method may still throw
+-  // in case of memory allocation error.
+-  FMT_API int convert(basic_string_view<wchar_t> s);
+-};
+-
+-FMT_API void format_windows_error(buffer<char>& out, int error_code,
+-                                  const char* message) FMT_NOEXCEPT;
+-FMT_END_DETAIL_NAMESPACE
+-
+-FMT_API std::system_error vwindows_error(int error_code, string_view format_str,
+-                                         format_args args);
+-
+-/**
+- \rst
+- Constructs a :class:`std::system_error` object with the description
+- of the form
+-
+- .. parsed-literal::
+-   *<message>*: *<system-message>*
+-
+- where *<message>* is the formatted message and *<system-message>* is the
+- system message corresponding to the error code.
+- *error_code* is a Windows error code as given by ``GetLastError``.
+- If *error_code* is not a valid error code such as -1, the system message
+- will look like "error -1".
+-
+- **Example**::
+-
+-   // This throws a system_error with the description
+-   //   cannot open file 'madeup': The system cannot find the file specified.
+-   // or similar (system message may vary).
+-   const char *filename = "madeup";
+-   LPOFSTRUCT of = LPOFSTRUCT();
+-   HFILE file = OpenFile(filename, &of, OF_READ);
+-   if (file == HFILE_ERROR) {
+-     throw fmt::windows_error(GetLastError(),
+-                              "cannot open file '{}'", filename);
+-   }
+- \endrst
+-*/
+-template <typename... Args>
+-std::system_error windows_error(int error_code, string_view message,
+-                                const Args&... args) {
+-  return vwindows_error(error_code, message, fmt::make_format_args(args...));
+-}
+-
+-// Reports a Windows error without throwing an exception.
+-// Can be used to report errors from destructors.
+-FMT_API void report_windows_error(int error_code,
+-                                  const char* message) FMT_NOEXCEPT;
+-#else
+-inline const std::error_category& system_category() FMT_NOEXCEPT {
+-  return std::system_category();
+-}
+-#endif  // _WIN32
+-
+-// std::system is not available on some platforms such as iOS (#2248).
+-#ifdef __OSX__
+-template <typename S, typename... Args, typename Char = char_t<S>>
+-void say(const S& format_str, Args&&... args) {
+-  std::system(format("say \"{}\"", format(format_str, args...)).c_str());
+-}
+-#endif
+-
+-// A buffered file.
+-class buffered_file {
+- private:
+-  FILE* file_;
+-
+-  friend class file;
+-
+-  explicit buffered_file(FILE* f) : file_(f) {}
+-
+- public:
+-  buffered_file(const buffered_file&) = delete;
+-  void operator=(const buffered_file&) = delete;
+-
+-  // Constructs a buffered_file object which doesn't represent any file.
+-  buffered_file() FMT_NOEXCEPT : file_(nullptr) {}
+-
+-  // Destroys the object closing the file it represents if any.
+-  FMT_API ~buffered_file() FMT_NOEXCEPT;
+-
+- public:
+-  buffered_file(buffered_file&& other) FMT_NOEXCEPT : file_(other.file_) {
+-    other.file_ = nullptr;
+-  }
+-
+-  buffered_file& operator=(buffered_file&& other) {
+-    close();
+-    file_ = other.file_;
+-    other.file_ = nullptr;
+-    return *this;
+-  }
+-
+-  // Opens a file.
+-  FMT_API buffered_file(cstring_view filename, cstring_view mode);
+-
+-  // Closes the file.
+-  FMT_API void close();
+-
+-  // Returns the pointer to a FILE object representing this file.
+-  FILE* get() const FMT_NOEXCEPT { return file_; }
+-
+-  // We place parentheses around fileno to workaround a bug in some versions
+-  // of MinGW that define fileno as a macro.
+-  FMT_API int(fileno)() const;
+-
+-  void vprint(string_view format_str, format_args args) {
+-    fmt::vprint(file_, format_str, args);
+-  }
+-
+-  template <typename... Args>
+-  inline void print(string_view format_str, const Args&... args) {
+-    vprint(format_str, fmt::make_format_args(args...));
+-  }
+-};
+-
+-#if FMT_USE_FCNTL
+-// A file. Closed file is represented by a file object with descriptor -1.
+-// Methods that are not declared with FMT_NOEXCEPT may throw
+-// fmt::system_error in case of failure. Note that some errors such as
+-// closing the file multiple times will cause a crash on Windows rather
+-// than an exception. You can get standard behavior by overriding the
+-// invalid parameter handler with _set_invalid_parameter_handler.
+-class file {
+- private:
+-  int fd_;  // File descriptor.
+-
+-  // Constructs a file object with a given descriptor.
+-  explicit file(int fd) : fd_(fd) {}
+-
+- public:
+-  // Possible values for the oflag argument to the constructor.
+-  enum {
+-    RDONLY = FMT_POSIX(O_RDONLY),  // Open for reading only.
+-    WRONLY = FMT_POSIX(O_WRONLY),  // Open for writing only.
+-    RDWR = FMT_POSIX(O_RDWR),      // Open for reading and writing.
+-    CREATE = FMT_POSIX(O_CREAT),   // Create if the file doesn't exist.
+-    APPEND = FMT_POSIX(O_APPEND),  // Open in append mode.
+-    TRUNC = FMT_POSIX(O_TRUNC)     // Truncate the content of the file.
+-  };
+-
+-  // Constructs a file object which doesn't represent any file.
+-  file() FMT_NOEXCEPT : fd_(-1) {}
+-
+-  // Opens a file and constructs a file object representing this file.
+-  FMT_API file(cstring_view path, int oflag);
+-
+- public:
+-  file(const file&) = delete;
+-  void operator=(const file&) = delete;
+-
+-  file(file&& other) FMT_NOEXCEPT : fd_(other.fd_) { other.fd_ = -1; }
+-
+-  // Move assignment is not noexcept because close may throw.
+-  file& operator=(file&& other) {
+-    close();
+-    fd_ = other.fd_;
+-    other.fd_ = -1;
+-    return *this;
+-  }
+-
+-  // Destroys the object closing the file it represents if any.
+-  FMT_API ~file() FMT_NOEXCEPT;
+-
+-  // Returns the file descriptor.
+-  int descriptor() const FMT_NOEXCEPT { return fd_; }
+-
+-  // Closes the file.
+-  FMT_API void close();
+-
+-  // Returns the file size. The size has signed type for consistency with
+-  // stat::st_size.
+-  FMT_API long long size() const;
+-
+-  // Attempts to read count bytes from the file into the specified buffer.
+-  FMT_API size_t read(void* buffer, size_t count);
+-
+-  // Attempts to write count bytes from the specified buffer to the file.
+-  FMT_API size_t write(const void* buffer, size_t count);
+-
+-  // Duplicates a file descriptor with the dup function and returns
+-  // the duplicate as a file object.
+-  FMT_API static file dup(int fd);
+-
+-  // Makes fd be the copy of this file descriptor, closing fd first if
+-  // necessary.
+-  FMT_API void dup2(int fd);
+-
+-  // Makes fd be the copy of this file descriptor, closing fd first if
+-  // necessary.
+-  FMT_API void dup2(int fd, std::error_code& ec) FMT_NOEXCEPT;
+-
+-  // Creates a pipe setting up read_end and write_end file objects for reading
+-  // and writing respectively.
+-  FMT_API static void pipe(file& read_end, file& write_end);
+-
+-  // Creates a buffered_file object associated with this file and detaches
+-  // this file object from the file.
+-  FMT_API buffered_file fdopen(const char* mode);
+-};
+-
+-// Returns the memory page size.
+-long getpagesize();
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-struct buffer_size {
+-  buffer_size() = default;
+-  size_t value = 0;
+-  buffer_size operator=(size_t val) const {
+-    auto bs = buffer_size();
+-    bs.value = val;
+-    return bs;
+-  }
+-};
+-
+-struct ostream_params {
+-  int oflag = file::WRONLY | file::CREATE | file::TRUNC;
+-  size_t buffer_size = BUFSIZ > 32768 ? BUFSIZ : 32768;
+-
+-  ostream_params() {}
+-
+-  template <typename... T>
+-  ostream_params(T... params, int new_oflag) : ostream_params(params...) {
+-    oflag = new_oflag;
+-  }
+-
+-  template <typename... T>
+-  ostream_params(T... params, detail::buffer_size bs)
+-      : ostream_params(params...) {
+-    this->buffer_size = bs.value;
+-  }
+-
+-// Intel has a bug that results in failure to deduce a constructor
+-// for empty parameter packs.
+-#  if defined(__INTEL_COMPILER) && __INTEL_COMPILER < 2000
+-  ostream_params(int new_oflag) : oflag(new_oflag) {}
+-  ostream_params(detail::buffer_size bs) : buffer_size(bs.value) {}
+-#  endif
+-};
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-// Added {} below to work around default constructor error known to
+-// occur in Xcode versions 7.2.1 and 8.2.1.
+-constexpr detail::buffer_size buffer_size{};
+-
+-/** A fast output stream which is not thread-safe. */
+-class FMT_API ostream final : private detail::buffer<char> {
+- private:
+-  file file_;
+-
+-  void grow(size_t) override;
+-
+-  ostream(cstring_view path, const detail::ostream_params& params)
+-      : file_(path, params.oflag) {
+-    set(new char[params.buffer_size], params.buffer_size);
+-  }
+-
+- public:
+-  ostream(ostream&& other)
+-      : detail::buffer<char>(other.data(), other.size(), other.capacity()),
+-        file_(std::move(other.file_)) {
+-    other.clear();
+-    other.set(nullptr, 0);
+-  }
+-  ~ostream() {
+-    flush();
+-    delete[] data();
+-  }
+-
+-  void flush() {
+-    if (size() == 0) return;
+-    file_.write(data(), size());
+-    clear();
+-  }
+-
+-  template <typename... T>
+-  friend ostream output_file(cstring_view path, T... params);
+-
+-  void close() {
+-    flush();
+-    file_.close();
+-  }
+-
+-  /**
+-    Formats ``args`` according to specifications in ``fmt`` and writes the
+-    output to the file.
+-   */
+-  template <typename... T> void print(format_string<T...> fmt, T&&... args) {
+-    vformat_to(detail::buffer_appender<char>(*this), fmt,
+-               fmt::make_format_args(args...));
+-  }
+-};
+-
+-/**
+-  \rst
+-  Opens a file for writing. Supported parameters passed in *params*:
+-
+-  * ``<integer>``: Flags passed to `open
+-    <https://pubs.opengroup.org/onlinepubs/007904875/functions/open.html>`_
+-    (``file::WRONLY | file::CREATE`` by default)
+-  * ``buffer_size=<integer>``: Output buffer size
+-
+-  **Example**::
+-
+-    auto out = fmt::output_file("guide.txt");
+-    out.print("Don't {}", "Panic");
+-  \endrst
+- */
+-template <typename... T>
+-inline ostream output_file(cstring_view path, T... params) {
+-  return {path, detail::ostream_params(params...)};
+-}
+-#endif  // FMT_USE_FCNTL
+-
+-#ifdef FMT_LOCALE
+-// A "C" numeric locale.
+-class locale {
+- private:
+-#  ifdef _WIN32
+-  using locale_t = _locale_t;
+-
+-  static void freelocale(locale_t loc) { _free_locale(loc); }
+-
+-  static double strtod_l(const char* nptr, char** endptr, _locale_t loc) {
+-    return _strtod_l(nptr, endptr, loc);
+-  }
+-#  endif
+-
+-  locale_t locale_;
+-
+- public:
+-  using type = locale_t;
+-  locale(const locale&) = delete;
+-  void operator=(const locale&) = delete;
+-
+-  locale() {
+-#  ifndef _WIN32
+-    locale_ = FMT_SYSTEM(newlocale(LC_NUMERIC_MASK, "C", nullptr));
+-#  else
+-    locale_ = _create_locale(LC_NUMERIC, "C");
+-#  endif
+-    if (!locale_) FMT_THROW(system_error(errno, "cannot create locale"));
+-  }
+-  ~locale() { freelocale(locale_); }
+-
+-  type get() const { return locale_; }
+-
+-  // Converts string to floating-point number and advances str past the end
+-  // of the parsed input.
+-  FMT_DEPRECATED double strtod(const char*& str) const {
+-    char* end = nullptr;
+-    double result = strtod_l(str, &end, locale_);
+-    str = end;
+-    return result;
+-  }
+-};
+-using Locale FMT_DEPRECATED_ALIAS = locale;
+-#endif  // FMT_LOCALE
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_OS_H_
+diff --git a/include/dpp/fmt/ostream.h b/include/dpp/fmt/ostream.h
+deleted file mode 100644
+index 3d716ec..0000000
+--- a/include/dpp/fmt/ostream.h
++++ /dev/null
+@@ -1,135 +0,0 @@
+-// Formatting library for C++ - std::ostream support
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_OSTREAM_H_
+-#define FMT_OSTREAM_H_
+-
+-#include <ostream>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-
+-template <typename OutputIt, typename Char> class basic_printf_context;
+-
+-namespace detail {
+-
+-// Checks if T has a user-defined operator<<.
+-template <typename T, typename Char, typename Enable = void>
+-class is_streamable {
+- private:
+-  template <typename U>
+-  static auto test(int)
+-      -> bool_constant<sizeof(std::declval<std::basic_ostream<Char>&>()
+-                              << std::declval<U>()) != 0>;
+-
+-  template <typename> static auto test(...) -> std::false_type;
+-
+-  using result = decltype(test<T>(0));
+-
+- public:
+-  is_streamable() = default;
+-
+-  static const bool value = result::value;
+-};
+-
+-// Formatting of built-in types and arrays is intentionally disabled because
+-// it's handled by standard (non-ostream) formatters.
+-template <typename T, typename Char>
+-struct is_streamable<
+-    T, Char,
+-    enable_if_t<
+-        std::is_arithmetic<T>::value || std::is_array<T>::value ||
+-        std::is_pointer<T>::value || std::is_same<T, char8_type>::value ||
+-        std::is_same<T, std::basic_string<Char>>::value ||
+-        std::is_same<T, std_string_view<Char>>::value ||
+-        (std::is_convertible<T, int>::value && !std::is_enum<T>::value)>>
+-    : std::false_type {};
+-
+-// Write the content of buf to os.
+-// It is a separate function rather than a part of vprint to simplify testing.
+-template <typename Char>
+-void write_buffer(std::basic_ostream<Char>& os, buffer<Char>& buf) {
+-  const Char* buf_data = buf.data();
+-  using unsigned_streamsize = std::make_unsigned<std::streamsize>::type;
+-  unsigned_streamsize size = buf.size();
+-  unsigned_streamsize max_size = to_unsigned(max_value<std::streamsize>());
+-  do {
+-    unsigned_streamsize n = size <= max_size ? size : max_size;
+-    os.write(buf_data, static_cast<std::streamsize>(n));
+-    buf_data += n;
+-    size -= n;
+-  } while (size != 0);
+-}
+-
+-template <typename Char, typename T>
+-void format_value(buffer<Char>& buf, const T& value,
+-                  locale_ref loc = locale_ref()) {
+-  auto&& format_buf = formatbuf<std::basic_streambuf<Char>>(buf);
+-  auto&& output = std::basic_ostream<Char>(&format_buf);
+-#if !defined(FMT_STATIC_THOUSANDS_SEPARATOR)
+-  if (loc) output.imbue(loc.get<std::locale>());
+-#endif
+-  output << value;
+-  output.exceptions(std::ios_base::failbit | std::ios_base::badbit);
+-  buf.try_resize(buf.size());
+-}
+-
+-// Formats an object of type T that has an overloaded ostream operator<<.
+-template <typename T, typename Char>
+-struct fallback_formatter<T, Char, enable_if_t<is_streamable<T, Char>::value>>
+-    : private formatter<basic_string_view<Char>, Char> {
+-  using formatter<basic_string_view<Char>, Char>::parse;
+-
+-  template <typename OutputIt>
+-  auto format(const T& value, basic_format_context<OutputIt, Char>& ctx)
+-      -> OutputIt {
+-    auto buffer = basic_memory_buffer<Char>();
+-    format_value(buffer, value, ctx.locale());
+-    return formatter<basic_string_view<Char>, Char>::format(
+-        {buffer.data(), buffer.size()}, ctx);
+-  }
+-
+-  // DEPRECATED!
+-  template <typename OutputIt>
+-  auto format(const T& value, basic_printf_context<OutputIt, Char>& ctx)
+-      -> OutputIt {
+-    auto buffer = basic_memory_buffer<Char>();
+-    format_value(buffer, value, ctx.locale());
+-    return std::copy(buffer.begin(), buffer.end(), ctx.out());
+-  }
+-};
+-}  // namespace detail
+-
+-FMT_MODULE_EXPORT
+-template <typename Char>
+-void vprint(std::basic_ostream<Char>& os, basic_string_view<Char> format_str,
+-            basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  auto buffer = basic_memory_buffer<Char>();
+-  detail::vformat_to(buffer, format_str, args);
+-  detail::write_buffer(os, buffer);
+-}
+-
+-/**
+-  \rst
+-  Prints formatted data to the stream *os*.
+-
+-  **Example**::
+-
+-    fmt::print(cerr, "Don't {}!", "panic");
+-  \endrst
+- */
+-FMT_MODULE_EXPORT
+-template <typename S, typename... Args,
+-          typename Char = enable_if_t<detail::is_string<S>::value, char_t<S>>>
+-void print(std::basic_ostream<Char>& os, const S& format_str, Args&&... args) {
+-  vprint(os, to_string_view(format_str),
+-         fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_OSTREAM_H_
+diff --git a/include/dpp/fmt/printf.h b/include/dpp/fmt/printf.h
+deleted file mode 100644
+index 19d550f..0000000
+--- a/include/dpp/fmt/printf.h
++++ /dev/null
+@@ -1,657 +0,0 @@
+-// Formatting library for C++ - legacy printf implementation
+-//
+-// Copyright (c) 2012 - 2016, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_PRINTF_H_
+-#define FMT_PRINTF_H_
+-
+-#include <algorithm>  // std::max
+-#include <limits>     // std::numeric_limits
+-#include <ostream>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-FMT_MODULE_EXPORT_BEGIN
+-
+-template <typename T> struct printf_formatter { printf_formatter() = delete; };
+-
+-template <typename Char>
+-class basic_printf_parse_context : public basic_format_parse_context<Char> {
+-  using basic_format_parse_context<Char>::basic_format_parse_context;
+-};
+-
+-template <typename OutputIt, typename Char> class basic_printf_context {
+- private:
+-  OutputIt out_;
+-  basic_format_args<basic_printf_context> args_;
+-
+- public:
+-  using char_type = Char;
+-  using format_arg = basic_format_arg<basic_printf_context>;
+-  using parse_context_type = basic_printf_parse_context<Char>;
+-  template <typename T> using formatter_type = printf_formatter<T>;
+-
+-  /**
+-    \rst
+-    Constructs a ``printf_context`` object. References to the arguments are
+-    stored in the context object so make sure they have appropriate lifetimes.
+-    \endrst
+-   */
+-  basic_printf_context(OutputIt out,
+-                       basic_format_args<basic_printf_context> args)
+-      : out_(out), args_(args) {}
+-
+-  OutputIt out() { return out_; }
+-  void advance_to(OutputIt it) { out_ = it; }
+-
+-  detail::locale_ref locale() { return {}; }
+-
+-  format_arg arg(int id) const { return args_.get(id); }
+-
+-  FMT_CONSTEXPR void on_error(const char* message) {
+-    detail::error_handler().on_error(message);
+-  }
+-};
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// Checks if a value fits in int - used to avoid warnings about comparing
+-// signed and unsigned integers.
+-template <bool IsSigned> struct int_checker {
+-  template <typename T> static bool fits_in_int(T value) {
+-    unsigned max = max_value<int>();
+-    return value <= max;
+-  }
+-  static bool fits_in_int(bool) { return true; }
+-};
+-
+-template <> struct int_checker<true> {
+-  template <typename T> static bool fits_in_int(T value) {
+-    return value >= (std::numeric_limits<int>::min)() &&
+-           value <= max_value<int>();
+-  }
+-  static bool fits_in_int(int) { return true; }
+-};
+-
+-class printf_precision_handler {
+- public:
+-  template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-  int operator()(T value) {
+-    if (!int_checker<std::numeric_limits<T>::is_signed>::fits_in_int(value))
+-      FMT_THROW(format_error("number is too big"));
+-    return (std::max)(static_cast<int>(value), 0);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-  int operator()(T) {
+-    FMT_THROW(format_error("precision is not integer"));
+-    return 0;
+-  }
+-};
+-
+-// An argument visitor that returns true iff arg is a zero integer.
+-class is_zero_int {
+- public:
+-  template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-  bool operator()(T value) {
+-    return value == 0;
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-  bool operator()(T) {
+-    return false;
+-  }
+-};
+-
+-template <typename T> struct make_unsigned_or_bool : std::make_unsigned<T> {};
+-
+-template <> struct make_unsigned_or_bool<bool> { using type = bool; };
+-
+-template <typename T, typename Context> class arg_converter {
+- private:
+-  using char_type = typename Context::char_type;
+-
+-  basic_format_arg<Context>& arg_;
+-  char_type type_;
+-
+- public:
+-  arg_converter(basic_format_arg<Context>& arg, char_type type)
+-      : arg_(arg), type_(type) {}
+-
+-  void operator()(bool value) {
+-    if (type_ != 's') operator()<bool>(value);
+-  }
+-
+-  template <typename U, FMT_ENABLE_IF(std::is_integral<U>::value)>
+-  void operator()(U value) {
+-    bool is_signed = type_ == 'd' || type_ == 'i';
+-    using target_type = conditional_t<std::is_same<T, void>::value, U, T>;
+-    if (const_check(sizeof(target_type) <= sizeof(int))) {
+-      // Extra casts are used to silence warnings.
+-      if (is_signed) {
+-        arg_ = detail::make_arg<Context>(
+-            static_cast<int>(static_cast<target_type>(value)));
+-      } else {
+-        using unsigned_type = typename make_unsigned_or_bool<target_type>::type;
+-        arg_ = detail::make_arg<Context>(
+-            static_cast<unsigned>(static_cast<unsigned_type>(value)));
+-      }
+-    } else {
+-      if (is_signed) {
+-        // glibc's printf doesn't sign extend arguments of smaller types:
+-        //   std::printf("%lld", -42);  // prints "4294967254"
+-        // but we don't have to do the same because it's a UB.
+-        arg_ = detail::make_arg<Context>(static_cast<long long>(value));
+-      } else {
+-        arg_ = detail::make_arg<Context>(
+-            static_cast<typename make_unsigned_or_bool<U>::type>(value));
+-      }
+-    }
+-  }
+-
+-  template <typename U, FMT_ENABLE_IF(!std::is_integral<U>::value)>
+-  void operator()(U) {}  // No conversion needed for non-integral types.
+-};
+-
+-// Converts an integer argument to T for printf, if T is an integral type.
+-// If T is void, the argument is converted to corresponding signed or unsigned
+-// type depending on the type specifier: 'd' and 'i' - signed, other -
+-// unsigned).
+-template <typename T, typename Context, typename Char>
+-void convert_arg(basic_format_arg<Context>& arg, Char type) {
+-  visit_format_arg(arg_converter<T, Context>(arg, type), arg);
+-}
+-
+-// Converts an integer argument to char for printf.
+-template <typename Context> class char_converter {
+- private:
+-  basic_format_arg<Context>& arg_;
+-
+- public:
+-  explicit char_converter(basic_format_arg<Context>& arg) : arg_(arg) {}
+-
+-  template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-  void operator()(T value) {
+-    arg_ = detail::make_arg<Context>(
+-        static_cast<typename Context::char_type>(value));
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-  void operator()(T) {}  // No conversion needed for non-integral types.
+-};
+-
+-// An argument visitor that return a pointer to a C string if argument is a
+-// string or null otherwise.
+-template <typename Char> struct get_cstring {
+-  template <typename T> const Char* operator()(T) { return nullptr; }
+-  const Char* operator()(const Char* s) { return s; }
+-};
+-
+-// Checks if an argument is a valid printf width specifier and sets
+-// left alignment if it is negative.
+-template <typename Char> class printf_width_handler {
+- private:
+-  using format_specs = basic_format_specs<Char>;
+-
+-  format_specs& specs_;
+-
+- public:
+-  explicit printf_width_handler(format_specs& specs) : specs_(specs) {}
+-
+-  template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-  unsigned operator()(T value) {
+-    auto width = static_cast<uint32_or_64_or_128_t<T>>(value);
+-    if (detail::is_negative(value)) {
+-      specs_.align = align::left;
+-      width = 0 - width;
+-    }
+-    unsigned int_max = max_value<int>();
+-    if (width > int_max) FMT_THROW(format_error("number is too big"));
+-    return static_cast<unsigned>(width);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-  unsigned operator()(T) {
+-    FMT_THROW(format_error("width is not integer"));
+-    return 0;
+-  }
+-};
+-
+-// The ``printf`` argument formatter.
+-template <typename OutputIt, typename Char>
+-class printf_arg_formatter : public arg_formatter<Char> {
+- private:
+-  using base = arg_formatter<Char>;
+-  using context_type = basic_printf_context<OutputIt, Char>;
+-  using format_specs = basic_format_specs<Char>;
+-
+-  context_type& context_;
+-
+-  OutputIt write_null_pointer(bool is_string = false) {
+-    auto s = this->specs;
+-    s.type = presentation_type::none;
+-    return write_bytes(this->out, is_string ? "(null)" : "(nil)", s);
+-  }
+-
+- public:
+-  printf_arg_formatter(OutputIt iter, format_specs& s, context_type& ctx)
+-      : base{iter, s, locale_ref()}, context_(ctx) {}
+-
+-  OutputIt operator()(monostate value) { return base::operator()(value); }
+-
+-  template <typename T, FMT_ENABLE_IF(detail::is_integral<T>::value)>
+-  OutputIt operator()(T value) {
+-    // MSVC2013 fails to compile separate overloads for bool and Char so use
+-    // std::is_same instead.
+-    if (std::is_same<T, Char>::value) {
+-      format_specs fmt_specs = this->specs;
+-      if (fmt_specs.type != presentation_type::none &&
+-          fmt_specs.type != presentation_type::chr) {
+-        return (*this)(static_cast<int>(value));
+-      }
+-      fmt_specs.sign = sign::none;
+-      fmt_specs.alt = false;
+-      fmt_specs.fill[0] = ' ';  // Ignore '0' flag for char types.
+-      // align::numeric needs to be overwritten here since the '0' flag is
+-      // ignored for non-numeric types
+-      if (fmt_specs.align == align::none || fmt_specs.align == align::numeric)
+-        fmt_specs.align = align::right;
+-      return write<Char>(this->out, static_cast<Char>(value), fmt_specs);
+-    }
+-    return base::operator()(value);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-  OutputIt operator()(T value) {
+-    return base::operator()(value);
+-  }
+-
+-  /** Formats a null-terminated C string. */
+-  OutputIt operator()(const char* value) {
+-    if (value) return base::operator()(value);
+-    return write_null_pointer(this->specs.type != presentation_type::pointer);
+-  }
+-
+-  /** Formats a null-terminated wide C string. */
+-  OutputIt operator()(const wchar_t* value) {
+-    if (value) return base::operator()(value);
+-    return write_null_pointer(this->specs.type != presentation_type::pointer);
+-  }
+-
+-  OutputIt operator()(basic_string_view<Char> value) {
+-    return base::operator()(value);
+-  }
+-
+-  /** Formats a pointer. */
+-  OutputIt operator()(const void* value) {
+-    return value ? base::operator()(value) : write_null_pointer();
+-  }
+-
+-  /** Formats an argument of a custom (user-defined) type. */
+-  OutputIt operator()(typename basic_format_arg<context_type>::handle handle) {
+-    auto parse_ctx =
+-        basic_printf_parse_context<Char>(basic_string_view<Char>());
+-    handle.format(parse_ctx, context_);
+-    return this->out;
+-  }
+-};
+-
+-template <typename Char>
+-void parse_flags(basic_format_specs<Char>& specs, const Char*& it,
+-                 const Char* end) {
+-  for (; it != end; ++it) {
+-    switch (*it) {
+-    case '-':
+-      specs.align = align::left;
+-      break;
+-    case '+':
+-      specs.sign = sign::plus;
+-      break;
+-    case '0':
+-      specs.fill[0] = '0';
+-      break;
+-    case ' ':
+-      if (specs.sign != sign::plus) {
+-        specs.sign = sign::space;
+-      }
+-      break;
+-    case '#':
+-      specs.alt = true;
+-      break;
+-    default:
+-      return;
+-    }
+-  }
+-}
+-
+-template <typename Char, typename GetArg>
+-int parse_header(const Char*& it, const Char* end,
+-                 basic_format_specs<Char>& specs, GetArg get_arg) {
+-  int arg_index = -1;
+-  Char c = *it;
+-  if (c >= '0' && c <= '9') {
+-    // Parse an argument index (if followed by '$') or a width possibly
+-    // preceded with '0' flag(s).
+-    int value = parse_nonnegative_int(it, end, -1);
+-    if (it != end && *it == '$') {  // value is an argument index
+-      ++it;
+-      arg_index = value != -1 ? value : max_value<int>();
+-    } else {
+-      if (c == '0') specs.fill[0] = '0';
+-      if (value != 0) {
+-        // Nonzero value means that we parsed width and don't need to
+-        // parse it or flags again, so return now.
+-        if (value == -1) FMT_THROW(format_error("number is too big"));
+-        specs.width = value;
+-        return arg_index;
+-      }
+-    }
+-  }
+-  parse_flags(specs, it, end);
+-  // Parse width.
+-  if (it != end) {
+-    if (*it >= '0' && *it <= '9') {
+-      specs.width = parse_nonnegative_int(it, end, -1);
+-      if (specs.width == -1) FMT_THROW(format_error("number is too big"));
+-    } else if (*it == '*') {
+-      ++it;
+-      specs.width = static_cast<int>(visit_format_arg(
+-          detail::printf_width_handler<Char>(specs), get_arg(-1)));
+-    }
+-  }
+-  return arg_index;
+-}
+-
+-template <typename Char, typename Context>
+-void vprintf(buffer<Char>& buf, basic_string_view<Char> format,
+-             basic_format_args<Context> args) {
+-  using OutputIt = buffer_appender<Char>;
+-  auto out = OutputIt(buf);
+-  auto context = basic_printf_context<OutputIt, Char>(out, args);
+-  auto parse_ctx = basic_printf_parse_context<Char>(format);
+-
+-  // Returns the argument with specified index or, if arg_index is -1, the next
+-  // argument.
+-  auto get_arg = [&](int arg_index) {
+-    if (arg_index < 0)
+-      arg_index = parse_ctx.next_arg_id();
+-    else
+-      parse_ctx.check_arg_id(--arg_index);
+-    return detail::get_arg(context, arg_index);
+-  };
+-
+-  const Char* start = parse_ctx.begin();
+-  const Char* end = parse_ctx.end();
+-  auto it = start;
+-  while (it != end) {
+-    if (!detail::find<false, Char>(it, end, '%', it)) {
+-      it = end;  // detail::find leaves it == nullptr if it doesn't find '%'
+-      break;
+-    }
+-    Char c = *it++;
+-    if (it != end && *it == c) {
+-      out = detail::write(
+-          out, basic_string_view<Char>(start, detail::to_unsigned(it - start)));
+-      start = ++it;
+-      continue;
+-    }
+-    out = detail::write(out, basic_string_view<Char>(
+-                                 start, detail::to_unsigned(it - 1 - start)));
+-
+-    basic_format_specs<Char> specs;
+-    specs.align = align::right;
+-
+-    // Parse argument index, flags and width.
+-    int arg_index = parse_header(it, end, specs, get_arg);
+-    if (arg_index == 0) parse_ctx.on_error("argument not found");
+-
+-    // Parse precision.
+-    if (it != end && *it == '.') {
+-      ++it;
+-      c = it != end ? *it : 0;
+-      if ('0' <= c && c <= '9') {
+-        specs.precision = parse_nonnegative_int(it, end, 0);
+-      } else if (c == '*') {
+-        ++it;
+-        specs.precision = static_cast<int>(
+-            visit_format_arg(detail::printf_precision_handler(), get_arg(-1)));
+-      } else {
+-        specs.precision = 0;
+-      }
+-    }
+-
+-    auto arg = get_arg(arg_index);
+-    // For d, i, o, u, x, and X conversion specifiers, if a precision is
+-    // specified, the '0' flag is ignored
+-    if (specs.precision >= 0 && arg.is_integral())
+-      specs.fill[0] =
+-          ' ';  // Ignore '0' flag for non-numeric types or if '-' present.
+-    if (specs.precision >= 0 && arg.type() == detail::type::cstring_type) {
+-      auto str = visit_format_arg(detail::get_cstring<Char>(), arg);
+-      auto str_end = str + specs.precision;
+-      auto nul = std::find(str, str_end, Char());
+-      arg = detail::make_arg<basic_printf_context<OutputIt, Char>>(
+-          basic_string_view<Char>(
+-              str, detail::to_unsigned(nul != str_end ? nul - str
+-                                                      : specs.precision)));
+-    }
+-    if (specs.alt && visit_format_arg(detail::is_zero_int(), arg))
+-      specs.alt = false;
+-    if (specs.fill[0] == '0') {
+-      if (arg.is_arithmetic() && specs.align != align::left)
+-        specs.align = align::numeric;
+-      else
+-        specs.fill[0] = ' ';  // Ignore '0' flag for non-numeric types or if '-'
+-                              // flag is also present.
+-    }
+-
+-    // Parse length and convert the argument to the required type.
+-    c = it != end ? *it++ : 0;
+-    Char t = it != end ? *it : 0;
+-    using detail::convert_arg;
+-    switch (c) {
+-    case 'h':
+-      if (t == 'h') {
+-        ++it;
+-        t = it != end ? *it : 0;
+-        convert_arg<signed char>(arg, t);
+-      } else {
+-        convert_arg<short>(arg, t);
+-      }
+-      break;
+-    case 'l':
+-      if (t == 'l') {
+-        ++it;
+-        t = it != end ? *it : 0;
+-        convert_arg<long long>(arg, t);
+-      } else {
+-        convert_arg<long>(arg, t);
+-      }
+-      break;
+-    case 'j':
+-      convert_arg<intmax_t>(arg, t);
+-      break;
+-    case 'z':
+-      convert_arg<size_t>(arg, t);
+-      break;
+-    case 't':
+-      convert_arg<std::ptrdiff_t>(arg, t);
+-      break;
+-    case 'L':
+-      // printf produces garbage when 'L' is omitted for long double, no
+-      // need to do the same.
+-      break;
+-    default:
+-      --it;
+-      convert_arg<void>(arg, c);
+-    }
+-
+-    // Parse type.
+-    if (it == end) FMT_THROW(format_error("invalid format string"));
+-    char type = static_cast<char>(*it++);
+-    if (arg.is_integral()) {
+-      // Normalize type.
+-      switch (type) {
+-      case 'i':
+-      case 'u':
+-        type = 'd';
+-        break;
+-      case 'c':
+-        visit_format_arg(
+-            detail::char_converter<basic_printf_context<OutputIt, Char>>(arg),
+-            arg);
+-        break;
+-      }
+-    }
+-    specs.type = parse_presentation_type(type);
+-    if (specs.type == presentation_type::none)
+-      parse_ctx.on_error("invalid type specifier");
+-
+-    start = it;
+-
+-    // Format argument.
+-    out = visit_format_arg(
+-        detail::printf_arg_formatter<OutputIt, Char>(out, specs, context), arg);
+-  }
+-  detail::write(out, basic_string_view<Char>(start, to_unsigned(it - start)));
+-}
+-FMT_END_DETAIL_NAMESPACE
+-
+-template <typename Char>
+-using basic_printf_context_t =
+-    basic_printf_context<detail::buffer_appender<Char>, Char>;
+-
+-using printf_context = basic_printf_context_t<char>;
+-using wprintf_context = basic_printf_context_t<wchar_t>;
+-
+-using printf_args = basic_format_args<printf_context>;
+-using wprintf_args = basic_format_args<wprintf_context>;
+-
+-/**
+-  \rst
+-  Constructs an `~fmt::format_arg_store` object that contains references to
+-  arguments and can be implicitly converted to `~fmt::printf_args`.
+-  \endrst
+- */
+-template <typename... T>
+-inline auto make_printf_args(const T&... args)
+-    -> format_arg_store<printf_context, T...> {
+-  return {args...};
+-}
+-
+-/**
+-  \rst
+-  Constructs an `~fmt::format_arg_store` object that contains references to
+-  arguments and can be implicitly converted to `~fmt::wprintf_args`.
+-  \endrst
+- */
+-template <typename... T>
+-inline auto make_wprintf_args(const T&... args)
+-    -> format_arg_store<wprintf_context, T...> {
+-  return {args...};
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-inline auto vsprintf(
+-    const S& fmt,
+-    basic_format_args<basic_printf_context_t<type_identity_t<Char>>> args)
+-    -> std::basic_string<Char> {
+-  basic_memory_buffer<Char> buffer;
+-  vprintf(buffer, to_string_view(fmt), args);
+-  return to_string(buffer);
+-}
+-
+-/**
+-  \rst
+-  Formats arguments and returns the result as a string.
+-
+-  **Example**::
+-
+-    std::string message = fmt::sprintf("The answer is %d", 42);
+-  \endrst
+-*/
+-template <typename S, typename... T,
+-          typename Char = enable_if_t<detail::is_string<S>::value, char_t<S>>>
+-inline auto sprintf(const S& fmt, const T&... args) -> std::basic_string<Char> {
+-  using context = basic_printf_context_t<Char>;
+-  return vsprintf(to_string_view(fmt), fmt::make_format_args<context>(args...));
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-inline auto vfprintf(
+-    std::FILE* f, const S& fmt,
+-    basic_format_args<basic_printf_context_t<type_identity_t<Char>>> args)
+-    -> int {
+-  basic_memory_buffer<Char> buffer;
+-  vprintf(buffer, to_string_view(fmt), args);
+-  size_t size = buffer.size();
+-  return std::fwrite(buffer.data(), sizeof(Char), size, f) < size
+-             ? -1
+-             : static_cast<int>(size);
+-}
+-
+-/**
+-  \rst
+-  Prints formatted data to the file *f*.
+-
+-  **Example**::
+-
+-    fmt::fprintf(stderr, "Don't %s!", "panic");
+-  \endrst
+- */
+-template <typename S, typename... T, typename Char = char_t<S>>
+-inline auto fprintf(std::FILE* f, const S& fmt, const T&... args) -> int {
+-  using context = basic_printf_context_t<Char>;
+-  return vfprintf(f, to_string_view(fmt),
+-                  fmt::make_format_args<context>(args...));
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-inline auto vprintf(
+-    const S& fmt,
+-    basic_format_args<basic_printf_context_t<type_identity_t<Char>>> args)
+-    -> int {
+-  return vfprintf(stdout, to_string_view(fmt), args);
+-}
+-
+-/**
+-  \rst
+-  Prints formatted data to ``stdout``.
+-
+-  **Example**::
+-
+-    fmt::printf("Elapsed time: %.2f seconds", 1.23);
+-  \endrst
+- */
+-template <typename S, typename... T, FMT_ENABLE_IF(detail::is_string<S>::value)>
+-inline auto printf(const S& fmt, const T&... args) -> int {
+-  return vprintf(
+-      to_string_view(fmt),
+-      fmt::make_format_args<basic_printf_context_t<char_t<S>>>(args...));
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-FMT_DEPRECATED auto vfprintf(
+-    std::basic_ostream<Char>& os, const S& fmt,
+-    basic_format_args<basic_printf_context_t<type_identity_t<Char>>> args)
+-    -> int {
+-  basic_memory_buffer<Char> buffer;
+-  vprintf(buffer, to_string_view(fmt), args);
+-  os.write(buffer.data(), static_cast<std::streamsize>(buffer.size()));
+-  return static_cast<int>(buffer.size());
+-}
+-template <typename S, typename... T, typename Char = char_t<S>>
+-FMT_DEPRECATED auto fprintf(std::basic_ostream<Char>& os, const S& fmt,
+-                            const T&... args) -> int {
+-  return vfprintf(os, to_string_view(fmt),
+-                  fmt::make_format_args<basic_printf_context_t<Char>>(args...));
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_PRINTF_H_
+diff --git a/include/dpp/fmt/ranges.h b/include/dpp/fmt/ranges.h
+deleted file mode 100644
+index eb9fb8a..0000000
+--- a/include/dpp/fmt/ranges.h
++++ /dev/null
+@@ -1,793 +0,0 @@
+-// Formatting library for C++ - experimental range support
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-//
+-// Copyright (c) 2018 - present, Remotion (Igor Schulz)
+-// All Rights Reserved
+-// {fmt} support for ranges, containers and types tuple interface.
+-
+-#ifndef FMT_RANGES_H_
+-#define FMT_RANGES_H_
+-
+-#include <initializer_list>
+-#include <tuple>
+-#include <type_traits>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-
+-namespace detail {
+-
+-template <typename RangeT, typename OutputIterator>
+-OutputIterator copy(const RangeT& range, OutputIterator out) {
+-  for (auto it = range.begin(), end = range.end(); it != end; ++it)
+-    *out++ = *it;
+-  return out;
+-}
+-
+-template <typename OutputIterator>
+-OutputIterator copy(const char* str, OutputIterator out) {
+-  while (*str) *out++ = *str++;
+-  return out;
+-}
+-
+-template <typename OutputIterator>
+-OutputIterator copy(char ch, OutputIterator out) {
+-  *out++ = ch;
+-  return out;
+-}
+-
+-template <typename OutputIterator>
+-OutputIterator copy(wchar_t ch, OutputIterator out) {
+-  *out++ = ch;
+-  return out;
+-}
+-
+-// Returns true if T has a std::string-like interface, like std::string_view.
+-template <typename T> class is_std_string_like {
+-  template <typename U>
+-  static auto check(U* p)
+-      -> decltype((void)p->find('a'), p->length(), (void)p->data(), int());
+-  template <typename> static void check(...);
+-
+- public:
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      is_string<T>::value ||
+-      std::is_convertible<T, std_string_view<char>>::value ||
+-      !std::is_void<decltype(check<T>(nullptr))>::value;
+-};
+-
+-template <typename Char>
+-struct is_std_string_like<fmt::basic_string_view<Char>> : std::true_type {};
+-
+-template <typename T> class is_map {
+-  template <typename U> static auto check(U*) -> typename U::mapped_type;
+-  template <typename> static void check(...);
+-
+- public:
+-#ifdef FMT_FORMAT_MAP_AS_LIST
+-  static FMT_CONSTEXPR_DECL const bool value = false;
+-#else
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      !std::is_void<decltype(check<T>(nullptr))>::value;
+-#endif
+-};
+-
+-template <typename T> class is_set {
+-  template <typename U> static auto check(U*) -> typename U::key_type;
+-  template <typename> static void check(...);
+-
+- public:
+-#ifdef FMT_FORMAT_SET_AS_LIST
+-  static FMT_CONSTEXPR_DECL const bool value = false;
+-#else
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      !std::is_void<decltype(check<T>(nullptr))>::value && !is_map<T>::value;
+-#endif
+-};
+-
+-template <typename... Ts> struct conditional_helper {};
+-
+-template <typename T, typename _ = void> struct is_range_ : std::false_type {};
+-
+-#if !FMT_MSC_VER || FMT_MSC_VER > 1800
+-
+-#  define FMT_DECLTYPE_RETURN(val)  \
+-    ->decltype(val) { return val; } \
+-    static_assert(                  \
+-        true, "")  // This makes it so that a semicolon is required after the
+-                   // macro, which helps clang-format handle the formatting.
+-
+-// C array overload
+-template <typename T, std::size_t N>
+-auto range_begin(const T (&arr)[N]) -> const T* {
+-  return arr;
+-}
+-template <typename T, std::size_t N>
+-auto range_end(const T (&arr)[N]) -> const T* {
+-  return arr + N;
+-}
+-
+-template <typename T, typename Enable = void>
+-struct has_member_fn_begin_end_t : std::false_type {};
+-
+-template <typename T>
+-struct has_member_fn_begin_end_t<T, void_t<decltype(std::declval<T>().begin()),
+-                                           decltype(std::declval<T>().end())>>
+-    : std::true_type {};
+-
+-// Member function overload
+-template <typename T>
+-auto range_begin(T&& rng) FMT_DECLTYPE_RETURN(static_cast<T&&>(rng).begin());
+-template <typename T>
+-auto range_end(T&& rng) FMT_DECLTYPE_RETURN(static_cast<T&&>(rng).end());
+-
+-// ADL overload. Only participates in overload resolution if member functions
+-// are not found.
+-template <typename T>
+-auto range_begin(T&& rng)
+-    -> enable_if_t<!has_member_fn_begin_end_t<T&&>::value,
+-                   decltype(begin(static_cast<T&&>(rng)))> {
+-  return begin(static_cast<T&&>(rng));
+-}
+-template <typename T>
+-auto range_end(T&& rng) -> enable_if_t<!has_member_fn_begin_end_t<T&&>::value,
+-                                       decltype(end(static_cast<T&&>(rng)))> {
+-  return end(static_cast<T&&>(rng));
+-}
+-
+-template <typename T, typename Enable = void>
+-struct has_const_begin_end : std::false_type {};
+-template <typename T, typename Enable = void>
+-struct has_mutable_begin_end : std::false_type {};
+-
+-template <typename T>
+-struct has_const_begin_end<
+-    T,
+-    void_t<
+-        decltype(detail::range_begin(std::declval<const remove_cvref_t<T>&>())),
+-        decltype(detail::range_end(std::declval<const remove_cvref_t<T>&>()))>>
+-    : std::true_type {};
+-
+-template <typename T>
+-struct has_mutable_begin_end<
+-    T, void_t<decltype(detail::range_begin(std::declval<T>())),
+-              decltype(detail::range_end(std::declval<T>())),
+-              enable_if_t<std::is_copy_constructible<T>::value>>>
+-    : std::true_type {};
+-
+-template <typename T>
+-struct is_range_<T, void>
+-    : std::integral_constant<bool, (has_const_begin_end<T>::value ||
+-                                    has_mutable_begin_end<T>::value)> {};
+-#  undef FMT_DECLTYPE_RETURN
+-#endif
+-
+-// tuple_size and tuple_element check.
+-template <typename T> class is_tuple_like_ {
+-  template <typename U>
+-  static auto check(U* p) -> decltype(std::tuple_size<U>::value, int());
+-  template <typename> static void check(...);
+-
+- public:
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      !std::is_void<decltype(check<T>(nullptr))>::value;
+-};
+-
+-// Check for integer_sequence
+-#if defined(__cpp_lib_integer_sequence) || FMT_MSC_VER >= 1900
+-template <typename T, T... N>
+-using integer_sequence = std::integer_sequence<T, N...>;
+-template <size_t... N> using index_sequence = std::index_sequence<N...>;
+-template <size_t N> using make_index_sequence = std::make_index_sequence<N>;
+-#else
+-template <typename T, T... N> struct integer_sequence {
+-  using value_type = T;
+-
+-  static FMT_CONSTEXPR size_t size() { return sizeof...(N); }
+-};
+-
+-template <size_t... N> using index_sequence = integer_sequence<size_t, N...>;
+-
+-template <typename T, size_t N, T... Ns>
+-struct make_integer_sequence : make_integer_sequence<T, N - 1, N - 1, Ns...> {};
+-template <typename T, T... Ns>
+-struct make_integer_sequence<T, 0, Ns...> : integer_sequence<T, Ns...> {};
+-
+-template <size_t N>
+-using make_index_sequence = make_integer_sequence<size_t, N>;
+-#endif
+-
+-template <class Tuple, class F, size_t... Is>
+-void for_each(index_sequence<Is...>, Tuple&& tup, F&& f) FMT_NOEXCEPT {
+-  using std::get;
+-  // using free function get<I>(T) now.
+-  const int _[] = {0, ((void)f(get<Is>(tup)), 0)...};
+-  (void)_;  // blocks warnings
+-}
+-
+-template <class T>
+-FMT_CONSTEXPR make_index_sequence<std::tuple_size<T>::value> get_indexes(
+-    T const&) {
+-  return {};
+-}
+-
+-template <class Tuple, class F> void for_each(Tuple&& tup, F&& f) {
+-  const auto indexes = get_indexes(tup);
+-  for_each(indexes, std::forward<Tuple>(tup), std::forward<F>(f));
+-}
+-
+-template <typename Range>
+-using value_type =
+-    remove_cvref_t<decltype(*detail::range_begin(std::declval<Range>()))>;
+-
+-template <typename OutputIt> OutputIt write_delimiter(OutputIt out) {
+-  *out++ = ',';
+-  *out++ = ' ';
+-  return out;
+-}
+-
+-struct singleton {
+-  unsigned char upper;
+-  unsigned char lower_count;
+-};
+-
+-inline auto is_printable(uint16_t x, const singleton* singletons,
+-                         size_t singletons_size,
+-                         const unsigned char* singleton_lowers,
+-                         const unsigned char* normal, size_t normal_size)
+-    -> bool {
+-  auto upper = x >> 8;
+-  auto lower_start = 0;
+-  for (size_t i = 0; i < singletons_size; ++i) {
+-    auto s = singletons[i];
+-    auto lower_end = lower_start + s.lower_count;
+-    if (upper < s.upper) break;
+-    if (upper == s.upper) {
+-      for (auto j = lower_start; j < lower_end; ++j) {
+-        if (singleton_lowers[j] == (x & 0xff)) return false;
+-      }
+-    }
+-    lower_start = lower_end;
+-  }
+-
+-  auto xsigned = static_cast<int>(x);
+-  auto current = true;
+-  for (size_t i = 0; i < normal_size; ++i) {
+-    auto v = static_cast<int>(normal[i]);
+-    auto len = (v & 0x80) != 0 ? (v & 0x7f) << 8 | normal[++i] : v;
+-    xsigned -= len;
+-    if (xsigned < 0) break;
+-    current = !current;
+-  }
+-  return current;
+-}
+-
+-// Returns true iff the code point cp is printable.
+-// This code is generated by support/printable.py.
+-inline auto is_printable(uint32_t cp) -> bool {
+-  static constexpr singleton singletons0[] = {
+-      {0x00, 1},  {0x03, 5},  {0x05, 6},  {0x06, 3},  {0x07, 6},  {0x08, 8},
+-      {0x09, 17}, {0x0a, 28}, {0x0b, 25}, {0x0c, 20}, {0x0d, 16}, {0x0e, 13},
+-      {0x0f, 4},  {0x10, 3},  {0x12, 18}, {0x13, 9},  {0x16, 1},  {0x17, 5},
+-      {0x18, 2},  {0x19, 3},  {0x1a, 7},  {0x1c, 2},  {0x1d, 1},  {0x1f, 22},
+-      {0x20, 3},  {0x2b, 3},  {0x2c, 2},  {0x2d, 11}, {0x2e, 1},  {0x30, 3},
+-      {0x31, 2},  {0x32, 1},  {0xa7, 2},  {0xa9, 2},  {0xaa, 4},  {0xab, 8},
+-      {0xfa, 2},  {0xfb, 5},  {0xfd, 4},  {0xfe, 3},  {0xff, 9},
+-  };
+-  static constexpr unsigned char singletons0_lower[] = {
+-      0xad, 0x78, 0x79, 0x8b, 0x8d, 0xa2, 0x30, 0x57, 0x58, 0x8b, 0x8c, 0x90,
+-      0x1c, 0x1d, 0xdd, 0x0e, 0x0f, 0x4b, 0x4c, 0xfb, 0xfc, 0x2e, 0x2f, 0x3f,
+-      0x5c, 0x5d, 0x5f, 0xb5, 0xe2, 0x84, 0x8d, 0x8e, 0x91, 0x92, 0xa9, 0xb1,
+-      0xba, 0xbb, 0xc5, 0xc6, 0xc9, 0xca, 0xde, 0xe4, 0xe5, 0xff, 0x00, 0x04,
+-      0x11, 0x12, 0x29, 0x31, 0x34, 0x37, 0x3a, 0x3b, 0x3d, 0x49, 0x4a, 0x5d,
+-      0x84, 0x8e, 0x92, 0xa9, 0xb1, 0xb4, 0xba, 0xbb, 0xc6, 0xca, 0xce, 0xcf,
+-      0xe4, 0xe5, 0x00, 0x04, 0x0d, 0x0e, 0x11, 0x12, 0x29, 0x31, 0x34, 0x3a,
+-      0x3b, 0x45, 0x46, 0x49, 0x4a, 0x5e, 0x64, 0x65, 0x84, 0x91, 0x9b, 0x9d,
+-      0xc9, 0xce, 0xcf, 0x0d, 0x11, 0x29, 0x45, 0x49, 0x57, 0x64, 0x65, 0x8d,
+-      0x91, 0xa9, 0xb4, 0xba, 0xbb, 0xc5, 0xc9, 0xdf, 0xe4, 0xe5, 0xf0, 0x0d,
+-      0x11, 0x45, 0x49, 0x64, 0x65, 0x80, 0x84, 0xb2, 0xbc, 0xbe, 0xbf, 0xd5,
+-      0xd7, 0xf0, 0xf1, 0x83, 0x85, 0x8b, 0xa4, 0xa6, 0xbe, 0xbf, 0xc5, 0xc7,
+-      0xce, 0xcf, 0xda, 0xdb, 0x48, 0x98, 0xbd, 0xcd, 0xc6, 0xce, 0xcf, 0x49,
+-      0x4e, 0x4f, 0x57, 0x59, 0x5e, 0x5f, 0x89, 0x8e, 0x8f, 0xb1, 0xb6, 0xb7,
+-      0xbf, 0xc1, 0xc6, 0xc7, 0xd7, 0x11, 0x16, 0x17, 0x5b, 0x5c, 0xf6, 0xf7,
+-      0xfe, 0xff, 0x80, 0x0d, 0x6d, 0x71, 0xde, 0xdf, 0x0e, 0x0f, 0x1f, 0x6e,
+-      0x6f, 0x1c, 0x1d, 0x5f, 0x7d, 0x7e, 0xae, 0xaf, 0xbb, 0xbc, 0xfa, 0x16,
+-      0x17, 0x1e, 0x1f, 0x46, 0x47, 0x4e, 0x4f, 0x58, 0x5a, 0x5c, 0x5e, 0x7e,
+-      0x7f, 0xb5, 0xc5, 0xd4, 0xd5, 0xdc, 0xf0, 0xf1, 0xf5, 0x72, 0x73, 0x8f,
+-      0x74, 0x75, 0x96, 0x2f, 0x5f, 0x26, 0x2e, 0x2f, 0xa7, 0xaf, 0xb7, 0xbf,
+-      0xc7, 0xcf, 0xd7, 0xdf, 0x9a, 0x40, 0x97, 0x98, 0x30, 0x8f, 0x1f, 0xc0,
+-      0xc1, 0xce, 0xff, 0x4e, 0x4f, 0x5a, 0x5b, 0x07, 0x08, 0x0f, 0x10, 0x27,
+-      0x2f, 0xee, 0xef, 0x6e, 0x6f, 0x37, 0x3d, 0x3f, 0x42, 0x45, 0x90, 0x91,
+-      0xfe, 0xff, 0x53, 0x67, 0x75, 0xc8, 0xc9, 0xd0, 0xd1, 0xd8, 0xd9, 0xe7,
+-      0xfe, 0xff,
+-  };
+-  static constexpr singleton singletons1[] = {
+-      {0x00, 6},  {0x01, 1}, {0x03, 1},  {0x04, 2}, {0x08, 8},  {0x09, 2},
+-      {0x0a, 5},  {0x0b, 2}, {0x0e, 4},  {0x10, 1}, {0x11, 2},  {0x12, 5},
+-      {0x13, 17}, {0x14, 1}, {0x15, 2},  {0x17, 2}, {0x19, 13}, {0x1c, 5},
+-      {0x1d, 8},  {0x24, 1}, {0x6a, 3},  {0x6b, 2}, {0xbc, 2},  {0xd1, 2},
+-      {0xd4, 12}, {0xd5, 9}, {0xd6, 2},  {0xd7, 2}, {0xda, 1},  {0xe0, 5},
+-      {0xe1, 2},  {0xe8, 2}, {0xee, 32}, {0xf0, 4}, {0xf8, 2},  {0xf9, 2},
+-      {0xfa, 2},  {0xfb, 1},
+-  };
+-  static constexpr unsigned char singletons1_lower[] = {
+-      0x0c, 0x27, 0x3b, 0x3e, 0x4e, 0x4f, 0x8f, 0x9e, 0x9e, 0x9f, 0x06, 0x07,
+-      0x09, 0x36, 0x3d, 0x3e, 0x56, 0xf3, 0xd0, 0xd1, 0x04, 0x14, 0x18, 0x36,
+-      0x37, 0x56, 0x57, 0x7f, 0xaa, 0xae, 0xaf, 0xbd, 0x35, 0xe0, 0x12, 0x87,
+-      0x89, 0x8e, 0x9e, 0x04, 0x0d, 0x0e, 0x11, 0x12, 0x29, 0x31, 0x34, 0x3a,
+-      0x45, 0x46, 0x49, 0x4a, 0x4e, 0x4f, 0x64, 0x65, 0x5c, 0xb6, 0xb7, 0x1b,
+-      0x1c, 0x07, 0x08, 0x0a, 0x0b, 0x14, 0x17, 0x36, 0x39, 0x3a, 0xa8, 0xa9,
+-      0xd8, 0xd9, 0x09, 0x37, 0x90, 0x91, 0xa8, 0x07, 0x0a, 0x3b, 0x3e, 0x66,
+-      0x69, 0x8f, 0x92, 0x6f, 0x5f, 0xee, 0xef, 0x5a, 0x62, 0x9a, 0x9b, 0x27,
+-      0x28, 0x55, 0x9d, 0xa0, 0xa1, 0xa3, 0xa4, 0xa7, 0xa8, 0xad, 0xba, 0xbc,
+-      0xc4, 0x06, 0x0b, 0x0c, 0x15, 0x1d, 0x3a, 0x3f, 0x45, 0x51, 0xa6, 0xa7,
+-      0xcc, 0xcd, 0xa0, 0x07, 0x19, 0x1a, 0x22, 0x25, 0x3e, 0x3f, 0xc5, 0xc6,
+-      0x04, 0x20, 0x23, 0x25, 0x26, 0x28, 0x33, 0x38, 0x3a, 0x48, 0x4a, 0x4c,
+-      0x50, 0x53, 0x55, 0x56, 0x58, 0x5a, 0x5c, 0x5e, 0x60, 0x63, 0x65, 0x66,
+-      0x6b, 0x73, 0x78, 0x7d, 0x7f, 0x8a, 0xa4, 0xaa, 0xaf, 0xb0, 0xc0, 0xd0,
+-      0xae, 0xaf, 0x79, 0xcc, 0x6e, 0x6f, 0x93,
+-  };
+-  static constexpr unsigned char normal0[] = {
+-      0x00, 0x20, 0x5f, 0x22, 0x82, 0xdf, 0x04, 0x82, 0x44, 0x08, 0x1b, 0x04,
+-      0x06, 0x11, 0x81, 0xac, 0x0e, 0x80, 0xab, 0x35, 0x28, 0x0b, 0x80, 0xe0,
+-      0x03, 0x19, 0x08, 0x01, 0x04, 0x2f, 0x04, 0x34, 0x04, 0x07, 0x03, 0x01,
+-      0x07, 0x06, 0x07, 0x11, 0x0a, 0x50, 0x0f, 0x12, 0x07, 0x55, 0x07, 0x03,
+-      0x04, 0x1c, 0x0a, 0x09, 0x03, 0x08, 0x03, 0x07, 0x03, 0x02, 0x03, 0x03,
+-      0x03, 0x0c, 0x04, 0x05, 0x03, 0x0b, 0x06, 0x01, 0x0e, 0x15, 0x05, 0x3a,
+-      0x03, 0x11, 0x07, 0x06, 0x05, 0x10, 0x07, 0x57, 0x07, 0x02, 0x07, 0x15,
+-      0x0d, 0x50, 0x04, 0x43, 0x03, 0x2d, 0x03, 0x01, 0x04, 0x11, 0x06, 0x0f,
+-      0x0c, 0x3a, 0x04, 0x1d, 0x25, 0x5f, 0x20, 0x6d, 0x04, 0x6a, 0x25, 0x80,
+-      0xc8, 0x05, 0x82, 0xb0, 0x03, 0x1a, 0x06, 0x82, 0xfd, 0x03, 0x59, 0x07,
+-      0x15, 0x0b, 0x17, 0x09, 0x14, 0x0c, 0x14, 0x0c, 0x6a, 0x06, 0x0a, 0x06,
+-      0x1a, 0x06, 0x59, 0x07, 0x2b, 0x05, 0x46, 0x0a, 0x2c, 0x04, 0x0c, 0x04,
+-      0x01, 0x03, 0x31, 0x0b, 0x2c, 0x04, 0x1a, 0x06, 0x0b, 0x03, 0x80, 0xac,
+-      0x06, 0x0a, 0x06, 0x21, 0x3f, 0x4c, 0x04, 0x2d, 0x03, 0x74, 0x08, 0x3c,
+-      0x03, 0x0f, 0x03, 0x3c, 0x07, 0x38, 0x08, 0x2b, 0x05, 0x82, 0xff, 0x11,
+-      0x18, 0x08, 0x2f, 0x11, 0x2d, 0x03, 0x20, 0x10, 0x21, 0x0f, 0x80, 0x8c,
+-      0x04, 0x82, 0x97, 0x19, 0x0b, 0x15, 0x88, 0x94, 0x05, 0x2f, 0x05, 0x3b,
+-      0x07, 0x02, 0x0e, 0x18, 0x09, 0x80, 0xb3, 0x2d, 0x74, 0x0c, 0x80, 0xd6,
+-      0x1a, 0x0c, 0x05, 0x80, 0xff, 0x05, 0x80, 0xdf, 0x0c, 0xee, 0x0d, 0x03,
+-      0x84, 0x8d, 0x03, 0x37, 0x09, 0x81, 0x5c, 0x14, 0x80, 0xb8, 0x08, 0x80,
+-      0xcb, 0x2a, 0x38, 0x03, 0x0a, 0x06, 0x38, 0x08, 0x46, 0x08, 0x0c, 0x06,
+-      0x74, 0x0b, 0x1e, 0x03, 0x5a, 0x04, 0x59, 0x09, 0x80, 0x83, 0x18, 0x1c,
+-      0x0a, 0x16, 0x09, 0x4c, 0x04, 0x80, 0x8a, 0x06, 0xab, 0xa4, 0x0c, 0x17,
+-      0x04, 0x31, 0xa1, 0x04, 0x81, 0xda, 0x26, 0x07, 0x0c, 0x05, 0x05, 0x80,
+-      0xa5, 0x11, 0x81, 0x6d, 0x10, 0x78, 0x28, 0x2a, 0x06, 0x4c, 0x04, 0x80,
+-      0x8d, 0x04, 0x80, 0xbe, 0x03, 0x1b, 0x03, 0x0f, 0x0d,
+-  };
+-  static constexpr unsigned char normal1[] = {
+-      0x5e, 0x22, 0x7b, 0x05, 0x03, 0x04, 0x2d, 0x03, 0x66, 0x03, 0x01, 0x2f,
+-      0x2e, 0x80, 0x82, 0x1d, 0x03, 0x31, 0x0f, 0x1c, 0x04, 0x24, 0x09, 0x1e,
+-      0x05, 0x2b, 0x05, 0x44, 0x04, 0x0e, 0x2a, 0x80, 0xaa, 0x06, 0x24, 0x04,
+-      0x24, 0x04, 0x28, 0x08, 0x34, 0x0b, 0x01, 0x80, 0x90, 0x81, 0x37, 0x09,
+-      0x16, 0x0a, 0x08, 0x80, 0x98, 0x39, 0x03, 0x63, 0x08, 0x09, 0x30, 0x16,
+-      0x05, 0x21, 0x03, 0x1b, 0x05, 0x01, 0x40, 0x38, 0x04, 0x4b, 0x05, 0x2f,
+-      0x04, 0x0a, 0x07, 0x09, 0x07, 0x40, 0x20, 0x27, 0x04, 0x0c, 0x09, 0x36,
+-      0x03, 0x3a, 0x05, 0x1a, 0x07, 0x04, 0x0c, 0x07, 0x50, 0x49, 0x37, 0x33,
+-      0x0d, 0x33, 0x07, 0x2e, 0x08, 0x0a, 0x81, 0x26, 0x52, 0x4e, 0x28, 0x08,
+-      0x2a, 0x56, 0x1c, 0x14, 0x17, 0x09, 0x4e, 0x04, 0x1e, 0x0f, 0x43, 0x0e,
+-      0x19, 0x07, 0x0a, 0x06, 0x48, 0x08, 0x27, 0x09, 0x75, 0x0b, 0x3f, 0x41,
+-      0x2a, 0x06, 0x3b, 0x05, 0x0a, 0x06, 0x51, 0x06, 0x01, 0x05, 0x10, 0x03,
+-      0x05, 0x80, 0x8b, 0x62, 0x1e, 0x48, 0x08, 0x0a, 0x80, 0xa6, 0x5e, 0x22,
+-      0x45, 0x0b, 0x0a, 0x06, 0x0d, 0x13, 0x39, 0x07, 0x0a, 0x36, 0x2c, 0x04,
+-      0x10, 0x80, 0xc0, 0x3c, 0x64, 0x53, 0x0c, 0x48, 0x09, 0x0a, 0x46, 0x45,
+-      0x1b, 0x48, 0x08, 0x53, 0x1d, 0x39, 0x81, 0x07, 0x46, 0x0a, 0x1d, 0x03,
+-      0x47, 0x49, 0x37, 0x03, 0x0e, 0x08, 0x0a, 0x06, 0x39, 0x07, 0x0a, 0x81,
+-      0x36, 0x19, 0x80, 0xb7, 0x01, 0x0f, 0x32, 0x0d, 0x83, 0x9b, 0x66, 0x75,
+-      0x0b, 0x80, 0xc4, 0x8a, 0xbc, 0x84, 0x2f, 0x8f, 0xd1, 0x82, 0x47, 0xa1,
+-      0xb9, 0x82, 0x39, 0x07, 0x2a, 0x04, 0x02, 0x60, 0x26, 0x0a, 0x46, 0x0a,
+-      0x28, 0x05, 0x13, 0x82, 0xb0, 0x5b, 0x65, 0x4b, 0x04, 0x39, 0x07, 0x11,
+-      0x40, 0x05, 0x0b, 0x02, 0x0e, 0x97, 0xf8, 0x08, 0x84, 0xd6, 0x2a, 0x09,
+-      0xa2, 0xf7, 0x81, 0x1f, 0x31, 0x03, 0x11, 0x04, 0x08, 0x81, 0x8c, 0x89,
+-      0x04, 0x6b, 0x05, 0x0d, 0x03, 0x09, 0x07, 0x10, 0x93, 0x60, 0x80, 0xf6,
+-      0x0a, 0x73, 0x08, 0x6e, 0x17, 0x46, 0x80, 0x9a, 0x14, 0x0c, 0x57, 0x09,
+-      0x19, 0x80, 0x87, 0x81, 0x47, 0x03, 0x85, 0x42, 0x0f, 0x15, 0x85, 0x50,
+-      0x2b, 0x80, 0xd5, 0x2d, 0x03, 0x1a, 0x04, 0x02, 0x81, 0x70, 0x3a, 0x05,
+-      0x01, 0x85, 0x00, 0x80, 0xd7, 0x29, 0x4c, 0x04, 0x0a, 0x04, 0x02, 0x83,
+-      0x11, 0x44, 0x4c, 0x3d, 0x80, 0xc2, 0x3c, 0x06, 0x01, 0x04, 0x55, 0x05,
+-      0x1b, 0x34, 0x02, 0x81, 0x0e, 0x2c, 0x04, 0x64, 0x0c, 0x56, 0x0a, 0x80,
+-      0xae, 0x38, 0x1d, 0x0d, 0x2c, 0x04, 0x09, 0x07, 0x02, 0x0e, 0x06, 0x80,
+-      0x9a, 0x83, 0xd8, 0x08, 0x0d, 0x03, 0x0d, 0x03, 0x74, 0x0c, 0x59, 0x07,
+-      0x0c, 0x14, 0x0c, 0x04, 0x38, 0x08, 0x0a, 0x06, 0x28, 0x08, 0x22, 0x4e,
+-      0x81, 0x54, 0x0c, 0x15, 0x03, 0x03, 0x05, 0x07, 0x09, 0x19, 0x07, 0x07,
+-      0x09, 0x03, 0x0d, 0x07, 0x29, 0x80, 0xcb, 0x25, 0x0a, 0x84, 0x06,
+-  };
+-  auto lower = static_cast<uint16_t>(cp);
+-  if (cp < 0x10000) {
+-    return is_printable(lower, singletons0,
+-                        sizeof(singletons0) / sizeof(*singletons0),
+-                        singletons0_lower, normal0, sizeof(normal0));
+-  }
+-  if (cp < 0x20000) {
+-    return is_printable(lower, singletons1,
+-                        sizeof(singletons1) / sizeof(*singletons1),
+-                        singletons1_lower, normal1, sizeof(normal1));
+-  }
+-  if (0x2a6de <= cp && cp < 0x2a700) return false;
+-  if (0x2b735 <= cp && cp < 0x2b740) return false;
+-  if (0x2b81e <= cp && cp < 0x2b820) return false;
+-  if (0x2cea2 <= cp && cp < 0x2ceb0) return false;
+-  if (0x2ebe1 <= cp && cp < 0x2f800) return false;
+-  if (0x2fa1e <= cp && cp < 0x30000) return false;
+-  if (0x3134b <= cp && cp < 0xe0100) return false;
+-  if (0xe01f0 <= cp && cp < 0x110000) return false;
+-  return cp < 0x110000;
+-}
+-
+-inline auto needs_escape(uint32_t cp) -> bool {
+-  return cp < 0x20 || cp == 0x7f || cp == '"' || cp == '\\' ||
+-         !is_printable(cp);
+-}
+-
+-template <typename Char> struct find_escape_result {
+-  const Char* begin;
+-  const Char* end;
+-  uint32_t cp;
+-};
+-
+-template <typename Char>
+-auto find_escape(const Char* begin, const Char* end)
+-    -> find_escape_result<Char> {
+-  for (; begin != end; ++begin) {
+-    auto cp = static_cast<typename std::make_unsigned<Char>::type>(*begin);
+-    if (sizeof(Char) == 1 && cp >= 0x80) continue;
+-    if (needs_escape(cp)) return {begin, begin + 1, cp};
+-  }
+-  return {begin, nullptr, 0};
+-}
+-
+-inline auto find_escape(const char* begin, const char* end)
+-    -> find_escape_result<char> {
+-  if (!is_utf8()) return find_escape<char>(begin, end);
+-  auto result = find_escape_result<char>{end, nullptr, 0};
+-  for_each_codepoint(string_view(begin, to_unsigned(end - begin)),
+-                     [&](uint32_t cp, string_view sv) {
+-                       if (needs_escape(cp)) {
+-                         result = {sv.begin(), sv.end(), cp};
+-                         return false;
+-                       }
+-                       return true;
+-                     });
+-  return result;
+-}
+-
+-template <typename Char, typename OutputIt>
+-auto write_range_entry(OutputIt out, basic_string_view<Char> str) -> OutputIt {
+-  *out++ = '"';
+-  auto begin = str.begin(), end = str.end();
+-  do {
+-    auto escape = find_escape(begin, end);
+-    out = copy_str<Char>(begin, escape.begin, out);
+-    begin = escape.end;
+-    if (!begin) break;
+-    auto c = static_cast<Char>(escape.cp);
+-    switch (escape.cp) {
+-    case '\n':
+-      *out++ = '\\';
+-      c = 'n';
+-      break;
+-    case '\r':
+-      *out++ = '\\';
+-      c = 'r';
+-      break;
+-    case '\t':
+-      *out++ = '\\';
+-      c = 't';
+-      break;
+-    case '"':
+-      FMT_FALLTHROUGH;
+-    case '\\':
+-      *out++ = '\\';
+-      break;
+-    default:
+-      if (is_utf8()) {
+-        if (escape.cp < 0x100) {
+-          out = format_to(out, "\\x{:02x}", escape.cp);
+-          continue;
+-        }
+-        if (escape.cp < 0x10000) {
+-          out = format_to(out, "\\u{:04x}", escape.cp);
+-          continue;
+-        }
+-        if (escape.cp < 0x110000) {
+-          out = format_to(out, "\\U{:08x}", escape.cp);
+-          continue;
+-        }
+-      }
+-      for (Char escape_char : basic_string_view<Char>(
+-               escape.begin, to_unsigned(escape.end - escape.begin))) {
+-        out = format_to(
+-            out, "\\x{:02x}",
+-            static_cast<typename std::make_unsigned<Char>::type>(escape_char));
+-      }
+-      continue;
+-    }
+-    *out++ = c;
+-  } while (begin != end);
+-  *out++ = '"';
+-  return out;
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_convertible<T, std_string_view<char>>::value)>
+-inline auto write_range_entry(OutputIt out, const T& str) -> OutputIt {
+-  auto sv = std_string_view<Char>(str);
+-  return write_range_entry<Char>(out, basic_string_view<Char>(sv));
+-}
+-
+-template <typename Char, typename OutputIt, typename Arg,
+-          FMT_ENABLE_IF(std::is_same<Arg, Char>::value)>
+-OutputIt write_range_entry(OutputIt out, const Arg v) {
+-  *out++ = '\'';
+-  *out++ = v;
+-  *out++ = '\'';
+-  return out;
+-}
+-
+-template <
+-    typename Char, typename OutputIt, typename Arg,
+-    FMT_ENABLE_IF(!is_std_string_like<typename std::decay<Arg>::type>::value &&
+-                  !std::is_same<Arg, Char>::value)>
+-OutputIt write_range_entry(OutputIt out, const Arg& v) {
+-  return write<Char>(out, v);
+-}
+-
+-}  // namespace detail
+-
+-template <typename T> struct is_tuple_like {
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      detail::is_tuple_like_<T>::value && !detail::is_range_<T>::value;
+-};
+-
+-template <typename TupleT, typename Char>
+-struct formatter<TupleT, Char, enable_if_t<fmt::is_tuple_like<TupleT>::value>> {
+- private:
+-  // C++11 generic lambda for format().
+-  template <typename FormatContext> struct format_each {
+-    template <typename T> void operator()(const T& v) {
+-      if (i > 0) out = detail::write_delimiter(out);
+-      out = detail::write_range_entry<Char>(out, v);
+-      ++i;
+-    }
+-    int i;
+-    typename FormatContext::iterator& out;
+-  };
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <typename FormatContext = format_context>
+-  auto format(const TupleT& values, FormatContext& ctx) -> decltype(ctx.out()) {
+-    auto out = ctx.out();
+-    *out++ = '(';
+-    detail::for_each(values, format_each<FormatContext>{0, out});
+-    *out++ = ')';
+-    return out;
+-  }
+-};
+-
+-template <typename T, typename Char> struct is_range {
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      detail::is_range_<T>::value && !detail::is_std_string_like<T>::value &&
+-      !detail::is_map<T>::value &&
+-      !std::is_convertible<T, std::basic_string<Char>>::value &&
+-      !std::is_constructible<detail::std_string_view<Char>, T>::value;
+-};
+-
+-template <typename T, typename Char>
+-struct formatter<
+-    T, Char,
+-    enable_if_t<
+-        fmt::is_range<T, Char>::value
+-// Workaround a bug in MSVC 2019 and earlier.
+-#if !FMT_MSC_VER
+-        && (is_formattable<detail::value_type<T>, Char>::value ||
+-            detail::has_fallback_formatter<detail::value_type<T>, Char>::value)
+-#endif
+-        >> {
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <
+-      typename FormatContext, typename U,
+-      FMT_ENABLE_IF(
+-          std::is_same<U, conditional_t<detail::has_const_begin_end<T>::value,
+-                                        const T, T>>::value)>
+-  auto format(U& range, FormatContext& ctx) -> decltype(ctx.out()) {
+-#ifdef FMT_DEPRECATED_BRACED_RANGES
+-    Char prefix = '{';
+-    Char postfix = '}';
+-#else
+-    Char prefix = detail::is_set<T>::value ? '{' : '[';
+-    Char postfix = detail::is_set<T>::value ? '}' : ']';
+-#endif
+-    auto out = ctx.out();
+-    *out++ = prefix;
+-    int i = 0;
+-    auto it = std::begin(range);
+-    auto end = std::end(range);
+-    for (; it != end; ++it) {
+-      if (i > 0) out = detail::write_delimiter(out);
+-      out = detail::write_range_entry<Char>(out, *it);
+-      ++i;
+-    }
+-    *out++ = postfix;
+-    return out;
+-  }
+-};
+-
+-template <typename T, typename Char>
+-struct formatter<
+-    T, Char,
+-    enable_if_t<
+-        detail::is_map<T>::value
+-// Workaround a bug in MSVC 2019 and earlier.
+-#if !FMT_MSC_VER
+-        && (is_formattable<detail::value_type<T>, Char>::value ||
+-            detail::has_fallback_formatter<detail::value_type<T>, Char>::value)
+-#endif
+-        >> {
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <
+-      typename FormatContext, typename U,
+-      FMT_ENABLE_IF(
+-          std::is_same<U, conditional_t<detail::has_const_begin_end<T>::value,
+-                                        const T, T>>::value)>
+-  auto format(U& map, FormatContext& ctx) -> decltype(ctx.out()) {
+-    auto out = ctx.out();
+-    *out++ = '{';
+-    int i = 0;
+-    for (const auto& item : map) {
+-      if (i > 0) out = detail::write_delimiter(out);
+-      out = detail::write_range_entry<Char>(out, item.first);
+-      *out++ = ':';
+-      *out++ = ' ';
+-      out = detail::write_range_entry<Char>(out, item.second);
+-      ++i;
+-    }
+-    *out++ = '}';
+-    return out;
+-  }
+-};
+-
+-template <typename Char, typename... T> struct tuple_join_view : detail::view {
+-  const std::tuple<T...>& tuple;
+-  basic_string_view<Char> sep;
+-
+-  tuple_join_view(const std::tuple<T...>& t, basic_string_view<Char> s)
+-      : tuple(t), sep{s} {}
+-};
+-
+-template <typename Char, typename... T>
+-using tuple_arg_join = tuple_join_view<Char, T...>;
+-
+-// Define FMT_TUPLE_JOIN_SPECIFIERS to enable experimental format specifiers
+-// support in tuple_join. It is disabled by default because of issues with
+-// the dynamic width and precision.
+-#ifndef FMT_TUPLE_JOIN_SPECIFIERS
+-#  define FMT_TUPLE_JOIN_SPECIFIERS 0
+-#endif
+-
+-template <typename Char, typename... T>
+-struct formatter<tuple_join_view<Char, T...>, Char> {
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return do_parse(ctx, std::integral_constant<size_t, sizeof...(T)>());
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(const tuple_join_view<Char, T...>& value,
+-              FormatContext& ctx) const -> typename FormatContext::iterator {
+-    return do_format(value, ctx,
+-                     std::integral_constant<size_t, sizeof...(T)>());
+-  }
+-
+- private:
+-  std::tuple<formatter<typename std::decay<T>::type, Char>...> formatters_;
+-
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto do_parse(ParseContext& ctx,
+-                              std::integral_constant<size_t, 0>)
+-      -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <typename ParseContext, size_t N>
+-  FMT_CONSTEXPR auto do_parse(ParseContext& ctx,
+-                              std::integral_constant<size_t, N>)
+-      -> decltype(ctx.begin()) {
+-    auto end = ctx.begin();
+-#if FMT_TUPLE_JOIN_SPECIFIERS
+-    end = std::get<sizeof...(T) - N>(formatters_).parse(ctx);
+-    if (N > 1) {
+-      auto end1 = do_parse(ctx, std::integral_constant<size_t, N - 1>());
+-      if (end != end1)
+-        FMT_THROW(format_error("incompatible format specs for tuple elements"));
+-    }
+-#endif
+-    return end;
+-  }
+-
+-  template <typename FormatContext>
+-  auto do_format(const tuple_join_view<Char, T...>&, FormatContext& ctx,
+-                 std::integral_constant<size_t, 0>) const ->
+-      typename FormatContext::iterator {
+-    return ctx.out();
+-  }
+-
+-  template <typename FormatContext, size_t N>
+-  auto do_format(const tuple_join_view<Char, T...>& value, FormatContext& ctx,
+-                 std::integral_constant<size_t, N>) const ->
+-      typename FormatContext::iterator {
+-    auto out = std::get<sizeof...(T) - N>(formatters_)
+-                   .format(std::get<sizeof...(T) - N>(value.tuple), ctx);
+-    if (N > 1) {
+-      out = std::copy(value.sep.begin(), value.sep.end(), out);
+-      ctx.advance_to(out);
+-      return do_format(value, ctx, std::integral_constant<size_t, N - 1>());
+-    }
+-    return out;
+-  }
+-};
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-/**
+-  \rst
+-  Returns an object that formats `tuple` with elements separated by `sep`.
+-
+-  **Example**::
+-
+-    std::tuple<int, char> t = {1, 'a'};
+-    fmt::print("{}", fmt::join(t, ", "));
+-    // Output: "1, a"
+-  \endrst
+- */
+-template <typename... T>
+-FMT_CONSTEXPR auto join(const std::tuple<T...>& tuple, string_view sep)
+-    -> tuple_join_view<char, T...> {
+-  return {tuple, sep};
+-}
+-
+-template <typename... T>
+-FMT_CONSTEXPR auto join(const std::tuple<T...>& tuple,
+-                        basic_string_view<wchar_t> sep)
+-    -> tuple_join_view<wchar_t, T...> {
+-  return {tuple, sep};
+-}
+-
+-/**
+-  \rst
+-  Returns an object that formats `initializer_list` with elements separated by
+-  `sep`.
+-
+-  **Example**::
+-
+-    fmt::print("{}", fmt::join({1, 2, 3}, ", "));
+-    // Output: "1, 2, 3"
+-  \endrst
+- */
+-template <typename T>
+-auto join(std::initializer_list<T> list, string_view sep)
+-    -> join_view<const T*, const T*> {
+-  return join(std::begin(list), std::end(list), sep);
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_RANGES_H_
+diff --git a/include/dpp/fmt/xchar.h b/include/dpp/fmt/xchar.h
+deleted file mode 100644
+index 5582507..0000000
+--- a/include/dpp/fmt/xchar.h
++++ /dev/null
+@@ -1,236 +0,0 @@
+-// Formatting library for C++ - optional wchar_t and exotic character support
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_XCHAR_H_
+-#define FMT_XCHAR_H_
+-
+-#include <cwchar>
+-#include <tuple>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-template <typename T>
+-using is_exotic_char = bool_constant<!std::is_same<T, char>::value>;
+-}
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-using wstring_view = basic_string_view<wchar_t>;
+-using wformat_parse_context = basic_format_parse_context<wchar_t>;
+-using wformat_context = buffer_context<wchar_t>;
+-using wformat_args = basic_format_args<wformat_context>;
+-using wmemory_buffer = basic_memory_buffer<wchar_t>;
+-
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-// Workaround broken conversion on older gcc.
+-template <typename... Args> using wformat_string = wstring_view;
+-#else
+-template <typename... Args>
+-using wformat_string = basic_format_string<wchar_t, type_identity_t<Args>...>;
+-#endif
+-
+-template <> struct is_char<wchar_t> : std::true_type {};
+-template <> struct is_char<detail::char8_type> : std::true_type {};
+-template <> struct is_char<char16_t> : std::true_type {};
+-template <> struct is_char<char32_t> : std::true_type {};
+-
+-template <typename... Args>
+-constexpr format_arg_store<wformat_context, Args...> make_wformat_args(
+-    const Args&... args) {
+-  return {args...};
+-}
+-
+-inline namespace literals {
+-constexpr auto operator"" _format(const wchar_t* s, size_t n)
+-    -> detail::udl_formatter<wchar_t> {
+-  return {{s, n}};
+-}
+-
+-#if FMT_USE_USER_DEFINED_LITERALS && !FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-constexpr detail::udl_arg<wchar_t> operator"" _a(const wchar_t* s, size_t) {
+-  return {s};
+-}
+-#endif
+-}  // namespace literals
+-
+-template <typename It, typename Sentinel>
+-auto join(It begin, Sentinel end, wstring_view sep)
+-    -> join_view<It, Sentinel, wchar_t> {
+-  return {begin, end, sep};
+-}
+-
+-template <typename Range>
+-auto join(Range&& range, wstring_view sep)
+-    -> join_view<detail::iterator_t<Range>, detail::sentinel_t<Range>,
+-                 wchar_t> {
+-  return join(std::begin(range), std::end(range), sep);
+-}
+-
+-template <typename T>
+-auto join(std::initializer_list<T> list, wstring_view sep)
+-    -> join_view<const T*, const T*, wchar_t> {
+-  return join(std::begin(list), std::end(list), sep);
+-}
+-
+-template <typename Char, FMT_ENABLE_IF(!std::is_same<Char, char>::value)>
+-auto vformat(basic_string_view<Char> format_str,
+-             basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> std::basic_string<Char> {
+-  basic_memory_buffer<Char> buffer;
+-  detail::vformat_to(buffer, format_str, args);
+-  return to_string(buffer);
+-}
+-
+-// Pass char_t as a default template parameter instead of using
+-// std::basic_string<char_t<S>> to reduce the symbol size.
+-template <typename S, typename... Args, typename Char = char_t<S>,
+-          FMT_ENABLE_IF(!std::is_same<Char, char>::value)>
+-auto format(const S& format_str, Args&&... args) -> std::basic_string<Char> {
+-  const auto& vargs = fmt::make_args_checked<Args...>(format_str, args...);
+-  return vformat(to_string_view(format_str), vargs);
+-}
+-
+-template <typename Locale, typename S, typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_locale<Locale>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto vformat(
+-    const Locale& loc, const S& format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> std::basic_string<Char> {
+-  return detail::vformat(loc, to_string_view(format_str), args);
+-}
+-
+-template <typename Locale, typename S, typename... Args,
+-          typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_locale<Locale>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto format(const Locale& loc, const S& format_str, Args&&... args)
+-    -> std::basic_string<Char> {
+-  return detail::vformat(loc, to_string_view(format_str),
+-                         fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-
+-template <typename OutputIt, typename S, typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-auto vformat_to(OutputIt out, const S& format_str,
+-                basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> OutputIt {
+-  auto&& buf = detail::get_buffer<Char>(out);
+-  detail::vformat_to(buf, to_string_view(format_str), args);
+-  return detail::get_iterator(buf);
+-}
+-
+-template <typename OutputIt, typename S, typename... Args,
+-          typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto format_to(OutputIt out, const S& fmt, Args&&... args) -> OutputIt {
+-  const auto& vargs = fmt::make_args_checked<Args...>(fmt, args...);
+-  return vformat_to(out, to_string_view(fmt), vargs);
+-}
+-
+-template <typename S, typename... Args, typename Char, size_t SIZE,
+-          typename Allocator, FMT_ENABLE_IF(detail::is_string<S>::value)>
+-FMT_DEPRECATED auto format_to(basic_memory_buffer<Char, SIZE, Allocator>& buf,
+-                              const S& format_str, Args&&... args) ->
+-    typename buffer_context<Char>::iterator {
+-  const auto& vargs = fmt::make_args_checked<Args...>(format_str, args...);
+-  detail::vformat_to(buf, to_string_view(format_str), vargs, {});
+-  return detail::buffer_appender<Char>(buf);
+-}
+-
+-template <typename Locale, typename S, typename OutputIt, typename... Args,
+-          typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_locale<Locale>::value&&
+-                                detail::is_exotic_char<Char>::value)>
+-inline auto vformat_to(
+-    OutputIt out, const Locale& loc, const S& format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args) -> OutputIt {
+-  auto&& buf = detail::get_buffer<Char>(out);
+-  vformat_to(buf, to_string_view(format_str), args, detail::locale_ref(loc));
+-  return detail::get_iterator(buf);
+-}
+-
+-template <
+-    typename OutputIt, typename Locale, typename S, typename... Args,
+-    typename Char = char_t<S>,
+-    bool enable = detail::is_output_iterator<OutputIt, Char>::value&&
+-        detail::is_locale<Locale>::value&& detail::is_exotic_char<Char>::value>
+-inline auto format_to(OutputIt out, const Locale& loc, const S& format_str,
+-                      Args&&... args) ->
+-    typename std::enable_if<enable, OutputIt>::type {
+-  const auto& vargs = fmt::make_args_checked<Args...>(format_str, args...);
+-  return vformat_to(out, loc, to_string_view(format_str), vargs);
+-}
+-
+-template <typename OutputIt, typename Char, typename... Args,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto vformat_to_n(
+-    OutputIt out, size_t n, basic_string_view<Char> format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> format_to_n_result<OutputIt> {
+-  detail::iterator_buffer<OutputIt, Char, detail::fixed_buffer_traits> buf(out,
+-                                                                           n);
+-  detail::vformat_to(buf, format_str, args);
+-  return {buf.out(), buf.count()};
+-}
+-
+-template <typename OutputIt, typename S, typename... Args,
+-          typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto format_to_n(OutputIt out, size_t n, const S& fmt,
+-                        const Args&... args) -> format_to_n_result<OutputIt> {
+-  const auto& vargs = fmt::make_args_checked<Args...>(fmt, args...);
+-  return vformat_to_n(out, n, to_string_view(fmt), vargs);
+-}
+-
+-template <typename S, typename... Args, typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_exotic_char<Char>::value)>
+-inline auto formatted_size(const S& fmt, Args&&... args) -> size_t {
+-  detail::counting_buffer<Char> buf;
+-  const auto& vargs = fmt::make_args_checked<Args...>(fmt, args...);
+-  detail::vformat_to(buf, to_string_view(fmt), vargs);
+-  return buf.count();
+-}
+-
+-inline void vprint(std::FILE* f, wstring_view fmt, wformat_args args) {
+-  wmemory_buffer buffer;
+-  detail::vformat_to(buffer, fmt, args);
+-  buffer.push_back(L'\0');
+-  if (std::fputws(buffer.data(), f) == -1)
+-    FMT_THROW(system_error(errno, FMT_STRING("cannot write to file")));
+-}
+-
+-inline void vprint(wstring_view fmt, wformat_args args) {
+-  vprint(stdout, fmt, args);
+-}
+-
+-template <typename... T>
+-void print(std::FILE* f, wformat_string<T...> fmt, T&&... args) {
+-  return vprint(f, wstring_view(fmt), fmt::make_wformat_args(args...));
+-}
+-
+-template <typename... T> void print(wformat_string<T...> fmt, T&&... args) {
+-  return vprint(wstring_view(fmt), fmt::make_wformat_args(args...));
+-}
+-
+-/**
+-  Converts *value* to ``std::wstring`` using the default format for type *T*.
+- */
+-template <typename T> inline auto to_wstring(const T& value) -> std::wstring {
+-  return format(FMT_STRING(L"{}"), value);
+-}
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_XCHAR_H_
+diff --git a/include/dpp/integration.h b/include/dpp/integration.h
+index 420c8d8..6815c3c 100644
+--- a/include/dpp/integration.h
++++ b/include/dpp/integration.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/invite.h b/include/dpp/invite.h
+index eae62a9..e8977a8 100644
+--- a/include/dpp/invite.h
++++ b/include/dpp/invite.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/stage_instance.h>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/json_interface.h b/include/dpp/json_interface.h
+index 302642d..e2e467a 100644
+--- a/include/dpp/json_interface.h
++++ b/include/dpp/json_interface.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 	/**
+diff --git a/include/dpp/message.h b/include/dpp/message.h
+index 1c80553..08de4c0 100644
+--- a/include/dpp/message.h
++++ b/include/dpp/message.h
+@@ -27,7 +27,7 @@
+ #include <dpp/guild.h>
+ #include <optional>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/nlohmann/json.hpp b/include/dpp/nlohmann/json.hpp
+deleted file mode 100755
+index cb27e05..0000000
+--- a/include/dpp/nlohmann/json.hpp
++++ /dev/null
+@@ -1,22091 +0,0 @@
+-/*
+-    __ _____ _____ _____
+- __|  |   __|     |   | |  JSON for Modern C++
+-|  |  |__   |  |  | | | |  version 3.10.5
+-|_____|_____|_____|_|___|  https://github.com/nlohmann/json
+-
+-Licensed under the MIT License <http://opensource.org/licenses/MIT>.
+-SPDX-License-Identifier: MIT
+-Copyright (c) 2013-2022 Niels Lohmann <http://nlohmann.me>.
+-
+-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.
+-*/
+-
+-/****************************************************************************\
+- * Note on documentation: The source files contain links to the online      *
+- * documentation of the public API at https://json.nlohmann.me. This URL    *
+- * contains the most recent documentation and should also be applicable to  *
+- * previous versions; documentation for deprecated functions is not         *
+- * removed, but marked deprecated. See "Generate documentation" section in  *
+- * file doc/README.md.                                                      *
+-\****************************************************************************/
+-
+-#ifndef INCLUDE_NLOHMANN_JSON_HPP_
+-#define INCLUDE_NLOHMANN_JSON_HPP_
+-
+-#define NLOHMANN_JSON_VERSION_MAJOR 3
+-#define NLOHMANN_JSON_VERSION_MINOR 10
+-#define NLOHMANN_JSON_VERSION_PATCH 5
+-
+-#include <algorithm> // all_of, find, for_each
+-#include <cstddef> // nullptr_t, ptrdiff_t, size_t
+-#include <functional> // hash, less
+-#include <initializer_list> // initializer_list
+-#ifndef JSON_NO_IO
+-    #include <iosfwd> // istream, ostream
+-#endif  // JSON_NO_IO
+-#include <iterator> // random_access_iterator_tag
+-#include <memory> // unique_ptr
+-#include <numeric> // accumulate
+-#include <string> // string, stoi, to_string
+-#include <utility> // declval, forward, move, pair, swap
+-#include <vector> // vector
+-
+-// #include <nlohmann/adl_serializer.hpp>
+-
+-
+-#include <type_traits>
+-#include <utility>
+-
+-// #include <nlohmann/detail/conversions/from_json.hpp>
+-
+-
+-#include <algorithm> // transform
+-#include <array> // array
+-#include <forward_list> // forward_list
+-#include <iterator> // inserter, front_inserter, end
+-#include <map> // map
+-#include <string> // string
+-#include <tuple> // tuple, make_tuple
+-#include <type_traits> // is_arithmetic, is_same, is_enum, underlying_type, is_convertible
+-#include <unordered_map> // unordered_map
+-#include <utility> // pair, declval
+-#include <valarray> // valarray
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-
+-#include <exception> // exception
+-#include <stdexcept> // runtime_error
+-#include <string> // to_string
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-#include <array> // array
+-#include <cstddef> // size_t
+-#include <cstdint> // uint8_t
+-#include <string> // string
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-///////////////////////////
+-// JSON type enumeration //
+-///////////////////////////
+-
+-/*!
+-@brief the JSON type enumeration
+-
+-This enumeration collects the different JSON types. It is internally used to
+-distinguish the stored values, and the functions @ref basic_json::is_null(),
+-@ref basic_json::is_object(), @ref basic_json::is_array(),
+-@ref basic_json::is_string(), @ref basic_json::is_boolean(),
+-@ref basic_json::is_number() (with @ref basic_json::is_number_integer(),
+-@ref basic_json::is_number_unsigned(), and @ref basic_json::is_number_float()),
+-@ref basic_json::is_discarded(), @ref basic_json::is_primitive(), and
+-@ref basic_json::is_structured() rely on it.
+-
+-@note There are three enumeration entries (number_integer, number_unsigned, and
+-number_float), because the library distinguishes these three types for numbers:
+-@ref basic_json::number_unsigned_t is used for unsigned integers,
+-@ref basic_json::number_integer_t is used for signed integers, and
+-@ref basic_json::number_float_t is used for floating-point numbers or to
+-approximate integers which do not fit in the limits of their respective type.
+-
+-@sa see @ref basic_json::basic_json(const value_t value_type) -- create a JSON
+-value with the default value for a given type
+-
+-@since version 1.0.0
+-*/
+-enum class value_t : std::uint8_t
+-{
+-    null,             ///< null value
+-    object,           ///< object (unordered set of name/value pairs)
+-    array,            ///< array (ordered collection of values)
+-    string,           ///< string value
+-    boolean,          ///< boolean value
+-    number_integer,   ///< number value (signed integer)
+-    number_unsigned,  ///< number value (unsigned integer)
+-    number_float,     ///< number value (floating-point)
+-    binary,           ///< binary array (ordered collection of bytes)
+-    discarded         ///< discarded by the parser callback function
+-};
+-
+-/*!
+-@brief comparison operator for JSON types
+-
+-Returns an ordering that is similar to Python:
+-- order: null < boolean < number < object < array < string < binary
+-- furthermore, each type is not smaller than itself
+-- discarded values are not comparable
+-- binary is represented as a b"" string in python and directly comparable to a
+-  string; however, making a binary array directly comparable with a string would
+-  be surprising behavior in a JSON file.
+-
+-@since version 1.0.0
+-*/
+-inline bool operator<(const value_t lhs, const value_t rhs) noexcept
+-{
+-    static constexpr std::array<std::uint8_t, 9> order = {{
+-            0 /* null */, 3 /* object */, 4 /* array */, 5 /* string */,
+-            1 /* boolean */, 2 /* integer */, 2 /* unsigned */, 2 /* float */,
+-            6 /* binary */
+-        }
+-    };
+-
+-    const auto l_index = static_cast<std::size_t>(lhs);
+-    const auto r_index = static_cast<std::size_t>(rhs);
+-    return l_index < order.size() && r_index < order.size() && order[l_index] < order[r_index];
+-}
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/string_escape.hpp>
+-
+-
+-#include <string>
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-#include <utility> // declval, pair
+-// #include <nlohmann/thirdparty/hedley/hedley.hpp>
+-
+-
+-/* Hedley - https://nemequ.github.io/hedley
+- * Created by Evan Nemerson <evan@nemerson.com>
+- *
+- * To the extent possible under law, the author(s) have dedicated all
+- * copyright and related and neighboring rights to this software to
+- * the public domain worldwide. This software is distributed without
+- * any warranty.
+- *
+- * For details, see <http://creativecommons.org/publicdomain/zero/1.0/>.
+- * SPDX-License-Identifier: CC0-1.0
+- */
+-
+-#if !defined(JSON_HEDLEY_VERSION) || (JSON_HEDLEY_VERSION < 15)
+-#if defined(JSON_HEDLEY_VERSION)
+-    #undef JSON_HEDLEY_VERSION
+-#endif
+-#define JSON_HEDLEY_VERSION 15
+-
+-#if defined(JSON_HEDLEY_STRINGIFY_EX)
+-    #undef JSON_HEDLEY_STRINGIFY_EX
+-#endif
+-#define JSON_HEDLEY_STRINGIFY_EX(x) #x
+-
+-#if defined(JSON_HEDLEY_STRINGIFY)
+-    #undef JSON_HEDLEY_STRINGIFY
+-#endif
+-#define JSON_HEDLEY_STRINGIFY(x) JSON_HEDLEY_STRINGIFY_EX(x)
+-
+-#if defined(JSON_HEDLEY_CONCAT_EX)
+-    #undef JSON_HEDLEY_CONCAT_EX
+-#endif
+-#define JSON_HEDLEY_CONCAT_EX(a,b) a##b
+-
+-#if defined(JSON_HEDLEY_CONCAT)
+-    #undef JSON_HEDLEY_CONCAT
+-#endif
+-#define JSON_HEDLEY_CONCAT(a,b) JSON_HEDLEY_CONCAT_EX(a,b)
+-
+-#if defined(JSON_HEDLEY_CONCAT3_EX)
+-    #undef JSON_HEDLEY_CONCAT3_EX
+-#endif
+-#define JSON_HEDLEY_CONCAT3_EX(a,b,c) a##b##c
+-
+-#if defined(JSON_HEDLEY_CONCAT3)
+-    #undef JSON_HEDLEY_CONCAT3
+-#endif
+-#define JSON_HEDLEY_CONCAT3(a,b,c) JSON_HEDLEY_CONCAT3_EX(a,b,c)
+-
+-#if defined(JSON_HEDLEY_VERSION_ENCODE)
+-    #undef JSON_HEDLEY_VERSION_ENCODE
+-#endif
+-#define JSON_HEDLEY_VERSION_ENCODE(major,minor,revision) (((major) * 1000000) + ((minor) * 1000) + (revision))
+-
+-#if defined(JSON_HEDLEY_VERSION_DECODE_MAJOR)
+-    #undef JSON_HEDLEY_VERSION_DECODE_MAJOR
+-#endif
+-#define JSON_HEDLEY_VERSION_DECODE_MAJOR(version) ((version) / 1000000)
+-
+-#if defined(JSON_HEDLEY_VERSION_DECODE_MINOR)
+-    #undef JSON_HEDLEY_VERSION_DECODE_MINOR
+-#endif
+-#define JSON_HEDLEY_VERSION_DECODE_MINOR(version) (((version) % 1000000) / 1000)
+-
+-#if defined(JSON_HEDLEY_VERSION_DECODE_REVISION)
+-    #undef JSON_HEDLEY_VERSION_DECODE_REVISION
+-#endif
+-#define JSON_HEDLEY_VERSION_DECODE_REVISION(version) ((version) % 1000)
+-
+-#if defined(JSON_HEDLEY_GNUC_VERSION)
+-    #undef JSON_HEDLEY_GNUC_VERSION
+-#endif
+-#if defined(__GNUC__) && defined(__GNUC_PATCHLEVEL__)
+-    #define JSON_HEDLEY_GNUC_VERSION JSON_HEDLEY_VERSION_ENCODE(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__)
+-#elif defined(__GNUC__)
+-    #define JSON_HEDLEY_GNUC_VERSION JSON_HEDLEY_VERSION_ENCODE(__GNUC__, __GNUC_MINOR__, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_GNUC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_GNUC_VERSION)
+-    #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GNUC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MSVC_VERSION)
+-    #undef JSON_HEDLEY_MSVC_VERSION
+-#endif
+-#if defined(_MSC_FULL_VER) && (_MSC_FULL_VER >= 140000000) && !defined(__ICL)
+-    #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_FULL_VER / 10000000, (_MSC_FULL_VER % 10000000) / 100000, (_MSC_FULL_VER % 100000) / 100)
+-#elif defined(_MSC_FULL_VER) && !defined(__ICL)
+-    #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_FULL_VER / 1000000, (_MSC_FULL_VER % 1000000) / 10000, (_MSC_FULL_VER % 10000) / 10)
+-#elif defined(_MSC_VER) && !defined(__ICL)
+-    #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_VER / 100, _MSC_VER % 100, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MSVC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_MSVC_VERSION_CHECK
+-#endif
+-#if !defined(JSON_HEDLEY_MSVC_VERSION)
+-    #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (0)
+-#elif defined(_MSC_VER) && (_MSC_VER >= 1400)
+-    #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch)))
+-#elif defined(_MSC_VER) && (_MSC_VER >= 1200)
+-    #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch)))
+-#else
+-    #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_VER >= ((major * 100) + (minor)))
+-#endif
+-
+-#if defined(JSON_HEDLEY_INTEL_VERSION)
+-    #undef JSON_HEDLEY_INTEL_VERSION
+-#endif
+-#if defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE) && !defined(__ICL)
+-    #define JSON_HEDLEY_INTEL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, __INTEL_COMPILER_UPDATE)
+-#elif defined(__INTEL_COMPILER) && !defined(__ICL)
+-    #define JSON_HEDLEY_INTEL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_INTEL_VERSION_CHECK)
+-    #undef JSON_HEDLEY_INTEL_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_INTEL_VERSION)
+-    #define JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_INTEL_CL_VERSION)
+-    #undef JSON_HEDLEY_INTEL_CL_VERSION
+-#endif
+-#if defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE) && defined(__ICL)
+-    #define JSON_HEDLEY_INTEL_CL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER, __INTEL_COMPILER_UPDATE, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_INTEL_CL_VERSION_CHECK)
+-    #undef JSON_HEDLEY_INTEL_CL_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_INTEL_CL_VERSION)
+-    #define JSON_HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_CL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_PGI_VERSION)
+-    #undef JSON_HEDLEY_PGI_VERSION
+-#endif
+-#if defined(__PGI) && defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__)
+-    #define JSON_HEDLEY_PGI_VERSION JSON_HEDLEY_VERSION_ENCODE(__PGIC__, __PGIC_MINOR__, __PGIC_PATCHLEVEL__)
+-#endif
+-
+-#if defined(JSON_HEDLEY_PGI_VERSION_CHECK)
+-    #undef JSON_HEDLEY_PGI_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_PGI_VERSION)
+-    #define JSON_HEDLEY_PGI_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_PGI_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_PGI_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_SUNPRO_VERSION)
+-    #undef JSON_HEDLEY_SUNPRO_VERSION
+-#endif
+-#if defined(__SUNPRO_C) && (__SUNPRO_C > 0x1000)
+-    #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((((__SUNPRO_C >> 16) & 0xf) * 10) + ((__SUNPRO_C >> 12) & 0xf), (((__SUNPRO_C >> 8) & 0xf) * 10) + ((__SUNPRO_C >> 4) & 0xf), (__SUNPRO_C & 0xf) * 10)
+-#elif defined(__SUNPRO_C)
+-    #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((__SUNPRO_C >> 8) & 0xf, (__SUNPRO_C >> 4) & 0xf, (__SUNPRO_C) & 0xf)
+-#elif defined(__SUNPRO_CC) && (__SUNPRO_CC > 0x1000)
+-    #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((((__SUNPRO_CC >> 16) & 0xf) * 10) + ((__SUNPRO_CC >> 12) & 0xf), (((__SUNPRO_CC >> 8) & 0xf) * 10) + ((__SUNPRO_CC >> 4) & 0xf), (__SUNPRO_CC & 0xf) * 10)
+-#elif defined(__SUNPRO_CC)
+-    #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((__SUNPRO_CC >> 8) & 0xf, (__SUNPRO_CC >> 4) & 0xf, (__SUNPRO_CC) & 0xf)
+-#endif
+-
+-#if defined(JSON_HEDLEY_SUNPRO_VERSION_CHECK)
+-    #undef JSON_HEDLEY_SUNPRO_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_SUNPRO_VERSION)
+-    #define JSON_HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_SUNPRO_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION)
+-    #undef JSON_HEDLEY_EMSCRIPTEN_VERSION
+-#endif
+-#if defined(__EMSCRIPTEN__)
+-    #define JSON_HEDLEY_EMSCRIPTEN_VERSION JSON_HEDLEY_VERSION_ENCODE(__EMSCRIPTEN_major__, __EMSCRIPTEN_minor__, __EMSCRIPTEN_tiny__)
+-#endif
+-
+-#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK)
+-    #undef JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION)
+-    #define JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_EMSCRIPTEN_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_ARM_VERSION)
+-    #undef JSON_HEDLEY_ARM_VERSION
+-#endif
+-#if defined(__CC_ARM) && defined(__ARMCOMPILER_VERSION)
+-    #define JSON_HEDLEY_ARM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ARMCOMPILER_VERSION / 1000000, (__ARMCOMPILER_VERSION % 1000000) / 10000, (__ARMCOMPILER_VERSION % 10000) / 100)
+-#elif defined(__CC_ARM) && defined(__ARMCC_VERSION)
+-    #define JSON_HEDLEY_ARM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ARMCC_VERSION / 1000000, (__ARMCC_VERSION % 1000000) / 10000, (__ARMCC_VERSION % 10000) / 100)
+-#endif
+-
+-#if defined(JSON_HEDLEY_ARM_VERSION_CHECK)
+-    #undef JSON_HEDLEY_ARM_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_ARM_VERSION)
+-    #define JSON_HEDLEY_ARM_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_ARM_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_ARM_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_IBM_VERSION)
+-    #undef JSON_HEDLEY_IBM_VERSION
+-#endif
+-#if defined(__ibmxl__)
+-    #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ibmxl_version__, __ibmxl_release__, __ibmxl_modification__)
+-#elif defined(__xlC__) && defined(__xlC_ver__)
+-    #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__xlC__ >> 8, __xlC__ & 0xff, (__xlC_ver__ >> 8) & 0xff)
+-#elif defined(__xlC__)
+-    #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__xlC__ >> 8, __xlC__ & 0xff, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_IBM_VERSION_CHECK)
+-    #undef JSON_HEDLEY_IBM_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_IBM_VERSION)
+-    #define JSON_HEDLEY_IBM_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_IBM_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_IBM_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_VERSION)
+-    #undef JSON_HEDLEY_TI_VERSION
+-#endif
+-#if \
+-    defined(__TI_COMPILER_VERSION__) && \
+-    ( \
+-      defined(__TMS470__) || defined(__TI_ARM__) || \
+-      defined(__MSP430__) || \
+-      defined(__TMS320C2000__) \
+-    )
+-#if (__TI_COMPILER_VERSION__ >= 16000000)
+-    #define JSON_HEDLEY_TI_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_VERSION)
+-    #define JSON_HEDLEY_TI_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL2000_VERSION)
+-    #undef JSON_HEDLEY_TI_CL2000_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__TMS320C2000__)
+-    #define JSON_HEDLEY_TI_CL2000_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL2000_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CL2000_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CL2000_VERSION)
+-    #define JSON_HEDLEY_TI_CL2000_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL2000_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CL2000_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL430_VERSION)
+-    #undef JSON_HEDLEY_TI_CL430_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__MSP430__)
+-    #define JSON_HEDLEY_TI_CL430_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL430_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CL430_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CL430_VERSION)
+-    #define JSON_HEDLEY_TI_CL430_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL430_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CL430_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_ARMCL_VERSION)
+-    #undef JSON_HEDLEY_TI_ARMCL_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && (defined(__TMS470__) || defined(__TI_ARM__))
+-    #define JSON_HEDLEY_TI_ARMCL_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_ARMCL_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_ARMCL_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_ARMCL_VERSION)
+-    #define JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_ARMCL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL6X_VERSION)
+-    #undef JSON_HEDLEY_TI_CL6X_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__TMS320C6X__)
+-    #define JSON_HEDLEY_TI_CL6X_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL6X_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CL6X_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CL6X_VERSION)
+-    #define JSON_HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL6X_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL7X_VERSION)
+-    #undef JSON_HEDLEY_TI_CL7X_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__C7000__)
+-    #define JSON_HEDLEY_TI_CL7X_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL7X_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CL7X_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CL7X_VERSION)
+-    #define JSON_HEDLEY_TI_CL7X_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL7X_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CL7X_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CLPRU_VERSION)
+-    #undef JSON_HEDLEY_TI_CLPRU_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__PRU__)
+-    #define JSON_HEDLEY_TI_CLPRU_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CLPRU_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CLPRU_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CLPRU_VERSION)
+-    #define JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CLPRU_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_CRAY_VERSION)
+-    #undef JSON_HEDLEY_CRAY_VERSION
+-#endif
+-#if defined(_CRAYC)
+-    #if defined(_RELEASE_PATCHLEVEL)
+-        #define JSON_HEDLEY_CRAY_VERSION JSON_HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, _RELEASE_PATCHLEVEL)
+-    #else
+-        #define JSON_HEDLEY_CRAY_VERSION JSON_HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, 0)
+-    #endif
+-#endif
+-
+-#if defined(JSON_HEDLEY_CRAY_VERSION_CHECK)
+-    #undef JSON_HEDLEY_CRAY_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_CRAY_VERSION)
+-    #define JSON_HEDLEY_CRAY_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_CRAY_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_CRAY_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_IAR_VERSION)
+-    #undef JSON_HEDLEY_IAR_VERSION
+-#endif
+-#if defined(__IAR_SYSTEMS_ICC__)
+-    #if __VER__ > 1000
+-        #define JSON_HEDLEY_IAR_VERSION JSON_HEDLEY_VERSION_ENCODE((__VER__ / 1000000), ((__VER__ / 1000) % 1000), (__VER__ % 1000))
+-    #else
+-        #define JSON_HEDLEY_IAR_VERSION JSON_HEDLEY_VERSION_ENCODE(__VER__ / 100, __VER__ % 100, 0)
+-    #endif
+-#endif
+-
+-#if defined(JSON_HEDLEY_IAR_VERSION_CHECK)
+-    #undef JSON_HEDLEY_IAR_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_IAR_VERSION)
+-    #define JSON_HEDLEY_IAR_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_IAR_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_IAR_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TINYC_VERSION)
+-    #undef JSON_HEDLEY_TINYC_VERSION
+-#endif
+-#if defined(__TINYC__)
+-    #define JSON_HEDLEY_TINYC_VERSION JSON_HEDLEY_VERSION_ENCODE(__TINYC__ / 1000, (__TINYC__ / 100) % 10, __TINYC__ % 100)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TINYC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TINYC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TINYC_VERSION)
+-    #define JSON_HEDLEY_TINYC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TINYC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TINYC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_DMC_VERSION)
+-    #undef JSON_HEDLEY_DMC_VERSION
+-#endif
+-#if defined(__DMC__)
+-    #define JSON_HEDLEY_DMC_VERSION JSON_HEDLEY_VERSION_ENCODE(__DMC__ >> 8, (__DMC__ >> 4) & 0xf, __DMC__ & 0xf)
+-#endif
+-
+-#if defined(JSON_HEDLEY_DMC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_DMC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_DMC_VERSION)
+-    #define JSON_HEDLEY_DMC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_DMC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_DMC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_COMPCERT_VERSION)
+-    #undef JSON_HEDLEY_COMPCERT_VERSION
+-#endif
+-#if defined(__COMPCERT_VERSION__)
+-    #define JSON_HEDLEY_COMPCERT_VERSION JSON_HEDLEY_VERSION_ENCODE(__COMPCERT_VERSION__ / 10000, (__COMPCERT_VERSION__ / 100) % 100, __COMPCERT_VERSION__ % 100)
+-#endif
+-
+-#if defined(JSON_HEDLEY_COMPCERT_VERSION_CHECK)
+-    #undef JSON_HEDLEY_COMPCERT_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_COMPCERT_VERSION)
+-    #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_COMPCERT_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_PELLES_VERSION)
+-    #undef JSON_HEDLEY_PELLES_VERSION
+-#endif
+-#if defined(__POCC__)
+-    #define JSON_HEDLEY_PELLES_VERSION JSON_HEDLEY_VERSION_ENCODE(__POCC__ / 100, __POCC__ % 100, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_PELLES_VERSION_CHECK)
+-    #undef JSON_HEDLEY_PELLES_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_PELLES_VERSION)
+-    #define JSON_HEDLEY_PELLES_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_PELLES_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_PELLES_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MCST_LCC_VERSION)
+-    #undef JSON_HEDLEY_MCST_LCC_VERSION
+-#endif
+-#if defined(__LCC__) && defined(__LCC_MINOR__)
+-    #define JSON_HEDLEY_MCST_LCC_VERSION JSON_HEDLEY_VERSION_ENCODE(__LCC__ / 100, __LCC__ % 100, __LCC_MINOR__)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MCST_LCC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_MCST_LCC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_MCST_LCC_VERSION)
+-    #define JSON_HEDLEY_MCST_LCC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_MCST_LCC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_MCST_LCC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_VERSION)
+-    #undef JSON_HEDLEY_GCC_VERSION
+-#endif
+-#if \
+-    defined(JSON_HEDLEY_GNUC_VERSION) && \
+-    !defined(__clang__) && \
+-    !defined(JSON_HEDLEY_INTEL_VERSION) && \
+-    !defined(JSON_HEDLEY_PGI_VERSION) && \
+-    !defined(JSON_HEDLEY_ARM_VERSION) && \
+-    !defined(JSON_HEDLEY_CRAY_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_ARMCL_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CL430_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CL2000_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CL6X_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CL7X_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CLPRU_VERSION) && \
+-    !defined(__COMPCERT__) && \
+-    !defined(JSON_HEDLEY_MCST_LCC_VERSION)
+-    #define JSON_HEDLEY_GCC_VERSION JSON_HEDLEY_GNUC_VERSION
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_GCC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_GCC_VERSION)
+-    #define JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GCC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_ATTRIBUTE)
+-    #undef JSON_HEDLEY_HAS_ATTRIBUTE
+-#endif
+-#if \
+-  defined(__has_attribute) && \
+-  ( \
+-    (!defined(JSON_HEDLEY_IAR_VERSION) || JSON_HEDLEY_IAR_VERSION_CHECK(8,5,9)) \
+-  )
+-#  define JSON_HEDLEY_HAS_ATTRIBUTE(attribute) __has_attribute(attribute)
+-#else
+-#  define JSON_HEDLEY_HAS_ATTRIBUTE(attribute) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GNUC_HAS_ATTRIBUTE
+-#endif
+-#if defined(__has_attribute)
+-    #define JSON_HEDLEY_GNUC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_HAS_ATTRIBUTE(attribute)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GCC_HAS_ATTRIBUTE
+-#endif
+-#if defined(__has_attribute)
+-    #define JSON_HEDLEY_GCC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_HAS_ATTRIBUTE(attribute)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_CPP_ATTRIBUTE)
+-    #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE
+-#endif
+-#if \
+-    defined(__has_cpp_attribute) && \
+-    defined(__cplusplus) && \
+-    (!defined(JSON_HEDLEY_SUNPRO_VERSION) || JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0))
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute) __has_cpp_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS)
+-    #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS
+-#endif
+-#if !defined(__cplusplus) || !defined(__has_cpp_attribute)
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) (0)
+-#elif \
+-    !defined(JSON_HEDLEY_PGI_VERSION) && \
+-    !defined(JSON_HEDLEY_IAR_VERSION) && \
+-    (!defined(JSON_HEDLEY_SUNPRO_VERSION) || JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0)) && \
+-    (!defined(JSON_HEDLEY_MSVC_VERSION) || JSON_HEDLEY_MSVC_VERSION_CHECK(19,20,0))
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) JSON_HEDLEY_HAS_CPP_ATTRIBUTE(ns::attribute)
+-#else
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE
+-#endif
+-#if defined(__has_cpp_attribute) && defined(__cplusplus)
+-    #define JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) __has_cpp_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE
+-#endif
+-#if defined(__has_cpp_attribute) && defined(__cplusplus)
+-    #define JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) __has_cpp_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_BUILTIN)
+-    #undef JSON_HEDLEY_HAS_BUILTIN
+-#endif
+-#if defined(__has_builtin)
+-    #define JSON_HEDLEY_HAS_BUILTIN(builtin) __has_builtin(builtin)
+-#else
+-    #define JSON_HEDLEY_HAS_BUILTIN(builtin) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_BUILTIN)
+-    #undef JSON_HEDLEY_GNUC_HAS_BUILTIN
+-#endif
+-#if defined(__has_builtin)
+-    #define JSON_HEDLEY_GNUC_HAS_BUILTIN(builtin,major,minor,patch) __has_builtin(builtin)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_BUILTIN(builtin,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_BUILTIN)
+-    #undef JSON_HEDLEY_GCC_HAS_BUILTIN
+-#endif
+-#if defined(__has_builtin)
+-    #define JSON_HEDLEY_GCC_HAS_BUILTIN(builtin,major,minor,patch) __has_builtin(builtin)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_BUILTIN(builtin,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_FEATURE)
+-    #undef JSON_HEDLEY_HAS_FEATURE
+-#endif
+-#if defined(__has_feature)
+-    #define JSON_HEDLEY_HAS_FEATURE(feature) __has_feature(feature)
+-#else
+-    #define JSON_HEDLEY_HAS_FEATURE(feature) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_FEATURE)
+-    #undef JSON_HEDLEY_GNUC_HAS_FEATURE
+-#endif
+-#if defined(__has_feature)
+-    #define JSON_HEDLEY_GNUC_HAS_FEATURE(feature,major,minor,patch) __has_feature(feature)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_FEATURE(feature,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_FEATURE)
+-    #undef JSON_HEDLEY_GCC_HAS_FEATURE
+-#endif
+-#if defined(__has_feature)
+-    #define JSON_HEDLEY_GCC_HAS_FEATURE(feature,major,minor,patch) __has_feature(feature)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_FEATURE(feature,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_EXTENSION)
+-    #undef JSON_HEDLEY_HAS_EXTENSION
+-#endif
+-#if defined(__has_extension)
+-    #define JSON_HEDLEY_HAS_EXTENSION(extension) __has_extension(extension)
+-#else
+-    #define JSON_HEDLEY_HAS_EXTENSION(extension) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_EXTENSION)
+-    #undef JSON_HEDLEY_GNUC_HAS_EXTENSION
+-#endif
+-#if defined(__has_extension)
+-    #define JSON_HEDLEY_GNUC_HAS_EXTENSION(extension,major,minor,patch) __has_extension(extension)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_EXTENSION(extension,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_EXTENSION)
+-    #undef JSON_HEDLEY_GCC_HAS_EXTENSION
+-#endif
+-#if defined(__has_extension)
+-    #define JSON_HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) __has_extension(extension)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE)
+-    #undef JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE
+-#endif
+-#if defined(__has_declspec_attribute)
+-    #define JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) __has_declspec_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE
+-#endif
+-#if defined(__has_declspec_attribute)
+-    #define JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) __has_declspec_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE
+-#endif
+-#if defined(__has_declspec_attribute)
+-    #define JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) __has_declspec_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_WARNING)
+-    #undef JSON_HEDLEY_HAS_WARNING
+-#endif
+-#if defined(__has_warning)
+-    #define JSON_HEDLEY_HAS_WARNING(warning) __has_warning(warning)
+-#else
+-    #define JSON_HEDLEY_HAS_WARNING(warning) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_WARNING)
+-    #undef JSON_HEDLEY_GNUC_HAS_WARNING
+-#endif
+-#if defined(__has_warning)
+-    #define JSON_HEDLEY_GNUC_HAS_WARNING(warning,major,minor,patch) __has_warning(warning)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_WARNING(warning,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_WARNING)
+-    #undef JSON_HEDLEY_GCC_HAS_WARNING
+-#endif
+-#if defined(__has_warning)
+-    #define JSON_HEDLEY_GCC_HAS_WARNING(warning,major,minor,patch) __has_warning(warning)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_WARNING(warning,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if \
+-    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \
+-    defined(__clang__) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(18,4,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,7,0) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(2,0,1) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,1,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,0,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_CRAY_VERSION_CHECK(5,0,0) || \
+-    JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,17) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(8,0,0) || \
+-    (JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) && defined(__C99_PRAGMA_OPERATOR))
+-    #define JSON_HEDLEY_PRAGMA(value) _Pragma(#value)
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0)
+-    #define JSON_HEDLEY_PRAGMA(value) __pragma(value)
+-#else
+-    #define JSON_HEDLEY_PRAGMA(value)
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_PUSH)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_PUSH
+-#endif
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_POP)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_POP
+-#endif
+-#if defined(__clang__)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("clang diagnostic push")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("clang diagnostic pop")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("warning(push)")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("warning(pop)")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("GCC diagnostic push")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("GCC diagnostic pop")
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH __pragma(warning(push))
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP __pragma(warning(pop))
+-#elif JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("push")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("pop")
+-#elif \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,4,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,1,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("diag_push")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("diag_pop")
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,90,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("warning(push)")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("warning(pop)")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP
+-#endif
+-
+-/* JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_ is for
+-   HEDLEY INTERNAL USE ONLY.  API subject to change without notice. */
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_
+-#endif
+-#if defined(__cplusplus)
+-#  if JSON_HEDLEY_HAS_WARNING("-Wc++98-compat")
+-#    if JSON_HEDLEY_HAS_WARNING("-Wc++17-extensions")
+-#      if JSON_HEDLEY_HAS_WARNING("-Wc++1z-extensions")
+-#        define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \
+-    _Pragma("clang diagnostic ignored \"-Wc++17-extensions\"") \
+-    _Pragma("clang diagnostic ignored \"-Wc++1z-extensions\"") \
+-    xpr \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#      else
+-#        define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \
+-    _Pragma("clang diagnostic ignored \"-Wc++17-extensions\"") \
+-    xpr \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#      endif
+-#    else
+-#      define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \
+-    xpr \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#    endif
+-#  endif
+-#endif
+-#if !defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(x) x
+-#endif
+-
+-#if defined(JSON_HEDLEY_CONST_CAST)
+-    #undef JSON_HEDLEY_CONST_CAST
+-#endif
+-#if defined(__cplusplus)
+-#  define JSON_HEDLEY_CONST_CAST(T, expr) (const_cast<T>(expr))
+-#elif \
+-  JSON_HEDLEY_HAS_WARNING("-Wcast-qual") || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-#  define JSON_HEDLEY_CONST_CAST(T, expr) (__extension__ ({ \
+-        JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-        JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL \
+-        ((T) (expr)); \
+-        JSON_HEDLEY_DIAGNOSTIC_POP \
+-    }))
+-#else
+-#  define JSON_HEDLEY_CONST_CAST(T, expr) ((T) (expr))
+-#endif
+-
+-#if defined(JSON_HEDLEY_REINTERPRET_CAST)
+-    #undef JSON_HEDLEY_REINTERPRET_CAST
+-#endif
+-#if defined(__cplusplus)
+-    #define JSON_HEDLEY_REINTERPRET_CAST(T, expr) (reinterpret_cast<T>(expr))
+-#else
+-    #define JSON_HEDLEY_REINTERPRET_CAST(T, expr) ((T) (expr))
+-#endif
+-
+-#if defined(JSON_HEDLEY_STATIC_CAST)
+-    #undef JSON_HEDLEY_STATIC_CAST
+-#endif
+-#if defined(__cplusplus)
+-    #define JSON_HEDLEY_STATIC_CAST(T, expr) (static_cast<T>(expr))
+-#else
+-    #define JSON_HEDLEY_STATIC_CAST(T, expr) ((T) (expr))
+-#endif
+-
+-#if defined(JSON_HEDLEY_CPP_CAST)
+-    #undef JSON_HEDLEY_CPP_CAST
+-#endif
+-#if defined(__cplusplus)
+-#  if JSON_HEDLEY_HAS_WARNING("-Wold-style-cast")
+-#    define JSON_HEDLEY_CPP_CAST(T, expr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wold-style-cast\"") \
+-    ((T) (expr)) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#  elif JSON_HEDLEY_IAR_VERSION_CHECK(8,3,0)
+-#    define JSON_HEDLEY_CPP_CAST(T, expr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("diag_suppress=Pe137") \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#  else
+-#    define JSON_HEDLEY_CPP_CAST(T, expr) ((T) (expr))
+-#  endif
+-#else
+-#  define JSON_HEDLEY_CPP_CAST(T, expr) (expr)
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wdeprecated-declarations")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("warning(disable:1478 1786)")
+-#elif JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED __pragma(warning(disable:1478 1786))
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(20,7,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1216,1444,1445")
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1444")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED __pragma(warning(disable:4996))
+-#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1444")
+-#elif \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1291,1718")
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) && !defined(__cplusplus)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("error_messages(off,E_DEPRECATED_ATT,E_DEPRECATED_ATT_MESS)")
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) && defined(__cplusplus)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("error_messages(off,symdeprecated,symdeprecated2)")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress=Pe1444,Pe1215")
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,90,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("warn(disable:2241)")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("clang diagnostic ignored \"-Wunknown-pragmas\"")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("warning(disable:161)")
+-#elif JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS __pragma(warning(disable:161))
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 1675")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("GCC diagnostic ignored \"-Wunknown-pragmas\"")
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS __pragma(warning(disable:4068))
+-#elif \
+-    JSON_HEDLEY_TI_VERSION_CHECK(16,9,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,3,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 163")
+-#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 163")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress=Pe161")
+-#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 161")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunknown-attributes")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("clang diagnostic ignored \"-Wunknown-attributes\"")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(17,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("warning(disable:1292)")
+-#elif JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES __pragma(warning(disable:1292))
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(19,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES __pragma(warning(disable:5030))
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(20,7,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097,1098")
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097")
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,14,0) && defined(__cplusplus)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("error_messages(off,attrskipunsup)")
+-#elif \
+-    JSON_HEDLEY_TI_VERSION_CHECK(18,1,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,3,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1173")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress=Pe1097")
+-#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wcast-qual")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("clang diagnostic ignored \"-Wcast-qual\"")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("warning(disable:2203 2331)")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("GCC diagnostic ignored \"-Wcast-qual\"")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunused-function")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("clang diagnostic ignored \"-Wunused-function\"")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("GCC diagnostic ignored \"-Wunused-function\"")
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(1,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION __pragma(warning(disable:4505))
+-#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("diag_suppress 3142")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION
+-#endif
+-
+-#if defined(JSON_HEDLEY_DEPRECATED)
+-    #undef JSON_HEDLEY_DEPRECATED
+-#endif
+-#if defined(JSON_HEDLEY_DEPRECATED_FOR)
+-    #undef JSON_HEDLEY_DEPRECATED_FOR
+-#endif
+-#if \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DEPRECATED(since) __declspec(deprecated("Since " # since))
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __declspec(deprecated("Since " #since "; use " #replacement))
+-#elif \
+-    (JSON_HEDLEY_HAS_EXTENSION(attribute_deprecated_with_message) && !defined(JSON_HEDLEY_IAR_VERSION)) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,5,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(18,1,0) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(18,1,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,3,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,3,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DEPRECATED(since) __attribute__((__deprecated__("Since " #since)))
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __attribute__((__deprecated__("Since " #since "; use " #replacement)))
+-#elif defined(__cplusplus) && (__cplusplus >= 201402L)
+-    #define JSON_HEDLEY_DEPRECATED(since) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[deprecated("Since " #since)]])
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[deprecated("Since " #since "; use " #replacement)]])
+-#elif \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(deprecated) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0)
+-    #define JSON_HEDLEY_DEPRECATED(since) __attribute__((__deprecated__))
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __attribute__((__deprecated__))
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
+-    JSON_HEDLEY_PELLES_VERSION_CHECK(6,50,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DEPRECATED(since) __declspec(deprecated)
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __declspec(deprecated)
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DEPRECATED(since) _Pragma("deprecated")
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) _Pragma("deprecated")
+-#else
+-    #define JSON_HEDLEY_DEPRECATED(since)
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement)
+-#endif
+-
+-#if defined(JSON_HEDLEY_UNAVAILABLE)
+-    #undef JSON_HEDLEY_UNAVAILABLE
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(warning) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_UNAVAILABLE(available_since) __attribute__((__warning__("Not available until " #available_since)))
+-#else
+-    #define JSON_HEDLEY_UNAVAILABLE(available_since)
+-#endif
+-
+-#if defined(JSON_HEDLEY_WARN_UNUSED_RESULT)
+-    #undef JSON_HEDLEY_WARN_UNUSED_RESULT
+-#endif
+-#if defined(JSON_HEDLEY_WARN_UNUSED_RESULT_MSG)
+-    #undef JSON_HEDLEY_WARN_UNUSED_RESULT_MSG
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(warn_unused_result) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0) && defined(__cplusplus)) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) __attribute__((__warn_unused_result__))
+-#elif (JSON_HEDLEY_HAS_CPP_ATTRIBUTE(nodiscard) >= 201907L)
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]])
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard(msg)]])
+-#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE(nodiscard)
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]])
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]])
+-#elif defined(_Check_return_) /* SAL */
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT _Check_return_
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) _Check_return_
+-#else
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg)
+-#endif
+-
+-#if defined(JSON_HEDLEY_SENTINEL)
+-    #undef JSON_HEDLEY_SENTINEL
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(sentinel) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(5,4,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_SENTINEL(position) __attribute__((__sentinel__(position)))
+-#else
+-    #define JSON_HEDLEY_SENTINEL(position)
+-#endif
+-
+-#if defined(JSON_HEDLEY_NO_RETURN)
+-    #undef JSON_HEDLEY_NO_RETURN
+-#endif
+-#if JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_NO_RETURN __noreturn
+-#elif \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_NO_RETURN __attribute__((__noreturn__))
+-#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
+-    #define JSON_HEDLEY_NO_RETURN _Noreturn
+-#elif defined(__cplusplus) && (__cplusplus >= 201103L)
+-    #define JSON_HEDLEY_NO_RETURN JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[noreturn]])
+-#elif \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(noreturn) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,2,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0)
+-    #define JSON_HEDLEY_NO_RETURN __attribute__((__noreturn__))
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
+-    #define JSON_HEDLEY_NO_RETURN _Pragma("does_not_return")
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_NO_RETURN __declspec(noreturn)
+-#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,0,0) && defined(__cplusplus)
+-    #define JSON_HEDLEY_NO_RETURN _Pragma("FUNC_NEVER_RETURNS;")
+-#elif JSON_HEDLEY_COMPCERT_VERSION_CHECK(3,2,0)
+-    #define JSON_HEDLEY_NO_RETURN __attribute((noreturn))
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(9,0,0)
+-    #define JSON_HEDLEY_NO_RETURN __declspec(noreturn)
+-#else
+-    #define JSON_HEDLEY_NO_RETURN
+-#endif
+-
+-#if defined(JSON_HEDLEY_NO_ESCAPE)
+-    #undef JSON_HEDLEY_NO_ESCAPE
+-#endif
+-#if JSON_HEDLEY_HAS_ATTRIBUTE(noescape)
+-    #define JSON_HEDLEY_NO_ESCAPE __attribute__((__noescape__))
+-#else
+-    #define JSON_HEDLEY_NO_ESCAPE
+-#endif
+-
+-#if defined(JSON_HEDLEY_UNREACHABLE)
+-    #undef JSON_HEDLEY_UNREACHABLE
+-#endif
+-#if defined(JSON_HEDLEY_UNREACHABLE_RETURN)
+-    #undef JSON_HEDLEY_UNREACHABLE_RETURN
+-#endif
+-#if defined(JSON_HEDLEY_ASSUME)
+-    #undef JSON_HEDLEY_ASSUME
+-#endif
+-#if \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_ASSUME(expr) __assume(expr)
+-#elif JSON_HEDLEY_HAS_BUILTIN(__builtin_assume)
+-    #define JSON_HEDLEY_ASSUME(expr) __builtin_assume(expr)
+-#elif \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0)
+-    #if defined(__cplusplus)
+-        #define JSON_HEDLEY_ASSUME(expr) std::_nassert(expr)
+-    #else
+-        #define JSON_HEDLEY_ASSUME(expr) _nassert(expr)
+-    #endif
+-#endif
+-#if \
+-    (JSON_HEDLEY_HAS_BUILTIN(__builtin_unreachable) && (!defined(JSON_HEDLEY_ARM_VERSION))) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,5,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(18,10,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(13,1,5) || \
+-    JSON_HEDLEY_CRAY_VERSION_CHECK(10,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_UNREACHABLE() __builtin_unreachable()
+-#elif defined(JSON_HEDLEY_ASSUME)
+-    #define JSON_HEDLEY_UNREACHABLE() JSON_HEDLEY_ASSUME(0)
+-#endif
+-#if !defined(JSON_HEDLEY_ASSUME)
+-    #if defined(JSON_HEDLEY_UNREACHABLE)
+-        #define JSON_HEDLEY_ASSUME(expr) JSON_HEDLEY_STATIC_CAST(void, ((expr) ? 1 : (JSON_HEDLEY_UNREACHABLE(), 1)))
+-    #else
+-        #define JSON_HEDLEY_ASSUME(expr) JSON_HEDLEY_STATIC_CAST(void, expr)
+-    #endif
+-#endif
+-#if defined(JSON_HEDLEY_UNREACHABLE)
+-    #if  \
+-        JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \
+-        JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0)
+-        #define JSON_HEDLEY_UNREACHABLE_RETURN(value) return (JSON_HEDLEY_STATIC_CAST(void, JSON_HEDLEY_ASSUME(0)), (value))
+-    #else
+-        #define JSON_HEDLEY_UNREACHABLE_RETURN(value) JSON_HEDLEY_UNREACHABLE()
+-    #endif
+-#else
+-    #define JSON_HEDLEY_UNREACHABLE_RETURN(value) return (value)
+-#endif
+-#if !defined(JSON_HEDLEY_UNREACHABLE)
+-    #define JSON_HEDLEY_UNREACHABLE() JSON_HEDLEY_ASSUME(0)
+-#endif
+-
+-JSON_HEDLEY_DIAGNOSTIC_PUSH
+-#if JSON_HEDLEY_HAS_WARNING("-Wpedantic")
+-    #pragma clang diagnostic ignored "-Wpedantic"
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wc++98-compat-pedantic") && defined(__cplusplus)
+-    #pragma clang diagnostic ignored "-Wc++98-compat-pedantic"
+-#endif
+-#if JSON_HEDLEY_GCC_HAS_WARNING("-Wvariadic-macros",4,0,0)
+-    #if defined(__clang__)
+-        #pragma clang diagnostic ignored "-Wvariadic-macros"
+-    #elif defined(JSON_HEDLEY_GCC_VERSION)
+-        #pragma GCC diagnostic ignored "-Wvariadic-macros"
+-    #endif
+-#endif
+-#if defined(JSON_HEDLEY_NON_NULL)
+-    #undef JSON_HEDLEY_NON_NULL
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(nonnull) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0)
+-    #define JSON_HEDLEY_NON_NULL(...) __attribute__((__nonnull__(__VA_ARGS__)))
+-#else
+-    #define JSON_HEDLEY_NON_NULL(...)
+-#endif
+-JSON_HEDLEY_DIAGNOSTIC_POP
+-
+-#if defined(JSON_HEDLEY_PRINTF_FORMAT)
+-    #undef JSON_HEDLEY_PRINTF_FORMAT
+-#endif
+-#if defined(__MINGW32__) && JSON_HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && !defined(__USE_MINGW_ANSI_STDIO)
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(ms_printf, string_idx, first_to_check)))
+-#elif defined(__MINGW32__) && JSON_HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && defined(__USE_MINGW_ANSI_STDIO)
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(gnu_printf, string_idx, first_to_check)))
+-#elif \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(format) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(__printf__, string_idx, first_to_check)))
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(6,0,0)
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __declspec(vaformat(printf,string_idx,first_to_check))
+-#else
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check)
+-#endif
+-
+-#if defined(JSON_HEDLEY_CONSTEXPR)
+-    #undef JSON_HEDLEY_CONSTEXPR
+-#endif
+-#if defined(__cplusplus)
+-    #if __cplusplus >= 201103L
+-        #define JSON_HEDLEY_CONSTEXPR JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(constexpr)
+-    #endif
+-#endif
+-#if !defined(JSON_HEDLEY_CONSTEXPR)
+-    #define JSON_HEDLEY_CONSTEXPR
+-#endif
+-
+-#if defined(JSON_HEDLEY_PREDICT)
+-    #undef JSON_HEDLEY_PREDICT
+-#endif
+-#if defined(JSON_HEDLEY_LIKELY)
+-    #undef JSON_HEDLEY_LIKELY
+-#endif
+-#if defined(JSON_HEDLEY_UNLIKELY)
+-    #undef JSON_HEDLEY_UNLIKELY
+-#endif
+-#if defined(JSON_HEDLEY_UNPREDICTABLE)
+-    #undef JSON_HEDLEY_UNPREDICTABLE
+-#endif
+-#if JSON_HEDLEY_HAS_BUILTIN(__builtin_unpredictable)
+-    #define JSON_HEDLEY_UNPREDICTABLE(expr) __builtin_unpredictable((expr))
+-#endif
+-#if \
+-  (JSON_HEDLEY_HAS_BUILTIN(__builtin_expect_with_probability) && !defined(JSON_HEDLEY_PGI_VERSION)) || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(9,0,0) || \
+-  JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-#  define JSON_HEDLEY_PREDICT(expr, value, probability) __builtin_expect_with_probability(  (expr), (value), (probability))
+-#  define JSON_HEDLEY_PREDICT_TRUE(expr, probability)   __builtin_expect_with_probability(!!(expr),    1   , (probability))
+-#  define JSON_HEDLEY_PREDICT_FALSE(expr, probability)  __builtin_expect_with_probability(!!(expr),    0   , (probability))
+-#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
+-#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
+-#elif \
+-  (JSON_HEDLEY_HAS_BUILTIN(__builtin_expect) && !defined(JSON_HEDLEY_INTEL_CL_VERSION)) || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-  (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0) && defined(__cplusplus)) || \
+-  JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-  JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-  JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-  JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,7,0) || \
+-  JSON_HEDLEY_TI_CL430_VERSION_CHECK(3,1,0) || \
+-  JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,1,0) || \
+-  JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \
+-  JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-  JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-  JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,27) || \
+-  JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \
+-  JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-#  define JSON_HEDLEY_PREDICT(expr, expected, probability) \
+-    (((probability) >= 0.9) ? __builtin_expect((expr), (expected)) : (JSON_HEDLEY_STATIC_CAST(void, expected), (expr)))
+-#  define JSON_HEDLEY_PREDICT_TRUE(expr, probability) \
+-    (__extension__ ({ \
+-        double hedley_probability_ = (probability); \
+-        ((hedley_probability_ >= 0.9) ? __builtin_expect(!!(expr), 1) : ((hedley_probability_ <= 0.1) ? __builtin_expect(!!(expr), 0) : !!(expr))); \
+-    }))
+-#  define JSON_HEDLEY_PREDICT_FALSE(expr, probability) \
+-    (__extension__ ({ \
+-        double hedley_probability_ = (probability); \
+-        ((hedley_probability_ >= 0.9) ? __builtin_expect(!!(expr), 0) : ((hedley_probability_ <= 0.1) ? __builtin_expect(!!(expr), 1) : !!(expr))); \
+-    }))
+-#  define JSON_HEDLEY_LIKELY(expr)   __builtin_expect(!!(expr), 1)
+-#  define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect(!!(expr), 0)
+-#else
+-#  define JSON_HEDLEY_PREDICT(expr, expected, probability) (JSON_HEDLEY_STATIC_CAST(void, expected), (expr))
+-#  define JSON_HEDLEY_PREDICT_TRUE(expr, probability) (!!(expr))
+-#  define JSON_HEDLEY_PREDICT_FALSE(expr, probability) (!!(expr))
+-#  define JSON_HEDLEY_LIKELY(expr) (!!(expr))
+-#  define JSON_HEDLEY_UNLIKELY(expr) (!!(expr))
+-#endif
+-#if !defined(JSON_HEDLEY_UNPREDICTABLE)
+-    #define JSON_HEDLEY_UNPREDICTABLE(expr) JSON_HEDLEY_PREDICT(expr, 1, 0.5)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MALLOC)
+-    #undef JSON_HEDLEY_MALLOC
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(malloc) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(12,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_MALLOC __attribute__((__malloc__))
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
+-    #define JSON_HEDLEY_MALLOC _Pragma("returns_new_memory")
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_MALLOC __declspec(restrict)
+-#else
+-    #define JSON_HEDLEY_MALLOC
+-#endif
+-
+-#if defined(JSON_HEDLEY_PURE)
+-    #undef JSON_HEDLEY_PURE
+-#endif
+-#if \
+-  JSON_HEDLEY_HAS_ATTRIBUTE(pure) || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(2,96,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-  JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-  JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-  JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-  JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-  (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-  (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-  (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-  (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-  JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-  JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-  JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-  JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-#  define JSON_HEDLEY_PURE __attribute__((__pure__))
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
+-#  define JSON_HEDLEY_PURE _Pragma("does_not_write_global_data")
+-#elif defined(__cplusplus) && \
+-    ( \
+-      JSON_HEDLEY_TI_CL430_VERSION_CHECK(2,0,1) || \
+-      JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0) || \
+-      JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) \
+-    )
+-#  define JSON_HEDLEY_PURE _Pragma("FUNC_IS_PURE;")
+-#else
+-#  define JSON_HEDLEY_PURE
+-#endif
+-
+-#if defined(JSON_HEDLEY_CONST)
+-    #undef JSON_HEDLEY_CONST
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(const) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(2,5,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_CONST __attribute__((__const__))
+-#elif \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
+-    #define JSON_HEDLEY_CONST _Pragma("no_side_effect")
+-#else
+-    #define JSON_HEDLEY_CONST JSON_HEDLEY_PURE
+-#endif
+-
+-#if defined(JSON_HEDLEY_RESTRICT)
+-    #undef JSON_HEDLEY_RESTRICT
+-#endif
+-#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && !defined(__cplusplus)
+-    #define JSON_HEDLEY_RESTRICT restrict
+-#elif \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,4) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,1,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,14,0) && defined(__cplusplus)) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) || \
+-    defined(__clang__) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_RESTRICT __restrict
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,3,0) && !defined(__cplusplus)
+-    #define JSON_HEDLEY_RESTRICT _Restrict
+-#else
+-    #define JSON_HEDLEY_RESTRICT
+-#endif
+-
+-#if defined(JSON_HEDLEY_INLINE)
+-    #undef JSON_HEDLEY_INLINE
+-#endif
+-#if \
+-    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \
+-    (defined(__cplusplus) && (__cplusplus >= 199711L))
+-    #define JSON_HEDLEY_INLINE inline
+-#elif \
+-    defined(JSON_HEDLEY_GCC_VERSION) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(6,2,0)
+-    #define JSON_HEDLEY_INLINE __inline__
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(12,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,1,0) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_INLINE __inline
+-#else
+-    #define JSON_HEDLEY_INLINE
+-#endif
+-
+-#if defined(JSON_HEDLEY_ALWAYS_INLINE)
+-    #undef JSON_HEDLEY_ALWAYS_INLINE
+-#endif
+-#if \
+-  JSON_HEDLEY_HAS_ATTRIBUTE(always_inline) || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-  JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-  JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-  JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-  JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-  (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-  (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-  (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-  (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-  JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-  JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-  JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \
+-  JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0)
+-#  define JSON_HEDLEY_ALWAYS_INLINE __attribute__((__always_inline__)) JSON_HEDLEY_INLINE
+-#elif \
+-  JSON_HEDLEY_MSVC_VERSION_CHECK(12,0,0) || \
+-  JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-#  define JSON_HEDLEY_ALWAYS_INLINE __forceinline
+-#elif defined(__cplusplus) && \
+-    ( \
+-      JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-      JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-      JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-      JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \
+-      JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-      JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) \
+-    )
+-#  define JSON_HEDLEY_ALWAYS_INLINE _Pragma("FUNC_ALWAYS_INLINE;")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-#  define JSON_HEDLEY_ALWAYS_INLINE _Pragma("inline=forced")
+-#else
+-#  define JSON_HEDLEY_ALWAYS_INLINE JSON_HEDLEY_INLINE
+-#endif
+-
+-#if defined(JSON_HEDLEY_NEVER_INLINE)
+-    #undef JSON_HEDLEY_NEVER_INLINE
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(noinline) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0)
+-    #define JSON_HEDLEY_NEVER_INLINE __attribute__((__noinline__))
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_NEVER_INLINE __declspec(noinline)
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(10,2,0)
+-    #define JSON_HEDLEY_NEVER_INLINE _Pragma("noinline")
+-#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,0,0) && defined(__cplusplus)
+-    #define JSON_HEDLEY_NEVER_INLINE _Pragma("FUNC_CANNOT_INLINE;")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_NEVER_INLINE _Pragma("inline=never")
+-#elif JSON_HEDLEY_COMPCERT_VERSION_CHECK(3,2,0)
+-    #define JSON_HEDLEY_NEVER_INLINE __attribute((noinline))
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(9,0,0)
+-    #define JSON_HEDLEY_NEVER_INLINE __declspec(noinline)
+-#else
+-    #define JSON_HEDLEY_NEVER_INLINE
+-#endif
+-
+-#if defined(JSON_HEDLEY_PRIVATE)
+-    #undef JSON_HEDLEY_PRIVATE
+-#endif
+-#if defined(JSON_HEDLEY_PUBLIC)
+-    #undef JSON_HEDLEY_PUBLIC
+-#endif
+-#if defined(JSON_HEDLEY_IMPORT)
+-    #undef JSON_HEDLEY_IMPORT
+-#endif
+-#if defined(_WIN32) || defined(__CYGWIN__)
+-#  define JSON_HEDLEY_PRIVATE
+-#  define JSON_HEDLEY_PUBLIC   __declspec(dllexport)
+-#  define JSON_HEDLEY_IMPORT   __declspec(dllimport)
+-#else
+-#  if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(visibility) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \
+-    ( \
+-      defined(__TI_EABI__) && \
+-      ( \
+-        (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-        JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) \
+-      ) \
+-    ) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-#    define JSON_HEDLEY_PRIVATE __attribute__((__visibility__("hidden")))
+-#    define JSON_HEDLEY_PUBLIC  __attribute__((__visibility__("default")))
+-#  else
+-#    define JSON_HEDLEY_PRIVATE
+-#    define JSON_HEDLEY_PUBLIC
+-#  endif
+-#  define JSON_HEDLEY_IMPORT    extern
+-#endif
+-
+-#if defined(JSON_HEDLEY_NO_THROW)
+-    #undef JSON_HEDLEY_NO_THROW
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(nothrow) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_NO_THROW __attribute__((__nothrow__))
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,1,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0)
+-    #define JSON_HEDLEY_NO_THROW __declspec(nothrow)
+-#else
+-    #define JSON_HEDLEY_NO_THROW
+-#endif
+-
+-#if defined(JSON_HEDLEY_FALL_THROUGH)
+-    #undef JSON_HEDLEY_FALL_THROUGH
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(fallthrough) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(7,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_FALL_THROUGH __attribute__((__fallthrough__))
+-#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(clang,fallthrough)
+-    #define JSON_HEDLEY_FALL_THROUGH JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[clang::fallthrough]])
+-#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE(fallthrough)
+-    #define JSON_HEDLEY_FALL_THROUGH JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[fallthrough]])
+-#elif defined(__fallthrough) /* SAL */
+-    #define JSON_HEDLEY_FALL_THROUGH __fallthrough
+-#else
+-    #define JSON_HEDLEY_FALL_THROUGH
+-#endif
+-
+-#if defined(JSON_HEDLEY_RETURNS_NON_NULL)
+-    #undef JSON_HEDLEY_RETURNS_NON_NULL
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(returns_nonnull) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_RETURNS_NON_NULL __attribute__((__returns_nonnull__))
+-#elif defined(_Ret_notnull_) /* SAL */
+-    #define JSON_HEDLEY_RETURNS_NON_NULL _Ret_notnull_
+-#else
+-    #define JSON_HEDLEY_RETURNS_NON_NULL
+-#endif
+-
+-#if defined(JSON_HEDLEY_ARRAY_PARAM)
+-    #undef JSON_HEDLEY_ARRAY_PARAM
+-#endif
+-#if \
+-    defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && \
+-    !defined(__STDC_NO_VLA__) && \
+-    !defined(__cplusplus) && \
+-    !defined(JSON_HEDLEY_PGI_VERSION) && \
+-    !defined(JSON_HEDLEY_TINYC_VERSION)
+-    #define JSON_HEDLEY_ARRAY_PARAM(name) (name)
+-#else
+-    #define JSON_HEDLEY_ARRAY_PARAM(name)
+-#endif
+-
+-#if defined(JSON_HEDLEY_IS_CONSTANT)
+-    #undef JSON_HEDLEY_IS_CONSTANT
+-#endif
+-#if defined(JSON_HEDLEY_REQUIRE_CONSTEXPR)
+-    #undef JSON_HEDLEY_REQUIRE_CONSTEXPR
+-#endif
+-/* JSON_HEDLEY_IS_CONSTEXPR_ is for
+-   HEDLEY INTERNAL USE ONLY.  API subject to change without notice. */
+-#if defined(JSON_HEDLEY_IS_CONSTEXPR_)
+-    #undef JSON_HEDLEY_IS_CONSTEXPR_
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_BUILTIN(__builtin_constant_p) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,19) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \
+-    (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) && !defined(__cplusplus)) || \
+-    JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_IS_CONSTANT(expr) __builtin_constant_p(expr)
+-#endif
+-#if !defined(__cplusplus)
+-#  if \
+-       JSON_HEDLEY_HAS_BUILTIN(__builtin_types_compatible_p) || \
+-       JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \
+-       JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-       JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \
+-       JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \
+-       JSON_HEDLEY_ARM_VERSION_CHECK(5,4,0) || \
+-       JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,24)
+-#if defined(__INTPTR_TYPE__)
+-    #define JSON_HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0)), int*)
+-#else
+-    #include <stdint.h>
+-    #define JSON_HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((intptr_t) ((expr) * 0)) : (int*) 0)), int*)
+-#endif
+-#  elif \
+-       ( \
+-          defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) && \
+-          !defined(JSON_HEDLEY_SUNPRO_VERSION) && \
+-          !defined(JSON_HEDLEY_PGI_VERSION) && \
+-          !defined(JSON_HEDLEY_IAR_VERSION)) || \
+-       (JSON_HEDLEY_HAS_EXTENSION(c_generic_selections) && !defined(JSON_HEDLEY_IAR_VERSION)) || \
+-       JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0) || \
+-       JSON_HEDLEY_INTEL_VERSION_CHECK(17,0,0) || \
+-       JSON_HEDLEY_IBM_VERSION_CHECK(12,1,0) || \
+-       JSON_HEDLEY_ARM_VERSION_CHECK(5,3,0)
+-#if defined(__INTPTR_TYPE__)
+-    #define JSON_HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0), int*: 1, void*: 0)
+-#else
+-    #include <stdint.h>
+-    #define JSON_HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((intptr_t) * 0) : (int*) 0), int*: 1, void*: 0)
+-#endif
+-#  elif \
+-       defined(JSON_HEDLEY_GCC_VERSION) || \
+-       defined(JSON_HEDLEY_INTEL_VERSION) || \
+-       defined(JSON_HEDLEY_TINYC_VERSION) || \
+-       defined(JSON_HEDLEY_TI_ARMCL_VERSION) || \
+-       JSON_HEDLEY_TI_CL430_VERSION_CHECK(18,12,0) || \
+-       defined(JSON_HEDLEY_TI_CL2000_VERSION) || \
+-       defined(JSON_HEDLEY_TI_CL6X_VERSION) || \
+-       defined(JSON_HEDLEY_TI_CL7X_VERSION) || \
+-       defined(JSON_HEDLEY_TI_CLPRU_VERSION) || \
+-       defined(__clang__)
+-#    define JSON_HEDLEY_IS_CONSTEXPR_(expr) ( \
+-        sizeof(void) != \
+-        sizeof(*( \
+-                  1 ? \
+-                  ((void*) ((expr) * 0L) ) : \
+-((struct { char v[sizeof(void) * 2]; } *) 1) \
+-                ) \
+-              ) \
+-                                            )
+-#  endif
+-#endif
+-#if defined(JSON_HEDLEY_IS_CONSTEXPR_)
+-    #if !defined(JSON_HEDLEY_IS_CONSTANT)
+-        #define JSON_HEDLEY_IS_CONSTANT(expr) JSON_HEDLEY_IS_CONSTEXPR_(expr)
+-    #endif
+-    #define JSON_HEDLEY_REQUIRE_CONSTEXPR(expr) (JSON_HEDLEY_IS_CONSTEXPR_(expr) ? (expr) : (-1))
+-#else
+-    #if !defined(JSON_HEDLEY_IS_CONSTANT)
+-        #define JSON_HEDLEY_IS_CONSTANT(expr) (0)
+-    #endif
+-    #define JSON_HEDLEY_REQUIRE_CONSTEXPR(expr) (expr)
+-#endif
+-
+-#if defined(JSON_HEDLEY_BEGIN_C_DECLS)
+-    #undef JSON_HEDLEY_BEGIN_C_DECLS
+-#endif
+-#if defined(JSON_HEDLEY_END_C_DECLS)
+-    #undef JSON_HEDLEY_END_C_DECLS
+-#endif
+-#if defined(JSON_HEDLEY_C_DECL)
+-    #undef JSON_HEDLEY_C_DECL
+-#endif
+-#if defined(__cplusplus)
+-    #define JSON_HEDLEY_BEGIN_C_DECLS extern "C" {
+-    #define JSON_HEDLEY_END_C_DECLS }
+-    #define JSON_HEDLEY_C_DECL extern "C"
+-#else
+-    #define JSON_HEDLEY_BEGIN_C_DECLS
+-    #define JSON_HEDLEY_END_C_DECLS
+-    #define JSON_HEDLEY_C_DECL
+-#endif
+-
+-#if defined(JSON_HEDLEY_STATIC_ASSERT)
+-    #undef JSON_HEDLEY_STATIC_ASSERT
+-#endif
+-#if \
+-  !defined(__cplusplus) && ( \
+-      (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)) || \
+-      (JSON_HEDLEY_HAS_FEATURE(c_static_assert) && !defined(JSON_HEDLEY_INTEL_CL_VERSION)) || \
+-      JSON_HEDLEY_GCC_VERSION_CHECK(6,0,0) || \
+-      JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-      defined(_Static_assert) \
+-    )
+-#  define JSON_HEDLEY_STATIC_ASSERT(expr, message) _Static_assert(expr, message)
+-#elif \
+-  (defined(__cplusplus) && (__cplusplus >= 201103L)) || \
+-  JSON_HEDLEY_MSVC_VERSION_CHECK(16,0,0) || \
+-  JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-#  define JSON_HEDLEY_STATIC_ASSERT(expr, message) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(static_assert(expr, message))
+-#else
+-#  define JSON_HEDLEY_STATIC_ASSERT(expr, message)
+-#endif
+-
+-#if defined(JSON_HEDLEY_NULL)
+-    #undef JSON_HEDLEY_NULL
+-#endif
+-#if defined(__cplusplus)
+-    #if __cplusplus >= 201103L
+-        #define JSON_HEDLEY_NULL JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(nullptr)
+-    #elif defined(NULL)
+-        #define JSON_HEDLEY_NULL NULL
+-    #else
+-        #define JSON_HEDLEY_NULL JSON_HEDLEY_STATIC_CAST(void*, 0)
+-    #endif
+-#elif defined(NULL)
+-    #define JSON_HEDLEY_NULL NULL
+-#else
+-    #define JSON_HEDLEY_NULL ((void*) 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MESSAGE)
+-    #undef JSON_HEDLEY_MESSAGE
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas")
+-#  define JSON_HEDLEY_MESSAGE(msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS \
+-    JSON_HEDLEY_PRAGMA(message msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#elif \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(4,4,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-#  define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message msg)
+-#elif JSON_HEDLEY_CRAY_VERSION_CHECK(5,0,0)
+-#  define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(_CRI message msg)
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-#  define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message(msg))
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,0,0)
+-#  define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message(msg))
+-#else
+-#  define JSON_HEDLEY_MESSAGE(msg)
+-#endif
+-
+-#if defined(JSON_HEDLEY_WARNING)
+-    #undef JSON_HEDLEY_WARNING
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas")
+-#  define JSON_HEDLEY_WARNING(msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS \
+-    JSON_HEDLEY_PRAGMA(clang warning msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#elif \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(4,8,0) || \
+-  JSON_HEDLEY_PGI_VERSION_CHECK(18,4,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-#  define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_PRAGMA(GCC warning msg)
+-#elif \
+-  JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) || \
+-  JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-#  define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_PRAGMA(message(msg))
+-#else
+-#  define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_MESSAGE(msg)
+-#endif
+-
+-#if defined(JSON_HEDLEY_REQUIRE)
+-    #undef JSON_HEDLEY_REQUIRE
+-#endif
+-#if defined(JSON_HEDLEY_REQUIRE_MSG)
+-    #undef JSON_HEDLEY_REQUIRE_MSG
+-#endif
+-#if JSON_HEDLEY_HAS_ATTRIBUTE(diagnose_if)
+-#  if JSON_HEDLEY_HAS_WARNING("-Wgcc-compat")
+-#    define JSON_HEDLEY_REQUIRE(expr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wgcc-compat\"") \
+-    __attribute__((diagnose_if(!(expr), #expr, "error"))) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#    define JSON_HEDLEY_REQUIRE_MSG(expr,msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wgcc-compat\"") \
+-    __attribute__((diagnose_if(!(expr), msg, "error"))) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#  else
+-#    define JSON_HEDLEY_REQUIRE(expr) __attribute__((diagnose_if(!(expr), #expr, "error")))
+-#    define JSON_HEDLEY_REQUIRE_MSG(expr,msg) __attribute__((diagnose_if(!(expr), msg, "error")))
+-#  endif
+-#else
+-#  define JSON_HEDLEY_REQUIRE(expr)
+-#  define JSON_HEDLEY_REQUIRE_MSG(expr,msg)
+-#endif
+-
+-#if defined(JSON_HEDLEY_FLAGS)
+-    #undef JSON_HEDLEY_FLAGS
+-#endif
+-#if JSON_HEDLEY_HAS_ATTRIBUTE(flag_enum) && (!defined(__cplusplus) || JSON_HEDLEY_HAS_WARNING("-Wbitfield-enum-conversion"))
+-    #define JSON_HEDLEY_FLAGS __attribute__((__flag_enum__))
+-#else
+-    #define JSON_HEDLEY_FLAGS
+-#endif
+-
+-#if defined(JSON_HEDLEY_FLAGS_CAST)
+-    #undef JSON_HEDLEY_FLAGS_CAST
+-#endif
+-#if JSON_HEDLEY_INTEL_VERSION_CHECK(19,0,0)
+-#  define JSON_HEDLEY_FLAGS_CAST(T, expr) (__extension__ ({ \
+-        JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-        _Pragma("warning(disable:188)") \
+-        ((T) (expr)); \
+-        JSON_HEDLEY_DIAGNOSTIC_POP \
+-    }))
+-#else
+-#  define JSON_HEDLEY_FLAGS_CAST(T, expr) JSON_HEDLEY_STATIC_CAST(T, expr)
+-#endif
+-
+-#if defined(JSON_HEDLEY_EMPTY_BASES)
+-    #undef JSON_HEDLEY_EMPTY_BASES
+-#endif
+-#if \
+-    (JSON_HEDLEY_MSVC_VERSION_CHECK(19,0,23918) && !JSON_HEDLEY_MSVC_VERSION_CHECK(20,0,0)) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_EMPTY_BASES __declspec(empty_bases)
+-#else
+-    #define JSON_HEDLEY_EMPTY_BASES
+-#endif
+-
+-/* Remaining macros are deprecated. */
+-
+-#if defined(JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK)
+-    #undef JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK
+-#endif
+-#if defined(__clang__)
+-    #define JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK(major,minor,patch) (0)
+-#else
+-    #define JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK(major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_ATTRIBUTE)
+-    #undef JSON_HEDLEY_CLANG_HAS_ATTRIBUTE
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_ATTRIBUTE(attribute)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE)
+-    #undef JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_BUILTIN)
+-    #undef JSON_HEDLEY_CLANG_HAS_BUILTIN
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_BUILTIN(builtin) JSON_HEDLEY_HAS_BUILTIN(builtin)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_FEATURE)
+-    #undef JSON_HEDLEY_CLANG_HAS_FEATURE
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_FEATURE(feature) JSON_HEDLEY_HAS_FEATURE(feature)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_EXTENSION)
+-    #undef JSON_HEDLEY_CLANG_HAS_EXTENSION
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_EXTENSION(extension) JSON_HEDLEY_HAS_EXTENSION(extension)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE)
+-    #undef JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_DECLSPEC_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_WARNING)
+-    #undef JSON_HEDLEY_CLANG_HAS_WARNING
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_WARNING(warning) JSON_HEDLEY_HAS_WARNING(warning)
+-
+-#endif /* !defined(JSON_HEDLEY_VERSION) || (JSON_HEDLEY_VERSION < X) */
+-
+-// #include <nlohmann/detail/meta/detected.hpp>
+-
+-
+-#include <type_traits>
+-
+-// #include <nlohmann/detail/meta/void_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename ...Ts> struct make_void
+-{
+-    using type = void;
+-};
+-template<typename ...Ts> using void_t = typename make_void<Ts...>::type;
+-} // namespace detail
+-}  // namespace nlohmann
+-
+-
+-// https://en.cppreference.com/w/cpp/experimental/is_detected
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-struct nonesuch
+-{
+-    nonesuch() = delete;
+-    ~nonesuch() = delete;
+-    nonesuch(nonesuch const&) = delete;
+-    nonesuch(nonesuch const&&) = delete;
+-    void operator=(nonesuch const&) = delete;
+-    void operator=(nonesuch&&) = delete;
+-};
+-
+-template<class Default,
+-         class AlwaysVoid,
+-         template<class...> class Op,
+-         class... Args>
+-struct detector
+-{
+-    using value_t = std::false_type;
+-    using type = Default;
+-};
+-
+-template<class Default, template<class...> class Op, class... Args>
+-struct detector<Default, void_t<Op<Args...>>, Op, Args...>
+-{
+-    using value_t = std::true_type;
+-    using type = Op<Args...>;
+-};
+-
+-template<template<class...> class Op, class... Args>
+-using is_detected = typename detector<nonesuch, void, Op, Args...>::value_t;
+-
+-template<template<class...> class Op, class... Args>
+-struct is_detected_lazy : is_detected<Op, Args...> { };
+-
+-template<template<class...> class Op, class... Args>
+-using detected_t = typename detector<nonesuch, void, Op, Args...>::type;
+-
+-template<class Default, template<class...> class Op, class... Args>
+-using detected_or = detector<Default, void, Op, Args...>;
+-
+-template<class Default, template<class...> class Op, class... Args>
+-using detected_or_t = typename detected_or<Default, Op, Args...>::type;
+-
+-template<class Expected, template<class...> class Op, class... Args>
+-using is_detected_exact = std::is_same<Expected, detected_t<Op, Args...>>;
+-
+-template<class To, template<class...> class Op, class... Args>
+-using is_detected_convertible =
+-    std::is_convertible<detected_t<Op, Args...>, To>;
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-
+-// This file contains all internal macro definitions
+-// You MUST include macro_unscope.hpp at the end of json.hpp to undef all of them
+-
+-// exclude unsupported compilers
+-#if !defined(JSON_SKIP_UNSUPPORTED_COMPILER_CHECK)
+-    #if defined(__clang__)
+-        #if (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__) < 30400
+-            #error "unsupported Clang version - see https://github.com/nlohmann/json#supported-compilers"
+-        #endif
+-    #elif defined(__GNUC__) && !(defined(__ICC) || defined(__INTEL_COMPILER))
+-        #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) < 40800
+-            #error "unsupported GCC version - see https://github.com/nlohmann/json#supported-compilers"
+-        #endif
+-    #endif
+-#endif
+-
+-// C++ language standard detection
+-// if the user manually specified the used c++ version this is skipped
+-#if !defined(JSON_HAS_CPP_20) && !defined(JSON_HAS_CPP_17) && !defined(JSON_HAS_CPP_14) && !defined(JSON_HAS_CPP_11)
+-    #if (defined(__cplusplus) && __cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L)
+-        #define JSON_HAS_CPP_20
+-        #define JSON_HAS_CPP_17
+-        #define JSON_HAS_CPP_14
+-    #elif (defined(__cplusplus) && __cplusplus >= 201703L) || (defined(_HAS_CXX17) && _HAS_CXX17 == 1) // fix for issue #464
+-        #define JSON_HAS_CPP_17
+-        #define JSON_HAS_CPP_14
+-    #elif (defined(__cplusplus) && __cplusplus >= 201402L) || (defined(_HAS_CXX14) && _HAS_CXX14 == 1)
+-        #define JSON_HAS_CPP_14
+-    #endif
+-    // the cpp 11 flag is always specified because it is the minimal required version
+-    #define JSON_HAS_CPP_11
+-#endif
+-
+-#if !defined(JSON_HAS_FILESYSTEM) && !defined(JSON_HAS_EXPERIMENTAL_FILESYSTEM)
+-    #ifdef JSON_HAS_CPP_17
+-        #if defined(__cpp_lib_filesystem)
+-            #define JSON_HAS_FILESYSTEM 1
+-        #elif defined(__cpp_lib_experimental_filesystem)
+-            #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1
+-        #elif !defined(__has_include)
+-            #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1
+-        #elif __has_include(<filesystem>)
+-            #define JSON_HAS_FILESYSTEM 1
+-        #elif __has_include(<experimental/filesystem>)
+-            #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1
+-        #endif
+-
+-        // std::filesystem does not work on MinGW GCC 8: https://sourceforge.net/p/mingw-w64/bugs/737/
+-        #if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ == 8
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before GCC 8: https://en.cppreference.com/w/cpp/compiler_support
+-        #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before Clang 7: https://en.cppreference.com/w/cpp/compiler_support
+-        #if defined(__clang_major__) && __clang_major__ < 7
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before MSVC 19.14: https://en.cppreference.com/w/cpp/compiler_support
+-        #if defined(_MSC_VER) && _MSC_VER < 1940
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before iOS 13
+-        #if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED < 130000
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before macOS Catalina
+-        #if defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101500
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-    #endif
+-#endif
+-
+-#ifndef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-    #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 0
+-#endif
+-
+-#ifndef JSON_HAS_FILESYSTEM
+-    #define JSON_HAS_FILESYSTEM 0
+-#endif
+-
+-// disable documentation warnings on clang
+-#if defined(__clang__)
+-    #pragma clang diagnostic push
+-    #pragma clang diagnostic ignored "-Wdocumentation"
+-    #pragma clang diagnostic ignored "-Wdocumentation-unknown-command"
+-#endif
+-
+-// allow disabling exceptions
+-#if (defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND)) && !defined(JSON_NOEXCEPTION)
+-    #define JSON_THROW(exception) throw exception
+-    #define JSON_TRY try
+-    #define JSON_CATCH(exception) catch(exception)
+-    #define JSON_INTERNAL_CATCH(exception) catch(exception)
+-#else
+-    #include <cstdlib>
+-    #define JSON_THROW(exception) std::abort()
+-    #define JSON_TRY if(true)
+-    #define JSON_CATCH(exception) if(false)
+-    #define JSON_INTERNAL_CATCH(exception) if(false)
+-#endif
+-
+-// override exception macros
+-#if defined(JSON_THROW_USER)
+-    #undef JSON_THROW
+-    #define JSON_THROW JSON_THROW_USER
+-#endif
+-#if defined(JSON_TRY_USER)
+-    #undef JSON_TRY
+-    #define JSON_TRY JSON_TRY_USER
+-#endif
+-#if defined(JSON_CATCH_USER)
+-    #undef JSON_CATCH
+-    #define JSON_CATCH JSON_CATCH_USER
+-    #undef JSON_INTERNAL_CATCH
+-    #define JSON_INTERNAL_CATCH JSON_CATCH_USER
+-#endif
+-#if defined(JSON_INTERNAL_CATCH_USER)
+-    #undef JSON_INTERNAL_CATCH
+-    #define JSON_INTERNAL_CATCH JSON_INTERNAL_CATCH_USER
+-#endif
+-
+-// allow overriding assert
+-#if !defined(JSON_ASSERT)
+-    #include <cassert> // assert
+-    #define JSON_ASSERT(x) assert(x)
+-#endif
+-
+-// allow to access some private functions (needed by the test suite)
+-#if defined(JSON_TESTS_PRIVATE)
+-    #define JSON_PRIVATE_UNLESS_TESTED public
+-#else
+-    #define JSON_PRIVATE_UNLESS_TESTED private
+-#endif
+-
+-/*!
+-@brief macro to briefly define a mapping between an enum and JSON
+-@def NLOHMANN_JSON_SERIALIZE_ENUM
+-@since version 3.4.0
+-*/
+-#define NLOHMANN_JSON_SERIALIZE_ENUM(ENUM_TYPE, ...)                                            \
+-    template<typename BasicJsonType>                                                            \
+-    inline void to_json(BasicJsonType& j, const ENUM_TYPE& e)                                   \
+-    {                                                                                           \
+-        static_assert(std::is_enum<ENUM_TYPE>::value, #ENUM_TYPE " must be an enum!");          \
+-        static const std::pair<ENUM_TYPE, BasicJsonType> m[] = __VA_ARGS__;                     \
+-        auto it = std::find_if(std::begin(m), std::end(m),                                      \
+-                               [e](const std::pair<ENUM_TYPE, BasicJsonType>& ej_pair) -> bool  \
+-        {                                                                                       \
+-            return ej_pair.first == e;                                                          \
+-        });                                                                                     \
+-        j = ((it != std::end(m)) ? it : std::begin(m))->second;                                 \
+-    }                                                                                           \
+-    template<typename BasicJsonType>                                                            \
+-    inline void from_json(const BasicJsonType& j, ENUM_TYPE& e)                                 \
+-    {                                                                                           \
+-        static_assert(std::is_enum<ENUM_TYPE>::value, #ENUM_TYPE " must be an enum!");          \
+-        static const std::pair<ENUM_TYPE, BasicJsonType> m[] = __VA_ARGS__;                     \
+-        auto it = std::find_if(std::begin(m), std::end(m),                                      \
+-                               [&j](const std::pair<ENUM_TYPE, BasicJsonType>& ej_pair) -> bool \
+-        {                                                                                       \
+-            return ej_pair.second == j;                                                         \
+-        });                                                                                     \
+-        e = ((it != std::end(m)) ? it : std::begin(m))->first;                                  \
+-    }
+-
+-// Ugly macros to avoid uglier copy-paste when specializing basic_json. They
+-// may be removed in the future once the class is split.
+-
+-#define NLOHMANN_BASIC_JSON_TPL_DECLARATION                                \
+-    template<template<typename, typename, typename...> class ObjectType,   \
+-             template<typename, typename...> class ArrayType,              \
+-             class StringType, class BooleanType, class NumberIntegerType, \
+-             class NumberUnsignedType, class NumberFloatType,              \
+-             template<typename> class AllocatorType,                       \
+-             template<typename, typename = void> class JSONSerializer,     \
+-             class BinaryType>
+-
+-#define NLOHMANN_BASIC_JSON_TPL                                            \
+-    basic_json<ObjectType, ArrayType, StringType, BooleanType,             \
+-    NumberIntegerType, NumberUnsignedType, NumberFloatType,                \
+-    AllocatorType, JSONSerializer, BinaryType>
+-
+-// Macros to simplify conversion from/to types
+-
+-#define NLOHMANN_JSON_EXPAND( x ) x
+-#define NLOHMANN_JSON_GET_MACRO(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, NAME,...) NAME
+-#define NLOHMANN_JSON_PASTE(...) NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_GET_MACRO(__VA_ARGS__, \
+-        NLOHMANN_JSON_PASTE64, \
+-        NLOHMANN_JSON_PASTE63, \
+-        NLOHMANN_JSON_PASTE62, \
+-        NLOHMANN_JSON_PASTE61, \
+-        NLOHMANN_JSON_PASTE60, \
+-        NLOHMANN_JSON_PASTE59, \
+-        NLOHMANN_JSON_PASTE58, \
+-        NLOHMANN_JSON_PASTE57, \
+-        NLOHMANN_JSON_PASTE56, \
+-        NLOHMANN_JSON_PASTE55, \
+-        NLOHMANN_JSON_PASTE54, \
+-        NLOHMANN_JSON_PASTE53, \
+-        NLOHMANN_JSON_PASTE52, \
+-        NLOHMANN_JSON_PASTE51, \
+-        NLOHMANN_JSON_PASTE50, \
+-        NLOHMANN_JSON_PASTE49, \
+-        NLOHMANN_JSON_PASTE48, \
+-        NLOHMANN_JSON_PASTE47, \
+-        NLOHMANN_JSON_PASTE46, \
+-        NLOHMANN_JSON_PASTE45, \
+-        NLOHMANN_JSON_PASTE44, \
+-        NLOHMANN_JSON_PASTE43, \
+-        NLOHMANN_JSON_PASTE42, \
+-        NLOHMANN_JSON_PASTE41, \
+-        NLOHMANN_JSON_PASTE40, \
+-        NLOHMANN_JSON_PASTE39, \
+-        NLOHMANN_JSON_PASTE38, \
+-        NLOHMANN_JSON_PASTE37, \
+-        NLOHMANN_JSON_PASTE36, \
+-        NLOHMANN_JSON_PASTE35, \
+-        NLOHMANN_JSON_PASTE34, \
+-        NLOHMANN_JSON_PASTE33, \
+-        NLOHMANN_JSON_PASTE32, \
+-        NLOHMANN_JSON_PASTE31, \
+-        NLOHMANN_JSON_PASTE30, \
+-        NLOHMANN_JSON_PASTE29, \
+-        NLOHMANN_JSON_PASTE28, \
+-        NLOHMANN_JSON_PASTE27, \
+-        NLOHMANN_JSON_PASTE26, \
+-        NLOHMANN_JSON_PASTE25, \
+-        NLOHMANN_JSON_PASTE24, \
+-        NLOHMANN_JSON_PASTE23, \
+-        NLOHMANN_JSON_PASTE22, \
+-        NLOHMANN_JSON_PASTE21, \
+-        NLOHMANN_JSON_PASTE20, \
+-        NLOHMANN_JSON_PASTE19, \
+-        NLOHMANN_JSON_PASTE18, \
+-        NLOHMANN_JSON_PASTE17, \
+-        NLOHMANN_JSON_PASTE16, \
+-        NLOHMANN_JSON_PASTE15, \
+-        NLOHMANN_JSON_PASTE14, \
+-        NLOHMANN_JSON_PASTE13, \
+-        NLOHMANN_JSON_PASTE12, \
+-        NLOHMANN_JSON_PASTE11, \
+-        NLOHMANN_JSON_PASTE10, \
+-        NLOHMANN_JSON_PASTE9, \
+-        NLOHMANN_JSON_PASTE8, \
+-        NLOHMANN_JSON_PASTE7, \
+-        NLOHMANN_JSON_PASTE6, \
+-        NLOHMANN_JSON_PASTE5, \
+-        NLOHMANN_JSON_PASTE4, \
+-        NLOHMANN_JSON_PASTE3, \
+-        NLOHMANN_JSON_PASTE2, \
+-        NLOHMANN_JSON_PASTE1)(__VA_ARGS__))
+-#define NLOHMANN_JSON_PASTE2(func, v1) func(v1)
+-#define NLOHMANN_JSON_PASTE3(func, v1, v2) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE2(func, v2)
+-#define NLOHMANN_JSON_PASTE4(func, v1, v2, v3) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE3(func, v2, v3)
+-#define NLOHMANN_JSON_PASTE5(func, v1, v2, v3, v4) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE4(func, v2, v3, v4)
+-#define NLOHMANN_JSON_PASTE6(func, v1, v2, v3, v4, v5) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE5(func, v2, v3, v4, v5)
+-#define NLOHMANN_JSON_PASTE7(func, v1, v2, v3, v4, v5, v6) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE6(func, v2, v3, v4, v5, v6)
+-#define NLOHMANN_JSON_PASTE8(func, v1, v2, v3, v4, v5, v6, v7) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE7(func, v2, v3, v4, v5, v6, v7)
+-#define NLOHMANN_JSON_PASTE9(func, v1, v2, v3, v4, v5, v6, v7, v8) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE8(func, v2, v3, v4, v5, v6, v7, v8)
+-#define NLOHMANN_JSON_PASTE10(func, v1, v2, v3, v4, v5, v6, v7, v8, v9) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE9(func, v2, v3, v4, v5, v6, v7, v8, v9)
+-#define NLOHMANN_JSON_PASTE11(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE10(func, v2, v3, v4, v5, v6, v7, v8, v9, v10)
+-#define NLOHMANN_JSON_PASTE12(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE11(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11)
+-#define NLOHMANN_JSON_PASTE13(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE12(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12)
+-#define NLOHMANN_JSON_PASTE14(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE13(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13)
+-#define NLOHMANN_JSON_PASTE15(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE14(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14)
+-#define NLOHMANN_JSON_PASTE16(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE15(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15)
+-#define NLOHMANN_JSON_PASTE17(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE16(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16)
+-#define NLOHMANN_JSON_PASTE18(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE17(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17)
+-#define NLOHMANN_JSON_PASTE19(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE18(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18)
+-#define NLOHMANN_JSON_PASTE20(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE19(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19)
+-#define NLOHMANN_JSON_PASTE21(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE20(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20)
+-#define NLOHMANN_JSON_PASTE22(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE21(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21)
+-#define NLOHMANN_JSON_PASTE23(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE22(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22)
+-#define NLOHMANN_JSON_PASTE24(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE23(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23)
+-#define NLOHMANN_JSON_PASTE25(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE24(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24)
+-#define NLOHMANN_JSON_PASTE26(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE25(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25)
+-#define NLOHMANN_JSON_PASTE27(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE26(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26)
+-#define NLOHMANN_JSON_PASTE28(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE27(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27)
+-#define NLOHMANN_JSON_PASTE29(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE28(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28)
+-#define NLOHMANN_JSON_PASTE30(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE29(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29)
+-#define NLOHMANN_JSON_PASTE31(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE30(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30)
+-#define NLOHMANN_JSON_PASTE32(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE31(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31)
+-#define NLOHMANN_JSON_PASTE33(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE32(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32)
+-#define NLOHMANN_JSON_PASTE34(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE33(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33)
+-#define NLOHMANN_JSON_PASTE35(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE34(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34)
+-#define NLOHMANN_JSON_PASTE36(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE35(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35)
+-#define NLOHMANN_JSON_PASTE37(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE36(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36)
+-#define NLOHMANN_JSON_PASTE38(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE37(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37)
+-#define NLOHMANN_JSON_PASTE39(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE38(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38)
+-#define NLOHMANN_JSON_PASTE40(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE39(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39)
+-#define NLOHMANN_JSON_PASTE41(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE40(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40)
+-#define NLOHMANN_JSON_PASTE42(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE41(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41)
+-#define NLOHMANN_JSON_PASTE43(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE42(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42)
+-#define NLOHMANN_JSON_PASTE44(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE43(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43)
+-#define NLOHMANN_JSON_PASTE45(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE44(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44)
+-#define NLOHMANN_JSON_PASTE46(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE45(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45)
+-#define NLOHMANN_JSON_PASTE47(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE46(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46)
+-#define NLOHMANN_JSON_PASTE48(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE47(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47)
+-#define NLOHMANN_JSON_PASTE49(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE48(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48)
+-#define NLOHMANN_JSON_PASTE50(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE49(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49)
+-#define NLOHMANN_JSON_PASTE51(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE50(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50)
+-#define NLOHMANN_JSON_PASTE52(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE51(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51)
+-#define NLOHMANN_JSON_PASTE53(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE52(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52)
+-#define NLOHMANN_JSON_PASTE54(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE53(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53)
+-#define NLOHMANN_JSON_PASTE55(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE54(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54)
+-#define NLOHMANN_JSON_PASTE56(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE55(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55)
+-#define NLOHMANN_JSON_PASTE57(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE56(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56)
+-#define NLOHMANN_JSON_PASTE58(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE57(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57)
+-#define NLOHMANN_JSON_PASTE59(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE58(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58)
+-#define NLOHMANN_JSON_PASTE60(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE59(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59)
+-#define NLOHMANN_JSON_PASTE61(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE60(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60)
+-#define NLOHMANN_JSON_PASTE62(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE61(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61)
+-#define NLOHMANN_JSON_PASTE63(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE62(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62)
+-#define NLOHMANN_JSON_PASTE64(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE63(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63)
+-
+-#define NLOHMANN_JSON_TO(v1) nlohmann_json_j[#v1] = nlohmann_json_t.v1;
+-#define NLOHMANN_JSON_FROM(v1) nlohmann_json_j.at(#v1).get_to(nlohmann_json_t.v1);
+-
+-/*!
+-@brief macro
+-@def NLOHMANN_DEFINE_TYPE_INTRUSIVE
+-@since version 3.9.0
+-*/
+-#define NLOHMANN_DEFINE_TYPE_INTRUSIVE(Type, ...)  \
+-    friend void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \
+-    friend void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) }
+-
+-/*!
+-@brief macro
+-@def NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE
+-@since version 3.9.0
+-*/
+-#define NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Type, ...)  \
+-    inline void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \
+-    inline void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) }
+-
+-
+-// inspired from https://stackoverflow.com/a/26745591
+-// allows to call any std function as if (e.g. with begin):
+-// using std::begin; begin(x);
+-//
+-// it allows using the detected idiom to retrieve the return type
+-// of such an expression
+-#define NLOHMANN_CAN_CALL_STD_FUNC_IMPL(std_name)                                 \
+-    namespace detail {                                                            \
+-    using std::std_name;                                                          \
+-    \
+-    template<typename... T>                                                       \
+-    using result_of_##std_name = decltype(std_name(std::declval<T>()...));        \
+-    }                                                                             \
+-    \
+-    namespace detail2 {                                                           \
+-    struct std_name##_tag                                                         \
+-    {                                                                             \
+-    };                                                                            \
+-    \
+-    template<typename... T>                                                       \
+-    std_name##_tag std_name(T&&...);                                              \
+-    \
+-    template<typename... T>                                                       \
+-    using result_of_##std_name = decltype(std_name(std::declval<T>()...));        \
+-    \
+-    template<typename... T>                                                       \
+-    struct would_call_std_##std_name                                              \
+-    {                                                                             \
+-        static constexpr auto const value = ::nlohmann::detail::                  \
+-                                            is_detected_exact<std_name##_tag, result_of_##std_name, T...>::value; \
+-    };                                                                            \
+-    } /* namespace detail2 */ \
+-    \
+-    template<typename... T>                                                       \
+-    struct would_call_std_##std_name : detail2::would_call_std_##std_name<T...>   \
+-    {                                                                             \
+-    }
+-
+-#ifndef JSON_USE_IMPLICIT_CONVERSIONS
+-    #define JSON_USE_IMPLICIT_CONVERSIONS 1
+-#endif
+-
+-#if JSON_USE_IMPLICIT_CONVERSIONS
+-    #define JSON_EXPLICIT
+-#else
+-    #define JSON_EXPLICIT explicit
+-#endif
+-
+-#ifndef JSON_DIAGNOSTICS
+-    #define JSON_DIAGNOSTICS 0
+-#endif
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-/*!
+-@brief replace all occurrences of a substring by another string
+-
+-@param[in,out] s  the string to manipulate; changed so that all
+-               occurrences of @a f are replaced with @a t
+-@param[in]     f  the substring to replace with @a t
+-@param[in]     t  the string to replace @a f
+-
+-@pre The search string @a f must not be empty. **This precondition is
+-enforced with an assertion.**
+-
+-@since version 2.0.0
+-*/
+-inline void replace_substring(std::string& s, const std::string& f,
+-                              const std::string& t)
+-{
+-    JSON_ASSERT(!f.empty());
+-    for (auto pos = s.find(f);                // find first occurrence of f
+-            pos != std::string::npos;         // make sure f was found
+-            s.replace(pos, f.size(), t),      // replace with t, and
+-            pos = s.find(f, pos + t.size()))  // find next occurrence of f
+-    {}
+-}
+-
+-/*!
+- * @brief string escaping as described in RFC 6901 (Sect. 4)
+- * @param[in] s string to escape
+- * @return    escaped string
+- *
+- * Note the order of escaping "~" to "~0" and "/" to "~1" is important.
+- */
+-inline std::string escape(std::string s)
+-{
+-    replace_substring(s, "~", "~0");
+-    replace_substring(s, "/", "~1");
+-    return s;
+-}
+-
+-/*!
+- * @brief string unescaping as described in RFC 6901 (Sect. 4)
+- * @param[in] s string to unescape
+- * @return    unescaped string
+- *
+- * Note the order of escaping "~1" to "/" and "~0" to "~" is important.
+- */
+-static void unescape(std::string& s)
+-{
+-    replace_substring(s, "~1", "/");
+-    replace_substring(s, "~0", "~");
+-}
+-
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/position_t.hpp>
+-
+-
+-#include <cstddef> // size_t
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/// struct to capture the start position of the current token
+-struct position_t
+-{
+-    /// the total number of characters read
+-    std::size_t chars_read_total = 0;
+-    /// the number of characters read in the current line
+-    std::size_t chars_read_current_line = 0;
+-    /// the number of lines read
+-    std::size_t lines_read = 0;
+-
+-    /// conversion to size_t to preserve SAX interface
+-    constexpr operator size_t() const
+-    {
+-        return chars_read_total;
+-    }
+-};
+-
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-////////////////
+-// exceptions //
+-////////////////
+-
+-/// @brief general exception of the @ref basic_json class
+-/// @sa https://json.nlohmann.me/api/basic_json/exception/
+-class exception : public std::exception
+-{
+-  public:
+-    /// returns the explanatory string
+-    const char* what() const noexcept override
+-    {
+-        return m.what();
+-    }
+-
+-    /// the id of the exception
+-    const int id; // NOLINT(cppcoreguidelines-non-private-member-variables-in-classes)
+-
+-  protected:
+-    JSON_HEDLEY_NON_NULL(3)
+-    exception(int id_, const char* what_arg) : id(id_), m(what_arg) {} // NOLINT(bugprone-throw-keyword-missing)
+-
+-    static std::string name(const std::string& ename, int id_)
+-    {
+-        return "[json.exception." + ename + "." + std::to_string(id_) + "] ";
+-    }
+-
+-    template<typename BasicJsonType>
+-    static std::string diagnostics(const BasicJsonType& leaf_element)
+-    {
+-#if JSON_DIAGNOSTICS
+-        std::vector<std::string> tokens;
+-        for (const auto* current = &leaf_element; current->m_parent != nullptr; current = current->m_parent)
+-        {
+-            switch (current->m_parent->type())
+-            {
+-                case value_t::array:
+-                {
+-                    for (std::size_t i = 0; i < current->m_parent->m_value.array->size(); ++i)
+-                    {
+-                        if (&current->m_parent->m_value.array->operator[](i) == current)
+-                        {
+-                            tokens.emplace_back(std::to_string(i));
+-                            break;
+-                        }
+-                    }
+-                    break;
+-                }
+-
+-                case value_t::object:
+-                {
+-                    for (const auto& element : *current->m_parent->m_value.object)
+-                    {
+-                        if (&element.second == current)
+-                        {
+-                            tokens.emplace_back(element.first.c_str());
+-                            break;
+-                        }
+-                    }
+-                    break;
+-                }
+-
+-                case value_t::null: // LCOV_EXCL_LINE
+-                case value_t::string: // LCOV_EXCL_LINE
+-                case value_t::boolean: // LCOV_EXCL_LINE
+-                case value_t::number_integer: // LCOV_EXCL_LINE
+-                case value_t::number_unsigned: // LCOV_EXCL_LINE
+-                case value_t::number_float: // LCOV_EXCL_LINE
+-                case value_t::binary: // LCOV_EXCL_LINE
+-                case value_t::discarded: // LCOV_EXCL_LINE
+-                default:   // LCOV_EXCL_LINE
+-                    break; // LCOV_EXCL_LINE
+-            }
+-        }
+-
+-        if (tokens.empty())
+-        {
+-            return "";
+-        }
+-
+-        return "(" + std::accumulate(tokens.rbegin(), tokens.rend(), std::string{},
+-                                     [](const std::string & a, const std::string & b)
+-        {
+-            return a + "/" + detail::escape(b);
+-        }) + ") ";
+-#else
+-        static_cast<void>(leaf_element);
+-        return "";
+-#endif
+-    }
+-
+-  private:
+-    /// an exception object as storage for error messages
+-    std::runtime_error m;
+-};
+-
+-/// @brief exception indicating a parse error
+-/// @sa https://json.nlohmann.me/api/basic_json/parse_error/
+-class parse_error : public exception
+-{
+-  public:
+-    /*!
+-    @brief create a parse error exception
+-    @param[in] id_       the id of the exception
+-    @param[in] pos       the position where the error occurred (or with
+-                         chars_read_total=0 if the position cannot be
+-                         determined)
+-    @param[in] what_arg  the explanatory string
+-    @return parse_error object
+-    */
+-    template<typename BasicJsonType>
+-    static parse_error create(int id_, const position_t& pos, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("parse_error", id_) + "parse error" +
+-                        position_string(pos) + ": " + exception::diagnostics(context) + what_arg;
+-        return {id_, pos.chars_read_total, w.c_str()};
+-    }
+-
+-    template<typename BasicJsonType>
+-    static parse_error create(int id_, std::size_t byte_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("parse_error", id_) + "parse error" +
+-                        (byte_ != 0 ? (" at byte " + std::to_string(byte_)) : "") +
+-                        ": " + exception::diagnostics(context) + what_arg;
+-        return {id_, byte_, w.c_str()};
+-    }
+-
+-    /*!
+-    @brief byte index of the parse error
+-
+-    The byte index of the last read character in the input file.
+-
+-    @note For an input with n bytes, 1 is the index of the first character and
+-          n+1 is the index of the terminating null byte or the end of file.
+-          This also holds true when reading a byte vector (CBOR or MessagePack).
+-    */
+-    const std::size_t byte;
+-
+-  private:
+-    parse_error(int id_, std::size_t byte_, const char* what_arg)
+-        : exception(id_, what_arg), byte(byte_) {}
+-
+-    static std::string position_string(const position_t& pos)
+-    {
+-        return " at line " + std::to_string(pos.lines_read + 1) +
+-               ", column " + std::to_string(pos.chars_read_current_line);
+-    }
+-};
+-
+-/// @brief exception indicating errors with iterators
+-/// @sa https://json.nlohmann.me/api/basic_json/invalid_iterator/
+-class invalid_iterator : public exception
+-{
+-  public:
+-    template<typename BasicJsonType>
+-    static invalid_iterator create(int id_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("invalid_iterator", id_) + exception::diagnostics(context) + what_arg;
+-        return {id_, w.c_str()};
+-    }
+-
+-  private:
+-    JSON_HEDLEY_NON_NULL(3)
+-    invalid_iterator(int id_, const char* what_arg)
+-        : exception(id_, what_arg) {}
+-};
+-
+-/// @brief exception indicating executing a member function with a wrong type
+-/// @sa https://json.nlohmann.me/api/basic_json/type_error/
+-class type_error : public exception
+-{
+-  public:
+-    template<typename BasicJsonType>
+-    static type_error create(int id_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("type_error", id_) + exception::diagnostics(context) + what_arg;
+-        return {id_, w.c_str()};
+-    }
+-
+-  private:
+-    JSON_HEDLEY_NON_NULL(3)
+-    type_error(int id_, const char* what_arg) : exception(id_, what_arg) {}
+-};
+-
+-/// @brief exception indicating access out of the defined range
+-/// @sa https://json.nlohmann.me/api/basic_json/out_of_range/
+-class out_of_range : public exception
+-{
+-  public:
+-    template<typename BasicJsonType>
+-    static out_of_range create(int id_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("out_of_range", id_) + exception::diagnostics(context) + what_arg;
+-        return {id_, w.c_str()};
+-    }
+-
+-  private:
+-    JSON_HEDLEY_NON_NULL(3)
+-    out_of_range(int id_, const char* what_arg) : exception(id_, what_arg) {}
+-};
+-
+-/// @brief exception indicating other library errors
+-/// @sa https://json.nlohmann.me/api/basic_json/other_error/
+-class other_error : public exception
+-{
+-  public:
+-    template<typename BasicJsonType>
+-    static other_error create(int id_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("other_error", id_) + exception::diagnostics(context) + what_arg;
+-        return {id_, w.c_str()};
+-    }
+-
+-  private:
+-    JSON_HEDLEY_NON_NULL(3)
+-    other_error(int id_, const char* what_arg) : exception(id_, what_arg) {}
+-};
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-
+-#include <cstddef> // size_t
+-#include <type_traits> // conditional, enable_if, false_type, integral_constant, is_constructible, is_integral, is_same, remove_cv, remove_reference, true_type
+-#include <utility> // index_sequence, make_index_sequence, index_sequence_for
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-template<typename T>
+-using uncvref_t = typename std::remove_cv<typename std::remove_reference<T>::type>::type;
+-
+-#ifdef JSON_HAS_CPP_14
+-
+-// the following utilities are natively available in C++14
+-using std::enable_if_t;
+-using std::index_sequence;
+-using std::make_index_sequence;
+-using std::index_sequence_for;
+-
+-#else
+-
+-// alias templates to reduce boilerplate
+-template<bool B, typename T = void>
+-using enable_if_t = typename std::enable_if<B, T>::type;
+-
+-// The following code is taken from https://github.com/abseil/abseil-cpp/blob/10cb35e459f5ecca5b2ff107635da0bfa41011b4/absl/utility/utility.h
+-// which is part of Google Abseil (https://github.com/abseil/abseil-cpp), licensed under the Apache License 2.0.
+-
+-//// START OF CODE FROM GOOGLE ABSEIL
+-
+-// integer_sequence
+-//
+-// Class template representing a compile-time integer sequence. An instantiation
+-// of `integer_sequence<T, Ints...>` has a sequence of integers encoded in its
+-// type through its template arguments (which is a common need when
+-// working with C++11 variadic templates). `absl::integer_sequence` is designed
+-// to be a drop-in replacement for C++14's `std::integer_sequence`.
+-//
+-// Example:
+-//
+-//   template< class T, T... Ints >
+-//   void user_function(integer_sequence<T, Ints...>);
+-//
+-//   int main()
+-//   {
+-//     // user_function's `T` will be deduced to `int` and `Ints...`
+-//     // will be deduced to `0, 1, 2, 3, 4`.
+-//     user_function(make_integer_sequence<int, 5>());
+-//   }
+-template <typename T, T... Ints>
+-struct integer_sequence
+-{
+-    using value_type = T;
+-    static constexpr std::size_t size() noexcept
+-    {
+-        return sizeof...(Ints);
+-    }
+-};
+-
+-// index_sequence
+-//
+-// A helper template for an `integer_sequence` of `size_t`,
+-// `absl::index_sequence` is designed to be a drop-in replacement for C++14's
+-// `std::index_sequence`.
+-template <size_t... Ints>
+-using index_sequence = integer_sequence<size_t, Ints...>;
+-
+-namespace utility_internal
+-{
+-
+-template <typename Seq, size_t SeqSize, size_t Rem>
+-struct Extend;
+-
+-// Note that SeqSize == sizeof...(Ints). It's passed explicitly for efficiency.
+-template <typename T, T... Ints, size_t SeqSize>
+-struct Extend<integer_sequence<T, Ints...>, SeqSize, 0>
+-{
+-    using type = integer_sequence < T, Ints..., (Ints + SeqSize)... >;
+-};
+-
+-template <typename T, T... Ints, size_t SeqSize>
+-struct Extend<integer_sequence<T, Ints...>, SeqSize, 1>
+-{
+-    using type = integer_sequence < T, Ints..., (Ints + SeqSize)..., 2 * SeqSize >;
+-};
+-
+-// Recursion helper for 'make_integer_sequence<T, N>'.
+-// 'Gen<T, N>::type' is an alias for 'integer_sequence<T, 0, 1, ... N-1>'.
+-template <typename T, size_t N>
+-struct Gen
+-{
+-    using type =
+-        typename Extend < typename Gen < T, N / 2 >::type, N / 2, N % 2 >::type;
+-};
+-
+-template <typename T>
+-struct Gen<T, 0>
+-{
+-    using type = integer_sequence<T>;
+-};
+-
+-}  // namespace utility_internal
+-
+-// Compile-time sequences of integers
+-
+-// make_integer_sequence
+-//
+-// This template alias is equivalent to
+-// `integer_sequence<int, 0, 1, ..., N-1>`, and is designed to be a drop-in
+-// replacement for C++14's `std::make_integer_sequence`.
+-template <typename T, T N>
+-using make_integer_sequence = typename utility_internal::Gen<T, N>::type;
+-
+-// make_index_sequence
+-//
+-// This template alias is equivalent to `index_sequence<0, 1, ..., N-1>`,
+-// and is designed to be a drop-in replacement for C++14's
+-// `std::make_index_sequence`.
+-template <size_t N>
+-using make_index_sequence = make_integer_sequence<size_t, N>;
+-
+-// index_sequence_for
+-//
+-// Converts a typename pack into an index sequence of the same length, and
+-// is designed to be a drop-in replacement for C++14's
+-// `std::index_sequence_for()`
+-template <typename... Ts>
+-using index_sequence_for = make_index_sequence<sizeof...(Ts)>;
+-
+-//// END OF CODE FROM GOOGLE ABSEIL
+-
+-#endif
+-
+-// dispatch utility (taken from ranges-v3)
+-template<unsigned N> struct priority_tag : priority_tag < N - 1 > {};
+-template<> struct priority_tag<0> {};
+-
+-// taken from ranges-v3
+-template<typename T>
+-struct static_const
+-{
+-    static constexpr T value{};
+-};
+-
+-template<typename T>
+-constexpr T static_const<T>::value; // NOLINT(readability-redundant-declaration)
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/identity_tag.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-// dispatching helper struct
+-template <class T> struct identity_tag {};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-
+-#include <limits> // numeric_limits
+-#include <type_traits> // false_type, is_constructible, is_integral, is_same, true_type
+-#include <utility> // declval
+-#include <tuple> // tuple
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-// #include <nlohmann/detail/iterators/iterator_traits.hpp>
+-
+-
+-#include <iterator> // random_access_iterator_tag
+-
+-// #include <nlohmann/detail/meta/void_t.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename It, typename = void>
+-struct iterator_types {};
+-
+-template<typename It>
+-struct iterator_types <
+-    It,
+-    void_t<typename It::difference_type, typename It::value_type, typename It::pointer,
+-    typename It::reference, typename It::iterator_category >>
+-{
+-    using difference_type = typename It::difference_type;
+-    using value_type = typename It::value_type;
+-    using pointer = typename It::pointer;
+-    using reference = typename It::reference;
+-    using iterator_category = typename It::iterator_category;
+-};
+-
+-// This is required as some compilers implement std::iterator_traits in a way that
+-// doesn't work with SFINAE. See https://github.com/nlohmann/json/issues/1341.
+-template<typename T, typename = void>
+-struct iterator_traits
+-{
+-};
+-
+-template<typename T>
+-struct iterator_traits < T, enable_if_t < !std::is_pointer<T>::value >>
+-            : iterator_types<T>
+-{
+-};
+-
+-template<typename T>
+-struct iterator_traits<T*, enable_if_t<std::is_object<T>::value>>
+-{
+-    using iterator_category = std::random_access_iterator_tag;
+-    using value_type = T;
+-    using difference_type = ptrdiff_t;
+-    using pointer = T*;
+-    using reference = T&;
+-};
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/call_std/begin.hpp>
+-
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-NLOHMANN_CAN_CALL_STD_FUNC_IMPL(begin);
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/call_std/end.hpp>
+-
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-NLOHMANN_CAN_CALL_STD_FUNC_IMPL(end);
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/meta/detected.hpp>
+-
+-// #include <nlohmann/json_fwd.hpp>
+-#ifndef INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-#define INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-
+-#include <cstdint> // int64_t, uint64_t
+-#include <map> // map
+-#include <memory> // allocator
+-#include <string> // string
+-#include <vector> // vector
+-
+-/*!
+-@brief namespace for Niels Lohmann
+-@see https://github.com/nlohmann
+-@since version 1.0.0
+-*/
+-namespace nlohmann
+-{
+-/*!
+-@brief default JSONSerializer template argument
+-
+-This serializer ignores the template arguments and uses ADL
+-([argument-dependent lookup](https://en.cppreference.com/w/cpp/language/adl))
+-for serialization.
+-*/
+-template<typename T = void, typename SFINAE = void>
+-struct adl_serializer;
+-
+-/// a class to store JSON values
+-/// @sa https://json.nlohmann.me/api/basic_json/
+-template<template<typename U, typename V, typename... Args> class ObjectType =
+-         std::map,
+-         template<typename U, typename... Args> class ArrayType = std::vector,
+-         class StringType = std::string, class BooleanType = bool,
+-         class NumberIntegerType = std::int64_t,
+-         class NumberUnsignedType = std::uint64_t,
+-         class NumberFloatType = double,
+-         template<typename U> class AllocatorType = std::allocator,
+-         template<typename T, typename SFINAE = void> class JSONSerializer =
+-         adl_serializer,
+-         class BinaryType = std::vector<std::uint8_t>>
+-class basic_json;
+-
+-/// @brief JSON Pointer defines a string syntax for identifying a specific value within a JSON document
+-/// @sa https://json.nlohmann.me/api/json_pointer/
+-template<typename BasicJsonType>
+-class json_pointer;
+-
+-/*!
+-@brief default specialization
+-@sa https://json.nlohmann.me/api/json/
+-*/
+-using json = basic_json<>;
+-
+-/// @brief a minimal map-like container that preserves insertion order
+-/// @sa https://json.nlohmann.me/api/ordered_map/
+-template<class Key, class T, class IgnoredLess, class Allocator>
+-struct ordered_map;
+-
+-/// @brief specialization that maintains the insertion order of object keys
+-/// @sa https://json.nlohmann.me/api/ordered_json/
+-using ordered_json = basic_json<nlohmann::ordered_map>;
+-
+-}  // namespace nlohmann
+-
+-#endif  // INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-
+-
+-namespace nlohmann
+-{
+-/*!
+-@brief detail namespace with internal helper functions
+-
+-This namespace collects functions that should not be exposed,
+-implementations of some @ref basic_json methods, and meta-programming helpers.
+-
+-@since version 2.1.0
+-*/
+-namespace detail
+-{
+-/////////////
+-// helpers //
+-/////////////
+-
+-// Note to maintainers:
+-//
+-// Every trait in this file expects a non CV-qualified type.
+-// The only exceptions are in the 'aliases for detected' section
+-// (i.e. those of the form: decltype(T::member_function(std::declval<T>())))
+-//
+-// In this case, T has to be properly CV-qualified to constraint the function arguments
+-// (e.g. to_json(BasicJsonType&, const T&))
+-
+-template<typename> struct is_basic_json : std::false_type {};
+-
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-struct is_basic_json<NLOHMANN_BASIC_JSON_TPL> : std::true_type {};
+-
+-//////////////////////
+-// json_ref helpers //
+-//////////////////////
+-
+-template<typename>
+-class json_ref;
+-
+-template<typename>
+-struct is_json_ref : std::false_type {};
+-
+-template<typename T>
+-struct is_json_ref<json_ref<T>> : std::true_type {};
+-
+-//////////////////////////
+-// aliases for detected //
+-//////////////////////////
+-
+-template<typename T>
+-using mapped_type_t = typename T::mapped_type;
+-
+-template<typename T>
+-using key_type_t = typename T::key_type;
+-
+-template<typename T>
+-using value_type_t = typename T::value_type;
+-
+-template<typename T>
+-using difference_type_t = typename T::difference_type;
+-
+-template<typename T>
+-using pointer_t = typename T::pointer;
+-
+-template<typename T>
+-using reference_t = typename T::reference;
+-
+-template<typename T>
+-using iterator_category_t = typename T::iterator_category;
+-
+-template<typename T, typename... Args>
+-using to_json_function = decltype(T::to_json(std::declval<Args>()...));
+-
+-template<typename T, typename... Args>
+-using from_json_function = decltype(T::from_json(std::declval<Args>()...));
+-
+-template<typename T, typename U>
+-using get_template_function = decltype(std::declval<T>().template get<U>());
+-
+-// trait checking if JSONSerializer<T>::from_json(json const&, udt&) exists
+-template<typename BasicJsonType, typename T, typename = void>
+-struct has_from_json : std::false_type {};
+-
+-// trait checking if j.get<T> is valid
+-// use this trait instead of std::is_constructible or std::is_convertible,
+-// both rely on, or make use of implicit conversions, and thus fail when T
+-// has several constructors/operator= (see https://github.com/nlohmann/json/issues/958)
+-template <typename BasicJsonType, typename T>
+-struct is_getable
+-{
+-    static constexpr bool value = is_detected<get_template_function, const BasicJsonType&, T>::value;
+-};
+-
+-template<typename BasicJsonType, typename T>
+-struct has_from_json < BasicJsonType, T, enable_if_t < !is_basic_json<T>::value >>
+-{
+-    using serializer = typename BasicJsonType::template json_serializer<T, void>;
+-
+-    static constexpr bool value =
+-        is_detected_exact<void, from_json_function, serializer,
+-        const BasicJsonType&, T&>::value;
+-};
+-
+-// This trait checks if JSONSerializer<T>::from_json(json const&) exists
+-// this overload is used for non-default-constructible user-defined-types
+-template<typename BasicJsonType, typename T, typename = void>
+-struct has_non_default_from_json : std::false_type {};
+-
+-template<typename BasicJsonType, typename T>
+-struct has_non_default_from_json < BasicJsonType, T, enable_if_t < !is_basic_json<T>::value >>
+-{
+-    using serializer = typename BasicJsonType::template json_serializer<T, void>;
+-
+-    static constexpr bool value =
+-        is_detected_exact<T, from_json_function, serializer,
+-        const BasicJsonType&>::value;
+-};
+-
+-// This trait checks if BasicJsonType::json_serializer<T>::to_json exists
+-// Do not evaluate the trait when T is a basic_json type, to avoid template instantiation infinite recursion.
+-template<typename BasicJsonType, typename T, typename = void>
+-struct has_to_json : std::false_type {};
+-
+-template<typename BasicJsonType, typename T>
+-struct has_to_json < BasicJsonType, T, enable_if_t < !is_basic_json<T>::value >>
+-{
+-    using serializer = typename BasicJsonType::template json_serializer<T, void>;
+-
+-    static constexpr bool value =
+-        is_detected_exact<void, to_json_function, serializer, BasicJsonType&,
+-        T>::value;
+-};
+-
+-
+-///////////////////
+-// is_ functions //
+-///////////////////
+-
+-// https://en.cppreference.com/w/cpp/types/conjunction
+-template<class...> struct conjunction : std::true_type { };
+-template<class B1> struct conjunction<B1> : B1 { };
+-template<class B1, class... Bn>
+-struct conjunction<B1, Bn...>
+-: std::conditional<bool(B1::value), conjunction<Bn...>, B1>::type {};
+-
+-// https://en.cppreference.com/w/cpp/types/negation
+-template<class B> struct negation : std::integral_constant < bool, !B::value > { };
+-
+-// Reimplementation of is_constructible and is_default_constructible, due to them being broken for
+-// std::pair and std::tuple until LWG 2367 fix (see https://cplusplus.github.io/LWG/lwg-defects.html#2367).
+-// This causes compile errors in e.g. clang 3.5 or gcc 4.9.
+-template <typename T>
+-struct is_default_constructible : std::is_default_constructible<T> {};
+-
+-template <typename T1, typename T2>
+-struct is_default_constructible<std::pair<T1, T2>>
+-            : conjunction<is_default_constructible<T1>, is_default_constructible<T2>> {};
+-
+-template <typename T1, typename T2>
+-struct is_default_constructible<const std::pair<T1, T2>>
+-            : conjunction<is_default_constructible<T1>, is_default_constructible<T2>> {};
+-
+-template <typename... Ts>
+-struct is_default_constructible<std::tuple<Ts...>>
+-            : conjunction<is_default_constructible<Ts>...> {};
+-
+-template <typename... Ts>
+-struct is_default_constructible<const std::tuple<Ts...>>
+-            : conjunction<is_default_constructible<Ts>...> {};
+-
+-
+-template <typename T, typename... Args>
+-struct is_constructible : std::is_constructible<T, Args...> {};
+-
+-template <typename T1, typename T2>
+-struct is_constructible<std::pair<T1, T2>> : is_default_constructible<std::pair<T1, T2>> {};
+-
+-template <typename T1, typename T2>
+-struct is_constructible<const std::pair<T1, T2>> : is_default_constructible<const std::pair<T1, T2>> {};
+-
+-template <typename... Ts>
+-struct is_constructible<std::tuple<Ts...>> : is_default_constructible<std::tuple<Ts...>> {};
+-
+-template <typename... Ts>
+-struct is_constructible<const std::tuple<Ts...>> : is_default_constructible<const std::tuple<Ts...>> {};
+-
+-
+-template<typename T, typename = void>
+-struct is_iterator_traits : std::false_type {};
+-
+-template<typename T>
+-struct is_iterator_traits<iterator_traits<T>>
+-{
+-  private:
+-    using traits = iterator_traits<T>;
+-
+-  public:
+-    static constexpr auto value =
+-        is_detected<value_type_t, traits>::value &&
+-        is_detected<difference_type_t, traits>::value &&
+-        is_detected<pointer_t, traits>::value &&
+-        is_detected<iterator_category_t, traits>::value &&
+-        is_detected<reference_t, traits>::value;
+-};
+-
+-template<typename T>
+-struct is_range
+-{
+-  private:
+-    using t_ref = typename std::add_lvalue_reference<T>::type;
+-
+-    using iterator = detected_t<result_of_begin, t_ref>;
+-    using sentinel = detected_t<result_of_end, t_ref>;
+-
+-    // to be 100% correct, it should use https://en.cppreference.com/w/cpp/iterator/input_or_output_iterator
+-    // and https://en.cppreference.com/w/cpp/iterator/sentinel_for
+-    // but reimplementing these would be too much work, as a lot of other concepts are used underneath
+-    static constexpr auto is_iterator_begin =
+-        is_iterator_traits<iterator_traits<iterator>>::value;
+-
+-  public:
+-    static constexpr bool value = !std::is_same<iterator, nonesuch>::value && !std::is_same<sentinel, nonesuch>::value && is_iterator_begin;
+-};
+-
+-template<typename R>
+-using iterator_t = enable_if_t<is_range<R>::value, result_of_begin<decltype(std::declval<R&>())>>;
+-
+-template<typename T>
+-using range_value_t = value_type_t<iterator_traits<iterator_t<T>>>;
+-
+-// The following implementation of is_complete_type is taken from
+-// https://blogs.msdn.microsoft.com/vcblog/2015/12/02/partial-support-for-expression-sfinae-in-vs-2015-update-1/
+-// and is written by Xiang Fan who agreed to using it in this library.
+-
+-template<typename T, typename = void>
+-struct is_complete_type : std::false_type {};
+-
+-template<typename T>
+-struct is_complete_type<T, decltype(void(sizeof(T)))> : std::true_type {};
+-
+-template<typename BasicJsonType, typename CompatibleObjectType,
+-         typename = void>
+-struct is_compatible_object_type_impl : std::false_type {};
+-
+-template<typename BasicJsonType, typename CompatibleObjectType>
+-struct is_compatible_object_type_impl <
+-    BasicJsonType, CompatibleObjectType,
+-    enable_if_t < is_detected<mapped_type_t, CompatibleObjectType>::value&&
+-    is_detected<key_type_t, CompatibleObjectType>::value >>
+-{
+-    using object_t = typename BasicJsonType::object_t;
+-
+-    // macOS's is_constructible does not play well with nonesuch...
+-    static constexpr bool value =
+-        is_constructible<typename object_t::key_type,
+-        typename CompatibleObjectType::key_type>::value &&
+-        is_constructible<typename object_t::mapped_type,
+-        typename CompatibleObjectType::mapped_type>::value;
+-};
+-
+-template<typename BasicJsonType, typename CompatibleObjectType>
+-struct is_compatible_object_type
+-    : is_compatible_object_type_impl<BasicJsonType, CompatibleObjectType> {};
+-
+-template<typename BasicJsonType, typename ConstructibleObjectType,
+-         typename = void>
+-struct is_constructible_object_type_impl : std::false_type {};
+-
+-template<typename BasicJsonType, typename ConstructibleObjectType>
+-struct is_constructible_object_type_impl <
+-    BasicJsonType, ConstructibleObjectType,
+-    enable_if_t < is_detected<mapped_type_t, ConstructibleObjectType>::value&&
+-    is_detected<key_type_t, ConstructibleObjectType>::value >>
+-{
+-    using object_t = typename BasicJsonType::object_t;
+-
+-    static constexpr bool value =
+-        (is_default_constructible<ConstructibleObjectType>::value &&
+-         (std::is_move_assignable<ConstructibleObjectType>::value ||
+-          std::is_copy_assignable<ConstructibleObjectType>::value) &&
+-         (is_constructible<typename ConstructibleObjectType::key_type,
+-          typename object_t::key_type>::value &&
+-          std::is_same <
+-          typename object_t::mapped_type,
+-          typename ConstructibleObjectType::mapped_type >::value)) ||
+-        (has_from_json<BasicJsonType,
+-         typename ConstructibleObjectType::mapped_type>::value ||
+-         has_non_default_from_json <
+-         BasicJsonType,
+-         typename ConstructibleObjectType::mapped_type >::value);
+-};
+-
+-template<typename BasicJsonType, typename ConstructibleObjectType>
+-struct is_constructible_object_type
+-    : is_constructible_object_type_impl<BasicJsonType,
+-      ConstructibleObjectType> {};
+-
+-template<typename BasicJsonType, typename CompatibleStringType>
+-struct is_compatible_string_type
+-{
+-    static constexpr auto value =
+-        is_constructible<typename BasicJsonType::string_t, CompatibleStringType>::value;
+-};
+-
+-template<typename BasicJsonType, typename ConstructibleStringType>
+-struct is_constructible_string_type
+-{
+-    static constexpr auto value =
+-        is_constructible<ConstructibleStringType,
+-        typename BasicJsonType::string_t>::value;
+-};
+-
+-template<typename BasicJsonType, typename CompatibleArrayType, typename = void>
+-struct is_compatible_array_type_impl : std::false_type {};
+-
+-template<typename BasicJsonType, typename CompatibleArrayType>
+-struct is_compatible_array_type_impl <
+-    BasicJsonType, CompatibleArrayType,
+-    enable_if_t <
+-    is_detected<iterator_t, CompatibleArrayType>::value&&
+-    is_iterator_traits<iterator_traits<detected_t<iterator_t, CompatibleArrayType>>>::value&&
+-// special case for types like std::filesystem::path whose iterator's value_type are themselves
+-// c.f. https://github.com/nlohmann/json/pull/3073
+-    !std::is_same<CompatibleArrayType, detected_t<range_value_t, CompatibleArrayType>>::value >>
+-{
+-    static constexpr bool value =
+-        is_constructible<BasicJsonType,
+-        range_value_t<CompatibleArrayType>>::value;
+-};
+-
+-template<typename BasicJsonType, typename CompatibleArrayType>
+-struct is_compatible_array_type
+-    : is_compatible_array_type_impl<BasicJsonType, CompatibleArrayType> {};
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType, typename = void>
+-struct is_constructible_array_type_impl : std::false_type {};
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType>
+-struct is_constructible_array_type_impl <
+-    BasicJsonType, ConstructibleArrayType,
+-    enable_if_t<std::is_same<ConstructibleArrayType,
+-    typename BasicJsonType::value_type>::value >>
+-            : std::true_type {};
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType>
+-struct is_constructible_array_type_impl <
+-    BasicJsonType, ConstructibleArrayType,
+-    enable_if_t < !std::is_same<ConstructibleArrayType,
+-    typename BasicJsonType::value_type>::value&&
+-    !is_compatible_string_type<BasicJsonType, ConstructibleArrayType>::value&&
+-    is_default_constructible<ConstructibleArrayType>::value&&
+-(std::is_move_assignable<ConstructibleArrayType>::value ||
+- std::is_copy_assignable<ConstructibleArrayType>::value)&&
+-is_detected<iterator_t, ConstructibleArrayType>::value&&
+-is_iterator_traits<iterator_traits<detected_t<iterator_t, ConstructibleArrayType>>>::value&&
+-is_detected<range_value_t, ConstructibleArrayType>::value&&
+-// special case for types like std::filesystem::path whose iterator's value_type are themselves
+-// c.f. https://github.com/nlohmann/json/pull/3073
+-!std::is_same<ConstructibleArrayType, detected_t<range_value_t, ConstructibleArrayType>>::value&&
+-        is_complete_type <
+-        detected_t<range_value_t, ConstructibleArrayType >>::value >>
+-{
+-    using value_type = range_value_t<ConstructibleArrayType>;
+-
+-    static constexpr bool value =
+-        std::is_same<value_type,
+-        typename BasicJsonType::array_t::value_type>::value ||
+-        has_from_json<BasicJsonType,
+-        value_type>::value ||
+-        has_non_default_from_json <
+-        BasicJsonType,
+-        value_type >::value;
+-};
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType>
+-struct is_constructible_array_type
+-    : is_constructible_array_type_impl<BasicJsonType, ConstructibleArrayType> {};
+-
+-template<typename RealIntegerType, typename CompatibleNumberIntegerType,
+-         typename = void>
+-struct is_compatible_integer_type_impl : std::false_type {};
+-
+-template<typename RealIntegerType, typename CompatibleNumberIntegerType>
+-struct is_compatible_integer_type_impl <
+-    RealIntegerType, CompatibleNumberIntegerType,
+-    enable_if_t < std::is_integral<RealIntegerType>::value&&
+-    std::is_integral<CompatibleNumberIntegerType>::value&&
+-    !std::is_same<bool, CompatibleNumberIntegerType>::value >>
+-{
+-    // is there an assert somewhere on overflows?
+-    using RealLimits = std::numeric_limits<RealIntegerType>;
+-    using CompatibleLimits = std::numeric_limits<CompatibleNumberIntegerType>;
+-
+-    static constexpr auto value =
+-        is_constructible<RealIntegerType,
+-        CompatibleNumberIntegerType>::value &&
+-        CompatibleLimits::is_integer &&
+-        RealLimits::is_signed == CompatibleLimits::is_signed;
+-};
+-
+-template<typename RealIntegerType, typename CompatibleNumberIntegerType>
+-struct is_compatible_integer_type
+-    : is_compatible_integer_type_impl<RealIntegerType,
+-      CompatibleNumberIntegerType> {};
+-
+-template<typename BasicJsonType, typename CompatibleType, typename = void>
+-struct is_compatible_type_impl: std::false_type {};
+-
+-template<typename BasicJsonType, typename CompatibleType>
+-struct is_compatible_type_impl <
+-    BasicJsonType, CompatibleType,
+-    enable_if_t<is_complete_type<CompatibleType>::value >>
+-{
+-    static constexpr bool value =
+-        has_to_json<BasicJsonType, CompatibleType>::value;
+-};
+-
+-template<typename BasicJsonType, typename CompatibleType>
+-struct is_compatible_type
+-    : is_compatible_type_impl<BasicJsonType, CompatibleType> {};
+-
+-template<typename T1, typename T2>
+-struct is_constructible_tuple : std::false_type {};
+-
+-template<typename T1, typename... Args>
+-struct is_constructible_tuple<T1, std::tuple<Args...>> : conjunction<is_constructible<T1, Args>...> {};
+-
+-// a naive helper to check if a type is an ordered_map (exploits the fact that
+-// ordered_map inherits capacity() from std::vector)
+-template <typename T>
+-struct is_ordered_map
+-{
+-    using one = char;
+-
+-    struct two
+-    {
+-        char x[2]; // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-    };
+-
+-    template <typename C> static one test( decltype(&C::capacity) ) ;
+-    template <typename C> static two test(...);
+-
+-    enum { value = sizeof(test<T>(nullptr)) == sizeof(char) }; // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-};
+-
+-// to avoid useless casts (see https://github.com/nlohmann/json/issues/2893#issuecomment-889152324)
+-template < typename T, typename U, enable_if_t < !std::is_same<T, U>::value, int > = 0 >
+-T conditional_static_cast(U value)
+-{
+-    return static_cast<T>(value);
+-}
+-
+-template<typename T, typename U, enable_if_t<std::is_same<T, U>::value, int> = 0>
+-T conditional_static_cast(U value)
+-{
+-    return value;
+-}
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-#if JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-#include <experimental/filesystem>
+-namespace nlohmann::detail
+-{
+-namespace std_fs = std::experimental::filesystem;
+-} // namespace nlohmann::detail
+-#elif JSON_HAS_FILESYSTEM
+-#include <filesystem>
+-namespace nlohmann::detail
+-{
+-namespace std_fs = std::filesystem;
+-} // namespace nlohmann::detail
+-#endif
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename std::nullptr_t& n)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_null()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be null, but is " + std::string(j.type_name()), j));
+-    }
+-    n = nullptr;
+-}
+-
+-// overloads for basic_json template parameters
+-template < typename BasicJsonType, typename ArithmeticType,
+-           enable_if_t < std::is_arithmetic<ArithmeticType>::value&&
+-                         !std::is_same<ArithmeticType, typename BasicJsonType::boolean_t>::value,
+-                         int > = 0 >
+-void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val)
+-{
+-    switch (static_cast<value_t>(j))
+-    {
+-        case value_t::number_unsigned:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
+-            break;
+-        }
+-        case value_t::number_integer:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
+-            break;
+-        }
+-        case value_t::number_float:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
+-            break;
+-        }
+-
+-        case value_t::null:
+-        case value_t::object:
+-        case value_t::array:
+-        case value_t::string:
+-        case value_t::boolean:
+-        case value_t::binary:
+-        case value_t::discarded:
+-        default:
+-            JSON_THROW(type_error::create(302, "type must be number, but is " + std::string(j.type_name()), j));
+-    }
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::boolean_t& b)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_boolean()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be boolean, but is " + std::string(j.type_name()), j));
+-    }
+-    b = *j.template get_ptr<const typename BasicJsonType::boolean_t*>();
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::string_t& s)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be string, but is " + std::string(j.type_name()), j));
+-    }
+-    s = *j.template get_ptr<const typename BasicJsonType::string_t*>();
+-}
+-
+-template <
+-    typename BasicJsonType, typename ConstructibleStringType,
+-    enable_if_t <
+-        is_constructible_string_type<BasicJsonType, ConstructibleStringType>::value&&
+-        !std::is_same<typename BasicJsonType::string_t,
+-                      ConstructibleStringType>::value,
+-        int > = 0 >
+-void from_json(const BasicJsonType& j, ConstructibleStringType& s)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be string, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    s = *j.template get_ptr<const typename BasicJsonType::string_t*>();
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::number_float_t& val)
+-{
+-    get_arithmetic_value(j, val);
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::number_unsigned_t& val)
+-{
+-    get_arithmetic_value(j, val);
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::number_integer_t& val)
+-{
+-    get_arithmetic_value(j, val);
+-}
+-
+-template<typename BasicJsonType, typename EnumType,
+-         enable_if_t<std::is_enum<EnumType>::value, int> = 0>
+-void from_json(const BasicJsonType& j, EnumType& e)
+-{
+-    typename std::underlying_type<EnumType>::type val;
+-    get_arithmetic_value(j, val);
+-    e = static_cast<EnumType>(val);
+-}
+-
+-// forward_list doesn't have an insert method
+-template<typename BasicJsonType, typename T, typename Allocator,
+-         enable_if_t<is_getable<BasicJsonType, T>::value, int> = 0>
+-void from_json(const BasicJsonType& j, std::forward_list<T, Allocator>& l)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-    l.clear();
+-    std::transform(j.rbegin(), j.rend(),
+-                   std::front_inserter(l), [](const BasicJsonType & i)
+-    {
+-        return i.template get<T>();
+-    });
+-}
+-
+-// valarray doesn't have an insert method
+-template<typename BasicJsonType, typename T,
+-         enable_if_t<is_getable<BasicJsonType, T>::value, int> = 0>
+-void from_json(const BasicJsonType& j, std::valarray<T>& l)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-    l.resize(j.size());
+-    std::transform(j.begin(), j.end(), std::begin(l),
+-                   [](const BasicJsonType & elem)
+-    {
+-        return elem.template get<T>();
+-    });
+-}
+-
+-template<typename BasicJsonType, typename T, std::size_t N>
+-auto from_json(const BasicJsonType& j, T (&arr)[N])  // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+--> decltype(j.template get<T>(), void())
+-{
+-    for (std::size_t i = 0; i < N; ++i)
+-    {
+-        arr[i] = j.at(i).template get<T>();
+-    }
+-}
+-
+-template<typename BasicJsonType>
+-void from_json_array_impl(const BasicJsonType& j, typename BasicJsonType::array_t& arr, priority_tag<3> /*unused*/)
+-{
+-    arr = *j.template get_ptr<const typename BasicJsonType::array_t*>();
+-}
+-
+-template<typename BasicJsonType, typename T, std::size_t N>
+-auto from_json_array_impl(const BasicJsonType& j, std::array<T, N>& arr,
+-                          priority_tag<2> /*unused*/)
+--> decltype(j.template get<T>(), void())
+-{
+-    for (std::size_t i = 0; i < N; ++i)
+-    {
+-        arr[i] = j.at(i).template get<T>();
+-    }
+-}
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType,
+-         enable_if_t<
+-             std::is_assignable<ConstructibleArrayType&, ConstructibleArrayType>::value,
+-             int> = 0>
+-auto from_json_array_impl(const BasicJsonType& j, ConstructibleArrayType& arr, priority_tag<1> /*unused*/)
+--> decltype(
+-    arr.reserve(std::declval<typename ConstructibleArrayType::size_type>()),
+-    j.template get<typename ConstructibleArrayType::value_type>(),
+-    void())
+-{
+-    using std::end;
+-
+-    ConstructibleArrayType ret;
+-    ret.reserve(j.size());
+-    std::transform(j.begin(), j.end(),
+-                   std::inserter(ret, end(ret)), [](const BasicJsonType & i)
+-    {
+-        // get<BasicJsonType>() returns *this, this won't call a from_json
+-        // method when value_type is BasicJsonType
+-        return i.template get<typename ConstructibleArrayType::value_type>();
+-    });
+-    arr = std::move(ret);
+-}
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType,
+-         enable_if_t<
+-             std::is_assignable<ConstructibleArrayType&, ConstructibleArrayType>::value,
+-             int> = 0>
+-void from_json_array_impl(const BasicJsonType& j, ConstructibleArrayType& arr,
+-                          priority_tag<0> /*unused*/)
+-{
+-    using std::end;
+-
+-    ConstructibleArrayType ret;
+-    std::transform(
+-        j.begin(), j.end(), std::inserter(ret, end(ret)),
+-        [](const BasicJsonType & i)
+-    {
+-        // get<BasicJsonType>() returns *this, this won't call a from_json
+-        // method when value_type is BasicJsonType
+-        return i.template get<typename ConstructibleArrayType::value_type>();
+-    });
+-    arr = std::move(ret);
+-}
+-
+-template < typename BasicJsonType, typename ConstructibleArrayType,
+-           enable_if_t <
+-               is_constructible_array_type<BasicJsonType, ConstructibleArrayType>::value&&
+-               !is_constructible_object_type<BasicJsonType, ConstructibleArrayType>::value&&
+-               !is_constructible_string_type<BasicJsonType, ConstructibleArrayType>::value&&
+-               !std::is_same<ConstructibleArrayType, typename BasicJsonType::binary_t>::value&&
+-               !is_basic_json<ConstructibleArrayType>::value,
+-               int > = 0 >
+-auto from_json(const BasicJsonType& j, ConstructibleArrayType& arr)
+--> decltype(from_json_array_impl(j, arr, priority_tag<3> {}),
+-j.template get<typename ConstructibleArrayType::value_type>(),
+-void())
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    from_json_array_impl(j, arr, priority_tag<3> {});
+-}
+-
+-template < typename BasicJsonType, typename T, std::size_t... Idx >
+-std::array<T, sizeof...(Idx)> from_json_inplace_array_impl(BasicJsonType&& j,
+-        identity_tag<std::array<T, sizeof...(Idx)>> /*unused*/, index_sequence<Idx...> /*unused*/)
+-{
+-    return { { std::forward<BasicJsonType>(j).at(Idx).template get<T>()... } };
+-}
+-
+-template < typename BasicJsonType, typename T, std::size_t N >
+-auto from_json(BasicJsonType&& j, identity_tag<std::array<T, N>> tag)
+--> decltype(from_json_inplace_array_impl(std::forward<BasicJsonType>(j), tag, make_index_sequence<N> {}))
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    return from_json_inplace_array_impl(std::forward<BasicJsonType>(j), tag, make_index_sequence<N> {});
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::binary_t& bin)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_binary()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    bin = *j.template get_ptr<const typename BasicJsonType::binary_t*>();
+-}
+-
+-template<typename BasicJsonType, typename ConstructibleObjectType,
+-         enable_if_t<is_constructible_object_type<BasicJsonType, ConstructibleObjectType>::value, int> = 0>
+-void from_json(const BasicJsonType& j, ConstructibleObjectType& obj)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_object()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be object, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    ConstructibleObjectType ret;
+-    const auto* inner_object = j.template get_ptr<const typename BasicJsonType::object_t*>();
+-    using value_type = typename ConstructibleObjectType::value_type;
+-    std::transform(
+-        inner_object->begin(), inner_object->end(),
+-        std::inserter(ret, ret.begin()),
+-        [](typename BasicJsonType::object_t::value_type const & p)
+-    {
+-        return value_type(p.first, p.second.template get<typename ConstructibleObjectType::mapped_type>());
+-    });
+-    obj = std::move(ret);
+-}
+-
+-// overload for arithmetic types, not chosen for basic_json template arguments
+-// (BooleanType, etc..); note: Is it really necessary to provide explicit
+-// overloads for boolean_t etc. in case of a custom BooleanType which is not
+-// an arithmetic type?
+-template < typename BasicJsonType, typename ArithmeticType,
+-           enable_if_t <
+-               std::is_arithmetic<ArithmeticType>::value&&
+-               !std::is_same<ArithmeticType, typename BasicJsonType::number_unsigned_t>::value&&
+-               !std::is_same<ArithmeticType, typename BasicJsonType::number_integer_t>::value&&
+-               !std::is_same<ArithmeticType, typename BasicJsonType::number_float_t>::value&&
+-               !std::is_same<ArithmeticType, typename BasicJsonType::boolean_t>::value,
+-               int > = 0 >
+-void from_json(const BasicJsonType& j, ArithmeticType& val)
+-{
+-    switch (static_cast<value_t>(j))
+-    {
+-        case value_t::number_unsigned:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
+-            break;
+-        }
+-        case value_t::number_integer:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
+-            break;
+-        }
+-        case value_t::number_float:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
+-            break;
+-        }
+-        case value_t::boolean:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::boolean_t*>());
+-            break;
+-        }
+-
+-        case value_t::null:
+-        case value_t::object:
+-        case value_t::array:
+-        case value_t::string:
+-        case value_t::binary:
+-        case value_t::discarded:
+-        default:
+-            JSON_THROW(type_error::create(302, "type must be number, but is " + std::string(j.type_name()), j));
+-    }
+-}
+-
+-template<typename BasicJsonType, typename... Args, std::size_t... Idx>
+-std::tuple<Args...> from_json_tuple_impl_base(BasicJsonType&& j, index_sequence<Idx...> /*unused*/)
+-{
+-    return std::make_tuple(std::forward<BasicJsonType>(j).at(Idx).template get<Args>()...);
+-}
+-
+-template < typename BasicJsonType, class A1, class A2 >
+-std::pair<A1, A2> from_json_tuple_impl(BasicJsonType&& j, identity_tag<std::pair<A1, A2>> /*unused*/, priority_tag<0> /*unused*/)
+-{
+-    return {std::forward<BasicJsonType>(j).at(0).template get<A1>(),
+-            std::forward<BasicJsonType>(j).at(1).template get<A2>()};
+-}
+-
+-template<typename BasicJsonType, typename A1, typename A2>
+-void from_json_tuple_impl(BasicJsonType&& j, std::pair<A1, A2>& p, priority_tag<1> /*unused*/)
+-{
+-    p = from_json_tuple_impl(std::forward<BasicJsonType>(j), identity_tag<std::pair<A1, A2>> {}, priority_tag<0> {});
+-}
+-
+-template<typename BasicJsonType, typename... Args>
+-std::tuple<Args...> from_json_tuple_impl(BasicJsonType&& j, identity_tag<std::tuple<Args...>> /*unused*/, priority_tag<2> /*unused*/)
+-{
+-    return from_json_tuple_impl_base<BasicJsonType, Args...>(std::forward<BasicJsonType>(j), index_sequence_for<Args...> {});
+-}
+-
+-template<typename BasicJsonType, typename... Args>
+-void from_json_tuple_impl(BasicJsonType&& j, std::tuple<Args...>& t, priority_tag<3> /*unused*/)
+-{
+-    t = from_json_tuple_impl_base<BasicJsonType, Args...>(std::forward<BasicJsonType>(j), index_sequence_for<Args...> {});
+-}
+-
+-template<typename BasicJsonType, typename TupleRelated>
+-auto from_json(BasicJsonType&& j, TupleRelated&& t)
+--> decltype(from_json_tuple_impl(std::forward<BasicJsonType>(j), std::forward<TupleRelated>(t), priority_tag<3> {}))
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    return from_json_tuple_impl(std::forward<BasicJsonType>(j), std::forward<TupleRelated>(t), priority_tag<3> {});
+-}
+-
+-template < typename BasicJsonType, typename Key, typename Value, typename Compare, typename Allocator,
+-           typename = enable_if_t < !std::is_constructible <
+-                                        typename BasicJsonType::string_t, Key >::value >>
+-void from_json(const BasicJsonType& j, std::map<Key, Value, Compare, Allocator>& m)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-    m.clear();
+-    for (const auto& p : j)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!p.is_array()))
+-        {
+-            JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(p.type_name()), j));
+-        }
+-        m.emplace(p.at(0).template get<Key>(), p.at(1).template get<Value>());
+-    }
+-}
+-
+-template < typename BasicJsonType, typename Key, typename Value, typename Hash, typename KeyEqual, typename Allocator,
+-           typename = enable_if_t < !std::is_constructible <
+-                                        typename BasicJsonType::string_t, Key >::value >>
+-void from_json(const BasicJsonType& j, std::unordered_map<Key, Value, Hash, KeyEqual, Allocator>& m)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-    m.clear();
+-    for (const auto& p : j)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!p.is_array()))
+-        {
+-            JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(p.type_name()), j));
+-        }
+-        m.emplace(p.at(0).template get<Key>(), p.at(1).template get<Value>());
+-    }
+-}
+-
+-#if JSON_HAS_FILESYSTEM || JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, std_fs::path& p)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be string, but is " + std::string(j.type_name()), j));
+-    }
+-    p = *j.template get_ptr<const typename BasicJsonType::string_t*>();
+-}
+-#endif
+-
+-struct from_json_fn
+-{
+-    template<typename BasicJsonType, typename T>
+-    auto operator()(const BasicJsonType& j, T&& val) const
+-    noexcept(noexcept(from_json(j, std::forward<T>(val))))
+-    -> decltype(from_json(j, std::forward<T>(val)))
+-    {
+-        return from_json(j, std::forward<T>(val));
+-    }
+-};
+-}  // namespace detail
+-
+-/// namespace to hold default `from_json` function
+-/// to see why this is required:
+-/// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4381.html
+-namespace // NOLINT(cert-dcl59-cpp,fuchsia-header-anon-namespaces,google-build-namespaces)
+-{
+-constexpr const auto& from_json = detail::static_const<detail::from_json_fn>::value; // NOLINT(misc-definitions-in-headers)
+-} // namespace
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/conversions/to_json.hpp>
+-
+-
+-#include <algorithm> // copy
+-#include <iterator> // begin, end
+-#include <string> // string
+-#include <tuple> // tuple, get
+-#include <type_traits> // is_same, is_constructible, is_floating_point, is_enum, underlying_type
+-#include <utility> // move, forward, declval, pair
+-#include <valarray> // valarray
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/iterators/iteration_proxy.hpp>
+-
+-
+-#include <cstddef> // size_t
+-#include <iterator> // input_iterator_tag
+-#include <string> // string, to_string
+-#include <tuple> // tuple_size, get, tuple_element
+-#include <utility> // move
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename string_type>
+-void int_to_string( string_type& target, std::size_t value )
+-{
+-    // For ADL
+-    using std::to_string;
+-    target = to_string(value);
+-}
+-template<typename IteratorType> class iteration_proxy_value
+-{
+-  public:
+-    using difference_type = std::ptrdiff_t;
+-    using value_type = iteration_proxy_value;
+-    using pointer = value_type * ;
+-    using reference = value_type & ;
+-    using iterator_category = std::input_iterator_tag;
+-    using string_type = typename std::remove_cv< typename std::remove_reference<decltype( std::declval<IteratorType>().key() ) >::type >::type;
+-
+-  private:
+-    /// the iterator
+-    IteratorType anchor;
+-    /// an index for arrays (used to create key names)
+-    std::size_t array_index = 0;
+-    /// last stringified array index
+-    mutable std::size_t array_index_last = 0;
+-    /// a string representation of the array index
+-    mutable string_type array_index_str = "0";
+-    /// an empty string (to return a reference for primitive values)
+-    const string_type empty_str{};
+-
+-  public:
+-    explicit iteration_proxy_value(IteratorType it) noexcept
+-        : anchor(std::move(it))
+-    {}
+-
+-    /// dereference operator (needed for range-based for)
+-    iteration_proxy_value& operator*()
+-    {
+-        return *this;
+-    }
+-
+-    /// increment operator (needed for range-based for)
+-    iteration_proxy_value& operator++()
+-    {
+-        ++anchor;
+-        ++array_index;
+-
+-        return *this;
+-    }
+-
+-    /// equality operator (needed for InputIterator)
+-    bool operator==(const iteration_proxy_value& o) const
+-    {
+-        return anchor == o.anchor;
+-    }
+-
+-    /// inequality operator (needed for range-based for)
+-    bool operator!=(const iteration_proxy_value& o) const
+-    {
+-        return anchor != o.anchor;
+-    }
+-
+-    /// return key of the iterator
+-    const string_type& key() const
+-    {
+-        JSON_ASSERT(anchor.m_object != nullptr);
+-
+-        switch (anchor.m_object->type())
+-        {
+-            // use integer array index as key
+-            case value_t::array:
+-            {
+-                if (array_index != array_index_last)
+-                {
+-                    int_to_string( array_index_str, array_index );
+-                    array_index_last = array_index;
+-                }
+-                return array_index_str;
+-            }
+-
+-            // use key from the object
+-            case value_t::object:
+-                return anchor.key();
+-
+-            // use an empty key for all primitive types
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                return empty_str;
+-        }
+-    }
+-
+-    /// return value of the iterator
+-    typename IteratorType::reference value() const
+-    {
+-        return anchor.value();
+-    }
+-};
+-
+-/// proxy class for the items() function
+-template<typename IteratorType> class iteration_proxy
+-{
+-  private:
+-    /// the container to iterate
+-    typename IteratorType::reference container;
+-
+-  public:
+-    /// construct iteration proxy from a container
+-    explicit iteration_proxy(typename IteratorType::reference cont) noexcept
+-        : container(cont) {}
+-
+-    /// return iterator begin (needed for range-based for)
+-    iteration_proxy_value<IteratorType> begin() noexcept
+-    {
+-        return iteration_proxy_value<IteratorType>(container.begin());
+-    }
+-
+-    /// return iterator end (needed for range-based for)
+-    iteration_proxy_value<IteratorType> end() noexcept
+-    {
+-        return iteration_proxy_value<IteratorType>(container.end());
+-    }
+-};
+-// Structured Bindings Support
+-// For further reference see https://blog.tartanllama.xyz/structured-bindings/
+-// And see https://github.com/nlohmann/json/pull/1391
+-template<std::size_t N, typename IteratorType, enable_if_t<N == 0, int> = 0>
+-auto get(const nlohmann::detail::iteration_proxy_value<IteratorType>& i) -> decltype(i.key())
+-{
+-    return i.key();
+-}
+-// Structured Bindings Support
+-// For further reference see https://blog.tartanllama.xyz/structured-bindings/
+-// And see https://github.com/nlohmann/json/pull/1391
+-template<std::size_t N, typename IteratorType, enable_if_t<N == 1, int> = 0>
+-auto get(const nlohmann::detail::iteration_proxy_value<IteratorType>& i) -> decltype(i.value())
+-{
+-    return i.value();
+-}
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// The Addition to the STD Namespace is required to add
+-// Structured Bindings Support to the iteration_proxy_value class
+-// For further reference see https://blog.tartanllama.xyz/structured-bindings/
+-// And see https://github.com/nlohmann/json/pull/1391
+-namespace std
+-{
+-#if defined(__clang__)
+-    // Fix: https://github.com/nlohmann/json/issues/1401
+-    #pragma clang diagnostic push
+-    #pragma clang diagnostic ignored "-Wmismatched-tags"
+-#endif
+-template<typename IteratorType>
+-class tuple_size<::nlohmann::detail::iteration_proxy_value<IteratorType>>
+-            : public std::integral_constant<std::size_t, 2> {};
+-
+-template<std::size_t N, typename IteratorType>
+-class tuple_element<N, ::nlohmann::detail::iteration_proxy_value<IteratorType >>
+-{
+-  public:
+-    using type = decltype(
+-                     get<N>(std::declval <
+-                            ::nlohmann::detail::iteration_proxy_value<IteratorType >> ()));
+-};
+-#if defined(__clang__)
+-    #pragma clang diagnostic pop
+-#endif
+-} // namespace std
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-#if JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-#include <experimental/filesystem>
+-namespace nlohmann::detail
+-{
+-namespace std_fs = std::experimental::filesystem;
+-} // namespace nlohmann::detail
+-#elif JSON_HAS_FILESYSTEM
+-#include <filesystem>
+-namespace nlohmann::detail
+-{
+-namespace std_fs = std::filesystem;
+-} // namespace nlohmann::detail
+-#endif
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-//////////////////
+-// constructors //
+-//////////////////
+-
+-/*
+- * Note all external_constructor<>::construct functions need to call
+- * j.m_value.destroy(j.m_type) to avoid a memory leak in case j contains an
+- * allocated value (e.g., a string). See bug issue
+- * https://github.com/nlohmann/json/issues/2865 for more information.
+- */
+-
+-template<value_t> struct external_constructor;
+-
+-template<>
+-struct external_constructor<value_t::boolean>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::boolean_t b) noexcept
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::boolean;
+-        j.m_value = b;
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::string>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const typename BasicJsonType::string_t& s)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::string;
+-        j.m_value = s;
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::string_t&& s)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::string;
+-        j.m_value = std::move(s);
+-        j.assert_invariant();
+-    }
+-
+-    template < typename BasicJsonType, typename CompatibleStringType,
+-               enable_if_t < !std::is_same<CompatibleStringType, typename BasicJsonType::string_t>::value,
+-                             int > = 0 >
+-    static void construct(BasicJsonType& j, const CompatibleStringType& str)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::string;
+-        j.m_value.string = j.template create<typename BasicJsonType::string_t>(str);
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::binary>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const typename BasicJsonType::binary_t& b)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::binary;
+-        j.m_value = typename BasicJsonType::binary_t(b);
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::binary_t&& b)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::binary;
+-        j.m_value = typename BasicJsonType::binary_t(std::move(b));
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::number_float>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::number_float_t val) noexcept
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::number_float;
+-        j.m_value = val;
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::number_unsigned>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::number_unsigned_t val) noexcept
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::number_unsigned;
+-        j.m_value = val;
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::number_integer>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::number_integer_t val) noexcept
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::number_integer;
+-        j.m_value = val;
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::array>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const typename BasicJsonType::array_t& arr)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value = arr;
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::array_t&& arr)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value = std::move(arr);
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template < typename BasicJsonType, typename CompatibleArrayType,
+-               enable_if_t < !std::is_same<CompatibleArrayType, typename BasicJsonType::array_t>::value,
+-                             int > = 0 >
+-    static void construct(BasicJsonType& j, const CompatibleArrayType& arr)
+-    {
+-        using std::begin;
+-        using std::end;
+-
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value.array = j.template create<typename BasicJsonType::array_t>(begin(arr), end(arr));
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const std::vector<bool>& arr)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value = value_t::array;
+-        j.m_value.array->reserve(arr.size());
+-        for (const bool x : arr)
+-        {
+-            j.m_value.array->push_back(x);
+-            j.set_parent(j.m_value.array->back());
+-        }
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType, typename T,
+-             enable_if_t<std::is_convertible<T, BasicJsonType>::value, int> = 0>
+-    static void construct(BasicJsonType& j, const std::valarray<T>& arr)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value = value_t::array;
+-        j.m_value.array->resize(arr.size());
+-        if (arr.size() > 0)
+-        {
+-            std::copy(std::begin(arr), std::end(arr), j.m_value.array->begin());
+-        }
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::object>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const typename BasicJsonType::object_t& obj)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::object;
+-        j.m_value = obj;
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::object_t&& obj)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::object;
+-        j.m_value = std::move(obj);
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template < typename BasicJsonType, typename CompatibleObjectType,
+-               enable_if_t < !std::is_same<CompatibleObjectType, typename BasicJsonType::object_t>::value, int > = 0 >
+-    static void construct(BasicJsonType& j, const CompatibleObjectType& obj)
+-    {
+-        using std::begin;
+-        using std::end;
+-
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::object;
+-        j.m_value.object = j.template create<typename BasicJsonType::object_t>(begin(obj), end(obj));
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-};
+-
+-/////////////
+-// to_json //
+-/////////////
+-
+-template<typename BasicJsonType, typename T,
+-         enable_if_t<std::is_same<T, typename BasicJsonType::boolean_t>::value, int> = 0>
+-void to_json(BasicJsonType& j, T b) noexcept
+-{
+-    external_constructor<value_t::boolean>::construct(j, b);
+-}
+-
+-template<typename BasicJsonType, typename CompatibleString,
+-         enable_if_t<std::is_constructible<typename BasicJsonType::string_t, CompatibleString>::value, int> = 0>
+-void to_json(BasicJsonType& j, const CompatibleString& s)
+-{
+-    external_constructor<value_t::string>::construct(j, s);
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, typename BasicJsonType::string_t&& s)
+-{
+-    external_constructor<value_t::string>::construct(j, std::move(s));
+-}
+-
+-template<typename BasicJsonType, typename FloatType,
+-         enable_if_t<std::is_floating_point<FloatType>::value, int> = 0>
+-void to_json(BasicJsonType& j, FloatType val) noexcept
+-{
+-    external_constructor<value_t::number_float>::construct(j, static_cast<typename BasicJsonType::number_float_t>(val));
+-}
+-
+-template<typename BasicJsonType, typename CompatibleNumberUnsignedType,
+-         enable_if_t<is_compatible_integer_type<typename BasicJsonType::number_unsigned_t, CompatibleNumberUnsignedType>::value, int> = 0>
+-void to_json(BasicJsonType& j, CompatibleNumberUnsignedType val) noexcept
+-{
+-    external_constructor<value_t::number_unsigned>::construct(j, static_cast<typename BasicJsonType::number_unsigned_t>(val));
+-}
+-
+-template<typename BasicJsonType, typename CompatibleNumberIntegerType,
+-         enable_if_t<is_compatible_integer_type<typename BasicJsonType::number_integer_t, CompatibleNumberIntegerType>::value, int> = 0>
+-void to_json(BasicJsonType& j, CompatibleNumberIntegerType val) noexcept
+-{
+-    external_constructor<value_t::number_integer>::construct(j, static_cast<typename BasicJsonType::number_integer_t>(val));
+-}
+-
+-template<typename BasicJsonType, typename EnumType,
+-         enable_if_t<std::is_enum<EnumType>::value, int> = 0>
+-void to_json(BasicJsonType& j, EnumType e) noexcept
+-{
+-    using underlying_type = typename std::underlying_type<EnumType>::type;
+-    external_constructor<value_t::number_integer>::construct(j, static_cast<underlying_type>(e));
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, const std::vector<bool>& e)
+-{
+-    external_constructor<value_t::array>::construct(j, e);
+-}
+-
+-template < typename BasicJsonType, typename CompatibleArrayType,
+-           enable_if_t < is_compatible_array_type<BasicJsonType,
+-                         CompatibleArrayType>::value&&
+-                         !is_compatible_object_type<BasicJsonType, CompatibleArrayType>::value&&
+-                         !is_compatible_string_type<BasicJsonType, CompatibleArrayType>::value&&
+-                         !std::is_same<typename BasicJsonType::binary_t, CompatibleArrayType>::value&&
+-                         !is_basic_json<CompatibleArrayType>::value,
+-                         int > = 0 >
+-void to_json(BasicJsonType& j, const CompatibleArrayType& arr)
+-{
+-    external_constructor<value_t::array>::construct(j, arr);
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, const typename BasicJsonType::binary_t& bin)
+-{
+-    external_constructor<value_t::binary>::construct(j, bin);
+-}
+-
+-template<typename BasicJsonType, typename T,
+-         enable_if_t<std::is_convertible<T, BasicJsonType>::value, int> = 0>
+-void to_json(BasicJsonType& j, const std::valarray<T>& arr)
+-{
+-    external_constructor<value_t::array>::construct(j, std::move(arr));
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, typename BasicJsonType::array_t&& arr)
+-{
+-    external_constructor<value_t::array>::construct(j, std::move(arr));
+-}
+-
+-template < typename BasicJsonType, typename CompatibleObjectType,
+-           enable_if_t < is_compatible_object_type<BasicJsonType, CompatibleObjectType>::value&& !is_basic_json<CompatibleObjectType>::value, int > = 0 >
+-void to_json(BasicJsonType& j, const CompatibleObjectType& obj)
+-{
+-    external_constructor<value_t::object>::construct(j, obj);
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, typename BasicJsonType::object_t&& obj)
+-{
+-    external_constructor<value_t::object>::construct(j, std::move(obj));
+-}
+-
+-template <
+-    typename BasicJsonType, typename T, std::size_t N,
+-    enable_if_t < !std::is_constructible<typename BasicJsonType::string_t,
+-                  const T(&)[N]>::value, // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-                  int > = 0 >
+-void to_json(BasicJsonType& j, const T(&arr)[N]) // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-{
+-    external_constructor<value_t::array>::construct(j, arr);
+-}
+-
+-template < typename BasicJsonType, typename T1, typename T2, enable_if_t < std::is_constructible<BasicJsonType, T1>::value&& std::is_constructible<BasicJsonType, T2>::value, int > = 0 >
+-void to_json(BasicJsonType& j, const std::pair<T1, T2>& p)
+-{
+-    j = { p.first, p.second };
+-}
+-
+-// for https://github.com/nlohmann/json/pull/1134
+-template<typename BasicJsonType, typename T,
+-         enable_if_t<std::is_same<T, iteration_proxy_value<typename BasicJsonType::iterator>>::value, int> = 0>
+-void to_json(BasicJsonType& j, const T& b)
+-{
+-    j = { {b.key(), b.value()} };
+-}
+-
+-template<typename BasicJsonType, typename Tuple, std::size_t... Idx>
+-void to_json_tuple_impl(BasicJsonType& j, const Tuple& t, index_sequence<Idx...> /*unused*/)
+-{
+-    j = { std::get<Idx>(t)... };
+-}
+-
+-template<typename BasicJsonType, typename T, enable_if_t<is_constructible_tuple<BasicJsonType, T>::value, int > = 0>
+-void to_json(BasicJsonType& j, const T& t)
+-{
+-    to_json_tuple_impl(j, t, make_index_sequence<std::tuple_size<T>::value> {});
+-}
+-
+-#if JSON_HAS_FILESYSTEM || JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, const std_fs::path& p)
+-{
+-    j = p.string();
+-}
+-#endif
+-
+-struct to_json_fn
+-{
+-    template<typename BasicJsonType, typename T>
+-    auto operator()(BasicJsonType& j, T&& val) const noexcept(noexcept(to_json(j, std::forward<T>(val))))
+-    -> decltype(to_json(j, std::forward<T>(val)), void())
+-    {
+-        return to_json(j, std::forward<T>(val));
+-    }
+-};
+-}  // namespace detail
+-
+-/// namespace to hold default `to_json` function
+-/// to see why this is required:
+-/// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4381.html
+-namespace // NOLINT(cert-dcl59-cpp,fuchsia-header-anon-namespaces,google-build-namespaces)
+-{
+-constexpr const auto& to_json = detail::static_const<detail::to_json_fn>::value; // NOLINT(misc-definitions-in-headers)
+-} // namespace
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/identity_tag.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-
+-namespace nlohmann
+-{
+-
+-/// @sa https://json.nlohmann.me/api/adl_serializer/
+-template<typename ValueType, typename>
+-struct adl_serializer
+-{
+-    /// @brief convert a JSON value to any value type
+-    /// @sa https://json.nlohmann.me/api/adl_serializer/from_json/
+-    template<typename BasicJsonType, typename TargetType = ValueType>
+-    static auto from_json(BasicJsonType && j, TargetType& val) noexcept(
+-        noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), val)))
+-    -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), val), void())
+-    {
+-        ::nlohmann::from_json(std::forward<BasicJsonType>(j), val);
+-    }
+-
+-    /// @brief convert a JSON value to any value type
+-    /// @sa https://json.nlohmann.me/api/adl_serializer/from_json/
+-    template<typename BasicJsonType, typename TargetType = ValueType>
+-    static auto from_json(BasicJsonType && j) noexcept(
+-    noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {})))
+-    -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {}))
+-    {
+-        return ::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {});
+-    }
+-
+-    /// @brief convert any value type to a JSON value
+-    /// @sa https://json.nlohmann.me/api/adl_serializer/to_json/
+-    template<typename BasicJsonType, typename TargetType = ValueType>
+-    static auto to_json(BasicJsonType& j, TargetType && val) noexcept(
+-        noexcept(::nlohmann::to_json(j, std::forward<TargetType>(val))))
+-    -> decltype(::nlohmann::to_json(j, std::forward<TargetType>(val)), void())
+-    {
+-        ::nlohmann::to_json(j, std::forward<TargetType>(val));
+-    }
+-};
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/byte_container_with_subtype.hpp>
+-
+-
+-#include <cstdint> // uint8_t, uint64_t
+-#include <tuple> // tie
+-#include <utility> // move
+-
+-namespace nlohmann
+-{
+-
+-/// @brief an internal type for a backed binary type
+-/// @sa https://json.nlohmann.me/api/byte_container_with_subtype/
+-template<typename BinaryType>
+-class byte_container_with_subtype : public BinaryType
+-{
+-  public:
+-    using container_type = BinaryType;
+-    using subtype_type = std::uint64_t;
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype() noexcept(noexcept(container_type()))
+-        : container_type()
+-    {}
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype(const container_type& b) noexcept(noexcept(container_type(b)))
+-        : container_type(b)
+-    {}
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype(container_type&& b) noexcept(noexcept(container_type(std::move(b))))
+-        : container_type(std::move(b))
+-    {}
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype(const container_type& b, subtype_type subtype_) noexcept(noexcept(container_type(b)))
+-        : container_type(b)
+-        , m_subtype(subtype_)
+-        , m_has_subtype(true)
+-    {}
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype(container_type&& b, subtype_type subtype_) noexcept(noexcept(container_type(std::move(b))))
+-        : container_type(std::move(b))
+-        , m_subtype(subtype_)
+-        , m_has_subtype(true)
+-    {}
+-
+-    bool operator==(const byte_container_with_subtype& rhs) const
+-    {
+-        return std::tie(static_cast<const BinaryType&>(*this), m_subtype, m_has_subtype) ==
+-               std::tie(static_cast<const BinaryType&>(rhs), rhs.m_subtype, rhs.m_has_subtype);
+-    }
+-
+-    bool operator!=(const byte_container_with_subtype& rhs) const
+-    {
+-        return !(rhs == *this);
+-    }
+-
+-    /// @brief sets the binary subtype
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/set_subtype/
+-    void set_subtype(subtype_type subtype_) noexcept
+-    {
+-        m_subtype = subtype_;
+-        m_has_subtype = true;
+-    }
+-
+-    /// @brief return the binary subtype
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/subtype/
+-    constexpr subtype_type subtype() const noexcept
+-    {
+-        return m_has_subtype ? m_subtype : static_cast<subtype_type>(-1);
+-    }
+-
+-    /// @brief return whether the value has a subtype
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/has_subtype/
+-    constexpr bool has_subtype() const noexcept
+-    {
+-        return m_has_subtype;
+-    }
+-
+-    /// @brief clears the binary subtype
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/clear_subtype/
+-    void clear_subtype() noexcept
+-    {
+-        m_subtype = 0;
+-        m_has_subtype = false;
+-    }
+-
+-  private:
+-    subtype_type m_subtype = 0;
+-    bool m_has_subtype = false;
+-};
+-
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/conversions/from_json.hpp>
+-
+-// #include <nlohmann/detail/conversions/to_json.hpp>
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/hash.hpp>
+-
+-
+-#include <cstdint> // uint8_t
+-#include <cstddef> // size_t
+-#include <functional> // hash
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-// boost::hash_combine
+-inline std::size_t combine(std::size_t seed, std::size_t h) noexcept
+-{
+-    seed ^= h + 0x9e3779b9 + (seed << 6U) + (seed >> 2U);
+-    return seed;
+-}
+-
+-/*!
+-@brief hash a JSON value
+-
+-The hash function tries to rely on std::hash where possible. Furthermore, the
+-type of the JSON value is taken into account to have different hash values for
+-null, 0, 0U, and false, etc.
+-
+-@tparam BasicJsonType basic_json specialization
+-@param j JSON value to hash
+-@return hash value of j
+-*/
+-template<typename BasicJsonType>
+-std::size_t hash(const BasicJsonType& j)
+-{
+-    using string_t = typename BasicJsonType::string_t;
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-
+-    const auto type = static_cast<std::size_t>(j.type());
+-    switch (j.type())
+-    {
+-        case BasicJsonType::value_t::null:
+-        case BasicJsonType::value_t::discarded:
+-        {
+-            return combine(type, 0);
+-        }
+-
+-        case BasicJsonType::value_t::object:
+-        {
+-            auto seed = combine(type, j.size());
+-            for (const auto& element : j.items())
+-            {
+-                const auto h = std::hash<string_t> {}(element.key());
+-                seed = combine(seed, h);
+-                seed = combine(seed, hash(element.value()));
+-            }
+-            return seed;
+-        }
+-
+-        case BasicJsonType::value_t::array:
+-        {
+-            auto seed = combine(type, j.size());
+-            for (const auto& element : j)
+-            {
+-                seed = combine(seed, hash(element));
+-            }
+-            return seed;
+-        }
+-
+-        case BasicJsonType::value_t::string:
+-        {
+-            const auto h = std::hash<string_t> {}(j.template get_ref<const string_t&>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::boolean:
+-        {
+-            const auto h = std::hash<bool> {}(j.template get<bool>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::number_integer:
+-        {
+-            const auto h = std::hash<number_integer_t> {}(j.template get<number_integer_t>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::number_unsigned:
+-        {
+-            const auto h = std::hash<number_unsigned_t> {}(j.template get<number_unsigned_t>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::number_float:
+-        {
+-            const auto h = std::hash<number_float_t> {}(j.template get<number_float_t>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::binary:
+-        {
+-            auto seed = combine(type, j.get_binary().size());
+-            const auto h = std::hash<bool> {}(j.get_binary().has_subtype());
+-            seed = combine(seed, h);
+-            seed = combine(seed, static_cast<std::size_t>(j.get_binary().subtype()));
+-            for (const auto byte : j.get_binary())
+-            {
+-                seed = combine(seed, std::hash<std::uint8_t> {}(byte));
+-            }
+-            return seed;
+-        }
+-
+-        default:                   // LCOV_EXCL_LINE
+-            JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-            return 0;              // LCOV_EXCL_LINE
+-    }
+-}
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/binary_reader.hpp>
+-
+-
+-#include <algorithm> // generate_n
+-#include <array> // array
+-#include <cmath> // ldexp
+-#include <cstddef> // size_t
+-#include <cstdint> // uint8_t, uint16_t, uint32_t, uint64_t
+-#include <cstdio> // snprintf
+-#include <cstring> // memcpy
+-#include <iterator> // back_inserter
+-#include <limits> // numeric_limits
+-#include <string> // char_traits, string
+-#include <utility> // make_pair, move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/input/input_adapters.hpp>
+-
+-
+-#include <array> // array
+-#include <cstddef> // size_t
+-#include <cstring> // strlen
+-#include <iterator> // begin, end, iterator_traits, random_access_iterator_tag, distance, next
+-#include <memory> // shared_ptr, make_shared, addressof
+-#include <numeric> // accumulate
+-#include <string> // string, char_traits
+-#include <type_traits> // enable_if, is_base_of, is_pointer, is_integral, remove_pointer
+-#include <utility> // pair, declval
+-
+-#ifndef JSON_NO_IO
+-    #include <cstdio>   // FILE *
+-    #include <istream>  // istream
+-#endif                  // JSON_NO_IO
+-
+-// #include <nlohmann/detail/iterators/iterator_traits.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/// the supported input formats
+-enum class input_format_t { json, cbor, msgpack, ubjson, bson };
+-
+-////////////////////
+-// input adapters //
+-////////////////////
+-
+-#ifndef JSON_NO_IO
+-/*!
+-Input adapter for stdio file access. This adapter read only 1 byte and do not use any
+- buffer. This adapter is a very low level adapter.
+-*/
+-class file_input_adapter
+-{
+-  public:
+-    using char_type = char;
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    explicit file_input_adapter(std::FILE* f) noexcept
+-        : m_file(f)
+-    {}
+-
+-    // make class move-only
+-    file_input_adapter(const file_input_adapter&) = delete;
+-    file_input_adapter(file_input_adapter&&) noexcept = default;
+-    file_input_adapter& operator=(const file_input_adapter&) = delete;
+-    file_input_adapter& operator=(file_input_adapter&&) = delete;
+-    ~file_input_adapter() = default;
+-
+-    std::char_traits<char>::int_type get_character() noexcept
+-    {
+-        return std::fgetc(m_file);
+-    }
+-
+-  private:
+-    /// the file pointer to read from
+-    std::FILE* m_file;
+-};
+-
+-
+-/*!
+-Input adapter for a (caching) istream. Ignores a UFT Byte Order Mark at
+-beginning of input. Does not support changing the underlying std::streambuf
+-in mid-input. Maintains underlying std::istream and std::streambuf to support
+-subsequent use of standard std::istream operations to process any input
+-characters following those used in parsing the JSON input.  Clears the
+-std::istream flags; any input errors (e.g., EOF) will be detected by the first
+-subsequent call for input from the std::istream.
+-*/
+-class input_stream_adapter
+-{
+-  public:
+-    using char_type = char;
+-
+-    ~input_stream_adapter()
+-    {
+-        // clear stream flags; we use underlying streambuf I/O, do not
+-        // maintain ifstream flags, except eof
+-        if (is != nullptr)
+-        {
+-            is->clear(is->rdstate() & std::ios::eofbit);
+-        }
+-    }
+-
+-    explicit input_stream_adapter(std::istream& i)
+-        : is(&i), sb(i.rdbuf())
+-    {}
+-
+-    // delete because of pointer members
+-    input_stream_adapter(const input_stream_adapter&) = delete;
+-    input_stream_adapter& operator=(input_stream_adapter&) = delete;
+-    input_stream_adapter& operator=(input_stream_adapter&&) = delete;
+-
+-    input_stream_adapter(input_stream_adapter&& rhs) noexcept
+-        : is(rhs.is), sb(rhs.sb)
+-    {
+-        rhs.is = nullptr;
+-        rhs.sb = nullptr;
+-    }
+-
+-    // std::istream/std::streambuf use std::char_traits<char>::to_int_type, to
+-    // ensure that std::char_traits<char>::eof() and the character 0xFF do not
+-    // end up as the same value, e.g. 0xFFFFFFFF.
+-    std::char_traits<char>::int_type get_character()
+-    {
+-        auto res = sb->sbumpc();
+-        // set eof manually, as we don't use the istream interface.
+-        if (JSON_HEDLEY_UNLIKELY(res == std::char_traits<char>::eof()))
+-        {
+-            is->clear(is->rdstate() | std::ios::eofbit);
+-        }
+-        return res;
+-    }
+-
+-  private:
+-    /// the associated input stream
+-    std::istream* is = nullptr;
+-    std::streambuf* sb = nullptr;
+-};
+-#endif  // JSON_NO_IO
+-
+-// General-purpose iterator-based adapter. It might not be as fast as
+-// theoretically possible for some containers, but it is extremely versatile.
+-template<typename IteratorType>
+-class iterator_input_adapter
+-{
+-  public:
+-    using char_type = typename std::iterator_traits<IteratorType>::value_type;
+-
+-    iterator_input_adapter(IteratorType first, IteratorType last)
+-        : current(std::move(first)), end(std::move(last))
+-    {}
+-
+-    typename std::char_traits<char_type>::int_type get_character()
+-    {
+-        if (JSON_HEDLEY_LIKELY(current != end))
+-        {
+-            auto result = std::char_traits<char_type>::to_int_type(*current);
+-            std::advance(current, 1);
+-            return result;
+-        }
+-
+-        return std::char_traits<char_type>::eof();
+-    }
+-
+-  private:
+-    IteratorType current;
+-    IteratorType end;
+-
+-    template<typename BaseInputAdapter, size_t T>
+-    friend struct wide_string_input_helper;
+-
+-    bool empty() const
+-    {
+-        return current == end;
+-    }
+-};
+-
+-
+-template<typename BaseInputAdapter, size_t T>
+-struct wide_string_input_helper;
+-
+-template<typename BaseInputAdapter>
+-struct wide_string_input_helper<BaseInputAdapter, 4>
+-{
+-    // UTF-32
+-    static void fill_buffer(BaseInputAdapter& input,
+-                            std::array<std::char_traits<char>::int_type, 4>& utf8_bytes,
+-                            size_t& utf8_bytes_index,
+-                            size_t& utf8_bytes_filled)
+-    {
+-        utf8_bytes_index = 0;
+-
+-        if (JSON_HEDLEY_UNLIKELY(input.empty()))
+-        {
+-            utf8_bytes[0] = std::char_traits<char>::eof();
+-            utf8_bytes_filled = 1;
+-        }
+-        else
+-        {
+-            // get the current character
+-            const auto wc = input.get_character();
+-
+-            // UTF-32 to UTF-8 encoding
+-            if (wc < 0x80)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(wc);
+-                utf8_bytes_filled = 1;
+-            }
+-            else if (wc <= 0x7FF)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xC0u | ((static_cast<unsigned int>(wc) >> 6u) & 0x1Fu));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 2;
+-            }
+-            else if (wc <= 0xFFFF)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xE0u | ((static_cast<unsigned int>(wc) >> 12u) & 0x0Fu));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | ((static_cast<unsigned int>(wc) >> 6u) & 0x3Fu));
+-                utf8_bytes[2] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 3;
+-            }
+-            else if (wc <= 0x10FFFF)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xF0u | ((static_cast<unsigned int>(wc) >> 18u) & 0x07u));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | ((static_cast<unsigned int>(wc) >> 12u) & 0x3Fu));
+-                utf8_bytes[2] = static_cast<std::char_traits<char>::int_type>(0x80u | ((static_cast<unsigned int>(wc) >> 6u) & 0x3Fu));
+-                utf8_bytes[3] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 4;
+-            }
+-            else
+-            {
+-                // unknown character
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(wc);
+-                utf8_bytes_filled = 1;
+-            }
+-        }
+-    }
+-};
+-
+-template<typename BaseInputAdapter>
+-struct wide_string_input_helper<BaseInputAdapter, 2>
+-{
+-    // UTF-16
+-    static void fill_buffer(BaseInputAdapter& input,
+-                            std::array<std::char_traits<char>::int_type, 4>& utf8_bytes,
+-                            size_t& utf8_bytes_index,
+-                            size_t& utf8_bytes_filled)
+-    {
+-        utf8_bytes_index = 0;
+-
+-        if (JSON_HEDLEY_UNLIKELY(input.empty()))
+-        {
+-            utf8_bytes[0] = std::char_traits<char>::eof();
+-            utf8_bytes_filled = 1;
+-        }
+-        else
+-        {
+-            // get the current character
+-            const auto wc = input.get_character();
+-
+-            // UTF-16 to UTF-8 encoding
+-            if (wc < 0x80)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(wc);
+-                utf8_bytes_filled = 1;
+-            }
+-            else if (wc <= 0x7FF)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xC0u | ((static_cast<unsigned int>(wc) >> 6u)));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 2;
+-            }
+-            else if (0xD800 > wc || wc >= 0xE000)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xE0u | ((static_cast<unsigned int>(wc) >> 12u)));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | ((static_cast<unsigned int>(wc) >> 6u) & 0x3Fu));
+-                utf8_bytes[2] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 3;
+-            }
+-            else
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!input.empty()))
+-                {
+-                    const auto wc2 = static_cast<unsigned int>(input.get_character());
+-                    const auto charcode = 0x10000u + (((static_cast<unsigned int>(wc) & 0x3FFu) << 10u) | (wc2 & 0x3FFu));
+-                    utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xF0u | (charcode >> 18u));
+-                    utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | ((charcode >> 12u) & 0x3Fu));
+-                    utf8_bytes[2] = static_cast<std::char_traits<char>::int_type>(0x80u | ((charcode >> 6u) & 0x3Fu));
+-                    utf8_bytes[3] = static_cast<std::char_traits<char>::int_type>(0x80u | (charcode & 0x3Fu));
+-                    utf8_bytes_filled = 4;
+-                }
+-                else
+-                {
+-                    utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(wc);
+-                    utf8_bytes_filled = 1;
+-                }
+-            }
+-        }
+-    }
+-};
+-
+-// Wraps another input apdater to convert wide character types into individual bytes.
+-template<typename BaseInputAdapter, typename WideCharType>
+-class wide_string_input_adapter
+-{
+-  public:
+-    using char_type = char;
+-
+-    wide_string_input_adapter(BaseInputAdapter base)
+-        : base_adapter(base) {}
+-
+-    typename std::char_traits<char>::int_type get_character() noexcept
+-    {
+-        // check if buffer needs to be filled
+-        if (utf8_bytes_index == utf8_bytes_filled)
+-        {
+-            fill_buffer<sizeof(WideCharType)>();
+-
+-            JSON_ASSERT(utf8_bytes_filled > 0);
+-            JSON_ASSERT(utf8_bytes_index == 0);
+-        }
+-
+-        // use buffer
+-        JSON_ASSERT(utf8_bytes_filled > 0);
+-        JSON_ASSERT(utf8_bytes_index < utf8_bytes_filled);
+-        return utf8_bytes[utf8_bytes_index++];
+-    }
+-
+-  private:
+-    BaseInputAdapter base_adapter;
+-
+-    template<size_t T>
+-    void fill_buffer()
+-    {
+-        wide_string_input_helper<BaseInputAdapter, T>::fill_buffer(base_adapter, utf8_bytes, utf8_bytes_index, utf8_bytes_filled);
+-    }
+-
+-    /// a buffer for UTF-8 bytes
+-    std::array<std::char_traits<char>::int_type, 4> utf8_bytes = {{0, 0, 0, 0}};
+-
+-    /// index to the utf8_codes array for the next valid byte
+-    std::size_t utf8_bytes_index = 0;
+-    /// number of valid bytes in the utf8_codes array
+-    std::size_t utf8_bytes_filled = 0;
+-};
+-
+-
+-template<typename IteratorType, typename Enable = void>
+-struct iterator_input_adapter_factory
+-{
+-    using iterator_type = IteratorType;
+-    using char_type = typename std::iterator_traits<iterator_type>::value_type;
+-    using adapter_type = iterator_input_adapter<iterator_type>;
+-
+-    static adapter_type create(IteratorType first, IteratorType last)
+-    {
+-        return adapter_type(std::move(first), std::move(last));
+-    }
+-};
+-
+-template<typename T>
+-struct is_iterator_of_multibyte
+-{
+-    using value_type = typename std::iterator_traits<T>::value_type;
+-    enum
+-    {
+-        value = sizeof(value_type) > 1
+-    };
+-};
+-
+-template<typename IteratorType>
+-struct iterator_input_adapter_factory<IteratorType, enable_if_t<is_iterator_of_multibyte<IteratorType>::value>>
+-{
+-    using iterator_type = IteratorType;
+-    using char_type = typename std::iterator_traits<iterator_type>::value_type;
+-    using base_adapter_type = iterator_input_adapter<iterator_type>;
+-    using adapter_type = wide_string_input_adapter<base_adapter_type, char_type>;
+-
+-    static adapter_type create(IteratorType first, IteratorType last)
+-    {
+-        return adapter_type(base_adapter_type(std::move(first), std::move(last)));
+-    }
+-};
+-
+-// General purpose iterator-based input
+-template<typename IteratorType>
+-typename iterator_input_adapter_factory<IteratorType>::adapter_type input_adapter(IteratorType first, IteratorType last)
+-{
+-    using factory_type = iterator_input_adapter_factory<IteratorType>;
+-    return factory_type::create(first, last);
+-}
+-
+-// Convenience shorthand from container to iterator
+-// Enables ADL on begin(container) and end(container)
+-// Encloses the using declarations in namespace for not to leak them to outside scope
+-
+-namespace container_input_adapter_factory_impl
+-{
+-
+-using std::begin;
+-using std::end;
+-
+-template<typename ContainerType, typename Enable = void>
+-struct container_input_adapter_factory {};
+-
+-template<typename ContainerType>
+-struct container_input_adapter_factory< ContainerType,
+-       void_t<decltype(begin(std::declval<ContainerType>()), end(std::declval<ContainerType>()))>>
+-       {
+-           using adapter_type = decltype(input_adapter(begin(std::declval<ContainerType>()), end(std::declval<ContainerType>())));
+-
+-           static adapter_type create(const ContainerType& container)
+-{
+-    return input_adapter(begin(container), end(container));
+-}
+-       };
+-
+-} // namespace container_input_adapter_factory_impl
+-
+-template<typename ContainerType>
+-typename container_input_adapter_factory_impl::container_input_adapter_factory<ContainerType>::adapter_type input_adapter(const ContainerType& container)
+-{
+-    return container_input_adapter_factory_impl::container_input_adapter_factory<ContainerType>::create(container);
+-}
+-
+-#ifndef JSON_NO_IO
+-// Special cases with fast paths
+-inline file_input_adapter input_adapter(std::FILE* file)
+-{
+-    return file_input_adapter(file);
+-}
+-
+-inline input_stream_adapter input_adapter(std::istream& stream)
+-{
+-    return input_stream_adapter(stream);
+-}
+-
+-inline input_stream_adapter input_adapter(std::istream&& stream)
+-{
+-    return input_stream_adapter(stream);
+-}
+-#endif  // JSON_NO_IO
+-
+-using contiguous_bytes_input_adapter = decltype(input_adapter(std::declval<const char*>(), std::declval<const char*>()));
+-
+-// Null-delimited strings, and the like.
+-template < typename CharT,
+-           typename std::enable_if <
+-               std::is_pointer<CharT>::value&&
+-               !std::is_array<CharT>::value&&
+-               std::is_integral<typename std::remove_pointer<CharT>::type>::value&&
+-               sizeof(typename std::remove_pointer<CharT>::type) == 1,
+-               int >::type = 0 >
+-contiguous_bytes_input_adapter input_adapter(CharT b)
+-{
+-    auto length = std::strlen(reinterpret_cast<const char*>(b));
+-    const auto* ptr = reinterpret_cast<const char*>(b);
+-    return input_adapter(ptr, ptr + length);
+-}
+-
+-template<typename T, std::size_t N>
+-auto input_adapter(T (&array)[N]) -> decltype(input_adapter(array, array + N)) // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-{
+-    return input_adapter(array, array + N);
+-}
+-
+-// This class only handles inputs of input_buffer_adapter type.
+-// It's required so that expressions like {ptr, len} can be implicitly cast
+-// to the correct adapter.
+-class span_input_adapter
+-{
+-  public:
+-    template < typename CharT,
+-               typename std::enable_if <
+-                   std::is_pointer<CharT>::value&&
+-                   std::is_integral<typename std::remove_pointer<CharT>::type>::value&&
+-                   sizeof(typename std::remove_pointer<CharT>::type) == 1,
+-                   int >::type = 0 >
+-    span_input_adapter(CharT b, std::size_t l)
+-        : ia(reinterpret_cast<const char*>(b), reinterpret_cast<const char*>(b) + l) {}
+-
+-    template<class IteratorType,
+-             typename std::enable_if<
+-                 std::is_same<typename iterator_traits<IteratorType>::iterator_category, std::random_access_iterator_tag>::value,
+-                 int>::type = 0>
+-    span_input_adapter(IteratorType first, IteratorType last)
+-        : ia(input_adapter(first, last)) {}
+-
+-    contiguous_bytes_input_adapter&& get()
+-    {
+-        return std::move(ia); // NOLINT(hicpp-move-const-arg,performance-move-const-arg)
+-    }
+-
+-  private:
+-    contiguous_bytes_input_adapter ia;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/json_sax.hpp>
+-
+-
+-#include <cstddef>
+-#include <string> // string
+-#include <utility> // move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-
+-/*!
+-@brief SAX interface
+-
+-This class describes the SAX interface used by @ref nlohmann::json::sax_parse.
+-Each function is called in different situations while the input is parsed. The
+-boolean return value informs the parser whether to continue processing the
+-input.
+-*/
+-template<typename BasicJsonType>
+-struct json_sax
+-{
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-
+-    /*!
+-    @brief a null value was read
+-    @return whether parsing should proceed
+-    */
+-    virtual bool null() = 0;
+-
+-    /*!
+-    @brief a boolean value was read
+-    @param[in] val  boolean value
+-    @return whether parsing should proceed
+-    */
+-    virtual bool boolean(bool val) = 0;
+-
+-    /*!
+-    @brief an integer number was read
+-    @param[in] val  integer value
+-    @return whether parsing should proceed
+-    */
+-    virtual bool number_integer(number_integer_t val) = 0;
+-
+-    /*!
+-    @brief an unsigned integer number was read
+-    @param[in] val  unsigned integer value
+-    @return whether parsing should proceed
+-    */
+-    virtual bool number_unsigned(number_unsigned_t val) = 0;
+-
+-    /*!
+-    @brief a floating-point number was read
+-    @param[in] val  floating-point value
+-    @param[in] s    raw token value
+-    @return whether parsing should proceed
+-    */
+-    virtual bool number_float(number_float_t val, const string_t& s) = 0;
+-
+-    /*!
+-    @brief a string value was read
+-    @param[in] val  string value
+-    @return whether parsing should proceed
+-    @note It is safe to move the passed string value.
+-    */
+-    virtual bool string(string_t& val) = 0;
+-
+-    /*!
+-    @brief a binary value was read
+-    @param[in] val  binary value
+-    @return whether parsing should proceed
+-    @note It is safe to move the passed binary value.
+-    */
+-    virtual bool binary(binary_t& val) = 0;
+-
+-    /*!
+-    @brief the beginning of an object was read
+-    @param[in] elements  number of object elements or -1 if unknown
+-    @return whether parsing should proceed
+-    @note binary formats may report the number of elements
+-    */
+-    virtual bool start_object(std::size_t elements) = 0;
+-
+-    /*!
+-    @brief an object key was read
+-    @param[in] val  object key
+-    @return whether parsing should proceed
+-    @note It is safe to move the passed string.
+-    */
+-    virtual bool key(string_t& val) = 0;
+-
+-    /*!
+-    @brief the end of an object was read
+-    @return whether parsing should proceed
+-    */
+-    virtual bool end_object() = 0;
+-
+-    /*!
+-    @brief the beginning of an array was read
+-    @param[in] elements  number of array elements or -1 if unknown
+-    @return whether parsing should proceed
+-    @note binary formats may report the number of elements
+-    */
+-    virtual bool start_array(std::size_t elements) = 0;
+-
+-    /*!
+-    @brief the end of an array was read
+-    @return whether parsing should proceed
+-    */
+-    virtual bool end_array() = 0;
+-
+-    /*!
+-    @brief a parse error occurred
+-    @param[in] position    the position in the input where the error occurs
+-    @param[in] last_token  the last read token
+-    @param[in] ex          an exception object describing the error
+-    @return whether parsing should proceed (must return false)
+-    */
+-    virtual bool parse_error(std::size_t position,
+-                             const std::string& last_token,
+-                             const detail::exception& ex) = 0;
+-
+-    json_sax() = default;
+-    json_sax(const json_sax&) = default;
+-    json_sax(json_sax&&) noexcept = default;
+-    json_sax& operator=(const json_sax&) = default;
+-    json_sax& operator=(json_sax&&) noexcept = default;
+-    virtual ~json_sax() = default;
+-};
+-
+-
+-namespace detail
+-{
+-/*!
+-@brief SAX implementation to create a JSON value from SAX events
+-
+-This class implements the @ref json_sax interface and processes the SAX events
+-to create a JSON value which makes it basically a DOM parser. The structure or
+-hierarchy of the JSON value is managed by the stack `ref_stack` which contains
+-a pointer to the respective array or object for each recursion depth.
+-
+-After successful parsing, the value that is passed by reference to the
+-constructor contains the parsed value.
+-
+-@tparam BasicJsonType  the JSON type
+-*/
+-template<typename BasicJsonType>
+-class json_sax_dom_parser
+-{
+-  public:
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-
+-    /*!
+-    @param[in,out] r  reference to a JSON value that is manipulated while
+-                       parsing
+-    @param[in] allow_exceptions_  whether parse errors yield exceptions
+-    */
+-    explicit json_sax_dom_parser(BasicJsonType& r, const bool allow_exceptions_ = true)
+-        : root(r), allow_exceptions(allow_exceptions_)
+-    {}
+-
+-    // make class move-only
+-    json_sax_dom_parser(const json_sax_dom_parser&) = delete;
+-    json_sax_dom_parser(json_sax_dom_parser&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    json_sax_dom_parser& operator=(const json_sax_dom_parser&) = delete;
+-    json_sax_dom_parser& operator=(json_sax_dom_parser&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    ~json_sax_dom_parser() = default;
+-
+-    bool null()
+-    {
+-        handle_value(nullptr);
+-        return true;
+-    }
+-
+-    bool boolean(bool val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_integer(number_integer_t val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_unsigned(number_unsigned_t val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_float(number_float_t val, const string_t& /*unused*/)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool string(string_t& val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool binary(binary_t& val)
+-    {
+-        handle_value(std::move(val));
+-        return true;
+-    }
+-
+-    bool start_object(std::size_t len)
+-    {
+-        ref_stack.push_back(handle_value(BasicJsonType::value_t::object));
+-
+-        if (JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
+-        {
+-            JSON_THROW(out_of_range::create(408, "excessive object size: " + std::to_string(len), *ref_stack.back()));
+-        }
+-
+-        return true;
+-    }
+-
+-    bool key(string_t& val)
+-    {
+-        // add null at given key and store the reference for later
+-        object_element = &(ref_stack.back()->m_value.object->operator[](val));
+-        return true;
+-    }
+-
+-    bool end_object()
+-    {
+-        ref_stack.back()->set_parents();
+-        ref_stack.pop_back();
+-        return true;
+-    }
+-
+-    bool start_array(std::size_t len)
+-    {
+-        ref_stack.push_back(handle_value(BasicJsonType::value_t::array));
+-
+-        if (JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
+-        {
+-            JSON_THROW(out_of_range::create(408, "excessive array size: " + std::to_string(len), *ref_stack.back()));
+-        }
+-
+-        return true;
+-    }
+-
+-    bool end_array()
+-    {
+-        ref_stack.back()->set_parents();
+-        ref_stack.pop_back();
+-        return true;
+-    }
+-
+-    template<class Exception>
+-    bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/,
+-                     const Exception& ex)
+-    {
+-        errored = true;
+-        static_cast<void>(ex);
+-        if (allow_exceptions)
+-        {
+-            JSON_THROW(ex);
+-        }
+-        return false;
+-    }
+-
+-    constexpr bool is_errored() const
+-    {
+-        return errored;
+-    }
+-
+-  private:
+-    /*!
+-    @invariant If the ref stack is empty, then the passed value will be the new
+-               root.
+-    @invariant If the ref stack contains a value, then it is an array or an
+-               object to which we can add elements
+-    */
+-    template<typename Value>
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    BasicJsonType* handle_value(Value&& v)
+-    {
+-        if (ref_stack.empty())
+-        {
+-            root = BasicJsonType(std::forward<Value>(v));
+-            return &root;
+-        }
+-
+-        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
+-
+-        if (ref_stack.back()->is_array())
+-        {
+-            ref_stack.back()->m_value.array->emplace_back(std::forward<Value>(v));
+-            return &(ref_stack.back()->m_value.array->back());
+-        }
+-
+-        JSON_ASSERT(ref_stack.back()->is_object());
+-        JSON_ASSERT(object_element);
+-        *object_element = BasicJsonType(std::forward<Value>(v));
+-        return object_element;
+-    }
+-
+-    /// the parsed JSON value
+-    BasicJsonType& root;
+-    /// stack to model hierarchy of values
+-    std::vector<BasicJsonType*> ref_stack {};
+-    /// helper to hold the reference for the next object element
+-    BasicJsonType* object_element = nullptr;
+-    /// whether a syntax error occurred
+-    bool errored = false;
+-    /// whether to throw exceptions in case of errors
+-    const bool allow_exceptions = true;
+-};
+-
+-template<typename BasicJsonType>
+-class json_sax_dom_callback_parser
+-{
+-  public:
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using parser_callback_t = typename BasicJsonType::parser_callback_t;
+-    using parse_event_t = typename BasicJsonType::parse_event_t;
+-
+-    json_sax_dom_callback_parser(BasicJsonType& r,
+-                                 const parser_callback_t cb,
+-                                 const bool allow_exceptions_ = true)
+-        : root(r), callback(cb), allow_exceptions(allow_exceptions_)
+-    {
+-        keep_stack.push_back(true);
+-    }
+-
+-    // make class move-only
+-    json_sax_dom_callback_parser(const json_sax_dom_callback_parser&) = delete;
+-    json_sax_dom_callback_parser(json_sax_dom_callback_parser&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    json_sax_dom_callback_parser& operator=(const json_sax_dom_callback_parser&) = delete;
+-    json_sax_dom_callback_parser& operator=(json_sax_dom_callback_parser&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    ~json_sax_dom_callback_parser() = default;
+-
+-    bool null()
+-    {
+-        handle_value(nullptr);
+-        return true;
+-    }
+-
+-    bool boolean(bool val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_integer(number_integer_t val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_unsigned(number_unsigned_t val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_float(number_float_t val, const string_t& /*unused*/)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool string(string_t& val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool binary(binary_t& val)
+-    {
+-        handle_value(std::move(val));
+-        return true;
+-    }
+-
+-    bool start_object(std::size_t len)
+-    {
+-        // check callback for object start
+-        const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::object_start, discarded);
+-        keep_stack.push_back(keep);
+-
+-        auto val = handle_value(BasicJsonType::value_t::object, true);
+-        ref_stack.push_back(val.second);
+-
+-        // check object limit
+-        if (ref_stack.back() && JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
+-        {
+-            JSON_THROW(out_of_range::create(408, "excessive object size: " + std::to_string(len), *ref_stack.back()));
+-        }
+-
+-        return true;
+-    }
+-
+-    bool key(string_t& val)
+-    {
+-        BasicJsonType k = BasicJsonType(val);
+-
+-        // check callback for key
+-        const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::key, k);
+-        key_keep_stack.push_back(keep);
+-
+-        // add discarded value at given key and store the reference for later
+-        if (keep && ref_stack.back())
+-        {
+-            object_element = &(ref_stack.back()->m_value.object->operator[](val) = discarded);
+-        }
+-
+-        return true;
+-    }
+-
+-    bool end_object()
+-    {
+-        if (ref_stack.back())
+-        {
+-            if (!callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back()))
+-            {
+-                // discard object
+-                *ref_stack.back() = discarded;
+-            }
+-            else
+-            {
+-                ref_stack.back()->set_parents();
+-            }
+-        }
+-
+-        JSON_ASSERT(!ref_stack.empty());
+-        JSON_ASSERT(!keep_stack.empty());
+-        ref_stack.pop_back();
+-        keep_stack.pop_back();
+-
+-        if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured())
+-        {
+-            // remove discarded value
+-            for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it)
+-            {
+-                if (it->is_discarded())
+-                {
+-                    ref_stack.back()->erase(it);
+-                    break;
+-                }
+-            }
+-        }
+-
+-        return true;
+-    }
+-
+-    bool start_array(std::size_t len)
+-    {
+-        const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::array_start, discarded);
+-        keep_stack.push_back(keep);
+-
+-        auto val = handle_value(BasicJsonType::value_t::array, true);
+-        ref_stack.push_back(val.second);
+-
+-        // check array limit
+-        if (ref_stack.back() && JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
+-        {
+-            JSON_THROW(out_of_range::create(408, "excessive array size: " + std::to_string(len), *ref_stack.back()));
+-        }
+-
+-        return true;
+-    }
+-
+-    bool end_array()
+-    {
+-        bool keep = true;
+-
+-        if (ref_stack.back())
+-        {
+-            keep = callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::array_end, *ref_stack.back());
+-            if (keep)
+-            {
+-                ref_stack.back()->set_parents();
+-            }
+-            else
+-            {
+-                // discard array
+-                *ref_stack.back() = discarded;
+-            }
+-        }
+-
+-        JSON_ASSERT(!ref_stack.empty());
+-        JSON_ASSERT(!keep_stack.empty());
+-        ref_stack.pop_back();
+-        keep_stack.pop_back();
+-
+-        // remove discarded value
+-        if (!keep && !ref_stack.empty() && ref_stack.back()->is_array())
+-        {
+-            ref_stack.back()->m_value.array->pop_back();
+-        }
+-
+-        return true;
+-    }
+-
+-    template<class Exception>
+-    bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/,
+-                     const Exception& ex)
+-    {
+-        errored = true;
+-        static_cast<void>(ex);
+-        if (allow_exceptions)
+-        {
+-            JSON_THROW(ex);
+-        }
+-        return false;
+-    }
+-
+-    constexpr bool is_errored() const
+-    {
+-        return errored;
+-    }
+-
+-  private:
+-    /*!
+-    @param[in] v  value to add to the JSON value we build during parsing
+-    @param[in] skip_callback  whether we should skip calling the callback
+-               function; this is required after start_array() and
+-               start_object() SAX events, because otherwise we would call the
+-               callback function with an empty array or object, respectively.
+-
+-    @invariant If the ref stack is empty, then the passed value will be the new
+-               root.
+-    @invariant If the ref stack contains a value, then it is an array or an
+-               object to which we can add elements
+-
+-    @return pair of boolean (whether value should be kept) and pointer (to the
+-            passed value in the ref_stack hierarchy; nullptr if not kept)
+-    */
+-    template<typename Value>
+-    std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
+-    {
+-        JSON_ASSERT(!keep_stack.empty());
+-
+-        // do not handle this value if we know it would be added to a discarded
+-        // container
+-        if (!keep_stack.back())
+-        {
+-            return {false, nullptr};
+-        }
+-
+-        // create value
+-        auto value = BasicJsonType(std::forward<Value>(v));
+-
+-        // check callback
+-        const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
+-
+-        // do not handle this value if we just learnt it shall be discarded
+-        if (!keep)
+-        {
+-            return {false, nullptr};
+-        }
+-
+-        if (ref_stack.empty())
+-        {
+-            root = std::move(value);
+-            return {true, &root};
+-        }
+-
+-        // skip this value if we already decided to skip the parent
+-        // (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
+-        if (!ref_stack.back())
+-        {
+-            return {false, nullptr};
+-        }
+-
+-        // we now only expect arrays and objects
+-        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
+-
+-        // array
+-        if (ref_stack.back()->is_array())
+-        {
+-            ref_stack.back()->m_value.array->emplace_back(std::move(value));
+-            return {true, &(ref_stack.back()->m_value.array->back())};
+-        }
+-
+-        // object
+-        JSON_ASSERT(ref_stack.back()->is_object());
+-        // check if we should store an element for the current key
+-        JSON_ASSERT(!key_keep_stack.empty());
+-        const bool store_element = key_keep_stack.back();
+-        key_keep_stack.pop_back();
+-
+-        if (!store_element)
+-        {
+-            return {false, nullptr};
+-        }
+-
+-        JSON_ASSERT(object_element);
+-        *object_element = std::move(value);
+-        return {true, object_element};
+-    }
+-
+-    /// the parsed JSON value
+-    BasicJsonType& root;
+-    /// stack to model hierarchy of values
+-    std::vector<BasicJsonType*> ref_stack {};
+-    /// stack to manage which values to keep
+-    std::vector<bool> keep_stack {};
+-    /// stack to manage which object keys to keep
+-    std::vector<bool> key_keep_stack {};
+-    /// helper to hold the reference for the next object element
+-    BasicJsonType* object_element = nullptr;
+-    /// whether a syntax error occurred
+-    bool errored = false;
+-    /// callback function
+-    const parser_callback_t callback = nullptr;
+-    /// whether to throw exceptions in case of errors
+-    const bool allow_exceptions = true;
+-    /// a discarded value for the callback
+-    BasicJsonType discarded = BasicJsonType::value_t::discarded;
+-};
+-
+-template<typename BasicJsonType>
+-class json_sax_acceptor
+-{
+-  public:
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-
+-    bool null()
+-    {
+-        return true;
+-    }
+-
+-    bool boolean(bool /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool number_integer(number_integer_t /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool number_unsigned(number_unsigned_t /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool number_float(number_float_t /*unused*/, const string_t& /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool string(string_t& /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool binary(binary_t& /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool start_object(std::size_t /*unused*/ = static_cast<std::size_t>(-1))
+-    {
+-        return true;
+-    }
+-
+-    bool key(string_t& /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool end_object()
+-    {
+-        return true;
+-    }
+-
+-    bool start_array(std::size_t /*unused*/ = static_cast<std::size_t>(-1))
+-    {
+-        return true;
+-    }
+-
+-    bool end_array()
+-    {
+-        return true;
+-    }
+-
+-    bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, const detail::exception& /*unused*/)
+-    {
+-        return false;
+-    }
+-};
+-}  // namespace detail
+-
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/lexer.hpp>
+-
+-
+-#include <array> // array
+-#include <clocale> // localeconv
+-#include <cstddef> // size_t
+-#include <cstdio> // snprintf
+-#include <cstdlib> // strtof, strtod, strtold, strtoll, strtoull
+-#include <initializer_list> // initializer_list
+-#include <string> // char_traits, string
+-#include <utility> // move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/input/input_adapters.hpp>
+-
+-// #include <nlohmann/detail/input/position_t.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-///////////
+-// lexer //
+-///////////
+-
+-template<typename BasicJsonType>
+-class lexer_base
+-{
+-  public:
+-    /// token types for the parser
+-    enum class token_type
+-    {
+-        uninitialized,    ///< indicating the scanner is uninitialized
+-        literal_true,     ///< the `true` literal
+-        literal_false,    ///< the `false` literal
+-        literal_null,     ///< the `null` literal
+-        value_string,     ///< a string -- use get_string() for actual value
+-        value_unsigned,   ///< an unsigned integer -- use get_number_unsigned() for actual value
+-        value_integer,    ///< a signed integer -- use get_number_integer() for actual value
+-        value_float,      ///< an floating point number -- use get_number_float() for actual value
+-        begin_array,      ///< the character for array begin `[`
+-        begin_object,     ///< the character for object begin `{`
+-        end_array,        ///< the character for array end `]`
+-        end_object,       ///< the character for object end `}`
+-        name_separator,   ///< the name separator `:`
+-        value_separator,  ///< the value separator `,`
+-        parse_error,      ///< indicating a parse error
+-        end_of_input,     ///< indicating the end of the input buffer
+-        literal_or_value  ///< a literal or the begin of a value (only for diagnostics)
+-    };
+-
+-    /// return name of values of type token_type (only used for errors)
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    JSON_HEDLEY_CONST
+-    static const char* token_type_name(const token_type t) noexcept
+-    {
+-        switch (t)
+-        {
+-            case token_type::uninitialized:
+-                return "<uninitialized>";
+-            case token_type::literal_true:
+-                return "true literal";
+-            case token_type::literal_false:
+-                return "false literal";
+-            case token_type::literal_null:
+-                return "null literal";
+-            case token_type::value_string:
+-                return "string literal";
+-            case token_type::value_unsigned:
+-            case token_type::value_integer:
+-            case token_type::value_float:
+-                return "number literal";
+-            case token_type::begin_array:
+-                return "'['";
+-            case token_type::begin_object:
+-                return "'{'";
+-            case token_type::end_array:
+-                return "']'";
+-            case token_type::end_object:
+-                return "'}'";
+-            case token_type::name_separator:
+-                return "':'";
+-            case token_type::value_separator:
+-                return "','";
+-            case token_type::parse_error:
+-                return "<parse error>";
+-            case token_type::end_of_input:
+-                return "end of input";
+-            case token_type::literal_or_value:
+-                return "'[', '{', or a literal";
+-            // LCOV_EXCL_START
+-            default: // catch non-enum values
+-                return "unknown token";
+-                // LCOV_EXCL_STOP
+-        }
+-    }
+-};
+-/*!
+-@brief lexical analysis
+-
+-This class organizes the lexical analysis during JSON deserialization.
+-*/
+-template<typename BasicJsonType, typename InputAdapterType>
+-class lexer : public lexer_base<BasicJsonType>
+-{
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using char_type = typename InputAdapterType::char_type;
+-    using char_int_type = typename std::char_traits<char_type>::int_type;
+-
+-  public:
+-    using token_type = typename lexer_base<BasicJsonType>::token_type;
+-
+-    explicit lexer(InputAdapterType&& adapter, bool ignore_comments_ = false) noexcept
+-        : ia(std::move(adapter))
+-        , ignore_comments(ignore_comments_)
+-        , decimal_point_char(static_cast<char_int_type>(get_decimal_point()))
+-    {}
+-
+-    // delete because of pointer members
+-    lexer(const lexer&) = delete;
+-    lexer(lexer&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    lexer& operator=(lexer&) = delete;
+-    lexer& operator=(lexer&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    ~lexer() = default;
+-
+-  private:
+-    /////////////////////
+-    // locales
+-    /////////////////////
+-
+-    /// return the locale-dependent decimal point
+-    JSON_HEDLEY_PURE
+-    static char get_decimal_point() noexcept
+-    {
+-        const auto* loc = localeconv();
+-        JSON_ASSERT(loc != nullptr);
+-        return (loc->decimal_point == nullptr) ? '.' : *(loc->decimal_point);
+-    }
+-
+-    /////////////////////
+-    // scan functions
+-    /////////////////////
+-
+-    /*!
+-    @brief get codepoint from 4 hex characters following `\u`
+-
+-    For input "\u c1 c2 c3 c4" the codepoint is:
+-      (c1 * 0x1000) + (c2 * 0x0100) + (c3 * 0x0010) + c4
+-    = (c1 << 12) + (c2 << 8) + (c3 << 4) + (c4 << 0)
+-
+-    Furthermore, the possible characters '0'..'9', 'A'..'F', and 'a'..'f'
+-    must be converted to the integers 0x0..0x9, 0xA..0xF, 0xA..0xF, resp. The
+-    conversion is done by subtracting the offset (0x30, 0x37, and 0x57)
+-    between the ASCII value of the character and the desired integer value.
+-
+-    @return codepoint (0x0000..0xFFFF) or -1 in case of an error (e.g. EOF or
+-            non-hex character)
+-    */
+-    int get_codepoint()
+-    {
+-        // this function only makes sense after reading `\u`
+-        JSON_ASSERT(current == 'u');
+-        int codepoint = 0;
+-
+-        const auto factors = { 12u, 8u, 4u, 0u };
+-        for (const auto factor : factors)
+-        {
+-            get();
+-
+-            if (current >= '0' && current <= '9')
+-            {
+-                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x30u) << factor);
+-            }
+-            else if (current >= 'A' && current <= 'F')
+-            {
+-                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x37u) << factor);
+-            }
+-            else if (current >= 'a' && current <= 'f')
+-            {
+-                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x57u) << factor);
+-            }
+-            else
+-            {
+-                return -1;
+-            }
+-        }
+-
+-        JSON_ASSERT(0x0000 <= codepoint && codepoint <= 0xFFFF);
+-        return codepoint;
+-    }
+-
+-    /*!
+-    @brief check if the next byte(s) are inside a given range
+-
+-    Adds the current byte and, for each passed range, reads a new byte and
+-    checks if it is inside the range. If a violation was detected, set up an
+-    error message and return false. Otherwise, return true.
+-
+-    @param[in] ranges  list of integers; interpreted as list of pairs of
+-                       inclusive lower and upper bound, respectively
+-
+-    @pre The passed list @a ranges must have 2, 4, or 6 elements; that is,
+-         1, 2, or 3 pairs. This precondition is enforced by an assertion.
+-
+-    @return true if and only if no range violation was detected
+-    */
+-    bool next_byte_in_range(std::initializer_list<char_int_type> ranges)
+-    {
+-        JSON_ASSERT(ranges.size() == 2 || ranges.size() == 4 || ranges.size() == 6);
+-        add(current);
+-
+-        for (auto range = ranges.begin(); range != ranges.end(); ++range)
+-        {
+-            get();
+-            if (JSON_HEDLEY_LIKELY(*range <= current && current <= *(++range)))
+-            {
+-                add(current);
+-            }
+-            else
+-            {
+-                error_message = "invalid string: ill-formed UTF-8 byte";
+-                return false;
+-            }
+-        }
+-
+-        return true;
+-    }
+-
+-    /*!
+-    @brief scan a string literal
+-
+-    This function scans a string according to Sect. 7 of RFC 8259. While
+-    scanning, bytes are escaped and copied into buffer token_buffer. Then the
+-    function returns successfully, token_buffer is *not* null-terminated (as it
+-    may contain \0 bytes), and token_buffer.size() is the number of bytes in the
+-    string.
+-
+-    @return token_type::value_string if string could be successfully scanned,
+-            token_type::parse_error otherwise
+-
+-    @note In case of errors, variable error_message contains a textual
+-          description.
+-    */
+-    token_type scan_string()
+-    {
+-        // reset token_buffer (ignore opening quote)
+-        reset();
+-
+-        // we entered the function by reading an open quote
+-        JSON_ASSERT(current == '\"');
+-
+-        while (true)
+-        {
+-            // get next character
+-            switch (get())
+-            {
+-                // end of file while parsing string
+-                case std::char_traits<char_type>::eof():
+-                {
+-                    error_message = "invalid string: missing closing quote";
+-                    return token_type::parse_error;
+-                }
+-
+-                // closing quote
+-                case '\"':
+-                {
+-                    return token_type::value_string;
+-                }
+-
+-                // escapes
+-                case '\\':
+-                {
+-                    switch (get())
+-                    {
+-                        // quotation mark
+-                        case '\"':
+-                            add('\"');
+-                            break;
+-                        // reverse solidus
+-                        case '\\':
+-                            add('\\');
+-                            break;
+-                        // solidus
+-                        case '/':
+-                            add('/');
+-                            break;
+-                        // backspace
+-                        case 'b':
+-                            add('\b');
+-                            break;
+-                        // form feed
+-                        case 'f':
+-                            add('\f');
+-                            break;
+-                        // line feed
+-                        case 'n':
+-                            add('\n');
+-                            break;
+-                        // carriage return
+-                        case 'r':
+-                            add('\r');
+-                            break;
+-                        // tab
+-                        case 't':
+-                            add('\t');
+-                            break;
+-
+-                        // unicode escapes
+-                        case 'u':
+-                        {
+-                            const int codepoint1 = get_codepoint();
+-                            int codepoint = codepoint1; // start with codepoint1
+-
+-                            if (JSON_HEDLEY_UNLIKELY(codepoint1 == -1))
+-                            {
+-                                error_message = "invalid string: '\\u' must be followed by 4 hex digits";
+-                                return token_type::parse_error;
+-                            }
+-
+-                            // check if code point is a high surrogate
+-                            if (0xD800 <= codepoint1 && codepoint1 <= 0xDBFF)
+-                            {
+-                                // expect next \uxxxx entry
+-                                if (JSON_HEDLEY_LIKELY(get() == '\\' && get() == 'u'))
+-                                {
+-                                    const int codepoint2 = get_codepoint();
+-
+-                                    if (JSON_HEDLEY_UNLIKELY(codepoint2 == -1))
+-                                    {
+-                                        error_message = "invalid string: '\\u' must be followed by 4 hex digits";
+-                                        return token_type::parse_error;
+-                                    }
+-
+-                                    // check if codepoint2 is a low surrogate
+-                                    if (JSON_HEDLEY_LIKELY(0xDC00 <= codepoint2 && codepoint2 <= 0xDFFF))
+-                                    {
+-                                        // overwrite codepoint
+-                                        codepoint = static_cast<int>(
+-                                                        // high surrogate occupies the most significant 22 bits
+-                                                        (static_cast<unsigned int>(codepoint1) << 10u)
+-                                                        // low surrogate occupies the least significant 15 bits
+-                                                        + static_cast<unsigned int>(codepoint2)
+-                                                        // there is still the 0xD800, 0xDC00 and 0x10000 noise
+-                                                        // in the result, so we have to subtract with:
+-                                                        // (0xD800 << 10) + DC00 - 0x10000 = 0x35FDC00
+-                                                        - 0x35FDC00u);
+-                                    }
+-                                    else
+-                                    {
+-                                        error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
+-                                        return token_type::parse_error;
+-                                    }
+-                                }
+-                                else
+-                                {
+-                                    error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
+-                                    return token_type::parse_error;
+-                                }
+-                            }
+-                            else
+-                            {
+-                                if (JSON_HEDLEY_UNLIKELY(0xDC00 <= codepoint1 && codepoint1 <= 0xDFFF))
+-                                {
+-                                    error_message = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
+-                                    return token_type::parse_error;
+-                                }
+-                            }
+-
+-                            // result of the above calculation yields a proper codepoint
+-                            JSON_ASSERT(0x00 <= codepoint && codepoint <= 0x10FFFF);
+-
+-                            // translate codepoint into bytes
+-                            if (codepoint < 0x80)
+-                            {
+-                                // 1-byte characters: 0xxxxxxx (ASCII)
+-                                add(static_cast<char_int_type>(codepoint));
+-                            }
+-                            else if (codepoint <= 0x7FF)
+-                            {
+-                                // 2-byte characters: 110xxxxx 10xxxxxx
+-                                add(static_cast<char_int_type>(0xC0u | (static_cast<unsigned int>(codepoint) >> 6u)));
+-                                add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
+-                            }
+-                            else if (codepoint <= 0xFFFF)
+-                            {
+-                                // 3-byte characters: 1110xxxx 10xxxxxx 10xxxxxx
+-                                add(static_cast<char_int_type>(0xE0u | (static_cast<unsigned int>(codepoint) >> 12u)));
+-                                add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu)));
+-                                add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
+-                            }
+-                            else
+-                            {
+-                                // 4-byte characters: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
+-                                add(static_cast<char_int_type>(0xF0u | (static_cast<unsigned int>(codepoint) >> 18u)));
+-                                add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 12u) & 0x3Fu)));
+-                                add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu)));
+-                                add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
+-                            }
+-
+-                            break;
+-                        }
+-
+-                        // other characters after escape
+-                        default:
+-                            error_message = "invalid string: forbidden character after backslash";
+-                            return token_type::parse_error;
+-                    }
+-
+-                    break;
+-                }
+-
+-                // invalid control characters
+-                case 0x00:
+-                {
+-                    error_message = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x01:
+-                {
+-                    error_message = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x02:
+-                {
+-                    error_message = "invalid string: control character U+0002 (STX) must be escaped to \\u0002";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x03:
+-                {
+-                    error_message = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x04:
+-                {
+-                    error_message = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x05:
+-                {
+-                    error_message = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x06:
+-                {
+-                    error_message = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x07:
+-                {
+-                    error_message = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x08:
+-                {
+-                    error_message = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x09:
+-                {
+-                    error_message = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0A:
+-                {
+-                    error_message = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0B:
+-                {
+-                    error_message = "invalid string: control character U+000B (VT) must be escaped to \\u000B";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0C:
+-                {
+-                    error_message = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0D:
+-                {
+-                    error_message = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0E:
+-                {
+-                    error_message = "invalid string: control character U+000E (SO) must be escaped to \\u000E";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0F:
+-                {
+-                    error_message = "invalid string: control character U+000F (SI) must be escaped to \\u000F";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x10:
+-                {
+-                    error_message = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x11:
+-                {
+-                    error_message = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x12:
+-                {
+-                    error_message = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x13:
+-                {
+-                    error_message = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x14:
+-                {
+-                    error_message = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x15:
+-                {
+-                    error_message = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x16:
+-                {
+-                    error_message = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x17:
+-                {
+-                    error_message = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x18:
+-                {
+-                    error_message = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x19:
+-                {
+-                    error_message = "invalid string: control character U+0019 (EM) must be escaped to \\u0019";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1A:
+-                {
+-                    error_message = "invalid string: control character U+001A (SUB) must be escaped to \\u001A";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1B:
+-                {
+-                    error_message = "invalid string: control character U+001B (ESC) must be escaped to \\u001B";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1C:
+-                {
+-                    error_message = "invalid string: control character U+001C (FS) must be escaped to \\u001C";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1D:
+-                {
+-                    error_message = "invalid string: control character U+001D (GS) must be escaped to \\u001D";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1E:
+-                {
+-                    error_message = "invalid string: control character U+001E (RS) must be escaped to \\u001E";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1F:
+-                {
+-                    error_message = "invalid string: control character U+001F (US) must be escaped to \\u001F";
+-                    return token_type::parse_error;
+-                }
+-
+-                // U+0020..U+007F (except U+0022 (quote) and U+005C (backspace))
+-                case 0x20:
+-                case 0x21:
+-                case 0x23:
+-                case 0x24:
+-                case 0x25:
+-                case 0x26:
+-                case 0x27:
+-                case 0x28:
+-                case 0x29:
+-                case 0x2A:
+-                case 0x2B:
+-                case 0x2C:
+-                case 0x2D:
+-                case 0x2E:
+-                case 0x2F:
+-                case 0x30:
+-                case 0x31:
+-                case 0x32:
+-                case 0x33:
+-                case 0x34:
+-                case 0x35:
+-                case 0x36:
+-                case 0x37:
+-                case 0x38:
+-                case 0x39:
+-                case 0x3A:
+-                case 0x3B:
+-                case 0x3C:
+-                case 0x3D:
+-                case 0x3E:
+-                case 0x3F:
+-                case 0x40:
+-                case 0x41:
+-                case 0x42:
+-                case 0x43:
+-                case 0x44:
+-                case 0x45:
+-                case 0x46:
+-                case 0x47:
+-                case 0x48:
+-                case 0x49:
+-                case 0x4A:
+-                case 0x4B:
+-                case 0x4C:
+-                case 0x4D:
+-                case 0x4E:
+-                case 0x4F:
+-                case 0x50:
+-                case 0x51:
+-                case 0x52:
+-                case 0x53:
+-                case 0x54:
+-                case 0x55:
+-                case 0x56:
+-                case 0x57:
+-                case 0x58:
+-                case 0x59:
+-                case 0x5A:
+-                case 0x5B:
+-                case 0x5D:
+-                case 0x5E:
+-                case 0x5F:
+-                case 0x60:
+-                case 0x61:
+-                case 0x62:
+-                case 0x63:
+-                case 0x64:
+-                case 0x65:
+-                case 0x66:
+-                case 0x67:
+-                case 0x68:
+-                case 0x69:
+-                case 0x6A:
+-                case 0x6B:
+-                case 0x6C:
+-                case 0x6D:
+-                case 0x6E:
+-                case 0x6F:
+-                case 0x70:
+-                case 0x71:
+-                case 0x72:
+-                case 0x73:
+-                case 0x74:
+-                case 0x75:
+-                case 0x76:
+-                case 0x77:
+-                case 0x78:
+-                case 0x79:
+-                case 0x7A:
+-                case 0x7B:
+-                case 0x7C:
+-                case 0x7D:
+-                case 0x7E:
+-                case 0x7F:
+-                {
+-                    add(current);
+-                    break;
+-                }
+-
+-                // U+0080..U+07FF: bytes C2..DF 80..BF
+-                case 0xC2:
+-                case 0xC3:
+-                case 0xC4:
+-                case 0xC5:
+-                case 0xC6:
+-                case 0xC7:
+-                case 0xC8:
+-                case 0xC9:
+-                case 0xCA:
+-                case 0xCB:
+-                case 0xCC:
+-                case 0xCD:
+-                case 0xCE:
+-                case 0xCF:
+-                case 0xD0:
+-                case 0xD1:
+-                case 0xD2:
+-                case 0xD3:
+-                case 0xD4:
+-                case 0xD5:
+-                case 0xD6:
+-                case 0xD7:
+-                case 0xD8:
+-                case 0xD9:
+-                case 0xDA:
+-                case 0xDB:
+-                case 0xDC:
+-                case 0xDD:
+-                case 0xDE:
+-                case 0xDF:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!next_byte_in_range({0x80, 0xBF})))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+0800..U+0FFF: bytes E0 A0..BF 80..BF
+-                case 0xE0:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0xA0, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+1000..U+CFFF: bytes E1..EC 80..BF 80..BF
+-                // U+E000..U+FFFF: bytes EE..EF 80..BF 80..BF
+-                case 0xE1:
+-                case 0xE2:
+-                case 0xE3:
+-                case 0xE4:
+-                case 0xE5:
+-                case 0xE6:
+-                case 0xE7:
+-                case 0xE8:
+-                case 0xE9:
+-                case 0xEA:
+-                case 0xEB:
+-                case 0xEC:
+-                case 0xEE:
+-                case 0xEF:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+D000..U+D7FF: bytes ED 80..9F 80..BF
+-                case 0xED:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x9F, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+10000..U+3FFFF F0 90..BF 80..BF 80..BF
+-                case 0xF0:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x90, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+40000..U+FFFFF F1..F3 80..BF 80..BF 80..BF
+-                case 0xF1:
+-                case 0xF2:
+-                case 0xF3:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+100000..U+10FFFF F4 80..8F 80..BF 80..BF
+-                case 0xF4:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x8F, 0x80, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // remaining bytes (80..C1 and F5..FF) are ill-formed
+-                default:
+-                {
+-                    error_message = "invalid string: ill-formed UTF-8 byte";
+-                    return token_type::parse_error;
+-                }
+-            }
+-        }
+-    }
+-
+-    /*!
+-     * @brief scan a comment
+-     * @return whether comment could be scanned successfully
+-     */
+-    bool scan_comment()
+-    {
+-        switch (get())
+-        {
+-            // single-line comments skip input until a newline or EOF is read
+-            case '/':
+-            {
+-                while (true)
+-                {
+-                    switch (get())
+-                    {
+-                        case '\n':
+-                        case '\r':
+-                        case std::char_traits<char_type>::eof():
+-                        case '\0':
+-                            return true;
+-
+-                        default:
+-                            break;
+-                    }
+-                }
+-            }
+-
+-            // multi-line comments skip input until */ is read
+-            case '*':
+-            {
+-                while (true)
+-                {
+-                    switch (get())
+-                    {
+-                        case std::char_traits<char_type>::eof():
+-                        case '\0':
+-                        {
+-                            error_message = "invalid comment; missing closing '*/'";
+-                            return false;
+-                        }
+-
+-                        case '*':
+-                        {
+-                            switch (get())
+-                            {
+-                                case '/':
+-                                    return true;
+-
+-                                default:
+-                                {
+-                                    unget();
+-                                    continue;
+-                                }
+-                            }
+-                        }
+-
+-                        default:
+-                            continue;
+-                    }
+-                }
+-            }
+-
+-            // unexpected character after reading '/'
+-            default:
+-            {
+-                error_message = "invalid comment; expecting '/' or '*' after '/'";
+-                return false;
+-            }
+-        }
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    static void strtof(float& f, const char* str, char** endptr) noexcept
+-    {
+-        f = std::strtof(str, endptr);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    static void strtof(double& f, const char* str, char** endptr) noexcept
+-    {
+-        f = std::strtod(str, endptr);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    static void strtof(long double& f, const char* str, char** endptr) noexcept
+-    {
+-        f = std::strtold(str, endptr);
+-    }
+-
+-    /*!
+-    @brief scan a number literal
+-
+-    This function scans a string according to Sect. 6 of RFC 8259.
+-
+-    The function is realized with a deterministic finite state machine derived
+-    from the grammar described in RFC 8259. Starting in state "init", the
+-    input is read and used to determined the next state. Only state "done"
+-    accepts the number. State "error" is a trap state to model errors. In the
+-    table below, "anything" means any character but the ones listed before.
+-
+-    state    | 0        | 1-9      | e E      | +       | -       | .        | anything
+-    ---------|----------|----------|----------|---------|---------|----------|-----------
+-    init     | zero     | any1     | [error]  | [error] | minus   | [error]  | [error]
+-    minus    | zero     | any1     | [error]  | [error] | [error] | [error]  | [error]
+-    zero     | done     | done     | exponent | done    | done    | decimal1 | done
+-    any1     | any1     | any1     | exponent | done    | done    | decimal1 | done
+-    decimal1 | decimal2 | decimal2 | [error]  | [error] | [error] | [error]  | [error]
+-    decimal2 | decimal2 | decimal2 | exponent | done    | done    | done     | done
+-    exponent | any2     | any2     | [error]  | sign    | sign    | [error]  | [error]
+-    sign     | any2     | any2     | [error]  | [error] | [error] | [error]  | [error]
+-    any2     | any2     | any2     | done     | done    | done    | done     | done
+-
+-    The state machine is realized with one label per state (prefixed with
+-    "scan_number_") and `goto` statements between them. The state machine
+-    contains cycles, but any cycle can be left when EOF is read. Therefore,
+-    the function is guaranteed to terminate.
+-
+-    During scanning, the read bytes are stored in token_buffer. This string is
+-    then converted to a signed integer, an unsigned integer, or a
+-    floating-point number.
+-
+-    @return token_type::value_unsigned, token_type::value_integer, or
+-            token_type::value_float if number could be successfully scanned,
+-            token_type::parse_error otherwise
+-
+-    @note The scanner is independent of the current locale. Internally, the
+-          locale's decimal point is used instead of `.` to work with the
+-          locale-dependent converters.
+-    */
+-    token_type scan_number()  // lgtm [cpp/use-of-goto]
+-    {
+-        // reset token_buffer to store the number's bytes
+-        reset();
+-
+-        // the type of the parsed number; initially set to unsigned; will be
+-        // changed if minus sign, decimal point or exponent is read
+-        token_type number_type = token_type::value_unsigned;
+-
+-        // state (init): we just found out we need to scan a number
+-        switch (current)
+-        {
+-            case '-':
+-            {
+-                add(current);
+-                goto scan_number_minus;
+-            }
+-
+-            case '0':
+-            {
+-                add(current);
+-                goto scan_number_zero;
+-            }
+-
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any1;
+-            }
+-
+-            // all other characters are rejected outside scan_number()
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-
+-scan_number_minus:
+-        // state: we just parsed a leading minus sign
+-        number_type = token_type::value_integer;
+-        switch (get())
+-        {
+-            case '0':
+-            {
+-                add(current);
+-                goto scan_number_zero;
+-            }
+-
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any1;
+-            }
+-
+-            default:
+-            {
+-                error_message = "invalid number; expected digit after '-'";
+-                return token_type::parse_error;
+-            }
+-        }
+-
+-scan_number_zero:
+-        // state: we just parse a zero (maybe with a leading minus sign)
+-        switch (get())
+-        {
+-            case '.':
+-            {
+-                add(decimal_point_char);
+-                goto scan_number_decimal1;
+-            }
+-
+-            case 'e':
+-            case 'E':
+-            {
+-                add(current);
+-                goto scan_number_exponent;
+-            }
+-
+-            default:
+-                goto scan_number_done;
+-        }
+-
+-scan_number_any1:
+-        // state: we just parsed a number 0-9 (maybe with a leading minus sign)
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any1;
+-            }
+-
+-            case '.':
+-            {
+-                add(decimal_point_char);
+-                goto scan_number_decimal1;
+-            }
+-
+-            case 'e':
+-            case 'E':
+-            {
+-                add(current);
+-                goto scan_number_exponent;
+-            }
+-
+-            default:
+-                goto scan_number_done;
+-        }
+-
+-scan_number_decimal1:
+-        // state: we just parsed a decimal point
+-        number_type = token_type::value_float;
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_decimal2;
+-            }
+-
+-            default:
+-            {
+-                error_message = "invalid number; expected digit after '.'";
+-                return token_type::parse_error;
+-            }
+-        }
+-
+-scan_number_decimal2:
+-        // we just parsed at least one number after a decimal point
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_decimal2;
+-            }
+-
+-            case 'e':
+-            case 'E':
+-            {
+-                add(current);
+-                goto scan_number_exponent;
+-            }
+-
+-            default:
+-                goto scan_number_done;
+-        }
+-
+-scan_number_exponent:
+-        // we just parsed an exponent
+-        number_type = token_type::value_float;
+-        switch (get())
+-        {
+-            case '+':
+-            case '-':
+-            {
+-                add(current);
+-                goto scan_number_sign;
+-            }
+-
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any2;
+-            }
+-
+-            default:
+-            {
+-                error_message =
+-                    "invalid number; expected '+', '-', or digit after exponent";
+-                return token_type::parse_error;
+-            }
+-        }
+-
+-scan_number_sign:
+-        // we just parsed an exponent sign
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any2;
+-            }
+-
+-            default:
+-            {
+-                error_message = "invalid number; expected digit after exponent sign";
+-                return token_type::parse_error;
+-            }
+-        }
+-
+-scan_number_any2:
+-        // we just parsed a number after the exponent or exponent sign
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any2;
+-            }
+-
+-            default:
+-                goto scan_number_done;
+-        }
+-
+-scan_number_done:
+-        // unget the character after the number (we only read it to know that
+-        // we are done scanning a number)
+-        unget();
+-
+-        char* endptr = nullptr; // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-        errno = 0;
+-
+-        // try to parse integers first and fall back to floats
+-        if (number_type == token_type::value_unsigned)
+-        {
+-            const auto x = std::strtoull(token_buffer.data(), &endptr, 10);
+-
+-            // we checked the number format before
+-            JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
+-
+-            if (errno == 0)
+-            {
+-                value_unsigned = static_cast<number_unsigned_t>(x);
+-                if (value_unsigned == x)
+-                {
+-                    return token_type::value_unsigned;
+-                }
+-            }
+-        }
+-        else if (number_type == token_type::value_integer)
+-        {
+-            const auto x = std::strtoll(token_buffer.data(), &endptr, 10);
+-
+-            // we checked the number format before
+-            JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
+-
+-            if (errno == 0)
+-            {
+-                value_integer = static_cast<number_integer_t>(x);
+-                if (value_integer == x)
+-                {
+-                    return token_type::value_integer;
+-                }
+-            }
+-        }
+-
+-        // this code is reached if we parse a floating-point number or if an
+-        // integer conversion above failed
+-        strtof(value_float, token_buffer.data(), &endptr);
+-
+-        // we checked the number format before
+-        JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
+-
+-        return token_type::value_float;
+-    }
+-
+-    /*!
+-    @param[in] literal_text  the literal text to expect
+-    @param[in] length        the length of the passed literal text
+-    @param[in] return_type   the token type to return on success
+-    */
+-    JSON_HEDLEY_NON_NULL(2)
+-    token_type scan_literal(const char_type* literal_text, const std::size_t length,
+-                            token_type return_type)
+-    {
+-        JSON_ASSERT(std::char_traits<char_type>::to_char_type(current) == literal_text[0]);
+-        for (std::size_t i = 1; i < length; ++i)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(std::char_traits<char_type>::to_char_type(get()) != literal_text[i]))
+-            {
+-                error_message = "invalid literal";
+-                return token_type::parse_error;
+-            }
+-        }
+-        return return_type;
+-    }
+-
+-    /////////////////////
+-    // input management
+-    /////////////////////
+-
+-    /// reset token_buffer; current character is beginning of token
+-    void reset() noexcept
+-    {
+-        token_buffer.clear();
+-        token_string.clear();
+-        token_string.push_back(std::char_traits<char_type>::to_char_type(current));
+-    }
+-
+-    /*
+-    @brief get next character from the input
+-
+-    This function provides the interface to the used input adapter. It does
+-    not throw in case the input reached EOF, but returns a
+-    `std::char_traits<char>::eof()` in that case.  Stores the scanned characters
+-    for use in error messages.
+-
+-    @return character read from the input
+-    */
+-    char_int_type get()
+-    {
+-        ++position.chars_read_total;
+-        ++position.chars_read_current_line;
+-
+-        if (next_unget)
+-        {
+-            // just reset the next_unget variable and work with current
+-            next_unget = false;
+-        }
+-        else
+-        {
+-            current = ia.get_character();
+-        }
+-
+-        if (JSON_HEDLEY_LIKELY(current != std::char_traits<char_type>::eof()))
+-        {
+-            token_string.push_back(std::char_traits<char_type>::to_char_type(current));
+-        }
+-
+-        if (current == '\n')
+-        {
+-            ++position.lines_read;
+-            position.chars_read_current_line = 0;
+-        }
+-
+-        return current;
+-    }
+-
+-    /*!
+-    @brief unget current character (read it again on next get)
+-
+-    We implement unget by setting variable next_unget to true. The input is not
+-    changed - we just simulate ungetting by modifying chars_read_total,
+-    chars_read_current_line, and token_string. The next call to get() will
+-    behave as if the unget character is read again.
+-    */
+-    void unget()
+-    {
+-        next_unget = true;
+-
+-        --position.chars_read_total;
+-
+-        // in case we "unget" a newline, we have to also decrement the lines_read
+-        if (position.chars_read_current_line == 0)
+-        {
+-            if (position.lines_read > 0)
+-            {
+-                --position.lines_read;
+-            }
+-        }
+-        else
+-        {
+-            --position.chars_read_current_line;
+-        }
+-
+-        if (JSON_HEDLEY_LIKELY(current != std::char_traits<char_type>::eof()))
+-        {
+-            JSON_ASSERT(!token_string.empty());
+-            token_string.pop_back();
+-        }
+-    }
+-
+-    /// add a character to token_buffer
+-    void add(char_int_type c)
+-    {
+-        token_buffer.push_back(static_cast<typename string_t::value_type>(c));
+-    }
+-
+-  public:
+-    /////////////////////
+-    // value getters
+-    /////////////////////
+-
+-    /// return integer value
+-    constexpr number_integer_t get_number_integer() const noexcept
+-    {
+-        return value_integer;
+-    }
+-
+-    /// return unsigned integer value
+-    constexpr number_unsigned_t get_number_unsigned() const noexcept
+-    {
+-        return value_unsigned;
+-    }
+-
+-    /// return floating-point value
+-    constexpr number_float_t get_number_float() const noexcept
+-    {
+-        return value_float;
+-    }
+-
+-    /// return current string value (implicitly resets the token; useful only once)
+-    string_t& get_string()
+-    {
+-        return token_buffer;
+-    }
+-
+-    /////////////////////
+-    // diagnostics
+-    /////////////////////
+-
+-    /// return position of last read token
+-    constexpr position_t get_position() const noexcept
+-    {
+-        return position;
+-    }
+-
+-    /// return the last read token (for errors only).  Will never contain EOF
+-    /// (an arbitrary value that is not a valid char value, often -1), because
+-    /// 255 may legitimately occur.  May contain NUL, which should be escaped.
+-    std::string get_token_string() const
+-    {
+-        // escape control characters
+-        std::string result;
+-        for (const auto c : token_string)
+-        {
+-            if (static_cast<unsigned char>(c) <= '\x1F')
+-            {
+-                // escape control characters
+-                std::array<char, 9> cs{{}};
+-                static_cast<void>((std::snprintf)(cs.data(), cs.size(), "<U+%.4X>", static_cast<unsigned char>(c))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-                result += cs.data();
+-            }
+-            else
+-            {
+-                // add character as is
+-                result.push_back(static_cast<std::string::value_type>(c));
+-            }
+-        }
+-
+-        return result;
+-    }
+-
+-    /// return syntax error message
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    constexpr const char* get_error_message() const noexcept
+-    {
+-        return error_message;
+-    }
+-
+-    /////////////////////
+-    // actual scanner
+-    /////////////////////
+-
+-    /*!
+-    @brief skip the UTF-8 byte order mark
+-    @return true iff there is no BOM or the correct BOM has been skipped
+-    */
+-    bool skip_bom()
+-    {
+-        if (get() == 0xEF)
+-        {
+-            // check if we completely parse the BOM
+-            return get() == 0xBB && get() == 0xBF;
+-        }
+-
+-        // the first character is not the beginning of the BOM; unget it to
+-        // process is later
+-        unget();
+-        return true;
+-    }
+-
+-    void skip_whitespace()
+-    {
+-        do
+-        {
+-            get();
+-        }
+-        while (current == ' ' || current == '\t' || current == '\n' || current == '\r');
+-    }
+-
+-    token_type scan()
+-    {
+-        // initially, skip the BOM
+-        if (position.chars_read_total == 0 && !skip_bom())
+-        {
+-            error_message = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
+-            return token_type::parse_error;
+-        }
+-
+-        // read next character and ignore whitespace
+-        skip_whitespace();
+-
+-        // ignore comments
+-        while (ignore_comments && current == '/')
+-        {
+-            if (!scan_comment())
+-            {
+-                return token_type::parse_error;
+-            }
+-
+-            // skip following whitespace
+-            skip_whitespace();
+-        }
+-
+-        switch (current)
+-        {
+-            // structural characters
+-            case '[':
+-                return token_type::begin_array;
+-            case ']':
+-                return token_type::end_array;
+-            case '{':
+-                return token_type::begin_object;
+-            case '}':
+-                return token_type::end_object;
+-            case ':':
+-                return token_type::name_separator;
+-            case ',':
+-                return token_type::value_separator;
+-
+-            // literals
+-            case 't':
+-            {
+-                std::array<char_type, 4> true_literal = {{static_cast<char_type>('t'), static_cast<char_type>('r'), static_cast<char_type>('u'), static_cast<char_type>('e')}};
+-                return scan_literal(true_literal.data(), true_literal.size(), token_type::literal_true);
+-            }
+-            case 'f':
+-            {
+-                std::array<char_type, 5> false_literal = {{static_cast<char_type>('f'), static_cast<char_type>('a'), static_cast<char_type>('l'), static_cast<char_type>('s'), static_cast<char_type>('e')}};
+-                return scan_literal(false_literal.data(), false_literal.size(), token_type::literal_false);
+-            }
+-            case 'n':
+-            {
+-                std::array<char_type, 4> null_literal = {{static_cast<char_type>('n'), static_cast<char_type>('u'), static_cast<char_type>('l'), static_cast<char_type>('l')}};
+-                return scan_literal(null_literal.data(), null_literal.size(), token_type::literal_null);
+-            }
+-
+-            // string
+-            case '\"':
+-                return scan_string();
+-
+-            // number
+-            case '-':
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-                return scan_number();
+-
+-            // end of input (the null byte is needed when parsing from
+-            // string literals)
+-            case '\0':
+-            case std::char_traits<char_type>::eof():
+-                return token_type::end_of_input;
+-
+-            // error
+-            default:
+-                error_message = "invalid literal";
+-                return token_type::parse_error;
+-        }
+-    }
+-
+-  private:
+-    /// input adapter
+-    InputAdapterType ia;
+-
+-    /// whether comments should be ignored (true) or signaled as errors (false)
+-    const bool ignore_comments = false;
+-
+-    /// the current character
+-    char_int_type current = std::char_traits<char_type>::eof();
+-
+-    /// whether the next get() call should just return current
+-    bool next_unget = false;
+-
+-    /// the start position of the current token
+-    position_t position {};
+-
+-    /// raw input token string (for error messages)
+-    std::vector<char_type> token_string {};
+-
+-    /// buffer for variable-length tokens (numbers, strings)
+-    string_t token_buffer {};
+-
+-    /// a description of occurred lexer errors
+-    const char* error_message = "";
+-
+-    // number values
+-    number_integer_t value_integer = 0;
+-    number_unsigned_t value_unsigned = 0;
+-    number_float_t value_float = 0;
+-
+-    /// the decimal point
+-    const char_int_type decimal_point_char = '.';
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/is_sax.hpp>
+-
+-
+-#include <cstdint> // size_t
+-#include <utility> // declval
+-#include <string> // string
+-
+-// #include <nlohmann/detail/meta/detected.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename T>
+-using null_function_t = decltype(std::declval<T&>().null());
+-
+-template<typename T>
+-using boolean_function_t =
+-    decltype(std::declval<T&>().boolean(std::declval<bool>()));
+-
+-template<typename T, typename Integer>
+-using number_integer_function_t =
+-    decltype(std::declval<T&>().number_integer(std::declval<Integer>()));
+-
+-template<typename T, typename Unsigned>
+-using number_unsigned_function_t =
+-    decltype(std::declval<T&>().number_unsigned(std::declval<Unsigned>()));
+-
+-template<typename T, typename Float, typename String>
+-using number_float_function_t = decltype(std::declval<T&>().number_float(
+-                                    std::declval<Float>(), std::declval<const String&>()));
+-
+-template<typename T, typename String>
+-using string_function_t =
+-    decltype(std::declval<T&>().string(std::declval<String&>()));
+-
+-template<typename T, typename Binary>
+-using binary_function_t =
+-    decltype(std::declval<T&>().binary(std::declval<Binary&>()));
+-
+-template<typename T>
+-using start_object_function_t =
+-    decltype(std::declval<T&>().start_object(std::declval<std::size_t>()));
+-
+-template<typename T, typename String>
+-using key_function_t =
+-    decltype(std::declval<T&>().key(std::declval<String&>()));
+-
+-template<typename T>
+-using end_object_function_t = decltype(std::declval<T&>().end_object());
+-
+-template<typename T>
+-using start_array_function_t =
+-    decltype(std::declval<T&>().start_array(std::declval<std::size_t>()));
+-
+-template<typename T>
+-using end_array_function_t = decltype(std::declval<T&>().end_array());
+-
+-template<typename T, typename Exception>
+-using parse_error_function_t = decltype(std::declval<T&>().parse_error(
+-        std::declval<std::size_t>(), std::declval<const std::string&>(),
+-        std::declval<const Exception&>()));
+-
+-template<typename SAX, typename BasicJsonType>
+-struct is_sax
+-{
+-  private:
+-    static_assert(is_basic_json<BasicJsonType>::value,
+-                  "BasicJsonType must be of type basic_json<...>");
+-
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using exception_t = typename BasicJsonType::exception;
+-
+-  public:
+-    static constexpr bool value =
+-        is_detected_exact<bool, null_function_t, SAX>::value &&
+-        is_detected_exact<bool, boolean_function_t, SAX>::value &&
+-        is_detected_exact<bool, number_integer_function_t, SAX, number_integer_t>::value &&
+-        is_detected_exact<bool, number_unsigned_function_t, SAX, number_unsigned_t>::value &&
+-        is_detected_exact<bool, number_float_function_t, SAX, number_float_t, string_t>::value &&
+-        is_detected_exact<bool, string_function_t, SAX, string_t>::value &&
+-        is_detected_exact<bool, binary_function_t, SAX, binary_t>::value &&
+-        is_detected_exact<bool, start_object_function_t, SAX>::value &&
+-        is_detected_exact<bool, key_function_t, SAX, string_t>::value &&
+-        is_detected_exact<bool, end_object_function_t, SAX>::value &&
+-        is_detected_exact<bool, start_array_function_t, SAX>::value &&
+-        is_detected_exact<bool, end_array_function_t, SAX>::value &&
+-        is_detected_exact<bool, parse_error_function_t, SAX, exception_t>::value;
+-};
+-
+-template<typename SAX, typename BasicJsonType>
+-struct is_sax_static_asserts
+-{
+-  private:
+-    static_assert(is_basic_json<BasicJsonType>::value,
+-                  "BasicJsonType must be of type basic_json<...>");
+-
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using exception_t = typename BasicJsonType::exception;
+-
+-  public:
+-    static_assert(is_detected_exact<bool, null_function_t, SAX>::value,
+-                  "Missing/invalid function: bool null()");
+-    static_assert(is_detected_exact<bool, boolean_function_t, SAX>::value,
+-                  "Missing/invalid function: bool boolean(bool)");
+-    static_assert(is_detected_exact<bool, boolean_function_t, SAX>::value,
+-                  "Missing/invalid function: bool boolean(bool)");
+-    static_assert(
+-        is_detected_exact<bool, number_integer_function_t, SAX,
+-        number_integer_t>::value,
+-        "Missing/invalid function: bool number_integer(number_integer_t)");
+-    static_assert(
+-        is_detected_exact<bool, number_unsigned_function_t, SAX,
+-        number_unsigned_t>::value,
+-        "Missing/invalid function: bool number_unsigned(number_unsigned_t)");
+-    static_assert(is_detected_exact<bool, number_float_function_t, SAX,
+-                  number_float_t, string_t>::value,
+-                  "Missing/invalid function: bool number_float(number_float_t, const string_t&)");
+-    static_assert(
+-        is_detected_exact<bool, string_function_t, SAX, string_t>::value,
+-        "Missing/invalid function: bool string(string_t&)");
+-    static_assert(
+-        is_detected_exact<bool, binary_function_t, SAX, binary_t>::value,
+-        "Missing/invalid function: bool binary(binary_t&)");
+-    static_assert(is_detected_exact<bool, start_object_function_t, SAX>::value,
+-                  "Missing/invalid function: bool start_object(std::size_t)");
+-    static_assert(is_detected_exact<bool, key_function_t, SAX, string_t>::value,
+-                  "Missing/invalid function: bool key(string_t&)");
+-    static_assert(is_detected_exact<bool, end_object_function_t, SAX>::value,
+-                  "Missing/invalid function: bool end_object()");
+-    static_assert(is_detected_exact<bool, start_array_function_t, SAX>::value,
+-                  "Missing/invalid function: bool start_array(std::size_t)");
+-    static_assert(is_detected_exact<bool, end_array_function_t, SAX>::value,
+-                  "Missing/invalid function: bool end_array()");
+-    static_assert(
+-        is_detected_exact<bool, parse_error_function_t, SAX, exception_t>::value,
+-        "Missing/invalid function: bool parse_error(std::size_t, const "
+-        "std::string&, const exception&)");
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-/// how to treat CBOR tags
+-enum class cbor_tag_handler_t
+-{
+-    error,   ///< throw a parse_error exception in case of a tag
+-    ignore,  ///< ignore tags
+-    store    ///< store tags as binary type
+-};
+-
+-/*!
+-@brief determine system byte order
+-
+-@return true if and only if system's byte order is little endian
+-
+-@note from https://stackoverflow.com/a/1001328/266378
+-*/
+-static inline bool little_endianness(int num = 1) noexcept
+-{
+-    return *reinterpret_cast<char*>(&num) == 1;
+-}
+-
+-
+-///////////////////
+-// binary reader //
+-///////////////////
+-
+-/*!
+-@brief deserialization of CBOR, MessagePack, and UBJSON values
+-*/
+-template<typename BasicJsonType, typename InputAdapterType, typename SAX = json_sax_dom_parser<BasicJsonType>>
+-class binary_reader
+-{
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using json_sax_t = SAX;
+-    using char_type = typename InputAdapterType::char_type;
+-    using char_int_type = typename std::char_traits<char_type>::int_type;
+-
+-  public:
+-    /*!
+-    @brief create a binary reader
+-
+-    @param[in] adapter  input adapter to read from
+-    */
+-    explicit binary_reader(InputAdapterType&& adapter) noexcept : ia(std::move(adapter))
+-    {
+-        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
+-    }
+-
+-    // make class move-only
+-    binary_reader(const binary_reader&) = delete;
+-    binary_reader(binary_reader&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    binary_reader& operator=(const binary_reader&) = delete;
+-    binary_reader& operator=(binary_reader&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    ~binary_reader() = default;
+-
+-    /*!
+-    @param[in] format  the binary format to parse
+-    @param[in] sax_    a SAX event processor
+-    @param[in] strict  whether to expect the input to be consumed completed
+-    @param[in] tag_handler  how to treat CBOR tags
+-
+-    @return whether parsing was successful
+-    */
+-    JSON_HEDLEY_NON_NULL(3)
+-    bool sax_parse(const input_format_t format,
+-                   json_sax_t* sax_,
+-                   const bool strict = true,
+-                   const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        sax = sax_;
+-        bool result = false;
+-
+-        switch (format)
+-        {
+-            case input_format_t::bson:
+-                result = parse_bson_internal();
+-                break;
+-
+-            case input_format_t::cbor:
+-                result = parse_cbor_internal(true, tag_handler);
+-                break;
+-
+-            case input_format_t::msgpack:
+-                result = parse_msgpack_internal();
+-                break;
+-
+-            case input_format_t::ubjson:
+-                result = parse_ubjson_internal();
+-                break;
+-
+-            case input_format_t::json: // LCOV_EXCL_LINE
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-
+-        // strict mode: next byte must be EOF
+-        if (result && strict)
+-        {
+-            if (format == input_format_t::ubjson)
+-            {
+-                get_ignore_noop();
+-            }
+-            else
+-            {
+-                get();
+-            }
+-
+-            if (JSON_HEDLEY_UNLIKELY(current != std::char_traits<char_type>::eof()))
+-            {
+-                return sax->parse_error(chars_read, get_token_string(),
+-                                        parse_error::create(110, chars_read, exception_message(format, "expected end of input; last byte: 0x" + get_token_string(), "value"), BasicJsonType()));
+-            }
+-        }
+-
+-        return result;
+-    }
+-
+-  private:
+-    //////////
+-    // BSON //
+-    //////////
+-
+-    /*!
+-    @brief Reads in a BSON-object and passes it to the SAX-parser.
+-    @return whether a valid BSON-value was passed to the SAX parser
+-    */
+-    bool parse_bson_internal()
+-    {
+-        std::int32_t document_size{};
+-        get_number<std::int32_t, true>(input_format_t::bson, document_size);
+-
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_object(static_cast<std::size_t>(-1))))
+-        {
+-            return false;
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_list(/*is_array*/false)))
+-        {
+-            return false;
+-        }
+-
+-        return sax->end_object();
+-    }
+-
+-    /*!
+-    @brief Parses a C-style string from the BSON input.
+-    @param[in,out] result  A reference to the string variable where the read
+-                            string is to be stored.
+-    @return `true` if the \x00-byte indicating the end of the string was
+-             encountered before the EOF; false` indicates an unexpected EOF.
+-    */
+-    bool get_bson_cstr(string_t& result)
+-    {
+-        auto out = std::back_inserter(result);
+-        while (true)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::bson, "cstring")))
+-            {
+-                return false;
+-            }
+-            if (current == 0x00)
+-            {
+-                return true;
+-            }
+-            *out++ = static_cast<typename string_t::value_type>(current);
+-        }
+-    }
+-
+-    /*!
+-    @brief Parses a zero-terminated string of length @a len from the BSON
+-           input.
+-    @param[in] len  The length (including the zero-byte at the end) of the
+-                    string to be read.
+-    @param[in,out] result  A reference to the string variable where the read
+-                            string is to be stored.
+-    @tparam NumberType The type of the length @a len
+-    @pre len >= 1
+-    @return `true` if the string was successfully parsed
+-    */
+-    template<typename NumberType>
+-    bool get_bson_string(const NumberType len, string_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(len < 1))
+-        {
+-            auto last_token = get_token_string();
+-            return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::bson, "string length must be at least 1, is " + std::to_string(len), "string"), BasicJsonType()));
+-        }
+-
+-        return get_string(input_format_t::bson, len - static_cast<NumberType>(1), result) && get() != std::char_traits<char_type>::eof();
+-    }
+-
+-    /*!
+-    @brief Parses a byte array input of length @a len from the BSON input.
+-    @param[in] len  The length of the byte array to be read.
+-    @param[in,out] result  A reference to the binary variable where the read
+-                            array is to be stored.
+-    @tparam NumberType The type of the length @a len
+-    @pre len >= 0
+-    @return `true` if the byte array was successfully parsed
+-    */
+-    template<typename NumberType>
+-    bool get_bson_binary(const NumberType len, binary_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(len < 0))
+-        {
+-            auto last_token = get_token_string();
+-            return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::bson, "byte array length cannot be negative, is " + std::to_string(len), "binary"), BasicJsonType()));
+-        }
+-
+-        // All BSON binary values have a subtype
+-        std::uint8_t subtype{};
+-        get_number<std::uint8_t>(input_format_t::bson, subtype);
+-        result.set_subtype(subtype);
+-
+-        return get_binary(input_format_t::bson, len, result);
+-    }
+-
+-    /*!
+-    @brief Read a BSON document element of the given @a element_type.
+-    @param[in] element_type The BSON element type, c.f. http://bsonspec.org/spec.html
+-    @param[in] element_type_parse_position The position in the input stream,
+-               where the `element_type` was read.
+-    @warning Not all BSON element types are supported yet. An unsupported
+-             @a element_type will give rise to a parse_error.114:
+-             Unsupported BSON record type 0x...
+-    @return whether a valid BSON-object/array was passed to the SAX parser
+-    */
+-    bool parse_bson_element_internal(const char_int_type element_type,
+-                                     const std::size_t element_type_parse_position)
+-    {
+-        switch (element_type)
+-        {
+-            case 0x01: // double
+-            {
+-                double number{};
+-                return get_number<double, true>(input_format_t::bson, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 0x02: // string
+-            {
+-                std::int32_t len{};
+-                string_t value;
+-                return get_number<std::int32_t, true>(input_format_t::bson, len) && get_bson_string(len, value) && sax->string(value);
+-            }
+-
+-            case 0x03: // object
+-            {
+-                return parse_bson_internal();
+-            }
+-
+-            case 0x04: // array
+-            {
+-                return parse_bson_array();
+-            }
+-
+-            case 0x05: // binary
+-            {
+-                std::int32_t len{};
+-                binary_t value;
+-                return get_number<std::int32_t, true>(input_format_t::bson, len) && get_bson_binary(len, value) && sax->binary(value);
+-            }
+-
+-            case 0x08: // boolean
+-            {
+-                return sax->boolean(get() != 0);
+-            }
+-
+-            case 0x0A: // null
+-            {
+-                return sax->null();
+-            }
+-
+-            case 0x10: // int32
+-            {
+-                std::int32_t value{};
+-                return get_number<std::int32_t, true>(input_format_t::bson, value) && sax->number_integer(value);
+-            }
+-
+-            case 0x12: // int64
+-            {
+-                std::int64_t value{};
+-                return get_number<std::int64_t, true>(input_format_t::bson, value) && sax->number_integer(value);
+-            }
+-
+-            default: // anything else not supported (yet)
+-            {
+-                std::array<char, 3> cr{{}};
+-                static_cast<void>((std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(element_type))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-                return sax->parse_error(element_type_parse_position, std::string(cr.data()), parse_error::create(114, element_type_parse_position, "Unsupported BSON record type 0x" + std::string(cr.data()), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief Read a BSON element list (as specified in the BSON-spec)
+-
+-    The same binary layout is used for objects and arrays, hence it must be
+-    indicated with the argument @a is_array which one is expected
+-    (true --> array, false --> object).
+-
+-    @param[in] is_array Determines if the element list being read is to be
+-                        treated as an object (@a is_array == false), or as an
+-                        array (@a is_array == true).
+-    @return whether a valid BSON-object/array was passed to the SAX parser
+-    */
+-    bool parse_bson_element_list(const bool is_array)
+-    {
+-        string_t key;
+-
+-        while (auto element_type = get())
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::bson, "element list")))
+-            {
+-                return false;
+-            }
+-
+-            const std::size_t element_type_parse_position = chars_read;
+-            if (JSON_HEDLEY_UNLIKELY(!get_bson_cstr(key)))
+-            {
+-                return false;
+-            }
+-
+-            if (!is_array && !sax->key(key))
+-            {
+-                return false;
+-            }
+-
+-            if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_internal(element_type, element_type_parse_position)))
+-            {
+-                return false;
+-            }
+-
+-            // get_bson_cstr only appends
+-            key.clear();
+-        }
+-
+-        return true;
+-    }
+-
+-    /*!
+-    @brief Reads an array from the BSON input and passes it to the SAX-parser.
+-    @return whether a valid BSON-array was passed to the SAX parser
+-    */
+-    bool parse_bson_array()
+-    {
+-        std::int32_t document_size{};
+-        get_number<std::int32_t, true>(input_format_t::bson, document_size);
+-
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_array(static_cast<std::size_t>(-1))))
+-        {
+-            return false;
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_list(/*is_array*/true)))
+-        {
+-            return false;
+-        }
+-
+-        return sax->end_array();
+-    }
+-
+-    //////////
+-    // CBOR //
+-    //////////
+-
+-    /*!
+-    @param[in] get_char  whether a new character should be retrieved from the
+-                         input (true) or whether the last read character should
+-                         be considered instead (false)
+-    @param[in] tag_handler how CBOR tags should be treated
+-
+-    @return whether a valid CBOR value was passed to the SAX parser
+-    */
+-    bool parse_cbor_internal(const bool get_char,
+-                             const cbor_tag_handler_t tag_handler)
+-    {
+-        switch (get_char ? get() : current)
+-        {
+-            // EOF
+-            case std::char_traits<char_type>::eof():
+-                return unexpect_eof(input_format_t::cbor, "value");
+-
+-            // Integer 0x00..0x17 (0..23)
+-            case 0x00:
+-            case 0x01:
+-            case 0x02:
+-            case 0x03:
+-            case 0x04:
+-            case 0x05:
+-            case 0x06:
+-            case 0x07:
+-            case 0x08:
+-            case 0x09:
+-            case 0x0A:
+-            case 0x0B:
+-            case 0x0C:
+-            case 0x0D:
+-            case 0x0E:
+-            case 0x0F:
+-            case 0x10:
+-            case 0x11:
+-            case 0x12:
+-            case 0x13:
+-            case 0x14:
+-            case 0x15:
+-            case 0x16:
+-            case 0x17:
+-                return sax->number_unsigned(static_cast<number_unsigned_t>(current));
+-
+-            case 0x18: // Unsigned integer (one-byte uint8_t follows)
+-            {
+-                std::uint8_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0x19: // Unsigned integer (two-byte uint16_t follows)
+-            {
+-                std::uint16_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0x1A: // Unsigned integer (four-byte uint32_t follows)
+-            {
+-                std::uint32_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0x1B: // Unsigned integer (eight-byte uint64_t follows)
+-            {
+-                std::uint64_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_unsigned(number);
+-            }
+-
+-            // Negative integer -1-0x00..-1-0x17 (-1..-24)
+-            case 0x20:
+-            case 0x21:
+-            case 0x22:
+-            case 0x23:
+-            case 0x24:
+-            case 0x25:
+-            case 0x26:
+-            case 0x27:
+-            case 0x28:
+-            case 0x29:
+-            case 0x2A:
+-            case 0x2B:
+-            case 0x2C:
+-            case 0x2D:
+-            case 0x2E:
+-            case 0x2F:
+-            case 0x30:
+-            case 0x31:
+-            case 0x32:
+-            case 0x33:
+-            case 0x34:
+-            case 0x35:
+-            case 0x36:
+-            case 0x37:
+-                return sax->number_integer(static_cast<std::int8_t>(0x20 - 1 - current));
+-
+-            case 0x38: // Negative integer (one-byte uint8_t follows)
+-            {
+-                std::uint8_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1) - number);
+-            }
+-
+-            case 0x39: // Negative integer -1-n (two-byte uint16_t follows)
+-            {
+-                std::uint16_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1) - number);
+-            }
+-
+-            case 0x3A: // Negative integer -1-n (four-byte uint32_t follows)
+-            {
+-                std::uint32_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1) - number);
+-            }
+-
+-            case 0x3B: // Negative integer -1-n (eight-byte uint64_t follows)
+-            {
+-                std::uint64_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1)
+-                        - static_cast<number_integer_t>(number));
+-            }
+-
+-            // Binary data (0x00..0x17 bytes follow)
+-            case 0x40:
+-            case 0x41:
+-            case 0x42:
+-            case 0x43:
+-            case 0x44:
+-            case 0x45:
+-            case 0x46:
+-            case 0x47:
+-            case 0x48:
+-            case 0x49:
+-            case 0x4A:
+-            case 0x4B:
+-            case 0x4C:
+-            case 0x4D:
+-            case 0x4E:
+-            case 0x4F:
+-            case 0x50:
+-            case 0x51:
+-            case 0x52:
+-            case 0x53:
+-            case 0x54:
+-            case 0x55:
+-            case 0x56:
+-            case 0x57:
+-            case 0x58: // Binary data (one-byte uint8_t for n follows)
+-            case 0x59: // Binary data (two-byte uint16_t for n follow)
+-            case 0x5A: // Binary data (four-byte uint32_t for n follow)
+-            case 0x5B: // Binary data (eight-byte uint64_t for n follow)
+-            case 0x5F: // Binary data (indefinite length)
+-            {
+-                binary_t b;
+-                return get_cbor_binary(b) && sax->binary(b);
+-            }
+-
+-            // UTF-8 string (0x00..0x17 bytes follow)
+-            case 0x60:
+-            case 0x61:
+-            case 0x62:
+-            case 0x63:
+-            case 0x64:
+-            case 0x65:
+-            case 0x66:
+-            case 0x67:
+-            case 0x68:
+-            case 0x69:
+-            case 0x6A:
+-            case 0x6B:
+-            case 0x6C:
+-            case 0x6D:
+-            case 0x6E:
+-            case 0x6F:
+-            case 0x70:
+-            case 0x71:
+-            case 0x72:
+-            case 0x73:
+-            case 0x74:
+-            case 0x75:
+-            case 0x76:
+-            case 0x77:
+-            case 0x78: // UTF-8 string (one-byte uint8_t for n follows)
+-            case 0x79: // UTF-8 string (two-byte uint16_t for n follow)
+-            case 0x7A: // UTF-8 string (four-byte uint32_t for n follow)
+-            case 0x7B: // UTF-8 string (eight-byte uint64_t for n follow)
+-            case 0x7F: // UTF-8 string (indefinite length)
+-            {
+-                string_t s;
+-                return get_cbor_string(s) && sax->string(s);
+-            }
+-
+-            // array (0x00..0x17 data items follow)
+-            case 0x80:
+-            case 0x81:
+-            case 0x82:
+-            case 0x83:
+-            case 0x84:
+-            case 0x85:
+-            case 0x86:
+-            case 0x87:
+-            case 0x88:
+-            case 0x89:
+-            case 0x8A:
+-            case 0x8B:
+-            case 0x8C:
+-            case 0x8D:
+-            case 0x8E:
+-            case 0x8F:
+-            case 0x90:
+-            case 0x91:
+-            case 0x92:
+-            case 0x93:
+-            case 0x94:
+-            case 0x95:
+-            case 0x96:
+-            case 0x97:
+-                return get_cbor_array(static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x1Fu), tag_handler);
+-
+-            case 0x98: // array (one-byte uint8_t for n follows)
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0x99: // array (two-byte uint16_t for n follow)
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0x9A: // array (four-byte uint32_t for n follow)
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0x9B: // array (eight-byte uint64_t for n follow)
+-            {
+-                std::uint64_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_array(detail::conditional_static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0x9F: // array (indefinite length)
+-                return get_cbor_array(static_cast<std::size_t>(-1), tag_handler);
+-
+-            // map (0x00..0x17 pairs of data items follow)
+-            case 0xA0:
+-            case 0xA1:
+-            case 0xA2:
+-            case 0xA3:
+-            case 0xA4:
+-            case 0xA5:
+-            case 0xA6:
+-            case 0xA7:
+-            case 0xA8:
+-            case 0xA9:
+-            case 0xAA:
+-            case 0xAB:
+-            case 0xAC:
+-            case 0xAD:
+-            case 0xAE:
+-            case 0xAF:
+-            case 0xB0:
+-            case 0xB1:
+-            case 0xB2:
+-            case 0xB3:
+-            case 0xB4:
+-            case 0xB5:
+-            case 0xB6:
+-            case 0xB7:
+-                return get_cbor_object(static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x1Fu), tag_handler);
+-
+-            case 0xB8: // map (one-byte uint8_t for n follows)
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0xB9: // map (two-byte uint16_t for n follow)
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0xBA: // map (four-byte uint32_t for n follow)
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0xBB: // map (eight-byte uint64_t for n follow)
+-            {
+-                std::uint64_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_object(detail::conditional_static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0xBF: // map (indefinite length)
+-                return get_cbor_object(static_cast<std::size_t>(-1), tag_handler);
+-
+-            case 0xC6: // tagged item
+-            case 0xC7:
+-            case 0xC8:
+-            case 0xC9:
+-            case 0xCA:
+-            case 0xCB:
+-            case 0xCC:
+-            case 0xCD:
+-            case 0xCE:
+-            case 0xCF:
+-            case 0xD0:
+-            case 0xD1:
+-            case 0xD2:
+-            case 0xD3:
+-            case 0xD4:
+-            case 0xD8: // tagged item (1 bytes follow)
+-            case 0xD9: // tagged item (2 bytes follow)
+-            case 0xDA: // tagged item (4 bytes follow)
+-            case 0xDB: // tagged item (8 bytes follow)
+-            {
+-                switch (tag_handler)
+-                {
+-                    case cbor_tag_handler_t::error:
+-                    {
+-                        auto last_token = get_token_string();
+-                        return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::cbor, "invalid byte: 0x" + last_token, "value"), BasicJsonType()));
+-                    }
+-
+-                    case cbor_tag_handler_t::ignore:
+-                    {
+-                        // ignore binary subtype
+-                        switch (current)
+-                        {
+-                            case 0xD8:
+-                            {
+-                                std::uint8_t subtype_to_ignore{};
+-                                get_number(input_format_t::cbor, subtype_to_ignore);
+-                                break;
+-                            }
+-                            case 0xD9:
+-                            {
+-                                std::uint16_t subtype_to_ignore{};
+-                                get_number(input_format_t::cbor, subtype_to_ignore);
+-                                break;
+-                            }
+-                            case 0xDA:
+-                            {
+-                                std::uint32_t subtype_to_ignore{};
+-                                get_number(input_format_t::cbor, subtype_to_ignore);
+-                                break;
+-                            }
+-                            case 0xDB:
+-                            {
+-                                std::uint64_t subtype_to_ignore{};
+-                                get_number(input_format_t::cbor, subtype_to_ignore);
+-                                break;
+-                            }
+-                            default:
+-                                break;
+-                        }
+-                        return parse_cbor_internal(true, tag_handler);
+-                    }
+-
+-                    case cbor_tag_handler_t::store:
+-                    {
+-                        binary_t b;
+-                        // use binary subtype and store in binary container
+-                        switch (current)
+-                        {
+-                            case 0xD8:
+-                            {
+-                                std::uint8_t subtype{};
+-                                get_number(input_format_t::cbor, subtype);
+-                                b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype));
+-                                break;
+-                            }
+-                            case 0xD9:
+-                            {
+-                                std::uint16_t subtype{};
+-                                get_number(input_format_t::cbor, subtype);
+-                                b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype));
+-                                break;
+-                            }
+-                            case 0xDA:
+-                            {
+-                                std::uint32_t subtype{};
+-                                get_number(input_format_t::cbor, subtype);
+-                                b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype));
+-                                break;
+-                            }
+-                            case 0xDB:
+-                            {
+-                                std::uint64_t subtype{};
+-                                get_number(input_format_t::cbor, subtype);
+-                                b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype));
+-                                break;
+-                            }
+-                            default:
+-                                return parse_cbor_internal(true, tag_handler);
+-                        }
+-                        get();
+-                        return get_cbor_binary(b) && sax->binary(b);
+-                    }
+-
+-                    default:                 // LCOV_EXCL_LINE
+-                        JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-                        return false;        // LCOV_EXCL_LINE
+-                }
+-            }
+-
+-            case 0xF4: // false
+-                return sax->boolean(false);
+-
+-            case 0xF5: // true
+-                return sax->boolean(true);
+-
+-            case 0xF6: // null
+-                return sax->null();
+-
+-            case 0xF9: // Half-Precision Float (two-byte IEEE 754)
+-            {
+-                const auto byte1_raw = get();
+-                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "number")))
+-                {
+-                    return false;
+-                }
+-                const auto byte2_raw = get();
+-                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "number")))
+-                {
+-                    return false;
+-                }
+-
+-                const auto byte1 = static_cast<unsigned char>(byte1_raw);
+-                const auto byte2 = static_cast<unsigned char>(byte2_raw);
+-
+-                // code from RFC 7049, Appendix D, Figure 3:
+-                // As half-precision floating-point numbers were only added
+-                // to IEEE 754 in 2008, today's programming platforms often
+-                // still only have limited support for them. It is very
+-                // easy to include at least decoding support for them even
+-                // without such support. An example of a small decoder for
+-                // half-precision floating-point numbers in the C language
+-                // is shown in Fig. 3.
+-                const auto half = static_cast<unsigned int>((byte1 << 8u) + byte2);
+-                const double val = [&half]
+-                {
+-                    const int exp = (half >> 10u) & 0x1Fu;
+-                    const unsigned int mant = half & 0x3FFu;
+-                    JSON_ASSERT(0 <= exp&& exp <= 32);
+-                    JSON_ASSERT(mant <= 1024);
+-                    switch (exp)
+-                    {
+-                        case 0:
+-                            return std::ldexp(mant, -24);
+-                        case 31:
+-                            return (mant == 0)
+-                            ? std::numeric_limits<double>::infinity()
+-                            : std::numeric_limits<double>::quiet_NaN();
+-                        default:
+-                            return std::ldexp(mant + 1024, exp - 25);
+-                    }
+-                }();
+-                return sax->number_float((half & 0x8000u) != 0
+-                                         ? static_cast<number_float_t>(-val)
+-                                         : static_cast<number_float_t>(val), "");
+-            }
+-
+-            case 0xFA: // Single-Precision Float (four-byte IEEE 754)
+-            {
+-                float number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 0xFB: // Double-Precision Float (eight-byte IEEE 754)
+-            {
+-                double number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            default: // anything else (0xFF is handled inside the other types)
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::cbor, "invalid byte: 0x" + last_token, "value"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief reads a CBOR string
+-
+-    This function first reads starting bytes to determine the expected
+-    string length and then copies this number of bytes into a string.
+-    Additionally, CBOR's strings with indefinite lengths are supported.
+-
+-    @param[out] result  created string
+-
+-    @return whether string creation completed
+-    */
+-    bool get_cbor_string(string_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "string")))
+-        {
+-            return false;
+-        }
+-
+-        switch (current)
+-        {
+-            // UTF-8 string (0x00..0x17 bytes follow)
+-            case 0x60:
+-            case 0x61:
+-            case 0x62:
+-            case 0x63:
+-            case 0x64:
+-            case 0x65:
+-            case 0x66:
+-            case 0x67:
+-            case 0x68:
+-            case 0x69:
+-            case 0x6A:
+-            case 0x6B:
+-            case 0x6C:
+-            case 0x6D:
+-            case 0x6E:
+-            case 0x6F:
+-            case 0x70:
+-            case 0x71:
+-            case 0x72:
+-            case 0x73:
+-            case 0x74:
+-            case 0x75:
+-            case 0x76:
+-            case 0x77:
+-            {
+-                return get_string(input_format_t::cbor, static_cast<unsigned int>(current) & 0x1Fu, result);
+-            }
+-
+-            case 0x78: // UTF-8 string (one-byte uint8_t for n follows)
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x79: // UTF-8 string (two-byte uint16_t for n follow)
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x7A: // UTF-8 string (four-byte uint32_t for n follow)
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x7B: // UTF-8 string (eight-byte uint64_t for n follow)
+-            {
+-                std::uint64_t len{};
+-                return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x7F: // UTF-8 string (indefinite length)
+-            {
+-                while (get() != 0xFF)
+-                {
+-                    string_t chunk;
+-                    if (!get_cbor_string(chunk))
+-                    {
+-                        return false;
+-                    }
+-                    result.append(chunk);
+-                }
+-                return true;
+-            }
+-
+-            default:
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::cbor, "expected length specification (0x60-0x7B) or indefinite string type (0x7F); last byte: 0x" + last_token, "string"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief reads a CBOR byte array
+-
+-    This function first reads starting bytes to determine the expected
+-    byte array length and then copies this number of bytes into the byte array.
+-    Additionally, CBOR's byte arrays with indefinite lengths are supported.
+-
+-    @param[out] result  created byte array
+-
+-    @return whether byte array creation completed
+-    */
+-    bool get_cbor_binary(binary_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "binary")))
+-        {
+-            return false;
+-        }
+-
+-        switch (current)
+-        {
+-            // Binary data (0x00..0x17 bytes follow)
+-            case 0x40:
+-            case 0x41:
+-            case 0x42:
+-            case 0x43:
+-            case 0x44:
+-            case 0x45:
+-            case 0x46:
+-            case 0x47:
+-            case 0x48:
+-            case 0x49:
+-            case 0x4A:
+-            case 0x4B:
+-            case 0x4C:
+-            case 0x4D:
+-            case 0x4E:
+-            case 0x4F:
+-            case 0x50:
+-            case 0x51:
+-            case 0x52:
+-            case 0x53:
+-            case 0x54:
+-            case 0x55:
+-            case 0x56:
+-            case 0x57:
+-            {
+-                return get_binary(input_format_t::cbor, static_cast<unsigned int>(current) & 0x1Fu, result);
+-            }
+-
+-            case 0x58: // Binary data (one-byte uint8_t for n follows)
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::cbor, len) &&
+-                       get_binary(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x59: // Binary data (two-byte uint16_t for n follow)
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::cbor, len) &&
+-                       get_binary(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x5A: // Binary data (four-byte uint32_t for n follow)
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::cbor, len) &&
+-                       get_binary(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x5B: // Binary data (eight-byte uint64_t for n follow)
+-            {
+-                std::uint64_t len{};
+-                return get_number(input_format_t::cbor, len) &&
+-                       get_binary(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x5F: // Binary data (indefinite length)
+-            {
+-                while (get() != 0xFF)
+-                {
+-                    binary_t chunk;
+-                    if (!get_cbor_binary(chunk))
+-                    {
+-                        return false;
+-                    }
+-                    result.insert(result.end(), chunk.begin(), chunk.end());
+-                }
+-                return true;
+-            }
+-
+-            default:
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::cbor, "expected length specification (0x40-0x5B) or indefinite binary array type (0x5F); last byte: 0x" + last_token, "binary"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @param[in] len  the length of the array or static_cast<std::size_t>(-1) for an
+-                    array of indefinite size
+-    @param[in] tag_handler how CBOR tags should be treated
+-    @return whether array creation completed
+-    */
+-    bool get_cbor_array(const std::size_t len,
+-                        const cbor_tag_handler_t tag_handler)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len)))
+-        {
+-            return false;
+-        }
+-
+-        if (len != static_cast<std::size_t>(-1))
+-        {
+-            for (std::size_t i = 0; i < len; ++i)
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(true, tag_handler)))
+-                {
+-                    return false;
+-                }
+-            }
+-        }
+-        else
+-        {
+-            while (get() != 0xFF)
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(false, tag_handler)))
+-                {
+-                    return false;
+-                }
+-            }
+-        }
+-
+-        return sax->end_array();
+-    }
+-
+-    /*!
+-    @param[in] len  the length of the object or static_cast<std::size_t>(-1) for an
+-                    object of indefinite size
+-    @param[in] tag_handler how CBOR tags should be treated
+-    @return whether object creation completed
+-    */
+-    bool get_cbor_object(const std::size_t len,
+-                         const cbor_tag_handler_t tag_handler)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_object(len)))
+-        {
+-            return false;
+-        }
+-
+-        if (len != 0)
+-        {
+-            string_t key;
+-            if (len != static_cast<std::size_t>(-1))
+-            {
+-                for (std::size_t i = 0; i < len; ++i)
+-                {
+-                    get();
+-                    if (JSON_HEDLEY_UNLIKELY(!get_cbor_string(key) || !sax->key(key)))
+-                    {
+-                        return false;
+-                    }
+-
+-                    if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(true, tag_handler)))
+-                    {
+-                        return false;
+-                    }
+-                    key.clear();
+-                }
+-            }
+-            else
+-            {
+-                while (get() != 0xFF)
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!get_cbor_string(key) || !sax->key(key)))
+-                    {
+-                        return false;
+-                    }
+-
+-                    if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(true, tag_handler)))
+-                    {
+-                        return false;
+-                    }
+-                    key.clear();
+-                }
+-            }
+-        }
+-
+-        return sax->end_object();
+-    }
+-
+-    /////////////
+-    // MsgPack //
+-    /////////////
+-
+-    /*!
+-    @return whether a valid MessagePack value was passed to the SAX parser
+-    */
+-    bool parse_msgpack_internal()
+-    {
+-        switch (get())
+-        {
+-            // EOF
+-            case std::char_traits<char_type>::eof():
+-                return unexpect_eof(input_format_t::msgpack, "value");
+-
+-            // positive fixint
+-            case 0x00:
+-            case 0x01:
+-            case 0x02:
+-            case 0x03:
+-            case 0x04:
+-            case 0x05:
+-            case 0x06:
+-            case 0x07:
+-            case 0x08:
+-            case 0x09:
+-            case 0x0A:
+-            case 0x0B:
+-            case 0x0C:
+-            case 0x0D:
+-            case 0x0E:
+-            case 0x0F:
+-            case 0x10:
+-            case 0x11:
+-            case 0x12:
+-            case 0x13:
+-            case 0x14:
+-            case 0x15:
+-            case 0x16:
+-            case 0x17:
+-            case 0x18:
+-            case 0x19:
+-            case 0x1A:
+-            case 0x1B:
+-            case 0x1C:
+-            case 0x1D:
+-            case 0x1E:
+-            case 0x1F:
+-            case 0x20:
+-            case 0x21:
+-            case 0x22:
+-            case 0x23:
+-            case 0x24:
+-            case 0x25:
+-            case 0x26:
+-            case 0x27:
+-            case 0x28:
+-            case 0x29:
+-            case 0x2A:
+-            case 0x2B:
+-            case 0x2C:
+-            case 0x2D:
+-            case 0x2E:
+-            case 0x2F:
+-            case 0x30:
+-            case 0x31:
+-            case 0x32:
+-            case 0x33:
+-            case 0x34:
+-            case 0x35:
+-            case 0x36:
+-            case 0x37:
+-            case 0x38:
+-            case 0x39:
+-            case 0x3A:
+-            case 0x3B:
+-            case 0x3C:
+-            case 0x3D:
+-            case 0x3E:
+-            case 0x3F:
+-            case 0x40:
+-            case 0x41:
+-            case 0x42:
+-            case 0x43:
+-            case 0x44:
+-            case 0x45:
+-            case 0x46:
+-            case 0x47:
+-            case 0x48:
+-            case 0x49:
+-            case 0x4A:
+-            case 0x4B:
+-            case 0x4C:
+-            case 0x4D:
+-            case 0x4E:
+-            case 0x4F:
+-            case 0x50:
+-            case 0x51:
+-            case 0x52:
+-            case 0x53:
+-            case 0x54:
+-            case 0x55:
+-            case 0x56:
+-            case 0x57:
+-            case 0x58:
+-            case 0x59:
+-            case 0x5A:
+-            case 0x5B:
+-            case 0x5C:
+-            case 0x5D:
+-            case 0x5E:
+-            case 0x5F:
+-            case 0x60:
+-            case 0x61:
+-            case 0x62:
+-            case 0x63:
+-            case 0x64:
+-            case 0x65:
+-            case 0x66:
+-            case 0x67:
+-            case 0x68:
+-            case 0x69:
+-            case 0x6A:
+-            case 0x6B:
+-            case 0x6C:
+-            case 0x6D:
+-            case 0x6E:
+-            case 0x6F:
+-            case 0x70:
+-            case 0x71:
+-            case 0x72:
+-            case 0x73:
+-            case 0x74:
+-            case 0x75:
+-            case 0x76:
+-            case 0x77:
+-            case 0x78:
+-            case 0x79:
+-            case 0x7A:
+-            case 0x7B:
+-            case 0x7C:
+-            case 0x7D:
+-            case 0x7E:
+-            case 0x7F:
+-                return sax->number_unsigned(static_cast<number_unsigned_t>(current));
+-
+-            // fixmap
+-            case 0x80:
+-            case 0x81:
+-            case 0x82:
+-            case 0x83:
+-            case 0x84:
+-            case 0x85:
+-            case 0x86:
+-            case 0x87:
+-            case 0x88:
+-            case 0x89:
+-            case 0x8A:
+-            case 0x8B:
+-            case 0x8C:
+-            case 0x8D:
+-            case 0x8E:
+-            case 0x8F:
+-                return get_msgpack_object(static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x0Fu));
+-
+-            // fixarray
+-            case 0x90:
+-            case 0x91:
+-            case 0x92:
+-            case 0x93:
+-            case 0x94:
+-            case 0x95:
+-            case 0x96:
+-            case 0x97:
+-            case 0x98:
+-            case 0x99:
+-            case 0x9A:
+-            case 0x9B:
+-            case 0x9C:
+-            case 0x9D:
+-            case 0x9E:
+-            case 0x9F:
+-                return get_msgpack_array(static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x0Fu));
+-
+-            // fixstr
+-            case 0xA0:
+-            case 0xA1:
+-            case 0xA2:
+-            case 0xA3:
+-            case 0xA4:
+-            case 0xA5:
+-            case 0xA6:
+-            case 0xA7:
+-            case 0xA8:
+-            case 0xA9:
+-            case 0xAA:
+-            case 0xAB:
+-            case 0xAC:
+-            case 0xAD:
+-            case 0xAE:
+-            case 0xAF:
+-            case 0xB0:
+-            case 0xB1:
+-            case 0xB2:
+-            case 0xB3:
+-            case 0xB4:
+-            case 0xB5:
+-            case 0xB6:
+-            case 0xB7:
+-            case 0xB8:
+-            case 0xB9:
+-            case 0xBA:
+-            case 0xBB:
+-            case 0xBC:
+-            case 0xBD:
+-            case 0xBE:
+-            case 0xBF:
+-            case 0xD9: // str 8
+-            case 0xDA: // str 16
+-            case 0xDB: // str 32
+-            {
+-                string_t s;
+-                return get_msgpack_string(s) && sax->string(s);
+-            }
+-
+-            case 0xC0: // nil
+-                return sax->null();
+-
+-            case 0xC2: // false
+-                return sax->boolean(false);
+-
+-            case 0xC3: // true
+-                return sax->boolean(true);
+-
+-            case 0xC4: // bin 8
+-            case 0xC5: // bin 16
+-            case 0xC6: // bin 32
+-            case 0xC7: // ext 8
+-            case 0xC8: // ext 16
+-            case 0xC9: // ext 32
+-            case 0xD4: // fixext 1
+-            case 0xD5: // fixext 2
+-            case 0xD6: // fixext 4
+-            case 0xD7: // fixext 8
+-            case 0xD8: // fixext 16
+-            {
+-                binary_t b;
+-                return get_msgpack_binary(b) && sax->binary(b);
+-            }
+-
+-            case 0xCA: // float 32
+-            {
+-                float number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 0xCB: // float 64
+-            {
+-                double number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 0xCC: // uint 8
+-            {
+-                std::uint8_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0xCD: // uint 16
+-            {
+-                std::uint16_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0xCE: // uint 32
+-            {
+-                std::uint32_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0xCF: // uint 64
+-            {
+-                std::uint64_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0xD0: // int 8
+-            {
+-                std::int8_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_integer(number);
+-            }
+-
+-            case 0xD1: // int 16
+-            {
+-                std::int16_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_integer(number);
+-            }
+-
+-            case 0xD2: // int 32
+-            {
+-                std::int32_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_integer(number);
+-            }
+-
+-            case 0xD3: // int 64
+-            {
+-                std::int64_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_integer(number);
+-            }
+-
+-            case 0xDC: // array 16
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_msgpack_array(static_cast<std::size_t>(len));
+-            }
+-
+-            case 0xDD: // array 32
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_msgpack_array(static_cast<std::size_t>(len));
+-            }
+-
+-            case 0xDE: // map 16
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_msgpack_object(static_cast<std::size_t>(len));
+-            }
+-
+-            case 0xDF: // map 32
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_msgpack_object(static_cast<std::size_t>(len));
+-            }
+-
+-            // negative fixint
+-            case 0xE0:
+-            case 0xE1:
+-            case 0xE2:
+-            case 0xE3:
+-            case 0xE4:
+-            case 0xE5:
+-            case 0xE6:
+-            case 0xE7:
+-            case 0xE8:
+-            case 0xE9:
+-            case 0xEA:
+-            case 0xEB:
+-            case 0xEC:
+-            case 0xED:
+-            case 0xEE:
+-            case 0xEF:
+-            case 0xF0:
+-            case 0xF1:
+-            case 0xF2:
+-            case 0xF3:
+-            case 0xF4:
+-            case 0xF5:
+-            case 0xF6:
+-            case 0xF7:
+-            case 0xF8:
+-            case 0xF9:
+-            case 0xFA:
+-            case 0xFB:
+-            case 0xFC:
+-            case 0xFD:
+-            case 0xFE:
+-            case 0xFF:
+-                return sax->number_integer(static_cast<std::int8_t>(current));
+-
+-            default: // anything else
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::msgpack, "invalid byte: 0x" + last_token, "value"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief reads a MessagePack string
+-
+-    This function first reads starting bytes to determine the expected
+-    string length and then copies this number of bytes into a string.
+-
+-    @param[out] result  created string
+-
+-    @return whether string creation completed
+-    */
+-    bool get_msgpack_string(string_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::msgpack, "string")))
+-        {
+-            return false;
+-        }
+-
+-        switch (current)
+-        {
+-            // fixstr
+-            case 0xA0:
+-            case 0xA1:
+-            case 0xA2:
+-            case 0xA3:
+-            case 0xA4:
+-            case 0xA5:
+-            case 0xA6:
+-            case 0xA7:
+-            case 0xA8:
+-            case 0xA9:
+-            case 0xAA:
+-            case 0xAB:
+-            case 0xAC:
+-            case 0xAD:
+-            case 0xAE:
+-            case 0xAF:
+-            case 0xB0:
+-            case 0xB1:
+-            case 0xB2:
+-            case 0xB3:
+-            case 0xB4:
+-            case 0xB5:
+-            case 0xB6:
+-            case 0xB7:
+-            case 0xB8:
+-            case 0xB9:
+-            case 0xBA:
+-            case 0xBB:
+-            case 0xBC:
+-            case 0xBD:
+-            case 0xBE:
+-            case 0xBF:
+-            {
+-                return get_string(input_format_t::msgpack, static_cast<unsigned int>(current) & 0x1Fu, result);
+-            }
+-
+-            case 0xD9: // str 8
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_string(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xDA: // str 16
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_string(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xDB: // str 32
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_string(input_format_t::msgpack, len, result);
+-            }
+-
+-            default:
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::msgpack, "expected length specification (0xA0-0xBF, 0xD9-0xDB); last byte: 0x" + last_token, "string"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief reads a MessagePack byte array
+-
+-    This function first reads starting bytes to determine the expected
+-    byte array length and then copies this number of bytes into a byte array.
+-
+-    @param[out] result  created byte array
+-
+-    @return whether byte array creation completed
+-    */
+-    bool get_msgpack_binary(binary_t& result)
+-    {
+-        // helper function to set the subtype
+-        auto assign_and_return_true = [&result](std::int8_t subtype)
+-        {
+-            result.set_subtype(static_cast<std::uint8_t>(subtype));
+-            return true;
+-        };
+-
+-        switch (current)
+-        {
+-            case 0xC4: // bin 8
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_binary(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xC5: // bin 16
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_binary(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xC6: // bin 32
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_binary(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xC7: // ext 8
+-            {
+-                std::uint8_t len{};
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, len, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xC8: // ext 16
+-            {
+-                std::uint16_t len{};
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, len, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xC9: // ext 32
+-            {
+-                std::uint32_t len{};
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, len, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD4: // fixext 1
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 1, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD5: // fixext 2
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 2, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD6: // fixext 4
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 4, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD7: // fixext 8
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 8, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD8: // fixext 16
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 16, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            default:           // LCOV_EXCL_LINE
+-                return false;  // LCOV_EXCL_LINE
+-        }
+-    }
+-
+-    /*!
+-    @param[in] len  the length of the array
+-    @return whether array creation completed
+-    */
+-    bool get_msgpack_array(const std::size_t len)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len)))
+-        {
+-            return false;
+-        }
+-
+-        for (std::size_t i = 0; i < len; ++i)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
+-            {
+-                return false;
+-            }
+-        }
+-
+-        return sax->end_array();
+-    }
+-
+-    /*!
+-    @param[in] len  the length of the object
+-    @return whether object creation completed
+-    */
+-    bool get_msgpack_object(const std::size_t len)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_object(len)))
+-        {
+-            return false;
+-        }
+-
+-        string_t key;
+-        for (std::size_t i = 0; i < len; ++i)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!get_msgpack_string(key) || !sax->key(key)))
+-            {
+-                return false;
+-            }
+-
+-            if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
+-            {
+-                return false;
+-            }
+-            key.clear();
+-        }
+-
+-        return sax->end_object();
+-    }
+-
+-    ////////////
+-    // UBJSON //
+-    ////////////
+-
+-    /*!
+-    @param[in] get_char  whether a new character should be retrieved from the
+-                         input (true, default) or whether the last read
+-                         character should be considered instead
+-
+-    @return whether a valid UBJSON value was passed to the SAX parser
+-    */
+-    bool parse_ubjson_internal(const bool get_char = true)
+-    {
+-        return get_ubjson_value(get_char ? get_ignore_noop() : current);
+-    }
+-
+-    /*!
+-    @brief reads a UBJSON string
+-
+-    This function is either called after reading the 'S' byte explicitly
+-    indicating a string, or in case of an object key where the 'S' byte can be
+-    left out.
+-
+-    @param[out] result   created string
+-    @param[in] get_char  whether a new character should be retrieved from the
+-                         input (true, default) or whether the last read
+-                         character should be considered instead
+-
+-    @return whether string creation completed
+-    */
+-    bool get_ubjson_string(string_t& result, const bool get_char = true)
+-    {
+-        if (get_char)
+-        {
+-            get();  // TODO(niels): may we ignore N here?
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "value")))
+-        {
+-            return false;
+-        }
+-
+-        switch (current)
+-        {
+-            case 'U':
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            case 'i':
+-            {
+-                std::int8_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            case 'I':
+-            {
+-                std::int16_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            case 'l':
+-            {
+-                std::int32_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            case 'L':
+-            {
+-                std::int64_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            default:
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::ubjson, "expected length type specification (U, i, I, l, L); last byte: 0x" + last_token, "string"), BasicJsonType()));
+-        }
+-    }
+-
+-    /*!
+-    @param[out] result  determined size
+-    @return whether size determination completed
+-    */
+-    bool get_ubjson_size_value(std::size_t& result)
+-    {
+-        switch (get_ignore_noop())
+-        {
+-            case 'U':
+-            {
+-                std::uint8_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number);
+-                return true;
+-            }
+-
+-            case 'i':
+-            {
+-                std::int8_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
+-                return true;
+-            }
+-
+-            case 'I':
+-            {
+-                std::int16_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number);
+-                return true;
+-            }
+-
+-            case 'l':
+-            {
+-                std::int32_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number);
+-                return true;
+-            }
+-
+-            case 'L':
+-            {
+-                std::int64_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number);
+-                return true;
+-            }
+-
+-            default:
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::ubjson, "expected length type specification (U, i, I, l, L) after '#'; last byte: 0x" + last_token, "size"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief determine the type and size for a container
+-
+-    In the optimized UBJSON format, a type and a size can be provided to allow
+-    for a more compact representation.
+-
+-    @param[out] result  pair of the size and the type
+-
+-    @return whether pair creation completed
+-    */
+-    bool get_ubjson_size_type(std::pair<std::size_t, char_int_type>& result)
+-    {
+-        result.first = string_t::npos; // size
+-        result.second = 0; // type
+-
+-        get_ignore_noop();
+-
+-        if (current == '$')
+-        {
+-            result.second = get();  // must not ignore 'N', because 'N' maybe the type
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "type")))
+-            {
+-                return false;
+-            }
+-
+-            get_ignore_noop();
+-            if (JSON_HEDLEY_UNLIKELY(current != '#'))
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "value")))
+-                {
+-                    return false;
+-                }
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::ubjson, "expected '#' after type information; last byte: 0x" + last_token, "size"), BasicJsonType()));
+-            }
+-
+-            return get_ubjson_size_value(result.first);
+-        }
+-
+-        if (current == '#')
+-        {
+-            return get_ubjson_size_value(result.first);
+-        }
+-
+-        return true;
+-    }
+-
+-    /*!
+-    @param prefix  the previously read or set type prefix
+-    @return whether value creation completed
+-    */
+-    bool get_ubjson_value(const char_int_type prefix)
+-    {
+-        switch (prefix)
+-        {
+-            case std::char_traits<char_type>::eof():  // EOF
+-                return unexpect_eof(input_format_t::ubjson, "value");
+-
+-            case 'T':  // true
+-                return sax->boolean(true);
+-            case 'F':  // false
+-                return sax->boolean(false);
+-
+-            case 'Z':  // null
+-                return sax->null();
+-
+-            case 'U':
+-            {
+-                std::uint8_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 'i':
+-            {
+-                std::int8_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_integer(number);
+-            }
+-
+-            case 'I':
+-            {
+-                std::int16_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_integer(number);
+-            }
+-
+-            case 'l':
+-            {
+-                std::int32_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_integer(number);
+-            }
+-
+-            case 'L':
+-            {
+-                std::int64_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_integer(number);
+-            }
+-
+-            case 'd':
+-            {
+-                float number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 'D':
+-            {
+-                double number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 'H':
+-            {
+-                return get_ubjson_high_precision_number();
+-            }
+-
+-            case 'C':  // char
+-            {
+-                get();
+-                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "char")))
+-                {
+-                    return false;
+-                }
+-                if (JSON_HEDLEY_UNLIKELY(current > 127))
+-                {
+-                    auto last_token = get_token_string();
+-                    return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::ubjson, "byte after 'C' must be in range 0x00..0x7F; last byte: 0x" + last_token, "char"), BasicJsonType()));
+-                }
+-                string_t s(1, static_cast<typename string_t::value_type>(current));
+-                return sax->string(s);
+-            }
+-
+-            case 'S':  // string
+-            {
+-                string_t s;
+-                return get_ubjson_string(s) && sax->string(s);
+-            }
+-
+-            case '[':  // array
+-                return get_ubjson_array();
+-
+-            case '{':  // object
+-                return get_ubjson_object();
+-
+-            default: // anything else
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::ubjson, "invalid byte: 0x" + last_token, "value"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @return whether array creation completed
+-    */
+-    bool get_ubjson_array()
+-    {
+-        std::pair<std::size_t, char_int_type> size_and_type;
+-        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
+-        {
+-            return false;
+-        }
+-
+-        if (size_and_type.first != string_t::npos)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!sax->start_array(size_and_type.first)))
+-            {
+-                return false;
+-            }
+-
+-            if (size_and_type.second != 0)
+-            {
+-                if (size_and_type.second != 'N')
+-                {
+-                    for (std::size_t i = 0; i < size_and_type.first; ++i)
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second)))
+-                        {
+-                            return false;
+-                        }
+-                    }
+-                }
+-            }
+-            else
+-            {
+-                for (std::size_t i = 0; i < size_and_type.first; ++i)
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal()))
+-                    {
+-                        return false;
+-                    }
+-                }
+-            }
+-        }
+-        else
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!sax->start_array(static_cast<std::size_t>(-1))))
+-            {
+-                return false;
+-            }
+-
+-            while (current != ']')
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal(false)))
+-                {
+-                    return false;
+-                }
+-                get_ignore_noop();
+-            }
+-        }
+-
+-        return sax->end_array();
+-    }
+-
+-    /*!
+-    @return whether object creation completed
+-    */
+-    bool get_ubjson_object()
+-    {
+-        std::pair<std::size_t, char_int_type> size_and_type;
+-        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
+-        {
+-            return false;
+-        }
+-
+-        string_t key;
+-        if (size_and_type.first != string_t::npos)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!sax->start_object(size_and_type.first)))
+-            {
+-                return false;
+-            }
+-
+-            if (size_and_type.second != 0)
+-            {
+-                for (std::size_t i = 0; i < size_and_type.first; ++i)
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key) || !sax->key(key)))
+-                    {
+-                        return false;
+-                    }
+-                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second)))
+-                    {
+-                        return false;
+-                    }
+-                    key.clear();
+-                }
+-            }
+-            else
+-            {
+-                for (std::size_t i = 0; i < size_and_type.first; ++i)
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key) || !sax->key(key)))
+-                    {
+-                        return false;
+-                    }
+-                    if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal()))
+-                    {
+-                        return false;
+-                    }
+-                    key.clear();
+-                }
+-            }
+-        }
+-        else
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!sax->start_object(static_cast<std::size_t>(-1))))
+-            {
+-                return false;
+-            }
+-
+-            while (current != '}')
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, false) || !sax->key(key)))
+-                {
+-                    return false;
+-                }
+-                if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal()))
+-                {
+-                    return false;
+-                }
+-                get_ignore_noop();
+-                key.clear();
+-            }
+-        }
+-
+-        return sax->end_object();
+-    }
+-
+-    // Note, no reader for UBJSON binary types is implemented because they do
+-    // not exist
+-
+-    bool get_ubjson_high_precision_number()
+-    {
+-        // get size of following number string
+-        std::size_t size{};
+-        auto res = get_ubjson_size_value(size);
+-        if (JSON_HEDLEY_UNLIKELY(!res))
+-        {
+-            return res;
+-        }
+-
+-        // get number string
+-        std::vector<char> number_vector;
+-        for (std::size_t i = 0; i < size; ++i)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "number")))
+-            {
+-                return false;
+-            }
+-            number_vector.push_back(static_cast<char>(current));
+-        }
+-
+-        // parse number string
+-        using ia_type = decltype(detail::input_adapter(number_vector));
+-        auto number_lexer = detail::lexer<BasicJsonType, ia_type>(detail::input_adapter(number_vector), false);
+-        const auto result_number = number_lexer.scan();
+-        const auto number_string = number_lexer.get_token_string();
+-        const auto result_remainder = number_lexer.scan();
+-
+-        using token_type = typename detail::lexer_base<BasicJsonType>::token_type;
+-
+-        if (JSON_HEDLEY_UNLIKELY(result_remainder != token_type::end_of_input))
+-        {
+-            return sax->parse_error(chars_read, number_string, parse_error::create(115, chars_read, exception_message(input_format_t::ubjson, "invalid number text: " + number_lexer.get_token_string(), "high-precision number"), BasicJsonType()));
+-        }
+-
+-        switch (result_number)
+-        {
+-            case token_type::value_integer:
+-                return sax->number_integer(number_lexer.get_number_integer());
+-            case token_type::value_unsigned:
+-                return sax->number_unsigned(number_lexer.get_number_unsigned());
+-            case token_type::value_float:
+-                return sax->number_float(number_lexer.get_number_float(), std::move(number_string));
+-            case token_type::uninitialized:
+-            case token_type::literal_true:
+-            case token_type::literal_false:
+-            case token_type::literal_null:
+-            case token_type::value_string:
+-            case token_type::begin_array:
+-            case token_type::begin_object:
+-            case token_type::end_array:
+-            case token_type::end_object:
+-            case token_type::name_separator:
+-            case token_type::value_separator:
+-            case token_type::parse_error:
+-            case token_type::end_of_input:
+-            case token_type::literal_or_value:
+-            default:
+-                return sax->parse_error(chars_read, number_string, parse_error::create(115, chars_read, exception_message(input_format_t::ubjson, "invalid number text: " + number_lexer.get_token_string(), "high-precision number"), BasicJsonType()));
+-        }
+-    }
+-
+-    ///////////////////////
+-    // Utility functions //
+-    ///////////////////////
+-
+-    /*!
+-    @brief get next character from the input
+-
+-    This function provides the interface to the used input adapter. It does
+-    not throw in case the input reached EOF, but returns a -'ve valued
+-    `std::char_traits<char_type>::eof()` in that case.
+-
+-    @return character read from the input
+-    */
+-    char_int_type get()
+-    {
+-        ++chars_read;
+-        return current = ia.get_character();
+-    }
+-
+-    /*!
+-    @return character read from the input after ignoring all 'N' entries
+-    */
+-    char_int_type get_ignore_noop()
+-    {
+-        do
+-        {
+-            get();
+-        }
+-        while (current == 'N');
+-
+-        return current;
+-    }
+-
+-    /*
+-    @brief read a number from the input
+-
+-    @tparam NumberType the type of the number
+-    @param[in] format   the current format (for diagnostics)
+-    @param[out] result  number of type @a NumberType
+-
+-    @return whether conversion completed
+-
+-    @note This function needs to respect the system's endianness, because
+-          bytes in CBOR, MessagePack, and UBJSON are stored in network order
+-          (big endian) and therefore need reordering on little endian systems.
+-    */
+-    template<typename NumberType, bool InputIsLittleEndian = false>
+-    bool get_number(const input_format_t format, NumberType& result)
+-    {
+-        // step 1: read input into array with system's byte order
+-        std::array<std::uint8_t, sizeof(NumberType)> vec{};
+-        for (std::size_t i = 0; i < sizeof(NumberType); ++i)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "number")))
+-            {
+-                return false;
+-            }
+-
+-            // reverse byte order prior to conversion if necessary
+-            if (is_little_endian != InputIsLittleEndian)
+-            {
+-                vec[sizeof(NumberType) - i - 1] = static_cast<std::uint8_t>(current);
+-            }
+-            else
+-            {
+-                vec[i] = static_cast<std::uint8_t>(current); // LCOV_EXCL_LINE
+-            }
+-        }
+-
+-        // step 2: convert array into number of type T and return
+-        std::memcpy(&result, vec.data(), sizeof(NumberType));
+-        return true;
+-    }
+-
+-    /*!
+-    @brief create a string by reading characters from the input
+-
+-    @tparam NumberType the type of the number
+-    @param[in] format the current format (for diagnostics)
+-    @param[in] len number of characters to read
+-    @param[out] result string created by reading @a len bytes
+-
+-    @return whether string creation completed
+-
+-    @note We can not reserve @a len bytes for the result, because @a len
+-          may be too large. Usually, @ref unexpect_eof() detects the end of
+-          the input before we run out of string memory.
+-    */
+-    template<typename NumberType>
+-    bool get_string(const input_format_t format,
+-                    const NumberType len,
+-                    string_t& result)
+-    {
+-        bool success = true;
+-        for (NumberType i = 0; i < len; i++)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "string")))
+-            {
+-                success = false;
+-                break;
+-            }
+-            result.push_back(static_cast<typename string_t::value_type>(current));
+-        }
+-        return success;
+-    }
+-
+-    /*!
+-    @brief create a byte array by reading bytes from the input
+-
+-    @tparam NumberType the type of the number
+-    @param[in] format the current format (for diagnostics)
+-    @param[in] len number of bytes to read
+-    @param[out] result byte array created by reading @a len bytes
+-
+-    @return whether byte array creation completed
+-
+-    @note We can not reserve @a len bytes for the result, because @a len
+-          may be too large. Usually, @ref unexpect_eof() detects the end of
+-          the input before we run out of memory.
+-    */
+-    template<typename NumberType>
+-    bool get_binary(const input_format_t format,
+-                    const NumberType len,
+-                    binary_t& result)
+-    {
+-        bool success = true;
+-        for (NumberType i = 0; i < len; i++)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "binary")))
+-            {
+-                success = false;
+-                break;
+-            }
+-            result.push_back(static_cast<std::uint8_t>(current));
+-        }
+-        return success;
+-    }
+-
+-    /*!
+-    @param[in] format   the current format (for diagnostics)
+-    @param[in] context  further context information (for diagnostics)
+-    @return whether the last read character is not EOF
+-    */
+-    JSON_HEDLEY_NON_NULL(3)
+-    bool unexpect_eof(const input_format_t format, const char* context) const
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(current == std::char_traits<char_type>::eof()))
+-        {
+-            return sax->parse_error(chars_read, "<end of file>",
+-                                    parse_error::create(110, chars_read, exception_message(format, "unexpected end of input", context), BasicJsonType()));
+-        }
+-        return true;
+-    }
+-
+-    /*!
+-    @return a string representation of the last read byte
+-    */
+-    std::string get_token_string() const
+-    {
+-        std::array<char, 3> cr{{}};
+-        static_cast<void>((std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(current))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-        return std::string{cr.data()};
+-    }
+-
+-    /*!
+-    @param[in] format   the current format
+-    @param[in] detail   a detailed error message
+-    @param[in] context  further context information
+-    @return a message string to use in the parse_error exceptions
+-    */
+-    std::string exception_message(const input_format_t format,
+-                                  const std::string& detail,
+-                                  const std::string& context) const
+-    {
+-        std::string error_msg = "syntax error while parsing ";
+-
+-        switch (format)
+-        {
+-            case input_format_t::cbor:
+-                error_msg += "CBOR";
+-                break;
+-
+-            case input_format_t::msgpack:
+-                error_msg += "MessagePack";
+-                break;
+-
+-            case input_format_t::ubjson:
+-                error_msg += "UBJSON";
+-                break;
+-
+-            case input_format_t::bson:
+-                error_msg += "BSON";
+-                break;
+-
+-            case input_format_t::json: // LCOV_EXCL_LINE
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-
+-        return error_msg + " " + context + ": " + detail;
+-    }
+-
+-  private:
+-    /// input adapter
+-    InputAdapterType ia;
+-
+-    /// the current character
+-    char_int_type current = std::char_traits<char_type>::eof();
+-
+-    /// the number of characters read
+-    std::size_t chars_read = 0;
+-
+-    /// whether we can assume little endianness
+-    const bool is_little_endian = little_endianness();
+-
+-    /// the SAX parser
+-    json_sax_t* sax = nullptr;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/input_adapters.hpp>
+-
+-// #include <nlohmann/detail/input/lexer.hpp>
+-
+-// #include <nlohmann/detail/input/parser.hpp>
+-
+-
+-#include <cmath> // isfinite
+-#include <cstdint> // uint8_t
+-#include <functional> // function
+-#include <string> // string
+-#include <utility> // move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/input/input_adapters.hpp>
+-
+-// #include <nlohmann/detail/input/json_sax.hpp>
+-
+-// #include <nlohmann/detail/input/lexer.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/is_sax.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-////////////
+-// parser //
+-////////////
+-
+-enum class parse_event_t : std::uint8_t
+-{
+-    /// the parser read `{` and started to process a JSON object
+-    object_start,
+-    /// the parser read `}` and finished processing a JSON object
+-    object_end,
+-    /// the parser read `[` and started to process a JSON array
+-    array_start,
+-    /// the parser read `]` and finished processing a JSON array
+-    array_end,
+-    /// the parser read a key of a value in an object
+-    key,
+-    /// the parser finished reading a JSON value
+-    value
+-};
+-
+-template<typename BasicJsonType>
+-using parser_callback_t =
+-    std::function<bool(int /*depth*/, parse_event_t /*event*/, BasicJsonType& /*parsed*/)>;
+-
+-/*!
+-@brief syntax analysis
+-
+-This class implements a recursive descent parser.
+-*/
+-template<typename BasicJsonType, typename InputAdapterType>
+-class parser
+-{
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using lexer_t = lexer<BasicJsonType, InputAdapterType>;
+-    using token_type = typename lexer_t::token_type;
+-
+-  public:
+-    /// a parser reading from an input adapter
+-    explicit parser(InputAdapterType&& adapter,
+-                    const parser_callback_t<BasicJsonType> cb = nullptr,
+-                    const bool allow_exceptions_ = true,
+-                    const bool skip_comments = false)
+-        : callback(cb)
+-        , m_lexer(std::move(adapter), skip_comments)
+-        , allow_exceptions(allow_exceptions_)
+-    {
+-        // read first token
+-        get_token();
+-    }
+-
+-    /*!
+-    @brief public parser interface
+-
+-    @param[in] strict      whether to expect the last token to be EOF
+-    @param[in,out] result  parsed JSON value
+-
+-    @throw parse_error.101 in case of an unexpected token
+-    @throw parse_error.102 if to_unicode fails or surrogate error
+-    @throw parse_error.103 if to_unicode fails
+-    */
+-    void parse(const bool strict, BasicJsonType& result)
+-    {
+-        if (callback)
+-        {
+-            json_sax_dom_callback_parser<BasicJsonType> sdp(result, callback, allow_exceptions);
+-            sax_parse_internal(&sdp);
+-
+-            // in strict mode, input must be completely read
+-            if (strict && (get_token() != token_type::end_of_input))
+-            {
+-                sdp.parse_error(m_lexer.get_position(),
+-                                m_lexer.get_token_string(),
+-                                parse_error::create(101, m_lexer.get_position(),
+-                                                    exception_message(token_type::end_of_input, "value"), BasicJsonType()));
+-            }
+-
+-            // in case of an error, return discarded value
+-            if (sdp.is_errored())
+-            {
+-                result = value_t::discarded;
+-                return;
+-            }
+-
+-            // set top-level value to null if it was discarded by the callback
+-            // function
+-            if (result.is_discarded())
+-            {
+-                result = nullptr;
+-            }
+-        }
+-        else
+-        {
+-            json_sax_dom_parser<BasicJsonType> sdp(result, allow_exceptions);
+-            sax_parse_internal(&sdp);
+-
+-            // in strict mode, input must be completely read
+-            if (strict && (get_token() != token_type::end_of_input))
+-            {
+-                sdp.parse_error(m_lexer.get_position(),
+-                                m_lexer.get_token_string(),
+-                                parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), BasicJsonType()));
+-            }
+-
+-            // in case of an error, return discarded value
+-            if (sdp.is_errored())
+-            {
+-                result = value_t::discarded;
+-                return;
+-            }
+-        }
+-
+-        result.assert_invariant();
+-    }
+-
+-    /*!
+-    @brief public accept interface
+-
+-    @param[in] strict  whether to expect the last token to be EOF
+-    @return whether the input is a proper JSON text
+-    */
+-    bool accept(const bool strict = true)
+-    {
+-        json_sax_acceptor<BasicJsonType> sax_acceptor;
+-        return sax_parse(&sax_acceptor, strict);
+-    }
+-
+-    template<typename SAX>
+-    JSON_HEDLEY_NON_NULL(2)
+-    bool sax_parse(SAX* sax, const bool strict = true)
+-    {
+-        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
+-        const bool result = sax_parse_internal(sax);
+-
+-        // strict mode: next byte must be EOF
+-        if (result && strict && (get_token() != token_type::end_of_input))
+-        {
+-            return sax->parse_error(m_lexer.get_position(),
+-                                    m_lexer.get_token_string(),
+-                                    parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), BasicJsonType()));
+-        }
+-
+-        return result;
+-    }
+-
+-  private:
+-    template<typename SAX>
+-    JSON_HEDLEY_NON_NULL(2)
+-    bool sax_parse_internal(SAX* sax)
+-    {
+-        // stack to remember the hierarchy of structured values we are parsing
+-        // true = array; false = object
+-        std::vector<bool> states;
+-        // value to avoid a goto (see comment where set to true)
+-        bool skip_to_state_evaluation = false;
+-
+-        while (true)
+-        {
+-            if (!skip_to_state_evaluation)
+-            {
+-                // invariant: get_token() was called before each iteration
+-                switch (last_token)
+-                {
+-                    case token_type::begin_object:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->start_object(static_cast<std::size_t>(-1))))
+-                        {
+-                            return false;
+-                        }
+-
+-                        // closing } -> we are done
+-                        if (get_token() == token_type::end_object)
+-                        {
+-                            if (JSON_HEDLEY_UNLIKELY(!sax->end_object()))
+-                            {
+-                                return false;
+-                            }
+-                            break;
+-                        }
+-
+-                        // parse key
+-                        if (JSON_HEDLEY_UNLIKELY(last_token != token_type::value_string))
+-                        {
+-                            return sax->parse_error(m_lexer.get_position(),
+-                                                    m_lexer.get_token_string(),
+-                                                    parse_error::create(101, m_lexer.get_position(), exception_message(token_type::value_string, "object key"), BasicJsonType()));
+-                        }
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->key(m_lexer.get_string())))
+-                        {
+-                            return false;
+-                        }
+-
+-                        // parse separator (:)
+-                        if (JSON_HEDLEY_UNLIKELY(get_token() != token_type::name_separator))
+-                        {
+-                            return sax->parse_error(m_lexer.get_position(),
+-                                                    m_lexer.get_token_string(),
+-                                                    parse_error::create(101, m_lexer.get_position(), exception_message(token_type::name_separator, "object separator"), BasicJsonType()));
+-                        }
+-
+-                        // remember we are now inside an object
+-                        states.push_back(false);
+-
+-                        // parse values
+-                        get_token();
+-                        continue;
+-                    }
+-
+-                    case token_type::begin_array:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->start_array(static_cast<std::size_t>(-1))))
+-                        {
+-                            return false;
+-                        }
+-
+-                        // closing ] -> we are done
+-                        if (get_token() == token_type::end_array)
+-                        {
+-                            if (JSON_HEDLEY_UNLIKELY(!sax->end_array()))
+-                            {
+-                                return false;
+-                            }
+-                            break;
+-                        }
+-
+-                        // remember we are now inside an array
+-                        states.push_back(true);
+-
+-                        // parse values (no need to call get_token)
+-                        continue;
+-                    }
+-
+-                    case token_type::value_float:
+-                    {
+-                        const auto res = m_lexer.get_number_float();
+-
+-                        if (JSON_HEDLEY_UNLIKELY(!std::isfinite(res)))
+-                        {
+-                            return sax->parse_error(m_lexer.get_position(),
+-                                                    m_lexer.get_token_string(),
+-                                                    out_of_range::create(406, "number overflow parsing '" + m_lexer.get_token_string() + "'", BasicJsonType()));
+-                        }
+-
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->number_float(res, m_lexer.get_string())))
+-                        {
+-                            return false;
+-                        }
+-
+-                        break;
+-                    }
+-
+-                    case token_type::literal_false:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->boolean(false)))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::literal_null:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->null()))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::literal_true:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->boolean(true)))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::value_integer:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->number_integer(m_lexer.get_number_integer())))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::value_string:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->string(m_lexer.get_string())))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::value_unsigned:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->number_unsigned(m_lexer.get_number_unsigned())))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::parse_error:
+-                    {
+-                        // using "uninitialized" to avoid "expected" message
+-                        return sax->parse_error(m_lexer.get_position(),
+-                                                m_lexer.get_token_string(),
+-                                                parse_error::create(101, m_lexer.get_position(), exception_message(token_type::uninitialized, "value"), BasicJsonType()));
+-                    }
+-
+-                    case token_type::uninitialized:
+-                    case token_type::end_array:
+-                    case token_type::end_object:
+-                    case token_type::name_separator:
+-                    case token_type::value_separator:
+-                    case token_type::end_of_input:
+-                    case token_type::literal_or_value:
+-                    default: // the last token was unexpected
+-                    {
+-                        return sax->parse_error(m_lexer.get_position(),
+-                                                m_lexer.get_token_string(),
+-                                                parse_error::create(101, m_lexer.get_position(), exception_message(token_type::literal_or_value, "value"), BasicJsonType()));
+-                    }
+-                }
+-            }
+-            else
+-            {
+-                skip_to_state_evaluation = false;
+-            }
+-
+-            // we reached this line after we successfully parsed a value
+-            if (states.empty())
+-            {
+-                // empty stack: we reached the end of the hierarchy: done
+-                return true;
+-            }
+-
+-            if (states.back())  // array
+-            {
+-                // comma -> next value
+-                if (get_token() == token_type::value_separator)
+-                {
+-                    // parse a new value
+-                    get_token();
+-                    continue;
+-                }
+-
+-                // closing ]
+-                if (JSON_HEDLEY_LIKELY(last_token == token_type::end_array))
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!sax->end_array()))
+-                    {
+-                        return false;
+-                    }
+-
+-                    // We are done with this array. Before we can parse a
+-                    // new value, we need to evaluate the new state first.
+-                    // By setting skip_to_state_evaluation to false, we
+-                    // are effectively jumping to the beginning of this if.
+-                    JSON_ASSERT(!states.empty());
+-                    states.pop_back();
+-                    skip_to_state_evaluation = true;
+-                    continue;
+-                }
+-
+-                return sax->parse_error(m_lexer.get_position(),
+-                                        m_lexer.get_token_string(),
+-                                        parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_array, "array"), BasicJsonType()));
+-            }
+-
+-            // states.back() is false -> object
+-
+-            // comma -> next value
+-            if (get_token() == token_type::value_separator)
+-            {
+-                // parse key
+-                if (JSON_HEDLEY_UNLIKELY(get_token() != token_type::value_string))
+-                {
+-                    return sax->parse_error(m_lexer.get_position(),
+-                                            m_lexer.get_token_string(),
+-                                            parse_error::create(101, m_lexer.get_position(), exception_message(token_type::value_string, "object key"), BasicJsonType()));
+-                }
+-
+-                if (JSON_HEDLEY_UNLIKELY(!sax->key(m_lexer.get_string())))
+-                {
+-                    return false;
+-                }
+-
+-                // parse separator (:)
+-                if (JSON_HEDLEY_UNLIKELY(get_token() != token_type::name_separator))
+-                {
+-                    return sax->parse_error(m_lexer.get_position(),
+-                                            m_lexer.get_token_string(),
+-                                            parse_error::create(101, m_lexer.get_position(), exception_message(token_type::name_separator, "object separator"), BasicJsonType()));
+-                }
+-
+-                // parse values
+-                get_token();
+-                continue;
+-            }
+-
+-            // closing }
+-            if (JSON_HEDLEY_LIKELY(last_token == token_type::end_object))
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!sax->end_object()))
+-                {
+-                    return false;
+-                }
+-
+-                // We are done with this object. Before we can parse a
+-                // new value, we need to evaluate the new state first.
+-                // By setting skip_to_state_evaluation to false, we
+-                // are effectively jumping to the beginning of this if.
+-                JSON_ASSERT(!states.empty());
+-                states.pop_back();
+-                skip_to_state_evaluation = true;
+-                continue;
+-            }
+-
+-            return sax->parse_error(m_lexer.get_position(),
+-                                    m_lexer.get_token_string(),
+-                                    parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_object, "object"), BasicJsonType()));
+-        }
+-    }
+-
+-    /// get next token from lexer
+-    token_type get_token()
+-    {
+-        return last_token = m_lexer.scan();
+-    }
+-
+-    std::string exception_message(const token_type expected, const std::string& context)
+-    {
+-        std::string error_msg = "syntax error ";
+-
+-        if (!context.empty())
+-        {
+-            error_msg += "while parsing " + context + " ";
+-        }
+-
+-        error_msg += "- ";
+-
+-        if (last_token == token_type::parse_error)
+-        {
+-            error_msg += std::string(m_lexer.get_error_message()) + "; last read: '" +
+-                         m_lexer.get_token_string() + "'";
+-        }
+-        else
+-        {
+-            error_msg += "unexpected " + std::string(lexer_t::token_type_name(last_token));
+-        }
+-
+-        if (expected != token_type::uninitialized)
+-        {
+-            error_msg += "; expected " + std::string(lexer_t::token_type_name(expected));
+-        }
+-
+-        return error_msg;
+-    }
+-
+-  private:
+-    /// callback function
+-    const parser_callback_t<BasicJsonType> callback = nullptr;
+-    /// the type of the last read token
+-    token_type last_token = token_type::uninitialized;
+-    /// the lexer
+-    lexer_t m_lexer;
+-    /// whether to throw exceptions in case of errors
+-    const bool allow_exceptions = true;
+-};
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/iterators/internal_iterator.hpp>
+-
+-
+-// #include <nlohmann/detail/iterators/primitive_iterator.hpp>
+-
+-
+-#include <cstddef> // ptrdiff_t
+-#include <limits>  // numeric_limits
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/*
+-@brief an iterator for primitive JSON types
+-
+-This class models an iterator for primitive JSON types (boolean, number,
+-string). It's only purpose is to allow the iterator/const_iterator classes
+-to "iterate" over primitive values. Internally, the iterator is modeled by
+-a `difference_type` variable. Value begin_value (`0`) models the begin,
+-end_value (`1`) models past the end.
+-*/
+-class primitive_iterator_t
+-{
+-  private:
+-    using difference_type = std::ptrdiff_t;
+-    static constexpr difference_type begin_value = 0;
+-    static constexpr difference_type end_value = begin_value + 1;
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /// iterator as signed integer type
+-    difference_type m_it = (std::numeric_limits<std::ptrdiff_t>::min)();
+-
+-  public:
+-    constexpr difference_type get_value() const noexcept
+-    {
+-        return m_it;
+-    }
+-
+-    /// set iterator to a defined beginning
+-    void set_begin() noexcept
+-    {
+-        m_it = begin_value;
+-    }
+-
+-    /// set iterator to a defined past the end
+-    void set_end() noexcept
+-    {
+-        m_it = end_value;
+-    }
+-
+-    /// return whether the iterator can be dereferenced
+-    constexpr bool is_begin() const noexcept
+-    {
+-        return m_it == begin_value;
+-    }
+-
+-    /// return whether the iterator is at end
+-    constexpr bool is_end() const noexcept
+-    {
+-        return m_it == end_value;
+-    }
+-
+-    friend constexpr bool operator==(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept
+-    {
+-        return lhs.m_it == rhs.m_it;
+-    }
+-
+-    friend constexpr bool operator<(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept
+-    {
+-        return lhs.m_it < rhs.m_it;
+-    }
+-
+-    primitive_iterator_t operator+(difference_type n) noexcept
+-    {
+-        auto result = *this;
+-        result += n;
+-        return result;
+-    }
+-
+-    friend constexpr difference_type operator-(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept
+-    {
+-        return lhs.m_it - rhs.m_it;
+-    }
+-
+-    primitive_iterator_t& operator++() noexcept
+-    {
+-        ++m_it;
+-        return *this;
+-    }
+-
+-    primitive_iterator_t const operator++(int) noexcept // NOLINT(readability-const-return-type)
+-    {
+-        auto result = *this;
+-        ++m_it;
+-        return result;
+-    }
+-
+-    primitive_iterator_t& operator--() noexcept
+-    {
+-        --m_it;
+-        return *this;
+-    }
+-
+-    primitive_iterator_t const operator--(int) noexcept // NOLINT(readability-const-return-type)
+-    {
+-        auto result = *this;
+-        --m_it;
+-        return result;
+-    }
+-
+-    primitive_iterator_t& operator+=(difference_type n) noexcept
+-    {
+-        m_it += n;
+-        return *this;
+-    }
+-
+-    primitive_iterator_t& operator-=(difference_type n) noexcept
+-    {
+-        m_it -= n;
+-        return *this;
+-    }
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/*!
+-@brief an iterator value
+-
+-@note This structure could easily be a union, but MSVC currently does not allow
+-unions members with complex constructors, see https://github.com/nlohmann/json/pull/105.
+-*/
+-template<typename BasicJsonType> struct internal_iterator
+-{
+-    /// iterator for JSON objects
+-    typename BasicJsonType::object_t::iterator object_iterator {};
+-    /// iterator for JSON arrays
+-    typename BasicJsonType::array_t::iterator array_iterator {};
+-    /// generic iterator for all other types
+-    primitive_iterator_t primitive_iterator {};
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/iterators/iter_impl.hpp>
+-
+-
+-#include <iterator> // iterator, random_access_iterator_tag, bidirectional_iterator_tag, advance, next
+-#include <type_traits> // conditional, is_const, remove_const
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/iterators/internal_iterator.hpp>
+-
+-// #include <nlohmann/detail/iterators/primitive_iterator.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-// forward declare, to be able to friend it later on
+-template<typename IteratorType> class iteration_proxy;
+-template<typename IteratorType> class iteration_proxy_value;
+-
+-/*!
+-@brief a template for a bidirectional iterator for the @ref basic_json class
+-This class implements a both iterators (iterator and const_iterator) for the
+-@ref basic_json class.
+-@note An iterator is called *initialized* when a pointer to a JSON value has
+-      been set (e.g., by a constructor or a copy assignment). If the iterator is
+-      default-constructed, it is *uninitialized* and most methods are undefined.
+-      **The library uses assertions to detect calls on uninitialized iterators.**
+-@requirement The class satisfies the following concept requirements:
+--
+-[BidirectionalIterator](https://en.cppreference.com/w/cpp/named_req/BidirectionalIterator):
+-  The iterator that can be moved can be moved in both directions (i.e.
+-  incremented and decremented).
+-@since version 1.0.0, simplified in version 2.0.9, change to bidirectional
+-       iterators in version 3.0.0 (see https://github.com/nlohmann/json/issues/593)
+-*/
+-template<typename BasicJsonType>
+-class iter_impl // NOLINT(cppcoreguidelines-special-member-functions,hicpp-special-member-functions)
+-{
+-    /// the iterator with BasicJsonType of different const-ness
+-    using other_iter_impl = iter_impl<typename std::conditional<std::is_const<BasicJsonType>::value, typename std::remove_const<BasicJsonType>::type, const BasicJsonType>::type>;
+-    /// allow basic_json to access private members
+-    friend other_iter_impl;
+-    friend BasicJsonType;
+-    friend iteration_proxy<iter_impl>;
+-    friend iteration_proxy_value<iter_impl>;
+-
+-    using object_t = typename BasicJsonType::object_t;
+-    using array_t = typename BasicJsonType::array_t;
+-    // make sure BasicJsonType is basic_json or const basic_json
+-    static_assert(is_basic_json<typename std::remove_const<BasicJsonType>::type>::value,
+-                  "iter_impl only accepts (const) basic_json");
+-
+-  public:
+-
+-    /// The std::iterator class template (used as a base class to provide typedefs) is deprecated in C++17.
+-    /// The C++ Standard has never required user-defined iterators to derive from std::iterator.
+-    /// A user-defined iterator should provide publicly accessible typedefs named
+-    /// iterator_category, value_type, difference_type, pointer, and reference.
+-    /// Note that value_type is required to be non-const, even for constant iterators.
+-    using iterator_category = std::bidirectional_iterator_tag;
+-
+-    /// the type of the values when the iterator is dereferenced
+-    using value_type = typename BasicJsonType::value_type;
+-    /// a type to represent differences between iterators
+-    using difference_type = typename BasicJsonType::difference_type;
+-    /// defines a pointer to the type iterated over (value_type)
+-    using pointer = typename std::conditional<std::is_const<BasicJsonType>::value,
+-          typename BasicJsonType::const_pointer,
+-          typename BasicJsonType::pointer>::type;
+-    /// defines a reference to the type iterated over (value_type)
+-    using reference =
+-        typename std::conditional<std::is_const<BasicJsonType>::value,
+-        typename BasicJsonType::const_reference,
+-        typename BasicJsonType::reference>::type;
+-
+-    iter_impl() = default;
+-    ~iter_impl() = default;
+-    iter_impl(iter_impl&&) noexcept = default;
+-    iter_impl& operator=(iter_impl&&) noexcept = default;
+-
+-    /*!
+-    @brief constructor for a given JSON instance
+-    @param[in] object  pointer to a JSON object for this iterator
+-    @pre object != nullptr
+-    @post The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    explicit iter_impl(pointer object) noexcept : m_object(object)
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                m_it.object_iterator = typename object_t::iterator();
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_it.array_iterator = typename array_t::iterator();
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                m_it.primitive_iterator = primitive_iterator_t();
+-                break;
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @note The conventional copy constructor and copy assignment are implicitly
+-          defined. Combined with the following converting constructor and
+-          assignment, they support: (1) copy from iterator to iterator, (2)
+-          copy from const iterator to const iterator, and (3) conversion from
+-          iterator to const iterator. However conversion from const iterator
+-          to iterator is not defined.
+-    */
+-
+-    /*!
+-    @brief const copy constructor
+-    @param[in] other const iterator to copy from
+-    @note This copy constructor had to be defined explicitly to circumvent a bug
+-          occurring on msvc v19.0 compiler (VS 2015) debug build. For more
+-          information refer to: https://github.com/nlohmann/json/issues/1608
+-    */
+-    iter_impl(const iter_impl<const BasicJsonType>& other) noexcept
+-        : m_object(other.m_object), m_it(other.m_it)
+-    {}
+-
+-    /*!
+-    @brief converting assignment
+-    @param[in] other const iterator to copy from
+-    @return const/non-const iterator
+-    @note It is not checked whether @a other is initialized.
+-    */
+-    iter_impl& operator=(const iter_impl<const BasicJsonType>& other) noexcept
+-    {
+-        if (&other != this)
+-        {
+-            m_object = other.m_object;
+-            m_it = other.m_it;
+-        }
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief converting constructor
+-    @param[in] other  non-const iterator to copy from
+-    @note It is not checked whether @a other is initialized.
+-    */
+-    iter_impl(const iter_impl<typename std::remove_const<BasicJsonType>::type>& other) noexcept
+-        : m_object(other.m_object), m_it(other.m_it)
+-    {}
+-
+-    /*!
+-    @brief converting assignment
+-    @param[in] other  non-const iterator to copy from
+-    @return const/non-const iterator
+-    @note It is not checked whether @a other is initialized.
+-    */
+-    iter_impl& operator=(const iter_impl<typename std::remove_const<BasicJsonType>::type>& other) noexcept // NOLINT(cert-oop54-cpp)
+-    {
+-        m_object = other.m_object;
+-        m_it = other.m_it;
+-        return *this;
+-    }
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /*!
+-    @brief set the iterator to the first value
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    void set_begin() noexcept
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                m_it.object_iterator = m_object->m_value.object->begin();
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_it.array_iterator = m_object->m_value.array->begin();
+-                break;
+-            }
+-
+-            case value_t::null:
+-            {
+-                // set to end so begin()==end() is true: null is empty
+-                m_it.primitive_iterator.set_end();
+-                break;
+-            }
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                m_it.primitive_iterator.set_begin();
+-                break;
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief set the iterator past the last value
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    void set_end() noexcept
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                m_it.object_iterator = m_object->m_value.object->end();
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_it.array_iterator = m_object->m_value.array->end();
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                m_it.primitive_iterator.set_end();
+-                break;
+-            }
+-        }
+-    }
+-
+-  public:
+-    /*!
+-    @brief return a reference to the value pointed to by the iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    reference operator*() const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                JSON_ASSERT(m_it.object_iterator != m_object->m_value.object->end());
+-                return m_it.object_iterator->second;
+-            }
+-
+-            case value_t::array:
+-            {
+-                JSON_ASSERT(m_it.array_iterator != m_object->m_value.array->end());
+-                return *m_it.array_iterator;
+-            }
+-
+-            case value_t::null:
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.is_begin()))
+-                {
+-                    return *m_object;
+-                }
+-
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief dereference the iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    pointer operator->() const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                JSON_ASSERT(m_it.object_iterator != m_object->m_value.object->end());
+-                return &(m_it.object_iterator->second);
+-            }
+-
+-            case value_t::array:
+-            {
+-                JSON_ASSERT(m_it.array_iterator != m_object->m_value.array->end());
+-                return &*m_it.array_iterator;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.is_begin()))
+-                {
+-                    return m_object;
+-                }
+-
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief post-increment (it++)
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl const operator++(int) // NOLINT(readability-const-return-type)
+-    {
+-        auto result = *this;
+-        ++(*this);
+-        return result;
+-    }
+-
+-    /*!
+-    @brief pre-increment (++it)
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl& operator++()
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                std::advance(m_it.object_iterator, 1);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                std::advance(m_it.array_iterator, 1);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                ++m_it.primitive_iterator;
+-                break;
+-            }
+-        }
+-
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief post-decrement (it--)
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl const operator--(int) // NOLINT(readability-const-return-type)
+-    {
+-        auto result = *this;
+-        --(*this);
+-        return result;
+-    }
+-
+-    /*!
+-    @brief pre-decrement (--it)
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl& operator--()
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                std::advance(m_it.object_iterator, -1);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                std::advance(m_it.array_iterator, -1);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                --m_it.primitive_iterator;
+-                break;
+-            }
+-        }
+-
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief comparison: equal
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    template < typename IterImpl, detail::enable_if_t < (std::is_same<IterImpl, iter_impl>::value || std::is_same<IterImpl, other_iter_impl>::value), std::nullptr_t > = nullptr >
+-    bool operator==(const IterImpl& other) const
+-    {
+-        // if objects are not the same, the comparison is undefined
+-        if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", *m_object));
+-        }
+-
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                return (m_it.object_iterator == other.m_it.object_iterator);
+-
+-            case value_t::array:
+-                return (m_it.array_iterator == other.m_it.array_iterator);
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                return (m_it.primitive_iterator == other.m_it.primitive_iterator);
+-        }
+-    }
+-
+-    /*!
+-    @brief comparison: not equal
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    template < typename IterImpl, detail::enable_if_t < (std::is_same<IterImpl, iter_impl>::value || std::is_same<IterImpl, other_iter_impl>::value), std::nullptr_t > = nullptr >
+-    bool operator!=(const IterImpl& other) const
+-    {
+-        return !operator==(other);
+-    }
+-
+-    /*!
+-    @brief comparison: smaller
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    bool operator<(const iter_impl& other) const
+-    {
+-        // if objects are not the same, the comparison is undefined
+-        if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", *m_object));
+-        }
+-
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                JSON_THROW(invalid_iterator::create(213, "cannot compare order of object iterators", *m_object));
+-
+-            case value_t::array:
+-                return (m_it.array_iterator < other.m_it.array_iterator);
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                return (m_it.primitive_iterator < other.m_it.primitive_iterator);
+-        }
+-    }
+-
+-    /*!
+-    @brief comparison: less than or equal
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    bool operator<=(const iter_impl& other) const
+-    {
+-        return !other.operator < (*this);
+-    }
+-
+-    /*!
+-    @brief comparison: greater than
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    bool operator>(const iter_impl& other) const
+-    {
+-        return !operator<=(other);
+-    }
+-
+-    /*!
+-    @brief comparison: greater than or equal
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    bool operator>=(const iter_impl& other) const
+-    {
+-        return !operator<(other);
+-    }
+-
+-    /*!
+-    @brief add to iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl& operator+=(difference_type i)
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                JSON_THROW(invalid_iterator::create(209, "cannot use offsets with object iterators", *m_object));
+-
+-            case value_t::array:
+-            {
+-                std::advance(m_it.array_iterator, i);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                m_it.primitive_iterator += i;
+-                break;
+-            }
+-        }
+-
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief subtract from iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl& operator-=(difference_type i)
+-    {
+-        return operator+=(-i);
+-    }
+-
+-    /*!
+-    @brief add to iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl operator+(difference_type i) const
+-    {
+-        auto result = *this;
+-        result += i;
+-        return result;
+-    }
+-
+-    /*!
+-    @brief addition of distance and iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    friend iter_impl operator+(difference_type i, const iter_impl& it)
+-    {
+-        auto result = it;
+-        result += i;
+-        return result;
+-    }
+-
+-    /*!
+-    @brief subtract from iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl operator-(difference_type i) const
+-    {
+-        auto result = *this;
+-        result -= i;
+-        return result;
+-    }
+-
+-    /*!
+-    @brief return difference
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    difference_type operator-(const iter_impl& other) const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                JSON_THROW(invalid_iterator::create(209, "cannot use offsets with object iterators", *m_object));
+-
+-            case value_t::array:
+-                return m_it.array_iterator - other.m_it.array_iterator;
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                return m_it.primitive_iterator - other.m_it.primitive_iterator;
+-        }
+-    }
+-
+-    /*!
+-    @brief access to successor
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    reference operator[](difference_type n) const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                JSON_THROW(invalid_iterator::create(208, "cannot use operator[] for object iterators", *m_object));
+-
+-            case value_t::array:
+-                return *std::next(m_it.array_iterator, n);
+-
+-            case value_t::null:
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.get_value() == -n))
+-                {
+-                    return *m_object;
+-                }
+-
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief return the key of an object iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    const typename object_t::key_type& key() const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        if (JSON_HEDLEY_LIKELY(m_object->is_object()))
+-        {
+-            return m_it.object_iterator->first;
+-        }
+-
+-        JSON_THROW(invalid_iterator::create(207, "cannot use key() for non-object iterators", *m_object));
+-    }
+-
+-    /*!
+-    @brief return the value of an iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    reference value() const
+-    {
+-        return operator*();
+-    }
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /// associated JSON instance
+-    pointer m_object = nullptr;
+-    /// the actual iterator of the associated instance
+-    internal_iterator<typename std::remove_const<BasicJsonType>::type> m_it {};
+-};
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/iterators/iteration_proxy.hpp>
+-
+-// #include <nlohmann/detail/iterators/json_reverse_iterator.hpp>
+-
+-
+-#include <cstddef> // ptrdiff_t
+-#include <iterator> // reverse_iterator
+-#include <utility> // declval
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-//////////////////////
+-// reverse_iterator //
+-//////////////////////
+-
+-/*!
+-@brief a template for a reverse iterator class
+-
+-@tparam Base the base iterator type to reverse. Valid types are @ref
+-iterator (to create @ref reverse_iterator) and @ref const_iterator (to
+-create @ref const_reverse_iterator).
+-
+-@requirement The class satisfies the following concept requirements:
+--
+-[BidirectionalIterator](https://en.cppreference.com/w/cpp/named_req/BidirectionalIterator):
+-  The iterator that can be moved can be moved in both directions (i.e.
+-  incremented and decremented).
+-- [OutputIterator](https://en.cppreference.com/w/cpp/named_req/OutputIterator):
+-  It is possible to write to the pointed-to element (only if @a Base is
+-  @ref iterator).
+-
+-@since version 1.0.0
+-*/
+-template<typename Base>
+-class json_reverse_iterator : public std::reverse_iterator<Base>
+-{
+-  public:
+-    using difference_type = std::ptrdiff_t;
+-    /// shortcut to the reverse iterator adapter
+-    using base_iterator = std::reverse_iterator<Base>;
+-    /// the reference type for the pointed-to element
+-    using reference = typename Base::reference;
+-
+-    /// create reverse iterator from iterator
+-    explicit json_reverse_iterator(const typename base_iterator::iterator_type& it) noexcept
+-        : base_iterator(it) {}
+-
+-    /// create reverse iterator from base class
+-    explicit json_reverse_iterator(const base_iterator& it) noexcept : base_iterator(it) {}
+-
+-    /// post-increment (it++)
+-    json_reverse_iterator const operator++(int) // NOLINT(readability-const-return-type)
+-    {
+-        return static_cast<json_reverse_iterator>(base_iterator::operator++(1));
+-    }
+-
+-    /// pre-increment (++it)
+-    json_reverse_iterator& operator++()
+-    {
+-        return static_cast<json_reverse_iterator&>(base_iterator::operator++());
+-    }
+-
+-    /// post-decrement (it--)
+-    json_reverse_iterator const operator--(int) // NOLINT(readability-const-return-type)
+-    {
+-        return static_cast<json_reverse_iterator>(base_iterator::operator--(1));
+-    }
+-
+-    /// pre-decrement (--it)
+-    json_reverse_iterator& operator--()
+-    {
+-        return static_cast<json_reverse_iterator&>(base_iterator::operator--());
+-    }
+-
+-    /// add to iterator
+-    json_reverse_iterator& operator+=(difference_type i)
+-    {
+-        return static_cast<json_reverse_iterator&>(base_iterator::operator+=(i));
+-    }
+-
+-    /// add to iterator
+-    json_reverse_iterator operator+(difference_type i) const
+-    {
+-        return static_cast<json_reverse_iterator>(base_iterator::operator+(i));
+-    }
+-
+-    /// subtract from iterator
+-    json_reverse_iterator operator-(difference_type i) const
+-    {
+-        return static_cast<json_reverse_iterator>(base_iterator::operator-(i));
+-    }
+-
+-    /// return difference
+-    difference_type operator-(const json_reverse_iterator& other) const
+-    {
+-        return base_iterator(*this) - base_iterator(other);
+-    }
+-
+-    /// access to successor
+-    reference operator[](difference_type n) const
+-    {
+-        return *(this->operator+(n));
+-    }
+-
+-    /// return the key of an object iterator
+-    auto key() const -> decltype(std::declval<Base>().key())
+-    {
+-        auto it = --this->base();
+-        return it.key();
+-    }
+-
+-    /// return the value of an iterator
+-    reference value() const
+-    {
+-        auto it = --this->base();
+-        return it.operator * ();
+-    }
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/iterators/primitive_iterator.hpp>
+-
+-// #include <nlohmann/detail/json_pointer.hpp>
+-
+-
+-#include <algorithm> // all_of
+-#include <cctype> // isdigit
+-#include <limits> // max
+-#include <numeric> // accumulate
+-#include <string> // string
+-#include <utility> // move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/string_escape.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-
+-/// @brief JSON Pointer defines a string syntax for identifying a specific value within a JSON document
+-/// @sa https://json.nlohmann.me/api/json_pointer/
+-template<typename BasicJsonType>
+-class json_pointer
+-{
+-    // allow basic_json to access private members
+-    NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-    friend class basic_json;
+-
+-  public:
+-    /// @brief create JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/json_pointer/
+-    explicit json_pointer(const std::string& s = "")
+-        : reference_tokens(split(s))
+-    {}
+-
+-    /// @brief return a string representation of the JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/to_string/
+-    std::string to_string() const
+-    {
+-        return std::accumulate(reference_tokens.begin(), reference_tokens.end(),
+-                               std::string{},
+-                               [](const std::string & a, const std::string & b)
+-        {
+-            return a + "/" + detail::escape(b);
+-        });
+-    }
+-
+-    /// @brief return a string representation of the JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_string/
+-    operator std::string() const
+-    {
+-        return to_string();
+-    }
+-
+-    /// @brief append another JSON pointer at the end of this JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slasheq/
+-    json_pointer& operator/=(const json_pointer& ptr)
+-    {
+-        reference_tokens.insert(reference_tokens.end(),
+-                                ptr.reference_tokens.begin(),
+-                                ptr.reference_tokens.end());
+-        return *this;
+-    }
+-
+-    /// @brief append an unescaped reference token at the end of this JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slasheq/
+-    json_pointer& operator/=(std::string token)
+-    {
+-        push_back(std::move(token));
+-        return *this;
+-    }
+-
+-    /// @brief append an array index at the end of this JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slasheq/
+-    json_pointer& operator/=(std::size_t array_idx)
+-    {
+-        return *this /= std::to_string(array_idx);
+-    }
+-
+-    /// @brief create a new JSON pointer by appending the right JSON pointer at the end of the left JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slash/
+-    friend json_pointer operator/(const json_pointer& lhs,
+-                                  const json_pointer& rhs)
+-    {
+-        return json_pointer(lhs) /= rhs;
+-    }
+-
+-    /// @brief create a new JSON pointer by appending the unescaped token at the end of the JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slash/
+-    friend json_pointer operator/(const json_pointer& lhs, std::string token) // NOLINT(performance-unnecessary-value-param)
+-    {
+-        return json_pointer(lhs) /= std::move(token);
+-    }
+-
+-    /// @brief create a new JSON pointer by appending the array-index-token at the end of the JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slash/
+-    friend json_pointer operator/(const json_pointer& lhs, std::size_t array_idx)
+-    {
+-        return json_pointer(lhs) /= array_idx;
+-    }
+-
+-    /// @brief returns the parent of this JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/parent_pointer/
+-    json_pointer parent_pointer() const
+-    {
+-        if (empty())
+-        {
+-            return *this;
+-        }
+-
+-        json_pointer res = *this;
+-        res.pop_back();
+-        return res;
+-    }
+-
+-    /// @brief remove last reference token
+-    /// @sa https://json.nlohmann.me/api/json_pointer/pop_back/
+-    void pop_back()
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(empty()))
+-        {
+-            JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", BasicJsonType()));
+-        }
+-
+-        reference_tokens.pop_back();
+-    }
+-
+-    /// @brief return last reference token
+-    /// @sa https://json.nlohmann.me/api/json_pointer/back/
+-    const std::string& back() const
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(empty()))
+-        {
+-            JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", BasicJsonType()));
+-        }
+-
+-        return reference_tokens.back();
+-    }
+-
+-    /// @brief append an unescaped token at the end of the reference pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/push_back/
+-    void push_back(const std::string& token)
+-    {
+-        reference_tokens.push_back(token);
+-    }
+-
+-    /// @brief append an unescaped token at the end of the reference pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/push_back/
+-    void push_back(std::string&& token)
+-    {
+-        reference_tokens.push_back(std::move(token));
+-    }
+-
+-    /// @brief return whether pointer points to the root document
+-    /// @sa https://json.nlohmann.me/api/json_pointer/empty/
+-    bool empty() const noexcept
+-    {
+-        return reference_tokens.empty();
+-    }
+-
+-  private:
+-    /*!
+-    @param[in] s  reference token to be converted into an array index
+-
+-    @return integer representation of @a s
+-
+-    @throw parse_error.106  if an array index begins with '0'
+-    @throw parse_error.109  if an array index begins not with a digit
+-    @throw out_of_range.404 if string @a s could not be converted to an integer
+-    @throw out_of_range.410 if an array index exceeds size_type
+-    */
+-    static typename BasicJsonType::size_type array_index(const std::string& s)
+-    {
+-        using size_type = typename BasicJsonType::size_type;
+-
+-        // error condition (cf. RFC 6901, Sect. 4)
+-        if (JSON_HEDLEY_UNLIKELY(s.size() > 1 && s[0] == '0'))
+-        {
+-            JSON_THROW(detail::parse_error::create(106, 0, "array index '" + s + "' must not begin with '0'", BasicJsonType()));
+-        }
+-
+-        // error condition (cf. RFC 6901, Sect. 4)
+-        if (JSON_HEDLEY_UNLIKELY(s.size() > 1 && !(s[0] >= '1' && s[0] <= '9')))
+-        {
+-            JSON_THROW(detail::parse_error::create(109, 0, "array index '" + s + "' is not a number", BasicJsonType()));
+-        }
+-
+-        std::size_t processed_chars = 0;
+-        unsigned long long res = 0;  // NOLINT(runtime/int)
+-        JSON_TRY
+-        {
+-            res = std::stoull(s, &processed_chars);
+-        }
+-        JSON_CATCH(std::out_of_range&)
+-        {
+-            JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + s + "'", BasicJsonType()));
+-        }
+-
+-        // check if the string was completely read
+-        if (JSON_HEDLEY_UNLIKELY(processed_chars != s.size()))
+-        {
+-            JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + s + "'", BasicJsonType()));
+-        }
+-
+-        // only triggered on special platforms (like 32bit), see also
+-        // https://github.com/nlohmann/json/pull/2203
+-        if (res >= static_cast<unsigned long long>((std::numeric_limits<size_type>::max)()))  // NOLINT(runtime/int)
+-        {
+-            JSON_THROW(detail::out_of_range::create(410, "array index " + s + " exceeds size_type", BasicJsonType())); // LCOV_EXCL_LINE
+-        }
+-
+-        return static_cast<size_type>(res);
+-    }
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    json_pointer top() const
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(empty()))
+-        {
+-            JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", BasicJsonType()));
+-        }
+-
+-        json_pointer result = *this;
+-        result.reference_tokens = {reference_tokens[0]};
+-        return result;
+-    }
+-
+-  private:
+-    /*!
+-    @brief create and return a reference to the pointed to value
+-
+-    @complexity Linear in the number of reference tokens.
+-
+-    @throw parse_error.109 if array index is not a number
+-    @throw type_error.313 if value cannot be unflattened
+-    */
+-    BasicJsonType& get_and_create(BasicJsonType& j) const
+-    {
+-        auto* result = &j;
+-
+-        // in case no reference tokens exist, return a reference to the JSON value
+-        // j which will be overwritten by a primitive value
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (result->type())
+-            {
+-                case detail::value_t::null:
+-                {
+-                    if (reference_token == "0")
+-                    {
+-                        // start a new array if reference token is 0
+-                        result = &result->operator[](0);
+-                    }
+-                    else
+-                    {
+-                        // start a new object otherwise
+-                        result = &result->operator[](reference_token);
+-                    }
+-                    break;
+-                }
+-
+-                case detail::value_t::object:
+-                {
+-                    // create an entry in the object
+-                    result = &result->operator[](reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    // create an entry in the array
+-                    result = &result->operator[](array_index(reference_token));
+-                    break;
+-                }
+-
+-                /*
+-                The following code is only reached if there exists a reference
+-                token _and_ the current value is primitive. In this case, we have
+-                an error situation, because primitive values may only occur as
+-                single value; that is, with an empty list of reference tokens.
+-                */
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::type_error::create(313, "invalid value to unflatten", j));
+-            }
+-        }
+-
+-        return *result;
+-    }
+-
+-    /*!
+-    @brief return a reference to the pointed to value
+-
+-    @note This version does not throw if a value is not present, but tries to
+-          create nested values instead. For instance, calling this function
+-          with pointer `"/this/that"` on a null value is equivalent to calling
+-          `operator[]("this").operator[]("that")` on that value, effectively
+-          changing the null value to an object.
+-
+-    @param[in] ptr  a JSON value
+-
+-    @return reference to the JSON value pointed to by the JSON pointer
+-
+-    @complexity Linear in the length of the JSON pointer.
+-
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    @throw out_of_range.404  if the JSON pointer can not be resolved
+-    */
+-    BasicJsonType& get_unchecked(BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            // convert null values to arrays or objects before continuing
+-            if (ptr->is_null())
+-            {
+-                // check if reference token is a number
+-                const bool nums =
+-                    std::all_of(reference_token.begin(), reference_token.end(),
+-                                [](const unsigned char x)
+-                {
+-                    return std::isdigit(x);
+-                });
+-
+-                // change value to array for numbers or "-" or to object otherwise
+-                *ptr = (nums || reference_token == "-")
+-                       ? detail::value_t::array
+-                       : detail::value_t::object;
+-            }
+-
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    // use unchecked object access
+-                    ptr = &ptr->operator[](reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (reference_token == "-")
+-                    {
+-                        // explicitly treat "-" as index beyond the end
+-                        ptr = &ptr->operator[](ptr->m_value.array->size());
+-                    }
+-                    else
+-                    {
+-                        // convert array index to number; unchecked access
+-                        ptr = &ptr->operator[](array_index(reference_token));
+-                    }
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'", *ptr));
+-            }
+-        }
+-
+-        return *ptr;
+-    }
+-
+-    /*!
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    @throw out_of_range.402  if the array index '-' is used
+-    @throw out_of_range.404  if the JSON pointer can not be resolved
+-    */
+-    BasicJsonType& get_checked(BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    // note: at performs range check
+-                    ptr = &ptr->at(reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
+-                    {
+-                        // "-" always fails the range check
+-                        JSON_THROW(detail::out_of_range::create(402,
+-                                                                "array index '-' (" + std::to_string(ptr->m_value.array->size()) +
+-                                                                ") is out of range", *ptr));
+-                    }
+-
+-                    // note: at performs range check
+-                    ptr = &ptr->at(array_index(reference_token));
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'", *ptr));
+-            }
+-        }
+-
+-        return *ptr;
+-    }
+-
+-    /*!
+-    @brief return a const reference to the pointed to value
+-
+-    @param[in] ptr  a JSON value
+-
+-    @return const reference to the JSON value pointed to by the JSON
+-    pointer
+-
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    @throw out_of_range.402  if the array index '-' is used
+-    @throw out_of_range.404  if the JSON pointer can not be resolved
+-    */
+-    const BasicJsonType& get_unchecked(const BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    // use unchecked object access
+-                    ptr = &ptr->operator[](reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
+-                    {
+-                        // "-" cannot be used for const access
+-                        JSON_THROW(detail::out_of_range::create(402, "array index '-' (" + std::to_string(ptr->m_value.array->size()) + ") is out of range", *ptr));
+-                    }
+-
+-                    // use unchecked array access
+-                    ptr = &ptr->operator[](array_index(reference_token));
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'", *ptr));
+-            }
+-        }
+-
+-        return *ptr;
+-    }
+-
+-    /*!
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    @throw out_of_range.402  if the array index '-' is used
+-    @throw out_of_range.404  if the JSON pointer can not be resolved
+-    */
+-    const BasicJsonType& get_checked(const BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    // note: at performs range check
+-                    ptr = &ptr->at(reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
+-                    {
+-                        // "-" always fails the range check
+-                        JSON_THROW(detail::out_of_range::create(402,
+-                                                                "array index '-' (" + std::to_string(ptr->m_value.array->size()) +
+-                                                                ") is out of range", *ptr));
+-                    }
+-
+-                    // note: at performs range check
+-                    ptr = &ptr->at(array_index(reference_token));
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'", *ptr));
+-            }
+-        }
+-
+-        return *ptr;
+-    }
+-
+-    /*!
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    */
+-    bool contains(const BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    if (!ptr->contains(reference_token))
+-                    {
+-                        // we did not find the key in the object
+-                        return false;
+-                    }
+-
+-                    ptr = &ptr->operator[](reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
+-                    {
+-                        // "-" always fails the range check
+-                        return false;
+-                    }
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token.size() == 1 && !("0" <= reference_token && reference_token <= "9")))
+-                    {
+-                        // invalid char
+-                        return false;
+-                    }
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token.size() > 1))
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!('1' <= reference_token[0] && reference_token[0] <= '9')))
+-                        {
+-                            // first char should be between '1' and '9'
+-                            return false;
+-                        }
+-                        for (std::size_t i = 1; i < reference_token.size(); i++)
+-                        {
+-                            if (JSON_HEDLEY_UNLIKELY(!('0' <= reference_token[i] && reference_token[i] <= '9')))
+-                            {
+-                                // other char should be between '0' and '9'
+-                                return false;
+-                            }
+-                        }
+-                    }
+-
+-                    const auto idx = array_index(reference_token);
+-                    if (idx >= ptr->size())
+-                    {
+-                        // index out of range
+-                        return false;
+-                    }
+-
+-                    ptr = &ptr->operator[](idx);
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                {
+-                    // we do not expect primitive values if there is still a
+-                    // reference token to process
+-                    return false;
+-                }
+-            }
+-        }
+-
+-        // no reference token left means we found a primitive value
+-        return true;
+-    }
+-
+-    /*!
+-    @brief split the string input to reference tokens
+-
+-    @note This function is only called by the json_pointer constructor.
+-          All exceptions below are documented there.
+-
+-    @throw parse_error.107  if the pointer is not empty or begins with '/'
+-    @throw parse_error.108  if character '~' is not followed by '0' or '1'
+-    */
+-    static std::vector<std::string> split(const std::string& reference_string)
+-    {
+-        std::vector<std::string> result;
+-
+-        // special case: empty reference string -> no reference tokens
+-        if (reference_string.empty())
+-        {
+-            return result;
+-        }
+-
+-        // check if nonempty reference string begins with slash
+-        if (JSON_HEDLEY_UNLIKELY(reference_string[0] != '/'))
+-        {
+-            JSON_THROW(detail::parse_error::create(107, 1, "JSON pointer must be empty or begin with '/' - was: '" + reference_string + "'", BasicJsonType()));
+-        }
+-
+-        // extract the reference tokens:
+-        // - slash: position of the last read slash (or end of string)
+-        // - start: position after the previous slash
+-        for (
+-            // search for the first slash after the first character
+-            std::size_t slash = reference_string.find_first_of('/', 1),
+-            // set the beginning of the first reference token
+-            start = 1;
+-            // we can stop if start == 0 (if slash == std::string::npos)
+-            start != 0;
+-            // set the beginning of the next reference token
+-            // (will eventually be 0 if slash == std::string::npos)
+-            start = (slash == std::string::npos) ? 0 : slash + 1,
+-            // find next slash
+-            slash = reference_string.find_first_of('/', start))
+-        {
+-            // use the text between the beginning of the reference token
+-            // (start) and the last slash (slash).
+-            auto reference_token = reference_string.substr(start, slash - start);
+-
+-            // check reference tokens are properly escaped
+-            for (std::size_t pos = reference_token.find_first_of('~');
+-                    pos != std::string::npos;
+-                    pos = reference_token.find_first_of('~', pos + 1))
+-            {
+-                JSON_ASSERT(reference_token[pos] == '~');
+-
+-                // ~ must be followed by 0 or 1
+-                if (JSON_HEDLEY_UNLIKELY(pos == reference_token.size() - 1 ||
+-                                         (reference_token[pos + 1] != '0' &&
+-                                          reference_token[pos + 1] != '1')))
+-                {
+-                    JSON_THROW(detail::parse_error::create(108, 0, "escape character '~' must be followed with '0' or '1'", BasicJsonType()));
+-                }
+-            }
+-
+-            // finally, store the reference token
+-            detail::unescape(reference_token);
+-            result.push_back(reference_token);
+-        }
+-
+-        return result;
+-    }
+-
+-  private:
+-    /*!
+-    @param[in] reference_string  the reference string to the current value
+-    @param[in] value             the value to consider
+-    @param[in,out] result        the result object to insert values to
+-
+-    @note Empty objects or arrays are flattened to `null`.
+-    */
+-    static void flatten(const std::string& reference_string,
+-                        const BasicJsonType& value,
+-                        BasicJsonType& result)
+-    {
+-        switch (value.type())
+-        {
+-            case detail::value_t::array:
+-            {
+-                if (value.m_value.array->empty())
+-                {
+-                    // flatten empty array as null
+-                    result[reference_string] = nullptr;
+-                }
+-                else
+-                {
+-                    // iterate array and use index as reference string
+-                    for (std::size_t i = 0; i < value.m_value.array->size(); ++i)
+-                    {
+-                        flatten(reference_string + "/" + std::to_string(i),
+-                                value.m_value.array->operator[](i), result);
+-                    }
+-                }
+-                break;
+-            }
+-
+-            case detail::value_t::object:
+-            {
+-                if (value.m_value.object->empty())
+-                {
+-                    // flatten empty object as null
+-                    result[reference_string] = nullptr;
+-                }
+-                else
+-                {
+-                    // iterate object and use keys as reference string
+-                    for (const auto& element : *value.m_value.object)
+-                    {
+-                        flatten(reference_string + "/" + detail::escape(element.first), element.second, result);
+-                    }
+-                }
+-                break;
+-            }
+-
+-            case detail::value_t::null:
+-            case detail::value_t::string:
+-            case detail::value_t::boolean:
+-            case detail::value_t::number_integer:
+-            case detail::value_t::number_unsigned:
+-            case detail::value_t::number_float:
+-            case detail::value_t::binary:
+-            case detail::value_t::discarded:
+-            default:
+-            {
+-                // add primitive value with its reference string
+-                result[reference_string] = value;
+-                break;
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @param[in] value  flattened JSON
+-
+-    @return unflattened JSON
+-
+-    @throw parse_error.109 if array index is not a number
+-    @throw type_error.314  if value is not an object
+-    @throw type_error.315  if object values are not primitive
+-    @throw type_error.313  if value cannot be unflattened
+-    */
+-    static BasicJsonType
+-    unflatten(const BasicJsonType& value)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!value.is_object()))
+-        {
+-            JSON_THROW(detail::type_error::create(314, "only objects can be unflattened", value));
+-        }
+-
+-        BasicJsonType result;
+-
+-        // iterate the JSON object values
+-        for (const auto& element : *value.m_value.object)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!element.second.is_primitive()))
+-            {
+-                JSON_THROW(detail::type_error::create(315, "values in object must be primitive", element.second));
+-            }
+-
+-            // assign value to reference pointed to by JSON pointer; Note that if
+-            // the JSON pointer is "" (i.e., points to the whole value), function
+-            // get_and_create returns a reference to result itself. An assignment
+-            // will then create a primitive value.
+-            json_pointer(element.first).get_and_create(result) = element.second;
+-        }
+-
+-        return result;
+-    }
+-
+-    /*!
+-    @brief compares two JSON pointers for equality
+-
+-    @param[in] lhs  JSON pointer to compare
+-    @param[in] rhs  JSON pointer to compare
+-    @return whether @a lhs is equal to @a rhs
+-
+-    @complexity Linear in the length of the JSON pointer
+-
+-    @exceptionsafety No-throw guarantee: this function never throws exceptions.
+-    */
+-    friend bool operator==(json_pointer const& lhs,
+-                           json_pointer const& rhs) noexcept
+-    {
+-        return lhs.reference_tokens == rhs.reference_tokens;
+-    }
+-
+-    /*!
+-    @brief compares two JSON pointers for inequality
+-
+-    @param[in] lhs  JSON pointer to compare
+-    @param[in] rhs  JSON pointer to compare
+-    @return whether @a lhs is not equal @a rhs
+-
+-    @complexity Linear in the length of the JSON pointer
+-
+-    @exceptionsafety No-throw guarantee: this function never throws exceptions.
+-    */
+-    friend bool operator!=(json_pointer const& lhs,
+-                           json_pointer const& rhs) noexcept
+-    {
+-        return !(lhs == rhs);
+-    }
+-
+-    /// the reference tokens
+-    std::vector<std::string> reference_tokens;
+-};
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/json_ref.hpp>
+-
+-
+-#include <initializer_list>
+-#include <utility>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename BasicJsonType>
+-class json_ref
+-{
+-  public:
+-    using value_type = BasicJsonType;
+-
+-    json_ref(value_type&& value)
+-        : owned_value(std::move(value))
+-    {}
+-
+-    json_ref(const value_type& value)
+-        : value_ref(&value)
+-    {}
+-
+-    json_ref(std::initializer_list<json_ref> init)
+-        : owned_value(init)
+-    {}
+-
+-    template <
+-        class... Args,
+-        enable_if_t<std::is_constructible<value_type, Args...>::value, int> = 0 >
+-    json_ref(Args && ... args)
+-        : owned_value(std::forward<Args>(args)...)
+-    {}
+-
+-    // class should be movable only
+-    json_ref(json_ref&&) noexcept = default;
+-    json_ref(const json_ref&) = delete;
+-    json_ref& operator=(const json_ref&) = delete;
+-    json_ref& operator=(json_ref&&) = delete;
+-    ~json_ref() = default;
+-
+-    value_type moved_or_copied() const
+-    {
+-        if (value_ref == nullptr)
+-        {
+-            return std::move(owned_value);
+-        }
+-        return *value_ref;
+-    }
+-
+-    value_type const& operator*() const
+-    {
+-        return value_ref ? *value_ref : owned_value;
+-    }
+-
+-    value_type const* operator->() const
+-    {
+-        return &** this;
+-    }
+-
+-  private:
+-    mutable value_type owned_value = nullptr;
+-    value_type const* value_ref = nullptr;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/string_escape.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/output/binary_writer.hpp>
+-
+-
+-#include <algorithm> // reverse
+-#include <array> // array
+-#include <cmath> // isnan, isinf
+-#include <cstdint> // uint8_t, uint16_t, uint32_t, uint64_t
+-#include <cstring> // memcpy
+-#include <limits> // numeric_limits
+-#include <string> // string
+-#include <utility> // move
+-
+-// #include <nlohmann/detail/input/binary_reader.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/output/output_adapters.hpp>
+-
+-
+-#include <algorithm> // copy
+-#include <cstddef> // size_t
+-#include <iterator> // back_inserter
+-#include <memory> // shared_ptr, make_shared
+-#include <string> // basic_string
+-#include <vector> // vector
+-
+-#ifndef JSON_NO_IO
+-    #include <ios>      // streamsize
+-    #include <ostream>  // basic_ostream
+-#endif  // JSON_NO_IO
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/// abstract output adapter interface
+-template<typename CharType> struct output_adapter_protocol
+-{
+-    virtual void write_character(CharType c) = 0;
+-    virtual void write_characters(const CharType* s, std::size_t length) = 0;
+-    virtual ~output_adapter_protocol() = default;
+-
+-    output_adapter_protocol() = default;
+-    output_adapter_protocol(const output_adapter_protocol&) = default;
+-    output_adapter_protocol(output_adapter_protocol&&) noexcept = default;
+-    output_adapter_protocol& operator=(const output_adapter_protocol&) = default;
+-    output_adapter_protocol& operator=(output_adapter_protocol&&) noexcept = default;
+-};
+-
+-/// a type to simplify interfaces
+-template<typename CharType>
+-using output_adapter_t = std::shared_ptr<output_adapter_protocol<CharType>>;
+-
+-/// output adapter for byte vectors
+-template<typename CharType, typename AllocatorType = std::allocator<CharType>>
+-class output_vector_adapter : public output_adapter_protocol<CharType>
+-{
+-  public:
+-    explicit output_vector_adapter(std::vector<CharType, AllocatorType>& vec) noexcept
+-        : v(vec)
+-    {}
+-
+-    void write_character(CharType c) override
+-    {
+-        v.push_back(c);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    void write_characters(const CharType* s, std::size_t length) override
+-    {
+-        std::copy(s, s + length, std::back_inserter(v));
+-    }
+-
+-  private:
+-    std::vector<CharType, AllocatorType>& v;
+-};
+-
+-#ifndef JSON_NO_IO
+-/// output adapter for output streams
+-template<typename CharType>
+-class output_stream_adapter : public output_adapter_protocol<CharType>
+-{
+-  public:
+-    explicit output_stream_adapter(std::basic_ostream<CharType>& s) noexcept
+-        : stream(s)
+-    {}
+-
+-    void write_character(CharType c) override
+-    {
+-        stream.put(c);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    void write_characters(const CharType* s, std::size_t length) override
+-    {
+-        stream.write(s, static_cast<std::streamsize>(length));
+-    }
+-
+-  private:
+-    std::basic_ostream<CharType>& stream;
+-};
+-#endif  // JSON_NO_IO
+-
+-/// output adapter for basic_string
+-template<typename CharType, typename StringType = std::basic_string<CharType>>
+-class output_string_adapter : public output_adapter_protocol<CharType>
+-{
+-  public:
+-    explicit output_string_adapter(StringType& s) noexcept
+-        : str(s)
+-    {}
+-
+-    void write_character(CharType c) override
+-    {
+-        str.push_back(c);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    void write_characters(const CharType* s, std::size_t length) override
+-    {
+-        str.append(s, length);
+-    }
+-
+-  private:
+-    StringType& str;
+-};
+-
+-template<typename CharType, typename StringType = std::basic_string<CharType>>
+-class output_adapter
+-{
+-  public:
+-    template<typename AllocatorType = std::allocator<CharType>>
+-    output_adapter(std::vector<CharType, AllocatorType>& vec)
+-        : oa(std::make_shared<output_vector_adapter<CharType, AllocatorType>>(vec)) {}
+-
+-#ifndef JSON_NO_IO
+-    output_adapter(std::basic_ostream<CharType>& s)
+-        : oa(std::make_shared<output_stream_adapter<CharType>>(s)) {}
+-#endif  // JSON_NO_IO
+-
+-    output_adapter(StringType& s)
+-        : oa(std::make_shared<output_string_adapter<CharType, StringType>>(s)) {}
+-
+-    operator output_adapter_t<CharType>()
+-    {
+-        return oa;
+-    }
+-
+-  private:
+-    output_adapter_t<CharType> oa = nullptr;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-///////////////////
+-// binary writer //
+-///////////////////
+-
+-/*!
+-@brief serialization to CBOR and MessagePack values
+-*/
+-template<typename BasicJsonType, typename CharType>
+-class binary_writer
+-{
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-
+-  public:
+-    /*!
+-    @brief create a binary writer
+-
+-    @param[in] adapter  output adapter to write to
+-    */
+-    explicit binary_writer(output_adapter_t<CharType> adapter) : oa(std::move(adapter))
+-    {
+-        JSON_ASSERT(oa);
+-    }
+-
+-    /*!
+-    @param[in] j  JSON value to serialize
+-    @pre       j.type() == value_t::object
+-    */
+-    void write_bson(const BasicJsonType& j)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::object:
+-            {
+-                write_bson_object(*j.m_value.object);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::array:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                JSON_THROW(type_error::create(317, "to serialize to BSON, top-level type must be object, but is " + std::string(j.type_name()), j));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @param[in] j  JSON value to serialize
+-    */
+-    void write_cbor(const BasicJsonType& j)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::null:
+-            {
+-                oa->write_character(to_char_type(0xF6));
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                oa->write_character(j.m_value.boolean
+-                                    ? to_char_type(0xF5)
+-                                    : to_char_type(0xF4));
+-                break;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                if (j.m_value.number_integer >= 0)
+-                {
+-                    // CBOR does not differentiate between positive signed
+-                    // integers and unsigned integers. Therefore, we used the
+-                    // code from the value_t::number_unsigned case here.
+-                    if (j.m_value.number_integer <= 0x17)
+-                    {
+-                        write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer <= (std::numeric_limits<std::uint8_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x18));
+-                        write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer <= (std::numeric_limits<std::uint16_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x19));
+-                        write_number(static_cast<std::uint16_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer <= (std::numeric_limits<std::uint32_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x1A));
+-                        write_number(static_cast<std::uint32_t>(j.m_value.number_integer));
+-                    }
+-                    else
+-                    {
+-                        oa->write_character(to_char_type(0x1B));
+-                        write_number(static_cast<std::uint64_t>(j.m_value.number_integer));
+-                    }
+-                }
+-                else
+-                {
+-                    // The conversions below encode the sign in the first
+-                    // byte, and the value is converted to a positive number.
+-                    const auto positive_number = -1 - j.m_value.number_integer;
+-                    if (j.m_value.number_integer >= -24)
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0x20 + positive_number));
+-                    }
+-                    else if (positive_number <= (std::numeric_limits<std::uint8_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x38));
+-                        write_number(static_cast<std::uint8_t>(positive_number));
+-                    }
+-                    else if (positive_number <= (std::numeric_limits<std::uint16_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x39));
+-                        write_number(static_cast<std::uint16_t>(positive_number));
+-                    }
+-                    else if (positive_number <= (std::numeric_limits<std::uint32_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x3A));
+-                        write_number(static_cast<std::uint32_t>(positive_number));
+-                    }
+-                    else
+-                    {
+-                        oa->write_character(to_char_type(0x3B));
+-                        write_number(static_cast<std::uint64_t>(positive_number));
+-                    }
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                if (j.m_value.number_unsigned <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(j.m_value.number_unsigned));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x18));
+-                    write_number(static_cast<std::uint8_t>(j.m_value.number_unsigned));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x19));
+-                    write_number(static_cast<std::uint16_t>(j.m_value.number_unsigned));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x1A));
+-                    write_number(static_cast<std::uint32_t>(j.m_value.number_unsigned));
+-                }
+-                else
+-                {
+-                    oa->write_character(to_char_type(0x1B));
+-                    write_number(static_cast<std::uint64_t>(j.m_value.number_unsigned));
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                if (std::isnan(j.m_value.number_float))
+-                {
+-                    // NaN is 0xf97e00 in CBOR
+-                    oa->write_character(to_char_type(0xF9));
+-                    oa->write_character(to_char_type(0x7E));
+-                    oa->write_character(to_char_type(0x00));
+-                }
+-                else if (std::isinf(j.m_value.number_float))
+-                {
+-                    // Infinity is 0xf97c00, -Infinity is 0xf9fc00
+-                    oa->write_character(to_char_type(0xf9));
+-                    oa->write_character(j.m_value.number_float > 0 ? to_char_type(0x7C) : to_char_type(0xFC));
+-                    oa->write_character(to_char_type(0x00));
+-                }
+-                else
+-                {
+-                    write_compact_float(j.m_value.number_float, detail::input_format_t::cbor);
+-                }
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                // step 1: write control byte and the string length
+-                const auto N = j.m_value.string->size();
+-                if (N <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(0x60 + N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x78));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x79));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x7A));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-                // LCOV_EXCL_START
+-                else if (N <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x7B));
+-                    write_number(static_cast<std::uint64_t>(N));
+-                }
+-                // LCOV_EXCL_STOP
+-
+-                // step 2: write the string
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.string->c_str()),
+-                    j.m_value.string->size());
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                // step 1: write control byte and the array size
+-                const auto N = j.m_value.array->size();
+-                if (N <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(0x80 + N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x98));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x99));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x9A));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-                // LCOV_EXCL_START
+-                else if (N <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x9B));
+-                    write_number(static_cast<std::uint64_t>(N));
+-                }
+-                // LCOV_EXCL_STOP
+-
+-                // step 2: write each element
+-                for (const auto& el : *j.m_value.array)
+-                {
+-                    write_cbor(el);
+-                }
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                if (j.m_value.binary->has_subtype())
+-                {
+-                    if (j.m_value.binary->subtype() <= (std::numeric_limits<std::uint8_t>::max)())
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0xd8));
+-                        write_number(static_cast<std::uint8_t>(j.m_value.binary->subtype()));
+-                    }
+-                    else if (j.m_value.binary->subtype() <= (std::numeric_limits<std::uint16_t>::max)())
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0xd9));
+-                        write_number(static_cast<std::uint16_t>(j.m_value.binary->subtype()));
+-                    }
+-                    else if (j.m_value.binary->subtype() <= (std::numeric_limits<std::uint32_t>::max)())
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0xda));
+-                        write_number(static_cast<std::uint32_t>(j.m_value.binary->subtype()));
+-                    }
+-                    else if (j.m_value.binary->subtype() <= (std::numeric_limits<std::uint64_t>::max)())
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0xdb));
+-                        write_number(static_cast<std::uint64_t>(j.m_value.binary->subtype()));
+-                    }
+-                }
+-
+-                // step 1: write control byte and the binary array size
+-                const auto N = j.m_value.binary->size();
+-                if (N <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(0x40 + N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x58));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x59));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x5A));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-                // LCOV_EXCL_START
+-                else if (N <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x5B));
+-                    write_number(static_cast<std::uint64_t>(N));
+-                }
+-                // LCOV_EXCL_STOP
+-
+-                // step 2: write each element
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.binary->data()),
+-                    N);
+-
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                // step 1: write control byte and the object size
+-                const auto N = j.m_value.object->size();
+-                if (N <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(0xA0 + N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0xB8));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0xB9));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0xBA));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-                // LCOV_EXCL_START
+-                else if (N <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0xBB));
+-                    write_number(static_cast<std::uint64_t>(N));
+-                }
+-                // LCOV_EXCL_STOP
+-
+-                // step 2: write each element
+-                for (const auto& el : *j.m_value.object)
+-                {
+-                    write_cbor(el.first);
+-                    write_cbor(el.second);
+-                }
+-                break;
+-            }
+-
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-    }
+-
+-    /*!
+-    @param[in] j  JSON value to serialize
+-    */
+-    void write_msgpack(const BasicJsonType& j)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::null: // nil
+-            {
+-                oa->write_character(to_char_type(0xC0));
+-                break;
+-            }
+-
+-            case value_t::boolean: // true and false
+-            {
+-                oa->write_character(j.m_value.boolean
+-                                    ? to_char_type(0xC3)
+-                                    : to_char_type(0xC2));
+-                break;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                if (j.m_value.number_integer >= 0)
+-                {
+-                    // MessagePack does not differentiate between positive
+-                    // signed integers and unsigned integers. Therefore, we used
+-                    // the code from the value_t::number_unsigned case here.
+-                    if (j.m_value.number_unsigned < 128)
+-                    {
+-                        // positive fixnum
+-                        write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint8_t>::max)())
+-                    {
+-                        // uint 8
+-                        oa->write_character(to_char_type(0xCC));
+-                        write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint16_t>::max)())
+-                    {
+-                        // uint 16
+-                        oa->write_character(to_char_type(0xCD));
+-                        write_number(static_cast<std::uint16_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint32_t>::max)())
+-                    {
+-                        // uint 32
+-                        oa->write_character(to_char_type(0xCE));
+-                        write_number(static_cast<std::uint32_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint64_t>::max)())
+-                    {
+-                        // uint 64
+-                        oa->write_character(to_char_type(0xCF));
+-                        write_number(static_cast<std::uint64_t>(j.m_value.number_integer));
+-                    }
+-                }
+-                else
+-                {
+-                    if (j.m_value.number_integer >= -32)
+-                    {
+-                        // negative fixnum
+-                        write_number(static_cast<std::int8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer >= (std::numeric_limits<std::int8_t>::min)() &&
+-                             j.m_value.number_integer <= (std::numeric_limits<std::int8_t>::max)())
+-                    {
+-                        // int 8
+-                        oa->write_character(to_char_type(0xD0));
+-                        write_number(static_cast<std::int8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer >= (std::numeric_limits<std::int16_t>::min)() &&
+-                             j.m_value.number_integer <= (std::numeric_limits<std::int16_t>::max)())
+-                    {
+-                        // int 16
+-                        oa->write_character(to_char_type(0xD1));
+-                        write_number(static_cast<std::int16_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer >= (std::numeric_limits<std::int32_t>::min)() &&
+-                             j.m_value.number_integer <= (std::numeric_limits<std::int32_t>::max)())
+-                    {
+-                        // int 32
+-                        oa->write_character(to_char_type(0xD2));
+-                        write_number(static_cast<std::int32_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer >= (std::numeric_limits<std::int64_t>::min)() &&
+-                             j.m_value.number_integer <= (std::numeric_limits<std::int64_t>::max)())
+-                    {
+-                        // int 64
+-                        oa->write_character(to_char_type(0xD3));
+-                        write_number(static_cast<std::int64_t>(j.m_value.number_integer));
+-                    }
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                if (j.m_value.number_unsigned < 128)
+-                {
+-                    // positive fixnum
+-                    write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    // uint 8
+-                    oa->write_character(to_char_type(0xCC));
+-                    write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    // uint 16
+-                    oa->write_character(to_char_type(0xCD));
+-                    write_number(static_cast<std::uint16_t>(j.m_value.number_integer));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    // uint 32
+-                    oa->write_character(to_char_type(0xCE));
+-                    write_number(static_cast<std::uint32_t>(j.m_value.number_integer));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    // uint 64
+-                    oa->write_character(to_char_type(0xCF));
+-                    write_number(static_cast<std::uint64_t>(j.m_value.number_integer));
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                write_compact_float(j.m_value.number_float, detail::input_format_t::msgpack);
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                // step 1: write control byte and the string length
+-                const auto N = j.m_value.string->size();
+-                if (N <= 31)
+-                {
+-                    // fixstr
+-                    write_number(static_cast<std::uint8_t>(0xA0 | N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    // str 8
+-                    oa->write_character(to_char_type(0xD9));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    // str 16
+-                    oa->write_character(to_char_type(0xDA));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    // str 32
+-                    oa->write_character(to_char_type(0xDB));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-
+-                // step 2: write the string
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.string->c_str()),
+-                    j.m_value.string->size());
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                // step 1: write control byte and the array size
+-                const auto N = j.m_value.array->size();
+-                if (N <= 15)
+-                {
+-                    // fixarray
+-                    write_number(static_cast<std::uint8_t>(0x90 | N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    // array 16
+-                    oa->write_character(to_char_type(0xDC));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    // array 32
+-                    oa->write_character(to_char_type(0xDD));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-
+-                // step 2: write each element
+-                for (const auto& el : *j.m_value.array)
+-                {
+-                    write_msgpack(el);
+-                }
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                // step 0: determine if the binary type has a set subtype to
+-                // determine whether or not to use the ext or fixext types
+-                const bool use_ext = j.m_value.binary->has_subtype();
+-
+-                // step 1: write control byte and the byte string length
+-                const auto N = j.m_value.binary->size();
+-                if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    std::uint8_t output_type{};
+-                    bool fixed = true;
+-                    if (use_ext)
+-                    {
+-                        switch (N)
+-                        {
+-                            case 1:
+-                                output_type = 0xD4; // fixext 1
+-                                break;
+-                            case 2:
+-                                output_type = 0xD5; // fixext 2
+-                                break;
+-                            case 4:
+-                                output_type = 0xD6; // fixext 4
+-                                break;
+-                            case 8:
+-                                output_type = 0xD7; // fixext 8
+-                                break;
+-                            case 16:
+-                                output_type = 0xD8; // fixext 16
+-                                break;
+-                            default:
+-                                output_type = 0xC7; // ext 8
+-                                fixed = false;
+-                                break;
+-                        }
+-
+-                    }
+-                    else
+-                    {
+-                        output_type = 0xC4; // bin 8
+-                        fixed = false;
+-                    }
+-
+-                    oa->write_character(to_char_type(output_type));
+-                    if (!fixed)
+-                    {
+-                        write_number(static_cast<std::uint8_t>(N));
+-                    }
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    std::uint8_t output_type = use_ext
+-                                               ? 0xC8 // ext 16
+-                                               : 0xC5; // bin 16
+-
+-                    oa->write_character(to_char_type(output_type));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    std::uint8_t output_type = use_ext
+-                                               ? 0xC9 // ext 32
+-                                               : 0xC6; // bin 32
+-
+-                    oa->write_character(to_char_type(output_type));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-
+-                // step 1.5: if this is an ext type, write the subtype
+-                if (use_ext)
+-                {
+-                    write_number(static_cast<std::int8_t>(j.m_value.binary->subtype()));
+-                }
+-
+-                // step 2: write the byte string
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.binary->data()),
+-                    N);
+-
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                // step 1: write control byte and the object size
+-                const auto N = j.m_value.object->size();
+-                if (N <= 15)
+-                {
+-                    // fixmap
+-                    write_number(static_cast<std::uint8_t>(0x80 | (N & 0xF)));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    // map 16
+-                    oa->write_character(to_char_type(0xDE));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    // map 32
+-                    oa->write_character(to_char_type(0xDF));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-
+-                // step 2: write each element
+-                for (const auto& el : *j.m_value.object)
+-                {
+-                    write_msgpack(el.first);
+-                    write_msgpack(el.second);
+-                }
+-                break;
+-            }
+-
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-    }
+-
+-    /*!
+-    @param[in] j  JSON value to serialize
+-    @param[in] use_count   whether to use '#' prefixes (optimized format)
+-    @param[in] use_type    whether to use '$' prefixes (optimized format)
+-    @param[in] add_prefix  whether prefixes need to be used for this value
+-    */
+-    void write_ubjson(const BasicJsonType& j, const bool use_count,
+-                      const bool use_type, const bool add_prefix = true)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::null:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('Z'));
+-                }
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(j.m_value.boolean
+-                                        ? to_char_type('T')
+-                                        : to_char_type('F'));
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                write_number_with_ubjson_prefix(j.m_value.number_integer, add_prefix);
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                write_number_with_ubjson_prefix(j.m_value.number_unsigned, add_prefix);
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                write_number_with_ubjson_prefix(j.m_value.number_float, add_prefix);
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('S'));
+-                }
+-                write_number_with_ubjson_prefix(j.m_value.string->size(), true);
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.string->c_str()),
+-                    j.m_value.string->size());
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('['));
+-                }
+-
+-                bool prefix_required = true;
+-                if (use_type && !j.m_value.array->empty())
+-                {
+-                    JSON_ASSERT(use_count);
+-                    const CharType first_prefix = ubjson_prefix(j.front());
+-                    const bool same_prefix = std::all_of(j.begin() + 1, j.end(),
+-                                                         [this, first_prefix](const BasicJsonType & v)
+-                    {
+-                        return ubjson_prefix(v) == first_prefix;
+-                    });
+-
+-                    if (same_prefix)
+-                    {
+-                        prefix_required = false;
+-                        oa->write_character(to_char_type('$'));
+-                        oa->write_character(first_prefix);
+-                    }
+-                }
+-
+-                if (use_count)
+-                {
+-                    oa->write_character(to_char_type('#'));
+-                    write_number_with_ubjson_prefix(j.m_value.array->size(), true);
+-                }
+-
+-                for (const auto& el : *j.m_value.array)
+-                {
+-                    write_ubjson(el, use_count, use_type, prefix_required);
+-                }
+-
+-                if (!use_count)
+-                {
+-                    oa->write_character(to_char_type(']'));
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('['));
+-                }
+-
+-                if (use_type && !j.m_value.binary->empty())
+-                {
+-                    JSON_ASSERT(use_count);
+-                    oa->write_character(to_char_type('$'));
+-                    oa->write_character('U');
+-                }
+-
+-                if (use_count)
+-                {
+-                    oa->write_character(to_char_type('#'));
+-                    write_number_with_ubjson_prefix(j.m_value.binary->size(), true);
+-                }
+-
+-                if (use_type)
+-                {
+-                    oa->write_characters(
+-                        reinterpret_cast<const CharType*>(j.m_value.binary->data()),
+-                        j.m_value.binary->size());
+-                }
+-                else
+-                {
+-                    for (size_t i = 0; i < j.m_value.binary->size(); ++i)
+-                    {
+-                        oa->write_character(to_char_type('U'));
+-                        oa->write_character(j.m_value.binary->data()[i]);
+-                    }
+-                }
+-
+-                if (!use_count)
+-                {
+-                    oa->write_character(to_char_type(']'));
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('{'));
+-                }
+-
+-                bool prefix_required = true;
+-                if (use_type && !j.m_value.object->empty())
+-                {
+-                    JSON_ASSERT(use_count);
+-                    const CharType first_prefix = ubjson_prefix(j.front());
+-                    const bool same_prefix = std::all_of(j.begin(), j.end(),
+-                                                         [this, first_prefix](const BasicJsonType & v)
+-                    {
+-                        return ubjson_prefix(v) == first_prefix;
+-                    });
+-
+-                    if (same_prefix)
+-                    {
+-                        prefix_required = false;
+-                        oa->write_character(to_char_type('$'));
+-                        oa->write_character(first_prefix);
+-                    }
+-                }
+-
+-                if (use_count)
+-                {
+-                    oa->write_character(to_char_type('#'));
+-                    write_number_with_ubjson_prefix(j.m_value.object->size(), true);
+-                }
+-
+-                for (const auto& el : *j.m_value.object)
+-                {
+-                    write_number_with_ubjson_prefix(el.first.size(), true);
+-                    oa->write_characters(
+-                        reinterpret_cast<const CharType*>(el.first.c_str()),
+-                        el.first.size());
+-                    write_ubjson(el.second, use_count, use_type, prefix_required);
+-                }
+-
+-                if (!use_count)
+-                {
+-                    oa->write_character(to_char_type('}'));
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-    }
+-
+-  private:
+-    //////////
+-    // BSON //
+-    //////////
+-
+-    /*!
+-    @return The size of a BSON document entry header, including the id marker
+-            and the entry name size (and its null-terminator).
+-    */
+-    static std::size_t calc_bson_entry_header_size(const string_t& name, const BasicJsonType& j)
+-    {
+-        const auto it = name.find(static_cast<typename string_t::value_type>(0));
+-        if (JSON_HEDLEY_UNLIKELY(it != BasicJsonType::string_t::npos))
+-        {
+-            JSON_THROW(out_of_range::create(409, "BSON key cannot contain code point U+0000 (at byte " + std::to_string(it) + ")", j));
+-            static_cast<void>(j);
+-        }
+-
+-        return /*id*/ 1ul + name.size() + /*zero-terminator*/1u;
+-    }
+-
+-    /*!
+-    @brief Writes the given @a element_type and @a name to the output adapter
+-    */
+-    void write_bson_entry_header(const string_t& name,
+-                                 const std::uint8_t element_type)
+-    {
+-        oa->write_character(to_char_type(element_type)); // boolean
+-        oa->write_characters(
+-            reinterpret_cast<const CharType*>(name.c_str()),
+-            name.size() + 1u);
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and boolean value @a value
+-    */
+-    void write_bson_boolean(const string_t& name,
+-                            const bool value)
+-    {
+-        write_bson_entry_header(name, 0x08);
+-        oa->write_character(value ? to_char_type(0x01) : to_char_type(0x00));
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and double value @a value
+-    */
+-    void write_bson_double(const string_t& name,
+-                           const double value)
+-    {
+-        write_bson_entry_header(name, 0x01);
+-        write_number<double, true>(value);
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded string in @a value
+-    */
+-    static std::size_t calc_bson_string_size(const string_t& value)
+-    {
+-        return sizeof(std::int32_t) + value.size() + 1ul;
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and string value @a value
+-    */
+-    void write_bson_string(const string_t& name,
+-                           const string_t& value)
+-    {
+-        write_bson_entry_header(name, 0x02);
+-
+-        write_number<std::int32_t, true>(static_cast<std::int32_t>(value.size() + 1ul));
+-        oa->write_characters(
+-            reinterpret_cast<const CharType*>(value.c_str()),
+-            value.size() + 1);
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and null value
+-    */
+-    void write_bson_null(const string_t& name)
+-    {
+-        write_bson_entry_header(name, 0x0A);
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded integer @a value
+-    */
+-    static std::size_t calc_bson_integer_size(const std::int64_t value)
+-    {
+-        return (std::numeric_limits<std::int32_t>::min)() <= value && value <= (std::numeric_limits<std::int32_t>::max)()
+-               ? sizeof(std::int32_t)
+-               : sizeof(std::int64_t);
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and integer @a value
+-    */
+-    void write_bson_integer(const string_t& name,
+-                            const std::int64_t value)
+-    {
+-        if ((std::numeric_limits<std::int32_t>::min)() <= value && value <= (std::numeric_limits<std::int32_t>::max)())
+-        {
+-            write_bson_entry_header(name, 0x10); // int32
+-            write_number<std::int32_t, true>(static_cast<std::int32_t>(value));
+-        }
+-        else
+-        {
+-            write_bson_entry_header(name, 0x12); // int64
+-            write_number<std::int64_t, true>(static_cast<std::int64_t>(value));
+-        }
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded unsigned integer in @a j
+-    */
+-    static constexpr std::size_t calc_bson_unsigned_size(const std::uint64_t value) noexcept
+-    {
+-        return (value <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
+-               ? sizeof(std::int32_t)
+-               : sizeof(std::int64_t);
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and unsigned @a value
+-    */
+-    void write_bson_unsigned(const string_t& name,
+-                             const BasicJsonType& j)
+-    {
+-        if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
+-        {
+-            write_bson_entry_header(name, 0x10 /* int32 */);
+-            write_number<std::int32_t, true>(static_cast<std::int32_t>(j.m_value.number_unsigned));
+-        }
+-        else if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int64_t>::max)()))
+-        {
+-            write_bson_entry_header(name, 0x12 /* int64 */);
+-            write_number<std::int64_t, true>(static_cast<std::int64_t>(j.m_value.number_unsigned));
+-        }
+-        else
+-        {
+-            JSON_THROW(out_of_range::create(407, "integer number " + std::to_string(j.m_value.number_unsigned) + " cannot be represented by BSON as it does not fit int64", j));
+-        }
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and object @a value
+-    */
+-    void write_bson_object_entry(const string_t& name,
+-                                 const typename BasicJsonType::object_t& value)
+-    {
+-        write_bson_entry_header(name, 0x03); // object
+-        write_bson_object(value);
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded array @a value
+-    */
+-    static std::size_t calc_bson_array_size(const typename BasicJsonType::array_t& value)
+-    {
+-        std::size_t array_index = 0ul;
+-
+-        const std::size_t embedded_document_size = std::accumulate(std::begin(value), std::end(value), static_cast<std::size_t>(0), [&array_index](std::size_t result, const typename BasicJsonType::array_t::value_type & el)
+-        {
+-            return result + calc_bson_element_size(std::to_string(array_index++), el);
+-        });
+-
+-        return sizeof(std::int32_t) + embedded_document_size + 1ul;
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded binary array @a value
+-    */
+-    static std::size_t calc_bson_binary_size(const typename BasicJsonType::binary_t& value)
+-    {
+-        return sizeof(std::int32_t) + value.size() + 1ul;
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and array @a value
+-    */
+-    void write_bson_array(const string_t& name,
+-                          const typename BasicJsonType::array_t& value)
+-    {
+-        write_bson_entry_header(name, 0x04); // array
+-        write_number<std::int32_t, true>(static_cast<std::int32_t>(calc_bson_array_size(value)));
+-
+-        std::size_t array_index = 0ul;
+-
+-        for (const auto& el : value)
+-        {
+-            write_bson_element(std::to_string(array_index++), el);
+-        }
+-
+-        oa->write_character(to_char_type(0x00));
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and binary value @a value
+-    */
+-    void write_bson_binary(const string_t& name,
+-                           const binary_t& value)
+-    {
+-        write_bson_entry_header(name, 0x05);
+-
+-        write_number<std::int32_t, true>(static_cast<std::int32_t>(value.size()));
+-        write_number(value.has_subtype() ? static_cast<std::uint8_t>(value.subtype()) : static_cast<std::uint8_t>(0x00));
+-
+-        oa->write_characters(reinterpret_cast<const CharType*>(value.data()), value.size());
+-    }
+-
+-    /*!
+-    @brief Calculates the size necessary to serialize the JSON value @a j with its @a name
+-    @return The calculated size for the BSON document entry for @a j with the given @a name.
+-    */
+-    static std::size_t calc_bson_element_size(const string_t& name,
+-            const BasicJsonType& j)
+-    {
+-        const auto header_size = calc_bson_entry_header_size(name, j);
+-        switch (j.type())
+-        {
+-            case value_t::object:
+-                return header_size + calc_bson_object_size(*j.m_value.object);
+-
+-            case value_t::array:
+-                return header_size + calc_bson_array_size(*j.m_value.array);
+-
+-            case value_t::binary:
+-                return header_size + calc_bson_binary_size(*j.m_value.binary);
+-
+-            case value_t::boolean:
+-                return header_size + 1ul;
+-
+-            case value_t::number_float:
+-                return header_size + 8ul;
+-
+-            case value_t::number_integer:
+-                return header_size + calc_bson_integer_size(j.m_value.number_integer);
+-
+-            case value_t::number_unsigned:
+-                return header_size + calc_bson_unsigned_size(j.m_value.number_unsigned);
+-
+-            case value_t::string:
+-                return header_size + calc_bson_string_size(*j.m_value.string);
+-
+-            case value_t::null:
+-                return header_size + 0ul;
+-
+-            // LCOV_EXCL_START
+-            case value_t::discarded:
+-            default:
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert)
+-                return 0ul;
+-                // LCOV_EXCL_STOP
+-        }
+-    }
+-
+-    /*!
+-    @brief Serializes the JSON value @a j to BSON and associates it with the
+-           key @a name.
+-    @param name The name to associate with the JSON entity @a j within the
+-                current BSON document
+-    */
+-    void write_bson_element(const string_t& name,
+-                            const BasicJsonType& j)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::object:
+-                return write_bson_object_entry(name, *j.m_value.object);
+-
+-            case value_t::array:
+-                return write_bson_array(name, *j.m_value.array);
+-
+-            case value_t::binary:
+-                return write_bson_binary(name, *j.m_value.binary);
+-
+-            case value_t::boolean:
+-                return write_bson_boolean(name, j.m_value.boolean);
+-
+-            case value_t::number_float:
+-                return write_bson_double(name, j.m_value.number_float);
+-
+-            case value_t::number_integer:
+-                return write_bson_integer(name, j.m_value.number_integer);
+-
+-            case value_t::number_unsigned:
+-                return write_bson_unsigned(name, j);
+-
+-            case value_t::string:
+-                return write_bson_string(name, *j.m_value.string);
+-
+-            case value_t::null:
+-                return write_bson_null(name);
+-
+-            // LCOV_EXCL_START
+-            case value_t::discarded:
+-            default:
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert)
+-                return;
+-                // LCOV_EXCL_STOP
+-        }
+-    }
+-
+-    /*!
+-    @brief Calculates the size of the BSON serialization of the given
+-           JSON-object @a j.
+-    @param[in] value  JSON value to serialize
+-    @pre       value.type() == value_t::object
+-    */
+-    static std::size_t calc_bson_object_size(const typename BasicJsonType::object_t& value)
+-    {
+-        std::size_t document_size = std::accumulate(value.begin(), value.end(), static_cast<std::size_t>(0),
+-                                    [](size_t result, const typename BasicJsonType::object_t::value_type & el)
+-        {
+-            return result += calc_bson_element_size(el.first, el.second);
+-        });
+-
+-        return sizeof(std::int32_t) + document_size + 1ul;
+-    }
+-
+-    /*!
+-    @param[in] value  JSON value to serialize
+-    @pre       value.type() == value_t::object
+-    */
+-    void write_bson_object(const typename BasicJsonType::object_t& value)
+-    {
+-        write_number<std::int32_t, true>(static_cast<std::int32_t>(calc_bson_object_size(value)));
+-
+-        for (const auto& el : value)
+-        {
+-            write_bson_element(el.first, el.second);
+-        }
+-
+-        oa->write_character(to_char_type(0x00));
+-    }
+-
+-    //////////
+-    // CBOR //
+-    //////////
+-
+-    static constexpr CharType get_cbor_float_prefix(float /*unused*/)
+-    {
+-        return to_char_type(0xFA);  // Single-Precision Float
+-    }
+-
+-    static constexpr CharType get_cbor_float_prefix(double /*unused*/)
+-    {
+-        return to_char_type(0xFB);  // Double-Precision Float
+-    }
+-
+-    /////////////
+-    // MsgPack //
+-    /////////////
+-
+-    static constexpr CharType get_msgpack_float_prefix(float /*unused*/)
+-    {
+-        return to_char_type(0xCA);  // float 32
+-    }
+-
+-    static constexpr CharType get_msgpack_float_prefix(double /*unused*/)
+-    {
+-        return to_char_type(0xCB);  // float 64
+-    }
+-
+-    ////////////
+-    // UBJSON //
+-    ////////////
+-
+-    // UBJSON: write number (floating point)
+-    template<typename NumberType, typename std::enable_if<
+-                 std::is_floating_point<NumberType>::value, int>::type = 0>
+-    void write_number_with_ubjson_prefix(const NumberType n,
+-                                         const bool add_prefix)
+-    {
+-        if (add_prefix)
+-        {
+-            oa->write_character(get_ubjson_float_prefix(n));
+-        }
+-        write_number(n);
+-    }
+-
+-    // UBJSON: write number (unsigned integer)
+-    template<typename NumberType, typename std::enable_if<
+-                 std::is_unsigned<NumberType>::value, int>::type = 0>
+-    void write_number_with_ubjson_prefix(const NumberType n,
+-                                         const bool add_prefix)
+-    {
+-        if (n <= static_cast<std::uint64_t>((std::numeric_limits<std::int8_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('i'));  // int8
+-            }
+-            write_number(static_cast<std::uint8_t>(n));
+-        }
+-        else if (n <= (std::numeric_limits<std::uint8_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('U'));  // uint8
+-            }
+-            write_number(static_cast<std::uint8_t>(n));
+-        }
+-        else if (n <= static_cast<std::uint64_t>((std::numeric_limits<std::int16_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('I'));  // int16
+-            }
+-            write_number(static_cast<std::int16_t>(n));
+-        }
+-        else if (n <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('l'));  // int32
+-            }
+-            write_number(static_cast<std::int32_t>(n));
+-        }
+-        else if (n <= static_cast<std::uint64_t>((std::numeric_limits<std::int64_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('L'));  // int64
+-            }
+-            write_number(static_cast<std::int64_t>(n));
+-        }
+-        else
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('H'));  // high-precision number
+-            }
+-
+-            const auto number = BasicJsonType(n).dump();
+-            write_number_with_ubjson_prefix(number.size(), true);
+-            for (std::size_t i = 0; i < number.size(); ++i)
+-            {
+-                oa->write_character(to_char_type(static_cast<std::uint8_t>(number[i])));
+-            }
+-        }
+-    }
+-
+-    // UBJSON: write number (signed integer)
+-    template < typename NumberType, typename std::enable_if <
+-                   std::is_signed<NumberType>::value&&
+-                   !std::is_floating_point<NumberType>::value, int >::type = 0 >
+-    void write_number_with_ubjson_prefix(const NumberType n,
+-                                         const bool add_prefix)
+-    {
+-        if ((std::numeric_limits<std::int8_t>::min)() <= n && n <= (std::numeric_limits<std::int8_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('i'));  // int8
+-            }
+-            write_number(static_cast<std::int8_t>(n));
+-        }
+-        else if (static_cast<std::int64_t>((std::numeric_limits<std::uint8_t>::min)()) <= n && n <= static_cast<std::int64_t>((std::numeric_limits<std::uint8_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('U'));  // uint8
+-            }
+-            write_number(static_cast<std::uint8_t>(n));
+-        }
+-        else if ((std::numeric_limits<std::int16_t>::min)() <= n && n <= (std::numeric_limits<std::int16_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('I'));  // int16
+-            }
+-            write_number(static_cast<std::int16_t>(n));
+-        }
+-        else if ((std::numeric_limits<std::int32_t>::min)() <= n && n <= (std::numeric_limits<std::int32_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('l'));  // int32
+-            }
+-            write_number(static_cast<std::int32_t>(n));
+-        }
+-        else if ((std::numeric_limits<std::int64_t>::min)() <= n && n <= (std::numeric_limits<std::int64_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('L'));  // int64
+-            }
+-            write_number(static_cast<std::int64_t>(n));
+-        }
+-        // LCOV_EXCL_START
+-        else
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('H'));  // high-precision number
+-            }
+-
+-            const auto number = BasicJsonType(n).dump();
+-            write_number_with_ubjson_prefix(number.size(), true);
+-            for (std::size_t i = 0; i < number.size(); ++i)
+-            {
+-                oa->write_character(to_char_type(static_cast<std::uint8_t>(number[i])));
+-            }
+-        }
+-        // LCOV_EXCL_STOP
+-    }
+-
+-    /*!
+-    @brief determine the type prefix of container values
+-    */
+-    CharType ubjson_prefix(const BasicJsonType& j) const noexcept
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::null:
+-                return 'Z';
+-
+-            case value_t::boolean:
+-                return j.m_value.boolean ? 'T' : 'F';
+-
+-            case value_t::number_integer:
+-            {
+-                if ((std::numeric_limits<std::int8_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::int8_t>::max)())
+-                {
+-                    return 'i';
+-                }
+-                if ((std::numeric_limits<std::uint8_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    return 'U';
+-                }
+-                if ((std::numeric_limits<std::int16_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::int16_t>::max)())
+-                {
+-                    return 'I';
+-                }
+-                if ((std::numeric_limits<std::int32_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::int32_t>::max)())
+-                {
+-                    return 'l';
+-                }
+-                if ((std::numeric_limits<std::int64_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::int64_t>::max)())
+-                {
+-                    return 'L';
+-                }
+-                // anything else is treated as high-precision number
+-                return 'H'; // LCOV_EXCL_LINE
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int8_t>::max)()))
+-                {
+-                    return 'i';
+-                }
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::uint8_t>::max)()))
+-                {
+-                    return 'U';
+-                }
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int16_t>::max)()))
+-                {
+-                    return 'I';
+-                }
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
+-                {
+-                    return 'l';
+-                }
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int64_t>::max)()))
+-                {
+-                    return 'L';
+-                }
+-                // anything else is treated as high-precision number
+-                return 'H'; // LCOV_EXCL_LINE
+-            }
+-
+-            case value_t::number_float:
+-                return get_ubjson_float_prefix(j.m_value.number_float);
+-
+-            case value_t::string:
+-                return 'S';
+-
+-            case value_t::array: // fallthrough
+-            case value_t::binary:
+-                return '[';
+-
+-            case value_t::object:
+-                return '{';
+-
+-            case value_t::discarded:
+-            default:  // discarded values
+-                return 'N';
+-        }
+-    }
+-
+-    static constexpr CharType get_ubjson_float_prefix(float /*unused*/)
+-    {
+-        return 'd';  // float 32
+-    }
+-
+-    static constexpr CharType get_ubjson_float_prefix(double /*unused*/)
+-    {
+-        return 'D';  // float 64
+-    }
+-
+-    ///////////////////////
+-    // Utility functions //
+-    ///////////////////////
+-
+-    /*
+-    @brief write a number to output input
+-    @param[in] n number of type @a NumberType
+-    @tparam NumberType the type of the number
+-    @tparam OutputIsLittleEndian Set to true if output data is
+-                                 required to be little endian
+-
+-    @note This function needs to respect the system's endianness, because bytes
+-          in CBOR, MessagePack, and UBJSON are stored in network order (big
+-          endian) and therefore need reordering on little endian systems.
+-    */
+-    template<typename NumberType, bool OutputIsLittleEndian = false>
+-    void write_number(const NumberType n)
+-    {
+-        // step 1: write number to array of length NumberType
+-        std::array<CharType, sizeof(NumberType)> vec{};
+-        std::memcpy(vec.data(), &n, sizeof(NumberType));
+-
+-        // step 2: write array to output (with possible reordering)
+-        if (is_little_endian != OutputIsLittleEndian)
+-        {
+-            // reverse byte order prior to conversion if necessary
+-            std::reverse(vec.begin(), vec.end());
+-        }
+-
+-        oa->write_characters(vec.data(), sizeof(NumberType));
+-    }
+-
+-    void write_compact_float(const number_float_t n, detail::input_format_t format)
+-    {
+-#ifdef __GNUC__
+-#pragma GCC diagnostic push
+-#pragma GCC diagnostic ignored "-Wfloat-equal"
+-#endif
+-        if (static_cast<double>(n) >= static_cast<double>(std::numeric_limits<float>::lowest()) &&
+-                static_cast<double>(n) <= static_cast<double>((std::numeric_limits<float>::max)()) &&
+-                static_cast<double>(static_cast<float>(n)) == static_cast<double>(n))
+-        {
+-            oa->write_character(format == detail::input_format_t::cbor
+-                                ? get_cbor_float_prefix(static_cast<float>(n))
+-                                : get_msgpack_float_prefix(static_cast<float>(n)));
+-            write_number(static_cast<float>(n));
+-        }
+-        else
+-        {
+-            oa->write_character(format == detail::input_format_t::cbor
+-                                ? get_cbor_float_prefix(n)
+-                                : get_msgpack_float_prefix(n));
+-            write_number(n);
+-        }
+-#ifdef __GNUC__
+-#pragma GCC diagnostic pop
+-#endif
+-    }
+-
+-  public:
+-    // The following to_char_type functions are implement the conversion
+-    // between uint8_t and CharType. In case CharType is not unsigned,
+-    // such a conversion is required to allow values greater than 128.
+-    // See <https://github.com/nlohmann/json/issues/1286> for a discussion.
+-    template < typename C = CharType,
+-               enable_if_t < std::is_signed<C>::value && std::is_signed<char>::value > * = nullptr >
+-    static constexpr CharType to_char_type(std::uint8_t x) noexcept
+-    {
+-        return *reinterpret_cast<char*>(&x);
+-    }
+-
+-    template < typename C = CharType,
+-               enable_if_t < std::is_signed<C>::value && std::is_unsigned<char>::value > * = nullptr >
+-    static CharType to_char_type(std::uint8_t x) noexcept
+-    {
+-        static_assert(sizeof(std::uint8_t) == sizeof(CharType), "size of CharType must be equal to std::uint8_t");
+-        static_assert(std::is_trivial<CharType>::value, "CharType must be trivial");
+-        CharType result;
+-        std::memcpy(&result, &x, sizeof(x));
+-        return result;
+-    }
+-
+-    template<typename C = CharType,
+-             enable_if_t<std::is_unsigned<C>::value>* = nullptr>
+-    static constexpr CharType to_char_type(std::uint8_t x) noexcept
+-    {
+-        return x;
+-    }
+-
+-    template < typename InputCharType, typename C = CharType,
+-               enable_if_t <
+-                   std::is_signed<C>::value &&
+-                   std::is_signed<char>::value &&
+-                   std::is_same<char, typename std::remove_cv<InputCharType>::type>::value
+-                   > * = nullptr >
+-    static constexpr CharType to_char_type(InputCharType x) noexcept
+-    {
+-        return x;
+-    }
+-
+-  private:
+-    /// whether we can assume little endianness
+-    const bool is_little_endian = little_endianness();
+-
+-    /// the output
+-    output_adapter_t<CharType> oa = nullptr;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/output/output_adapters.hpp>
+-
+-// #include <nlohmann/detail/output/serializer.hpp>
+-
+-
+-#include <algorithm> // reverse, remove, fill, find, none_of
+-#include <array> // array
+-#include <clocale> // localeconv, lconv
+-#include <cmath> // labs, isfinite, isnan, signbit
+-#include <cstddef> // size_t, ptrdiff_t
+-#include <cstdint> // uint8_t
+-#include <cstdio> // snprintf
+-#include <limits> // numeric_limits
+-#include <string> // string, char_traits
+-#include <iomanip> // setfill, setw
+-#include <sstream> // stringstream
+-#include <type_traits> // is_same
+-#include <utility> // move
+-
+-// #include <nlohmann/detail/conversions/to_chars.hpp>
+-
+-
+-#include <array> // array
+-#include <cmath>   // signbit, isfinite
+-#include <cstdint> // intN_t, uintN_t
+-#include <cstring> // memcpy, memmove
+-#include <limits> // numeric_limits
+-#include <type_traits> // conditional
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-/*!
+-@brief implements the Grisu2 algorithm for binary to decimal floating-point
+-conversion.
+-
+-This implementation is a slightly modified version of the reference
+-implementation which may be obtained from
+-http://florian.loitsch.com/publications (bench.tar.gz).
+-
+-The code is distributed under the MIT license, Copyright (c) 2009 Florian Loitsch.
+-
+-For a detailed description of the algorithm see:
+-
+-[1] Loitsch, "Printing Floating-Point Numbers Quickly and Accurately with
+-    Integers", Proceedings of the ACM SIGPLAN 2010 Conference on Programming
+-    Language Design and Implementation, PLDI 2010
+-[2] Burger, Dybvig, "Printing Floating-Point Numbers Quickly and Accurately",
+-    Proceedings of the ACM SIGPLAN 1996 Conference on Programming Language
+-    Design and Implementation, PLDI 1996
+-*/
+-namespace dtoa_impl
+-{
+-
+-template<typename Target, typename Source>
+-Target reinterpret_bits(const Source source)
+-{
+-    static_assert(sizeof(Target) == sizeof(Source), "size mismatch");
+-
+-    Target target;
+-    std::memcpy(&target, &source, sizeof(Source));
+-    return target;
+-}
+-
+-struct diyfp // f * 2^e
+-{
+-    static constexpr int kPrecision = 64; // = q
+-
+-    std::uint64_t f = 0;
+-    int e = 0;
+-
+-    constexpr diyfp(std::uint64_t f_, int e_) noexcept : f(f_), e(e_) {}
+-
+-    /*!
+-    @brief returns x - y
+-    @pre x.e == y.e and x.f >= y.f
+-    */
+-    static diyfp sub(const diyfp& x, const diyfp& y) noexcept
+-    {
+-        JSON_ASSERT(x.e == y.e);
+-        JSON_ASSERT(x.f >= y.f);
+-
+-        return {x.f - y.f, x.e};
+-    }
+-
+-    /*!
+-    @brief returns x * y
+-    @note The result is rounded. (Only the upper q bits are returned.)
+-    */
+-    static diyfp mul(const diyfp& x, const diyfp& y) noexcept
+-    {
+-        static_assert(kPrecision == 64, "internal error");
+-
+-        // Computes:
+-        //  f = round((x.f * y.f) / 2^q)
+-        //  e = x.e + y.e + q
+-
+-        // Emulate the 64-bit * 64-bit multiplication:
+-        //
+-        // p = u * v
+-        //   = (u_lo + 2^32 u_hi) (v_lo + 2^32 v_hi)
+-        //   = (u_lo v_lo         ) + 2^32 ((u_lo v_hi         ) + (u_hi v_lo         )) + 2^64 (u_hi v_hi         )
+-        //   = (p0                ) + 2^32 ((p1                ) + (p2                )) + 2^64 (p3                )
+-        //   = (p0_lo + 2^32 p0_hi) + 2^32 ((p1_lo + 2^32 p1_hi) + (p2_lo + 2^32 p2_hi)) + 2^64 (p3                )
+-        //   = (p0_lo             ) + 2^32 (p0_hi + p1_lo + p2_lo                      ) + 2^64 (p1_hi + p2_hi + p3)
+-        //   = (p0_lo             ) + 2^32 (Q                                          ) + 2^64 (H                 )
+-        //   = (p0_lo             ) + 2^32 (Q_lo + 2^32 Q_hi                           ) + 2^64 (H                 )
+-        //
+-        // (Since Q might be larger than 2^32 - 1)
+-        //
+-        //   = (p0_lo + 2^32 Q_lo) + 2^64 (Q_hi + H)
+-        //
+-        // (Q_hi + H does not overflow a 64-bit int)
+-        //
+-        //   = p_lo + 2^64 p_hi
+-
+-        const std::uint64_t u_lo = x.f & 0xFFFFFFFFu;
+-        const std::uint64_t u_hi = x.f >> 32u;
+-        const std::uint64_t v_lo = y.f & 0xFFFFFFFFu;
+-        const std::uint64_t v_hi = y.f >> 32u;
+-
+-        const std::uint64_t p0 = u_lo * v_lo;
+-        const std::uint64_t p1 = u_lo * v_hi;
+-        const std::uint64_t p2 = u_hi * v_lo;
+-        const std::uint64_t p3 = u_hi * v_hi;
+-
+-        const std::uint64_t p0_hi = p0 >> 32u;
+-        const std::uint64_t p1_lo = p1 & 0xFFFFFFFFu;
+-        const std::uint64_t p1_hi = p1 >> 32u;
+-        const std::uint64_t p2_lo = p2 & 0xFFFFFFFFu;
+-        const std::uint64_t p2_hi = p2 >> 32u;
+-
+-        std::uint64_t Q = p0_hi + p1_lo + p2_lo;
+-
+-        // The full product might now be computed as
+-        //
+-        // p_hi = p3 + p2_hi + p1_hi + (Q >> 32)
+-        // p_lo = p0_lo + (Q << 32)
+-        //
+-        // But in this particular case here, the full p_lo is not required.
+-        // Effectively we only need to add the highest bit in p_lo to p_hi (and
+-        // Q_hi + 1 does not overflow).
+-
+-        Q += std::uint64_t{1} << (64u - 32u - 1u); // round, ties up
+-
+-        const std::uint64_t h = p3 + p2_hi + p1_hi + (Q >> 32u);
+-
+-        return {h, x.e + y.e + 64};
+-    }
+-
+-    /*!
+-    @brief normalize x such that the significand is >= 2^(q-1)
+-    @pre x.f != 0
+-    */
+-    static diyfp normalize(diyfp x) noexcept
+-    {
+-        JSON_ASSERT(x.f != 0);
+-
+-        while ((x.f >> 63u) == 0)
+-        {
+-            x.f <<= 1u;
+-            x.e--;
+-        }
+-
+-        return x;
+-    }
+-
+-    /*!
+-    @brief normalize x such that the result has the exponent E
+-    @pre e >= x.e and the upper e - x.e bits of x.f must be zero.
+-    */
+-    static diyfp normalize_to(const diyfp& x, const int target_exponent) noexcept
+-    {
+-        const int delta = x.e - target_exponent;
+-
+-        JSON_ASSERT(delta >= 0);
+-        JSON_ASSERT(((x.f << delta) >> delta) == x.f);
+-
+-        return {x.f << delta, target_exponent};
+-    }
+-};
+-
+-struct boundaries
+-{
+-    diyfp w;
+-    diyfp minus;
+-    diyfp plus;
+-};
+-
+-/*!
+-Compute the (normalized) diyfp representing the input number 'value' and its
+-boundaries.
+-
+-@pre value must be finite and positive
+-*/
+-template<typename FloatType>
+-boundaries compute_boundaries(FloatType value)
+-{
+-    JSON_ASSERT(std::isfinite(value));
+-    JSON_ASSERT(value > 0);
+-
+-    // Convert the IEEE representation into a diyfp.
+-    //
+-    // If v is denormal:
+-    //      value = 0.F * 2^(1 - bias) = (          F) * 2^(1 - bias - (p-1))
+-    // If v is normalized:
+-    //      value = 1.F * 2^(E - bias) = (2^(p-1) + F) * 2^(E - bias - (p-1))
+-
+-    static_assert(std::numeric_limits<FloatType>::is_iec559,
+-                  "internal error: dtoa_short requires an IEEE-754 floating-point implementation");
+-
+-    constexpr int      kPrecision = std::numeric_limits<FloatType>::digits; // = p (includes the hidden bit)
+-    constexpr int      kBias      = std::numeric_limits<FloatType>::max_exponent - 1 + (kPrecision - 1);
+-    constexpr int      kMinExp    = 1 - kBias;
+-    constexpr std::uint64_t kHiddenBit = std::uint64_t{1} << (kPrecision - 1); // = 2^(p-1)
+-
+-    using bits_type = typename std::conditional<kPrecision == 24, std::uint32_t, std::uint64_t >::type;
+-
+-    const auto bits = static_cast<std::uint64_t>(reinterpret_bits<bits_type>(value));
+-    const std::uint64_t E = bits >> (kPrecision - 1);
+-    const std::uint64_t F = bits & (kHiddenBit - 1);
+-
+-    const bool is_denormal = E == 0;
+-    const diyfp v = is_denormal
+-                    ? diyfp(F, kMinExp)
+-                    : diyfp(F + kHiddenBit, static_cast<int>(E) - kBias);
+-
+-    // Compute the boundaries m- and m+ of the floating-point value
+-    // v = f * 2^e.
+-    //
+-    // Determine v- and v+, the floating-point predecessor and successor if v,
+-    // respectively.
+-    //
+-    //      v- = v - 2^e        if f != 2^(p-1) or e == e_min                (A)
+-    //         = v - 2^(e-1)    if f == 2^(p-1) and e > e_min                (B)
+-    //
+-    //      v+ = v + 2^e
+-    //
+-    // Let m- = (v- + v) / 2 and m+ = (v + v+) / 2. All real numbers _strictly_
+-    // between m- and m+ round to v, regardless of how the input rounding
+-    // algorithm breaks ties.
+-    //
+-    //      ---+-------------+-------------+-------------+-------------+---  (A)
+-    //         v-            m-            v             m+            v+
+-    //
+-    //      -----------------+------+------+-------------+-------------+---  (B)
+-    //                       v-     m-     v             m+            v+
+-
+-    const bool lower_boundary_is_closer = F == 0 && E > 1;
+-    const diyfp m_plus = diyfp(2 * v.f + 1, v.e - 1);
+-    const diyfp m_minus = lower_boundary_is_closer
+-                          ? diyfp(4 * v.f - 1, v.e - 2)  // (B)
+-                          : diyfp(2 * v.f - 1, v.e - 1); // (A)
+-
+-    // Determine the normalized w+ = m+.
+-    const diyfp w_plus = diyfp::normalize(m_plus);
+-
+-    // Determine w- = m- such that e_(w-) = e_(w+).
+-    const diyfp w_minus = diyfp::normalize_to(m_minus, w_plus.e);
+-
+-    return {diyfp::normalize(v), w_minus, w_plus};
+-}
+-
+-// Given normalized diyfp w, Grisu needs to find a (normalized) cached
+-// power-of-ten c, such that the exponent of the product c * w = f * 2^e lies
+-// within a certain range [alpha, gamma] (Definition 3.2 from [1])
+-//
+-//      alpha <= e = e_c + e_w + q <= gamma
+-//
+-// or
+-//
+-//      f_c * f_w * 2^alpha <= f_c 2^(e_c) * f_w 2^(e_w) * 2^q
+-//                          <= f_c * f_w * 2^gamma
+-//
+-// Since c and w are normalized, i.e. 2^(q-1) <= f < 2^q, this implies
+-//
+-//      2^(q-1) * 2^(q-1) * 2^alpha <= c * w * 2^q < 2^q * 2^q * 2^gamma
+-//
+-// or
+-//
+-//      2^(q - 2 + alpha) <= c * w < 2^(q + gamma)
+-//
+-// The choice of (alpha,gamma) determines the size of the table and the form of
+-// the digit generation procedure. Using (alpha,gamma)=(-60,-32) works out well
+-// in practice:
+-//
+-// The idea is to cut the number c * w = f * 2^e into two parts, which can be
+-// processed independently: An integral part p1, and a fractional part p2:
+-//
+-//      f * 2^e = ( (f div 2^-e) * 2^-e + (f mod 2^-e) ) * 2^e
+-//              = (f div 2^-e) + (f mod 2^-e) * 2^e
+-//              = p1 + p2 * 2^e
+-//
+-// The conversion of p1 into decimal form requires a series of divisions and
+-// modulos by (a power of) 10. These operations are faster for 32-bit than for
+-// 64-bit integers, so p1 should ideally fit into a 32-bit integer. This can be
+-// achieved by choosing
+-//
+-//      -e >= 32   or   e <= -32 := gamma
+-//
+-// In order to convert the fractional part
+-//
+-//      p2 * 2^e = p2 / 2^-e = d[-1] / 10^1 + d[-2] / 10^2 + ...
+-//
+-// into decimal form, the fraction is repeatedly multiplied by 10 and the digits
+-// d[-i] are extracted in order:
+-//
+-//      (10 * p2) div 2^-e = d[-1]
+-//      (10 * p2) mod 2^-e = d[-2] / 10^1 + ...
+-//
+-// The multiplication by 10 must not overflow. It is sufficient to choose
+-//
+-//      10 * p2 < 16 * p2 = 2^4 * p2 <= 2^64.
+-//
+-// Since p2 = f mod 2^-e < 2^-e,
+-//
+-//      -e <= 60   or   e >= -60 := alpha
+-
+-constexpr int kAlpha = -60;
+-constexpr int kGamma = -32;
+-
+-struct cached_power // c = f * 2^e ~= 10^k
+-{
+-    std::uint64_t f;
+-    int e;
+-    int k;
+-};
+-
+-/*!
+-For a normalized diyfp w = f * 2^e, this function returns a (normalized) cached
+-power-of-ten c = f_c * 2^e_c, such that the exponent of the product w * c
+-satisfies (Definition 3.2 from [1])
+-
+-     alpha <= e_c + e + q <= gamma.
+-*/
+-inline cached_power get_cached_power_for_binary_exponent(int e)
+-{
+-    // Now
+-    //
+-    //      alpha <= e_c + e + q <= gamma                                    (1)
+-    //      ==> f_c * 2^alpha <= c * 2^e * 2^q
+-    //
+-    // and since the c's are normalized, 2^(q-1) <= f_c,
+-    //
+-    //      ==> 2^(q - 1 + alpha) <= c * 2^(e + q)
+-    //      ==> 2^(alpha - e - 1) <= c
+-    //
+-    // If c were an exact power of ten, i.e. c = 10^k, one may determine k as
+-    //
+-    //      k = ceil( log_10( 2^(alpha - e - 1) ) )
+-    //        = ceil( (alpha - e - 1) * log_10(2) )
+-    //
+-    // From the paper:
+-    // "In theory the result of the procedure could be wrong since c is rounded,
+-    //  and the computation itself is approximated [...]. In practice, however,
+-    //  this simple function is sufficient."
+-    //
+-    // For IEEE double precision floating-point numbers converted into
+-    // normalized diyfp's w = f * 2^e, with q = 64,
+-    //
+-    //      e >= -1022      (min IEEE exponent)
+-    //           -52        (p - 1)
+-    //           -52        (p - 1, possibly normalize denormal IEEE numbers)
+-    //           -11        (normalize the diyfp)
+-    //         = -1137
+-    //
+-    // and
+-    //
+-    //      e <= +1023      (max IEEE exponent)
+-    //           -52        (p - 1)
+-    //           -11        (normalize the diyfp)
+-    //         = 960
+-    //
+-    // This binary exponent range [-1137,960] results in a decimal exponent
+-    // range [-307,324]. One does not need to store a cached power for each
+-    // k in this range. For each such k it suffices to find a cached power
+-    // such that the exponent of the product lies in [alpha,gamma].
+-    // This implies that the difference of the decimal exponents of adjacent
+-    // table entries must be less than or equal to
+-    //
+-    //      floor( (gamma - alpha) * log_10(2) ) = 8.
+-    //
+-    // (A smaller distance gamma-alpha would require a larger table.)
+-
+-    // NB:
+-    // Actually this function returns c, such that -60 <= e_c + e + 64 <= -34.
+-
+-    constexpr int kCachedPowersMinDecExp = -300;
+-    constexpr int kCachedPowersDecStep = 8;
+-
+-    static constexpr std::array<cached_power, 79> kCachedPowers =
+-    {
+-        {
+-            { 0xAB70FE17C79AC6CA, -1060, -300 },
+-            { 0xFF77B1FCBEBCDC4F, -1034, -292 },
+-            { 0xBE5691EF416BD60C, -1007, -284 },
+-            { 0x8DD01FAD907FFC3C,  -980, -276 },
+-            { 0xD3515C2831559A83,  -954, -268 },
+-            { 0x9D71AC8FADA6C9B5,  -927, -260 },
+-            { 0xEA9C227723EE8BCB,  -901, -252 },
+-            { 0xAECC49914078536D,  -874, -244 },
+-            { 0x823C12795DB6CE57,  -847, -236 },
+-            { 0xC21094364DFB5637,  -821, -228 },
+-            { 0x9096EA6F3848984F,  -794, -220 },
+-            { 0xD77485CB25823AC7,  -768, -212 },
+-            { 0xA086CFCD97BF97F4,  -741, -204 },
+-            { 0xEF340A98172AACE5,  -715, -196 },
+-            { 0xB23867FB2A35B28E,  -688, -188 },
+-            { 0x84C8D4DFD2C63F3B,  -661, -180 },
+-            { 0xC5DD44271AD3CDBA,  -635, -172 },
+-            { 0x936B9FCEBB25C996,  -608, -164 },
+-            { 0xDBAC6C247D62A584,  -582, -156 },
+-            { 0xA3AB66580D5FDAF6,  -555, -148 },
+-            { 0xF3E2F893DEC3F126,  -529, -140 },
+-            { 0xB5B5ADA8AAFF80B8,  -502, -132 },
+-            { 0x87625F056C7C4A8B,  -475, -124 },
+-            { 0xC9BCFF6034C13053,  -449, -116 },
+-            { 0x964E858C91BA2655,  -422, -108 },
+-            { 0xDFF9772470297EBD,  -396, -100 },
+-            { 0xA6DFBD9FB8E5B88F,  -369,  -92 },
+-            { 0xF8A95FCF88747D94,  -343,  -84 },
+-            { 0xB94470938FA89BCF,  -316,  -76 },
+-            { 0x8A08F0F8BF0F156B,  -289,  -68 },
+-            { 0xCDB02555653131B6,  -263,  -60 },
+-            { 0x993FE2C6D07B7FAC,  -236,  -52 },
+-            { 0xE45C10C42A2B3B06,  -210,  -44 },
+-            { 0xAA242499697392D3,  -183,  -36 },
+-            { 0xFD87B5F28300CA0E,  -157,  -28 },
+-            { 0xBCE5086492111AEB,  -130,  -20 },
+-            { 0x8CBCCC096F5088CC,  -103,  -12 },
+-            { 0xD1B71758E219652C,   -77,   -4 },
+-            { 0x9C40000000000000,   -50,    4 },
+-            { 0xE8D4A51000000000,   -24,   12 },
+-            { 0xAD78EBC5AC620000,     3,   20 },
+-            { 0x813F3978F8940984,    30,   28 },
+-            { 0xC097CE7BC90715B3,    56,   36 },
+-            { 0x8F7E32CE7BEA5C70,    83,   44 },
+-            { 0xD5D238A4ABE98068,   109,   52 },
+-            { 0x9F4F2726179A2245,   136,   60 },
+-            { 0xED63A231D4C4FB27,   162,   68 },
+-            { 0xB0DE65388CC8ADA8,   189,   76 },
+-            { 0x83C7088E1AAB65DB,   216,   84 },
+-            { 0xC45D1DF942711D9A,   242,   92 },
+-            { 0x924D692CA61BE758,   269,  100 },
+-            { 0xDA01EE641A708DEA,   295,  108 },
+-            { 0xA26DA3999AEF774A,   322,  116 },
+-            { 0xF209787BB47D6B85,   348,  124 },
+-            { 0xB454E4A179DD1877,   375,  132 },
+-            { 0x865B86925B9BC5C2,   402,  140 },
+-            { 0xC83553C5C8965D3D,   428,  148 },
+-            { 0x952AB45CFA97A0B3,   455,  156 },
+-            { 0xDE469FBD99A05FE3,   481,  164 },
+-            { 0xA59BC234DB398C25,   508,  172 },
+-            { 0xF6C69A72A3989F5C,   534,  180 },
+-            { 0xB7DCBF5354E9BECE,   561,  188 },
+-            { 0x88FCF317F22241E2,   588,  196 },
+-            { 0xCC20CE9BD35C78A5,   614,  204 },
+-            { 0x98165AF37B2153DF,   641,  212 },
+-            { 0xE2A0B5DC971F303A,   667,  220 },
+-            { 0xA8D9D1535CE3B396,   694,  228 },
+-            { 0xFB9B7CD9A4A7443C,   720,  236 },
+-            { 0xBB764C4CA7A44410,   747,  244 },
+-            { 0x8BAB8EEFB6409C1A,   774,  252 },
+-            { 0xD01FEF10A657842C,   800,  260 },
+-            { 0x9B10A4E5E9913129,   827,  268 },
+-            { 0xE7109BFBA19C0C9D,   853,  276 },
+-            { 0xAC2820D9623BF429,   880,  284 },
+-            { 0x80444B5E7AA7CF85,   907,  292 },
+-            { 0xBF21E44003ACDD2D,   933,  300 },
+-            { 0x8E679C2F5E44FF8F,   960,  308 },
+-            { 0xD433179D9C8CB841,   986,  316 },
+-            { 0x9E19DB92B4E31BA9,  1013,  324 },
+-        }
+-    };
+-
+-    // This computation gives exactly the same results for k as
+-    //      k = ceil((kAlpha - e - 1) * 0.30102999566398114)
+-    // for |e| <= 1500, but doesn't require floating-point operations.
+-    // NB: log_10(2) ~= 78913 / 2^18
+-    JSON_ASSERT(e >= -1500);
+-    JSON_ASSERT(e <=  1500);
+-    const int f = kAlpha - e - 1;
+-    const int k = (f * 78913) / (1 << 18) + static_cast<int>(f > 0);
+-
+-    const int index = (-kCachedPowersMinDecExp + k + (kCachedPowersDecStep - 1)) / kCachedPowersDecStep;
+-    JSON_ASSERT(index >= 0);
+-    JSON_ASSERT(static_cast<std::size_t>(index) < kCachedPowers.size());
+-
+-    const cached_power cached = kCachedPowers[static_cast<std::size_t>(index)];
+-    JSON_ASSERT(kAlpha <= cached.e + e + 64);
+-    JSON_ASSERT(kGamma >= cached.e + e + 64);
+-
+-    return cached;
+-}
+-
+-/*!
+-For n != 0, returns k, such that pow10 := 10^(k-1) <= n < 10^k.
+-For n == 0, returns 1 and sets pow10 := 1.
+-*/
+-inline int find_largest_pow10(const std::uint32_t n, std::uint32_t& pow10)
+-{
+-    // LCOV_EXCL_START
+-    if (n >= 1000000000)
+-    {
+-        pow10 = 1000000000;
+-        return 10;
+-    }
+-    // LCOV_EXCL_STOP
+-    if (n >= 100000000)
+-    {
+-        pow10 = 100000000;
+-        return  9;
+-    }
+-    if (n >= 10000000)
+-    {
+-        pow10 = 10000000;
+-        return  8;
+-    }
+-    if (n >= 1000000)
+-    {
+-        pow10 = 1000000;
+-        return  7;
+-    }
+-    if (n >= 100000)
+-    {
+-        pow10 = 100000;
+-        return  6;
+-    }
+-    if (n >= 10000)
+-    {
+-        pow10 = 10000;
+-        return  5;
+-    }
+-    if (n >= 1000)
+-    {
+-        pow10 = 1000;
+-        return  4;
+-    }
+-    if (n >= 100)
+-    {
+-        pow10 = 100;
+-        return  3;
+-    }
+-    if (n >= 10)
+-    {
+-        pow10 = 10;
+-        return  2;
+-    }
+-
+-    pow10 = 1;
+-    return 1;
+-}
+-
+-inline void grisu2_round(char* buf, int len, std::uint64_t dist, std::uint64_t delta,
+-                         std::uint64_t rest, std::uint64_t ten_k)
+-{
+-    JSON_ASSERT(len >= 1);
+-    JSON_ASSERT(dist <= delta);
+-    JSON_ASSERT(rest <= delta);
+-    JSON_ASSERT(ten_k > 0);
+-
+-    //               <--------------------------- delta ---->
+-    //                                  <---- dist --------->
+-    // --------------[------------------+-------------------]--------------
+-    //               M-                 w                   M+
+-    //
+-    //                                  ten_k
+-    //                                <------>
+-    //                                       <---- rest ---->
+-    // --------------[------------------+----+--------------]--------------
+-    //                                  w    V
+-    //                                       = buf * 10^k
+-    //
+-    // ten_k represents a unit-in-the-last-place in the decimal representation
+-    // stored in buf.
+-    // Decrement buf by ten_k while this takes buf closer to w.
+-
+-    // The tests are written in this order to avoid overflow in unsigned
+-    // integer arithmetic.
+-
+-    while (rest < dist
+-            && delta - rest >= ten_k
+-            && (rest + ten_k < dist || dist - rest > rest + ten_k - dist))
+-    {
+-        JSON_ASSERT(buf[len - 1] != '0');
+-        buf[len - 1]--;
+-        rest += ten_k;
+-    }
+-}
+-
+-/*!
+-Generates V = buffer * 10^decimal_exponent, such that M- <= V <= M+.
+-M- and M+ must be normalized and share the same exponent -60 <= e <= -32.
+-*/
+-inline void grisu2_digit_gen(char* buffer, int& length, int& decimal_exponent,
+-                             diyfp M_minus, diyfp w, diyfp M_plus)
+-{
+-    static_assert(kAlpha >= -60, "internal error");
+-    static_assert(kGamma <= -32, "internal error");
+-
+-    // Generates the digits (and the exponent) of a decimal floating-point
+-    // number V = buffer * 10^decimal_exponent in the range [M-, M+]. The diyfp's
+-    // w, M- and M+ share the same exponent e, which satisfies alpha <= e <= gamma.
+-    //
+-    //               <--------------------------- delta ---->
+-    //                                  <---- dist --------->
+-    // --------------[------------------+-------------------]--------------
+-    //               M-                 w                   M+
+-    //
+-    // Grisu2 generates the digits of M+ from left to right and stops as soon as
+-    // V is in [M-,M+].
+-
+-    JSON_ASSERT(M_plus.e >= kAlpha);
+-    JSON_ASSERT(M_plus.e <= kGamma);
+-
+-    std::uint64_t delta = diyfp::sub(M_plus, M_minus).f; // (significand of (M+ - M-), implicit exponent is e)
+-    std::uint64_t dist  = diyfp::sub(M_plus, w      ).f; // (significand of (M+ - w ), implicit exponent is e)
+-
+-    // Split M+ = f * 2^e into two parts p1 and p2 (note: e < 0):
+-    //
+-    //      M+ = f * 2^e
+-    //         = ((f div 2^-e) * 2^-e + (f mod 2^-e)) * 2^e
+-    //         = ((p1        ) * 2^-e + (p2        )) * 2^e
+-    //         = p1 + p2 * 2^e
+-
+-    const diyfp one(std::uint64_t{1} << -M_plus.e, M_plus.e);
+-
+-    auto p1 = static_cast<std::uint32_t>(M_plus.f >> -one.e); // p1 = f div 2^-e (Since -e >= 32, p1 fits into a 32-bit int.)
+-    std::uint64_t p2 = M_plus.f & (one.f - 1);                    // p2 = f mod 2^-e
+-
+-    // 1)
+-    //
+-    // Generate the digits of the integral part p1 = d[n-1]...d[1]d[0]
+-
+-    JSON_ASSERT(p1 > 0);
+-
+-    std::uint32_t pow10{};
+-    const int k = find_largest_pow10(p1, pow10);
+-
+-    //      10^(k-1) <= p1 < 10^k, pow10 = 10^(k-1)
+-    //
+-    //      p1 = (p1 div 10^(k-1)) * 10^(k-1) + (p1 mod 10^(k-1))
+-    //         = (d[k-1]         ) * 10^(k-1) + (p1 mod 10^(k-1))
+-    //
+-    //      M+ = p1                                             + p2 * 2^e
+-    //         = d[k-1] * 10^(k-1) + (p1 mod 10^(k-1))          + p2 * 2^e
+-    //         = d[k-1] * 10^(k-1) + ((p1 mod 10^(k-1)) * 2^-e + p2) * 2^e
+-    //         = d[k-1] * 10^(k-1) + (                         rest) * 2^e
+-    //
+-    // Now generate the digits d[n] of p1 from left to right (n = k-1,...,0)
+-    //
+-    //      p1 = d[k-1]...d[n] * 10^n + d[n-1]...d[0]
+-    //
+-    // but stop as soon as
+-    //
+-    //      rest * 2^e = (d[n-1]...d[0] * 2^-e + p2) * 2^e <= delta * 2^e
+-
+-    int n = k;
+-    while (n > 0)
+-    {
+-        // Invariants:
+-        //      M+ = buffer * 10^n + (p1 + p2 * 2^e)    (buffer = 0 for n = k)
+-        //      pow10 = 10^(n-1) <= p1 < 10^n
+-        //
+-        const std::uint32_t d = p1 / pow10;  // d = p1 div 10^(n-1)
+-        const std::uint32_t r = p1 % pow10;  // r = p1 mod 10^(n-1)
+-        //
+-        //      M+ = buffer * 10^n + (d * 10^(n-1) + r) + p2 * 2^e
+-        //         = (buffer * 10 + d) * 10^(n-1) + (r + p2 * 2^e)
+-        //
+-        JSON_ASSERT(d <= 9);
+-        buffer[length++] = static_cast<char>('0' + d); // buffer := buffer * 10 + d
+-        //
+-        //      M+ = buffer * 10^(n-1) + (r + p2 * 2^e)
+-        //
+-        p1 = r;
+-        n--;
+-        //
+-        //      M+ = buffer * 10^n + (p1 + p2 * 2^e)
+-        //      pow10 = 10^n
+-        //
+-
+-        // Now check if enough digits have been generated.
+-        // Compute
+-        //
+-        //      p1 + p2 * 2^e = (p1 * 2^-e + p2) * 2^e = rest * 2^e
+-        //
+-        // Note:
+-        // Since rest and delta share the same exponent e, it suffices to
+-        // compare the significands.
+-        const std::uint64_t rest = (std::uint64_t{p1} << -one.e) + p2;
+-        if (rest <= delta)
+-        {
+-            // V = buffer * 10^n, with M- <= V <= M+.
+-
+-            decimal_exponent += n;
+-
+-            // We may now just stop. But instead look if the buffer could be
+-            // decremented to bring V closer to w.
+-            //
+-            // pow10 = 10^n is now 1 ulp in the decimal representation V.
+-            // The rounding procedure works with diyfp's with an implicit
+-            // exponent of e.
+-            //
+-            //      10^n = (10^n * 2^-e) * 2^e = ulp * 2^e
+-            //
+-            const std::uint64_t ten_n = std::uint64_t{pow10} << -one.e;
+-            grisu2_round(buffer, length, dist, delta, rest, ten_n);
+-
+-            return;
+-        }
+-
+-        pow10 /= 10;
+-        //
+-        //      pow10 = 10^(n-1) <= p1 < 10^n
+-        // Invariants restored.
+-    }
+-
+-    // 2)
+-    //
+-    // The digits of the integral part have been generated:
+-    //
+-    //      M+ = d[k-1]...d[1]d[0] + p2 * 2^e
+-    //         = buffer            + p2 * 2^e
+-    //
+-    // Now generate the digits of the fractional part p2 * 2^e.
+-    //
+-    // Note:
+-    // No decimal point is generated: the exponent is adjusted instead.
+-    //
+-    // p2 actually represents the fraction
+-    //
+-    //      p2 * 2^e
+-    //          = p2 / 2^-e
+-    //          = d[-1] / 10^1 + d[-2] / 10^2 + ...
+-    //
+-    // Now generate the digits d[-m] of p1 from left to right (m = 1,2,...)
+-    //
+-    //      p2 * 2^e = d[-1]d[-2]...d[-m] * 10^-m
+-    //                      + 10^-m * (d[-m-1] / 10^1 + d[-m-2] / 10^2 + ...)
+-    //
+-    // using
+-    //
+-    //      10^m * p2 = ((10^m * p2) div 2^-e) * 2^-e + ((10^m * p2) mod 2^-e)
+-    //                = (                   d) * 2^-e + (                   r)
+-    //
+-    // or
+-    //      10^m * p2 * 2^e = d + r * 2^e
+-    //
+-    // i.e.
+-    //
+-    //      M+ = buffer + p2 * 2^e
+-    //         = buffer + 10^-m * (d + r * 2^e)
+-    //         = (buffer * 10^m + d) * 10^-m + 10^-m * r * 2^e
+-    //
+-    // and stop as soon as 10^-m * r * 2^e <= delta * 2^e
+-
+-    JSON_ASSERT(p2 > delta);
+-
+-    int m = 0;
+-    for (;;)
+-    {
+-        // Invariant:
+-        //      M+ = buffer * 10^-m + 10^-m * (d[-m-1] / 10 + d[-m-2] / 10^2 + ...) * 2^e
+-        //         = buffer * 10^-m + 10^-m * (p2                                 ) * 2^e
+-        //         = buffer * 10^-m + 10^-m * (1/10 * (10 * p2)                   ) * 2^e
+-        //         = buffer * 10^-m + 10^-m * (1/10 * ((10*p2 div 2^-e) * 2^-e + (10*p2 mod 2^-e)) * 2^e
+-        //
+-        JSON_ASSERT(p2 <= (std::numeric_limits<std::uint64_t>::max)() / 10);
+-        p2 *= 10;
+-        const std::uint64_t d = p2 >> -one.e;     // d = (10 * p2) div 2^-e
+-        const std::uint64_t r = p2 & (one.f - 1); // r = (10 * p2) mod 2^-e
+-        //
+-        //      M+ = buffer * 10^-m + 10^-m * (1/10 * (d * 2^-e + r) * 2^e
+-        //         = buffer * 10^-m + 10^-m * (1/10 * (d + r * 2^e))
+-        //         = (buffer * 10 + d) * 10^(-m-1) + 10^(-m-1) * r * 2^e
+-        //
+-        JSON_ASSERT(d <= 9);
+-        buffer[length++] = static_cast<char>('0' + d); // buffer := buffer * 10 + d
+-        //
+-        //      M+ = buffer * 10^(-m-1) + 10^(-m-1) * r * 2^e
+-        //
+-        p2 = r;
+-        m++;
+-        //
+-        //      M+ = buffer * 10^-m + 10^-m * p2 * 2^e
+-        // Invariant restored.
+-
+-        // Check if enough digits have been generated.
+-        //
+-        //      10^-m * p2 * 2^e <= delta * 2^e
+-        //              p2 * 2^e <= 10^m * delta * 2^e
+-        //                    p2 <= 10^m * delta
+-        delta *= 10;
+-        dist  *= 10;
+-        if (p2 <= delta)
+-        {
+-            break;
+-        }
+-    }
+-
+-    // V = buffer * 10^-m, with M- <= V <= M+.
+-
+-    decimal_exponent -= m;
+-
+-    // 1 ulp in the decimal representation is now 10^-m.
+-    // Since delta and dist are now scaled by 10^m, we need to do the
+-    // same with ulp in order to keep the units in sync.
+-    //
+-    //      10^m * 10^-m = 1 = 2^-e * 2^e = ten_m * 2^e
+-    //
+-    const std::uint64_t ten_m = one.f;
+-    grisu2_round(buffer, length, dist, delta, p2, ten_m);
+-
+-    // By construction this algorithm generates the shortest possible decimal
+-    // number (Loitsch, Theorem 6.2) which rounds back to w.
+-    // For an input number of precision p, at least
+-    //
+-    //      N = 1 + ceil(p * log_10(2))
+-    //
+-    // decimal digits are sufficient to identify all binary floating-point
+-    // numbers (Matula, "In-and-Out conversions").
+-    // This implies that the algorithm does not produce more than N decimal
+-    // digits.
+-    //
+-    //      N = 17 for p = 53 (IEEE double precision)
+-    //      N = 9  for p = 24 (IEEE single precision)
+-}
+-
+-/*!
+-v = buf * 10^decimal_exponent
+-len is the length of the buffer (number of decimal digits)
+-The buffer must be large enough, i.e. >= max_digits10.
+-*/
+-JSON_HEDLEY_NON_NULL(1)
+-inline void grisu2(char* buf, int& len, int& decimal_exponent,
+-                   diyfp m_minus, diyfp v, diyfp m_plus)
+-{
+-    JSON_ASSERT(m_plus.e == m_minus.e);
+-    JSON_ASSERT(m_plus.e == v.e);
+-
+-    //  --------(-----------------------+-----------------------)--------    (A)
+-    //          m-                      v                       m+
+-    //
+-    //  --------------------(-----------+-----------------------)--------    (B)
+-    //                      m-          v                       m+
+-    //
+-    // First scale v (and m- and m+) such that the exponent is in the range
+-    // [alpha, gamma].
+-
+-    const cached_power cached = get_cached_power_for_binary_exponent(m_plus.e);
+-
+-    const diyfp c_minus_k(cached.f, cached.e); // = c ~= 10^-k
+-
+-    // The exponent of the products is = v.e + c_minus_k.e + q and is in the range [alpha,gamma]
+-    const diyfp w       = diyfp::mul(v,       c_minus_k);
+-    const diyfp w_minus = diyfp::mul(m_minus, c_minus_k);
+-    const diyfp w_plus  = diyfp::mul(m_plus,  c_minus_k);
+-
+-    //  ----(---+---)---------------(---+---)---------------(---+---)----
+-    //          w-                      w                       w+
+-    //          = c*m-                  = c*v                   = c*m+
+-    //
+-    // diyfp::mul rounds its result and c_minus_k is approximated too. w, w- and
+-    // w+ are now off by a small amount.
+-    // In fact:
+-    //
+-    //      w - v * 10^k < 1 ulp
+-    //
+-    // To account for this inaccuracy, add resp. subtract 1 ulp.
+-    //
+-    //  --------+---[---------------(---+---)---------------]---+--------
+-    //          w-  M-                  w                   M+  w+
+-    //
+-    // Now any number in [M-, M+] (bounds included) will round to w when input,
+-    // regardless of how the input rounding algorithm breaks ties.
+-    //
+-    // And digit_gen generates the shortest possible such number in [M-, M+].
+-    // Note that this does not mean that Grisu2 always generates the shortest
+-    // possible number in the interval (m-, m+).
+-    const diyfp M_minus(w_minus.f + 1, w_minus.e);
+-    const diyfp M_plus (w_plus.f  - 1, w_plus.e );
+-
+-    decimal_exponent = -cached.k; // = -(-k) = k
+-
+-    grisu2_digit_gen(buf, len, decimal_exponent, M_minus, w, M_plus);
+-}
+-
+-/*!
+-v = buf * 10^decimal_exponent
+-len is the length of the buffer (number of decimal digits)
+-The buffer must be large enough, i.e. >= max_digits10.
+-*/
+-template<typename FloatType>
+-JSON_HEDLEY_NON_NULL(1)
+-void grisu2(char* buf, int& len, int& decimal_exponent, FloatType value)
+-{
+-    static_assert(diyfp::kPrecision >= std::numeric_limits<FloatType>::digits + 3,
+-                  "internal error: not enough precision");
+-
+-    JSON_ASSERT(std::isfinite(value));
+-    JSON_ASSERT(value > 0);
+-
+-    // If the neighbors (and boundaries) of 'value' are always computed for double-precision
+-    // numbers, all float's can be recovered using strtod (and strtof). However, the resulting
+-    // decimal representations are not exactly "short".
+-    //
+-    // The documentation for 'std::to_chars' (https://en.cppreference.com/w/cpp/utility/to_chars)
+-    // says "value is converted to a string as if by std::sprintf in the default ("C") locale"
+-    // and since sprintf promotes floats to doubles, I think this is exactly what 'std::to_chars'
+-    // does.
+-    // On the other hand, the documentation for 'std::to_chars' requires that "parsing the
+-    // representation using the corresponding std::from_chars function recovers value exactly". That
+-    // indicates that single precision floating-point numbers should be recovered using
+-    // 'std::strtof'.
+-    //
+-    // NB: If the neighbors are computed for single-precision numbers, there is a single float
+-    //     (7.0385307e-26f) which can't be recovered using strtod. The resulting double precision
+-    //     value is off by 1 ulp.
+-#if 0
+-    const boundaries w = compute_boundaries(static_cast<double>(value));
+-#else
+-    const boundaries w = compute_boundaries(value);
+-#endif
+-
+-    grisu2(buf, len, decimal_exponent, w.minus, w.w, w.plus);
+-}
+-
+-/*!
+-@brief appends a decimal representation of e to buf
+-@return a pointer to the element following the exponent.
+-@pre -1000 < e < 1000
+-*/
+-JSON_HEDLEY_NON_NULL(1)
+-JSON_HEDLEY_RETURNS_NON_NULL
+-inline char* append_exponent(char* buf, int e)
+-{
+-    JSON_ASSERT(e > -1000);
+-    JSON_ASSERT(e <  1000);
+-
+-    if (e < 0)
+-    {
+-        e = -e;
+-        *buf++ = '-';
+-    }
+-    else
+-    {
+-        *buf++ = '+';
+-    }
+-
+-    auto k = static_cast<std::uint32_t>(e);
+-    if (k < 10)
+-    {
+-        // Always print at least two digits in the exponent.
+-        // This is for compatibility with printf("%g").
+-        *buf++ = '0';
+-        *buf++ = static_cast<char>('0' + k);
+-    }
+-    else if (k < 100)
+-    {
+-        *buf++ = static_cast<char>('0' + k / 10);
+-        k %= 10;
+-        *buf++ = static_cast<char>('0' + k);
+-    }
+-    else
+-    {
+-        *buf++ = static_cast<char>('0' + k / 100);
+-        k %= 100;
+-        *buf++ = static_cast<char>('0' + k / 10);
+-        k %= 10;
+-        *buf++ = static_cast<char>('0' + k);
+-    }
+-
+-    return buf;
+-}
+-
+-/*!
+-@brief prettify v = buf * 10^decimal_exponent
+-
+-If v is in the range [10^min_exp, 10^max_exp) it will be printed in fixed-point
+-notation. Otherwise it will be printed in exponential notation.
+-
+-@pre min_exp < 0
+-@pre max_exp > 0
+-*/
+-JSON_HEDLEY_NON_NULL(1)
+-JSON_HEDLEY_RETURNS_NON_NULL
+-inline char* format_buffer(char* buf, int len, int decimal_exponent,
+-                           int min_exp, int max_exp)
+-{
+-    JSON_ASSERT(min_exp < 0);
+-    JSON_ASSERT(max_exp > 0);
+-
+-    const int k = len;
+-    const int n = len + decimal_exponent;
+-
+-    // v = buf * 10^(n-k)
+-    // k is the length of the buffer (number of decimal digits)
+-    // n is the position of the decimal point relative to the start of the buffer.
+-
+-    if (k <= n && n <= max_exp)
+-    {
+-        // digits[000]
+-        // len <= max_exp + 2
+-
+-        std::memset(buf + k, '0', static_cast<size_t>(n) - static_cast<size_t>(k));
+-        // Make it look like a floating-point number (#362, #378)
+-        buf[n + 0] = '.';
+-        buf[n + 1] = '0';
+-        return buf + (static_cast<size_t>(n) + 2);
+-    }
+-
+-    if (0 < n && n <= max_exp)
+-    {
+-        // dig.its
+-        // len <= max_digits10 + 1
+-
+-        JSON_ASSERT(k > n);
+-
+-        std::memmove(buf + (static_cast<size_t>(n) + 1), buf + n, static_cast<size_t>(k) - static_cast<size_t>(n));
+-        buf[n] = '.';
+-        return buf + (static_cast<size_t>(k) + 1U);
+-    }
+-
+-    if (min_exp < n && n <= 0)
+-    {
+-        // 0.[000]digits
+-        // len <= 2 + (-min_exp - 1) + max_digits10
+-
+-        std::memmove(buf + (2 + static_cast<size_t>(-n)), buf, static_cast<size_t>(k));
+-        buf[0] = '0';
+-        buf[1] = '.';
+-        std::memset(buf + 2, '0', static_cast<size_t>(-n));
+-        return buf + (2U + static_cast<size_t>(-n) + static_cast<size_t>(k));
+-    }
+-
+-    if (k == 1)
+-    {
+-        // dE+123
+-        // len <= 1 + 5
+-
+-        buf += 1;
+-    }
+-    else
+-    {
+-        // d.igitsE+123
+-        // len <= max_digits10 + 1 + 5
+-
+-        std::memmove(buf + 2, buf + 1, static_cast<size_t>(k) - 1);
+-        buf[1] = '.';
+-        buf += 1 + static_cast<size_t>(k);
+-    }
+-
+-    *buf++ = 'e';
+-    return append_exponent(buf, n - 1);
+-}
+-
+-} // namespace dtoa_impl
+-
+-/*!
+-@brief generates a decimal representation of the floating-point number value in [first, last).
+-
+-The format of the resulting decimal representation is similar to printf's %g
+-format. Returns an iterator pointing past-the-end of the decimal representation.
+-
+-@note The input number must be finite, i.e. NaN's and Inf's are not supported.
+-@note The buffer must be large enough.
+-@note The result is NOT null-terminated.
+-*/
+-template<typename FloatType>
+-JSON_HEDLEY_NON_NULL(1, 2)
+-JSON_HEDLEY_RETURNS_NON_NULL
+-char* to_chars(char* first, const char* last, FloatType value)
+-{
+-    static_cast<void>(last); // maybe unused - fix warning
+-    JSON_ASSERT(std::isfinite(value));
+-
+-    // Use signbit(value) instead of (value < 0) since signbit works for -0.
+-    if (std::signbit(value))
+-    {
+-        value = -value;
+-        *first++ = '-';
+-    }
+-
+-#ifdef __GNUC__
+-#pragma GCC diagnostic push
+-#pragma GCC diagnostic ignored "-Wfloat-equal"
+-#endif
+-    if (value == 0) // +-0
+-    {
+-        *first++ = '0';
+-        // Make it look like a floating-point number (#362, #378)
+-        *first++ = '.';
+-        *first++ = '0';
+-        return first;
+-    }
+-#ifdef __GNUC__
+-#pragma GCC diagnostic pop
+-#endif
+-
+-    JSON_ASSERT(last - first >= std::numeric_limits<FloatType>::max_digits10);
+-
+-    // Compute v = buffer * 10^decimal_exponent.
+-    // The decimal digits are stored in the buffer, which needs to be interpreted
+-    // as an unsigned decimal integer.
+-    // len is the length of the buffer, i.e. the number of decimal digits.
+-    int len = 0;
+-    int decimal_exponent = 0;
+-    dtoa_impl::grisu2(first, len, decimal_exponent, value);
+-
+-    JSON_ASSERT(len <= std::numeric_limits<FloatType>::max_digits10);
+-
+-    // Format the buffer like printf("%.*g", prec, value)
+-    constexpr int kMinExp = -4;
+-    // Use digits10 here to increase compatibility with version 2.
+-    constexpr int kMaxExp = std::numeric_limits<FloatType>::digits10;
+-
+-    JSON_ASSERT(last - first >= kMaxExp + 2);
+-    JSON_ASSERT(last - first >= 2 + (-kMinExp - 1) + std::numeric_limits<FloatType>::max_digits10);
+-    JSON_ASSERT(last - first >= std::numeric_limits<FloatType>::max_digits10 + 6);
+-
+-    return dtoa_impl::format_buffer(first, len, decimal_exponent, kMinExp, kMaxExp);
+-}
+-
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/output/binary_writer.hpp>
+-
+-// #include <nlohmann/detail/output/output_adapters.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-///////////////////
+-// serialization //
+-///////////////////
+-
+-/// how to treat decoding errors
+-enum class error_handler_t
+-{
+-    strict,  ///< throw a type_error exception in case of invalid UTF-8
+-    replace, ///< replace invalid UTF-8 sequences with U+FFFD
+-    ignore   ///< ignore invalid UTF-8 sequences
+-};
+-
+-template<typename BasicJsonType>
+-class serializer
+-{
+-    using string_t = typename BasicJsonType::string_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using binary_char_t = typename BasicJsonType::binary_t::value_type;
+-    static constexpr std::uint8_t UTF8_ACCEPT = 0;
+-    static constexpr std::uint8_t UTF8_REJECT = 1;
+-
+-  public:
+-    /*!
+-    @param[in] s  output stream to serialize to
+-    @param[in] ichar  indentation character to use
+-    @param[in] error_handler_  how to react on decoding errors
+-    */
+-    serializer(output_adapter_t<char> s, const char ichar,
+-               error_handler_t error_handler_ = error_handler_t::strict)
+-        : o(std::move(s))
+-        , loc(std::localeconv())
+-        , thousands_sep(loc->thousands_sep == nullptr ? '\0' : std::char_traits<char>::to_char_type(* (loc->thousands_sep)))
+-        , decimal_point(loc->decimal_point == nullptr ? '\0' : std::char_traits<char>::to_char_type(* (loc->decimal_point)))
+-        , indent_char(ichar)
+-        , indent_string(512, indent_char)
+-        , error_handler(error_handler_)
+-    {}
+-
+-    // delete because of pointer members
+-    serializer(const serializer&) = delete;
+-    serializer& operator=(const serializer&) = delete;
+-    serializer(serializer&&) = delete;
+-    serializer& operator=(serializer&&) = delete;
+-    ~serializer() = default;
+-
+-    /*!
+-    @brief internal implementation of the serialization function
+-
+-    This function is called by the public member function dump and organizes
+-    the serialization internally. The indentation level is propagated as
+-    additional parameter. In case of arrays and objects, the function is
+-    called recursively.
+-
+-    - strings and object keys are escaped using `escape_string()`
+-    - integer numbers are converted implicitly via `operator<<`
+-    - floating-point numbers are converted to a string using `"%g"` format
+-    - binary values are serialized as objects containing the subtype and the
+-      byte array
+-
+-    @param[in] val               value to serialize
+-    @param[in] pretty_print      whether the output shall be pretty-printed
+-    @param[in] ensure_ascii If @a ensure_ascii is true, all non-ASCII characters
+-    in the output are escaped with `\uXXXX` sequences, and the result consists
+-    of ASCII characters only.
+-    @param[in] indent_step       the indent level
+-    @param[in] current_indent    the current indent level (only used internally)
+-    */
+-    void dump(const BasicJsonType& val,
+-              const bool pretty_print,
+-              const bool ensure_ascii,
+-              const unsigned int indent_step,
+-              const unsigned int current_indent = 0)
+-    {
+-        switch (val.m_type)
+-        {
+-            case value_t::object:
+-            {
+-                if (val.m_value.object->empty())
+-                {
+-                    o->write_characters("{}", 2);
+-                    return;
+-                }
+-
+-                if (pretty_print)
+-                {
+-                    o->write_characters("{\n", 2);
+-
+-                    // variable to hold indentation for recursive calls
+-                    const auto new_indent = current_indent + indent_step;
+-                    if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent))
+-                    {
+-                        indent_string.resize(indent_string.size() * 2, ' ');
+-                    }
+-
+-                    // first n-1 elements
+-                    auto i = val.m_value.object->cbegin();
+-                    for (std::size_t cnt = 0; cnt < val.m_value.object->size() - 1; ++cnt, ++i)
+-                    {
+-                        o->write_characters(indent_string.c_str(), new_indent);
+-                        o->write_character('\"');
+-                        dump_escaped(i->first, ensure_ascii);
+-                        o->write_characters("\": ", 3);
+-                        dump(i->second, true, ensure_ascii, indent_step, new_indent);
+-                        o->write_characters(",\n", 2);
+-                    }
+-
+-                    // last element
+-                    JSON_ASSERT(i != val.m_value.object->cend());
+-                    JSON_ASSERT(std::next(i) == val.m_value.object->cend());
+-                    o->write_characters(indent_string.c_str(), new_indent);
+-                    o->write_character('\"');
+-                    dump_escaped(i->first, ensure_ascii);
+-                    o->write_characters("\": ", 3);
+-                    dump(i->second, true, ensure_ascii, indent_step, new_indent);
+-
+-                    o->write_character('\n');
+-                    o->write_characters(indent_string.c_str(), current_indent);
+-                    o->write_character('}');
+-                }
+-                else
+-                {
+-                    o->write_character('{');
+-
+-                    // first n-1 elements
+-                    auto i = val.m_value.object->cbegin();
+-                    for (std::size_t cnt = 0; cnt < val.m_value.object->size() - 1; ++cnt, ++i)
+-                    {
+-                        o->write_character('\"');
+-                        dump_escaped(i->first, ensure_ascii);
+-                        o->write_characters("\":", 2);
+-                        dump(i->second, false, ensure_ascii, indent_step, current_indent);
+-                        o->write_character(',');
+-                    }
+-
+-                    // last element
+-                    JSON_ASSERT(i != val.m_value.object->cend());
+-                    JSON_ASSERT(std::next(i) == val.m_value.object->cend());
+-                    o->write_character('\"');
+-                    dump_escaped(i->first, ensure_ascii);
+-                    o->write_characters("\":", 2);
+-                    dump(i->second, false, ensure_ascii, indent_step, current_indent);
+-
+-                    o->write_character('}');
+-                }
+-
+-                return;
+-            }
+-
+-            case value_t::array:
+-            {
+-                if (val.m_value.array->empty())
+-                {
+-                    o->write_characters("[]", 2);
+-                    return;
+-                }
+-
+-                if (pretty_print)
+-                {
+-                    o->write_characters("[\n", 2);
+-
+-                    // variable to hold indentation for recursive calls
+-                    const auto new_indent = current_indent + indent_step;
+-                    if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent))
+-                    {
+-                        indent_string.resize(indent_string.size() * 2, ' ');
+-                    }
+-
+-                    // first n-1 elements
+-                    for (auto i = val.m_value.array->cbegin();
+-                            i != val.m_value.array->cend() - 1; ++i)
+-                    {
+-                        o->write_characters(indent_string.c_str(), new_indent);
+-                        dump(*i, true, ensure_ascii, indent_step, new_indent);
+-                        o->write_characters(",\n", 2);
+-                    }
+-
+-                    // last element
+-                    JSON_ASSERT(!val.m_value.array->empty());
+-                    o->write_characters(indent_string.c_str(), new_indent);
+-                    dump(val.m_value.array->back(), true, ensure_ascii, indent_step, new_indent);
+-
+-                    o->write_character('\n');
+-                    o->write_characters(indent_string.c_str(), current_indent);
+-                    o->write_character(']');
+-                }
+-                else
+-                {
+-                    o->write_character('[');
+-
+-                    // first n-1 elements
+-                    for (auto i = val.m_value.array->cbegin();
+-                            i != val.m_value.array->cend() - 1; ++i)
+-                    {
+-                        dump(*i, false, ensure_ascii, indent_step, current_indent);
+-                        o->write_character(',');
+-                    }
+-
+-                    // last element
+-                    JSON_ASSERT(!val.m_value.array->empty());
+-                    dump(val.m_value.array->back(), false, ensure_ascii, indent_step, current_indent);
+-
+-                    o->write_character(']');
+-                }
+-
+-                return;
+-            }
+-
+-            case value_t::string:
+-            {
+-                o->write_character('\"');
+-                dump_escaped(*val.m_value.string, ensure_ascii);
+-                o->write_character('\"');
+-                return;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                if (pretty_print)
+-                {
+-                    o->write_characters("{\n", 2);
+-
+-                    // variable to hold indentation for recursive calls
+-                    const auto new_indent = current_indent + indent_step;
+-                    if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent))
+-                    {
+-                        indent_string.resize(indent_string.size() * 2, ' ');
+-                    }
+-
+-                    o->write_characters(indent_string.c_str(), new_indent);
+-
+-                    o->write_characters("\"bytes\": [", 10);
+-
+-                    if (!val.m_value.binary->empty())
+-                    {
+-                        for (auto i = val.m_value.binary->cbegin();
+-                                i != val.m_value.binary->cend() - 1; ++i)
+-                        {
+-                            dump_integer(*i);
+-                            o->write_characters(", ", 2);
+-                        }
+-                        dump_integer(val.m_value.binary->back());
+-                    }
+-
+-                    o->write_characters("],\n", 3);
+-                    o->write_characters(indent_string.c_str(), new_indent);
+-
+-                    o->write_characters("\"subtype\": ", 11);
+-                    if (val.m_value.binary->has_subtype())
+-                    {
+-                        dump_integer(val.m_value.binary->subtype());
+-                    }
+-                    else
+-                    {
+-                        o->write_characters("null", 4);
+-                    }
+-                    o->write_character('\n');
+-                    o->write_characters(indent_string.c_str(), current_indent);
+-                    o->write_character('}');
+-                }
+-                else
+-                {
+-                    o->write_characters("{\"bytes\":[", 10);
+-
+-                    if (!val.m_value.binary->empty())
+-                    {
+-                        for (auto i = val.m_value.binary->cbegin();
+-                                i != val.m_value.binary->cend() - 1; ++i)
+-                        {
+-                            dump_integer(*i);
+-                            o->write_character(',');
+-                        }
+-                        dump_integer(val.m_value.binary->back());
+-                    }
+-
+-                    o->write_characters("],\"subtype\":", 12);
+-                    if (val.m_value.binary->has_subtype())
+-                    {
+-                        dump_integer(val.m_value.binary->subtype());
+-                        o->write_character('}');
+-                    }
+-                    else
+-                    {
+-                        o->write_characters("null}", 5);
+-                    }
+-                }
+-                return;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                if (val.m_value.boolean)
+-                {
+-                    o->write_characters("true", 4);
+-                }
+-                else
+-                {
+-                    o->write_characters("false", 5);
+-                }
+-                return;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                dump_integer(val.m_value.number_integer);
+-                return;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                dump_integer(val.m_value.number_unsigned);
+-                return;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                dump_float(val.m_value.number_float);
+-                return;
+-            }
+-
+-            case value_t::discarded:
+-            {
+-                o->write_characters("<discarded>", 11);
+-                return;
+-            }
+-
+-            case value_t::null:
+-            {
+-                o->write_characters("null", 4);
+-                return;
+-            }
+-
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-    }
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /*!
+-    @brief dump escaped string
+-
+-    Escape a string by replacing certain special characters by a sequence of an
+-    escape character (backslash) and another character and other control
+-    characters by a sequence of "\u" followed by a four-digit hex
+-    representation. The escaped string is written to output stream @a o.
+-
+-    @param[in] s  the string to escape
+-    @param[in] ensure_ascii  whether to escape non-ASCII characters with
+-                             \uXXXX sequences
+-
+-    @complexity Linear in the length of string @a s.
+-    */
+-    void dump_escaped(const string_t& s, const bool ensure_ascii)
+-    {
+-        std::uint32_t codepoint{};
+-        std::uint8_t state = UTF8_ACCEPT;
+-        std::size_t bytes = 0;  // number of bytes written to string_buffer
+-
+-        // number of bytes written at the point of the last valid byte
+-        std::size_t bytes_after_last_accept = 0;
+-        std::size_t undumped_chars = 0;
+-
+-        for (std::size_t i = 0; i < s.size(); ++i)
+-        {
+-            const auto byte = static_cast<std::uint8_t>(s[i]);
+-
+-            switch (decode(state, codepoint, byte))
+-            {
+-                case UTF8_ACCEPT:  // decode found a new code point
+-                {
+-                    switch (codepoint)
+-                    {
+-                        case 0x08: // backspace
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 'b';
+-                            break;
+-                        }
+-
+-                        case 0x09: // horizontal tab
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 't';
+-                            break;
+-                        }
+-
+-                        case 0x0A: // newline
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 'n';
+-                            break;
+-                        }
+-
+-                        case 0x0C: // formfeed
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 'f';
+-                            break;
+-                        }
+-
+-                        case 0x0D: // carriage return
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 'r';
+-                            break;
+-                        }
+-
+-                        case 0x22: // quotation mark
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = '\"';
+-                            break;
+-                        }
+-
+-                        case 0x5C: // reverse solidus
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = '\\';
+-                            break;
+-                        }
+-
+-                        default:
+-                        {
+-                            // escape control characters (0x00..0x1F) or, if
+-                            // ensure_ascii parameter is used, non-ASCII characters
+-                            if ((codepoint <= 0x1F) || (ensure_ascii && (codepoint >= 0x7F)))
+-                            {
+-                                if (codepoint <= 0xFFFF)
+-                                {
+-                                    // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-                                    static_cast<void>((std::snprintf)(string_buffer.data() + bytes, 7, "\\u%04x",
+-                                                                      static_cast<std::uint16_t>(codepoint)));
+-                                    bytes += 6;
+-                                }
+-                                else
+-                                {
+-                                    // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-                                    static_cast<void>((std::snprintf)(string_buffer.data() + bytes, 13, "\\u%04x\\u%04x",
+-                                                                      static_cast<std::uint16_t>(0xD7C0u + (codepoint >> 10u)),
+-                                                                      static_cast<std::uint16_t>(0xDC00u + (codepoint & 0x3FFu))));
+-                                    bytes += 12;
+-                                }
+-                            }
+-                            else
+-                            {
+-                                // copy byte to buffer (all previous bytes
+-                                // been copied have in default case above)
+-                                string_buffer[bytes++] = s[i];
+-                            }
+-                            break;
+-                        }
+-                    }
+-
+-                    // write buffer and reset index; there must be 13 bytes
+-                    // left, as this is the maximal number of bytes to be
+-                    // written ("\uxxxx\uxxxx\0") for one code point
+-                    if (string_buffer.size() - bytes < 13)
+-                    {
+-                        o->write_characters(string_buffer.data(), bytes);
+-                        bytes = 0;
+-                    }
+-
+-                    // remember the byte position of this accept
+-                    bytes_after_last_accept = bytes;
+-                    undumped_chars = 0;
+-                    break;
+-                }
+-
+-                case UTF8_REJECT:  // decode found invalid UTF-8 byte
+-                {
+-                    switch (error_handler)
+-                    {
+-                        case error_handler_t::strict:
+-                        {
+-                            std::stringstream ss;
+-                            ss << std::uppercase << std::setfill('0') << std::setw(2) << std::hex << (byte | 0);
+-                            JSON_THROW(type_error::create(316, "invalid UTF-8 byte at index " + std::to_string(i) + ": 0x" + ss.str(), BasicJsonType()));
+-                        }
+-
+-                        case error_handler_t::ignore:
+-                        case error_handler_t::replace:
+-                        {
+-                            // in case we saw this character the first time, we
+-                            // would like to read it again, because the byte
+-                            // may be OK for itself, but just not OK for the
+-                            // previous sequence
+-                            if (undumped_chars > 0)
+-                            {
+-                                --i;
+-                            }
+-
+-                            // reset length buffer to the last accepted index;
+-                            // thus removing/ignoring the invalid characters
+-                            bytes = bytes_after_last_accept;
+-
+-                            if (error_handler == error_handler_t::replace)
+-                            {
+-                                // add a replacement character
+-                                if (ensure_ascii)
+-                                {
+-                                    string_buffer[bytes++] = '\\';
+-                                    string_buffer[bytes++] = 'u';
+-                                    string_buffer[bytes++] = 'f';
+-                                    string_buffer[bytes++] = 'f';
+-                                    string_buffer[bytes++] = 'f';
+-                                    string_buffer[bytes++] = 'd';
+-                                }
+-                                else
+-                                {
+-                                    string_buffer[bytes++] = detail::binary_writer<BasicJsonType, char>::to_char_type('\xEF');
+-                                    string_buffer[bytes++] = detail::binary_writer<BasicJsonType, char>::to_char_type('\xBF');
+-                                    string_buffer[bytes++] = detail::binary_writer<BasicJsonType, char>::to_char_type('\xBD');
+-                                }
+-
+-                                // write buffer and reset index; there must be 13 bytes
+-                                // left, as this is the maximal number of bytes to be
+-                                // written ("\uxxxx\uxxxx\0") for one code point
+-                                if (string_buffer.size() - bytes < 13)
+-                                {
+-                                    o->write_characters(string_buffer.data(), bytes);
+-                                    bytes = 0;
+-                                }
+-
+-                                bytes_after_last_accept = bytes;
+-                            }
+-
+-                            undumped_chars = 0;
+-
+-                            // continue processing the string
+-                            state = UTF8_ACCEPT;
+-                            break;
+-                        }
+-
+-                        default:            // LCOV_EXCL_LINE
+-                            JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-                    }
+-                    break;
+-                }
+-
+-                default:  // decode found yet incomplete multi-byte code point
+-                {
+-                    if (!ensure_ascii)
+-                    {
+-                        // code point will not be escaped - copy byte to buffer
+-                        string_buffer[bytes++] = s[i];
+-                    }
+-                    ++undumped_chars;
+-                    break;
+-                }
+-            }
+-        }
+-
+-        // we finished processing the string
+-        if (JSON_HEDLEY_LIKELY(state == UTF8_ACCEPT))
+-        {
+-            // write buffer
+-            if (bytes > 0)
+-            {
+-                o->write_characters(string_buffer.data(), bytes);
+-            }
+-        }
+-        else
+-        {
+-            // we finish reading, but do not accept: string was incomplete
+-            switch (error_handler)
+-            {
+-                case error_handler_t::strict:
+-                {
+-                    std::stringstream ss;
+-                    ss << std::uppercase << std::setfill('0') << std::setw(2) << std::hex << (static_cast<std::uint8_t>(s.back()) | 0);
+-                    JSON_THROW(type_error::create(316, "incomplete UTF-8 string; last byte: 0x" + ss.str(), BasicJsonType()));
+-                }
+-
+-                case error_handler_t::ignore:
+-                {
+-                    // write all accepted bytes
+-                    o->write_characters(string_buffer.data(), bytes_after_last_accept);
+-                    break;
+-                }
+-
+-                case error_handler_t::replace:
+-                {
+-                    // write all accepted bytes
+-                    o->write_characters(string_buffer.data(), bytes_after_last_accept);
+-                    // add a replacement character
+-                    if (ensure_ascii)
+-                    {
+-                        o->write_characters("\\ufffd", 6);
+-                    }
+-                    else
+-                    {
+-                        o->write_characters("\xEF\xBF\xBD", 3);
+-                    }
+-                    break;
+-                }
+-
+-                default:            // LCOV_EXCL_LINE
+-                    JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-            }
+-        }
+-    }
+-
+-  private:
+-    /*!
+-    @brief count digits
+-
+-    Count the number of decimal (base 10) digits for an input unsigned integer.
+-
+-    @param[in] x  unsigned integer number to count its digits
+-    @return    number of decimal digits
+-    */
+-    inline unsigned int count_digits(number_unsigned_t x) noexcept
+-    {
+-        unsigned int n_digits = 1;
+-        for (;;)
+-        {
+-            if (x < 10)
+-            {
+-                return n_digits;
+-            }
+-            if (x < 100)
+-            {
+-                return n_digits + 1;
+-            }
+-            if (x < 1000)
+-            {
+-                return n_digits + 2;
+-            }
+-            if (x < 10000)
+-            {
+-                return n_digits + 3;
+-            }
+-            x = x / 10000u;
+-            n_digits += 4;
+-        }
+-    }
+-
+-    // templates to avoid warnings about useless casts
+-    template <typename NumberType, enable_if_t<std::is_signed<NumberType>::value, int> = 0>
+-    bool is_negative_number(NumberType x)
+-    {
+-        return x < 0;
+-    }
+-
+-    template < typename NumberType, enable_if_t <std::is_unsigned<NumberType>::value, int > = 0 >
+-    bool is_negative_number(NumberType /*unused*/)
+-    {
+-        return false;
+-    }
+-
+-    /*!
+-    @brief dump an integer
+-
+-    Dump a given integer to output stream @a o. Works internally with
+-    @a number_buffer.
+-
+-    @param[in] x  integer number (signed or unsigned) to dump
+-    @tparam NumberType either @a number_integer_t or @a number_unsigned_t
+-    */
+-    template < typename NumberType, detail::enable_if_t <
+-                   std::is_integral<NumberType>::value ||
+-                   std::is_same<NumberType, number_unsigned_t>::value ||
+-                   std::is_same<NumberType, number_integer_t>::value ||
+-                   std::is_same<NumberType, binary_char_t>::value,
+-                   int > = 0 >
+-    void dump_integer(NumberType x)
+-    {
+-        static constexpr std::array<std::array<char, 2>, 100> digits_to_99
+-        {
+-            {
+-                {{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}},
+-                {{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}},
+-                {{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}},
+-                {{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}},
+-                {{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}},
+-                {{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}},
+-                {{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}},
+-                {{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}},
+-                {{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}},
+-                {{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}},
+-            }
+-        };
+-
+-        // special case for "0"
+-        if (x == 0)
+-        {
+-            o->write_character('0');
+-            return;
+-        }
+-
+-        // use a pointer to fill the buffer
+-        auto buffer_ptr = number_buffer.begin(); // NOLINT(llvm-qualified-auto,readability-qualified-auto,cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-
+-        number_unsigned_t abs_value;
+-
+-        unsigned int n_chars{};
+-
+-        if (is_negative_number(x))
+-        {
+-            *buffer_ptr = '-';
+-            abs_value = remove_sign(static_cast<number_integer_t>(x));
+-
+-            // account one more byte for the minus sign
+-            n_chars = 1 + count_digits(abs_value);
+-        }
+-        else
+-        {
+-            abs_value = static_cast<number_unsigned_t>(x);
+-            n_chars = count_digits(abs_value);
+-        }
+-
+-        // spare 1 byte for '\0'
+-        JSON_ASSERT(n_chars < number_buffer.size() - 1);
+-
+-        // jump to the end to generate the string from backward,
+-        // so we later avoid reversing the result
+-        buffer_ptr += n_chars;
+-
+-        // Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
+-        // See: https://www.youtube.com/watch?v=o4-CwDo2zpg
+-        while (abs_value >= 100)
+-        {
+-            const auto digits_index = static_cast<unsigned>((abs_value % 100));
+-            abs_value /= 100;
+-            *(--buffer_ptr) = digits_to_99[digits_index][1];
+-            *(--buffer_ptr) = digits_to_99[digits_index][0];
+-        }
+-
+-        if (abs_value >= 10)
+-        {
+-            const auto digits_index = static_cast<unsigned>(abs_value);
+-            *(--buffer_ptr) = digits_to_99[digits_index][1];
+-            *(--buffer_ptr) = digits_to_99[digits_index][0];
+-        }
+-        else
+-        {
+-            *(--buffer_ptr) = static_cast<char>('0' + abs_value);
+-        }
+-
+-        o->write_characters(number_buffer.data(), n_chars);
+-    }
+-
+-    /*!
+-    @brief dump a floating-point number
+-
+-    Dump a given floating-point number to output stream @a o. Works internally
+-    with @a number_buffer.
+-
+-    @param[in] x  floating-point number to dump
+-    */
+-    void dump_float(number_float_t x)
+-    {
+-        // NaN / inf
+-        if (!std::isfinite(x))
+-        {
+-            o->write_characters("null", 4);
+-            return;
+-        }
+-
+-        // If number_float_t is an IEEE-754 single or double precision number,
+-        // use the Grisu2 algorithm to produce short numbers which are
+-        // guaranteed to round-trip, using strtof and strtod, resp.
+-        //
+-        // NB: The test below works if <long double> == <double>.
+-        static constexpr bool is_ieee_single_or_double
+-            = (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 24 && std::numeric_limits<number_float_t>::max_exponent == 128) ||
+-              (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 53 && std::numeric_limits<number_float_t>::max_exponent == 1024);
+-
+-        dump_float(x, std::integral_constant<bool, is_ieee_single_or_double>());
+-    }
+-
+-    void dump_float(number_float_t x, std::true_type /*is_ieee_single_or_double*/)
+-    {
+-        auto* begin = number_buffer.data();
+-        auto* end = ::nlohmann::detail::to_chars(begin, begin + number_buffer.size(), x);
+-
+-        o->write_characters(begin, static_cast<size_t>(end - begin));
+-    }
+-
+-    void dump_float(number_float_t x, std::false_type /*is_ieee_single_or_double*/)
+-    {
+-        // get number of digits for a float -> text -> float round-trip
+-        static constexpr auto d = std::numeric_limits<number_float_t>::max_digits10;
+-
+-        // the actual conversion
+-        // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-        std::ptrdiff_t len = (std::snprintf)(number_buffer.data(), number_buffer.size(), "%.*g", d, x);
+-
+-        // negative value indicates an error
+-        JSON_ASSERT(len > 0);
+-        // check if buffer was large enough
+-        JSON_ASSERT(static_cast<std::size_t>(len) < number_buffer.size());
+-
+-        // erase thousands separator
+-        if (thousands_sep != '\0')
+-        {
+-            // NOLINTNEXTLINE(readability-qualified-auto,llvm-qualified-auto): std::remove returns an iterator, see https://github.com/nlohmann/json/issues/3081
+-            const auto end = std::remove(number_buffer.begin(), number_buffer.begin() + len, thousands_sep);
+-            std::fill(end, number_buffer.end(), '\0');
+-            JSON_ASSERT((end - number_buffer.begin()) <= len);
+-            len = (end - number_buffer.begin());
+-        }
+-
+-        // convert decimal point to '.'
+-        if (decimal_point != '\0' && decimal_point != '.')
+-        {
+-            // NOLINTNEXTLINE(readability-qualified-auto,llvm-qualified-auto): std::find returns an iterator, see https://github.com/nlohmann/json/issues/3081
+-            const auto dec_pos = std::find(number_buffer.begin(), number_buffer.end(), decimal_point);
+-            if (dec_pos != number_buffer.end())
+-            {
+-                *dec_pos = '.';
+-            }
+-        }
+-
+-        o->write_characters(number_buffer.data(), static_cast<std::size_t>(len));
+-
+-        // determine if we need to append ".0"
+-        const bool value_is_int_like =
+-            std::none_of(number_buffer.begin(), number_buffer.begin() + len + 1,
+-                         [](char c)
+-        {
+-            return c == '.' || c == 'e';
+-        });
+-
+-        if (value_is_int_like)
+-        {
+-            o->write_characters(".0", 2);
+-        }
+-    }
+-
+-    /*!
+-    @brief check whether a string is UTF-8 encoded
+-
+-    The function checks each byte of a string whether it is UTF-8 encoded. The
+-    result of the check is stored in the @a state parameter. The function must
+-    be called initially with state 0 (accept). State 1 means the string must
+-    be rejected, because the current byte is not allowed. If the string is
+-    completely processed, but the state is non-zero, the string ended
+-    prematurely; that is, the last byte indicated more bytes should have
+-    followed.
+-
+-    @param[in,out] state  the state of the decoding
+-    @param[in,out] codep  codepoint (valid only if resulting state is UTF8_ACCEPT)
+-    @param[in] byte       next byte to decode
+-    @return               new state
+-
+-    @note The function has been edited: a std::array is used.
+-
+-    @copyright Copyright (c) 2008-2009 Bjoern Hoehrmann <bjoern@hoehrmann.de>
+-    @sa http://bjoern.hoehrmann.de/utf-8/decoder/dfa/
+-    */
+-    static std::uint8_t decode(std::uint8_t& state, std::uint32_t& codep, const std::uint8_t byte) noexcept
+-    {
+-        static const std::array<std::uint8_t, 400> utf8d =
+-        {
+-            {
+-                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 00..1F
+-                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 20..3F
+-                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 40..5F
+-                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 60..7F
+-                1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, // 80..9F
+-                7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // A0..BF
+-                8, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, // C0..DF
+-                0xA, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x4, 0x3, 0x3, // E0..EF
+-                0xB, 0x6, 0x6, 0x6, 0x5, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, // F0..FF
+-                0x0, 0x1, 0x2, 0x3, 0x5, 0x8, 0x7, 0x1, 0x1, 0x1, 0x4, 0x6, 0x1, 0x1, 0x1, 0x1, // s0..s0
+-                1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, // s1..s2
+-                1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, // s3..s4
+-                1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, // s5..s6
+-                1, 3, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 // s7..s8
+-            }
+-        };
+-
+-        JSON_ASSERT(byte < utf8d.size());
+-        const std::uint8_t type = utf8d[byte];
+-
+-        codep = (state != UTF8_ACCEPT)
+-                ? (byte & 0x3fu) | (codep << 6u)
+-                : (0xFFu >> type) & (byte);
+-
+-        std::size_t index = 256u + static_cast<size_t>(state) * 16u + static_cast<size_t>(type);
+-        JSON_ASSERT(index < 400);
+-        state = utf8d[index];
+-        return state;
+-    }
+-
+-    /*
+-     * Overload to make the compiler happy while it is instantiating
+-     * dump_integer for number_unsigned_t.
+-     * Must never be called.
+-     */
+-    number_unsigned_t remove_sign(number_unsigned_t x)
+-    {
+-        JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        return x; // LCOV_EXCL_LINE
+-    }
+-
+-    /*
+-     * Helper function for dump_integer
+-     *
+-     * This function takes a negative signed integer and returns its absolute
+-     * value as unsigned integer. The plus/minus shuffling is necessary as we can
+-     * not directly remove the sign of an arbitrary signed integer as the
+-     * absolute values of INT_MIN and INT_MAX are usually not the same. See
+-     * #1708 for details.
+-     */
+-    inline number_unsigned_t remove_sign(number_integer_t x) noexcept
+-    {
+-        JSON_ASSERT(x < 0 && x < (std::numeric_limits<number_integer_t>::max)()); // NOLINT(misc-redundant-expression)
+-        return static_cast<number_unsigned_t>(-(x + 1)) + 1;
+-    }
+-
+-  private:
+-    /// the output of the serializer
+-    output_adapter_t<char> o = nullptr;
+-
+-    /// a (hopefully) large enough character buffer
+-    std::array<char, 64> number_buffer{{}};
+-
+-    /// the locale
+-    const std::lconv* loc = nullptr;
+-    /// the locale's thousand separator character
+-    const char thousands_sep = '\0';
+-    /// the locale's decimal point character
+-    const char decimal_point = '\0';
+-
+-    /// string buffer
+-    std::array<char, 512> string_buffer{{}};
+-
+-    /// the indentation character
+-    const char indent_char;
+-    /// the indentation string
+-    string_t indent_string;
+-
+-    /// error_handler how to react on decoding errors
+-    const error_handler_t error_handler;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-// #include <nlohmann/json_fwd.hpp>
+-
+-// #include <nlohmann/ordered_map.hpp>
+-
+-
+-#include <functional> // less
+-#include <initializer_list> // initializer_list
+-#include <iterator> // input_iterator_tag, iterator_traits
+-#include <memory> // allocator
+-#include <stdexcept> // for out_of_range
+-#include <type_traits> // enable_if, is_convertible
+-#include <utility> // pair
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-
+-/// ordered_map: a minimal map-like container that preserves insertion order
+-/// for use within nlohmann::basic_json<ordered_map>
+-template <class Key, class T, class IgnoredLess = std::less<Key>,
+-          class Allocator = std::allocator<std::pair<const Key, T>>>
+-                  struct ordered_map : std::vector<std::pair<const Key, T>, Allocator>
+-{
+-    using key_type = Key;
+-    using mapped_type = T;
+-    using Container = std::vector<std::pair<const Key, T>, Allocator>;
+-    using iterator = typename Container::iterator;
+-    using const_iterator = typename Container::const_iterator;
+-    using size_type = typename Container::size_type;
+-    using value_type = typename Container::value_type;
+-
+-    // Explicit constructors instead of `using Container::Container`
+-    // otherwise older compilers choke on it (GCC <= 5.5, xcode <= 9.4)
+-    ordered_map(const Allocator& alloc = Allocator()) : Container{alloc} {}
+-    template <class It>
+-    ordered_map(It first, It last, const Allocator& alloc = Allocator())
+-        : Container{first, last, alloc} {}
+-    ordered_map(std::initializer_list<T> init, const Allocator& alloc = Allocator() )
+-        : Container{init, alloc} {}
+-
+-    std::pair<iterator, bool> emplace(const key_type& key, T&& t)
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return {it, false};
+-            }
+-        }
+-        Container::emplace_back(key, t);
+-        return {--this->end(), true};
+-    }
+-
+-    T& operator[](const Key& key)
+-    {
+-        return emplace(key, T{}).first->second;
+-    }
+-
+-    const T& operator[](const Key& key) const
+-    {
+-        return at(key);
+-    }
+-
+-    T& at(const Key& key)
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return it->second;
+-            }
+-        }
+-
+-        JSON_THROW(std::out_of_range("key not found"));
+-    }
+-
+-    const T& at(const Key& key) const
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return it->second;
+-            }
+-        }
+-
+-        JSON_THROW(std::out_of_range("key not found"));
+-    }
+-
+-    size_type erase(const Key& key)
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                // Since we cannot move const Keys, re-construct them in place
+-                for (auto next = it; ++next != this->end(); ++it)
+-                {
+-                    it->~value_type(); // Destroy but keep allocation
+-                    new (&*it) value_type{std::move(*next)};
+-                }
+-                Container::pop_back();
+-                return 1;
+-            }
+-        }
+-        return 0;
+-    }
+-
+-    iterator erase(iterator pos)
+-    {
+-        return erase(pos, std::next(pos));
+-    }
+-
+-    iterator erase(iterator first, iterator last)
+-    {
+-        const auto elements_affected = std::distance(first, last);
+-        const auto offset = std::distance(Container::begin(), first);
+-
+-        // This is the start situation. We need to delete elements_affected
+-        // elements (3 in this example: e, f, g), and need to return an
+-        // iterator past the last deleted element (h in this example).
+-        // Note that offset is the distance from the start of the vector
+-        // to first. We will need this later.
+-
+-        // [ a, b, c, d, e, f, g, h, i, j ]
+-        //               ^        ^
+-        //             first    last
+-
+-        // Since we cannot move const Keys, we re-construct them in place.
+-        // We start at first and re-construct (viz. copy) the elements from
+-        // the back of the vector. Example for first iteration:
+-
+-        //               ,--------.
+-        //               v        |   destroy e and re-construct with h
+-        // [ a, b, c, d, e, f, g, h, i, j ]
+-        //               ^        ^
+-        //               it       it + elements_affected
+-
+-        for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it)
+-        {
+-            it->~value_type(); // destroy but keep allocation
+-            new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it
+-        }
+-
+-        // [ a, b, c, d, h, i, j, h, i, j ]
+-        //               ^        ^
+-        //             first    last
+-
+-        // remove the unneeded elements at the end of the vector
+-        Container::resize(this->size() - static_cast<size_type>(elements_affected));
+-
+-        // [ a, b, c, d, h, i, j ]
+-        //               ^        ^
+-        //             first    last
+-
+-        // first is now pointing past the last deleted element, but we cannot
+-        // use this iterator, because it may have been invalidated by the
+-        // resize call. Instead, we can return begin() + offset.
+-        return Container::begin() + offset;
+-    }
+-
+-    size_type count(const Key& key) const
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return 1;
+-            }
+-        }
+-        return 0;
+-    }
+-
+-    iterator find(const Key& key)
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return it;
+-            }
+-        }
+-        return Container::end();
+-    }
+-
+-    const_iterator find(const Key& key) const
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return it;
+-            }
+-        }
+-        return Container::end();
+-    }
+-
+-    std::pair<iterator, bool> insert( value_type&& value )
+-    {
+-        return emplace(value.first, std::move(value.second));
+-    }
+-
+-    std::pair<iterator, bool> insert( const value_type& value )
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == value.first)
+-            {
+-                return {it, false};
+-            }
+-        }
+-        Container::push_back(value);
+-        return {--this->end(), true};
+-    }
+-
+-    template<typename InputIt>
+-    using require_input_iter = typename std::enable_if<std::is_convertible<typename std::iterator_traits<InputIt>::iterator_category,
+-            std::input_iterator_tag>::value>::type;
+-
+-    template<typename InputIt, typename = require_input_iter<InputIt>>
+-    void insert(InputIt first, InputIt last)
+-    {
+-        for (auto it = first; it != last; ++it)
+-        {
+-            insert(*it);
+-        }
+-    }
+-};
+-
+-}  // namespace nlohmann
+-
+-
+-#if defined(JSON_HAS_CPP_17)
+-    #include <string_view>
+-#endif
+-
+-/*!
+-@brief namespace for Niels Lohmann
+-@see https://github.com/nlohmann
+-@since version 1.0.0
+-*/
+-namespace nlohmann
+-{
+-
+-/*!
+-@brief a class to store JSON values
+-
+-@internal
+-@invariant The member variables @a m_value and @a m_type have the following
+-relationship:
+-- If `m_type == value_t::object`, then `m_value.object != nullptr`.
+-- If `m_type == value_t::array`, then `m_value.array != nullptr`.
+-- If `m_type == value_t::string`, then `m_value.string != nullptr`.
+-The invariants are checked by member function assert_invariant().
+-
+-@note ObjectType trick from https://stackoverflow.com/a/9860911
+-@endinternal
+-
+-@since version 1.0.0
+-
+-@nosubgrouping
+-*/
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-special-member-functions)
+-{
+-  private:
+-    template<detail::value_t> friend struct detail::external_constructor;
+-    friend ::nlohmann::json_pointer<basic_json>;
+-
+-    template<typename BasicJsonType, typename InputType>
+-    friend class ::nlohmann::detail::parser;
+-    friend ::nlohmann::detail::serializer<basic_json>;
+-    template<typename BasicJsonType>
+-    friend class ::nlohmann::detail::iter_impl;
+-    template<typename BasicJsonType, typename CharType>
+-    friend class ::nlohmann::detail::binary_writer;
+-    template<typename BasicJsonType, typename InputType, typename SAX>
+-    friend class ::nlohmann::detail::binary_reader;
+-    template<typename BasicJsonType>
+-    friend class ::nlohmann::detail::json_sax_dom_parser;
+-    template<typename BasicJsonType>
+-    friend class ::nlohmann::detail::json_sax_dom_callback_parser;
+-    friend class ::nlohmann::detail::exception;
+-
+-    /// workaround type for MSVC
+-    using basic_json_t = NLOHMANN_BASIC_JSON_TPL;
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    // convenience aliases for types residing in namespace detail;
+-    using lexer = ::nlohmann::detail::lexer_base<basic_json>;
+-
+-    template<typename InputAdapterType>
+-    static ::nlohmann::detail::parser<basic_json, InputAdapterType> parser(
+-        InputAdapterType adapter,
+-        detail::parser_callback_t<basic_json>cb = nullptr,
+-        const bool allow_exceptions = true,
+-        const bool ignore_comments = false
+-                                 )
+-    {
+-        return ::nlohmann::detail::parser<basic_json, InputAdapterType>(std::move(adapter),
+-                std::move(cb), allow_exceptions, ignore_comments);
+-    }
+-
+-  private:
+-    using primitive_iterator_t = ::nlohmann::detail::primitive_iterator_t;
+-    template<typename BasicJsonType>
+-    using internal_iterator = ::nlohmann::detail::internal_iterator<BasicJsonType>;
+-    template<typename BasicJsonType>
+-    using iter_impl = ::nlohmann::detail::iter_impl<BasicJsonType>;
+-    template<typename Iterator>
+-    using iteration_proxy = ::nlohmann::detail::iteration_proxy<Iterator>;
+-    template<typename Base> using json_reverse_iterator = ::nlohmann::detail::json_reverse_iterator<Base>;
+-
+-    template<typename CharType>
+-    using output_adapter_t = ::nlohmann::detail::output_adapter_t<CharType>;
+-
+-    template<typename InputType>
+-    using binary_reader = ::nlohmann::detail::binary_reader<basic_json, InputType>;
+-    template<typename CharType> using binary_writer = ::nlohmann::detail::binary_writer<basic_json, CharType>;
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    using serializer = ::nlohmann::detail::serializer<basic_json>;
+-
+-  public:
+-    using value_t = detail::value_t;
+-    /// JSON Pointer, see @ref nlohmann::json_pointer
+-    using json_pointer = ::nlohmann::json_pointer<basic_json>;
+-    template<typename T, typename SFINAE>
+-    using json_serializer = JSONSerializer<T, SFINAE>;
+-    /// how to treat decoding errors
+-    using error_handler_t = detail::error_handler_t;
+-    /// how to treat CBOR tags
+-    using cbor_tag_handler_t = detail::cbor_tag_handler_t;
+-    /// helper type for initializer lists of basic_json values
+-    using initializer_list_t = std::initializer_list<detail::json_ref<basic_json>>;
+-
+-    using input_format_t = detail::input_format_t;
+-    /// SAX interface type, see @ref nlohmann::json_sax
+-    using json_sax_t = json_sax<basic_json>;
+-
+-    ////////////////
+-    // exceptions //
+-    ////////////////
+-
+-    /// @name exceptions
+-    /// Classes to implement user-defined exceptions.
+-    /// @{
+-
+-    using exception = detail::exception;
+-    using parse_error = detail::parse_error;
+-    using invalid_iterator = detail::invalid_iterator;
+-    using type_error = detail::type_error;
+-    using out_of_range = detail::out_of_range;
+-    using other_error = detail::other_error;
+-
+-    /// @}
+-
+-
+-    /////////////////////
+-    // container types //
+-    /////////////////////
+-
+-    /// @name container types
+-    /// The canonic container types to use @ref basic_json like any other STL
+-    /// container.
+-    /// @{
+-
+-    /// the type of elements in a basic_json container
+-    using value_type = basic_json;
+-
+-    /// the type of an element reference
+-    using reference = value_type&;
+-    /// the type of an element const reference
+-    using const_reference = const value_type&;
+-
+-    /// a type to represent differences between iterators
+-    using difference_type = std::ptrdiff_t;
+-    /// a type to represent container sizes
+-    using size_type = std::size_t;
+-
+-    /// the allocator type
+-    using allocator_type = AllocatorType<basic_json>;
+-
+-    /// the type of an element pointer
+-    using pointer = typename std::allocator_traits<allocator_type>::pointer;
+-    /// the type of an element const pointer
+-    using const_pointer = typename std::allocator_traits<allocator_type>::const_pointer;
+-
+-    /// an iterator for a basic_json container
+-    using iterator = iter_impl<basic_json>;
+-    /// a const iterator for a basic_json container
+-    using const_iterator = iter_impl<const basic_json>;
+-    /// a reverse iterator for a basic_json container
+-    using reverse_iterator = json_reverse_iterator<typename basic_json::iterator>;
+-    /// a const reverse iterator for a basic_json container
+-    using const_reverse_iterator = json_reverse_iterator<typename basic_json::const_iterator>;
+-
+-    /// @}
+-
+-
+-    /// @brief returns the allocator associated with the container
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_allocator/
+-    static allocator_type get_allocator()
+-    {
+-        return allocator_type();
+-    }
+-
+-    /// @brief returns version information on the library
+-    /// @sa https://json.nlohmann.me/api/basic_json/meta/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json meta()
+-    {
+-        basic_json result;
+-
+-        result["copyright"] = "(C) 2013-2022 Niels Lohmann";
+-        result["name"] = "JSON for Modern C++";
+-        result["url"] = "https://github.com/nlohmann/json";
+-        result["version"]["string"] =
+-            std::to_string(NLOHMANN_JSON_VERSION_MAJOR) + "." +
+-            std::to_string(NLOHMANN_JSON_VERSION_MINOR) + "." +
+-            std::to_string(NLOHMANN_JSON_VERSION_PATCH);
+-        result["version"]["major"] = NLOHMANN_JSON_VERSION_MAJOR;
+-        result["version"]["minor"] = NLOHMANN_JSON_VERSION_MINOR;
+-        result["version"]["patch"] = NLOHMANN_JSON_VERSION_PATCH;
+-
+-#ifdef _WIN32
+-        result["platform"] = "win32";
+-#elif defined __linux__
+-        result["platform"] = "linux";
+-#elif defined __APPLE__
+-        result["platform"] = "apple";
+-#elif defined __unix__
+-        result["platform"] = "unix";
+-#else
+-        result["platform"] = "unknown";
+-#endif
+-
+-#if defined(__ICC) || defined(__INTEL_COMPILER)
+-        result["compiler"] = {{"family", "icc"}, {"version", __INTEL_COMPILER}};
+-#elif defined(__clang__)
+-        result["compiler"] = {{"family", "clang"}, {"version", __clang_version__}};
+-#elif defined(__GNUC__) || defined(__GNUG__)
+-        result["compiler"] = {{"family", "gcc"}, {"version", std::to_string(__GNUC__) + "." + std::to_string(__GNUC_MINOR__) + "." + std::to_string(__GNUC_PATCHLEVEL__)}};
+-#elif defined(__HP_cc) || defined(__HP_aCC)
+-        result["compiler"] = "hp"
+-#elif defined(__IBMCPP__)
+-        result["compiler"] = {{"family", "ilecpp"}, {"version", __IBMCPP__}};
+-#elif defined(_MSC_VER)
+-        result["compiler"] = {{"family", "msvc"}, {"version", _MSC_VER}};
+-#elif defined(__PGI)
+-        result["compiler"] = {{"family", "pgcpp"}, {"version", __PGI}};
+-#elif defined(__SUNPRO_CC)
+-        result["compiler"] = {{"family", "sunpro"}, {"version", __SUNPRO_CC}};
+-#else
+-        result["compiler"] = {{"family", "unknown"}, {"version", "unknown"}};
+-#endif
+-
+-#ifdef __cplusplus
+-        result["compiler"]["c++"] = std::to_string(__cplusplus);
+-#else
+-        result["compiler"]["c++"] = "unknown";
+-#endif
+-        return result;
+-    }
+-
+-
+-    ///////////////////////////
+-    // JSON value data types //
+-    ///////////////////////////
+-
+-    /// @name JSON value data types
+-    /// The data types to store a JSON value. These types are derived from
+-    /// the template arguments passed to class @ref basic_json.
+-    /// @{
+-
+-    /// @brief object key comparator type
+-    /// @sa https://json.nlohmann.me/api/basic_json/object_comparator_t/
+-#if defined(JSON_HAS_CPP_14)
+-    // Use transparent comparator if possible, combined with perfect forwarding
+-    // on find() and count() calls prevents unnecessary string construction.
+-    using object_comparator_t = std::less<>;
+-#else
+-    using object_comparator_t = std::less<StringType>;
+-#endif
+-
+-    /// @brief a type for an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/object_t/
+-    using object_t = ObjectType<StringType,
+-          basic_json,
+-          object_comparator_t,
+-          AllocatorType<std::pair<const StringType,
+-          basic_json>>>;
+-
+-    /// @brief a type for an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/array_t/
+-    using array_t = ArrayType<basic_json, AllocatorType<basic_json>>;
+-
+-    /// @brief a type for a string
+-    /// @sa https://json.nlohmann.me/api/basic_json/string_t/
+-    using string_t = StringType;
+-
+-    /// @brief a type for a boolean
+-    /// @sa https://json.nlohmann.me/api/basic_json/boolean_t/
+-    using boolean_t = BooleanType;
+-
+-    /// @brief a type for a number (integer)
+-    /// @sa https://json.nlohmann.me/api/basic_json/number_integer_t/
+-    using number_integer_t = NumberIntegerType;
+-
+-    /// @brief a type for a number (unsigned)
+-    /// @sa https://json.nlohmann.me/api/basic_json/number_unsigned_t/
+-    using number_unsigned_t = NumberUnsignedType;
+-
+-    /// @brief a type for a number (floating-point)
+-    /// @sa https://json.nlohmann.me/api/basic_json/number_float_t/
+-    using number_float_t = NumberFloatType;
+-
+-    /// @brief a type for a packed binary type
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary_t/
+-    using binary_t = nlohmann::byte_container_with_subtype<BinaryType>;
+-
+-    /// @}
+-
+-  private:
+-
+-    /// helper for exception-safe object creation
+-    template<typename T, typename... Args>
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    static T* create(Args&& ... args)
+-    {
+-        AllocatorType<T> alloc;
+-        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
+-
+-        auto deleter = [&](T * obj)
+-        {
+-            AllocatorTraits::deallocate(alloc, obj, 1);
+-        };
+-        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
+-        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
+-        JSON_ASSERT(obj != nullptr);
+-        return obj.release();
+-    }
+-
+-    ////////////////////////
+-    // JSON value storage //
+-    ////////////////////////
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /*!
+-    @brief a JSON value
+-
+-    The actual storage for a JSON value of the @ref basic_json class. This
+-    union combines the different storage types for the JSON value types
+-    defined in @ref value_t.
+-
+-    JSON type | value_t type    | used type
+-    --------- | --------------- | ------------------------
+-    object    | object          | pointer to @ref object_t
+-    array     | array           | pointer to @ref array_t
+-    string    | string          | pointer to @ref string_t
+-    boolean   | boolean         | @ref boolean_t
+-    number    | number_integer  | @ref number_integer_t
+-    number    | number_unsigned | @ref number_unsigned_t
+-    number    | number_float    | @ref number_float_t
+-    binary    | binary          | pointer to @ref binary_t
+-    null      | null            | *no value is stored*
+-
+-    @note Variable-length types (objects, arrays, and strings) are stored as
+-    pointers. The size of the union should not exceed 64 bits if the default
+-    value types are used.
+-
+-    @since version 1.0.0
+-    */
+-    union json_value
+-    {
+-        /// object (stored with pointer to save storage)
+-        object_t* object;
+-        /// array (stored with pointer to save storage)
+-        array_t* array;
+-        /// string (stored with pointer to save storage)
+-        string_t* string;
+-        /// binary (stored with pointer to save storage)
+-        binary_t* binary;
+-        /// boolean
+-        boolean_t boolean;
+-        /// number (integer)
+-        number_integer_t number_integer;
+-        /// number (unsigned integer)
+-        number_unsigned_t number_unsigned;
+-        /// number (floating-point)
+-        number_float_t number_float;
+-
+-        /// default constructor (for null values)
+-        json_value() = default;
+-        /// constructor for booleans
+-        json_value(boolean_t v) noexcept : boolean(v) {}
+-        /// constructor for numbers (integer)
+-        json_value(number_integer_t v) noexcept : number_integer(v) {}
+-        /// constructor for numbers (unsigned)
+-        json_value(number_unsigned_t v) noexcept : number_unsigned(v) {}
+-        /// constructor for numbers (floating-point)
+-        json_value(number_float_t v) noexcept : number_float(v) {}
+-        /// constructor for empty values of a given type
+-        json_value(value_t t)
+-        {
+-            switch (t)
+-            {
+-                case value_t::object:
+-                {
+-                    object = create<object_t>();
+-                    break;
+-                }
+-
+-                case value_t::array:
+-                {
+-                    array = create<array_t>();
+-                    break;
+-                }
+-
+-                case value_t::string:
+-                {
+-                    string = create<string_t>("");
+-                    break;
+-                }
+-
+-                case value_t::binary:
+-                {
+-                    binary = create<binary_t>();
+-                    break;
+-                }
+-
+-                case value_t::boolean:
+-                {
+-                    boolean = static_cast<boolean_t>(false);
+-                    break;
+-                }
+-
+-                case value_t::number_integer:
+-                {
+-                    number_integer = static_cast<number_integer_t>(0);
+-                    break;
+-                }
+-
+-                case value_t::number_unsigned:
+-                {
+-                    number_unsigned = static_cast<number_unsigned_t>(0);
+-                    break;
+-                }
+-
+-                case value_t::number_float:
+-                {
+-                    number_float = static_cast<number_float_t>(0.0);
+-                    break;
+-                }
+-
+-                case value_t::null:
+-                {
+-                    object = nullptr;  // silence warning, see #821
+-                    break;
+-                }
+-
+-                case value_t::discarded:
+-                default:
+-                {
+-                    object = nullptr;  // silence warning, see #821
+-                    if (JSON_HEDLEY_UNLIKELY(t == value_t::null))
+-                    {
+-                        JSON_THROW(other_error::create(500, "961c151d2e87f2686a955a9be24d316f1362bf21 3.10.5", basic_json())); // LCOV_EXCL_LINE
+-                    }
+-                    break;
+-                }
+-            }
+-        }
+-
+-        /// constructor for strings
+-        json_value(const string_t& value) : string(create<string_t>(value)) {}
+-
+-        /// constructor for rvalue strings
+-        json_value(string_t&& value) : string(create<string_t>(std::move(value))) {}
+-
+-        /// constructor for objects
+-        json_value(const object_t& value) : object(create<object_t>(value)) {}
+-
+-        /// constructor for rvalue objects
+-        json_value(object_t&& value) : object(create<object_t>(std::move(value))) {}
+-
+-        /// constructor for arrays
+-        json_value(const array_t& value) : array(create<array_t>(value)) {}
+-
+-        /// constructor for rvalue arrays
+-        json_value(array_t&& value) : array(create<array_t>(std::move(value))) {}
+-
+-        /// constructor for binary arrays
+-        json_value(const typename binary_t::container_type& value) : binary(create<binary_t>(value)) {}
+-
+-        /// constructor for rvalue binary arrays
+-        json_value(typename binary_t::container_type&& value) : binary(create<binary_t>(std::move(value))) {}
+-
+-        /// constructor for binary arrays (internal type)
+-        json_value(const binary_t& value) : binary(create<binary_t>(value)) {}
+-
+-        /// constructor for rvalue binary arrays (internal type)
+-        json_value(binary_t&& value) : binary(create<binary_t>(std::move(value))) {}
+-
+-        void destroy(value_t t)
+-        {
+-            if (t == value_t::array || t == value_t::object)
+-            {
+-                // flatten the current json_value to a heap-allocated stack
+-                std::vector<basic_json> stack;
+-
+-                // move the top-level items to stack
+-                if (t == value_t::array)
+-                {
+-                    stack.reserve(array->size());
+-                    std::move(array->begin(), array->end(), std::back_inserter(stack));
+-                }
+-                else
+-                {
+-                    stack.reserve(object->size());
+-                    for (auto&& it : *object)
+-                    {
+-                        stack.push_back(std::move(it.second));
+-                    }
+-                }
+-
+-                while (!stack.empty())
+-                {
+-                    // move the last item to local variable to be processed
+-                    basic_json current_item(std::move(stack.back()));
+-                    stack.pop_back();
+-
+-                    // if current_item is array/object, move
+-                    // its children to the stack to be processed later
+-                    if (current_item.is_array())
+-                    {
+-                        std::move(current_item.m_value.array->begin(), current_item.m_value.array->end(), std::back_inserter(stack));
+-
+-                        current_item.m_value.array->clear();
+-                    }
+-                    else if (current_item.is_object())
+-                    {
+-                        for (auto&& it : *current_item.m_value.object)
+-                        {
+-                            stack.push_back(std::move(it.second));
+-                        }
+-
+-                        current_item.m_value.object->clear();
+-                    }
+-
+-                    // it's now safe that current_item get destructed
+-                    // since it doesn't have any children
+-                }
+-            }
+-
+-            switch (t)
+-            {
+-                case value_t::object:
+-                {
+-                    AllocatorType<object_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, object);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1);
+-                    break;
+-                }
+-
+-                case value_t::array:
+-                {
+-                    AllocatorType<array_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, array);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1);
+-                    break;
+-                }
+-
+-                case value_t::string:
+-                {
+-                    AllocatorType<string_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, string);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1);
+-                    break;
+-                }
+-
+-                case value_t::binary:
+-                {
+-                    AllocatorType<binary_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, binary);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1);
+-                    break;
+-                }
+-
+-                case value_t::null:
+-                case value_t::boolean:
+-                case value_t::number_integer:
+-                case value_t::number_unsigned:
+-                case value_t::number_float:
+-                case value_t::discarded:
+-                default:
+-                {
+-                    break;
+-                }
+-            }
+-        }
+-    };
+-
+-  private:
+-    /*!
+-    @brief checks the class invariants
+-
+-    This function asserts the class invariants. It needs to be called at the
+-    end of every constructor to make sure that created objects respect the
+-    invariant. Furthermore, it has to be called each time the type of a JSON
+-    value is changed, because the invariant expresses a relationship between
+-    @a m_type and @a m_value.
+-
+-    Furthermore, the parent relation is checked for arrays and objects: If
+-    @a check_parents true and the value is an array or object, then the
+-    container's elements must have the current value as parent.
+-
+-    @param[in] check_parents  whether the parent relation should be checked.
+-               The value is true by default and should only be set to false
+-               during destruction of objects when the invariant does not
+-               need to hold.
+-    */
+-    void assert_invariant(bool check_parents = true) const noexcept
+-    {
+-        JSON_ASSERT(m_type != value_t::object || m_value.object != nullptr);
+-        JSON_ASSERT(m_type != value_t::array || m_value.array != nullptr);
+-        JSON_ASSERT(m_type != value_t::string || m_value.string != nullptr);
+-        JSON_ASSERT(m_type != value_t::binary || m_value.binary != nullptr);
+-
+-#if JSON_DIAGNOSTICS
+-        JSON_TRY
+-        {
+-            // cppcheck-suppress assertWithSideEffect
+-            JSON_ASSERT(!check_parents || !is_structured() || std::all_of(begin(), end(), [this](const basic_json & j)
+-            {
+-                return j.m_parent == this;
+-            }));
+-        }
+-        JSON_CATCH(...) {} // LCOV_EXCL_LINE
+-#endif
+-        static_cast<void>(check_parents);
+-    }
+-
+-    void set_parents()
+-    {
+-#if JSON_DIAGNOSTICS
+-        switch (m_type)
+-        {
+-            case value_t::array:
+-            {
+-                for (auto& element : *m_value.array)
+-                {
+-                    element.m_parent = this;
+-                }
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                for (auto& element : *m_value.object)
+-                {
+-                    element.second.m_parent = this;
+-                }
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-#endif
+-    }
+-
+-    iterator set_parents(iterator it, typename iterator::difference_type count_set_parents)
+-    {
+-#if JSON_DIAGNOSTICS
+-        for (typename iterator::difference_type i = 0; i < count_set_parents; ++i)
+-        {
+-            (it + i)->m_parent = this;
+-        }
+-#else
+-        static_cast<void>(count_set_parents);
+-#endif
+-        return it;
+-    }
+-
+-    reference set_parent(reference j, std::size_t old_capacity = static_cast<std::size_t>(-1))
+-    {
+-#if JSON_DIAGNOSTICS
+-        if (old_capacity != static_cast<std::size_t>(-1))
+-        {
+-            // see https://github.com/nlohmann/json/issues/2838
+-            JSON_ASSERT(type() == value_t::array);
+-            if (JSON_HEDLEY_UNLIKELY(m_value.array->capacity() != old_capacity))
+-            {
+-                // capacity has changed: update all parents
+-                set_parents();
+-                return j;
+-            }
+-        }
+-
+-        // ordered_json uses a vector internally, so pointers could have
+-        // been invalidated; see https://github.com/nlohmann/json/issues/2962
+-#ifdef JSON_HEDLEY_MSVC_VERSION
+-#pragma warning(push )
+-#pragma warning(disable : 4127) // ignore warning to replace if with if constexpr
+-#endif
+-        if (detail::is_ordered_map<object_t>::value)
+-        {
+-            set_parents();
+-            return j;
+-        }
+-#ifdef JSON_HEDLEY_MSVC_VERSION
+-#pragma warning( pop )
+-#endif
+-
+-        j.m_parent = this;
+-#else
+-        static_cast<void>(j);
+-        static_cast<void>(old_capacity);
+-#endif
+-        return j;
+-    }
+-
+-  public:
+-    //////////////////////////
+-    // JSON parser callback //
+-    //////////////////////////
+-
+-    /// @brief parser event types
+-    /// @sa https://json.nlohmann.me/api/basic_json/parse_event_t/
+-    using parse_event_t = detail::parse_event_t;
+-
+-    /// @brief per-element parser callback type
+-    /// @sa https://json.nlohmann.me/api/basic_json/parser_callback_t/
+-    using parser_callback_t = detail::parser_callback_t<basic_json>;
+-
+-    //////////////////
+-    // constructors //
+-    //////////////////
+-
+-    /// @name constructors and destructors
+-    /// Constructors of class @ref basic_json, copy/move constructor, copy
+-    /// assignment, static functions creating objects, and the destructor.
+-    /// @{
+-
+-    /// @brief create an empty value with a given type
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(const value_t v)
+-        : m_type(v), m_value(v)
+-    {
+-        assert_invariant();
+-    }
+-
+-    /// @brief create a null object
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(std::nullptr_t = nullptr) noexcept
+-        : basic_json(value_t::null)
+-    {
+-        assert_invariant();
+-    }
+-
+-    /// @brief create a JSON value from compatible types
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    template < typename CompatibleType,
+-               typename U = detail::uncvref_t<CompatibleType>,
+-               detail::enable_if_t <
+-                   !detail::is_basic_json<U>::value && detail::is_compatible_type<basic_json_t, U>::value, int > = 0 >
+-    basic_json(CompatibleType && val) noexcept(noexcept( // NOLINT(bugprone-forwarding-reference-overload,bugprone-exception-escape)
+-                JSONSerializer<U>::to_json(std::declval<basic_json_t&>(),
+-                                           std::forward<CompatibleType>(val))))
+-    {
+-        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief create a JSON value from an existing one
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    template < typename BasicJsonType,
+-               detail::enable_if_t <
+-                   detail::is_basic_json<BasicJsonType>::value&& !std::is_same<basic_json, BasicJsonType>::value, int > = 0 >
+-    basic_json(const BasicJsonType& val)
+-    {
+-        using other_boolean_t = typename BasicJsonType::boolean_t;
+-        using other_number_float_t = typename BasicJsonType::number_float_t;
+-        using other_number_integer_t = typename BasicJsonType::number_integer_t;
+-        using other_number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-        using other_string_t = typename BasicJsonType::string_t;
+-        using other_object_t = typename BasicJsonType::object_t;
+-        using other_array_t = typename BasicJsonType::array_t;
+-        using other_binary_t = typename BasicJsonType::binary_t;
+-
+-        switch (val.type())
+-        {
+-            case value_t::boolean:
+-                JSONSerializer<other_boolean_t>::to_json(*this, val.template get<other_boolean_t>());
+-                break;
+-            case value_t::number_float:
+-                JSONSerializer<other_number_float_t>::to_json(*this, val.template get<other_number_float_t>());
+-                break;
+-            case value_t::number_integer:
+-                JSONSerializer<other_number_integer_t>::to_json(*this, val.template get<other_number_integer_t>());
+-                break;
+-            case value_t::number_unsigned:
+-                JSONSerializer<other_number_unsigned_t>::to_json(*this, val.template get<other_number_unsigned_t>());
+-                break;
+-            case value_t::string:
+-                JSONSerializer<other_string_t>::to_json(*this, val.template get_ref<const other_string_t&>());
+-                break;
+-            case value_t::object:
+-                JSONSerializer<other_object_t>::to_json(*this, val.template get_ref<const other_object_t&>());
+-                break;
+-            case value_t::array:
+-                JSONSerializer<other_array_t>::to_json(*this, val.template get_ref<const other_array_t&>());
+-                break;
+-            case value_t::binary:
+-                JSONSerializer<other_binary_t>::to_json(*this, val.template get_ref<const other_binary_t&>());
+-                break;
+-            case value_t::null:
+-                *this = nullptr;
+-                break;
+-            case value_t::discarded:
+-                m_type = value_t::discarded;
+-                break;
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief create a container (array or object) from an initializer list
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(initializer_list_t init,
+-               bool type_deduction = true,
+-               value_t manual_type = value_t::array)
+-    {
+-        // check if each element is an array with two elements whose first
+-        // element is a string
+-        bool is_an_object = std::all_of(init.begin(), init.end(),
+-                                        [](const detail::json_ref<basic_json>& element_ref)
+-        {
+-            return element_ref->is_array() && element_ref->size() == 2 && (*element_ref)[0].is_string();
+-        });
+-
+-        // adjust type if type deduction is not wanted
+-        if (!type_deduction)
+-        {
+-            // if array is wanted, do not create an object though possible
+-            if (manual_type == value_t::array)
+-            {
+-                is_an_object = false;
+-            }
+-
+-            // if object is wanted but impossible, throw an exception
+-            if (JSON_HEDLEY_UNLIKELY(manual_type == value_t::object && !is_an_object))
+-            {
+-                JSON_THROW(type_error::create(301, "cannot create object from initializer list", basic_json()));
+-            }
+-        }
+-
+-        if (is_an_object)
+-        {
+-            // the initializer list is a list of pairs -> create object
+-            m_type = value_t::object;
+-            m_value = value_t::object;
+-
+-            for (auto& element_ref : init)
+-            {
+-                auto element = element_ref.moved_or_copied();
+-                m_value.object->emplace(
+-                    std::move(*((*element.m_value.array)[0].m_value.string)),
+-                    std::move((*element.m_value.array)[1]));
+-            }
+-        }
+-        else
+-        {
+-            // the initializer list describes an array -> create array
+-            m_type = value_t::array;
+-            m_value.array = create<array_t>(init.begin(), init.end());
+-        }
+-
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief explicitly create a binary array (without subtype)
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json binary(const typename binary_t::container_type& init)
+-    {
+-        auto res = basic_json();
+-        res.m_type = value_t::binary;
+-        res.m_value = init;
+-        return res;
+-    }
+-
+-    /// @brief explicitly create a binary array (with subtype)
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json binary(const typename binary_t::container_type& init, typename binary_t::subtype_type subtype)
+-    {
+-        auto res = basic_json();
+-        res.m_type = value_t::binary;
+-        res.m_value = binary_t(init, subtype);
+-        return res;
+-    }
+-
+-    /// @brief explicitly create a binary array
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json binary(typename binary_t::container_type&& init)
+-    {
+-        auto res = basic_json();
+-        res.m_type = value_t::binary;
+-        res.m_value = std::move(init);
+-        return res;
+-    }
+-
+-    /// @brief explicitly create a binary array (with subtype)
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json binary(typename binary_t::container_type&& init, typename binary_t::subtype_type subtype)
+-    {
+-        auto res = basic_json();
+-        res.m_type = value_t::binary;
+-        res.m_value = binary_t(std::move(init), subtype);
+-        return res;
+-    }
+-
+-    /// @brief explicitly create an array from an initializer list
+-    /// @sa https://json.nlohmann.me/api/basic_json/array/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json array(initializer_list_t init = {})
+-    {
+-        return basic_json(init, false, value_t::array);
+-    }
+-
+-    /// @brief explicitly create an object from an initializer list
+-    /// @sa https://json.nlohmann.me/api/basic_json/object/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json object(initializer_list_t init = {})
+-    {
+-        return basic_json(init, false, value_t::object);
+-    }
+-
+-    /// @brief construct an array with count copies of given value
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(size_type cnt, const basic_json& val)
+-        : m_type(value_t::array)
+-    {
+-        m_value.array = create<array_t>(cnt, val);
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief construct a JSON container given an iterator range
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    template < class InputIT, typename std::enable_if <
+-                   std::is_same<InputIT, typename basic_json_t::iterator>::value ||
+-                   std::is_same<InputIT, typename basic_json_t::const_iterator>::value, int >::type = 0 >
+-    basic_json(InputIT first, InputIT last)
+-    {
+-        JSON_ASSERT(first.m_object != nullptr);
+-        JSON_ASSERT(last.m_object != nullptr);
+-
+-        // make sure iterator fits the current value
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(201, "iterators are not compatible", basic_json()));
+-        }
+-
+-        // copy type from first iterator
+-        m_type = first.m_object->m_type;
+-
+-        // check if iterator range is complete for primitive values
+-        switch (m_type)
+-        {
+-            case value_t::boolean:
+-            case value_t::number_float:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::string:
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!first.m_it.primitive_iterator.is_begin()
+-                                         || !last.m_it.primitive_iterator.is_end()))
+-                {
+-                    JSON_THROW(invalid_iterator::create(204, "iterators out of range", *first.m_object));
+-                }
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::object:
+-            case value_t::array:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-
+-        switch (m_type)
+-        {
+-            case value_t::number_integer:
+-            {
+-                m_value.number_integer = first.m_object->m_value.number_integer;
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                m_value.number_unsigned = first.m_object->m_value.number_unsigned;
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                m_value.number_float = first.m_object->m_value.number_float;
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                m_value.boolean = first.m_object->m_value.boolean;
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                m_value = *first.m_object->m_value.string;
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                m_value.object = create<object_t>(first.m_it.object_iterator,
+-                                                  last.m_it.object_iterator);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_value.array = create<array_t>(first.m_it.array_iterator,
+-                                                last.m_it.array_iterator);
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                m_value = *first.m_object->m_value.binary;
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                JSON_THROW(invalid_iterator::create(206, "cannot construct with iterators from " + std::string(first.m_object->type_name()), *first.m_object));
+-        }
+-
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-
+-    ///////////////////////////////////////
+-    // other constructors and destructor //
+-    ///////////////////////////////////////
+-
+-    template<typename JsonRef,
+-             detail::enable_if_t<detail::conjunction<detail::is_json_ref<JsonRef>,
+-                                 std::is_same<typename JsonRef::value_type, basic_json>>::value, int> = 0 >
+-    basic_json(const JsonRef& ref) : basic_json(ref.moved_or_copied()) {}
+-
+-    /// @brief copy constructor
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(const basic_json& other)
+-        : m_type(other.m_type)
+-    {
+-        // check of passed value is valid
+-        other.assert_invariant();
+-
+-        switch (m_type)
+-        {
+-            case value_t::object:
+-            {
+-                m_value = *other.m_value.object;
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_value = *other.m_value.array;
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                m_value = *other.m_value.string;
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                m_value = other.m_value.boolean;
+-                break;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                m_value = other.m_value.number_integer;
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                m_value = other.m_value.number_unsigned;
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                m_value = other.m_value.number_float;
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                m_value = *other.m_value.binary;
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief move constructor
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(basic_json&& other) noexcept
+-        : m_type(std::move(other.m_type)),
+-          m_value(std::move(other.m_value))
+-    {
+-        // check that passed value is valid
+-        other.assert_invariant(false);
+-
+-        // invalidate payload
+-        other.m_type = value_t::null;
+-        other.m_value = {};
+-
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief copy assignment
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator=/
+-    basic_json& operator=(basic_json other) noexcept (
+-        std::is_nothrow_move_constructible<value_t>::value&&
+-        std::is_nothrow_move_assignable<value_t>::value&&
+-        std::is_nothrow_move_constructible<json_value>::value&&
+-        std::is_nothrow_move_assignable<json_value>::value
+-    )
+-    {
+-        // check that passed value is valid
+-        other.assert_invariant();
+-
+-        using std::swap;
+-        swap(m_type, other.m_type);
+-        swap(m_value, other.m_value);
+-
+-        set_parents();
+-        assert_invariant();
+-        return *this;
+-    }
+-
+-    /// @brief destructor
+-    /// @sa https://json.nlohmann.me/api/basic_json/~basic_json/
+-    ~basic_json() noexcept
+-    {
+-        assert_invariant(false);
+-        m_value.destroy(m_type);
+-    }
+-
+-    /// @}
+-
+-  public:
+-    ///////////////////////
+-    // object inspection //
+-    ///////////////////////
+-
+-    /// @name object inspection
+-    /// Functions to inspect the type of a JSON value.
+-    /// @{
+-
+-    /// @brief serialization
+-    /// @sa https://json.nlohmann.me/api/basic_json/dump/
+-    string_t dump(const int indent = -1,
+-                  const char indent_char = ' ',
+-                  const bool ensure_ascii = false,
+-                  const error_handler_t error_handler = error_handler_t::strict) const
+-    {
+-        string_t result;
+-        serializer s(detail::output_adapter<char, string_t>(result), indent_char, error_handler);
+-
+-        if (indent >= 0)
+-        {
+-            s.dump(*this, true, ensure_ascii, static_cast<unsigned int>(indent));
+-        }
+-        else
+-        {
+-            s.dump(*this, false, ensure_ascii, 0);
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief return the type of the JSON value (explicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/type/
+-    constexpr value_t type() const noexcept
+-    {
+-        return m_type;
+-    }
+-
+-    /// @brief return whether type is primitive
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_primitive/
+-    constexpr bool is_primitive() const noexcept
+-    {
+-        return is_null() || is_string() || is_boolean() || is_number() || is_binary();
+-    }
+-
+-    /// @brief return whether type is structured
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_structured/
+-    constexpr bool is_structured() const noexcept
+-    {
+-        return is_array() || is_object();
+-    }
+-
+-    /// @brief return whether value is null
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_null/
+-    constexpr bool is_null() const noexcept
+-    {
+-        return m_type == value_t::null;
+-    }
+-
+-    /// @brief return whether value is a boolean
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_boolean/
+-    constexpr bool is_boolean() const noexcept
+-    {
+-        return m_type == value_t::boolean;
+-    }
+-
+-    /// @brief return whether value is a number
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_number/
+-    constexpr bool is_number() const noexcept
+-    {
+-        return is_number_integer() || is_number_float();
+-    }
+-
+-    /// @brief return whether value is an integer number
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_number_integer/
+-    constexpr bool is_number_integer() const noexcept
+-    {
+-        return m_type == value_t::number_integer || m_type == value_t::number_unsigned;
+-    }
+-
+-    /// @brief return whether value is an unsigned integer number
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_number_unsigned/
+-    constexpr bool is_number_unsigned() const noexcept
+-    {
+-        return m_type == value_t::number_unsigned;
+-    }
+-
+-    /// @brief return whether value is a floating-point number
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_number_float/
+-    constexpr bool is_number_float() const noexcept
+-    {
+-        return m_type == value_t::number_float;
+-    }
+-
+-    /// @brief return whether value is an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_object/
+-    constexpr bool is_object() const noexcept
+-    {
+-        return m_type == value_t::object;
+-    }
+-
+-    /// @brief return whether value is an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_array/
+-    constexpr bool is_array() const noexcept
+-    {
+-        return m_type == value_t::array;
+-    }
+-
+-    /// @brief return whether value is a string
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_string/
+-    constexpr bool is_string() const noexcept
+-    {
+-        return m_type == value_t::string;
+-    }
+-
+-    /// @brief return whether value is a binary array
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_binary/
+-    constexpr bool is_binary() const noexcept
+-    {
+-        return m_type == value_t::binary;
+-    }
+-
+-    /// @brief return whether value is discarded
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_discarded/
+-    constexpr bool is_discarded() const noexcept
+-    {
+-        return m_type == value_t::discarded;
+-    }
+-
+-    /// @brief return the type of the JSON value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_value_t/
+-    constexpr operator value_t() const noexcept
+-    {
+-        return m_type;
+-    }
+-
+-    /// @}
+-
+-  private:
+-    //////////////////
+-    // value access //
+-    //////////////////
+-
+-    /// get a boolean (explicit)
+-    boolean_t get_impl(boolean_t* /*unused*/) const
+-    {
+-        if (JSON_HEDLEY_LIKELY(is_boolean()))
+-        {
+-            return m_value.boolean;
+-        }
+-
+-        JSON_THROW(type_error::create(302, "type must be boolean, but is " + std::string(type_name()), *this));
+-    }
+-
+-    /// get a pointer to the value (object)
+-    object_t* get_impl_ptr(object_t* /*unused*/) noexcept
+-    {
+-        return is_object() ? m_value.object : nullptr;
+-    }
+-
+-    /// get a pointer to the value (object)
+-    constexpr const object_t* get_impl_ptr(const object_t* /*unused*/) const noexcept
+-    {
+-        return is_object() ? m_value.object : nullptr;
+-    }
+-
+-    /// get a pointer to the value (array)
+-    array_t* get_impl_ptr(array_t* /*unused*/) noexcept
+-    {
+-        return is_array() ? m_value.array : nullptr;
+-    }
+-
+-    /// get a pointer to the value (array)
+-    constexpr const array_t* get_impl_ptr(const array_t* /*unused*/) const noexcept
+-    {
+-        return is_array() ? m_value.array : nullptr;
+-    }
+-
+-    /// get a pointer to the value (string)
+-    string_t* get_impl_ptr(string_t* /*unused*/) noexcept
+-    {
+-        return is_string() ? m_value.string : nullptr;
+-    }
+-
+-    /// get a pointer to the value (string)
+-    constexpr const string_t* get_impl_ptr(const string_t* /*unused*/) const noexcept
+-    {
+-        return is_string() ? m_value.string : nullptr;
+-    }
+-
+-    /// get a pointer to the value (boolean)
+-    boolean_t* get_impl_ptr(boolean_t* /*unused*/) noexcept
+-    {
+-        return is_boolean() ? &m_value.boolean : nullptr;
+-    }
+-
+-    /// get a pointer to the value (boolean)
+-    constexpr const boolean_t* get_impl_ptr(const boolean_t* /*unused*/) const noexcept
+-    {
+-        return is_boolean() ? &m_value.boolean : nullptr;
+-    }
+-
+-    /// get a pointer to the value (integer number)
+-    number_integer_t* get_impl_ptr(number_integer_t* /*unused*/) noexcept
+-    {
+-        return is_number_integer() ? &m_value.number_integer : nullptr;
+-    }
+-
+-    /// get a pointer to the value (integer number)
+-    constexpr const number_integer_t* get_impl_ptr(const number_integer_t* /*unused*/) const noexcept
+-    {
+-        return is_number_integer() ? &m_value.number_integer : nullptr;
+-    }
+-
+-    /// get a pointer to the value (unsigned number)
+-    number_unsigned_t* get_impl_ptr(number_unsigned_t* /*unused*/) noexcept
+-    {
+-        return is_number_unsigned() ? &m_value.number_unsigned : nullptr;
+-    }
+-
+-    /// get a pointer to the value (unsigned number)
+-    constexpr const number_unsigned_t* get_impl_ptr(const number_unsigned_t* /*unused*/) const noexcept
+-    {
+-        return is_number_unsigned() ? &m_value.number_unsigned : nullptr;
+-    }
+-
+-    /// get a pointer to the value (floating-point number)
+-    number_float_t* get_impl_ptr(number_float_t* /*unused*/) noexcept
+-    {
+-        return is_number_float() ? &m_value.number_float : nullptr;
+-    }
+-
+-    /// get a pointer to the value (floating-point number)
+-    constexpr const number_float_t* get_impl_ptr(const number_float_t* /*unused*/) const noexcept
+-    {
+-        return is_number_float() ? &m_value.number_float : nullptr;
+-    }
+-
+-    /// get a pointer to the value (binary)
+-    binary_t* get_impl_ptr(binary_t* /*unused*/) noexcept
+-    {
+-        return is_binary() ? m_value.binary : nullptr;
+-    }
+-
+-    /// get a pointer to the value (binary)
+-    constexpr const binary_t* get_impl_ptr(const binary_t* /*unused*/) const noexcept
+-    {
+-        return is_binary() ? m_value.binary : nullptr;
+-    }
+-
+-    /*!
+-    @brief helper function to implement get_ref()
+-
+-    This function helps to implement get_ref() without code duplication for
+-    const and non-const overloads
+-
+-    @tparam ThisType will be deduced as `basic_json` or `const basic_json`
+-
+-    @throw type_error.303 if ReferenceType does not match underlying value
+-    type of the current JSON
+-    */
+-    template<typename ReferenceType, typename ThisType>
+-    static ReferenceType get_ref_impl(ThisType& obj)
+-    {
+-        // delegate the call to get_ptr<>()
+-        auto* ptr = obj.template get_ptr<typename std::add_pointer<ReferenceType>::type>();
+-
+-        if (JSON_HEDLEY_LIKELY(ptr != nullptr))
+-        {
+-            return *ptr;
+-        }
+-
+-        JSON_THROW(type_error::create(303, "incompatible ReferenceType for get_ref, actual type is " + std::string(obj.type_name()), obj));
+-    }
+-
+-  public:
+-    /// @name value access
+-    /// Direct access to the stored value of a JSON value.
+-    /// @{
+-
+-    /// @brief get a pointer value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_ptr/
+-    template<typename PointerType, typename std::enable_if<
+-                 std::is_pointer<PointerType>::value, int>::type = 0>
+-    auto get_ptr() noexcept -> decltype(std::declval<basic_json_t&>().get_impl_ptr(std::declval<PointerType>()))
+-    {
+-        // delegate the call to get_impl_ptr<>()
+-        return get_impl_ptr(static_cast<PointerType>(nullptr));
+-    }
+-
+-    /// @brief get a pointer value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_ptr/
+-    template < typename PointerType, typename std::enable_if <
+-                   std::is_pointer<PointerType>::value&&
+-                   std::is_const<typename std::remove_pointer<PointerType>::type>::value, int >::type = 0 >
+-    constexpr auto get_ptr() const noexcept -> decltype(std::declval<const basic_json_t&>().get_impl_ptr(std::declval<PointerType>()))
+-    {
+-        // delegate the call to get_impl_ptr<>() const
+-        return get_impl_ptr(static_cast<PointerType>(nullptr));
+-    }
+-
+-  private:
+-    /*!
+-    @brief get a value (explicit)
+-
+-    Explicit type conversion between the JSON value and a compatible value
+-    which is [CopyConstructible](https://en.cppreference.com/w/cpp/named_req/CopyConstructible)
+-    and [DefaultConstructible](https://en.cppreference.com/w/cpp/named_req/DefaultConstructible).
+-    The value is converted by calling the @ref json_serializer<ValueType>
+-    `from_json()` method.
+-
+-    The function is equivalent to executing
+-    @code {.cpp}
+-    ValueType ret;
+-    JSONSerializer<ValueType>::from_json(*this, ret);
+-    return ret;
+-    @endcode
+-
+-    This overloads is chosen if:
+-    - @a ValueType is not @ref basic_json,
+-    - @ref json_serializer<ValueType> has a `from_json()` method of the form
+-      `void from_json(const basic_json&, ValueType&)`, and
+-    - @ref json_serializer<ValueType> does not have a `from_json()` method of
+-      the form `ValueType from_json(const basic_json&)`
+-
+-    @tparam ValueType the returned value type
+-
+-    @return copy of the JSON value, converted to @a ValueType
+-
+-    @throw what @ref json_serializer<ValueType> `from_json()` method throws
+-
+-    @liveexample{The example below shows several conversions from JSON values
+-    to other types. There a few things to note: (1) Floating-point numbers can
+-    be converted to integers\, (2) A JSON array can be converted to a standard
+-    `std::vector<short>`\, (3) A JSON object can be converted to C++
+-    associative containers such as `std::unordered_map<std::string\,
+-    json>`.,get__ValueType_const}
+-
+-    @since version 2.1.0
+-    */
+-    template < typename ValueType,
+-               detail::enable_if_t <
+-                   detail::is_default_constructible<ValueType>::value&&
+-                   detail::has_from_json<basic_json_t, ValueType>::value,
+-                   int > = 0 >
+-    ValueType get_impl(detail::priority_tag<0> /*unused*/) const noexcept(noexcept(
+-                JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>(), std::declval<ValueType&>())))
+-    {
+-        auto ret = ValueType();
+-        JSONSerializer<ValueType>::from_json(*this, ret);
+-        return ret;
+-    }
+-
+-    /*!
+-    @brief get a value (explicit); special case
+-
+-    Explicit type conversion between the JSON value and a compatible value
+-    which is **not** [CopyConstructible](https://en.cppreference.com/w/cpp/named_req/CopyConstructible)
+-    and **not** [DefaultConstructible](https://en.cppreference.com/w/cpp/named_req/DefaultConstructible).
+-    The value is converted by calling the @ref json_serializer<ValueType>
+-    `from_json()` method.
+-
+-    The function is equivalent to executing
+-    @code {.cpp}
+-    return JSONSerializer<ValueType>::from_json(*this);
+-    @endcode
+-
+-    This overloads is chosen if:
+-    - @a ValueType is not @ref basic_json and
+-    - @ref json_serializer<ValueType> has a `from_json()` method of the form
+-      `ValueType from_json(const basic_json&)`
+-
+-    @note If @ref json_serializer<ValueType> has both overloads of
+-    `from_json()`, this one is chosen.
+-
+-    @tparam ValueType the returned value type
+-
+-    @return copy of the JSON value, converted to @a ValueType
+-
+-    @throw what @ref json_serializer<ValueType> `from_json()` method throws
+-
+-    @since version 2.1.0
+-    */
+-    template < typename ValueType,
+-               detail::enable_if_t <
+-                   detail::has_non_default_from_json<basic_json_t, ValueType>::value,
+-                   int > = 0 >
+-    ValueType get_impl(detail::priority_tag<1> /*unused*/) const noexcept(noexcept(
+-                JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>())))
+-    {
+-        return JSONSerializer<ValueType>::from_json(*this);
+-    }
+-
+-    /*!
+-    @brief get special-case overload
+-
+-    This overloads converts the current @ref basic_json in a different
+-    @ref basic_json type
+-
+-    @tparam BasicJsonType == @ref basic_json
+-
+-    @return a copy of *this, converted into @a BasicJsonType
+-
+-    @complexity Depending on the implementation of the called `from_json()`
+-                method.
+-
+-    @since version 3.2.0
+-    */
+-    template < typename BasicJsonType,
+-               detail::enable_if_t <
+-                   detail::is_basic_json<BasicJsonType>::value,
+-                   int > = 0 >
+-    BasicJsonType get_impl(detail::priority_tag<2> /*unused*/) const
+-    {
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief get special-case overload
+-
+-    This overloads avoids a lot of template boilerplate, it can be seen as the
+-    identity method
+-
+-    @tparam BasicJsonType == @ref basic_json
+-
+-    @return a copy of *this
+-
+-    @complexity Constant.
+-
+-    @since version 2.1.0
+-    */
+-    template<typename BasicJsonType,
+-             detail::enable_if_t<
+-                 std::is_same<BasicJsonType, basic_json_t>::value,
+-                 int> = 0>
+-    basic_json get_impl(detail::priority_tag<3> /*unused*/) const
+-    {
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief get a pointer value (explicit)
+-    @copydoc get()
+-    */
+-    template<typename PointerType,
+-             detail::enable_if_t<
+-                 std::is_pointer<PointerType>::value,
+-                 int> = 0>
+-    constexpr auto get_impl(detail::priority_tag<4> /*unused*/) const noexcept
+-    -> decltype(std::declval<const basic_json_t&>().template get_ptr<PointerType>())
+-    {
+-        // delegate the call to get_ptr
+-        return get_ptr<PointerType>();
+-    }
+-
+-  public:
+-    /*!
+-    @brief get a (pointer) value (explicit)
+-
+-    Performs explicit type conversion between the JSON value and a compatible value if required.
+-
+-    - If the requested type is a pointer to the internally stored JSON value that pointer is returned.
+-    No copies are made.
+-
+-    - If the requested type is the current @ref basic_json, or a different @ref basic_json convertible
+-    from the current @ref basic_json.
+-
+-    - Otherwise the value is converted by calling the @ref json_serializer<ValueType> `from_json()`
+-    method.
+-
+-    @tparam ValueTypeCV the provided value type
+-    @tparam ValueType the returned value type
+-
+-    @return copy of the JSON value, converted to @tparam ValueType if necessary
+-
+-    @throw what @ref json_serializer<ValueType> `from_json()` method throws if conversion is required
+-
+-    @since version 2.1.0
+-    */
+-    template < typename ValueTypeCV, typename ValueType = detail::uncvref_t<ValueTypeCV>>
+-#if defined(JSON_HAS_CPP_14)
+-    constexpr
+-#endif
+-    auto get() const noexcept(
+-    noexcept(std::declval<const basic_json_t&>().template get_impl<ValueType>(detail::priority_tag<4> {})))
+-    -> decltype(std::declval<const basic_json_t&>().template get_impl<ValueType>(detail::priority_tag<4> {}))
+-    {
+-        // we cannot static_assert on ValueTypeCV being non-const, because
+-        // there is support for get<const basic_json_t>(), which is why we
+-        // still need the uncvref
+-        static_assert(!std::is_reference<ValueTypeCV>::value,
+-                      "get() cannot be used with reference types, you might want to use get_ref()");
+-        return get_impl<ValueType>(detail::priority_tag<4> {});
+-    }
+-
+-    /*!
+-    @brief get a pointer value (explicit)
+-
+-    Explicit pointer access to the internally stored JSON value. No copies are
+-    made.
+-
+-    @warning The pointer becomes invalid if the underlying JSON object
+-    changes.
+-
+-    @tparam PointerType pointer type; must be a pointer to @ref array_t, @ref
+-    object_t, @ref string_t, @ref boolean_t, @ref number_integer_t,
+-    @ref number_unsigned_t, or @ref number_float_t.
+-
+-    @return pointer to the internally stored JSON value if the requested
+-    pointer type @a PointerType fits to the JSON value; `nullptr` otherwise
+-
+-    @complexity Constant.
+-
+-    @liveexample{The example below shows how pointers to internal values of a
+-    JSON value can be requested. Note that no type conversions are made and a
+-    `nullptr` is returned if the value and the requested pointer type does not
+-    match.,get__PointerType}
+-
+-    @sa see @ref get_ptr() for explicit pointer-member access
+-
+-    @since version 1.0.0
+-    */
+-    template<typename PointerType, typename std::enable_if<
+-                 std::is_pointer<PointerType>::value, int>::type = 0>
+-    auto get() noexcept -> decltype(std::declval<basic_json_t&>().template get_ptr<PointerType>())
+-    {
+-        // delegate the call to get_ptr
+-        return get_ptr<PointerType>();
+-    }
+-
+-    /// @brief get a value (explicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_to/
+-    template < typename ValueType,
+-               detail::enable_if_t <
+-                   !detail::is_basic_json<ValueType>::value&&
+-                   detail::has_from_json<basic_json_t, ValueType>::value,
+-                   int > = 0 >
+-    ValueType & get_to(ValueType& v) const noexcept(noexcept(
+-                JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>(), v)))
+-    {
+-        JSONSerializer<ValueType>::from_json(*this, v);
+-        return v;
+-    }
+-
+-    // specialization to allow calling get_to with a basic_json value
+-    // see https://github.com/nlohmann/json/issues/2175
+-    template<typename ValueType,
+-             detail::enable_if_t <
+-                 detail::is_basic_json<ValueType>::value,
+-                 int> = 0>
+-    ValueType & get_to(ValueType& v) const
+-    {
+-        v = *this;
+-        return v;
+-    }
+-
+-    template <
+-        typename T, std::size_t N,
+-        typename Array = T (&)[N], // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-        detail::enable_if_t <
+-            detail::has_from_json<basic_json_t, Array>::value, int > = 0 >
+-    Array get_to(T (&v)[N]) const // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-    noexcept(noexcept(JSONSerializer<Array>::from_json(
+-                          std::declval<const basic_json_t&>(), v)))
+-    {
+-        JSONSerializer<Array>::from_json(*this, v);
+-        return v;
+-    }
+-
+-    /// @brief get a reference value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_ref/
+-    template<typename ReferenceType, typename std::enable_if<
+-                 std::is_reference<ReferenceType>::value, int>::type = 0>
+-    ReferenceType get_ref()
+-    {
+-        // delegate call to get_ref_impl
+-        return get_ref_impl<ReferenceType>(*this);
+-    }
+-
+-    /// @brief get a reference value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_ref/
+-    template < typename ReferenceType, typename std::enable_if <
+-                   std::is_reference<ReferenceType>::value&&
+-                   std::is_const<typename std::remove_reference<ReferenceType>::type>::value, int >::type = 0 >
+-    ReferenceType get_ref() const
+-    {
+-        // delegate call to get_ref_impl
+-        return get_ref_impl<ReferenceType>(*this);
+-    }
+-
+-    /*!
+-    @brief get a value (implicit)
+-
+-    Implicit type conversion between the JSON value and a compatible value.
+-    The call is realized by calling @ref get() const.
+-
+-    @tparam ValueType non-pointer type compatible to the JSON value, for
+-    instance `int` for JSON integer numbers, `bool` for JSON booleans, or
+-    `std::vector` types for JSON arrays. The character type of @ref string_t
+-    as well as an initializer list of this type is excluded to avoid
+-    ambiguities as these types implicitly convert to `std::string`.
+-
+-    @return copy of the JSON value, converted to type @a ValueType
+-
+-    @throw type_error.302 in case passed type @a ValueType is incompatible
+-    to the JSON value type (e.g., the JSON value is of type boolean, but a
+-    string is requested); see example below
+-
+-    @complexity Linear in the size of the JSON value.
+-
+-    @liveexample{The example below shows several conversions from JSON values
+-    to other types. There a few things to note: (1) Floating-point numbers can
+-    be converted to integers\, (2) A JSON array can be converted to a standard
+-    `std::vector<short>`\, (3) A JSON object can be converted to C++
+-    associative containers such as `std::unordered_map<std::string\,
+-    json>`.,operator__ValueType}
+-
+-    @since version 1.0.0
+-    */
+-    template < typename ValueType, typename std::enable_if <
+-                   detail::conjunction <
+-                       detail::negation<std::is_pointer<ValueType>>,
+-                       detail::negation<std::is_same<ValueType, detail::json_ref<basic_json>>>,
+-                                        detail::negation<std::is_same<ValueType, typename string_t::value_type>>,
+-                                        detail::negation<detail::is_basic_json<ValueType>>,
+-                                        detail::negation<std::is_same<ValueType, std::initializer_list<typename string_t::value_type>>>,
+-
+-#if defined(JSON_HAS_CPP_17) && (defined(__GNUC__) || (defined(_MSC_VER) && _MSC_VER >= 1910 && _MSC_VER <= 1914))
+-                                                detail::negation<std::is_same<ValueType, std::string_view>>,
+-#endif
+-                                                detail::is_detected_lazy<detail::get_template_function, const basic_json_t&, ValueType>
+-                                                >::value, int >::type = 0 >
+-                                        JSON_EXPLICIT operator ValueType() const
+-    {
+-        // delegate the call to get<>() const
+-        return get<ValueType>();
+-    }
+-
+-    /// @brief get a binary value
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_binary/
+-    binary_t& get_binary()
+-    {
+-        if (!is_binary())
+-        {
+-            JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(type_name()), *this));
+-        }
+-
+-        return *get_ptr<binary_t*>();
+-    }
+-
+-    /// @brief get a binary value
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_binary/
+-    const binary_t& get_binary() const
+-    {
+-        if (!is_binary())
+-        {
+-            JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(type_name()), *this));
+-        }
+-
+-        return *get_ptr<const binary_t*>();
+-    }
+-
+-    /// @}
+-
+-
+-    ////////////////////
+-    // element access //
+-    ////////////////////
+-
+-    /// @name element access
+-    /// Access to the JSON value.
+-    /// @{
+-
+-    /// @brief access specified array element with bounds checking
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    reference at(size_type idx)
+-    {
+-        // at only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            JSON_TRY
+-            {
+-                return set_parent(m_value.array->at(idx));
+-            }
+-            JSON_CATCH (std::out_of_range&)
+-            {
+-                // create better exception explanation
+-                JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range", *this));
+-            }
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief access specified array element with bounds checking
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    const_reference at(size_type idx) const
+-    {
+-        // at only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            JSON_TRY
+-            {
+-                return m_value.array->at(idx);
+-            }
+-            JSON_CATCH (std::out_of_range&)
+-            {
+-                // create better exception explanation
+-                JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range", *this));
+-            }
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief access specified object element with bounds checking
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    reference at(const typename object_t::key_type& key)
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            JSON_TRY
+-            {
+-                return set_parent(m_value.object->at(key));
+-            }
+-            JSON_CATCH (std::out_of_range&)
+-            {
+-                // create better exception explanation
+-                JSON_THROW(out_of_range::create(403, "key '" + key + "' not found", *this));
+-            }
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief access specified object element with bounds checking
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    const_reference at(const typename object_t::key_type& key) const
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            JSON_TRY
+-            {
+-                return m_value.object->at(key);
+-            }
+-            JSON_CATCH (std::out_of_range&)
+-            {
+-                // create better exception explanation
+-                JSON_THROW(out_of_range::create(403, "key '" + key + "' not found", *this));
+-            }
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief access specified array element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    reference operator[](size_type idx)
+-    {
+-        // implicitly convert null value to an empty array
+-        if (is_null())
+-        {
+-            m_type = value_t::array;
+-            m_value.array = create<array_t>();
+-            assert_invariant();
+-        }
+-
+-        // operator[] only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            // fill up array with null values if given idx is outside range
+-            if (idx >= m_value.array->size())
+-            {
+-#if JSON_DIAGNOSTICS
+-                // remember array size & capacity before resizing
+-                const auto old_size = m_value.array->size();
+-                const auto old_capacity = m_value.array->capacity();
+-#endif
+-                m_value.array->resize(idx + 1);
+-
+-#if JSON_DIAGNOSTICS
+-                if (JSON_HEDLEY_UNLIKELY(m_value.array->capacity() != old_capacity))
+-                {
+-                    // capacity has changed: update all parents
+-                    set_parents();
+-                }
+-                else
+-                {
+-                    // set parent for values added above
+-                    set_parents(begin() + static_cast<typename iterator::difference_type>(old_size), static_cast<typename iterator::difference_type>(idx + 1 - old_size));
+-                }
+-#endif
+-                assert_invariant();
+-            }
+-
+-            return m_value.array->operator[](idx);
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a numeric argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified array element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    const_reference operator[](size_type idx) const
+-    {
+-        // const operator[] only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            return m_value.array->operator[](idx);
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a numeric argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    reference operator[](const typename object_t::key_type& key)
+-    {
+-        // implicitly convert null value to an empty object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value.object = create<object_t>();
+-            assert_invariant();
+-        }
+-
+-        // operator[] only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            return set_parent(m_value.object->operator[](key));
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    const_reference operator[](const typename object_t::key_type& key) const
+-    {
+-        // const operator[] only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            JSON_ASSERT(m_value.object->find(key) != m_value.object->end());
+-            return m_value.object->find(key)->second;
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    template<typename T>
+-    JSON_HEDLEY_NON_NULL(2)
+-    reference operator[](T* key)
+-    {
+-        // implicitly convert null to object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value = value_t::object;
+-            assert_invariant();
+-        }
+-
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            return set_parent(m_value.object->operator[](key));
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    template<typename T>
+-    JSON_HEDLEY_NON_NULL(2)
+-    const_reference operator[](T* key) const
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            JSON_ASSERT(m_value.object->find(key) != m_value.object->end());
+-            return m_value.object->find(key)->second;
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element with default value
+-    /// @sa https://json.nlohmann.me/api/basic_json/value/
+-    /// using std::is_convertible in a std::enable_if will fail when using explicit conversions
+-    template < class ValueType, typename std::enable_if <
+-                   detail::is_getable<basic_json_t, ValueType>::value
+-                   && !std::is_same<value_t, ValueType>::value, int >::type = 0 >
+-    ValueType value(const typename object_t::key_type& key, const ValueType& default_value) const
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            // if key is found, return value and given default value otherwise
+-            const auto it = find(key);
+-            if (it != end())
+-            {
+-                return it->template get<ValueType>();
+-            }
+-
+-            return default_value;
+-        }
+-
+-        JSON_THROW(type_error::create(306, "cannot use value() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element with default value
+-    /// @sa https://json.nlohmann.me/api/basic_json/value/
+-    /// overload for a default value of type const char*
+-    string_t value(const typename object_t::key_type& key, const char* default_value) const
+-    {
+-        return value(key, string_t(default_value));
+-    }
+-
+-    /// @brief access specified object element via JSON Pointer with default value
+-    /// @sa https://json.nlohmann.me/api/basic_json/value/
+-    template<class ValueType, typename std::enable_if<
+-                 detail::is_getable<basic_json_t, ValueType>::value, int>::type = 0>
+-    ValueType value(const json_pointer& ptr, const ValueType& default_value) const
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            // if pointer resolves a value, return it or use default value
+-            JSON_TRY
+-            {
+-                return ptr.get_checked(this).template get<ValueType>();
+-            }
+-            JSON_INTERNAL_CATCH (out_of_range&)
+-            {
+-                return default_value;
+-            }
+-        }
+-
+-        JSON_THROW(type_error::create(306, "cannot use value() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element via JSON Pointer with default value
+-    /// @sa https://json.nlohmann.me/api/basic_json/value/
+-    /// overload for a default value of type const char*
+-    JSON_HEDLEY_NON_NULL(3)
+-    string_t value(const json_pointer& ptr, const char* default_value) const
+-    {
+-        return value(ptr, string_t(default_value));
+-    }
+-
+-    /// @brief access the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/front/
+-    reference front()
+-    {
+-        return *begin();
+-    }
+-
+-    /// @brief access the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/front/
+-    const_reference front() const
+-    {
+-        return *cbegin();
+-    }
+-
+-    /// @brief access the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/back/
+-    reference back()
+-    {
+-        auto tmp = end();
+-        --tmp;
+-        return *tmp;
+-    }
+-
+-    /// @brief access the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/back/
+-    const_reference back() const
+-    {
+-        auto tmp = cend();
+-        --tmp;
+-        return *tmp;
+-    }
+-
+-    /// @brief remove element given an iterator
+-    /// @sa https://json.nlohmann.me/api/basic_json/erase/
+-    template < class IteratorType, typename std::enable_if <
+-                   std::is_same<IteratorType, typename basic_json_t::iterator>::value ||
+-                   std::is_same<IteratorType, typename basic_json_t::const_iterator>::value, int >::type
+-               = 0 >
+-    IteratorType erase(IteratorType pos)
+-    {
+-        // make sure iterator fits the current value
+-        if (JSON_HEDLEY_UNLIKELY(this != pos.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-        }
+-
+-        IteratorType result = end();
+-
+-        switch (m_type)
+-        {
+-            case value_t::boolean:
+-            case value_t::number_float:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::string:
+-            case value_t::binary:
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!pos.m_it.primitive_iterator.is_begin()))
+-                {
+-                    JSON_THROW(invalid_iterator::create(205, "iterator out of range", *this));
+-                }
+-
+-                if (is_string())
+-                {
+-                    AllocatorType<string_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.string);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.string, 1);
+-                    m_value.string = nullptr;
+-                }
+-                else if (is_binary())
+-                {
+-                    AllocatorType<binary_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.binary);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.binary, 1);
+-                    m_value.binary = nullptr;
+-                }
+-
+-                m_type = value_t::null;
+-                assert_invariant();
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                result.m_it.object_iterator = m_value.object->erase(pos.m_it.object_iterator);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                result.m_it.array_iterator = m_value.array->erase(pos.m_it.array_iterator);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief remove elements given an iterator range
+-    /// @sa https://json.nlohmann.me/api/basic_json/erase/
+-    template < class IteratorType, typename std::enable_if <
+-                   std::is_same<IteratorType, typename basic_json_t::iterator>::value ||
+-                   std::is_same<IteratorType, typename basic_json_t::const_iterator>::value, int >::type
+-               = 0 >
+-    IteratorType erase(IteratorType first, IteratorType last)
+-    {
+-        // make sure iterator fits the current value
+-        if (JSON_HEDLEY_UNLIKELY(this != first.m_object || this != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(203, "iterators do not fit current value", *this));
+-        }
+-
+-        IteratorType result = end();
+-
+-        switch (m_type)
+-        {
+-            case value_t::boolean:
+-            case value_t::number_float:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::string:
+-            case value_t::binary:
+-            {
+-                if (JSON_HEDLEY_LIKELY(!first.m_it.primitive_iterator.is_begin()
+-                                       || !last.m_it.primitive_iterator.is_end()))
+-                {
+-                    JSON_THROW(invalid_iterator::create(204, "iterators out of range", *this));
+-                }
+-
+-                if (is_string())
+-                {
+-                    AllocatorType<string_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.string);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.string, 1);
+-                    m_value.string = nullptr;
+-                }
+-                else if (is_binary())
+-                {
+-                    AllocatorType<binary_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.binary);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.binary, 1);
+-                    m_value.binary = nullptr;
+-                }
+-
+-                m_type = value_t::null;
+-                assert_invariant();
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                result.m_it.object_iterator = m_value.object->erase(first.m_it.object_iterator,
+-                                              last.m_it.object_iterator);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                result.m_it.array_iterator = m_value.array->erase(first.m_it.array_iterator,
+-                                             last.m_it.array_iterator);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief remove element from a JSON object given a key
+-    /// @sa https://json.nlohmann.me/api/basic_json/erase/
+-    size_type erase(const typename object_t::key_type& key)
+-    {
+-        // this erase only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            return m_value.object->erase(key);
+-        }
+-
+-        JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief remove element from a JSON array given an index
+-    /// @sa https://json.nlohmann.me/api/basic_json/erase/
+-    void erase(const size_type idx)
+-    {
+-        // this erase only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(idx >= size()))
+-            {
+-                JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range", *this));
+-            }
+-
+-            m_value.array->erase(m_value.array->begin() + static_cast<difference_type>(idx));
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @}
+-
+-
+-    ////////////
+-    // lookup //
+-    ////////////
+-
+-    /// @name lookup
+-    /// @{
+-
+-    /// @brief find an element in a JSON object
+-    /// @sa https://json.nlohmann.me/api/basic_json/find/
+-    template<typename KeyT>
+-    iterator find(KeyT&& key)
+-    {
+-        auto result = end();
+-
+-        if (is_object())
+-        {
+-            result.m_it.object_iterator = m_value.object->find(std::forward<KeyT>(key));
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief find an element in a JSON object
+-    /// @sa https://json.nlohmann.me/api/basic_json/find/
+-    template<typename KeyT>
+-    const_iterator find(KeyT&& key) const
+-    {
+-        auto result = cend();
+-
+-        if (is_object())
+-        {
+-            result.m_it.object_iterator = m_value.object->find(std::forward<KeyT>(key));
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief returns the number of occurrences of a key in a JSON object
+-    /// @sa https://json.nlohmann.me/api/basic_json/count/
+-    template<typename KeyT>
+-    size_type count(KeyT&& key) const
+-    {
+-        // return 0 for all nonobject types
+-        return is_object() ? m_value.object->count(std::forward<KeyT>(key)) : 0;
+-    }
+-
+-    /// @brief check the existence of an element in a JSON object
+-    /// @sa https://json.nlohmann.me/api/basic_json/contains/
+-    template < typename KeyT, typename std::enable_if <
+-                   !std::is_same<typename std::decay<KeyT>::type, json_pointer>::value, int >::type = 0 >
+-    bool contains(KeyT && key) const
+-    {
+-        return is_object() && m_value.object->find(std::forward<KeyT>(key)) != m_value.object->end();
+-    }
+-
+-    /// @brief check the existence of an element in a JSON object given a JSON pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/contains/
+-    bool contains(const json_pointer& ptr) const
+-    {
+-        return ptr.contains(this);
+-    }
+-
+-    /// @}
+-
+-
+-    ///////////////
+-    // iterators //
+-    ///////////////
+-
+-    /// @name iterators
+-    /// @{
+-
+-    /// @brief returns an iterator to the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/begin/
+-    iterator begin() noexcept
+-    {
+-        iterator result(this);
+-        result.set_begin();
+-        return result;
+-    }
+-
+-    /// @brief returns an iterator to the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/begin/
+-    const_iterator begin() const noexcept
+-    {
+-        return cbegin();
+-    }
+-
+-    /// @brief returns a const iterator to the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/cbegin/
+-    const_iterator cbegin() const noexcept
+-    {
+-        const_iterator result(this);
+-        result.set_begin();
+-        return result;
+-    }
+-
+-    /// @brief returns an iterator to one past the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/end/
+-    iterator end() noexcept
+-    {
+-        iterator result(this);
+-        result.set_end();
+-        return result;
+-    }
+-
+-    /// @brief returns an iterator to one past the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/end/
+-    const_iterator end() const noexcept
+-    {
+-        return cend();
+-    }
+-
+-    /// @brief returns an iterator to one past the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/cend/
+-    const_iterator cend() const noexcept
+-    {
+-        const_iterator result(this);
+-        result.set_end();
+-        return result;
+-    }
+-
+-    /// @brief returns an iterator to the reverse-beginning
+-    /// @sa https://json.nlohmann.me/api/basic_json/rbegin/
+-    reverse_iterator rbegin() noexcept
+-    {
+-        return reverse_iterator(end());
+-    }
+-
+-    /// @brief returns an iterator to the reverse-beginning
+-    /// @sa https://json.nlohmann.me/api/basic_json/rbegin/
+-    const_reverse_iterator rbegin() const noexcept
+-    {
+-        return crbegin();
+-    }
+-
+-    /// @brief returns an iterator to the reverse-end
+-    /// @sa https://json.nlohmann.me/api/basic_json/rend/
+-    reverse_iterator rend() noexcept
+-    {
+-        return reverse_iterator(begin());
+-    }
+-
+-    /// @brief returns an iterator to the reverse-end
+-    /// @sa https://json.nlohmann.me/api/basic_json/rend/
+-    const_reverse_iterator rend() const noexcept
+-    {
+-        return crend();
+-    }
+-
+-    /// @brief returns a const reverse iterator to the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/crbegin/
+-    const_reverse_iterator crbegin() const noexcept
+-    {
+-        return const_reverse_iterator(cend());
+-    }
+-
+-    /// @brief returns a const reverse iterator to one before the first
+-    /// @sa https://json.nlohmann.me/api/basic_json/crend/
+-    const_reverse_iterator crend() const noexcept
+-    {
+-        return const_reverse_iterator(cbegin());
+-    }
+-
+-  public:
+-    /// @brief wrapper to access iterator member functions in range-based for
+-    /// @sa https://json.nlohmann.me/api/basic_json/items/
+-    /// @deprecated This function is deprecated since 3.1.0 and will be removed in
+-    ///             version 4.0.0 of the library. Please use @ref items() instead;
+-    ///             that is, replace `json::iterator_wrapper(j)` with `j.items()`.
+-    JSON_HEDLEY_DEPRECATED_FOR(3.1.0, items())
+-    static iteration_proxy<iterator> iterator_wrapper(reference ref) noexcept
+-    {
+-        return ref.items();
+-    }
+-
+-    /// @brief wrapper to access iterator member functions in range-based for
+-    /// @sa https://json.nlohmann.me/api/basic_json/items/
+-    /// @deprecated This function is deprecated since 3.1.0 and will be removed in
+-    ///         version 4.0.0 of the library. Please use @ref items() instead;
+-    ///         that is, replace `json::iterator_wrapper(j)` with `j.items()`.
+-    JSON_HEDLEY_DEPRECATED_FOR(3.1.0, items())
+-    static iteration_proxy<const_iterator> iterator_wrapper(const_reference ref) noexcept
+-    {
+-        return ref.items();
+-    }
+-
+-    /// @brief helper to access iterator member functions in range-based for
+-    /// @sa https://json.nlohmann.me/api/basic_json/items/
+-    iteration_proxy<iterator> items() noexcept
+-    {
+-        return iteration_proxy<iterator>(*this);
+-    }
+-
+-    /// @brief helper to access iterator member functions in range-based for
+-    /// @sa https://json.nlohmann.me/api/basic_json/items/
+-    iteration_proxy<const_iterator> items() const noexcept
+-    {
+-        return iteration_proxy<const_iterator>(*this);
+-    }
+-
+-    /// @}
+-
+-
+-    //////////////
+-    // capacity //
+-    //////////////
+-
+-    /// @name capacity
+-    /// @{
+-
+-    /// @brief checks whether the container is empty.
+-    /// @sa https://json.nlohmann.me/api/basic_json/empty/
+-    bool empty() const noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::null:
+-            {
+-                // null values are empty
+-                return true;
+-            }
+-
+-            case value_t::array:
+-            {
+-                // delegate call to array_t::empty()
+-                return m_value.array->empty();
+-            }
+-
+-            case value_t::object:
+-            {
+-                // delegate call to object_t::empty()
+-                return m_value.object->empty();
+-            }
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                // all other types are nonempty
+-                return false;
+-            }
+-        }
+-    }
+-
+-    /// @brief returns the number of elements
+-    /// @sa https://json.nlohmann.me/api/basic_json/size/
+-    size_type size() const noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::null:
+-            {
+-                // null values are empty
+-                return 0;
+-            }
+-
+-            case value_t::array:
+-            {
+-                // delegate call to array_t::size()
+-                return m_value.array->size();
+-            }
+-
+-            case value_t::object:
+-            {
+-                // delegate call to object_t::size()
+-                return m_value.object->size();
+-            }
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                // all other types have size 1
+-                return 1;
+-            }
+-        }
+-    }
+-
+-    /// @brief returns the maximum possible number of elements
+-    /// @sa https://json.nlohmann.me/api/basic_json/max_size/
+-    size_type max_size() const noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::array:
+-            {
+-                // delegate call to array_t::max_size()
+-                return m_value.array->max_size();
+-            }
+-
+-            case value_t::object:
+-            {
+-                // delegate call to object_t::max_size()
+-                return m_value.object->max_size();
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                // all other types have max_size() == size()
+-                return size();
+-            }
+-        }
+-    }
+-
+-    /// @}
+-
+-
+-    ///////////////
+-    // modifiers //
+-    ///////////////
+-
+-    /// @name modifiers
+-    /// @{
+-
+-    /// @brief clears the contents
+-    /// @sa https://json.nlohmann.me/api/basic_json/clear/
+-    void clear() noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::number_integer:
+-            {
+-                m_value.number_integer = 0;
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                m_value.number_unsigned = 0;
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                m_value.number_float = 0.0;
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                m_value.boolean = false;
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                m_value.string->clear();
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                m_value.binary->clear();
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_value.array->clear();
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                m_value.object->clear();
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/push_back/
+-    void push_back(basic_json&& val)
+-    {
+-        // push_back only works for null objects or arrays
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array())))
+-        {
+-            JSON_THROW(type_error::create(308, "cannot use push_back() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an array
+-        if (is_null())
+-        {
+-            m_type = value_t::array;
+-            m_value = value_t::array;
+-            assert_invariant();
+-        }
+-
+-        // add element to array (move semantics)
+-        const auto old_capacity = m_value.array->capacity();
+-        m_value.array->push_back(std::move(val));
+-        set_parent(m_value.array->back(), old_capacity);
+-        // if val is moved from, basic_json move constructor marks it null, so we do not call the destructor
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
+-    reference operator+=(basic_json&& val)
+-    {
+-        push_back(std::move(val));
+-        return *this;
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/push_back/
+-    void push_back(const basic_json& val)
+-    {
+-        // push_back only works for null objects or arrays
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array())))
+-        {
+-            JSON_THROW(type_error::create(308, "cannot use push_back() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an array
+-        if (is_null())
+-        {
+-            m_type = value_t::array;
+-            m_value = value_t::array;
+-            assert_invariant();
+-        }
+-
+-        // add element to array
+-        const auto old_capacity = m_value.array->capacity();
+-        m_value.array->push_back(val);
+-        set_parent(m_value.array->back(), old_capacity);
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
+-    reference operator+=(const basic_json& val)
+-    {
+-        push_back(val);
+-        return *this;
+-    }
+-
+-    /// @brief add an object to an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/push_back/
+-    void push_back(const typename object_t::value_type& val)
+-    {
+-        // push_back only works for null objects or objects
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_object())))
+-        {
+-            JSON_THROW(type_error::create(308, "cannot use push_back() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value = value_t::object;
+-            assert_invariant();
+-        }
+-
+-        // add element to object
+-        auto res = m_value.object->insert(val);
+-        set_parent(res.first->second);
+-    }
+-
+-    /// @brief add an object to an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
+-    reference operator+=(const typename object_t::value_type& val)
+-    {
+-        push_back(val);
+-        return *this;
+-    }
+-
+-    /// @brief add an object to an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/push_back/
+-    void push_back(initializer_list_t init)
+-    {
+-        if (is_object() && init.size() == 2 && (*init.begin())->is_string())
+-        {
+-            basic_json&& key = init.begin()->moved_or_copied();
+-            push_back(typename object_t::value_type(
+-                          std::move(key.get_ref<string_t&>()), (init.begin() + 1)->moved_or_copied()));
+-        }
+-        else
+-        {
+-            push_back(basic_json(init));
+-        }
+-    }
+-
+-    /// @brief add an object to an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
+-    reference operator+=(initializer_list_t init)
+-    {
+-        push_back(init);
+-        return *this;
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/emplace_back/
+-    template<class... Args>
+-    reference emplace_back(Args&& ... args)
+-    {
+-        // emplace_back only works for null objects or arrays
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array())))
+-        {
+-            JSON_THROW(type_error::create(311, "cannot use emplace_back() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an array
+-        if (is_null())
+-        {
+-            m_type = value_t::array;
+-            m_value = value_t::array;
+-            assert_invariant();
+-        }
+-
+-        // add element to array (perfect forwarding)
+-        const auto old_capacity = m_value.array->capacity();
+-        m_value.array->emplace_back(std::forward<Args>(args)...);
+-        return set_parent(m_value.array->back(), old_capacity);
+-    }
+-
+-    /// @brief add an object to an object if key does not exist
+-    /// @sa https://json.nlohmann.me/api/basic_json/emplace/
+-    template<class... Args>
+-    std::pair<iterator, bool> emplace(Args&& ... args)
+-    {
+-        // emplace only works for null objects or arrays
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_object())))
+-        {
+-            JSON_THROW(type_error::create(311, "cannot use emplace() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value = value_t::object;
+-            assert_invariant();
+-        }
+-
+-        // add element to array (perfect forwarding)
+-        auto res = m_value.object->emplace(std::forward<Args>(args)...);
+-        set_parent(res.first->second);
+-
+-        // create result iterator and set iterator to the result of emplace
+-        auto it = begin();
+-        it.m_it.object_iterator = res.first;
+-
+-        // return pair of iterator and boolean
+-        return {it, res.second};
+-    }
+-
+-    /// Helper for insertion of an iterator
+-    /// @note: This uses std::distance to support GCC 4.8,
+-    ///        see https://github.com/nlohmann/json/pull/1257
+-    template<typename... Args>
+-    iterator insert_iterator(const_iterator pos, Args&& ... args)
+-    {
+-        iterator result(this);
+-        JSON_ASSERT(m_value.array != nullptr);
+-
+-        auto insert_pos = std::distance(m_value.array->begin(), pos.m_it.array_iterator);
+-        m_value.array->insert(pos.m_it.array_iterator, std::forward<Args>(args)...);
+-        result.m_it.array_iterator = m_value.array->begin() + insert_pos;
+-
+-        // This could have been written as:
+-        // result.m_it.array_iterator = m_value.array->insert(pos.m_it.array_iterator, cnt, val);
+-        // but the return value of insert is missing in GCC 4.8, so it is written this way instead.
+-
+-        set_parents();
+-        return result;
+-    }
+-
+-    /// @brief inserts element into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, const basic_json& val)
+-    {
+-        // insert only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            // check if iterator pos fits to this JSON value
+-            if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
+-            {
+-                JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-            }
+-
+-            // insert to array and return iterator
+-            return insert_iterator(pos, val);
+-        }
+-
+-        JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief inserts element into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, basic_json&& val)
+-    {
+-        return insert(pos, val);
+-    }
+-
+-    /// @brief inserts copies of element into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, size_type cnt, const basic_json& val)
+-    {
+-        // insert only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            // check if iterator pos fits to this JSON value
+-            if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
+-            {
+-                JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-            }
+-
+-            // insert to array and return iterator
+-            return insert_iterator(pos, cnt, val);
+-        }
+-
+-        JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief inserts range of elements into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, const_iterator first, const_iterator last)
+-    {
+-        // insert only works for arrays
+-        if (JSON_HEDLEY_UNLIKELY(!is_array()))
+-        {
+-            JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-        }
+-
+-        // check if iterator pos fits to this JSON value
+-        if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
+-        {
+-            JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-        }
+-
+-        // check if range iterators belong to the same JSON object
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(210, "iterators do not fit", *this));
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object == this))
+-        {
+-            JSON_THROW(invalid_iterator::create(211, "passed iterators may not belong to container", *this));
+-        }
+-
+-        // insert to array and return iterator
+-        return insert_iterator(pos, first.m_it.array_iterator, last.m_it.array_iterator);
+-    }
+-
+-    /// @brief inserts elements from initializer list into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, initializer_list_t ilist)
+-    {
+-        // insert only works for arrays
+-        if (JSON_HEDLEY_UNLIKELY(!is_array()))
+-        {
+-            JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-        }
+-
+-        // check if iterator pos fits to this JSON value
+-        if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
+-        {
+-            JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-        }
+-
+-        // insert to array and return iterator
+-        return insert_iterator(pos, ilist.begin(), ilist.end());
+-    }
+-
+-    /// @brief inserts range of elements into object
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    void insert(const_iterator first, const_iterator last)
+-    {
+-        // insert only works for objects
+-        if (JSON_HEDLEY_UNLIKELY(!is_object()))
+-        {
+-            JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-        }
+-
+-        // check if range iterators belong to the same JSON object
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(210, "iterators do not fit", *this));
+-        }
+-
+-        // passed iterators must belong to objects
+-        if (JSON_HEDLEY_UNLIKELY(!first.m_object->is_object()))
+-        {
+-            JSON_THROW(invalid_iterator::create(202, "iterators first and last must point to objects", *this));
+-        }
+-
+-        m_value.object->insert(first.m_it.object_iterator, last.m_it.object_iterator);
+-    }
+-
+-    /// @brief updates a JSON object from another object, overwriting existing keys
+-    /// @sa https://json.nlohmann.me/api/basic_json/update/
+-    void update(const_reference j, bool merge_objects = false)
+-    {
+-        update(j.begin(), j.end(), merge_objects);
+-    }
+-
+-    /// @brief updates a JSON object from another object, overwriting existing keys
+-    /// @sa https://json.nlohmann.me/api/basic_json/update/
+-    void update(const_iterator first, const_iterator last, bool merge_objects = false)
+-    {
+-        // implicitly convert null value to an empty object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value.object = create<object_t>();
+-            assert_invariant();
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(!is_object()))
+-        {
+-            JSON_THROW(type_error::create(312, "cannot use update() with " + std::string(type_name()), *this));
+-        }
+-
+-        // check if range iterators belong to the same JSON object
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(210, "iterators do not fit", *this));
+-        }
+-
+-        // passed iterators must belong to objects
+-        if (JSON_HEDLEY_UNLIKELY(!first.m_object->is_object()))
+-        {
+-            JSON_THROW(type_error::create(312, "cannot use update() with " + std::string(first.m_object->type_name()), *first.m_object));
+-        }
+-
+-        for (auto it = first; it != last; ++it)
+-        {
+-            if (merge_objects && it.value().is_object())
+-            {
+-                auto it2 = m_value.object->find(it.key());
+-                if (it2 != m_value.object->end())
+-                {
+-                    it2->second.update(it.value(), true);
+-                    continue;
+-                }
+-            }
+-            m_value.object->operator[](it.key()) = it.value();
+-#if JSON_DIAGNOSTICS
+-            m_value.object->operator[](it.key()).m_parent = this;
+-#endif
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(reference other) noexcept (
+-        std::is_nothrow_move_constructible<value_t>::value&&
+-        std::is_nothrow_move_assignable<value_t>::value&&
+-        std::is_nothrow_move_constructible<json_value>::value&&
+-        std::is_nothrow_move_assignable<json_value>::value
+-    )
+-    {
+-        std::swap(m_type, other.m_type);
+-        std::swap(m_value, other.m_value);
+-
+-        set_parents();
+-        other.set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    friend void swap(reference left, reference right) noexcept (
+-        std::is_nothrow_move_constructible<value_t>::value&&
+-        std::is_nothrow_move_assignable<value_t>::value&&
+-        std::is_nothrow_move_constructible<json_value>::value&&
+-        std::is_nothrow_move_assignable<json_value>::value
+-    )
+-    {
+-        left.swap(right);
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(array_t& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            std::swap(*(m_value.array), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(object_t& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            std::swap(*(m_value.object), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(string_t& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for strings
+-        if (JSON_HEDLEY_LIKELY(is_string()))
+-        {
+-            std::swap(*(m_value.string), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(binary_t& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for strings
+-        if (JSON_HEDLEY_LIKELY(is_binary()))
+-        {
+-            std::swap(*(m_value.binary), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(typename binary_t::container_type& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for strings
+-        if (JSON_HEDLEY_LIKELY(is_binary()))
+-        {
+-            std::swap(*(m_value.binary), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @}
+-
+-  public:
+-    //////////////////////////////////////////
+-    // lexicographical comparison operators //
+-    //////////////////////////////////////////
+-
+-    /// @name lexicographical comparison operators
+-    /// @{
+-
+-    /// @brief comparison: equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
+-    friend bool operator==(const_reference lhs, const_reference rhs) noexcept
+-    {
+-#ifdef __GNUC__
+-#pragma GCC diagnostic push
+-#pragma GCC diagnostic ignored "-Wfloat-equal"
+-#endif
+-        const auto lhs_type = lhs.type();
+-        const auto rhs_type = rhs.type();
+-
+-        if (lhs_type == rhs_type)
+-        {
+-            switch (lhs_type)
+-            {
+-                case value_t::array:
+-                    return *lhs.m_value.array == *rhs.m_value.array;
+-
+-                case value_t::object:
+-                    return *lhs.m_value.object == *rhs.m_value.object;
+-
+-                case value_t::null:
+-                    return true;
+-
+-                case value_t::string:
+-                    return *lhs.m_value.string == *rhs.m_value.string;
+-
+-                case value_t::boolean:
+-                    return lhs.m_value.boolean == rhs.m_value.boolean;
+-
+-                case value_t::number_integer:
+-                    return lhs.m_value.number_integer == rhs.m_value.number_integer;
+-
+-                case value_t::number_unsigned:
+-                    return lhs.m_value.number_unsigned == rhs.m_value.number_unsigned;
+-
+-                case value_t::number_float:
+-                    return lhs.m_value.number_float == rhs.m_value.number_float;
+-
+-                case value_t::binary:
+-                    return *lhs.m_value.binary == *rhs.m_value.binary;
+-
+-                case value_t::discarded:
+-                default:
+-                    return false;
+-            }
+-        }
+-        else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_float)
+-        {
+-            return static_cast<number_float_t>(lhs.m_value.number_integer) == rhs.m_value.number_float;
+-        }
+-        else if (lhs_type == value_t::number_float && rhs_type == value_t::number_integer)
+-        {
+-            return lhs.m_value.number_float == static_cast<number_float_t>(rhs.m_value.number_integer);
+-        }
+-        else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_float)
+-        {
+-            return static_cast<number_float_t>(lhs.m_value.number_unsigned) == rhs.m_value.number_float;
+-        }
+-        else if (lhs_type == value_t::number_float && rhs_type == value_t::number_unsigned)
+-        {
+-            return lhs.m_value.number_float == static_cast<number_float_t>(rhs.m_value.number_unsigned);
+-        }
+-        else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_integer)
+-        {
+-            return static_cast<number_integer_t>(lhs.m_value.number_unsigned) == rhs.m_value.number_integer;
+-        }
+-        else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_unsigned)
+-        {
+-            return lhs.m_value.number_integer == static_cast<number_integer_t>(rhs.m_value.number_unsigned);
+-        }
+-
+-        return false;
+-#ifdef __GNUC__
+-#pragma GCC diagnostic pop
+-#endif
+-    }
+-
+-    /// @brief comparison: equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator==(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs == basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator==(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) == rhs;
+-    }
+-
+-    /// @brief comparison: not equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ne/
+-    friend bool operator!=(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        return !(lhs == rhs);
+-    }
+-
+-    /// @brief comparison: not equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ne/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator!=(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs != basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: not equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ne/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator!=(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) != rhs;
+-    }
+-
+-    /// @brief comparison: less than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_lt/
+-    friend bool operator<(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        const auto lhs_type = lhs.type();
+-        const auto rhs_type = rhs.type();
+-
+-        if (lhs_type == rhs_type)
+-        {
+-            switch (lhs_type)
+-            {
+-                case value_t::array:
+-                    // note parentheses are necessary, see
+-                    // https://github.com/nlohmann/json/issues/1530
+-                    return (*lhs.m_value.array) < (*rhs.m_value.array);
+-
+-                case value_t::object:
+-                    return (*lhs.m_value.object) < (*rhs.m_value.object);
+-
+-                case value_t::null:
+-                    return false;
+-
+-                case value_t::string:
+-                    return (*lhs.m_value.string) < (*rhs.m_value.string);
+-
+-                case value_t::boolean:
+-                    return (lhs.m_value.boolean) < (rhs.m_value.boolean);
+-
+-                case value_t::number_integer:
+-                    return (lhs.m_value.number_integer) < (rhs.m_value.number_integer);
+-
+-                case value_t::number_unsigned:
+-                    return (lhs.m_value.number_unsigned) < (rhs.m_value.number_unsigned);
+-
+-                case value_t::number_float:
+-                    return (lhs.m_value.number_float) < (rhs.m_value.number_float);
+-
+-                case value_t::binary:
+-                    return (*lhs.m_value.binary) < (*rhs.m_value.binary);
+-
+-                case value_t::discarded:
+-                default:
+-                    return false;
+-            }
+-        }
+-        else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_float)
+-        {
+-            return static_cast<number_float_t>(lhs.m_value.number_integer) < rhs.m_value.number_float;
+-        }
+-        else if (lhs_type == value_t::number_float && rhs_type == value_t::number_integer)
+-        {
+-            return lhs.m_value.number_float < static_cast<number_float_t>(rhs.m_value.number_integer);
+-        }
+-        else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_float)
+-        {
+-            return static_cast<number_float_t>(lhs.m_value.number_unsigned) < rhs.m_value.number_float;
+-        }
+-        else if (lhs_type == value_t::number_float && rhs_type == value_t::number_unsigned)
+-        {
+-            return lhs.m_value.number_float < static_cast<number_float_t>(rhs.m_value.number_unsigned);
+-        }
+-        else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_unsigned)
+-        {
+-            return lhs.m_value.number_integer < static_cast<number_integer_t>(rhs.m_value.number_unsigned);
+-        }
+-        else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_integer)
+-        {
+-            return static_cast<number_integer_t>(lhs.m_value.number_unsigned) < rhs.m_value.number_integer;
+-        }
+-
+-        // We only reach this line if we cannot compare values. In that case,
+-        // we compare types. Note we have to call the operator explicitly,
+-        // because MSVC has problems otherwise.
+-        return operator<(lhs_type, rhs_type);
+-    }
+-
+-    /// @brief comparison: less than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_lt/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator<(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs < basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: less than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_lt/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator<(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) < rhs;
+-    }
+-
+-    /// @brief comparison: less than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_le/
+-    friend bool operator<=(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        return !(rhs < lhs);
+-    }
+-
+-    /// @brief comparison: less than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_le/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator<=(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs <= basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: less than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_le/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator<=(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) <= rhs;
+-    }
+-
+-    /// @brief comparison: greater than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gt/
+-    friend bool operator>(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        return !(lhs <= rhs);
+-    }
+-
+-    /// @brief comparison: greater than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gt/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator>(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs > basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: greater than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gt/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator>(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) > rhs;
+-    }
+-
+-    /// @brief comparison: greater than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ge/
+-    friend bool operator>=(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        return !(lhs < rhs);
+-    }
+-
+-    /// @brief comparison: greater than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ge/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator>=(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs >= basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: greater than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ge/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator>=(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) >= rhs;
+-    }
+-
+-    /// @}
+-
+-    ///////////////////
+-    // serialization //
+-    ///////////////////
+-
+-    /// @name serialization
+-    /// @{
+-#ifndef JSON_NO_IO
+-    /// @brief serialize to stream
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ltlt/
+-    friend std::ostream& operator<<(std::ostream& o, const basic_json& j)
+-    {
+-        // read width member and use it as indentation parameter if nonzero
+-        const bool pretty_print = o.width() > 0;
+-        const auto indentation = pretty_print ? o.width() : 0;
+-
+-        // reset width to 0 for subsequent calls to this stream
+-        o.width(0);
+-
+-        // do the actual serialization
+-        serializer s(detail::output_adapter<char>(o), o.fill());
+-        s.dump(j, pretty_print, false, static_cast<unsigned int>(indentation));
+-        return o;
+-    }
+-
+-    /// @brief serialize to stream
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ltlt/
+-    /// @deprecated This function is deprecated since 3.0.0 and will be removed in
+-    ///             version 4.0.0 of the library. Please use
+-    ///             operator<<(std::ostream&, const basic_json&) instead; that is,
+-    ///             replace calls like `j >> o;` with `o << j;`.
+-    JSON_HEDLEY_DEPRECATED_FOR(3.0.0, operator<<(std::ostream&, const basic_json&))
+-    friend std::ostream& operator>>(const basic_json& j, std::ostream& o)
+-    {
+-        return o << j;
+-    }
+-#endif  // JSON_NO_IO
+-    /// @}
+-
+-
+-    /////////////////////
+-    // deserialization //
+-    /////////////////////
+-
+-    /// @name deserialization
+-    /// @{
+-
+-    /// @brief deserialize from a compatible input
+-    /// @sa https://json.nlohmann.me/api/basic_json/parse/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json parse(InputType&& i,
+-                            const parser_callback_t cb = nullptr,
+-                            const bool allow_exceptions = true,
+-                            const bool ignore_comments = false)
+-    {
+-        basic_json result;
+-        parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result);
+-        return result;
+-    }
+-
+-    /// @brief deserialize from a pair of character iterators
+-    /// @sa https://json.nlohmann.me/api/basic_json/parse/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json parse(IteratorType first,
+-                            IteratorType last,
+-                            const parser_callback_t cb = nullptr,
+-                            const bool allow_exceptions = true,
+-                            const bool ignore_comments = false)
+-    {
+-        basic_json result;
+-        parser(detail::input_adapter(std::move(first), std::move(last)), cb, allow_exceptions, ignore_comments).parse(true, result);
+-        return result;
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, parse(ptr, ptr + len))
+-    static basic_json parse(detail::span_input_adapter&& i,
+-                            const parser_callback_t cb = nullptr,
+-                            const bool allow_exceptions = true,
+-                            const bool ignore_comments = false)
+-    {
+-        basic_json result;
+-        parser(i.get(), cb, allow_exceptions, ignore_comments).parse(true, result);
+-        return result;
+-    }
+-
+-    /// @brief check if the input is valid JSON
+-    /// @sa https://json.nlohmann.me/api/basic_json/accept/
+-    template<typename InputType>
+-    static bool accept(InputType&& i,
+-                       const bool ignore_comments = false)
+-    {
+-        return parser(detail::input_adapter(std::forward<InputType>(i)), nullptr, false, ignore_comments).accept(true);
+-    }
+-
+-    /// @brief check if the input is valid JSON
+-    /// @sa https://json.nlohmann.me/api/basic_json/accept/
+-    template<typename IteratorType>
+-    static bool accept(IteratorType first, IteratorType last,
+-                       const bool ignore_comments = false)
+-    {
+-        return parser(detail::input_adapter(std::move(first), std::move(last)), nullptr, false, ignore_comments).accept(true);
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, accept(ptr, ptr + len))
+-    static bool accept(detail::span_input_adapter&& i,
+-                       const bool ignore_comments = false)
+-    {
+-        return parser(i.get(), nullptr, false, ignore_comments).accept(true);
+-    }
+-
+-    /// @brief generate SAX events
+-    /// @sa https://json.nlohmann.me/api/basic_json/sax_parse/
+-    template <typename InputType, typename SAX>
+-    JSON_HEDLEY_NON_NULL(2)
+-    static bool sax_parse(InputType&& i, SAX* sax,
+-                          input_format_t format = input_format_t::json,
+-                          const bool strict = true,
+-                          const bool ignore_comments = false)
+-    {
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        return format == input_format_t::json
+-               ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
+-               : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict);
+-    }
+-
+-    /// @brief generate SAX events
+-    /// @sa https://json.nlohmann.me/api/basic_json/sax_parse/
+-    template<class IteratorType, class SAX>
+-    JSON_HEDLEY_NON_NULL(3)
+-    static bool sax_parse(IteratorType first, IteratorType last, SAX* sax,
+-                          input_format_t format = input_format_t::json,
+-                          const bool strict = true,
+-                          const bool ignore_comments = false)
+-    {
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        return format == input_format_t::json
+-               ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
+-               : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict);
+-    }
+-
+-    /// @brief generate SAX events
+-    /// @sa https://json.nlohmann.me/api/basic_json/sax_parse/
+-    /// @deprecated This function is deprecated since 3.8.0 and will be removed in
+-    ///             version 4.0.0 of the library. Please use
+-    ///             sax_parse(ptr, ptr + len) instead.
+-    template <typename SAX>
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, sax_parse(ptr, ptr + len, ...))
+-    JSON_HEDLEY_NON_NULL(2)
+-    static bool sax_parse(detail::span_input_adapter&& i, SAX* sax,
+-                          input_format_t format = input_format_t::json,
+-                          const bool strict = true,
+-                          const bool ignore_comments = false)
+-    {
+-        auto ia = i.get();
+-        return format == input_format_t::json
+-               // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-               ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
+-               // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-               : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict);
+-    }
+-#ifndef JSON_NO_IO
+-    /// @brief deserialize from stream
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gtgt/
+-    /// @deprecated This stream operator is deprecated since 3.0.0 and will be removed in
+-    ///             version 4.0.0 of the library. Please use
+-    ///             operator>>(std::istream&, basic_json&) instead; that is,
+-    ///             replace calls like `j << i;` with `i >> j;`.
+-    JSON_HEDLEY_DEPRECATED_FOR(3.0.0, operator>>(std::istream&, basic_json&))
+-    friend std::istream& operator<<(basic_json& j, std::istream& i)
+-    {
+-        return operator>>(i, j);
+-    }
+-
+-    /// @brief deserialize from stream
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gtgt/
+-    friend std::istream& operator>>(std::istream& i, basic_json& j)
+-    {
+-        parser(detail::input_adapter(i)).parse(false, j);
+-        return i;
+-    }
+-#endif  // JSON_NO_IO
+-    /// @}
+-
+-    ///////////////////////////
+-    // convenience functions //
+-    ///////////////////////////
+-
+-    /// @brief return the type as string
+-    /// @sa https://json.nlohmann.me/api/basic_json/type_name/
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    const char* type_name() const noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::null:
+-                return "null";
+-            case value_t::object:
+-                return "object";
+-            case value_t::array:
+-                return "array";
+-            case value_t::string:
+-                return "string";
+-            case value_t::boolean:
+-                return "boolean";
+-            case value_t::binary:
+-                return "binary";
+-            case value_t::discarded:
+-                return "discarded";
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            default:
+-                return "number";
+-        }
+-    }
+-
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    //////////////////////
+-    // member variables //
+-    //////////////////////
+-
+-    /// the type of the current element
+-    value_t m_type = value_t::null;
+-
+-    /// the value of the current element
+-    json_value m_value = {};
+-
+-#if JSON_DIAGNOSTICS
+-    /// a pointer to a parent value (for debugging purposes)
+-    basic_json* m_parent = nullptr;
+-#endif
+-
+-    //////////////////////////////////////////
+-    // binary serialization/deserialization //
+-    //////////////////////////////////////////
+-
+-    /// @name binary serialization/deserialization support
+-    /// @{
+-
+-  public:
+-    /// @brief create a CBOR serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
+-    static std::vector<std::uint8_t> to_cbor(const basic_json& j)
+-    {
+-        std::vector<std::uint8_t> result;
+-        to_cbor(j, result);
+-        return result;
+-    }
+-
+-    /// @brief create a CBOR serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
+-    static void to_cbor(const basic_json& j, detail::output_adapter<std::uint8_t> o)
+-    {
+-        binary_writer<std::uint8_t>(o).write_cbor(j);
+-    }
+-
+-    /// @brief create a CBOR serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
+-    static void to_cbor(const basic_json& j, detail::output_adapter<char> o)
+-    {
+-        binary_writer<char>(o).write_cbor(j);
+-    }
+-
+-    /// @brief create a MessagePack serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_msgpack/
+-    static std::vector<std::uint8_t> to_msgpack(const basic_json& j)
+-    {
+-        std::vector<std::uint8_t> result;
+-        to_msgpack(j, result);
+-        return result;
+-    }
+-
+-    /// @brief create a MessagePack serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_msgpack/
+-    static void to_msgpack(const basic_json& j, detail::output_adapter<std::uint8_t> o)
+-    {
+-        binary_writer<std::uint8_t>(o).write_msgpack(j);
+-    }
+-
+-    /// @brief create a MessagePack serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_msgpack/
+-    static void to_msgpack(const basic_json& j, detail::output_adapter<char> o)
+-    {
+-        binary_writer<char>(o).write_msgpack(j);
+-    }
+-
+-    /// @brief create a UBJSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_ubjson/
+-    static std::vector<std::uint8_t> to_ubjson(const basic_json& j,
+-            const bool use_size = false,
+-            const bool use_type = false)
+-    {
+-        std::vector<std::uint8_t> result;
+-        to_ubjson(j, result, use_size, use_type);
+-        return result;
+-    }
+-
+-    /// @brief create a UBJSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_ubjson/
+-    static void to_ubjson(const basic_json& j, detail::output_adapter<std::uint8_t> o,
+-                          const bool use_size = false, const bool use_type = false)
+-    {
+-        binary_writer<std::uint8_t>(o).write_ubjson(j, use_size, use_type);
+-    }
+-
+-    /// @brief create a UBJSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_ubjson/
+-    static void to_ubjson(const basic_json& j, detail::output_adapter<char> o,
+-                          const bool use_size = false, const bool use_type = false)
+-    {
+-        binary_writer<char>(o).write_ubjson(j, use_size, use_type);
+-    }
+-
+-    /// @brief create a BSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_bson/
+-    static std::vector<std::uint8_t> to_bson(const basic_json& j)
+-    {
+-        std::vector<std::uint8_t> result;
+-        to_bson(j, result);
+-        return result;
+-    }
+-
+-    /// @brief create a BSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_bson/
+-    static void to_bson(const basic_json& j, detail::output_adapter<std::uint8_t> o)
+-    {
+-        binary_writer<std::uint8_t>(o).write_bson(j);
+-    }
+-
+-    /// @brief create a BSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_bson/
+-    static void to_bson(const basic_json& j, detail::output_adapter<char> o)
+-    {
+-        binary_writer<char>(o).write_bson(j);
+-    }
+-
+-    /// @brief create a JSON value from an input in CBOR format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_cbor/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_cbor(InputType&& i,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true,
+-                                const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, strict, tag_handler);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in CBOR format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_cbor/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_cbor(IteratorType first, IteratorType last,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true,
+-                                const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, strict, tag_handler);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    template<typename T>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_cbor(ptr, ptr + len))
+-    static basic_json from_cbor(const T* ptr, std::size_t len,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true,
+-                                const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        return from_cbor(ptr, ptr + len, strict, allow_exceptions, tag_handler);
+-    }
+-
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_cbor(ptr, ptr + len))
+-    static basic_json from_cbor(detail::span_input_adapter&& i,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true,
+-                                const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = i.get();
+-        // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, strict, tag_handler);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in MessagePack format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_msgpack/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_msgpack(InputType&& i,
+-                                   const bool strict = true,
+-                                   const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::msgpack, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in MessagePack format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_msgpack/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_msgpack(IteratorType first, IteratorType last,
+-                                   const bool strict = true,
+-                                   const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::msgpack, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    template<typename T>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_msgpack(ptr, ptr + len))
+-    static basic_json from_msgpack(const T* ptr, std::size_t len,
+-                                   const bool strict = true,
+-                                   const bool allow_exceptions = true)
+-    {
+-        return from_msgpack(ptr, ptr + len, strict, allow_exceptions);
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_msgpack(ptr, ptr + len))
+-    static basic_json from_msgpack(detail::span_input_adapter&& i,
+-                                   const bool strict = true,
+-                                   const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = i.get();
+-        // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::msgpack, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in UBJSON format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_ubjson/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_ubjson(InputType&& i,
+-                                  const bool strict = true,
+-                                  const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::ubjson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in UBJSON format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_ubjson/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_ubjson(IteratorType first, IteratorType last,
+-                                  const bool strict = true,
+-                                  const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::ubjson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    template<typename T>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_ubjson(ptr, ptr + len))
+-    static basic_json from_ubjson(const T* ptr, std::size_t len,
+-                                  const bool strict = true,
+-                                  const bool allow_exceptions = true)
+-    {
+-        return from_ubjson(ptr, ptr + len, strict, allow_exceptions);
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_ubjson(ptr, ptr + len))
+-    static basic_json from_ubjson(detail::span_input_adapter&& i,
+-                                  const bool strict = true,
+-                                  const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = i.get();
+-        // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::ubjson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in BSON format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_bson/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_bson(InputType&& i,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::bson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in BSON format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_bson/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_bson(IteratorType first, IteratorType last,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::bson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    template<typename T>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_bson(ptr, ptr + len))
+-    static basic_json from_bson(const T* ptr, std::size_t len,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true)
+-    {
+-        return from_bson(ptr, ptr + len, strict, allow_exceptions);
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_bson(ptr, ptr + len))
+-    static basic_json from_bson(detail::span_input_adapter&& i,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = i.get();
+-        // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::bson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-    /// @}
+-
+-    //////////////////////////
+-    // JSON Pointer support //
+-    //////////////////////////
+-
+-    /// @name JSON Pointer functions
+-    /// @{
+-
+-    /// @brief access specified element via JSON Pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    reference operator[](const json_pointer& ptr)
+-    {
+-        return ptr.get_unchecked(this);
+-    }
+-
+-    /// @brief access specified element via JSON Pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    const_reference operator[](const json_pointer& ptr) const
+-    {
+-        return ptr.get_unchecked(this);
+-    }
+-
+-    /// @brief access specified element via JSON Pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    reference at(const json_pointer& ptr)
+-    {
+-        return ptr.get_checked(this);
+-    }
+-
+-    /// @brief access specified element via JSON Pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    const_reference at(const json_pointer& ptr) const
+-    {
+-        return ptr.get_checked(this);
+-    }
+-
+-    /// @brief return flattened JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/flatten/
+-    basic_json flatten() const
+-    {
+-        basic_json result(value_t::object);
+-        json_pointer::flatten("", *this, result);
+-        return result;
+-    }
+-
+-    /// @brief unflatten a previously flattened JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/unflatten/
+-    basic_json unflatten() const
+-    {
+-        return json_pointer::unflatten(*this);
+-    }
+-
+-    /// @}
+-
+-    //////////////////////////
+-    // JSON Patch functions //
+-    //////////////////////////
+-
+-    /// @name JSON Patch functions
+-    /// @{
+-
+-    /// @brief applies a JSON patch
+-    /// @sa https://json.nlohmann.me/api/basic_json/patch/
+-    basic_json patch(const basic_json& json_patch) const
+-    {
+-        // make a working copy to apply the patch to
+-        basic_json result = *this;
+-
+-        // the valid JSON Patch operations
+-        enum class patch_operations {add, remove, replace, move, copy, test, invalid};
+-
+-        const auto get_op = [](const std::string & op)
+-        {
+-            if (op == "add")
+-            {
+-                return patch_operations::add;
+-            }
+-            if (op == "remove")
+-            {
+-                return patch_operations::remove;
+-            }
+-            if (op == "replace")
+-            {
+-                return patch_operations::replace;
+-            }
+-            if (op == "move")
+-            {
+-                return patch_operations::move;
+-            }
+-            if (op == "copy")
+-            {
+-                return patch_operations::copy;
+-            }
+-            if (op == "test")
+-            {
+-                return patch_operations::test;
+-            }
+-
+-            return patch_operations::invalid;
+-        };
+-
+-        // wrapper for "add" operation; add value at ptr
+-        const auto operation_add = [&result](json_pointer & ptr, basic_json val)
+-        {
+-            // adding to the root of the target document means replacing it
+-            if (ptr.empty())
+-            {
+-                result = val;
+-                return;
+-            }
+-
+-            // make sure the top element of the pointer exists
+-            json_pointer top_pointer = ptr.top();
+-            if (top_pointer != ptr)
+-            {
+-                result.at(top_pointer);
+-            }
+-
+-            // get reference to parent of JSON pointer ptr
+-            const auto last_path = ptr.back();
+-            ptr.pop_back();
+-            basic_json& parent = result[ptr];
+-
+-            switch (parent.m_type)
+-            {
+-                case value_t::null:
+-                case value_t::object:
+-                {
+-                    // use operator[] to add value
+-                    parent[last_path] = val;
+-                    break;
+-                }
+-
+-                case value_t::array:
+-                {
+-                    if (last_path == "-")
+-                    {
+-                        // special case: append to back
+-                        parent.push_back(val);
+-                    }
+-                    else
+-                    {
+-                        const auto idx = json_pointer::array_index(last_path);
+-                        if (JSON_HEDLEY_UNLIKELY(idx > parent.size()))
+-                        {
+-                            // avoid undefined behavior
+-                            JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range", parent));
+-                        }
+-
+-                        // default case: insert add offset
+-                        parent.insert(parent.begin() + static_cast<difference_type>(idx), val);
+-                    }
+-                    break;
+-                }
+-
+-                // if there exists a parent it cannot be primitive
+-                case value_t::string: // LCOV_EXCL_LINE
+-                case value_t::boolean: // LCOV_EXCL_LINE
+-                case value_t::number_integer: // LCOV_EXCL_LINE
+-                case value_t::number_unsigned: // LCOV_EXCL_LINE
+-                case value_t::number_float: // LCOV_EXCL_LINE
+-                case value_t::binary: // LCOV_EXCL_LINE
+-                case value_t::discarded: // LCOV_EXCL_LINE
+-                default:            // LCOV_EXCL_LINE
+-                    JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-            }
+-        };
+-
+-        // wrapper for "remove" operation; remove value at ptr
+-        const auto operation_remove = [this, &result](json_pointer & ptr)
+-        {
+-            // get reference to parent of JSON pointer ptr
+-            const auto last_path = ptr.back();
+-            ptr.pop_back();
+-            basic_json& parent = result.at(ptr);
+-
+-            // remove child
+-            if (parent.is_object())
+-            {
+-                // perform range check
+-                auto it = parent.find(last_path);
+-                if (JSON_HEDLEY_LIKELY(it != parent.end()))
+-                {
+-                    parent.erase(it);
+-                }
+-                else
+-                {
+-                    JSON_THROW(out_of_range::create(403, "key '" + last_path + "' not found", *this));
+-                }
+-            }
+-            else if (parent.is_array())
+-            {
+-                // note erase performs range check
+-                parent.erase(json_pointer::array_index(last_path));
+-            }
+-        };
+-
+-        // type check: top level value must be an array
+-        if (JSON_HEDLEY_UNLIKELY(!json_patch.is_array()))
+-        {
+-            JSON_THROW(parse_error::create(104, 0, "JSON patch must be an array of objects", json_patch));
+-        }
+-
+-        // iterate and apply the operations
+-        for (const auto& val : json_patch)
+-        {
+-            // wrapper to get a value for an operation
+-            const auto get_value = [&val](const std::string & op,
+-                                          const std::string & member,
+-                                          bool string_type) -> basic_json &
+-            {
+-                // find value
+-                auto it = val.m_value.object->find(member);
+-
+-                // context-sensitive error message
+-                const auto error_msg = (op == "op") ? "operation" : "operation '" + op + "'";
+-
+-                // check if desired value is present
+-                if (JSON_HEDLEY_UNLIKELY(it == val.m_value.object->end()))
+-                {
+-                    // NOLINTNEXTLINE(performance-inefficient-string-concatenation)
+-                    JSON_THROW(parse_error::create(105, 0, error_msg + " must have member '" + member + "'", val));
+-                }
+-
+-                // check if result is of type string
+-                if (JSON_HEDLEY_UNLIKELY(string_type && !it->second.is_string()))
+-                {
+-                    // NOLINTNEXTLINE(performance-inefficient-string-concatenation)
+-                    JSON_THROW(parse_error::create(105, 0, error_msg + " must have string member '" + member + "'", val));
+-                }
+-
+-                // no error: return value
+-                return it->second;
+-            };
+-
+-            // type check: every element of the array must be an object
+-            if (JSON_HEDLEY_UNLIKELY(!val.is_object()))
+-            {
+-                JSON_THROW(parse_error::create(104, 0, "JSON patch must be an array of objects", val));
+-            }
+-
+-            // collect mandatory members
+-            const auto op = get_value("op", "op", true).template get<std::string>();
+-            const auto path = get_value(op, "path", true).template get<std::string>();
+-            json_pointer ptr(path);
+-
+-            switch (get_op(op))
+-            {
+-                case patch_operations::add:
+-                {
+-                    operation_add(ptr, get_value("add", "value", false));
+-                    break;
+-                }
+-
+-                case patch_operations::remove:
+-                {
+-                    operation_remove(ptr);
+-                    break;
+-                }
+-
+-                case patch_operations::replace:
+-                {
+-                    // the "path" location must exist - use at()
+-                    result.at(ptr) = get_value("replace", "value", false);
+-                    break;
+-                }
+-
+-                case patch_operations::move:
+-                {
+-                    const auto from_path = get_value("move", "from", true).template get<std::string>();
+-                    json_pointer from_ptr(from_path);
+-
+-                    // the "from" location must exist - use at()
+-                    basic_json v = result.at(from_ptr);
+-
+-                    // The move operation is functionally identical to a
+-                    // "remove" operation on the "from" location, followed
+-                    // immediately by an "add" operation at the target
+-                    // location with the value that was just removed.
+-                    operation_remove(from_ptr);
+-                    operation_add(ptr, v);
+-                    break;
+-                }
+-
+-                case patch_operations::copy:
+-                {
+-                    const auto from_path = get_value("copy", "from", true).template get<std::string>();
+-                    const json_pointer from_ptr(from_path);
+-
+-                    // the "from" location must exist - use at()
+-                    basic_json v = result.at(from_ptr);
+-
+-                    // The copy is functionally identical to an "add"
+-                    // operation at the target location using the value
+-                    // specified in the "from" member.
+-                    operation_add(ptr, v);
+-                    break;
+-                }
+-
+-                case patch_operations::test:
+-                {
+-                    bool success = false;
+-                    JSON_TRY
+-                    {
+-                        // check if "value" matches the one at "path"
+-                        // the "path" location must exist - use at()
+-                        success = (result.at(ptr) == get_value("test", "value", false));
+-                    }
+-                    JSON_INTERNAL_CATCH (out_of_range&)
+-                    {
+-                        // ignore out of range errors: success remains false
+-                    }
+-
+-                    // throw an exception if test fails
+-                    if (JSON_HEDLEY_UNLIKELY(!success))
+-                    {
+-                        JSON_THROW(other_error::create(501, "unsuccessful: " + val.dump(), val));
+-                    }
+-
+-                    break;
+-                }
+-
+-                case patch_operations::invalid:
+-                default:
+-                {
+-                    // op must be "add", "remove", "replace", "move", "copy", or
+-                    // "test"
+-                    JSON_THROW(parse_error::create(105, 0, "operation value '" + op + "' is invalid", val));
+-                }
+-            }
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief creates a diff as a JSON patch
+-    /// @sa https://json.nlohmann.me/api/basic_json/diff/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json diff(const basic_json& source, const basic_json& target,
+-                           const std::string& path = "")
+-    {
+-        // the patch
+-        basic_json result(value_t::array);
+-
+-        // if the values are the same, return empty patch
+-        if (source == target)
+-        {
+-            return result;
+-        }
+-
+-        if (source.type() != target.type())
+-        {
+-            // different types: replace value
+-            result.push_back(
+-            {
+-                {"op", "replace"}, {"path", path}, {"value", target}
+-            });
+-            return result;
+-        }
+-
+-        switch (source.type())
+-        {
+-            case value_t::array:
+-            {
+-                // first pass: traverse common elements
+-                std::size_t i = 0;
+-                while (i < source.size() && i < target.size())
+-                {
+-                    // recursive call to compare array values at index i
+-                    auto temp_diff = diff(source[i], target[i], path + "/" + std::to_string(i));
+-                    result.insert(result.end(), temp_diff.begin(), temp_diff.end());
+-                    ++i;
+-                }
+-
+-                // We now reached the end of at least one array
+-                // in a second pass, traverse the remaining elements
+-
+-                // remove my remaining elements
+-                const auto end_index = static_cast<difference_type>(result.size());
+-                while (i < source.size())
+-                {
+-                    // add operations in reverse order to avoid invalid
+-                    // indices
+-                    result.insert(result.begin() + end_index, object(
+-                    {
+-                        {"op", "remove"},
+-                        {"path", path + "/" + std::to_string(i)}
+-                    }));
+-                    ++i;
+-                }
+-
+-                // add other remaining elements
+-                while (i < target.size())
+-                {
+-                    result.push_back(
+-                    {
+-                        {"op", "add"},
+-                        {"path", path + "/-"},
+-                        {"value", target[i]}
+-                    });
+-                    ++i;
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                // first pass: traverse this object's elements
+-                for (auto it = source.cbegin(); it != source.cend(); ++it)
+-                {
+-                    // escape the key name to be used in a JSON patch
+-                    const auto path_key = path + "/" + detail::escape(it.key());
+-
+-                    if (target.find(it.key()) != target.end())
+-                    {
+-                        // recursive call to compare object values at key it
+-                        auto temp_diff = diff(it.value(), target[it.key()], path_key);
+-                        result.insert(result.end(), temp_diff.begin(), temp_diff.end());
+-                    }
+-                    else
+-                    {
+-                        // found a key that is not in o -> remove it
+-                        result.push_back(object(
+-                        {
+-                            {"op", "remove"}, {"path", path_key}
+-                        }));
+-                    }
+-                }
+-
+-                // second pass: traverse other object's elements
+-                for (auto it = target.cbegin(); it != target.cend(); ++it)
+-                {
+-                    if (source.find(it.key()) == source.end())
+-                    {
+-                        // found a key that is not in this -> add it
+-                        const auto path_key = path + "/" + detail::escape(it.key());
+-                        result.push_back(
+-                        {
+-                            {"op", "add"}, {"path", path_key},
+-                            {"value", it.value()}
+-                        });
+-                    }
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                // both primitive type: replace value
+-                result.push_back(
+-                {
+-                    {"op", "replace"}, {"path", path}, {"value", target}
+-                });
+-                break;
+-            }
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @}
+-
+-    ////////////////////////////////
+-    // JSON Merge Patch functions //
+-    ////////////////////////////////
+-
+-    /// @name JSON Merge Patch functions
+-    /// @{
+-
+-    /// @brief applies a JSON Merge Patch
+-    /// @sa https://json.nlohmann.me/api/basic_json/merge_patch/
+-    void merge_patch(const basic_json& apply_patch)
+-    {
+-        if (apply_patch.is_object())
+-        {
+-            if (!is_object())
+-            {
+-                *this = object();
+-            }
+-            for (auto it = apply_patch.begin(); it != apply_patch.end(); ++it)
+-            {
+-                if (it.value().is_null())
+-                {
+-                    erase(it.key());
+-                }
+-                else
+-                {
+-                    operator[](it.key()).merge_patch(it.value());
+-                }
+-            }
+-        }
+-        else
+-        {
+-            *this = apply_patch;
+-        }
+-    }
+-
+-    /// @}
+-};
+-
+-/// @brief user-defined to_string function for JSON values
+-/// @sa https://json.nlohmann.me/api/basic_json/to_string/
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-std::string to_string(const NLOHMANN_BASIC_JSON_TPL& j)
+-{
+-    return j.dump();
+-}
+-
+-} // namespace nlohmann
+-
+-///////////////////////
+-// nonmember support //
+-///////////////////////
+-
+-namespace std // NOLINT(cert-dcl58-cpp)
+-{
+-
+-/// @brief hash value for JSON objects
+-/// @sa https://json.nlohmann.me/api/basic_json/std_hash/
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-struct hash<nlohmann::NLOHMANN_BASIC_JSON_TPL>
+-{
+-    std::size_t operator()(const nlohmann::NLOHMANN_BASIC_JSON_TPL& j) const
+-    {
+-        return nlohmann::detail::hash(j);
+-    }
+-};
+-
+-// specialization for std::less<value_t>
+-template<>
+-struct less< ::nlohmann::detail::value_t> // do not remove the space after '<', see https://github.com/nlohmann/json/pull/679
+-{
+-    /*!
+-    @brief compare two value_t enum values
+-    @since version 3.0.0
+-    */
+-    bool operator()(nlohmann::detail::value_t lhs,
+-                    nlohmann::detail::value_t rhs) const noexcept
+-    {
+-        return nlohmann::detail::operator<(lhs, rhs);
+-    }
+-};
+-
+-// C++20 prohibit function specialization in the std namespace.
+-#ifndef JSON_HAS_CPP_20
+-
+-/// @brief exchanges the values of two JSON objects
+-/// @sa https://json.nlohmann.me/api/basic_json/std_swap/
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-inline void swap(nlohmann::NLOHMANN_BASIC_JSON_TPL& j1, nlohmann::NLOHMANN_BASIC_JSON_TPL& j2) noexcept(  // NOLINT(readability-inconsistent-declaration-parameter-name)
+-    is_nothrow_move_constructible<nlohmann::NLOHMANN_BASIC_JSON_TPL>::value&&                          // NOLINT(misc-redundant-expression)
+-    is_nothrow_move_assignable<nlohmann::NLOHMANN_BASIC_JSON_TPL>::value)
+-{
+-    j1.swap(j2);
+-}
+-
+-#endif
+-
+-} // namespace std
+-
+-/// @brief user-defined string literal for JSON values
+-/// @sa https://json.nlohmann.me/api/basic_json/operator_literal_json/
+-JSON_HEDLEY_NON_NULL(1)
+-inline nlohmann::json operator "" _json(const char* s, std::size_t n)
+-{
+-    return nlohmann::json::parse(s, s + n);
+-}
+-
+-/// @brief user-defined string literal for JSON pointer
+-/// @sa https://json.nlohmann.me/api/basic_json/operator_literal_json_pointer/
+-JSON_HEDLEY_NON_NULL(1)
+-inline nlohmann::json::json_pointer operator "" _json_pointer(const char* s, std::size_t n)
+-{
+-    return nlohmann::json::json_pointer(std::string(s, n));
+-}
+-
+-// #include <nlohmann/detail/macro_unscope.hpp>
+-
+-
+-// restore clang diagnostic settings
+-#if defined(__clang__)
+-    #pragma clang diagnostic pop
+-#endif
+-
+-// clean up
+-#undef JSON_ASSERT
+-#undef JSON_INTERNAL_CATCH
+-#undef JSON_CATCH
+-#undef JSON_THROW
+-#undef JSON_TRY
+-#undef JSON_PRIVATE_UNLESS_TESTED
+-#undef JSON_HAS_CPP_11
+-#undef JSON_HAS_CPP_14
+-#undef JSON_HAS_CPP_17
+-#undef JSON_HAS_CPP_20
+-#undef JSON_HAS_FILESYSTEM
+-#undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-#undef NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-#undef NLOHMANN_BASIC_JSON_TPL
+-#undef JSON_EXPLICIT
+-#undef NLOHMANN_CAN_CALL_STD_FUNC_IMPL
+-
+-// #include <nlohmann/thirdparty/hedley/hedley_undef.hpp>
+-
+-
+-#undef JSON_HEDLEY_ALWAYS_INLINE
+-#undef JSON_HEDLEY_ARM_VERSION
+-#undef JSON_HEDLEY_ARM_VERSION_CHECK
+-#undef JSON_HEDLEY_ARRAY_PARAM
+-#undef JSON_HEDLEY_ASSUME
+-#undef JSON_HEDLEY_BEGIN_C_DECLS
+-#undef JSON_HEDLEY_CLANG_HAS_ATTRIBUTE
+-#undef JSON_HEDLEY_CLANG_HAS_BUILTIN
+-#undef JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE
+-#undef JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE
+-#undef JSON_HEDLEY_CLANG_HAS_EXTENSION
+-#undef JSON_HEDLEY_CLANG_HAS_FEATURE
+-#undef JSON_HEDLEY_CLANG_HAS_WARNING
+-#undef JSON_HEDLEY_COMPCERT_VERSION
+-#undef JSON_HEDLEY_COMPCERT_VERSION_CHECK
+-#undef JSON_HEDLEY_CONCAT
+-#undef JSON_HEDLEY_CONCAT3
+-#undef JSON_HEDLEY_CONCAT3_EX
+-#undef JSON_HEDLEY_CONCAT_EX
+-#undef JSON_HEDLEY_CONST
+-#undef JSON_HEDLEY_CONSTEXPR
+-#undef JSON_HEDLEY_CONST_CAST
+-#undef JSON_HEDLEY_CPP_CAST
+-#undef JSON_HEDLEY_CRAY_VERSION
+-#undef JSON_HEDLEY_CRAY_VERSION_CHECK
+-#undef JSON_HEDLEY_C_DECL
+-#undef JSON_HEDLEY_DEPRECATED
+-#undef JSON_HEDLEY_DEPRECATED_FOR
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION
+-#undef JSON_HEDLEY_DIAGNOSTIC_POP
+-#undef JSON_HEDLEY_DIAGNOSTIC_PUSH
+-#undef JSON_HEDLEY_DMC_VERSION
+-#undef JSON_HEDLEY_DMC_VERSION_CHECK
+-#undef JSON_HEDLEY_EMPTY_BASES
+-#undef JSON_HEDLEY_EMSCRIPTEN_VERSION
+-#undef JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK
+-#undef JSON_HEDLEY_END_C_DECLS
+-#undef JSON_HEDLEY_FLAGS
+-#undef JSON_HEDLEY_FLAGS_CAST
+-#undef JSON_HEDLEY_GCC_HAS_ATTRIBUTE
+-#undef JSON_HEDLEY_GCC_HAS_BUILTIN
+-#undef JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE
+-#undef JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE
+-#undef JSON_HEDLEY_GCC_HAS_EXTENSION
+-#undef JSON_HEDLEY_GCC_HAS_FEATURE
+-#undef JSON_HEDLEY_GCC_HAS_WARNING
+-#undef JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK
+-#undef JSON_HEDLEY_GCC_VERSION
+-#undef JSON_HEDLEY_GCC_VERSION_CHECK
+-#undef JSON_HEDLEY_GNUC_HAS_ATTRIBUTE
+-#undef JSON_HEDLEY_GNUC_HAS_BUILTIN
+-#undef JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE
+-#undef JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE
+-#undef JSON_HEDLEY_GNUC_HAS_EXTENSION
+-#undef JSON_HEDLEY_GNUC_HAS_FEATURE
+-#undef JSON_HEDLEY_GNUC_HAS_WARNING
+-#undef JSON_HEDLEY_GNUC_VERSION
+-#undef JSON_HEDLEY_GNUC_VERSION_CHECK
+-#undef JSON_HEDLEY_HAS_ATTRIBUTE
+-#undef JSON_HEDLEY_HAS_BUILTIN
+-#undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE
+-#undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS
+-#undef JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE
+-#undef JSON_HEDLEY_HAS_EXTENSION
+-#undef JSON_HEDLEY_HAS_FEATURE
+-#undef JSON_HEDLEY_HAS_WARNING
+-#undef JSON_HEDLEY_IAR_VERSION
+-#undef JSON_HEDLEY_IAR_VERSION_CHECK
+-#undef JSON_HEDLEY_IBM_VERSION
+-#undef JSON_HEDLEY_IBM_VERSION_CHECK
+-#undef JSON_HEDLEY_IMPORT
+-#undef JSON_HEDLEY_INLINE
+-#undef JSON_HEDLEY_INTEL_CL_VERSION
+-#undef JSON_HEDLEY_INTEL_CL_VERSION_CHECK
+-#undef JSON_HEDLEY_INTEL_VERSION
+-#undef JSON_HEDLEY_INTEL_VERSION_CHECK
+-#undef JSON_HEDLEY_IS_CONSTANT
+-#undef JSON_HEDLEY_IS_CONSTEXPR_
+-#undef JSON_HEDLEY_LIKELY
+-#undef JSON_HEDLEY_MALLOC
+-#undef JSON_HEDLEY_MCST_LCC_VERSION
+-#undef JSON_HEDLEY_MCST_LCC_VERSION_CHECK
+-#undef JSON_HEDLEY_MESSAGE
+-#undef JSON_HEDLEY_MSVC_VERSION
+-#undef JSON_HEDLEY_MSVC_VERSION_CHECK
+-#undef JSON_HEDLEY_NEVER_INLINE
+-#undef JSON_HEDLEY_NON_NULL
+-#undef JSON_HEDLEY_NO_ESCAPE
+-#undef JSON_HEDLEY_NO_RETURN
+-#undef JSON_HEDLEY_NO_THROW
+-#undef JSON_HEDLEY_NULL
+-#undef JSON_HEDLEY_PELLES_VERSION
+-#undef JSON_HEDLEY_PELLES_VERSION_CHECK
+-#undef JSON_HEDLEY_PGI_VERSION
+-#undef JSON_HEDLEY_PGI_VERSION_CHECK
+-#undef JSON_HEDLEY_PREDICT
+-#undef JSON_HEDLEY_PRINTF_FORMAT
+-#undef JSON_HEDLEY_PRIVATE
+-#undef JSON_HEDLEY_PUBLIC
+-#undef JSON_HEDLEY_PURE
+-#undef JSON_HEDLEY_REINTERPRET_CAST
+-#undef JSON_HEDLEY_REQUIRE
+-#undef JSON_HEDLEY_REQUIRE_CONSTEXPR
+-#undef JSON_HEDLEY_REQUIRE_MSG
+-#undef JSON_HEDLEY_RESTRICT
+-#undef JSON_HEDLEY_RETURNS_NON_NULL
+-#undef JSON_HEDLEY_SENTINEL
+-#undef JSON_HEDLEY_STATIC_ASSERT
+-#undef JSON_HEDLEY_STATIC_CAST
+-#undef JSON_HEDLEY_STRINGIFY
+-#undef JSON_HEDLEY_STRINGIFY_EX
+-#undef JSON_HEDLEY_SUNPRO_VERSION
+-#undef JSON_HEDLEY_SUNPRO_VERSION_CHECK
+-#undef JSON_HEDLEY_TINYC_VERSION
+-#undef JSON_HEDLEY_TINYC_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_ARMCL_VERSION
+-#undef JSON_HEDLEY_TI_ARMCL_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CL2000_VERSION
+-#undef JSON_HEDLEY_TI_CL2000_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CL430_VERSION
+-#undef JSON_HEDLEY_TI_CL430_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CL6X_VERSION
+-#undef JSON_HEDLEY_TI_CL6X_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CL7X_VERSION
+-#undef JSON_HEDLEY_TI_CL7X_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CLPRU_VERSION
+-#undef JSON_HEDLEY_TI_CLPRU_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_VERSION
+-#undef JSON_HEDLEY_TI_VERSION_CHECK
+-#undef JSON_HEDLEY_UNAVAILABLE
+-#undef JSON_HEDLEY_UNLIKELY
+-#undef JSON_HEDLEY_UNPREDICTABLE
+-#undef JSON_HEDLEY_UNREACHABLE
+-#undef JSON_HEDLEY_UNREACHABLE_RETURN
+-#undef JSON_HEDLEY_VERSION
+-#undef JSON_HEDLEY_VERSION_DECODE_MAJOR
+-#undef JSON_HEDLEY_VERSION_DECODE_MINOR
+-#undef JSON_HEDLEY_VERSION_DECODE_REVISION
+-#undef JSON_HEDLEY_VERSION_ENCODE
+-#undef JSON_HEDLEY_WARNING
+-#undef JSON_HEDLEY_WARN_UNUSED_RESULT
+-#undef JSON_HEDLEY_WARN_UNUSED_RESULT_MSG
+-#undef JSON_HEDLEY_FALL_THROUGH
+-
+-
+-
+-#endif  // INCLUDE_NLOHMANN_JSON_HPP_
+diff --git a/include/dpp/nlohmann/json_fwd.hpp b/include/dpp/nlohmann/json_fwd.hpp
+deleted file mode 100755
+index 2d5ba38..0000000
+--- a/include/dpp/nlohmann/json_fwd.hpp
++++ /dev/null
+@@ -1,64 +0,0 @@
+-#ifndef INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-#define INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-
+-#include <cstdint> // int64_t, uint64_t
+-#include <map> // map
+-#include <memory> // allocator
+-#include <string> // string
+-#include <vector> // vector
+-
+-/*!
+-@brief namespace for Niels Lohmann
+-@see https://github.com/nlohmann
+-@since version 1.0.0
+-*/
+-namespace nlohmann
+-{
+-/*!
+-@brief default JSONSerializer template argument
+-
+-This serializer ignores the template arguments and uses ADL
+-([argument-dependent lookup](https://en.cppreference.com/w/cpp/language/adl))
+-for serialization.
+-*/
+-template<typename T = void, typename SFINAE = void>
+-struct adl_serializer;
+-
+-/// a class to store JSON values
+-/// @sa https://json.nlohmann.me/api/basic_json/
+-template<template<typename U, typename V, typename... Args> class ObjectType =
+-         std::map,
+-         template<typename U, typename... Args> class ArrayType = std::vector,
+-         class StringType = std::string, class BooleanType = bool,
+-         class NumberIntegerType = std::int64_t,
+-         class NumberUnsignedType = std::uint64_t,
+-         class NumberFloatType = double,
+-         template<typename U> class AllocatorType = std::allocator,
+-         template<typename T, typename SFINAE = void> class JSONSerializer =
+-         adl_serializer,
+-         class BinaryType = std::vector<std::uint8_t>>
+-class basic_json;
+-
+-/// @brief JSON Pointer defines a string syntax for identifying a specific value within a JSON document
+-/// @sa https://json.nlohmann.me/api/json_pointer/
+-template<typename BasicJsonType>
+-class json_pointer;
+-
+-/*!
+-@brief default specialization
+-@sa https://json.nlohmann.me/api/json/
+-*/
+-using json = basic_json<>;
+-
+-/// @brief a minimal map-like container that preserves insertion order
+-/// @sa https://json.nlohmann.me/api/ordered_map/
+-template<class Key, class T, class IgnoredLess, class Allocator>
+-struct ordered_map;
+-
+-/// @brief specialization that maintains the insertion order of object keys
+-/// @sa https://json.nlohmann.me/api/ordered_json/
+-using ordered_json = basic_json<nlohmann::ordered_map>;
+-
+-}  // namespace nlohmann
+-
+-#endif  // INCLUDE_NLOHMANN_JSON_FWD_HPP_
+diff --git a/include/dpp/presence.h b/include/dpp/presence.h
+index e018f92..bcf322b 100644
+--- a/include/dpp/presence.h
++++ b/include/dpp/presence.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/prune.h b/include/dpp/prune.h
+index dd1b19b..7528a37 100644
+--- a/include/dpp/prune.h
++++ b/include/dpp/prune.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/restrequest.h b/include/dpp/restrequest.h
+index 2d1915c..20a4b3d 100644
+--- a/include/dpp/restrequest.h
++++ b/include/dpp/restrequest.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/role.h b/include/dpp/role.h
+index 00d380a..389ca43 100644
+--- a/include/dpp/role.h
++++ b/include/dpp/role.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/guild.h>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/scheduled_event.h b/include/dpp/scheduled_event.h
+index 2cddd63..39be997 100644
+--- a/include/dpp/scheduled_event.h
++++ b/include/dpp/scheduled_event.h
+@@ -24,7 +24,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/user.h>
+ #include <dpp/guild.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/stage_instance.h b/include/dpp/stage_instance.h
+index 90a134f..0ab205e 100644
+--- a/include/dpp/stage_instance.h
++++ b/include/dpp/stage_instance.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/user.h b/include/dpp/user.h
+index a723941..a77fccf 100644
+--- a/include/dpp/user.h
++++ b/include/dpp/user.h
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #pragma once
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+diff --git a/include/dpp/voiceregion.h b/include/dpp/voiceregion.h
+index a1def0a..a0a88e5 100644
+--- a/include/dpp/voiceregion.h
++++ b/include/dpp/voiceregion.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <unordered_map>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/voicestate.h b/include/dpp/voicestate.h
+index 64f1517..c14461e 100644
+--- a/include/dpp/voicestate.h
++++ b/include/dpp/voicestate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/webhook.h b/include/dpp/webhook.h
+index 98fa176..95c09dc 100644
+--- a/include/dpp/webhook.h
++++ b/include/dpp/webhook.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/src/dpp/application.cpp b/src/dpp/application.cpp
+index b5eea41..5ffc9fc 100644
+--- a/src/dpp/application.cpp
++++ b/src/dpp/application.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/auditlog.cpp b/src/dpp/auditlog.cpp
+index 72ef078..2a45729 100644
+--- a/src/dpp/auditlog.cpp
++++ b/src/dpp/auditlog.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/auditlog.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/ban.cpp b/src/dpp/ban.cpp
+index b959d75..860e5a4 100644
+--- a/src/dpp/ban.cpp
++++ b/src/dpp/ban.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/ban.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/channel.cpp b/src/dpp/channel.cpp
+index 405372c..6495b10 100644
+--- a/src/dpp/channel.cpp
++++ b/src/dpp/channel.cpp
+@@ -25,7 +25,7 @@
+ #include <dpp/role.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/cluster.cpp b/src/dpp/cluster.cpp
+index 210753f..6290413 100644
+--- a/src/dpp/cluster.cpp
++++ b/src/dpp/cluster.cpp
+@@ -29,7 +29,7 @@
+ #include <dpp/sync.h>
+ #include <chrono>
+ #include <iostream>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <utility>
+ #include <dpp/fmt-minimal.h>
+ #include <algorithm>
+diff --git a/src/dpp/cluster/confirmation.cpp b/src/dpp/cluster/confirmation.cpp
+index c7e579b..fcccb4c 100644
+--- a/src/dpp/cluster/confirmation.cpp
++++ b/src/dpp/cluster/confirmation.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/cluster/timer.cpp b/src/dpp/cluster/timer.cpp
+index a4b6d83..7159574 100644
+--- a/src/dpp/cluster/timer.cpp
++++ b/src/dpp/cluster/timer.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/timer.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/discordclient.cpp b/src/dpp/discordclient.cpp
+index 9444fcb..8a498b8 100644
+--- a/src/dpp/discordclient.cpp
++++ b/src/dpp/discordclient.cpp
+@@ -26,7 +26,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+ #include <thread>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ #include <dpp/etf.h>
+ #include <zlib.h>
+diff --git a/src/dpp/discordevents.cpp b/src/dpp/discordevents.cpp
+index 92bd66d..73b2b2f 100644
+--- a/src/dpp/discordevents.cpp
++++ b/src/dpp/discordevents.cpp
+@@ -30,7 +30,7 @@
+ #include <dpp/event.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <time.h>
+ #include <iomanip>
+ #include <sstream>
+diff --git a/src/dpp/discordvoiceclient.cpp b/src/dpp/discordvoiceclient.cpp
+index a1b6247..e809d91 100644
+--- a/src/dpp/discordvoiceclient.cpp
++++ b/src/dpp/discordvoiceclient.cpp
+@@ -43,7 +43,7 @@
+ #include <dpp/discordvoiceclient.h>
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ #ifdef HAVE_VOICE
+diff --git a/src/dpp/dtemplate.cpp b/src/dpp/dtemplate.cpp
+index 31f6bbf..e3c67ea 100644
+--- a/src/dpp/dtemplate.cpp
++++ b/src/dpp/dtemplate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/dtemplate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/emoji.cpp b/src/dpp/emoji.cpp
+index c0b3613..4f00958 100644
+--- a/src/dpp/emoji.cpp
++++ b/src/dpp/emoji.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/emoji.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/etf.cpp b/src/dpp/etf.cpp
+index 6395d9b..3b6159e 100644
+--- a/src/dpp/etf.cpp
++++ b/src/dpp/etf.cpp
+@@ -34,7 +34,7 @@
+ #include <dpp/sysdep.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <zlib.h>
+ #include <iostream>
+ 
+diff --git a/src/dpp/events/channel_create.cpp b/src/dpp/events/channel_create.cpp
+index 07b0c2c..1a0b812 100644
+--- a/src/dpp/events/channel_create.cpp
++++ b/src/dpp/events/channel_create.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_delete.cpp b/src/dpp/events/channel_delete.cpp
+index 09d23a4..5e48f96 100644
+--- a/src/dpp/events/channel_delete.cpp
++++ b/src/dpp/events/channel_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_pins_update.cpp b/src/dpp/events/channel_pins_update.cpp
+index 3a4244b..cc2f908 100644
+--- a/src/dpp/events/channel_pins_update.cpp
++++ b/src/dpp/events/channel_pins_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_update.cpp b/src/dpp/events/channel_update.cpp
+index 7e05d8f..fde836a 100644
+--- a/src/dpp/events/channel_update.cpp
++++ b/src/dpp/events/channel_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_add.cpp b/src/dpp/events/guild_ban_add.cpp
+index 872b875..61dfb5b 100644
+--- a/src/dpp/events/guild_ban_add.cpp
++++ b/src/dpp/events/guild_ban_add.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_remove.cpp b/src/dpp/events/guild_ban_remove.cpp
+index e170fde..510a280 100644
+--- a/src/dpp/events/guild_ban_remove.cpp
++++ b/src/dpp/events/guild_ban_remove.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_create.cpp b/src/dpp/events/guild_create.cpp
+index 6f1e369..9de1c39 100644
+--- a/src/dpp/events/guild_create.cpp
++++ b/src/dpp/events/guild_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_delete.cpp b/src/dpp/events/guild_delete.cpp
+index 82f75d3..e39f4c8 100644
+--- a/src/dpp/events/guild_delete.cpp
++++ b/src/dpp/events/guild_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_emojis_update.cpp b/src/dpp/events/guild_emojis_update.cpp
+index 62588c0..ec4303d 100644
+--- a/src/dpp/events/guild_emojis_update.cpp
++++ b/src/dpp/events/guild_emojis_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/emoji.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_integrations_update.cpp b/src/dpp/events/guild_integrations_update.cpp
+index 58146ae..0d2036f 100644
+--- a/src/dpp/events/guild_integrations_update.cpp
++++ b/src/dpp/events/guild_integrations_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_join_request_delete.cpp b/src/dpp/events/guild_join_request_delete.cpp
+index 4b6da22..5642b4c 100644
+--- a/src/dpp/events/guild_join_request_delete.cpp
++++ b/src/dpp/events/guild_join_request_delete.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_add.cpp b/src/dpp/events/guild_member_add.cpp
+index 6c865bb..2b3b8e8 100644
+--- a/src/dpp/events/guild_member_add.cpp
++++ b/src/dpp/events/guild_member_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_remove.cpp b/src/dpp/events/guild_member_remove.cpp
+index fa23bed..46646b7 100644
+--- a/src/dpp/events/guild_member_remove.cpp
++++ b/src/dpp/events/guild_member_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_update.cpp b/src/dpp/events/guild_member_update.cpp
+index 6a9c3b7..689aac4 100644
+--- a/src/dpp/events/guild_member_update.cpp
++++ b/src/dpp/events/guild_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_members_chunk.cpp b/src/dpp/events/guild_members_chunk.cpp
+index 03e1eb3..0e68089 100644
+--- a/src/dpp/events/guild_members_chunk.cpp
++++ b/src/dpp/events/guild_members_chunk.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_create.cpp b/src/dpp/events/guild_role_create.cpp
+index b668bb5..ed8bc79 100644
+--- a/src/dpp/events/guild_role_create.cpp
++++ b/src/dpp/events/guild_role_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_delete.cpp b/src/dpp/events/guild_role_delete.cpp
+index 6c8cedc..336f11b 100644
+--- a/src/dpp/events/guild_role_delete.cpp
++++ b/src/dpp/events/guild_role_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_update.cpp b/src/dpp/events/guild_role_update.cpp
+index 29130c0..32e3146 100644
+--- a/src/dpp/events/guild_role_update.cpp
++++ b/src/dpp/events/guild_role_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_create.cpp b/src/dpp/events/guild_scheduled_event_create.cpp
+index 02b3ba9..e84c134 100644
+--- a/src/dpp/events/guild_scheduled_event_create.cpp
++++ b/src/dpp/events/guild_scheduled_event_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_delete.cpp b/src/dpp/events/guild_scheduled_event_delete.cpp
+index ea11ed9..a098a0f 100644
+--- a/src/dpp/events/guild_scheduled_event_delete.cpp
++++ b/src/dpp/events/guild_scheduled_event_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_update.cpp b/src/dpp/events/guild_scheduled_event_update.cpp
+index b43f02d..6fd2795 100644
+--- a/src/dpp/events/guild_scheduled_event_update.cpp
++++ b/src/dpp/events/guild_scheduled_event_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_add.cpp b/src/dpp/events/guild_scheduled_event_user_add.cpp
+index 38e07b6..c549c39 100644
+--- a/src/dpp/events/guild_scheduled_event_user_add.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_add.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_remove.cpp b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+index 4d6e8a0..08be1e9 100644
+--- a/src/dpp/events/guild_scheduled_event_user_remove.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_stickers_update.cpp b/src/dpp/events/guild_stickers_update.cpp
+index 7f00c23..583d936 100644
+--- a/src/dpp/events/guild_stickers_update.cpp
++++ b/src/dpp/events/guild_stickers_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_update.cpp b/src/dpp/events/guild_update.cpp
+index d80b40b..e116688 100644
+--- a/src/dpp/events/guild_update.cpp
++++ b/src/dpp/events/guild_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_create.cpp b/src/dpp/events/integration_create.cpp
+index f72193c..112320b 100644
+--- a/src/dpp/events/integration_create.cpp
++++ b/src/dpp/events/integration_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_delete.cpp b/src/dpp/events/integration_delete.cpp
+index 0438076..e0b2202 100644
+--- a/src/dpp/events/integration_delete.cpp
++++ b/src/dpp/events/integration_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_update.cpp b/src/dpp/events/integration_update.cpp
+index 8175fab..38b3eda 100644
+--- a/src/dpp/events/integration_update.cpp
++++ b/src/dpp/events/integration_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/interaction_create.cpp b/src/dpp/events/interaction_create.cpp
+index a7bf466..a8aa25b 100644
+--- a/src/dpp/events/interaction_create.cpp
++++ b/src/dpp/events/interaction_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/appcommand.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_create.cpp b/src/dpp/events/invite_create.cpp
+index 377ba3f..7d03d06 100644
+--- a/src/dpp/events/invite_create.cpp
++++ b/src/dpp/events/invite_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_delete.cpp b/src/dpp/events/invite_delete.cpp
+index 5f2f084..c9d81bb 100644
+--- a/src/dpp/events/invite_delete.cpp
++++ b/src/dpp/events/invite_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/logger.cpp b/src/dpp/events/logger.cpp
+index aefc82f..ee9d202 100644
+--- a/src/dpp/events/logger.cpp
++++ b/src/dpp/events/logger.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_create.cpp b/src/dpp/events/message_create.cpp
+index be56ef8..80481e8 100644
+--- a/src/dpp/events/message_create.cpp
++++ b/src/dpp/events/message_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete.cpp b/src/dpp/events/message_delete.cpp
+index d7ba0ea..98e7c2c 100644
+--- a/src/dpp/events/message_delete.cpp
++++ b/src/dpp/events/message_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete_bulk.cpp b/src/dpp/events/message_delete_bulk.cpp
+index a158bf1..cbffcf2 100644
+--- a/src/dpp/events/message_delete_bulk.cpp
++++ b/src/dpp/events/message_delete_bulk.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_add.cpp b/src/dpp/events/message_reaction_add.cpp
+index fac7237..5e61959 100644
+--- a/src/dpp/events/message_reaction_add.cpp
++++ b/src/dpp/events/message_reaction_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove.cpp b/src/dpp/events/message_reaction_remove.cpp
+index 1036757..1f602b1 100644
+--- a/src/dpp/events/message_reaction_remove.cpp
++++ b/src/dpp/events/message_reaction_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_all.cpp b/src/dpp/events/message_reaction_remove_all.cpp
+index 7a63660..a564afb 100644
+--- a/src/dpp/events/message_reaction_remove_all.cpp
++++ b/src/dpp/events/message_reaction_remove_all.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_emoji.cpp b/src/dpp/events/message_reaction_remove_emoji.cpp
+index c820bbe..93a3f9c 100644
+--- a/src/dpp/events/message_reaction_remove_emoji.cpp
++++ b/src/dpp/events/message_reaction_remove_emoji.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_update.cpp b/src/dpp/events/message_update.cpp
+index 3259d88..90b6418 100644
+--- a/src/dpp/events/message_update.cpp
++++ b/src/dpp/events/message_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/presence.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/presence_update.cpp b/src/dpp/events/presence_update.cpp
+index af16087..7718019 100644
+--- a/src/dpp/events/presence_update.cpp
++++ b/src/dpp/events/presence_update.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/ready.cpp b/src/dpp/events/ready.cpp
+index 1434794..b6dd917 100644
+--- a/src/dpp/events/ready.cpp
++++ b/src/dpp/events/ready.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/events/resumed.cpp b/src/dpp/events/resumed.cpp
+index e28c8d8..98e174e 100644
+--- a/src/dpp/events/resumed.cpp
++++ b/src/dpp/events/resumed.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_create.cpp b/src/dpp/events/stage_instance_create.cpp
+index bb191df..a53b3bc 100644
+--- a/src/dpp/events/stage_instance_create.cpp
++++ b/src/dpp/events/stage_instance_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_delete.cpp b/src/dpp/events/stage_instance_delete.cpp
+index 639d259..d5bb97c 100644
+--- a/src/dpp/events/stage_instance_delete.cpp
++++ b/src/dpp/events/stage_instance_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_update.cpp b/src/dpp/events/stage_instance_update.cpp
+index 8422ffb..5349aab 100644
+--- a/src/dpp/events/stage_instance_update.cpp
++++ b/src/dpp/events/stage_instance_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_create.cpp b/src/dpp/events/thread_create.cpp
+index 896999a..680bc92 100644
+--- a/src/dpp/events/thread_create.cpp
++++ b/src/dpp/events/thread_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_delete.cpp b/src/dpp/events/thread_delete.cpp
+index 3969469..d195dac 100644
+--- a/src/dpp/events/thread_delete.cpp
++++ b/src/dpp/events/thread_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_list_sync.cpp b/src/dpp/events/thread_list_sync.cpp
+index ce518f5..19eee46 100644
+--- a/src/dpp/events/thread_list_sync.cpp
++++ b/src/dpp/events/thread_list_sync.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_member_update.cpp b/src/dpp/events/thread_member_update.cpp
+index 00a5949..5868e8d 100644
+--- a/src/dpp/events/thread_member_update.cpp
++++ b/src/dpp/events/thread_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_members_update.cpp b/src/dpp/events/thread_members_update.cpp
+index c744029..ea702a2 100644
+--- a/src/dpp/events/thread_members_update.cpp
++++ b/src/dpp/events/thread_members_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_update.cpp b/src/dpp/events/thread_update.cpp
+index 6be9cb6..b97e271 100644
+--- a/src/dpp/events/thread_update.cpp
++++ b/src/dpp/events/thread_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/typing_start.cpp b/src/dpp/events/typing_start.cpp
+index fc8667b..189129a 100644
+--- a/src/dpp/events/typing_start.cpp
++++ b/src/dpp/events/typing_start.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/user_update.cpp b/src/dpp/events/user_update.cpp
+index 3236c27..63fde16 100644
+--- a/src/dpp/events/user_update.cpp
++++ b/src/dpp/events/user_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/user.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_server_update.cpp b/src/dpp/events/voice_server_update.cpp
+index a70c831..fd5d984 100644
+--- a/src/dpp/events/voice_server_update.cpp
++++ b/src/dpp/events/voice_server_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_state_update.cpp b/src/dpp/events/voice_state_update.cpp
+index 4b316d4..79895e0 100644
+--- a/src/dpp/events/voice_state_update.cpp
++++ b/src/dpp/events/voice_state_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/webhooks_update.cpp b/src/dpp/events/webhooks_update.cpp
+index e94e585..d4c49d0 100644
+--- a/src/dpp/events/webhooks_update.cpp
++++ b/src/dpp/events/webhooks_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/webhook.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/format.cpp b/src/dpp/format.cpp
+index f95ab5d..2c6a1f2 100644
+--- a/src/dpp/format.cpp
++++ b/src/dpp/format.cpp
+@@ -5,7 +5,7 @@
+ //
+ // For the license information refer to format.h.
+ 
+-#include <dpp/fmt/format-inl.h>
++#include <fmt/format-inl.h>
+ 
+ FMT_BEGIN_NAMESPACE
+ namespace detail {
+diff --git a/src/dpp/guild.cpp b/src/dpp/guild.cpp
+index 1d47e7f..da26b04 100644
+--- a/src/dpp/guild.cpp
++++ b/src/dpp/guild.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/integration.cpp b/src/dpp/integration.cpp
+index 0d7ffba..2057271 100644
+--- a/src/dpp/integration.cpp
++++ b/src/dpp/integration.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/integration.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/cache.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/invite.cpp b/src/dpp/invite.cpp
+index ec02903..9a39fee 100644
+--- a/src/dpp/invite.cpp
++++ b/src/dpp/invite.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/invite.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/message.cpp b/src/dpp/message.cpp
+index 284fd0d..252807c 100644
+--- a/src/dpp/message.cpp
++++ b/src/dpp/message.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/exception.h>
+diff --git a/src/dpp/os.cpp b/src/dpp/os.cpp
+index 9a126ca..f76e086 100644
+--- a/src/dpp/os.cpp
++++ b/src/dpp/os.cpp
+@@ -10,7 +10,7 @@
+ #  define _CRT_SECURE_NO_WARNINGS
+ #endif
+ 
+-#include <dpp/fmt/os.h>
++#include <fmt/os.h>
+ 
+ #include <climits>
+ 
+diff --git a/src/dpp/permissions.cpp b/src/dpp/permissions.cpp
+index 5985e6e..e7adab6 100644
+--- a/src/dpp/permissions.cpp
++++ b/src/dpp/permissions.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/presence.cpp b/src/dpp/presence.cpp
+index b432044..ab8b5f4 100644
+--- a/src/dpp/presence.cpp
++++ b/src/dpp/presence.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/utility.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/prune.cpp b/src/dpp/prune.cpp
+index 1d7cd49..50b0315 100644
+--- a/src/dpp/prune.cpp
++++ b/src/dpp/prune.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/prune.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/role.cpp b/src/dpp/role.cpp
+index 618e16d..3a8182b 100644
+--- a/src/dpp/role.cpp
++++ b/src/dpp/role.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/permissions.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/scheduled_event.cpp b/src/dpp/scheduled_event.cpp
+index e049889..3113260 100644
+--- a/src/dpp/scheduled_event.cpp
++++ b/src/dpp/scheduled_event.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/exception.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/slashcommand.cpp b/src/dpp/slashcommand.cpp
+index 9ae3024..2872dac 100644
+--- a/src/dpp/slashcommand.cpp
++++ b/src/dpp/slashcommand.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/stringops.h>
+ #include <dpp/cache.h>
+ #include <iostream>
+diff --git a/src/dpp/stage_instance.cpp b/src/dpp/stage_instance.cpp
+index 2b10760..34e514d 100644
+--- a/src/dpp/stage_instance.cpp
++++ b/src/dpp/stage_instance.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/stage_instance.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/user.cpp b/src/dpp/user.cpp
+index e8e4dcd..5107c0f 100644
+--- a/src/dpp/user.cpp
++++ b/src/dpp/user.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/user.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/utility.cpp b/src/dpp/utility.cpp
+index 57c9874..80a6b82 100644
+--- a/src/dpp/utility.cpp
++++ b/src/dpp/utility.cpp
+@@ -33,7 +33,7 @@
+ #include <fstream>
+ #include <streambuf>
+ #include <array>
+-#include <dpp/fmt/format.h>
++#include <fmt/format.h>
+ #include <dpp/cluster.h>
+ #include <dpp/dispatcher.h>
+ 
+diff --git a/src/dpp/voiceregion.cpp b/src/dpp/voiceregion.cpp
+index 0e13179..895f659 100644
+--- a/src/dpp/voiceregion.cpp
++++ b/src/dpp/voiceregion.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voiceregion.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/voicestate.cpp b/src/dpp/voicestate.cpp
+index e1dd521..a68865f 100644
+--- a/src/dpp/voicestate.cpp
++++ b/src/dpp/voicestate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voicestate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/webhook.cpp b/src/dpp/webhook.cpp
+index a5e5e53..ad73796 100644
+--- a/src/dpp/webhook.cpp
++++ b/src/dpp/webhook.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/webhook.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/test.h b/src/test.h
+index 0b714f9..421ccad 100644
+--- a/src/test.h
++++ b/src/test.h
+@@ -24,7 +24,7 @@ _Pragma("warning( disable : 4251 )"); // 4251 warns when we export classes or st
+ _Pragma("warning( disable : 5105 )"); // 4251 warns when we export classes or structures with stl member variables
+ #endif
+ #include <dpp/dpp.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <iomanip>
+ 
+ #ifdef _WIN32
diff --git a/srcpkgs/libdpp/files/fix-installed-cmakefiles b/srcpkgs/libdpp/files/fix-installed-cmakefiles
new file mode 100644
index 000000000000..90efc1a3938e
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-installed-cmakefiles
@@ -0,0 +1,86 @@
+diff -ruN /usr/lib/cmake/dpp/dpp-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-noconfig.cmake	2022-06-18 14:50:52.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake	2022-06-18 14:55:08.371653178 +0800
+@@ -8,12 +8,12 @@
+ # Import target "dpp::dpp" for configuration ""
+ set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+ set_target_properties(dpp::dpp PROPERTIES
+-  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.11"
++  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.11"
+   )
+ 
+ list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.11" )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake	2022-06-18 14:50:52.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake	2022-06-18 14:55:08.446653180 +0800
+@@ -6,14 +6,14 @@
+ set(CMAKE_IMPORT_FILE_VERSION 1)
+ 
+ # Import target "dpp" for configuration ""
+-set_property(TARGET dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+-set_target_properties(dpp PROPERTIES
++set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
++set_target_properties(dpp::dpp PROPERTIES
+   IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.11"
+   )
+ 
+-list(APPEND _IMPORT_CHECK_TARGETS dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11" )
++list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets.cmake /usr/lib/cmake/dpp_patch/dpp-targets.cmake
+--- /usr/lib/cmake/dpp/dpp-targets.cmake	2022-06-18 14:50:52.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets.cmake	2022-06-18 14:55:08.442653180 +0800
+@@ -47,7 +47,7 @@
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+ get_filename_component(_realOrig "/usr/lib64" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
++if(1)
+   set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+@@ -61,7 +61,7 @@
+ add_library(dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
+diff -ruN /usr/lib/cmake/dpp/dpp.cmake /usr/lib/cmake/dpp_patch/dpp.cmake
+--- /usr/lib/cmake/dpp/dpp.cmake	2022-06-18 14:50:52.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp.cmake	2022-06-18 14:55:08.380653178 +0800
+@@ -46,9 +46,9 @@
+ # Use original install prefix when loaded through a
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+-get_filename_component(_realOrig "/usr/lib64/dpp-10.0" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
+-  set(_IMPORT_PREFIX "/usr/lib64/dpp-10.0")
++get_filename_component(_realOrig "/usr/lib64" REALPATH)
++if(1)
++  set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+ unset(_realCurr)
+@@ -62,7 +62,7 @@
+ add_library(dpp::dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp::dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..c2a4e6b741d0
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,38 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+hostmakedepends="pkg-config git"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	cp "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	git apply ${FILESDIR}/fix-headers-and-cmakefiles
+}
+
+post_install() {
+	rm -r "${DESTDIR}/usr/lib/dpp-${version%.*}"
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmove usr/include
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		vcopy ${FILESDIR}/fix-installed-cmakefiles ${PKGDESTDIR}/usr/lib/cmake
+		patch -s -p0 < ${PKGDESTDIR}/usr/lib/cmake/fix-installed-cmakefiles
+		mv ${PKGDESTDIR}/usr/lib/cmake/dpp_patch ${PKGDESTDIR}/usr/lib/cmake/dpp
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (38 preceding siblings ...)
  2022-06-18  7:29 ` JuniorSuperTux
@ 2022-06-18 11:55 ` JuniorSuperTux
  2022-06-18 11:55 ` JuniorSuperTux
                   ` (9 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-18 11:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 1468195 bytes --]

From 404528a3a5179aea6c3f13870107bcca376bdbf3 Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel                          |     1 +
 .../libdpp/files/fix-headers-and-cmakefiles   | 38772 ++++++++++++++++
 srcpkgs/libdpp/files/fix-installed-cmakefiles |    86 +
 srcpkgs/libdpp/template                       |    38 +
 4 files changed, 38897 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/files/fix-headers-and-cmakefiles
 create mode 100644 srcpkgs/libdpp/files/fix-installed-cmakefiles
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/files/fix-headers-and-cmakefiles b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
new file mode 100644
index 000000000000..f63df5313e96
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
@@ -0,0 +1,38772 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index bbcc4b3..524a3ca 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -43,7 +43,7 @@ math(EXPR DPP_VERSION_PATCH ${CMAKE_MATCH_3})
+ 
+ string(CONCAT DPP_VERSION ${DPP_VERSION_MAJOR}.${DPP_VERSION_MINOR}.${DPP_VERSION_PATCH})
+ 
+-project(libdpp VERSION ${DPP_VERSION} LANGUAGES CXX)
++project(dpp VERSION ${DPP_VERSION} LANGUAGES CXX)
+ 
+ check_cxx_symbol_exists(prctl "sys/prctl.h" HAVE_PRCTL)
+ check_cxx_symbol_exists(pthread_setname_np "pthread.h" HAVE_PTHREAD_SETNAME_NP)
+@@ -240,8 +240,8 @@ foreach (fullmodname ${subdirlist})
+ 	target_precompile_headers(
+ 		${modname}
+ 		PRIVATE
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json.hpp"
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json_fwd.hpp"
++		<nlohmann/json.hpp>
++		<nlohmann/json_fwd.hpp>
+ 	)
+ 
+ 	if (WIN32 AND NOT MINGW)
+@@ -325,14 +325,16 @@ if(NOT WIN32)
+ 	# Installation
+ 
+ 	include(GNUInstallDirs)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ 	install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -DRUN_LDCONFIG=${RUN_LDCONFIG} -DLDCONFIG_EXECUTABLE=${LDCONFIG_EXECUTABLE} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/PostInstall.cmake)")
+ 
+ 	configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dpp.pc.in" "${CMAKE_BINARY_DIR}/dpp.pc" @ONLY)
+ 	install(FILES "${CMAKE_BINARY_DIR}/dpp.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
+ elseif(MINGW)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
+ endif()
+ 
+diff --git a/cmake/CPackSetup.cmake b/cmake/CPackSetup.cmake
+index a6bcf59..73abe7e 100644
+--- a/cmake/CPackSetup.cmake
++++ b/cmake/CPackSetup.cmake
+@@ -24,7 +24,7 @@ write_basic_package_version_file(${DPP_VERSION_FILE}
+ install(DIRECTORY include/ DESTINATION ${DPP_INSTALL_INCLUDE_DIR})
+ 
+ ## Include the file which allows `find_package(libdpp)` to function.
+-install(FILES cmake/libdpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
++install(FILES cmake/dpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
+ 
+ ## Export the targets to allow other projects to easily include this project
+ install(EXPORT ${DPP_EXPORT_NAME} DESTINATION ${DPP_INSTALL_LIBRARY_DIR} NAMESPACE dpp::)
+diff --git a/cmake/libdpp-config.cmake b/cmake/libdpp-config.cmake
+deleted file mode 100644
+index d6dd5bd..0000000
+--- a/cmake/libdpp-config.cmake
++++ /dev/null
+@@ -1,21 +0,0 @@
+-# libdpp-config.cmake - package configuration file
+-
+-## Get current filesystem path (will a prefixed by where this package was installed)
+-get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+-
+-## Use this directory to include libdpp which has the rest of the project targets
+-include(${SELF_DIR}/libdpp.cmake)
+-
+-## Set OpenSSl directory for macos. It is also in our main CMakeLists.txt, but this file is independent from that.
+-if(APPLE)
+-	if(CMAKE_APPLE_SILICON_PROCESSOR)
+-		set(OPENSSL_ROOT_DIR "/opt/homebrew/opt/openssl")
+-	else()
+-		set(OPENSSL_ROOT_DIR "/usr/local/opt/openssl")
+-	endif()
+-	find_package(OpenSSL REQUIRED)
+-endif()
+-
+-# Search for libdpp dependencies
+-include(CMakeFindDependencyMacro)
+-find_dependency(OpenSSL REQUIRED)
+diff --git a/include/dpp/appcommand.h b/include/dpp/appcommand.h
+index 424823c..36f8f82 100644
+--- a/include/dpp/appcommand.h
++++ b/include/dpp/appcommand.h
+@@ -27,7 +27,7 @@
+ #include <dpp/role.h>
+ #include <dpp/user.h>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/application.h b/include/dpp/application.h
+index 7e9d80d..19fad83 100644
+--- a/include/dpp/application.h
++++ b/include/dpp/application.h
+@@ -26,7 +26,7 @@
+ #include <dpp/utility.h>
+ #include <dpp/user.h>
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/auditlog.h b/include/dpp/auditlog.h
+index 3469630..ca878da 100644
+--- a/include/dpp/auditlog.h
++++ b/include/dpp/auditlog.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <optional>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/ban.h b/include/dpp/ban.h
+index 6bbcdd2..8ad88d6 100644
+--- a/include/dpp/ban.h
++++ b/include/dpp/ban.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+ 
+diff --git a/include/dpp/channel.h b/include/dpp/channel.h
+index 7335b28..b2fcc33 100644
+--- a/include/dpp/channel.h
++++ b/include/dpp/channel.h
+@@ -25,7 +25,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+ #include <dpp/voicestate.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+diff --git a/include/dpp/cluster.h b/include/dpp/cluster.h
+index 5400695..6e7b41b 100644
+--- a/include/dpp/cluster.h
++++ b/include/dpp/cluster.h
+@@ -29,7 +29,7 @@
+ #include <dpp/dispatcher.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/timer.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/discordclient.h>
+ #include <dpp/voiceregion.h>
+ #include <dpp/dtemplate.h>
+diff --git a/include/dpp/commandhandler.h b/include/dpp/commandhandler.h
+index 29da473..0b15417 100644
+--- a/include/dpp/commandhandler.h
++++ b/include/dpp/commandhandler.h
+@@ -29,7 +29,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/utility.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <vector>
+ #include <functional>
+diff --git a/include/dpp/discordclient.h b/include/dpp/discordclient.h
+index 1eb875a..10f010e 100644
+--- a/include/dpp/discordclient.h
++++ b/include/dpp/discordclient.h
+@@ -24,7 +24,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/discordevents.h b/include/dpp/discordevents.h
+index c6474a4..1a70b18 100644
+--- a/include/dpp/discordevents.h
++++ b/include/dpp/discordevents.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ 
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/discordvoiceclient.h b/include/dpp/discordvoiceclient.h
+index e11d653..6692e54 100644
+--- a/include/dpp/discordvoiceclient.h
++++ b/include/dpp/discordvoiceclient.h
+@@ -32,7 +32,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/dtemplate.h b/include/dpp/dtemplate.h
+index 948b25d..5fbe17e 100644
+--- a/include/dpp/dtemplate.h
++++ b/include/dpp/dtemplate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/emoji.h b/include/dpp/emoji.h
+index a73e58a..9ab9c1e 100644
+--- a/include/dpp/emoji.h
++++ b/include/dpp/emoji.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/etf.h b/include/dpp/etf.h
+index 1c98e6a..1acd63b 100644
+--- a/include/dpp/etf.h
++++ b/include/dpp/etf.h
+@@ -34,7 +34,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/event.h b/include/dpp/event.h
+index cd945f5..388a0d6 100644
+--- a/include/dpp/event.h
++++ b/include/dpp/event.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ #define event_decl(x,wstype) /** @brief Internal event handler for wstype websocket events. Called for each websocket message of this type. @internal */ \
+ 	class x : public event { public: virtual void handle(dpp::discord_client* client, nlohmann::json &j, const std::string &raw); };
+diff --git a/include/dpp/fmt-minimal.h b/include/dpp/fmt-minimal.h
+index a5e7a5d..88f1e38 100644
+--- a/include/dpp/fmt-minimal.h
++++ b/include/dpp/fmt-minimal.h
+@@ -1,3 +1,3 @@
+ #pragma once
+-#include <dpp/fmt/core.h>
++#include <fmt/core.h>
+ #define FMT_STRING(s) s
+diff --git a/include/dpp/fmt/args.h b/include/dpp/fmt/args.h
+deleted file mode 100644
+index 9a8e4ed..0000000
+--- a/include/dpp/fmt/args.h
++++ /dev/null
+@@ -1,234 +0,0 @@
+-// Formatting library for C++ - dynamic format arguments
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_ARGS_H_
+-#define FMT_ARGS_H_
+-
+-#include <functional>  // std::reference_wrapper
+-#include <memory>      // std::unique_ptr
+-#include <vector>
+-
+-#include "core.h"
+-
+-FMT_BEGIN_NAMESPACE
+-
+-namespace detail {
+-
+-template <typename T> struct is_reference_wrapper : std::false_type {};
+-template <typename T>
+-struct is_reference_wrapper<std::reference_wrapper<T>> : std::true_type {};
+-
+-template <typename T> const T& unwrap(const T& v) { return v; }
+-template <typename T> const T& unwrap(const std::reference_wrapper<T>& v) {
+-  return static_cast<const T&>(v);
+-}
+-
+-class dynamic_arg_list {
+-  // Workaround for clang's -Wweak-vtables. Unlike for regular classes, for
+-  // templates it doesn't complain about inability to deduce single translation
+-  // unit for placing vtable. So storage_node_base is made a fake template.
+-  template <typename = void> struct node {
+-    virtual ~node() = default;
+-    std::unique_ptr<node<>> next;
+-  };
+-
+-  template <typename T> struct typed_node : node<> {
+-    T value;
+-
+-    template <typename Arg>
+-    FMT_CONSTEXPR typed_node(const Arg& arg) : value(arg) {}
+-
+-    template <typename Char>
+-    FMT_CONSTEXPR typed_node(const basic_string_view<Char>& arg)
+-        : value(arg.data(), arg.size()) {}
+-  };
+-
+-  std::unique_ptr<node<>> head_;
+-
+- public:
+-  template <typename T, typename Arg> const T& push(const Arg& arg) {
+-    auto new_node = std::unique_ptr<typed_node<T>>(new typed_node<T>(arg));
+-    auto& value = new_node->value;
+-    new_node->next = std::move(head_);
+-    head_ = std::move(new_node);
+-    return value;
+-  }
+-};
+-}  // namespace detail
+-
+-/**
+-  \rst
+-  A dynamic version of `fmt::format_arg_store`.
+-  It's equipped with a storage to potentially temporary objects which lifetimes
+-  could be shorter than the format arguments object.
+-
+-  It can be implicitly converted into `~fmt::basic_format_args` for passing
+-  into type-erased formatting functions such as `~fmt::vformat`.
+-  \endrst
+- */
+-template <typename Context>
+-class dynamic_format_arg_store
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-    // Workaround a GCC template argument substitution bug.
+-    : public basic_format_args<Context>
+-#endif
+-{
+- private:
+-  using char_type = typename Context::char_type;
+-
+-  template <typename T> struct need_copy {
+-    static constexpr detail::type mapped_type =
+-        detail::mapped_type_constant<T, Context>::value;
+-
+-    enum {
+-      value = !(detail::is_reference_wrapper<T>::value ||
+-                std::is_same<T, basic_string_view<char_type>>::value ||
+-                std::is_same<T, detail::std_string_view<char_type>>::value ||
+-                (mapped_type != detail::type::cstring_type &&
+-                 mapped_type != detail::type::string_type &&
+-                 mapped_type != detail::type::custom_type))
+-    };
+-  };
+-
+-  template <typename T>
+-  using stored_type = conditional_t<detail::is_string<T>::value &&
+-                                        !has_formatter<T, Context>::value &&
+-                                        !detail::is_reference_wrapper<T>::value,
+-                                    std::basic_string<char_type>, T>;
+-
+-  // Storage of basic_format_arg must be contiguous.
+-  std::vector<basic_format_arg<Context>> data_;
+-  std::vector<detail::named_arg_info<char_type>> named_info_;
+-
+-  // Storage of arguments not fitting into basic_format_arg must grow
+-  // without relocation because items in data_ refer to it.
+-  detail::dynamic_arg_list dynamic_args_;
+-
+-  friend class basic_format_args<Context>;
+-
+-  unsigned long long get_types() const {
+-    return detail::is_unpacked_bit | data_.size() |
+-           (named_info_.empty()
+-                ? 0ULL
+-                : static_cast<unsigned long long>(detail::has_named_args_bit));
+-  }
+-
+-  const basic_format_arg<Context>* data() const {
+-    return named_info_.empty() ? data_.data() : data_.data() + 1;
+-  }
+-
+-  template <typename T> void emplace_arg(const T& arg) {
+-    data_.emplace_back(detail::make_arg<Context>(arg));
+-  }
+-
+-  template <typename T>
+-  void emplace_arg(const detail::named_arg<char_type, T>& arg) {
+-    if (named_info_.empty()) {
+-      constexpr const detail::named_arg_info<char_type>* zero_ptr{nullptr};
+-      data_.insert(data_.begin(), {zero_ptr, 0});
+-    }
+-    data_.emplace_back(detail::make_arg<Context>(detail::unwrap(arg.value)));
+-    auto pop_one = [](std::vector<basic_format_arg<Context>>* data) {
+-      data->pop_back();
+-    };
+-    std::unique_ptr<std::vector<basic_format_arg<Context>>, decltype(pop_one)>
+-        guard{&data_, pop_one};
+-    named_info_.push_back({arg.name, static_cast<int>(data_.size() - 2u)});
+-    data_[0].value_.named_args = {named_info_.data(), named_info_.size()};
+-    guard.release();
+-  }
+-
+- public:
+-  constexpr dynamic_format_arg_store() = default;
+-
+-  /**
+-    \rst
+-    Adds an argument into the dynamic store for later passing to a formatting
+-    function.
+-
+-    Note that custom types and string types (but not string views) are copied
+-    into the store dynamically allocating memory if necessary.
+-
+-    **Example**::
+-
+-      fmt::dynamic_format_arg_store<fmt::format_context> store;
+-      store.push_back(42);
+-      store.push_back("abc");
+-      store.push_back(1.5f);
+-      std::string result = fmt::vformat("{} and {} and {}", store);
+-    \endrst
+-  */
+-  template <typename T> void push_back(const T& arg) {
+-    if (detail::const_check(need_copy<T>::value))
+-      emplace_arg(dynamic_args_.push<stored_type<T>>(arg));
+-    else
+-      emplace_arg(detail::unwrap(arg));
+-  }
+-
+-  /**
+-    \rst
+-    Adds a reference to the argument into the dynamic store for later passing to
+-    a formatting function.
+-
+-    **Example**::
+-
+-      fmt::dynamic_format_arg_store<fmt::format_context> store;
+-      char band[] = "Rolling Stones";
+-      store.push_back(std::cref(band));
+-      band[9] = 'c'; // Changing str affects the output.
+-      std::string result = fmt::vformat("{}", store);
+-      // result == "Rolling Scones"
+-    \endrst
+-  */
+-  template <typename T> void push_back(std::reference_wrapper<T> arg) {
+-    static_assert(
+-        need_copy<T>::value,
+-        "objects of built-in types and string views are always copied");
+-    emplace_arg(arg.get());
+-  }
+-
+-  /**
+-    Adds named argument into the dynamic store for later passing to a formatting
+-    function. ``std::reference_wrapper`` is supported to avoid copying of the
+-    argument. The name is always copied into the store.
+-  */
+-  template <typename T>
+-  void push_back(const detail::named_arg<char_type, T>& arg) {
+-    const char_type* arg_name =
+-        dynamic_args_.push<std::basic_string<char_type>>(arg.name).c_str();
+-    if (detail::const_check(need_copy<T>::value)) {
+-      emplace_arg(
+-          fmt::arg(arg_name, dynamic_args_.push<stored_type<T>>(arg.value)));
+-    } else {
+-      emplace_arg(fmt::arg(arg_name, arg.value));
+-    }
+-  }
+-
+-  /** Erase all elements from the store */
+-  void clear() {
+-    data_.clear();
+-    named_info_.clear();
+-    dynamic_args_ = detail::dynamic_arg_list();
+-  }
+-
+-  /**
+-    \rst
+-    Reserves space to store at least *new_cap* arguments including
+-    *new_cap_named* named arguments.
+-    \endrst
+-  */
+-  void reserve(size_t new_cap, size_t new_cap_named) {
+-    FMT_ASSERT(new_cap >= new_cap_named,
+-               "Set of arguments includes set of named arguments");
+-    data_.reserve(new_cap);
+-    named_info_.reserve(new_cap_named);
+-  }
+-};
+-
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_ARGS_H_
+diff --git a/include/dpp/fmt/chrono.h b/include/dpp/fmt/chrono.h
+deleted file mode 100644
+index 682efd8..0000000
+--- a/include/dpp/fmt/chrono.h
++++ /dev/null
+@@ -1,2067 +0,0 @@
+-// Formatting library for C++ - chrono support
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_CHRONO_H_
+-#define FMT_CHRONO_H_
+-
+-#include <algorithm>
+-#include <chrono>
+-#include <ctime>
+-#include <iterator>
+-#include <locale>
+-#include <ostream>
+-#include <type_traits>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-
+-// Enable tzset.
+-#ifndef FMT_USE_TZSET
+-// UWP doesn't provide _tzset.
+-#  if FMT_HAS_INCLUDE("winapifamily.h")
+-#    include <winapifamily.h>
+-#  endif
+-#  if defined(_WIN32) && (!defined(WINAPI_FAMILY) || \
+-                          (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP))
+-#    define FMT_USE_TZSET 1
+-#  else
+-#    define FMT_USE_TZSET 0
+-#  endif
+-#endif
+-
+-// Enable safe chrono durations, unless explicitly disabled.
+-#ifndef FMT_SAFE_DURATION_CAST
+-#  define FMT_SAFE_DURATION_CAST 1
+-#endif
+-#if FMT_SAFE_DURATION_CAST
+-
+-// For conversion between std::chrono::durations without undefined
+-// behaviour or erroneous results.
+-// This is a stripped down version of duration_cast, for inclusion in fmt.
+-// See https://github.com/pauldreik/safe_duration_cast
+-//
+-// Copyright Paul Dreik 2019
+-namespace safe_duration_cast {
+-
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(!std::is_same<From, To>::value &&
+-                        std::numeric_limits<From>::is_signed ==
+-                            std::numeric_limits<To>::is_signed)>
+-FMT_CONSTEXPR To lossless_integral_conversion(const From from, int& ec) {
+-  ec = 0;
+-  using F = std::numeric_limits<From>;
+-  using T = std::numeric_limits<To>;
+-  static_assert(F::is_integer, "From must be integral");
+-  static_assert(T::is_integer, "To must be integral");
+-
+-  // A and B are both signed, or both unsigned.
+-  if (detail::const_check(F::digits <= T::digits)) {
+-    // From fits in To without any problem.
+-  } else {
+-    // From does not always fit in To, resort to a dynamic check.
+-    if (from < (T::min)() || from > (T::max)()) {
+-      // outside range.
+-      ec = 1;
+-      return {};
+-    }
+-  }
+-  return static_cast<To>(from);
+-}
+-
+-/**
+- * converts From to To, without loss. If the dynamic value of from
+- * can't be converted to To without loss, ec is set.
+- */
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(!std::is_same<From, To>::value &&
+-                        std::numeric_limits<From>::is_signed !=
+-                            std::numeric_limits<To>::is_signed)>
+-FMT_CONSTEXPR To lossless_integral_conversion(const From from, int& ec) {
+-  ec = 0;
+-  using F = std::numeric_limits<From>;
+-  using T = std::numeric_limits<To>;
+-  static_assert(F::is_integer, "From must be integral");
+-  static_assert(T::is_integer, "To must be integral");
+-
+-  if (detail::const_check(F::is_signed && !T::is_signed)) {
+-    // From may be negative, not allowed!
+-    if (fmt::detail::is_negative(from)) {
+-      ec = 1;
+-      return {};
+-    }
+-    // From is positive. Can it always fit in To?
+-    if (detail::const_check(F::digits > T::digits) &&
+-        from > static_cast<From>(detail::max_value<To>())) {
+-      ec = 1;
+-      return {};
+-    }
+-  }
+-
+-  if (detail::const_check(!F::is_signed && T::is_signed &&
+-                          F::digits >= T::digits) &&
+-      from > static_cast<From>(detail::max_value<To>())) {
+-    ec = 1;
+-    return {};
+-  }
+-  return static_cast<To>(from);  // Lossless conversion.
+-}
+-
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(std::is_same<From, To>::value)>
+-FMT_CONSTEXPR To lossless_integral_conversion(const From from, int& ec) {
+-  ec = 0;
+-  return from;
+-}  // function
+-
+-// clang-format off
+-/**
+- * converts From to To if possible, otherwise ec is set.
+- *
+- * input                            |    output
+- * ---------------------------------|---------------
+- * NaN                              | NaN
+- * Inf                              | Inf
+- * normal, fits in output           | converted (possibly lossy)
+- * normal, does not fit in output   | ec is set
+- * subnormal                        | best effort
+- * -Inf                             | -Inf
+- */
+-// clang-format on
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(!std::is_same<From, To>::value)>
+-FMT_CONSTEXPR To safe_float_conversion(const From from, int& ec) {
+-  ec = 0;
+-  using T = std::numeric_limits<To>;
+-  static_assert(std::is_floating_point<From>::value, "From must be floating");
+-  static_assert(std::is_floating_point<To>::value, "To must be floating");
+-
+-  // catch the only happy case
+-  if (std::isfinite(from)) {
+-    if (from >= T::lowest() && from <= (T::max)()) {
+-      return static_cast<To>(from);
+-    }
+-    // not within range.
+-    ec = 1;
+-    return {};
+-  }
+-
+-  // nan and inf will be preserved
+-  return static_cast<To>(from);
+-}  // function
+-
+-template <typename To, typename From,
+-          FMT_ENABLE_IF(std::is_same<From, To>::value)>
+-FMT_CONSTEXPR To safe_float_conversion(const From from, int& ec) {
+-  ec = 0;
+-  static_assert(std::is_floating_point<From>::value, "From must be floating");
+-  return from;
+-}
+-
+-/**
+- * safe duration cast between integral durations
+- */
+-template <typename To, typename FromRep, typename FromPeriod,
+-          FMT_ENABLE_IF(std::is_integral<FromRep>::value),
+-          FMT_ENABLE_IF(std::is_integral<typename To::rep>::value)>
+-To safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from,
+-                      int& ec) {
+-  using From = std::chrono::duration<FromRep, FromPeriod>;
+-  ec = 0;
+-  // the basic idea is that we need to convert from count() in the from type
+-  // to count() in the To type, by multiplying it with this:
+-  struct Factor
+-      : std::ratio_divide<typename From::period, typename To::period> {};
+-
+-  static_assert(Factor::num > 0, "num must be positive");
+-  static_assert(Factor::den > 0, "den must be positive");
+-
+-  // the conversion is like this: multiply from.count() with Factor::num
+-  // /Factor::den and convert it to To::rep, all this without
+-  // overflow/underflow. let's start by finding a suitable type that can hold
+-  // both To, From and Factor::num
+-  using IntermediateRep =
+-      typename std::common_type<typename From::rep, typename To::rep,
+-                                decltype(Factor::num)>::type;
+-
+-  // safe conversion to IntermediateRep
+-  IntermediateRep count =
+-      lossless_integral_conversion<IntermediateRep>(from.count(), ec);
+-  if (ec) return {};
+-  // multiply with Factor::num without overflow or underflow
+-  if (detail::const_check(Factor::num != 1)) {
+-    const auto max1 = detail::max_value<IntermediateRep>() / Factor::num;
+-    if (count > max1) {
+-      ec = 1;
+-      return {};
+-    }
+-    const auto min1 =
+-        (std::numeric_limits<IntermediateRep>::min)() / Factor::num;
+-    if (count < min1) {
+-      ec = 1;
+-      return {};
+-    }
+-    count *= Factor::num;
+-  }
+-
+-  if (detail::const_check(Factor::den != 1)) count /= Factor::den;
+-  auto tocount = lossless_integral_conversion<typename To::rep>(count, ec);
+-  return ec ? To() : To(tocount);
+-}
+-
+-/**
+- * safe duration_cast between floating point durations
+- */
+-template <typename To, typename FromRep, typename FromPeriod,
+-          FMT_ENABLE_IF(std::is_floating_point<FromRep>::value),
+-          FMT_ENABLE_IF(std::is_floating_point<typename To::rep>::value)>
+-To safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from,
+-                      int& ec) {
+-  using From = std::chrono::duration<FromRep, FromPeriod>;
+-  ec = 0;
+-  if (std::isnan(from.count())) {
+-    // nan in, gives nan out. easy.
+-    return To{std::numeric_limits<typename To::rep>::quiet_NaN()};
+-  }
+-  // maybe we should also check if from is denormal, and decide what to do about
+-  // it.
+-
+-  // +-inf should be preserved.
+-  if (std::isinf(from.count())) {
+-    return To{from.count()};
+-  }
+-
+-  // the basic idea is that we need to convert from count() in the from type
+-  // to count() in the To type, by multiplying it with this:
+-  struct Factor
+-      : std::ratio_divide<typename From::period, typename To::period> {};
+-
+-  static_assert(Factor::num > 0, "num must be positive");
+-  static_assert(Factor::den > 0, "den must be positive");
+-
+-  // the conversion is like this: multiply from.count() with Factor::num
+-  // /Factor::den and convert it to To::rep, all this without
+-  // overflow/underflow. let's start by finding a suitable type that can hold
+-  // both To, From and Factor::num
+-  using IntermediateRep =
+-      typename std::common_type<typename From::rep, typename To::rep,
+-                                decltype(Factor::num)>::type;
+-
+-  // force conversion of From::rep -> IntermediateRep to be safe,
+-  // even if it will never happen be narrowing in this context.
+-  IntermediateRep count =
+-      safe_float_conversion<IntermediateRep>(from.count(), ec);
+-  if (ec) {
+-    return {};
+-  }
+-
+-  // multiply with Factor::num without overflow or underflow
+-  if (detail::const_check(Factor::num != 1)) {
+-    constexpr auto max1 = detail::max_value<IntermediateRep>() /
+-                          static_cast<IntermediateRep>(Factor::num);
+-    if (count > max1) {
+-      ec = 1;
+-      return {};
+-    }
+-    constexpr auto min1 = std::numeric_limits<IntermediateRep>::lowest() /
+-                          static_cast<IntermediateRep>(Factor::num);
+-    if (count < min1) {
+-      ec = 1;
+-      return {};
+-    }
+-    count *= static_cast<IntermediateRep>(Factor::num);
+-  }
+-
+-  // this can't go wrong, right? den>0 is checked earlier.
+-  if (detail::const_check(Factor::den != 1)) {
+-    using common_t = typename std::common_type<IntermediateRep, intmax_t>::type;
+-    count /= static_cast<common_t>(Factor::den);
+-  }
+-
+-  // convert to the to type, safely
+-  using ToRep = typename To::rep;
+-
+-  const ToRep tocount = safe_float_conversion<ToRep>(count, ec);
+-  if (ec) {
+-    return {};
+-  }
+-  return To{tocount};
+-}
+-}  // namespace safe_duration_cast
+-#endif
+-
+-// Prevents expansion of a preceding token as a function-style macro.
+-// Usage: f FMT_NOMACRO()
+-#define FMT_NOMACRO
+-
+-namespace detail {
+-template <typename T = void> struct null {};
+-inline null<> localtime_r FMT_NOMACRO(...) { return null<>(); }
+-inline null<> localtime_s(...) { return null<>(); }
+-inline null<> gmtime_r(...) { return null<>(); }
+-inline null<> gmtime_s(...) { return null<>(); }
+-
+-inline const std::locale& get_classic_locale() {
+-  static const auto& locale = std::locale::classic();
+-  return locale;
+-}
+-
+-template <typename CodeUnit> struct codecvt_result {
+-  static constexpr const size_t max_size = 32;
+-  CodeUnit buf[max_size];
+-  CodeUnit* end;
+-};
+-template <typename CodeUnit>
+-constexpr const size_t codecvt_result<CodeUnit>::max_size;
+-
+-template <typename CodeUnit>
+-void write_codecvt(codecvt_result<CodeUnit>& out, string_view in_buf,
+-                   const std::locale& loc) {
+-  using codecvt = std::codecvt<CodeUnit, char, std::mbstate_t>;
+-#if FMT_CLANG_VERSION
+-#  pragma clang diagnostic push
+-#  pragma clang diagnostic ignored "-Wdeprecated"
+-  auto& f = std::use_facet<codecvt>(loc);
+-#  pragma clang diagnostic pop
+-#else
+-  auto& f = std::use_facet<codecvt>(loc);
+-#endif
+-  auto mb = std::mbstate_t();
+-  const char* from_next = nullptr;
+-  auto result = f.in(mb, in_buf.begin(), in_buf.end(), from_next,
+-                     std::begin(out.buf), std::end(out.buf), out.end);
+-  if (result != std::codecvt_base::ok)
+-    FMT_THROW(format_error("failed to format time"));
+-}
+-
+-template <typename OutputIt>
+-auto write_encoded_tm_str(OutputIt out, string_view in, const std::locale& loc)
+-    -> OutputIt {
+-  if (detail::is_utf8() && loc != get_classic_locale()) {
+-    // char16_t and char32_t codecvts are broken in MSVC (linkage errors) and
+-    // gcc-4.
+-#if FMT_MSC_VER != 0 || \
+-    (defined(__GLIBCXX__) && !defined(_GLIBCXX_USE_DUAL_ABI))
+-    // The _GLIBCXX_USE_DUAL_ABI macro is always defined in libstdc++ from gcc-5
+-    // and newer.
+-    using code_unit = wchar_t;
+-#else
+-    using code_unit = char32_t;
+-#endif
+-
+-    using unit_t = codecvt_result<code_unit>;
+-    unit_t unit;
+-    write_codecvt(unit, in, loc);
+-    // In UTF-8 is used one to four one-byte code units.
+-    auto&& buf = basic_memory_buffer<char, unit_t::max_size * 4>();
+-    for (code_unit* p = unit.buf; p != unit.end; ++p) {
+-      uint32_t c = static_cast<uint32_t>(*p);
+-      if (sizeof(code_unit) == 2 && c >= 0xd800 && c <= 0xdfff) {
+-        // surrogate pair
+-        ++p;
+-        if (p == unit.end || (c & 0xfc00) != 0xd800 ||
+-            (*p & 0xfc00) != 0xdc00) {
+-          FMT_THROW(format_error("failed to format time"));
+-        }
+-        c = (c << 10) + static_cast<uint32_t>(*p) - 0x35fdc00;
+-      }
+-      if (c < 0x80) {
+-        buf.push_back(static_cast<char>(c));
+-      } else if (c < 0x800) {
+-        buf.push_back(static_cast<char>(0xc0 | (c >> 6)));
+-        buf.push_back(static_cast<char>(0x80 | (c & 0x3f)));
+-      } else if ((c >= 0x800 && c <= 0xd7ff) || (c >= 0xe000 && c <= 0xffff)) {
+-        buf.push_back(static_cast<char>(0xe0 | (c >> 12)));
+-        buf.push_back(static_cast<char>(0x80 | ((c & 0xfff) >> 6)));
+-        buf.push_back(static_cast<char>(0x80 | (c & 0x3f)));
+-      } else if (c >= 0x10000 && c <= 0x10ffff) {
+-        buf.push_back(static_cast<char>(0xf0 | (c >> 18)));
+-        buf.push_back(static_cast<char>(0x80 | ((c & 0x3ffff) >> 12)));
+-        buf.push_back(static_cast<char>(0x80 | ((c & 0xfff) >> 6)));
+-        buf.push_back(static_cast<char>(0x80 | (c & 0x3f)));
+-      } else {
+-        FMT_THROW(format_error("failed to format time"));
+-      }
+-    }
+-    return copy_str<char>(buf.data(), buf.data() + buf.size(), out);
+-  }
+-  return copy_str<char>(in.data(), in.data() + in.size(), out);
+-}
+-
+-template <typename Char, typename OutputIt,
+-          FMT_ENABLE_IF(!std::is_same<Char, char>::value)>
+-auto write_tm_str(OutputIt out, string_view sv, const std::locale& loc)
+-    -> OutputIt {
+-  codecvt_result<Char> unit;
+-  write_codecvt(unit, sv, loc);
+-  return copy_str<Char>(unit.buf, unit.end, out);
+-}
+-
+-template <typename Char, typename OutputIt,
+-          FMT_ENABLE_IF(std::is_same<Char, char>::value)>
+-auto write_tm_str(OutputIt out, string_view sv, const std::locale& loc)
+-    -> OutputIt {
+-  return write_encoded_tm_str(out, sv, loc);
+-}
+-
+-template <typename Char>
+-inline void do_write(buffer<Char>& buf, const std::tm& time,
+-                     const std::locale& loc, char format, char modifier) {
+-  auto&& format_buf = formatbuf<std::basic_streambuf<Char>>(buf);
+-  auto&& os = std::basic_ostream<Char>(&format_buf);
+-  os.imbue(loc);
+-  using iterator = std::ostreambuf_iterator<Char>;
+-  const auto& facet = std::use_facet<std::time_put<Char, iterator>>(loc);
+-  auto end = facet.put(os, os, Char(' '), &time, format, modifier);
+-  if (end.failed()) FMT_THROW(format_error("failed to format time"));
+-}
+-
+-template <typename Char, typename OutputIt,
+-          FMT_ENABLE_IF(!std::is_same<Char, char>::value)>
+-auto write(OutputIt out, const std::tm& time, const std::locale& loc,
+-           char format, char modifier = 0) -> OutputIt {
+-  auto&& buf = get_buffer<Char>(out);
+-  do_write<Char>(buf, time, loc, format, modifier);
+-  return buf.out();
+-}
+-
+-template <typename Char, typename OutputIt,
+-          FMT_ENABLE_IF(std::is_same<Char, char>::value)>
+-auto write(OutputIt out, const std::tm& time, const std::locale& loc,
+-           char format, char modifier = 0) -> OutputIt {
+-  auto&& buf = basic_memory_buffer<Char>();
+-  do_write<char>(buf, time, loc, format, modifier);
+-  return write_encoded_tm_str(out, string_view(buf.data(), buf.size()), loc);
+-}
+-
+-}  // namespace detail
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-/**
+-  Converts given time since epoch as ``std::time_t`` value into calendar time,
+-  expressed in local time. Unlike ``std::localtime``, this function is
+-  thread-safe on most platforms.
+- */
+-inline std::tm localtime(std::time_t time) {
+-  struct dispatcher {
+-    std::time_t time_;
+-    std::tm tm_;
+-
+-    dispatcher(std::time_t t) : time_(t) {}
+-
+-    bool run() {
+-      using namespace fmt::detail;
+-      return handle(localtime_r(&time_, &tm_));
+-    }
+-
+-    bool handle(std::tm* tm) { return tm != nullptr; }
+-
+-    bool handle(detail::null<>) {
+-      using namespace fmt::detail;
+-      return fallback(localtime_s(&tm_, &time_));
+-    }
+-
+-    bool fallback(int res) { return res == 0; }
+-
+-#if !FMT_MSC_VER
+-    bool fallback(detail::null<>) {
+-      using namespace fmt::detail;
+-      std::tm* tm = std::localtime(&time_);
+-      if (tm) tm_ = *tm;
+-      return tm != nullptr;
+-    }
+-#endif
+-  };
+-  dispatcher lt(time);
+-  // Too big time values may be unsupported.
+-  if (!lt.run()) FMT_THROW(format_error("time_t value out of range"));
+-  return lt.tm_;
+-}
+-
+-inline std::tm localtime(
+-    std::chrono::time_point<std::chrono::system_clock> time_point) {
+-  return localtime(std::chrono::system_clock::to_time_t(time_point));
+-}
+-
+-/**
+-  Converts given time since epoch as ``std::time_t`` value into calendar time,
+-  expressed in Coordinated Universal Time (UTC). Unlike ``std::gmtime``, this
+-  function is thread-safe on most platforms.
+- */
+-inline std::tm gmtime(std::time_t time) {
+-  struct dispatcher {
+-    std::time_t time_;
+-    std::tm tm_;
+-
+-    dispatcher(std::time_t t) : time_(t) {}
+-
+-    bool run() {
+-      using namespace fmt::detail;
+-      return handle(gmtime_r(&time_, &tm_));
+-    }
+-
+-    bool handle(std::tm* tm) { return tm != nullptr; }
+-
+-    bool handle(detail::null<>) {
+-      using namespace fmt::detail;
+-      return fallback(gmtime_s(&tm_, &time_));
+-    }
+-
+-    bool fallback(int res) { return res == 0; }
+-
+-#if !FMT_MSC_VER
+-    bool fallback(detail::null<>) {
+-      std::tm* tm = std::gmtime(&time_);
+-      if (tm) tm_ = *tm;
+-      return tm != nullptr;
+-    }
+-#endif
+-  };
+-  dispatcher gt(time);
+-  // Too big time values may be unsupported.
+-  if (!gt.run()) FMT_THROW(format_error("time_t value out of range"));
+-  return gt.tm_;
+-}
+-
+-inline std::tm gmtime(
+-    std::chrono::time_point<std::chrono::system_clock> time_point) {
+-  return gmtime(std::chrono::system_clock::to_time_t(time_point));
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// Writes two-digit numbers a, b and c separated by sep to buf.
+-// The method by Pavel Novikov based on
+-// https://johnnylee-sde.github.io/Fast-unsigned-integer-to-time-string/.
+-inline void write_digit2_separated(char* buf, unsigned a, unsigned b,
+-                                   unsigned c, char sep) {
+-  unsigned long long digits =
+-      a | (b << 24) | (static_cast<unsigned long long>(c) << 48);
+-  // Convert each value to BCD.
+-  // We have x = a * 10 + b and we want to convert it to BCD y = a * 16 + b.
+-  // The difference is
+-  //   y - x = a * 6
+-  // a can be found from x:
+-  //   a = floor(x / 10)
+-  // then
+-  //   y = x + a * 6 = x + floor(x / 10) * 6
+-  // floor(x / 10) is (x * 205) >> 11 (needs 16 bits).
+-  digits += (((digits * 205) >> 11) & 0x000f00000f00000f) * 6;
+-  // Put low nibbles to high bytes and high nibbles to low bytes.
+-  digits = ((digits & 0x00f00000f00000f0) >> 4) |
+-           ((digits & 0x000f00000f00000f) << 8);
+-  auto usep = static_cast<unsigned long long>(sep);
+-  // Add ASCII '0' to each digit byte and insert separators.
+-  digits |= 0x3030003030003030 | (usep << 16) | (usep << 40);
+-
+-  constexpr const size_t len = 8;
+-  if (const_check(is_big_endian())) {
+-    char tmp[len];
+-    memcpy(tmp, &digits, len);
+-    std::reverse_copy(tmp, tmp + len, buf);
+-  } else {
+-    memcpy(buf, &digits, len);
+-  }
+-}
+-
+-template <typename Period> FMT_CONSTEXPR inline const char* get_units() {
+-  if (std::is_same<Period, std::atto>::value) return "as";
+-  if (std::is_same<Period, std::femto>::value) return "fs";
+-  if (std::is_same<Period, std::pico>::value) return "ps";
+-  if (std::is_same<Period, std::nano>::value) return "ns";
+-  if (std::is_same<Period, std::micro>::value) return "µs";
+-  if (std::is_same<Period, std::milli>::value) return "ms";
+-  if (std::is_same<Period, std::centi>::value) return "cs";
+-  if (std::is_same<Period, std::deci>::value) return "ds";
+-  if (std::is_same<Period, std::ratio<1>>::value) return "s";
+-  if (std::is_same<Period, std::deca>::value) return "das";
+-  if (std::is_same<Period, std::hecto>::value) return "hs";
+-  if (std::is_same<Period, std::kilo>::value) return "ks";
+-  if (std::is_same<Period, std::mega>::value) return "Ms";
+-  if (std::is_same<Period, std::giga>::value) return "Gs";
+-  if (std::is_same<Period, std::tera>::value) return "Ts";
+-  if (std::is_same<Period, std::peta>::value) return "Ps";
+-  if (std::is_same<Period, std::exa>::value) return "Es";
+-  if (std::is_same<Period, std::ratio<60>>::value) return "m";
+-  if (std::is_same<Period, std::ratio<3600>>::value) return "h";
+-  return nullptr;
+-}
+-
+-enum class numeric_system {
+-  standard,
+-  // Alternative numeric system, e.g. 十二 instead of 12 in ja_JP locale.
+-  alternative
+-};
+-
+-// Parses a put_time-like format string and invokes handler actions.
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR const Char* parse_chrono_format(const Char* begin,
+-                                              const Char* end,
+-                                              Handler&& handler) {
+-  auto ptr = begin;
+-  while (ptr != end) {
+-    auto c = *ptr;
+-    if (c == '}') break;
+-    if (c != '%') {
+-      ++ptr;
+-      continue;
+-    }
+-    if (begin != ptr) handler.on_text(begin, ptr);
+-    ++ptr;  // consume '%'
+-    if (ptr == end) FMT_THROW(format_error("invalid format"));
+-    c = *ptr++;
+-    switch (c) {
+-    case '%':
+-      handler.on_text(ptr - 1, ptr);
+-      break;
+-    case 'n': {
+-      const Char newline[] = {'\n'};
+-      handler.on_text(newline, newline + 1);
+-      break;
+-    }
+-    case 't': {
+-      const Char tab[] = {'\t'};
+-      handler.on_text(tab, tab + 1);
+-      break;
+-    }
+-    // Year:
+-    case 'Y':
+-      handler.on_year(numeric_system::standard);
+-      break;
+-    case 'y':
+-      handler.on_short_year(numeric_system::standard);
+-      break;
+-    case 'C':
+-      handler.on_century(numeric_system::standard);
+-      break;
+-    case 'G':
+-      handler.on_iso_week_based_year();
+-      break;
+-    case 'g':
+-      handler.on_iso_week_based_short_year();
+-      break;
+-    // Day of the week:
+-    case 'a':
+-      handler.on_abbr_weekday();
+-      break;
+-    case 'A':
+-      handler.on_full_weekday();
+-      break;
+-    case 'w':
+-      handler.on_dec0_weekday(numeric_system::standard);
+-      break;
+-    case 'u':
+-      handler.on_dec1_weekday(numeric_system::standard);
+-      break;
+-    // Month:
+-    case 'b':
+-    case 'h':
+-      handler.on_abbr_month();
+-      break;
+-    case 'B':
+-      handler.on_full_month();
+-      break;
+-    case 'm':
+-      handler.on_dec_month(numeric_system::standard);
+-      break;
+-    // Day of the year/month:
+-    case 'U':
+-      handler.on_dec0_week_of_year(numeric_system::standard);
+-      break;
+-    case 'W':
+-      handler.on_dec1_week_of_year(numeric_system::standard);
+-      break;
+-    case 'V':
+-      handler.on_iso_week_of_year(numeric_system::standard);
+-      break;
+-    case 'j':
+-      handler.on_day_of_year();
+-      break;
+-    case 'd':
+-      handler.on_day_of_month(numeric_system::standard);
+-      break;
+-    case 'e':
+-      handler.on_day_of_month_space(numeric_system::standard);
+-      break;
+-    // Hour, minute, second:
+-    case 'H':
+-      handler.on_24_hour(numeric_system::standard);
+-      break;
+-    case 'I':
+-      handler.on_12_hour(numeric_system::standard);
+-      break;
+-    case 'M':
+-      handler.on_minute(numeric_system::standard);
+-      break;
+-    case 'S':
+-      handler.on_second(numeric_system::standard);
+-      break;
+-    // Other:
+-    case 'c':
+-      handler.on_datetime(numeric_system::standard);
+-      break;
+-    case 'x':
+-      handler.on_loc_date(numeric_system::standard);
+-      break;
+-    case 'X':
+-      handler.on_loc_time(numeric_system::standard);
+-      break;
+-    case 'D':
+-      handler.on_us_date();
+-      break;
+-    case 'F':
+-      handler.on_iso_date();
+-      break;
+-    case 'r':
+-      handler.on_12_hour_time();
+-      break;
+-    case 'R':
+-      handler.on_24_hour_time();
+-      break;
+-    case 'T':
+-      handler.on_iso_time();
+-      break;
+-    case 'p':
+-      handler.on_am_pm();
+-      break;
+-    case 'Q':
+-      handler.on_duration_value();
+-      break;
+-    case 'q':
+-      handler.on_duration_unit();
+-      break;
+-    case 'z':
+-      handler.on_utc_offset();
+-      break;
+-    case 'Z':
+-      handler.on_tz_name();
+-      break;
+-    // Alternative representation:
+-    case 'E': {
+-      if (ptr == end) FMT_THROW(format_error("invalid format"));
+-      c = *ptr++;
+-      switch (c) {
+-      case 'Y':
+-        handler.on_year(numeric_system::alternative);
+-        break;
+-      case 'y':
+-        handler.on_offset_year();
+-        break;
+-      case 'C':
+-        handler.on_century(numeric_system::alternative);
+-        break;
+-      case 'c':
+-        handler.on_datetime(numeric_system::alternative);
+-        break;
+-      case 'x':
+-        handler.on_loc_date(numeric_system::alternative);
+-        break;
+-      case 'X':
+-        handler.on_loc_time(numeric_system::alternative);
+-        break;
+-      default:
+-        FMT_THROW(format_error("invalid format"));
+-      }
+-      break;
+-    }
+-    case 'O':
+-      if (ptr == end) FMT_THROW(format_error("invalid format"));
+-      c = *ptr++;
+-      switch (c) {
+-      case 'y':
+-        handler.on_short_year(numeric_system::alternative);
+-        break;
+-      case 'm':
+-        handler.on_dec_month(numeric_system::alternative);
+-        break;
+-      case 'U':
+-        handler.on_dec0_week_of_year(numeric_system::alternative);
+-        break;
+-      case 'W':
+-        handler.on_dec1_week_of_year(numeric_system::alternative);
+-        break;
+-      case 'V':
+-        handler.on_iso_week_of_year(numeric_system::alternative);
+-        break;
+-      case 'd':
+-        handler.on_day_of_month(numeric_system::alternative);
+-        break;
+-      case 'e':
+-        handler.on_day_of_month_space(numeric_system::alternative);
+-        break;
+-      case 'w':
+-        handler.on_dec0_weekday(numeric_system::alternative);
+-        break;
+-      case 'u':
+-        handler.on_dec1_weekday(numeric_system::alternative);
+-        break;
+-      case 'H':
+-        handler.on_24_hour(numeric_system::alternative);
+-        break;
+-      case 'I':
+-        handler.on_12_hour(numeric_system::alternative);
+-        break;
+-      case 'M':
+-        handler.on_minute(numeric_system::alternative);
+-        break;
+-      case 'S':
+-        handler.on_second(numeric_system::alternative);
+-        break;
+-      default:
+-        FMT_THROW(format_error("invalid format"));
+-      }
+-      break;
+-    default:
+-      FMT_THROW(format_error("invalid format"));
+-    }
+-    begin = ptr;
+-  }
+-  if (begin != ptr) handler.on_text(begin, ptr);
+-  return ptr;
+-}
+-
+-template <typename Derived> struct null_chrono_spec_handler {
+-  FMT_CONSTEXPR void unsupported() {
+-    static_cast<Derived*>(this)->unsupported();
+-  }
+-  FMT_CONSTEXPR void on_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_short_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_offset_year() { unsupported(); }
+-  FMT_CONSTEXPR void on_century(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_week_based_year() { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_week_based_short_year() { unsupported(); }
+-  FMT_CONSTEXPR void on_abbr_weekday() { unsupported(); }
+-  FMT_CONSTEXPR void on_full_weekday() { unsupported(); }
+-  FMT_CONSTEXPR void on_dec0_weekday(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_dec1_weekday(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_abbr_month() { unsupported(); }
+-  FMT_CONSTEXPR void on_full_month() { unsupported(); }
+-  FMT_CONSTEXPR void on_dec_month(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_dec0_week_of_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_dec1_week_of_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_week_of_year(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_day_of_year() { unsupported(); }
+-  FMT_CONSTEXPR void on_day_of_month(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_day_of_month_space(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_24_hour(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_12_hour(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_minute(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_second(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_datetime(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_loc_date(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_loc_time(numeric_system) { unsupported(); }
+-  FMT_CONSTEXPR void on_us_date() { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_date() { unsupported(); }
+-  FMT_CONSTEXPR void on_12_hour_time() { unsupported(); }
+-  FMT_CONSTEXPR void on_24_hour_time() { unsupported(); }
+-  FMT_CONSTEXPR void on_iso_time() { unsupported(); }
+-  FMT_CONSTEXPR void on_am_pm() { unsupported(); }
+-  FMT_CONSTEXPR void on_duration_value() { unsupported(); }
+-  FMT_CONSTEXPR void on_duration_unit() { unsupported(); }
+-  FMT_CONSTEXPR void on_utc_offset() { unsupported(); }
+-  FMT_CONSTEXPR void on_tz_name() { unsupported(); }
+-};
+-
+-struct tm_format_checker : null_chrono_spec_handler<tm_format_checker> {
+-  FMT_NORETURN void unsupported() { FMT_THROW(format_error("no format")); }
+-
+-  template <typename Char>
+-  FMT_CONSTEXPR void on_text(const Char*, const Char*) {}
+-  FMT_CONSTEXPR void on_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_short_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_offset_year() {}
+-  FMT_CONSTEXPR void on_century(numeric_system) {}
+-  FMT_CONSTEXPR void on_iso_week_based_year() {}
+-  FMT_CONSTEXPR void on_iso_week_based_short_year() {}
+-  FMT_CONSTEXPR void on_abbr_weekday() {}
+-  FMT_CONSTEXPR void on_full_weekday() {}
+-  FMT_CONSTEXPR void on_dec0_weekday(numeric_system) {}
+-  FMT_CONSTEXPR void on_dec1_weekday(numeric_system) {}
+-  FMT_CONSTEXPR void on_abbr_month() {}
+-  FMT_CONSTEXPR void on_full_month() {}
+-  FMT_CONSTEXPR void on_dec_month(numeric_system) {}
+-  FMT_CONSTEXPR void on_dec0_week_of_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_dec1_week_of_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_iso_week_of_year(numeric_system) {}
+-  FMT_CONSTEXPR void on_day_of_year() {}
+-  FMT_CONSTEXPR void on_day_of_month(numeric_system) {}
+-  FMT_CONSTEXPR void on_day_of_month_space(numeric_system) {}
+-  FMT_CONSTEXPR void on_24_hour(numeric_system) {}
+-  FMT_CONSTEXPR void on_12_hour(numeric_system) {}
+-  FMT_CONSTEXPR void on_minute(numeric_system) {}
+-  FMT_CONSTEXPR void on_second(numeric_system) {}
+-  FMT_CONSTEXPR void on_datetime(numeric_system) {}
+-  FMT_CONSTEXPR void on_loc_date(numeric_system) {}
+-  FMT_CONSTEXPR void on_loc_time(numeric_system) {}
+-  FMT_CONSTEXPR void on_us_date() {}
+-  FMT_CONSTEXPR void on_iso_date() {}
+-  FMT_CONSTEXPR void on_12_hour_time() {}
+-  FMT_CONSTEXPR void on_24_hour_time() {}
+-  FMT_CONSTEXPR void on_iso_time() {}
+-  FMT_CONSTEXPR void on_am_pm() {}
+-  FMT_CONSTEXPR void on_utc_offset() {}
+-  FMT_CONSTEXPR void on_tz_name() {}
+-};
+-
+-inline const char* tm_wday_full_name(int wday) {
+-  static constexpr const char* full_name_list[] = {
+-      "Sunday",   "Monday", "Tuesday", "Wednesday",
+-      "Thursday", "Friday", "Saturday"};
+-  return wday >= 0 && wday <= 6 ? full_name_list[wday] : "?";
+-}
+-inline const char* tm_wday_short_name(int wday) {
+-  static constexpr const char* short_name_list[] = {"Sun", "Mon", "Tue", "Wed",
+-                                                    "Thu", "Fri", "Sat"};
+-  return wday >= 0 && wday <= 6 ? short_name_list[wday] : "???";
+-}
+-
+-inline const char* tm_mon_full_name(int mon) {
+-  static constexpr const char* full_name_list[] = {
+-      "January", "February", "March",     "April",   "May",      "June",
+-      "July",    "August",   "September", "October", "November", "December"};
+-  return mon >= 0 && mon <= 11 ? full_name_list[mon] : "?";
+-}
+-inline const char* tm_mon_short_name(int mon) {
+-  static constexpr const char* short_name_list[] = {
+-      "Jan", "Feb", "Mar", "Apr", "May", "Jun",
+-      "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
+-  };
+-  return mon >= 0 && mon <= 11 ? short_name_list[mon] : "???";
+-}
+-
+-template <typename T, typename = void>
+-struct has_member_data_tm_gmtoff : std::false_type {};
+-template <typename T>
+-struct has_member_data_tm_gmtoff<T, void_t<decltype(T::tm_gmtoff)>>
+-    : std::true_type {};
+-
+-template <typename T, typename = void>
+-struct has_member_data_tm_zone : std::false_type {};
+-template <typename T>
+-struct has_member_data_tm_zone<T, void_t<decltype(T::tm_zone)>>
+-    : std::true_type {};
+-
+-#if FMT_USE_TZSET
+-inline void tzset_once() {
+-  static bool init = []() -> bool {
+-    _tzset();
+-    return true;
+-  }();
+-  ignore_unused(init);
+-}
+-#endif
+-
+-template <typename OutputIt, typename Char> class tm_writer {
+- private:
+-  static constexpr int days_per_week = 7;
+-
+-  const std::locale& loc_;
+-  const bool is_classic_;
+-  OutputIt out_;
+-  const std::tm& tm_;
+-
+-  auto tm_sec() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_sec >= 0 && tm_.tm_sec <= 61, "");
+-    return tm_.tm_sec;
+-  }
+-  auto tm_min() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_min >= 0 && tm_.tm_min <= 59, "");
+-    return tm_.tm_min;
+-  }
+-  auto tm_hour() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_hour >= 0 && tm_.tm_hour <= 23, "");
+-    return tm_.tm_hour;
+-  }
+-  auto tm_mday() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_mday >= 1 && tm_.tm_mday <= 31, "");
+-    return tm_.tm_mday;
+-  }
+-  auto tm_mon() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_mon >= 0 && tm_.tm_mon <= 11, "");
+-    return tm_.tm_mon;
+-  }
+-  auto tm_year() const noexcept -> long long { return 1900ll + tm_.tm_year; }
+-  auto tm_wday() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_wday >= 0 && tm_.tm_wday <= 6, "");
+-    return tm_.tm_wday;
+-  }
+-  auto tm_yday() const noexcept -> int {
+-    FMT_ASSERT(tm_.tm_yday >= 0 && tm_.tm_yday <= 365, "");
+-    return tm_.tm_yday;
+-  }
+-
+-  auto tm_hour12() const noexcept -> int {
+-    const auto h = tm_hour();
+-    const auto z = h < 12 ? h : h - 12;
+-    return z == 0 ? 12 : z;
+-  }
+-
+-  // POSIX and the C Standard are unclear or inconsistent about what %C and %y
+-  // do if the year is negative or exceeds 9999. Use the convention that %C
+-  // concatenated with %y yields the same output as %Y, and that %Y contains at
+-  // least 4 characters, with more only if necessary.
+-  auto split_year_lower(long long year) const noexcept -> int {
+-    auto l = year % 100;
+-    if (l < 0) l = -l;  // l in [0, 99]
+-    return static_cast<int>(l);
+-  }
+-
+-  // Algorithm:
+-  // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_the_week_number_from_a_month_and_day_of_the_month_or_ordinal_date
+-  auto iso_year_weeks(long long curr_year) const noexcept -> int {
+-    const auto prev_year = curr_year - 1;
+-    const auto curr_p =
+-        (curr_year + curr_year / 4 - curr_year / 100 + curr_year / 400) %
+-        days_per_week;
+-    const auto prev_p =
+-        (prev_year + prev_year / 4 - prev_year / 100 + prev_year / 400) %
+-        days_per_week;
+-    return 52 + ((curr_p == 4 || prev_p == 3) ? 1 : 0);
+-  }
+-  auto iso_week_num(int tm_yday, int tm_wday) const noexcept -> int {
+-    return (tm_yday + 11 - (tm_wday == 0 ? days_per_week : tm_wday)) /
+-           days_per_week;
+-  }
+-  auto tm_iso_week_year() const noexcept -> long long {
+-    const auto year = tm_year();
+-    const auto w = iso_week_num(tm_yday(), tm_wday());
+-    if (w < 1) return year - 1;
+-    if (w > iso_year_weeks(year)) return year + 1;
+-    return year;
+-  }
+-  auto tm_iso_week_of_year() const noexcept -> int {
+-    const auto year = tm_year();
+-    const auto w = iso_week_num(tm_yday(), tm_wday());
+-    if (w < 1) return iso_year_weeks(year - 1);
+-    if (w > iso_year_weeks(year)) return 1;
+-    return w;
+-  }
+-
+-  void write1(int value) {
+-    *out_++ = static_cast<char>('0' + to_unsigned(value) % 10);
+-  }
+-  void write2(int value) {
+-    const char* d = digits2(to_unsigned(value) % 100);
+-    *out_++ = *d++;
+-    *out_++ = *d;
+-  }
+-
+-  void write_year_extended(long long year) {
+-    // At least 4 characters.
+-    int width = 4;
+-    if (year < 0) {
+-      *out_++ = '-';
+-      year = 0 - year;
+-      --width;
+-    }
+-    uint32_or_64_or_128_t<long long> n = to_unsigned(year);
+-    const int num_digits = count_digits(n);
+-    if (width > num_digits) out_ = std::fill_n(out_, width - num_digits, '0');
+-    out_ = format_decimal<Char>(out_, n, num_digits).end;
+-  }
+-  void write_year(long long year) {
+-    if (year >= 0 && year < 10000) {
+-      write2(static_cast<int>(year / 100));
+-      write2(static_cast<int>(year % 100));
+-    } else {
+-      write_year_extended(year);
+-    }
+-  }
+-
+-  void write_utc_offset(long offset) {
+-    if (offset < 0) {
+-      *out_++ = '-';
+-      offset = -offset;
+-    } else {
+-      *out_++ = '+';
+-    }
+-    offset /= 60;
+-    write2(static_cast<int>(offset / 60));
+-    write2(static_cast<int>(offset % 60));
+-  }
+-  template <typename T, FMT_ENABLE_IF(has_member_data_tm_gmtoff<T>::value)>
+-  void format_utc_offset_impl(const T& tm) {
+-    write_utc_offset(tm.tm_gmtoff);
+-  }
+-  template <typename T, FMT_ENABLE_IF(!has_member_data_tm_gmtoff<T>::value)>
+-  void format_utc_offset_impl(const T& tm) {
+-#if defined(_WIN32) && defined(_UCRT)
+-#  if FMT_USE_TZSET
+-    tzset_once();
+-#  endif
+-    long offset = 0;
+-    _get_timezone(&offset);
+-    if (tm.tm_isdst) {
+-      long dstbias = 0;
+-      _get_dstbias(&dstbias);
+-      offset += dstbias;
+-    }
+-    write_utc_offset(-offset);
+-#else
+-    ignore_unused(tm);
+-    format_localized('z');
+-#endif
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(has_member_data_tm_zone<T>::value)>
+-  void format_tz_name_impl(const T& tm) {
+-    if (is_classic_)
+-      out_ = write_tm_str<Char>(out_, tm.tm_zone, loc_);
+-    else
+-      format_localized('Z');
+-  }
+-  template <typename T, FMT_ENABLE_IF(!has_member_data_tm_zone<T>::value)>
+-  void format_tz_name_impl(const T&) {
+-    format_localized('Z');
+-  }
+-
+-  void format_localized(char format, char modifier = 0) {
+-    out_ = write<Char>(out_, tm_, loc_, format, modifier);
+-  }
+-
+- public:
+-  tm_writer(const std::locale& loc, OutputIt out, const std::tm& tm)
+-      : loc_(loc),
+-        is_classic_(loc_ == get_classic_locale()),
+-        out_(out),
+-        tm_(tm) {}
+-
+-  OutputIt out() const { return out_; }
+-
+-  FMT_CONSTEXPR void on_text(const Char* begin, const Char* end) {
+-    out_ = copy_str<Char>(begin, end, out_);
+-  }
+-
+-  void on_abbr_weekday() {
+-    if (is_classic_)
+-      out_ = write(out_, tm_wday_short_name(tm_wday()));
+-    else
+-      format_localized('a');
+-  }
+-  void on_full_weekday() {
+-    if (is_classic_)
+-      out_ = write(out_, tm_wday_full_name(tm_wday()));
+-    else
+-      format_localized('A');
+-  }
+-  void on_dec0_weekday(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write1(tm_wday());
+-    format_localized('w', 'O');
+-  }
+-  void on_dec1_weekday(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) {
+-      auto wday = tm_wday();
+-      write1(wday == 0 ? days_per_week : wday);
+-    } else {
+-      format_localized('u', 'O');
+-    }
+-  }
+-
+-  void on_abbr_month() {
+-    if (is_classic_)
+-      out_ = write(out_, tm_mon_short_name(tm_mon()));
+-    else
+-      format_localized('b');
+-  }
+-  void on_full_month() {
+-    if (is_classic_)
+-      out_ = write(out_, tm_mon_full_name(tm_mon()));
+-    else
+-      format_localized('B');
+-  }
+-
+-  void on_datetime(numeric_system ns) {
+-    if (is_classic_) {
+-      on_abbr_weekday();
+-      *out_++ = ' ';
+-      on_abbr_month();
+-      *out_++ = ' ';
+-      on_day_of_month_space(numeric_system::standard);
+-      *out_++ = ' ';
+-      on_iso_time();
+-      *out_++ = ' ';
+-      on_year(numeric_system::standard);
+-    } else {
+-      format_localized('c', ns == numeric_system::standard ? '\0' : 'E');
+-    }
+-  }
+-  void on_loc_date(numeric_system ns) {
+-    if (is_classic_)
+-      on_us_date();
+-    else
+-      format_localized('x', ns == numeric_system::standard ? '\0' : 'E');
+-  }
+-  void on_loc_time(numeric_system ns) {
+-    if (is_classic_)
+-      on_iso_time();
+-    else
+-      format_localized('X', ns == numeric_system::standard ? '\0' : 'E');
+-  }
+-  void on_us_date() {
+-    char buf[8];
+-    write_digit2_separated(buf, to_unsigned(tm_mon() + 1),
+-                           to_unsigned(tm_mday()),
+-                           to_unsigned(split_year_lower(tm_year())), '/');
+-    out_ = copy_str<Char>(std::begin(buf), std::end(buf), out_);
+-  }
+-  void on_iso_date() {
+-    auto year = tm_year();
+-    char buf[10];
+-    size_t offset = 0;
+-    if (year >= 0 && year < 10000) {
+-      copy2(buf, digits2(to_unsigned(year / 100)));
+-    } else {
+-      offset = 4;
+-      write_year_extended(year);
+-      year = 0;
+-    }
+-    write_digit2_separated(buf + 2, static_cast<unsigned>(year % 100),
+-                           to_unsigned(tm_mon() + 1), to_unsigned(tm_mday()),
+-                           '-');
+-    out_ = copy_str<Char>(std::begin(buf) + offset, std::end(buf), out_);
+-  }
+-
+-  void on_utc_offset() { format_utc_offset_impl(tm_); }
+-  void on_tz_name() { format_tz_name_impl(tm_); }
+-
+-  void on_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write_year(tm_year());
+-    format_localized('Y', 'E');
+-  }
+-  void on_short_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2(split_year_lower(tm_year()));
+-    format_localized('y', 'O');
+-  }
+-  void on_offset_year() {
+-    if (is_classic_) return write2(split_year_lower(tm_year()));
+-    format_localized('y', 'E');
+-  }
+-
+-  void on_century(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) {
+-      auto year = tm_year();
+-      auto upper = year / 100;
+-      if (year >= -99 && year < 0) {
+-        // Zero upper on negative year.
+-        *out_++ = '-';
+-        *out_++ = '0';
+-      } else if (upper >= 0 && upper < 100) {
+-        write2(static_cast<int>(upper));
+-      } else {
+-        out_ = write<Char>(out_, upper);
+-      }
+-    } else {
+-      format_localized('C', 'E');
+-    }
+-  }
+-
+-  void on_dec_month(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2(tm_mon() + 1);
+-    format_localized('m', 'O');
+-  }
+-
+-  void on_dec0_week_of_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2((tm_yday() + days_per_week - tm_wday()) / days_per_week);
+-    format_localized('U', 'O');
+-  }
+-  void on_dec1_week_of_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) {
+-      auto wday = tm_wday();
+-      write2((tm_yday() + days_per_week -
+-              (wday == 0 ? (days_per_week - 1) : (wday - 1))) /
+-             days_per_week);
+-    } else {
+-      format_localized('W', 'O');
+-    }
+-  }
+-  void on_iso_week_of_year(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2(tm_iso_week_of_year());
+-    format_localized('V', 'O');
+-  }
+-
+-  void on_iso_week_based_year() { write_year(tm_iso_week_year()); }
+-  void on_iso_week_based_short_year() {
+-    write2(split_year_lower(tm_iso_week_year()));
+-  }
+-
+-  void on_day_of_year() {
+-    auto yday = tm_yday() + 1;
+-    write1(yday / 100);
+-    write2(yday % 100);
+-  }
+-  void on_day_of_month(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write2(tm_mday());
+-    format_localized('d', 'O');
+-  }
+-  void on_day_of_month_space(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) {
+-      auto mday = to_unsigned(tm_mday()) % 100;
+-      const char* d2 = digits2(mday);
+-      *out_++ = mday < 10 ? ' ' : d2[0];
+-      *out_++ = d2[1];
+-    } else {
+-      format_localized('e', 'O');
+-    }
+-  }
+-
+-  void on_24_hour(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write2(tm_hour());
+-    format_localized('H', 'O');
+-  }
+-  void on_12_hour(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard)
+-      return write2(tm_hour12());
+-    format_localized('I', 'O');
+-  }
+-  void on_minute(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write2(tm_min());
+-    format_localized('M', 'O');
+-  }
+-  void on_second(numeric_system ns) {
+-    if (is_classic_ || ns == numeric_system::standard) return write2(tm_sec());
+-    format_localized('S', 'O');
+-  }
+-
+-  void on_12_hour_time() {
+-    if (is_classic_) {
+-      char buf[8];
+-      write_digit2_separated(buf, to_unsigned(tm_hour12()),
+-                             to_unsigned(tm_min()), to_unsigned(tm_sec()), ':');
+-      out_ = copy_str<Char>(std::begin(buf), std::end(buf), out_);
+-      *out_++ = ' ';
+-      on_am_pm();
+-    } else {
+-      format_localized('r');
+-    }
+-  }
+-  void on_24_hour_time() {
+-    write2(tm_hour());
+-    *out_++ = ':';
+-    write2(tm_min());
+-  }
+-  void on_iso_time() {
+-    char buf[8];
+-    write_digit2_separated(buf, to_unsigned(tm_hour()), to_unsigned(tm_min()),
+-                           to_unsigned(tm_sec()), ':');
+-    out_ = copy_str<Char>(std::begin(buf), std::end(buf), out_);
+-  }
+-
+-  void on_am_pm() {
+-    if (is_classic_) {
+-      *out_++ = tm_hour() < 12 ? 'A' : 'P';
+-      *out_++ = 'M';
+-    } else {
+-      format_localized('p');
+-    }
+-  }
+-
+-  // These apply to chrono durations but not tm.
+-  void on_duration_value() {}
+-  void on_duration_unit() {}
+-};
+-
+-struct chrono_format_checker : null_chrono_spec_handler<chrono_format_checker> {
+-  FMT_NORETURN void unsupported() { FMT_THROW(format_error("no date")); }
+-
+-  template <typename Char>
+-  FMT_CONSTEXPR void on_text(const Char*, const Char*) {}
+-  FMT_CONSTEXPR void on_24_hour(numeric_system) {}
+-  FMT_CONSTEXPR void on_12_hour(numeric_system) {}
+-  FMT_CONSTEXPR void on_minute(numeric_system) {}
+-  FMT_CONSTEXPR void on_second(numeric_system) {}
+-  FMT_CONSTEXPR void on_12_hour_time() {}
+-  FMT_CONSTEXPR void on_24_hour_time() {}
+-  FMT_CONSTEXPR void on_iso_time() {}
+-  FMT_CONSTEXPR void on_am_pm() {}
+-  FMT_CONSTEXPR void on_duration_value() {}
+-  FMT_CONSTEXPR void on_duration_unit() {}
+-};
+-
+-template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-inline bool isnan(T) {
+-  return false;
+-}
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-inline bool isnan(T value) {
+-  return std::isnan(value);
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-inline bool isfinite(T) {
+-  return true;
+-}
+-
+-// Converts value to Int and checks that it's in the range [0, upper).
+-template <typename T, typename Int, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-inline Int to_nonnegative_int(T value, Int upper) {
+-  FMT_ASSERT(value >= 0 && to_unsigned(value) <= to_unsigned(upper),
+-             "invalid value");
+-  (void)upper;
+-  return static_cast<Int>(value);
+-}
+-template <typename T, typename Int, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-inline Int to_nonnegative_int(T value, Int upper) {
+-  if (value < 0 || value > static_cast<T>(upper))
+-    FMT_THROW(format_error("invalid value"));
+-  return static_cast<Int>(value);
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-inline T mod(T x, int y) {
+-  return x % static_cast<T>(y);
+-}
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-inline T mod(T x, int y) {
+-  return std::fmod(x, static_cast<T>(y));
+-}
+-
+-// If T is an integral type, maps T to its unsigned counterpart, otherwise
+-// leaves it unchanged (unlike std::make_unsigned).
+-template <typename T, bool INTEGRAL = std::is_integral<T>::value>
+-struct make_unsigned_or_unchanged {
+-  using type = T;
+-};
+-
+-template <typename T> struct make_unsigned_or_unchanged<T, true> {
+-  using type = typename std::make_unsigned<T>::type;
+-};
+-
+-#if FMT_SAFE_DURATION_CAST
+-// throwing version of safe_duration_cast
+-template <typename To, typename FromRep, typename FromPeriod>
+-To fmt_safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from) {
+-  int ec;
+-  To to = safe_duration_cast::safe_duration_cast<To>(from, ec);
+-  if (ec) FMT_THROW(format_error("cannot format duration"));
+-  return to;
+-}
+-#endif
+-
+-template <typename Rep, typename Period,
+-          FMT_ENABLE_IF(std::is_integral<Rep>::value)>
+-inline std::chrono::duration<Rep, std::milli> get_milliseconds(
+-    std::chrono::duration<Rep, Period> d) {
+-  // this may overflow and/or the result may not fit in the
+-  // target type.
+-#if FMT_SAFE_DURATION_CAST
+-  using CommonSecondsType =
+-      typename std::common_type<decltype(d), std::chrono::seconds>::type;
+-  const auto d_as_common = fmt_safe_duration_cast<CommonSecondsType>(d);
+-  const auto d_as_whole_seconds =
+-      fmt_safe_duration_cast<std::chrono::seconds>(d_as_common);
+-  // this conversion should be nonproblematic
+-  const auto diff = d_as_common - d_as_whole_seconds;
+-  const auto ms =
+-      fmt_safe_duration_cast<std::chrono::duration<Rep, std::milli>>(diff);
+-  return ms;
+-#else
+-  auto s = std::chrono::duration_cast<std::chrono::seconds>(d);
+-  return std::chrono::duration_cast<std::chrono::milliseconds>(d - s);
+-#endif
+-}
+-
+-// Returns the number of fractional digits in the range [0, 18] according to the
+-// C++20 spec. If more than 18 fractional digits are required then returns 6 for
+-// microseconds precision.
+-constexpr int count_fractional_digits(long long num, long long den, int n = 0) {
+-  return num % den == 0
+-             ? n
+-             : (n > 18 ? 6 : count_fractional_digits(num * 10, den, n + 1));
+-}
+-
+-constexpr long long pow10(std::uint32_t n) {
+-  return n == 0 ? 1 : 10 * pow10(n - 1);
+-}
+-
+-template <class Rep, class Period,
+-          FMT_ENABLE_IF(std::numeric_limits<Rep>::is_signed)>
+-constexpr std::chrono::duration<Rep, Period> abs(
+-    std::chrono::duration<Rep, Period> d) {
+-  // We need to compare the duration using the count() method directly
+-  // due to a compiler bug in clang-11 regarding the spaceship operator,
+-  // when -Wzero-as-null-pointer-constant is enabled.
+-  // In clang-12 the bug has been fixed. See
+-  // https://bugs.llvm.org/show_bug.cgi?id=46235 and the reproducible example:
+-  // https://www.godbolt.org/z/Knbb5joYx.
+-  return d.count() >= d.zero().count() ? d : -d;
+-}
+-
+-template <class Rep, class Period,
+-          FMT_ENABLE_IF(!std::numeric_limits<Rep>::is_signed)>
+-constexpr std::chrono::duration<Rep, Period> abs(
+-    std::chrono::duration<Rep, Period> d) {
+-  return d;
+-}
+-
+-template <typename Char, typename Rep, typename OutputIt,
+-          FMT_ENABLE_IF(std::is_integral<Rep>::value)>
+-OutputIt format_duration_value(OutputIt out, Rep val, int) {
+-  return write<Char>(out, val);
+-}
+-
+-template <typename Char, typename Rep, typename OutputIt,
+-          FMT_ENABLE_IF(std::is_floating_point<Rep>::value)>
+-OutputIt format_duration_value(OutputIt out, Rep val, int precision) {
+-  auto specs = basic_format_specs<Char>();
+-  specs.precision = precision;
+-  specs.type = precision >= 0 ? presentation_type::fixed_lower
+-                              : presentation_type::general_lower;
+-  return write<Char>(out, val, specs);
+-}
+-
+-template <typename Char, typename OutputIt>
+-OutputIt copy_unit(string_view unit, OutputIt out, Char) {
+-  return std::copy(unit.begin(), unit.end(), out);
+-}
+-
+-template <typename OutputIt>
+-OutputIt copy_unit(string_view unit, OutputIt out, wchar_t) {
+-  // This works when wchar_t is UTF-32 because units only contain characters
+-  // that have the same representation in UTF-16 and UTF-32.
+-  utf8_to_utf16 u(unit);
+-  return std::copy(u.c_str(), u.c_str() + u.size(), out);
+-}
+-
+-template <typename Char, typename Period, typename OutputIt>
+-OutputIt format_duration_unit(OutputIt out) {
+-  if (const char* unit = get_units<Period>())
+-    return copy_unit(string_view(unit), out, Char());
+-  *out++ = '[';
+-  out = write<Char>(out, Period::num);
+-  if (const_check(Period::den != 1)) {
+-    *out++ = '/';
+-    out = write<Char>(out, Period::den);
+-  }
+-  *out++ = ']';
+-  *out++ = 's';
+-  return out;
+-}
+-
+-class get_locale {
+- private:
+-  union {
+-    std::locale locale_;
+-  };
+-  bool has_locale_ = false;
+-
+- public:
+-  get_locale(bool localized, locale_ref loc) : has_locale_(localized) {
+-    if (localized)
+-      ::new (&locale_) std::locale(loc.template get<std::locale>());
+-  }
+-  ~get_locale() {
+-    if (has_locale_) locale_.~locale();
+-  }
+-  operator const std::locale&() const {
+-    return has_locale_ ? locale_ : get_classic_locale();
+-  }
+-};
+-
+-template <typename FormatContext, typename OutputIt, typename Rep,
+-          typename Period>
+-struct chrono_formatter {
+-  FormatContext& context;
+-  OutputIt out;
+-  int precision;
+-  bool localized = false;
+-  // rep is unsigned to avoid overflow.
+-  using rep =
+-      conditional_t<std::is_integral<Rep>::value && sizeof(Rep) < sizeof(int),
+-                    unsigned, typename make_unsigned_or_unchanged<Rep>::type>;
+-  rep val;
+-  using seconds = std::chrono::duration<rep>;
+-  seconds s;
+-  using milliseconds = std::chrono::duration<rep, std::milli>;
+-  bool negative;
+-
+-  using char_type = typename FormatContext::char_type;
+-  using tm_writer_type = tm_writer<OutputIt, char_type>;
+-
+-  chrono_formatter(FormatContext& ctx, OutputIt o,
+-                   std::chrono::duration<Rep, Period> d)
+-      : context(ctx),
+-        out(o),
+-        val(static_cast<rep>(d.count())),
+-        negative(false) {
+-    if (d.count() < 0) {
+-      val = 0 - val;
+-      negative = true;
+-    }
+-
+-    // this may overflow and/or the result may not fit in the
+-    // target type.
+-#if FMT_SAFE_DURATION_CAST
+-    // might need checked conversion (rep!=Rep)
+-    auto tmpval = std::chrono::duration<rep, Period>(val);
+-    s = fmt_safe_duration_cast<seconds>(tmpval);
+-#else
+-    s = std::chrono::duration_cast<seconds>(
+-        std::chrono::duration<rep, Period>(val));
+-#endif
+-  }
+-
+-  // returns true if nan or inf, writes to out.
+-  bool handle_nan_inf() {
+-    if (isfinite(val)) {
+-      return false;
+-    }
+-    if (isnan(val)) {
+-      write_nan();
+-      return true;
+-    }
+-    // must be +-inf
+-    if (val > 0) {
+-      write_pinf();
+-    } else {
+-      write_ninf();
+-    }
+-    return true;
+-  }
+-
+-  Rep hour() const { return static_cast<Rep>(mod((s.count() / 3600), 24)); }
+-
+-  Rep hour12() const {
+-    Rep hour = static_cast<Rep>(mod((s.count() / 3600), 12));
+-    return hour <= 0 ? 12 : hour;
+-  }
+-
+-  Rep minute() const { return static_cast<Rep>(mod((s.count() / 60), 60)); }
+-  Rep second() const { return static_cast<Rep>(mod(s.count(), 60)); }
+-
+-  std::tm time() const {
+-    auto time = std::tm();
+-    time.tm_hour = to_nonnegative_int(hour(), 24);
+-    time.tm_min = to_nonnegative_int(minute(), 60);
+-    time.tm_sec = to_nonnegative_int(second(), 60);
+-    return time;
+-  }
+-
+-  void write_sign() {
+-    if (negative) {
+-      *out++ = '-';
+-      negative = false;
+-    }
+-  }
+-
+-  void write(Rep value, int width) {
+-    write_sign();
+-    if (isnan(value)) return write_nan();
+-    uint32_or_64_or_128_t<int> n =
+-        to_unsigned(to_nonnegative_int(value, max_value<int>()));
+-    int num_digits = detail::count_digits(n);
+-    if (width > num_digits) out = std::fill_n(out, width - num_digits, '0');
+-    out = format_decimal<char_type>(out, n, num_digits).end;
+-  }
+-
+-  template <class Duration> void write_fractional_seconds(Duration d) {
+-    constexpr auto num_fractional_digits =
+-        count_fractional_digits(Duration::period::num, Duration::period::den);
+-
+-    using subsecond_precision = std::chrono::duration<
+-        typename std::common_type<typename Duration::rep,
+-                                  std::chrono::seconds::rep>::type,
+-        std::ratio<1, detail::pow10(num_fractional_digits)>>;
+-    if (std::ratio_less<typename subsecond_precision::period,
+-                        std::chrono::seconds::period>::value) {
+-      *out++ = '.';
+-      // Don't convert long double to integer seconds to avoid overflow.
+-      using sec = conditional_t<
+-          std::is_same<typename Duration::rep, long double>::value,
+-          std::chrono::duration<long double>, std::chrono::seconds>;
+-      auto fractional = detail::abs(d) - std::chrono::duration_cast<sec>(d);
+-      const auto subseconds =
+-          std::chrono::treat_as_floating_point<
+-              typename subsecond_precision::rep>::value
+-              ? fractional.count()
+-              : std::chrono::duration_cast<subsecond_precision>(fractional)
+-                    .count();
+-      uint32_or_64_or_128_t<long long> n =
+-          to_unsigned(to_nonnegative_int(subseconds, max_value<long long>()));
+-      int num_digits = detail::count_digits(n);
+-      if (num_fractional_digits > num_digits)
+-        out = std::fill_n(out, num_fractional_digits - num_digits, '0');
+-      out = format_decimal<char_type>(out, n, num_digits).end;
+-    }
+-  }
+-
+-  void write_nan() { std::copy_n("nan", 3, out); }
+-  void write_pinf() { std::copy_n("inf", 3, out); }
+-  void write_ninf() { std::copy_n("-inf", 4, out); }
+-
+-  template <typename Callback, typename... Args>
+-  void format_tm(const tm& time, Callback cb, Args... args) {
+-    if (isnan(val)) return write_nan();
+-    get_locale loc(localized, context.locale());
+-    auto w = tm_writer_type(loc, out, time);
+-    (w.*cb)(args...);
+-    out = w.out();
+-  }
+-
+-  void on_text(const char_type* begin, const char_type* end) {
+-    std::copy(begin, end, out);
+-  }
+-
+-  // These are not implemented because durations don't have date information.
+-  void on_abbr_weekday() {}
+-  void on_full_weekday() {}
+-  void on_dec0_weekday(numeric_system) {}
+-  void on_dec1_weekday(numeric_system) {}
+-  void on_abbr_month() {}
+-  void on_full_month() {}
+-  void on_datetime(numeric_system) {}
+-  void on_loc_date(numeric_system) {}
+-  void on_loc_time(numeric_system) {}
+-  void on_us_date() {}
+-  void on_iso_date() {}
+-  void on_utc_offset() {}
+-  void on_tz_name() {}
+-  void on_year(numeric_system) {}
+-  void on_short_year(numeric_system) {}
+-  void on_offset_year() {}
+-  void on_century(numeric_system) {}
+-  void on_iso_week_based_year() {}
+-  void on_iso_week_based_short_year() {}
+-  void on_dec_month(numeric_system) {}
+-  void on_dec0_week_of_year(numeric_system) {}
+-  void on_dec1_week_of_year(numeric_system) {}
+-  void on_iso_week_of_year(numeric_system) {}
+-  void on_day_of_year() {}
+-  void on_day_of_month(numeric_system) {}
+-  void on_day_of_month_space(numeric_system) {}
+-
+-  void on_24_hour(numeric_system ns) {
+-    if (handle_nan_inf()) return;
+-
+-    if (ns == numeric_system::standard) return write(hour(), 2);
+-    auto time = tm();
+-    time.tm_hour = to_nonnegative_int(hour(), 24);
+-    format_tm(time, &tm_writer_type::on_24_hour, ns);
+-  }
+-
+-  void on_12_hour(numeric_system ns) {
+-    if (handle_nan_inf()) return;
+-
+-    if (ns == numeric_system::standard) return write(hour12(), 2);
+-    auto time = tm();
+-    time.tm_hour = to_nonnegative_int(hour12(), 12);
+-    format_tm(time, &tm_writer_type::on_12_hour, ns);
+-  }
+-
+-  void on_minute(numeric_system ns) {
+-    if (handle_nan_inf()) return;
+-
+-    if (ns == numeric_system::standard) return write(minute(), 2);
+-    auto time = tm();
+-    time.tm_min = to_nonnegative_int(minute(), 60);
+-    format_tm(time, &tm_writer_type::on_minute, ns);
+-  }
+-
+-  void on_second(numeric_system ns) {
+-    if (handle_nan_inf()) return;
+-
+-    if (ns == numeric_system::standard) {
+-      write(second(), 2);
+-      write_fractional_seconds(std::chrono::duration<rep, Period>{val});
+-      return;
+-    }
+-    auto time = tm();
+-    time.tm_sec = to_nonnegative_int(second(), 60);
+-    format_tm(time, &tm_writer_type::on_second, ns);
+-  }
+-
+-  void on_12_hour_time() {
+-    if (handle_nan_inf()) return;
+-    format_tm(time(), &tm_writer_type::on_12_hour_time);
+-  }
+-
+-  void on_24_hour_time() {
+-    if (handle_nan_inf()) {
+-      *out++ = ':';
+-      handle_nan_inf();
+-      return;
+-    }
+-
+-    write(hour(), 2);
+-    *out++ = ':';
+-    write(minute(), 2);
+-  }
+-
+-  void on_iso_time() {
+-    on_24_hour_time();
+-    *out++ = ':';
+-    if (handle_nan_inf()) return;
+-    on_second(numeric_system::standard);
+-  }
+-
+-  void on_am_pm() {
+-    if (handle_nan_inf()) return;
+-    format_tm(time(), &tm_writer_type::on_am_pm);
+-  }
+-
+-  void on_duration_value() {
+-    if (handle_nan_inf()) return;
+-    write_sign();
+-    out = format_duration_value<char_type>(out, val, precision);
+-  }
+-
+-  void on_duration_unit() {
+-    out = format_duration_unit<char_type, Period>(out);
+-  }
+-};
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-#if defined(__cpp_lib_chrono) && __cpp_lib_chrono >= 201907
+-using weekday = std::chrono::weekday;
+-#else
+-// A fallback version of weekday.
+-class weekday {
+- private:
+-  unsigned char value;
+-
+- public:
+-  weekday() = default;
+-  explicit constexpr weekday(unsigned wd) noexcept
+-      : value(static_cast<unsigned char>(wd != 7 ? wd : 0)) {}
+-  constexpr unsigned c_encoding() const noexcept { return value; }
+-};
+-
+-class year_month_day {};
+-#endif
+-
+-// A rudimentary weekday formatter.
+-template <typename Char> struct formatter<weekday, Char> {
+- private:
+-  bool localized = false;
+-
+- public:
+-  FMT_CONSTEXPR auto parse(basic_format_parse_context<Char>& ctx)
+-      -> decltype(ctx.begin()) {
+-    auto begin = ctx.begin(), end = ctx.end();
+-    if (begin != end && *begin == 'L') {
+-      ++begin;
+-      localized = true;
+-    }
+-    return begin;
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(weekday wd, FormatContext& ctx) const -> decltype(ctx.out()) {
+-    auto time = std::tm();
+-    time.tm_wday = static_cast<int>(wd.c_encoding());
+-    detail::get_locale loc(localized, ctx.locale());
+-    auto w = detail::tm_writer<decltype(ctx.out()), Char>(loc, ctx.out(), time);
+-    w.on_abbr_weekday();
+-    return w.out();
+-  }
+-};
+-
+-template <typename Rep, typename Period, typename Char>
+-struct formatter<std::chrono::duration<Rep, Period>, Char> {
+- private:
+-  basic_format_specs<Char> specs;
+-  int precision = -1;
+-  using arg_ref_type = detail::arg_ref<Char>;
+-  arg_ref_type width_ref;
+-  arg_ref_type precision_ref;
+-  bool localized = false;
+-  basic_string_view<Char> format_str;
+-  using duration = std::chrono::duration<Rep, Period>;
+-
+-  struct spec_handler {
+-    formatter& f;
+-    basic_format_parse_context<Char>& context;
+-    basic_string_view<Char> format_str;
+-
+-    template <typename Id> FMT_CONSTEXPR arg_ref_type make_arg_ref(Id arg_id) {
+-      context.check_arg_id(arg_id);
+-      return arg_ref_type(arg_id);
+-    }
+-
+-    FMT_CONSTEXPR arg_ref_type make_arg_ref(basic_string_view<Char> arg_id) {
+-      context.check_arg_id(arg_id);
+-      return arg_ref_type(arg_id);
+-    }
+-
+-    FMT_CONSTEXPR arg_ref_type make_arg_ref(detail::auto_id) {
+-      return arg_ref_type(context.next_arg_id());
+-    }
+-
+-    void on_error(const char* msg) { FMT_THROW(format_error(msg)); }
+-    FMT_CONSTEXPR void on_fill(basic_string_view<Char> fill) {
+-      f.specs.fill = fill;
+-    }
+-    FMT_CONSTEXPR void on_align(align_t align) { f.specs.align = align; }
+-    FMT_CONSTEXPR void on_width(int width) { f.specs.width = width; }
+-    FMT_CONSTEXPR void on_precision(int _precision) {
+-      f.precision = _precision;
+-    }
+-    FMT_CONSTEXPR void end_precision() {}
+-
+-    template <typename Id> FMT_CONSTEXPR void on_dynamic_width(Id arg_id) {
+-      f.width_ref = make_arg_ref(arg_id);
+-    }
+-
+-    template <typename Id> FMT_CONSTEXPR void on_dynamic_precision(Id arg_id) {
+-      f.precision_ref = make_arg_ref(arg_id);
+-    }
+-  };
+-
+-  using iterator = typename basic_format_parse_context<Char>::iterator;
+-  struct parse_range {
+-    iterator begin;
+-    iterator end;
+-  };
+-
+-  FMT_CONSTEXPR parse_range do_parse(basic_format_parse_context<Char>& ctx) {
+-    auto begin = ctx.begin(), end = ctx.end();
+-    if (begin == end || *begin == '}') return {begin, begin};
+-    spec_handler handler{*this, ctx, format_str};
+-    begin = detail::parse_align(begin, end, handler);
+-    if (begin == end) return {begin, begin};
+-    begin = detail::parse_width(begin, end, handler);
+-    if (begin == end) return {begin, begin};
+-    if (*begin == '.') {
+-      if (std::is_floating_point<Rep>::value)
+-        begin = detail::parse_precision(begin, end, handler);
+-      else
+-        handler.on_error("precision not allowed for this argument type");
+-    }
+-    if (begin != end && *begin == 'L') {
+-      ++begin;
+-      localized = true;
+-    }
+-    end = detail::parse_chrono_format(begin, end,
+-                                      detail::chrono_format_checker());
+-    return {begin, end};
+-  }
+-
+- public:
+-  FMT_CONSTEXPR auto parse(basic_format_parse_context<Char>& ctx)
+-      -> decltype(ctx.begin()) {
+-    auto range = do_parse(ctx);
+-    format_str = basic_string_view<Char>(
+-        &*range.begin, detail::to_unsigned(range.end - range.begin));
+-    return range.end;
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(const duration& d, FormatContext& ctx) const
+-      -> decltype(ctx.out()) {
+-    auto specs_copy = specs;
+-    auto precision_copy = precision;
+-    auto begin = format_str.begin(), end = format_str.end();
+-    // As a possible future optimization, we could avoid extra copying if width
+-    // is not specified.
+-    basic_memory_buffer<Char> buf;
+-    auto out = std::back_inserter(buf);
+-    detail::handle_dynamic_spec<detail::width_checker>(specs_copy.width,
+-                                                       width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(precision_copy,
+-                                                           precision_ref, ctx);
+-    if (begin == end || *begin == '}') {
+-      out = detail::format_duration_value<Char>(out, d.count(), precision_copy);
+-      detail::format_duration_unit<Char, Period>(out);
+-    } else {
+-      detail::chrono_formatter<FormatContext, decltype(out), Rep, Period> f(
+-          ctx, out, d);
+-      f.precision = precision_copy;
+-      f.localized = localized;
+-      detail::parse_chrono_format(begin, end, f);
+-    }
+-    return detail::write(
+-        ctx.out(), basic_string_view<Char>(buf.data(), buf.size()), specs_copy);
+-  }
+-};
+-
+-template <typename Char, typename Duration>
+-struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
+-                 Char> : formatter<std::tm, Char> {
+-  FMT_CONSTEXPR formatter() {
+-    this->do_parse(default_specs,
+-                   default_specs + sizeof(default_specs) / sizeof(Char));
+-  }
+-
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return this->do_parse(ctx.begin(), ctx.end(), true);
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(std::chrono::time_point<std::chrono::system_clock> val,
+-              FormatContext& ctx) const -> decltype(ctx.out()) {
+-    return formatter<std::tm, Char>::format(localtime(val), ctx);
+-  }
+-
+-  static constexpr const Char default_specs[] = {'%', 'F', ' ', '%', 'T'};
+-};
+-
+-template <typename Char, typename Duration>
+-constexpr const Char
+-    formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
+-              Char>::default_specs[];
+-
+-template <typename Char> struct formatter<std::tm, Char> {
+- private:
+-  enum class spec {
+-    unknown,
+-    year_month_day,
+-    hh_mm_ss,
+-  };
+-  spec spec_ = spec::unknown;
+-  basic_string_view<Char> specs;
+-
+- protected:
+-  template <typename It>
+-  FMT_CONSTEXPR auto do_parse(It begin, It end, bool with_default = false)
+-      -> It {
+-    if (begin != end && *begin == ':') ++begin;
+-    end = detail::parse_chrono_format(begin, end, detail::tm_format_checker());
+-    if (!with_default || end != begin)
+-      specs = {begin, detail::to_unsigned(end - begin)};
+-    // basic_string_view<>::compare isn't constexpr before C++17.
+-    if (specs.size() == 2 && specs[0] == Char('%')) {
+-      if (specs[1] == Char('F'))
+-        spec_ = spec::year_month_day;
+-      else if (specs[1] == Char('T'))
+-        spec_ = spec::hh_mm_ss;
+-    }
+-    return end;
+-  }
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return this->do_parse(ctx.begin(), ctx.end());
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(const std::tm& tm, FormatContext& ctx) const
+-      -> decltype(ctx.out()) {
+-    const auto loc_ref = ctx.locale();
+-    detail::get_locale loc(static_cast<bool>(loc_ref), loc_ref);
+-    auto w = detail::tm_writer<decltype(ctx.out()), Char>(loc, ctx.out(), tm);
+-    if (spec_ == spec::year_month_day)
+-      w.on_iso_date();
+-    else if (spec_ == spec::hh_mm_ss)
+-      w.on_iso_time();
+-    else
+-      detail::parse_chrono_format(specs.begin(), specs.end(), w);
+-    return w.out();
+-  }
+-};
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_CHRONO_H_
+diff --git a/include/dpp/fmt/color.h b/include/dpp/fmt/color.h
+deleted file mode 100644
+index dfbe482..0000000
+--- a/include/dpp/fmt/color.h
++++ /dev/null
+@@ -1,638 +0,0 @@
+-// Formatting library for C++ - color support
+-//
+-// Copyright (c) 2018 - present, Victor Zverovich and fmt contributors
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_COLOR_H_
+-#define FMT_COLOR_H_
+-
+-#include "format.h"
+-
+-// __declspec(deprecated) is broken in some MSVC versions.
+-#if FMT_MSC_VER
+-#  define FMT_DEPRECATED_NONMSVC
+-#else
+-#  define FMT_DEPRECATED_NONMSVC FMT_DEPRECATED
+-#endif
+-
+-FMT_BEGIN_NAMESPACE
+-FMT_MODULE_EXPORT_BEGIN
+-
+-enum class color : uint32_t {
+-  alice_blue = 0xF0F8FF,               // rgb(240,248,255)
+-  antique_white = 0xFAEBD7,            // rgb(250,235,215)
+-  aqua = 0x00FFFF,                     // rgb(0,255,255)
+-  aquamarine = 0x7FFFD4,               // rgb(127,255,212)
+-  azure = 0xF0FFFF,                    // rgb(240,255,255)
+-  beige = 0xF5F5DC,                    // rgb(245,245,220)
+-  bisque = 0xFFE4C4,                   // rgb(255,228,196)
+-  black = 0x000000,                    // rgb(0,0,0)
+-  blanched_almond = 0xFFEBCD,          // rgb(255,235,205)
+-  blue = 0x0000FF,                     // rgb(0,0,255)
+-  blue_violet = 0x8A2BE2,              // rgb(138,43,226)
+-  brown = 0xA52A2A,                    // rgb(165,42,42)
+-  burly_wood = 0xDEB887,               // rgb(222,184,135)
+-  cadet_blue = 0x5F9EA0,               // rgb(95,158,160)
+-  chartreuse = 0x7FFF00,               // rgb(127,255,0)
+-  chocolate = 0xD2691E,                // rgb(210,105,30)
+-  coral = 0xFF7F50,                    // rgb(255,127,80)
+-  cornflower_blue = 0x6495ED,          // rgb(100,149,237)
+-  cornsilk = 0xFFF8DC,                 // rgb(255,248,220)
+-  crimson = 0xDC143C,                  // rgb(220,20,60)
+-  cyan = 0x00FFFF,                     // rgb(0,255,255)
+-  dark_blue = 0x00008B,                // rgb(0,0,139)
+-  dark_cyan = 0x008B8B,                // rgb(0,139,139)
+-  dark_golden_rod = 0xB8860B,          // rgb(184,134,11)
+-  dark_gray = 0xA9A9A9,                // rgb(169,169,169)
+-  dark_green = 0x006400,               // rgb(0,100,0)
+-  dark_khaki = 0xBDB76B,               // rgb(189,183,107)
+-  dark_magenta = 0x8B008B,             // rgb(139,0,139)
+-  dark_olive_green = 0x556B2F,         // rgb(85,107,47)
+-  dark_orange = 0xFF8C00,              // rgb(255,140,0)
+-  dark_orchid = 0x9932CC,              // rgb(153,50,204)
+-  dark_red = 0x8B0000,                 // rgb(139,0,0)
+-  dark_salmon = 0xE9967A,              // rgb(233,150,122)
+-  dark_sea_green = 0x8FBC8F,           // rgb(143,188,143)
+-  dark_slate_blue = 0x483D8B,          // rgb(72,61,139)
+-  dark_slate_gray = 0x2F4F4F,          // rgb(47,79,79)
+-  dark_turquoise = 0x00CED1,           // rgb(0,206,209)
+-  dark_violet = 0x9400D3,              // rgb(148,0,211)
+-  deep_pink = 0xFF1493,                // rgb(255,20,147)
+-  deep_sky_blue = 0x00BFFF,            // rgb(0,191,255)
+-  dim_gray = 0x696969,                 // rgb(105,105,105)
+-  dodger_blue = 0x1E90FF,              // rgb(30,144,255)
+-  fire_brick = 0xB22222,               // rgb(178,34,34)
+-  floral_white = 0xFFFAF0,             // rgb(255,250,240)
+-  forest_green = 0x228B22,             // rgb(34,139,34)
+-  fuchsia = 0xFF00FF,                  // rgb(255,0,255)
+-  gainsboro = 0xDCDCDC,                // rgb(220,220,220)
+-  ghost_white = 0xF8F8FF,              // rgb(248,248,255)
+-  gold = 0xFFD700,                     // rgb(255,215,0)
+-  golden_rod = 0xDAA520,               // rgb(218,165,32)
+-  gray = 0x808080,                     // rgb(128,128,128)
+-  green = 0x008000,                    // rgb(0,128,0)
+-  green_yellow = 0xADFF2F,             // rgb(173,255,47)
+-  honey_dew = 0xF0FFF0,                // rgb(240,255,240)
+-  hot_pink = 0xFF69B4,                 // rgb(255,105,180)
+-  indian_red = 0xCD5C5C,               // rgb(205,92,92)
+-  indigo = 0x4B0082,                   // rgb(75,0,130)
+-  ivory = 0xFFFFF0,                    // rgb(255,255,240)
+-  khaki = 0xF0E68C,                    // rgb(240,230,140)
+-  lavender = 0xE6E6FA,                 // rgb(230,230,250)
+-  lavender_blush = 0xFFF0F5,           // rgb(255,240,245)
+-  lawn_green = 0x7CFC00,               // rgb(124,252,0)
+-  lemon_chiffon = 0xFFFACD,            // rgb(255,250,205)
+-  light_blue = 0xADD8E6,               // rgb(173,216,230)
+-  light_coral = 0xF08080,              // rgb(240,128,128)
+-  light_cyan = 0xE0FFFF,               // rgb(224,255,255)
+-  light_golden_rod_yellow = 0xFAFAD2,  // rgb(250,250,210)
+-  light_gray = 0xD3D3D3,               // rgb(211,211,211)
+-  light_green = 0x90EE90,              // rgb(144,238,144)
+-  light_pink = 0xFFB6C1,               // rgb(255,182,193)
+-  light_salmon = 0xFFA07A,             // rgb(255,160,122)
+-  light_sea_green = 0x20B2AA,          // rgb(32,178,170)
+-  light_sky_blue = 0x87CEFA,           // rgb(135,206,250)
+-  light_slate_gray = 0x778899,         // rgb(119,136,153)
+-  light_steel_blue = 0xB0C4DE,         // rgb(176,196,222)
+-  light_yellow = 0xFFFFE0,             // rgb(255,255,224)
+-  lime = 0x00FF00,                     // rgb(0,255,0)
+-  lime_green = 0x32CD32,               // rgb(50,205,50)
+-  linen = 0xFAF0E6,                    // rgb(250,240,230)
+-  magenta = 0xFF00FF,                  // rgb(255,0,255)
+-  maroon = 0x800000,                   // rgb(128,0,0)
+-  medium_aquamarine = 0x66CDAA,        // rgb(102,205,170)
+-  medium_blue = 0x0000CD,              // rgb(0,0,205)
+-  medium_orchid = 0xBA55D3,            // rgb(186,85,211)
+-  medium_purple = 0x9370DB,            // rgb(147,112,219)
+-  medium_sea_green = 0x3CB371,         // rgb(60,179,113)
+-  medium_slate_blue = 0x7B68EE,        // rgb(123,104,238)
+-  medium_spring_green = 0x00FA9A,      // rgb(0,250,154)
+-  medium_turquoise = 0x48D1CC,         // rgb(72,209,204)
+-  medium_violet_red = 0xC71585,        // rgb(199,21,133)
+-  midnight_blue = 0x191970,            // rgb(25,25,112)
+-  mint_cream = 0xF5FFFA,               // rgb(245,255,250)
+-  misty_rose = 0xFFE4E1,               // rgb(255,228,225)
+-  moccasin = 0xFFE4B5,                 // rgb(255,228,181)
+-  navajo_white = 0xFFDEAD,             // rgb(255,222,173)
+-  navy = 0x000080,                     // rgb(0,0,128)
+-  old_lace = 0xFDF5E6,                 // rgb(253,245,230)
+-  olive = 0x808000,                    // rgb(128,128,0)
+-  olive_drab = 0x6B8E23,               // rgb(107,142,35)
+-  orange = 0xFFA500,                   // rgb(255,165,0)
+-  orange_red = 0xFF4500,               // rgb(255,69,0)
+-  orchid = 0xDA70D6,                   // rgb(218,112,214)
+-  pale_golden_rod = 0xEEE8AA,          // rgb(238,232,170)
+-  pale_green = 0x98FB98,               // rgb(152,251,152)
+-  pale_turquoise = 0xAFEEEE,           // rgb(175,238,238)
+-  pale_violet_red = 0xDB7093,          // rgb(219,112,147)
+-  papaya_whip = 0xFFEFD5,              // rgb(255,239,213)
+-  peach_puff = 0xFFDAB9,               // rgb(255,218,185)
+-  peru = 0xCD853F,                     // rgb(205,133,63)
+-  pink = 0xFFC0CB,                     // rgb(255,192,203)
+-  plum = 0xDDA0DD,                     // rgb(221,160,221)
+-  powder_blue = 0xB0E0E6,              // rgb(176,224,230)
+-  purple = 0x800080,                   // rgb(128,0,128)
+-  rebecca_purple = 0x663399,           // rgb(102,51,153)
+-  red = 0xFF0000,                      // rgb(255,0,0)
+-  rosy_brown = 0xBC8F8F,               // rgb(188,143,143)
+-  royal_blue = 0x4169E1,               // rgb(65,105,225)
+-  saddle_brown = 0x8B4513,             // rgb(139,69,19)
+-  salmon = 0xFA8072,                   // rgb(250,128,114)
+-  sandy_brown = 0xF4A460,              // rgb(244,164,96)
+-  sea_green = 0x2E8B57,                // rgb(46,139,87)
+-  sea_shell = 0xFFF5EE,                // rgb(255,245,238)
+-  sienna = 0xA0522D,                   // rgb(160,82,45)
+-  silver = 0xC0C0C0,                   // rgb(192,192,192)
+-  sky_blue = 0x87CEEB,                 // rgb(135,206,235)
+-  slate_blue = 0x6A5ACD,               // rgb(106,90,205)
+-  slate_gray = 0x708090,               // rgb(112,128,144)
+-  snow = 0xFFFAFA,                     // rgb(255,250,250)
+-  spring_green = 0x00FF7F,             // rgb(0,255,127)
+-  steel_blue = 0x4682B4,               // rgb(70,130,180)
+-  tan = 0xD2B48C,                      // rgb(210,180,140)
+-  teal = 0x008080,                     // rgb(0,128,128)
+-  thistle = 0xD8BFD8,                  // rgb(216,191,216)
+-  tomato = 0xFF6347,                   // rgb(255,99,71)
+-  turquoise = 0x40E0D0,                // rgb(64,224,208)
+-  violet = 0xEE82EE,                   // rgb(238,130,238)
+-  wheat = 0xF5DEB3,                    // rgb(245,222,179)
+-  white = 0xFFFFFF,                    // rgb(255,255,255)
+-  white_smoke = 0xF5F5F5,              // rgb(245,245,245)
+-  yellow = 0xFFFF00,                   // rgb(255,255,0)
+-  yellow_green = 0x9ACD32              // rgb(154,205,50)
+-};                                     // enum class color
+-
+-enum class terminal_color : uint8_t {
+-  black = 30,
+-  red,
+-  green,
+-  yellow,
+-  blue,
+-  magenta,
+-  cyan,
+-  white,
+-  bright_black = 90,
+-  bright_red,
+-  bright_green,
+-  bright_yellow,
+-  bright_blue,
+-  bright_magenta,
+-  bright_cyan,
+-  bright_white
+-};
+-
+-enum class emphasis : uint8_t {
+-  bold = 1,
+-  faint = 1 << 1,
+-  italic = 1 << 2,
+-  underline = 1 << 3,
+-  blink = 1 << 4,
+-  reverse = 1 << 5,
+-  conceal = 1 << 6,
+-  strikethrough = 1 << 7,
+-};
+-
+-// rgb is a struct for red, green and blue colors.
+-// Using the name "rgb" makes some editors show the color in a tooltip.
+-struct rgb {
+-  FMT_CONSTEXPR rgb() : r(0), g(0), b(0) {}
+-  FMT_CONSTEXPR rgb(uint8_t r_, uint8_t g_, uint8_t b_) : r(r_), g(g_), b(b_) {}
+-  FMT_CONSTEXPR rgb(uint32_t hex)
+-      : r((hex >> 16) & 0xFF), g((hex >> 8) & 0xFF), b(hex & 0xFF) {}
+-  FMT_CONSTEXPR rgb(color hex)
+-      : r((uint32_t(hex) >> 16) & 0xFF),
+-        g((uint32_t(hex) >> 8) & 0xFF),
+-        b(uint32_t(hex) & 0xFF) {}
+-  uint8_t r;
+-  uint8_t g;
+-  uint8_t b;
+-};
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// color is a struct of either a rgb color or a terminal color.
+-struct color_type {
+-  FMT_CONSTEXPR color_type() FMT_NOEXCEPT : is_rgb(), value{} {}
+-  FMT_CONSTEXPR color_type(color rgb_color) FMT_NOEXCEPT : is_rgb(true),
+-                                                           value{} {
+-    value.rgb_color = static_cast<uint32_t>(rgb_color);
+-  }
+-  FMT_CONSTEXPR color_type(rgb rgb_color) FMT_NOEXCEPT : is_rgb(true), value{} {
+-    value.rgb_color = (static_cast<uint32_t>(rgb_color.r) << 16) |
+-                      (static_cast<uint32_t>(rgb_color.g) << 8) | rgb_color.b;
+-  }
+-  FMT_CONSTEXPR color_type(terminal_color term_color) FMT_NOEXCEPT : is_rgb(),
+-                                                                     value{} {
+-    value.term_color = static_cast<uint8_t>(term_color);
+-  }
+-  bool is_rgb;
+-  union color_union {
+-    uint8_t term_color;
+-    uint32_t rgb_color;
+-  } value;
+-};
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-/** A text style consisting of foreground and background colors and emphasis. */
+-class text_style {
+- public:
+-  FMT_CONSTEXPR text_style(emphasis em = emphasis()) FMT_NOEXCEPT
+-      : set_foreground_color(),
+-        set_background_color(),
+-        ems(em) {}
+-
+-  FMT_CONSTEXPR text_style& operator|=(const text_style& rhs) {
+-    if (!set_foreground_color) {
+-      set_foreground_color = rhs.set_foreground_color;
+-      foreground_color = rhs.foreground_color;
+-    } else if (rhs.set_foreground_color) {
+-      if (!foreground_color.is_rgb || !rhs.foreground_color.is_rgb)
+-        FMT_THROW(format_error("can't OR a terminal color"));
+-      foreground_color.value.rgb_color |= rhs.foreground_color.value.rgb_color;
+-    }
+-
+-    if (!set_background_color) {
+-      set_background_color = rhs.set_background_color;
+-      background_color = rhs.background_color;
+-    } else if (rhs.set_background_color) {
+-      if (!background_color.is_rgb || !rhs.background_color.is_rgb)
+-        FMT_THROW(format_error("can't OR a terminal color"));
+-      background_color.value.rgb_color |= rhs.background_color.value.rgb_color;
+-    }
+-
+-    ems = static_cast<emphasis>(static_cast<uint8_t>(ems) |
+-                                static_cast<uint8_t>(rhs.ems));
+-    return *this;
+-  }
+-
+-  friend FMT_CONSTEXPR text_style operator|(text_style lhs,
+-                                            const text_style& rhs) {
+-    return lhs |= rhs;
+-  }
+-
+-  FMT_DEPRECATED_NONMSVC FMT_CONSTEXPR text_style& operator&=(
+-      const text_style& rhs) {
+-    return and_assign(rhs);
+-  }
+-
+-  FMT_DEPRECATED_NONMSVC friend FMT_CONSTEXPR text_style
+-  operator&(text_style lhs, const text_style& rhs) {
+-    return lhs.and_assign(rhs);
+-  }
+-
+-  FMT_CONSTEXPR bool has_foreground() const FMT_NOEXCEPT {
+-    return set_foreground_color;
+-  }
+-  FMT_CONSTEXPR bool has_background() const FMT_NOEXCEPT {
+-    return set_background_color;
+-  }
+-  FMT_CONSTEXPR bool has_emphasis() const FMT_NOEXCEPT {
+-    return static_cast<uint8_t>(ems) != 0;
+-  }
+-  FMT_CONSTEXPR detail::color_type get_foreground() const FMT_NOEXCEPT {
+-    FMT_ASSERT(has_foreground(), "no foreground specified for this style");
+-    return foreground_color;
+-  }
+-  FMT_CONSTEXPR detail::color_type get_background() const FMT_NOEXCEPT {
+-    FMT_ASSERT(has_background(), "no background specified for this style");
+-    return background_color;
+-  }
+-  FMT_CONSTEXPR emphasis get_emphasis() const FMT_NOEXCEPT {
+-    FMT_ASSERT(has_emphasis(), "no emphasis specified for this style");
+-    return ems;
+-  }
+-
+- private:
+-  FMT_CONSTEXPR text_style(bool is_foreground,
+-                           detail::color_type text_color) FMT_NOEXCEPT
+-      : set_foreground_color(),
+-        set_background_color(),
+-        ems() {
+-    if (is_foreground) {
+-      foreground_color = text_color;
+-      set_foreground_color = true;
+-    } else {
+-      background_color = text_color;
+-      set_background_color = true;
+-    }
+-  }
+-
+-  // DEPRECATED!
+-  FMT_CONSTEXPR text_style& and_assign(const text_style& rhs) {
+-    if (!set_foreground_color) {
+-      set_foreground_color = rhs.set_foreground_color;
+-      foreground_color = rhs.foreground_color;
+-    } else if (rhs.set_foreground_color) {
+-      if (!foreground_color.is_rgb || !rhs.foreground_color.is_rgb)
+-        FMT_THROW(format_error("can't AND a terminal color"));
+-      foreground_color.value.rgb_color &= rhs.foreground_color.value.rgb_color;
+-    }
+-
+-    if (!set_background_color) {
+-      set_background_color = rhs.set_background_color;
+-      background_color = rhs.background_color;
+-    } else if (rhs.set_background_color) {
+-      if (!background_color.is_rgb || !rhs.background_color.is_rgb)
+-        FMT_THROW(format_error("can't AND a terminal color"));
+-      background_color.value.rgb_color &= rhs.background_color.value.rgb_color;
+-    }
+-
+-    ems = static_cast<emphasis>(static_cast<uint8_t>(ems) &
+-                                static_cast<uint8_t>(rhs.ems));
+-    return *this;
+-  }
+-
+-  friend FMT_CONSTEXPR_DECL text_style fg(detail::color_type foreground)
+-      FMT_NOEXCEPT;
+-
+-  friend FMT_CONSTEXPR_DECL text_style bg(detail::color_type background)
+-      FMT_NOEXCEPT;
+-
+-  detail::color_type foreground_color;
+-  detail::color_type background_color;
+-  bool set_foreground_color;
+-  bool set_background_color;
+-  emphasis ems;
+-};
+-
+-/** Creates a text style from the foreground (text) color. */
+-FMT_CONSTEXPR inline text_style fg(detail::color_type foreground) FMT_NOEXCEPT {
+-  return text_style(true, foreground);
+-}
+-
+-/** Creates a text style from the background color. */
+-FMT_CONSTEXPR inline text_style bg(detail::color_type background) FMT_NOEXCEPT {
+-  return text_style(false, background);
+-}
+-
+-FMT_CONSTEXPR inline text_style operator|(emphasis lhs,
+-                                          emphasis rhs) FMT_NOEXCEPT {
+-  return text_style(lhs) | rhs;
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename Char> struct ansi_color_escape {
+-  FMT_CONSTEXPR ansi_color_escape(detail::color_type text_color,
+-                                  const char* esc) FMT_NOEXCEPT {
+-    // If we have a terminal color, we need to output another escape code
+-    // sequence.
+-    if (!text_color.is_rgb) {
+-      bool is_background = esc == string_view("\x1b[48;2;");
+-      uint32_t value = text_color.value.term_color;
+-      // Background ASCII codes are the same as the foreground ones but with
+-      // 10 more.
+-      if (is_background) value += 10u;
+-
+-      size_t index = 0;
+-      buffer[index++] = static_cast<Char>('\x1b');
+-      buffer[index++] = static_cast<Char>('[');
+-
+-      if (value >= 100u) {
+-        buffer[index++] = static_cast<Char>('1');
+-        value %= 100u;
+-      }
+-      buffer[index++] = static_cast<Char>('0' + value / 10u);
+-      buffer[index++] = static_cast<Char>('0' + value % 10u);
+-
+-      buffer[index++] = static_cast<Char>('m');
+-      buffer[index++] = static_cast<Char>('\0');
+-      return;
+-    }
+-
+-    for (int i = 0; i < 7; i++) {
+-      buffer[i] = static_cast<Char>(esc[i]);
+-    }
+-    rgb color(text_color.value.rgb_color);
+-    to_esc(color.r, buffer + 7, ';');
+-    to_esc(color.g, buffer + 11, ';');
+-    to_esc(color.b, buffer + 15, 'm');
+-    buffer[19] = static_cast<Char>(0);
+-  }
+-  FMT_CONSTEXPR ansi_color_escape(emphasis em) FMT_NOEXCEPT {
+-    uint8_t em_codes[num_emphases] = {};
+-    if (has_emphasis(em, emphasis::bold)) em_codes[0] = 1;
+-    if (has_emphasis(em, emphasis::faint)) em_codes[1] = 2;
+-    if (has_emphasis(em, emphasis::italic)) em_codes[2] = 3;
+-    if (has_emphasis(em, emphasis::underline)) em_codes[3] = 4;
+-    if (has_emphasis(em, emphasis::blink)) em_codes[4] = 5;
+-    if (has_emphasis(em, emphasis::reverse)) em_codes[5] = 7;
+-    if (has_emphasis(em, emphasis::conceal)) em_codes[6] = 8;
+-    if (has_emphasis(em, emphasis::strikethrough)) em_codes[7] = 9;
+-
+-    size_t index = 0;
+-    for (size_t i = 0; i < num_emphases; ++i) {
+-      if (!em_codes[i]) continue;
+-      buffer[index++] = static_cast<Char>('\x1b');
+-      buffer[index++] = static_cast<Char>('[');
+-      buffer[index++] = static_cast<Char>('0' + em_codes[i]);
+-      buffer[index++] = static_cast<Char>('m');
+-    }
+-    buffer[index++] = static_cast<Char>(0);
+-  }
+-  FMT_CONSTEXPR operator const Char*() const FMT_NOEXCEPT { return buffer; }
+-
+-  FMT_CONSTEXPR const Char* begin() const FMT_NOEXCEPT { return buffer; }
+-  FMT_CONSTEXPR_CHAR_TRAITS const Char* end() const FMT_NOEXCEPT {
+-    return buffer + std::char_traits<Char>::length(buffer);
+-  }
+-
+- private:
+-  static constexpr size_t num_emphases = 8;
+-  Char buffer[7u + 3u * num_emphases + 1u];
+-
+-  static FMT_CONSTEXPR void to_esc(uint8_t c, Char* out,
+-                                   char delimiter) FMT_NOEXCEPT {
+-    out[0] = static_cast<Char>('0' + c / 100);
+-    out[1] = static_cast<Char>('0' + c / 10 % 10);
+-    out[2] = static_cast<Char>('0' + c % 10);
+-    out[3] = static_cast<Char>(delimiter);
+-  }
+-  static FMT_CONSTEXPR bool has_emphasis(emphasis em,
+-                                         emphasis mask) FMT_NOEXCEPT {
+-    return static_cast<uint8_t>(em) & static_cast<uint8_t>(mask);
+-  }
+-};
+-
+-template <typename Char>
+-FMT_CONSTEXPR ansi_color_escape<Char> make_foreground_color(
+-    detail::color_type foreground) FMT_NOEXCEPT {
+-  return ansi_color_escape<Char>(foreground, "\x1b[38;2;");
+-}
+-
+-template <typename Char>
+-FMT_CONSTEXPR ansi_color_escape<Char> make_background_color(
+-    detail::color_type background) FMT_NOEXCEPT {
+-  return ansi_color_escape<Char>(background, "\x1b[48;2;");
+-}
+-
+-template <typename Char>
+-FMT_CONSTEXPR ansi_color_escape<Char> make_emphasis(emphasis em) FMT_NOEXCEPT {
+-  return ansi_color_escape<Char>(em);
+-}
+-
+-template <typename Char>
+-inline void fputs(const Char* chars, FILE* stream) FMT_NOEXCEPT {
+-  std::fputs(chars, stream);
+-}
+-
+-template <>
+-inline void fputs<wchar_t>(const wchar_t* chars, FILE* stream) FMT_NOEXCEPT {
+-  std::fputws(chars, stream);
+-}
+-
+-template <typename Char> inline void reset_color(FILE* stream) FMT_NOEXCEPT {
+-  fputs("\x1b[0m", stream);
+-}
+-
+-template <> inline void reset_color<wchar_t>(FILE* stream) FMT_NOEXCEPT {
+-  fputs(L"\x1b[0m", stream);
+-}
+-
+-template <typename Char>
+-inline void reset_color(buffer<Char>& buffer) FMT_NOEXCEPT {
+-  auto reset_color = string_view("\x1b[0m");
+-  buffer.append(reset_color.begin(), reset_color.end());
+-}
+-
+-template <typename Char>
+-void vformat_to(buffer<Char>& buf, const text_style& ts,
+-                basic_string_view<Char> format_str,
+-                basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  bool has_style = false;
+-  if (ts.has_emphasis()) {
+-    has_style = true;
+-    auto emphasis = detail::make_emphasis<Char>(ts.get_emphasis());
+-    buf.append(emphasis.begin(), emphasis.end());
+-  }
+-  if (ts.has_foreground()) {
+-    has_style = true;
+-    auto foreground = detail::make_foreground_color<Char>(ts.get_foreground());
+-    buf.append(foreground.begin(), foreground.end());
+-  }
+-  if (ts.has_background()) {
+-    has_style = true;
+-    auto background = detail::make_background_color<Char>(ts.get_background());
+-    buf.append(background.begin(), background.end());
+-  }
+-  detail::vformat_to(buf, format_str, args, {});
+-  if (has_style) detail::reset_color<Char>(buf);
+-}
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-template <typename S, typename Char = char_t<S>>
+-void vprint(std::FILE* f, const text_style& ts, const S& format,
+-            basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  basic_memory_buffer<Char> buf;
+-  detail::vformat_to(buf, ts, to_string_view(format), args);
+-  buf.push_back(Char(0));
+-  detail::fputs(buf.data(), f);
+-}
+-
+-/**
+-  \rst
+-  Formats a string and prints it to the specified file stream using ANSI
+-  escape sequences to specify text formatting.
+-
+-  **Example**::
+-
+-    fmt::print(fmt::emphasis::bold | fg(fmt::color::red),
+-               "Elapsed time: {0:.2f} seconds", 1.23);
+-  \endrst
+- */
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_string<S>::value)>
+-void print(std::FILE* f, const text_style& ts, const S& format_str,
+-           const Args&... args) {
+-  vprint(f, ts, format_str,
+-         fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-
+-/**
+-  \rst
+-  Formats a string and prints it to stdout using ANSI escape sequences to
+-  specify text formatting.
+-
+-  **Example**::
+-
+-    fmt::print(fmt::emphasis::bold | fg(fmt::color::red),
+-               "Elapsed time: {0:.2f} seconds", 1.23);
+-  \endrst
+- */
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_string<S>::value)>
+-void print(const text_style& ts, const S& format_str, const Args&... args) {
+-  return print(stdout, ts, format_str, args...);
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-inline std::basic_string<Char> vformat(
+-    const text_style& ts, const S& format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  basic_memory_buffer<Char> buf;
+-  detail::vformat_to(buf, ts, to_string_view(format_str), args);
+-  return fmt::to_string(buf);
+-}
+-
+-/**
+-  \rst
+-  Formats arguments and returns the result as a string using ANSI
+-  escape sequences to specify text formatting.
+-
+-  **Example**::
+-
+-    #include <fmt/color.h>
+-    std::string message = fmt::format(fmt::emphasis::bold | fg(fmt::color::red),
+-                                      "The answer is {}", 42);
+-  \endrst
+-*/
+-template <typename S, typename... Args, typename Char = char_t<S>>
+-inline std::basic_string<Char> format(const text_style& ts, const S& format_str,
+-                                      const Args&... args) {
+-  return fmt::vformat(ts, to_string_view(format_str),
+-                      fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-
+-/**
+-  Formats a string with the given text_style and writes the output to ``out``.
+- */
+-template <typename OutputIt, typename Char,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value)>
+-OutputIt vformat_to(
+-    OutputIt out, const text_style& ts, basic_string_view<Char> format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  auto&& buf = detail::get_buffer<Char>(out);
+-  detail::vformat_to(buf, ts, format_str, args);
+-  return detail::get_iterator(buf);
+-}
+-
+-/**
+-  \rst
+-  Formats arguments with the given text_style, writes the result to the output
+-  iterator ``out`` and returns the iterator past the end of the output range.
+-
+-  **Example**::
+-
+-    std::vector<char> out;
+-    fmt::format_to(std::back_inserter(out),
+-                   fmt::emphasis::bold | fg(fmt::color::red), "{}", 42);
+-  \endrst
+-*/
+-template <typename OutputIt, typename S, typename... Args,
+-          bool enable = detail::is_output_iterator<OutputIt, char_t<S>>::value&&
+-              detail::is_string<S>::value>
+-inline auto format_to(OutputIt out, const text_style& ts, const S& format_str,
+-                      Args&&... args) ->
+-    typename std::enable_if<enable, OutputIt>::type {
+-  return vformat_to(out, ts, to_string_view(format_str),
+-                    fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_COLOR_H_
+diff --git a/include/dpp/fmt/compile.h b/include/dpp/fmt/compile.h
+deleted file mode 100644
+index 1dba3dd..0000000
+--- a/include/dpp/fmt/compile.h
++++ /dev/null
+@@ -1,642 +0,0 @@
+-// Formatting library for C++ - experimental format string compilation
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich and fmt contributors
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_COMPILE_H_
+-#define FMT_COMPILE_H_
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-
+-// An output iterator that counts the number of objects written to it and
+-// discards them.
+-class counting_iterator {
+- private:
+-  size_t count_;
+-
+- public:
+-  using iterator_category = std::output_iterator_tag;
+-  using difference_type = std::ptrdiff_t;
+-  using pointer = void;
+-  using reference = void;
+-  using _Unchecked_type = counting_iterator;  // Mark iterator as checked.
+-
+-  struct value_type {
+-    template <typename T> void operator=(const T&) {}
+-  };
+-
+-  counting_iterator() : count_(0) {}
+-
+-  size_t count() const { return count_; }
+-
+-  counting_iterator& operator++() {
+-    ++count_;
+-    return *this;
+-  }
+-  counting_iterator operator++(int) {
+-    auto it = *this;
+-    ++*this;
+-    return it;
+-  }
+-
+-  friend counting_iterator operator+(counting_iterator it, difference_type n) {
+-    it.count_ += static_cast<size_t>(n);
+-    return it;
+-  }
+-
+-  value_type operator*() const { return {}; }
+-};
+-
+-template <typename Char, typename InputIt>
+-inline counting_iterator copy_str(InputIt begin, InputIt end,
+-                                  counting_iterator it) {
+-  return it + (end - begin);
+-}
+-
+-template <typename OutputIt> class truncating_iterator_base {
+- protected:
+-  OutputIt out_;
+-  size_t limit_;
+-  size_t count_ = 0;
+-
+-  truncating_iterator_base() : out_(), limit_(0) {}
+-
+-  truncating_iterator_base(OutputIt out, size_t limit)
+-      : out_(out), limit_(limit) {}
+-
+- public:
+-  using iterator_category = std::output_iterator_tag;
+-  using value_type = typename std::iterator_traits<OutputIt>::value_type;
+-  using difference_type = std::ptrdiff_t;
+-  using pointer = void;
+-  using reference = void;
+-  using _Unchecked_type =
+-      truncating_iterator_base;  // Mark iterator as checked.
+-
+-  OutputIt base() const { return out_; }
+-  size_t count() const { return count_; }
+-};
+-
+-// An output iterator that truncates the output and counts the number of objects
+-// written to it.
+-template <typename OutputIt,
+-          typename Enable = typename std::is_void<
+-              typename std::iterator_traits<OutputIt>::value_type>::type>
+-class truncating_iterator;
+-
+-template <typename OutputIt>
+-class truncating_iterator<OutputIt, std::false_type>
+-    : public truncating_iterator_base<OutputIt> {
+-  mutable typename truncating_iterator_base<OutputIt>::value_type blackhole_;
+-
+- public:
+-  using value_type = typename truncating_iterator_base<OutputIt>::value_type;
+-
+-  truncating_iterator() = default;
+-
+-  truncating_iterator(OutputIt out, size_t limit)
+-      : truncating_iterator_base<OutputIt>(out, limit) {}
+-
+-  truncating_iterator& operator++() {
+-    if (this->count_++ < this->limit_) ++this->out_;
+-    return *this;
+-  }
+-
+-  truncating_iterator operator++(int) {
+-    auto it = *this;
+-    ++*this;
+-    return it;
+-  }
+-
+-  value_type& operator*() const {
+-    return this->count_ < this->limit_ ? *this->out_ : blackhole_;
+-  }
+-};
+-
+-template <typename OutputIt>
+-class truncating_iterator<OutputIt, std::true_type>
+-    : public truncating_iterator_base<OutputIt> {
+- public:
+-  truncating_iterator() = default;
+-
+-  truncating_iterator(OutputIt out, size_t limit)
+-      : truncating_iterator_base<OutputIt>(out, limit) {}
+-
+-  template <typename T> truncating_iterator& operator=(T val) {
+-    if (this->count_++ < this->limit_) *this->out_++ = val;
+-    return *this;
+-  }
+-
+-  truncating_iterator& operator++() { return *this; }
+-  truncating_iterator& operator++(int) { return *this; }
+-  truncating_iterator& operator*() { return *this; }
+-};
+-
+-// A compile-time string which is compiled into fast formatting code.
+-class compiled_string {};
+-
+-template <typename S>
+-struct is_compiled_string : std::is_base_of<compiled_string, S> {};
+-
+-/**
+-  \rst
+-  Converts a string literal *s* into a format string that will be parsed at
+-  compile time and converted into efficient formatting code. Requires C++17
+-  ``constexpr if`` compiler support.
+-
+-  **Example**::
+-
+-    // Converts 42 into std::string using the most efficient method and no
+-    // runtime format string processing.
+-    std::string s = fmt::format(FMT_COMPILE("{}"), 42);
+-  \endrst
+- */
+-#if defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
+-#  define FMT_COMPILE(s) \
+-    FMT_STRING_IMPL(s, fmt::detail::compiled_string, explicit)
+-#else
+-#  define FMT_COMPILE(s) FMT_STRING(s)
+-#endif
+-
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct udl_compiled_string : compiled_string {
+-  using char_type = Char;
+-  constexpr operator basic_string_view<char_type>() const {
+-    return {Str.data, N - 1};
+-  }
+-};
+-#endif
+-
+-template <typename T, typename... Tail>
+-const T& first(const T& value, const Tail&...) {
+-  return value;
+-}
+-
+-#if defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
+-template <typename... Args> struct type_list {};
+-
+-// Returns a reference to the argument at index N from [first, rest...].
+-template <int N, typename T, typename... Args>
+-constexpr const auto& get([[maybe_unused]] const T& first,
+-                          [[maybe_unused]] const Args&... rest) {
+-  static_assert(N < 1 + sizeof...(Args), "index is out of bounds");
+-  if constexpr (N == 0)
+-    return first;
+-  else
+-    return detail::get<N - 1>(rest...);
+-}
+-
+-template <typename Char, typename... Args>
+-constexpr int get_arg_index_by_name(basic_string_view<Char> name,
+-                                    type_list<Args...>) {
+-  return get_arg_index_by_name<Args...>(name);
+-}
+-
+-template <int N, typename> struct get_type_impl;
+-
+-template <int N, typename... Args> struct get_type_impl<N, type_list<Args...>> {
+-  using type =
+-      remove_cvref_t<decltype(detail::get<N>(std::declval<Args>()...))>;
+-};
+-
+-template <int N, typename T>
+-using get_type = typename get_type_impl<N, T>::type;
+-
+-template <typename T> struct is_compiled_format : std::false_type {};
+-
+-template <typename Char> struct text {
+-  basic_string_view<Char> data;
+-  using char_type = Char;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&...) const {
+-    return write<Char>(out, data);
+-  }
+-};
+-
+-template <typename Char>
+-struct is_compiled_format<text<Char>> : std::true_type {};
+-
+-template <typename Char>
+-constexpr text<Char> make_text(basic_string_view<Char> s, size_t pos,
+-                               size_t size) {
+-  return {{&s[pos], size}};
+-}
+-
+-template <typename Char> struct code_unit {
+-  Char value;
+-  using char_type = Char;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&...) const {
+-    return write<Char>(out, value);
+-  }
+-};
+-
+-// This ensures that the argument type is convertible to `const T&`.
+-template <typename T, int N, typename... Args>
+-constexpr const T& get_arg_checked(const Args&... args) {
+-  const auto& arg = detail::get<N>(args...);
+-  if constexpr (detail::is_named_arg<remove_cvref_t<decltype(arg)>>()) {
+-    return arg.value;
+-  } else {
+-    return arg;
+-  }
+-}
+-
+-template <typename Char>
+-struct is_compiled_format<code_unit<Char>> : std::true_type {};
+-
+-// A replacement field that refers to argument N.
+-template <typename Char, typename T, int N> struct field {
+-  using char_type = Char;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&... args) const {
+-    return write<Char>(out, get_arg_checked<T, N>(args...));
+-  }
+-};
+-
+-template <typename Char, typename T, int N>
+-struct is_compiled_format<field<Char, T, N>> : std::true_type {};
+-
+-// A replacement field that refers to argument with name.
+-template <typename Char> struct runtime_named_field {
+-  using char_type = Char;
+-  basic_string_view<Char> name;
+-
+-  template <typename OutputIt, typename T>
+-  constexpr static bool try_format_argument(
+-      OutputIt& out,
+-      // [[maybe_unused]] due to unused-but-set-parameter warning in GCC 7,8,9
+-      [[maybe_unused]] basic_string_view<Char> arg_name, const T& arg) {
+-    if constexpr (is_named_arg<typename std::remove_cv<T>::type>::value) {
+-      if (arg_name == arg.name) {
+-        out = write<Char>(out, arg.value);
+-        return true;
+-      }
+-    }
+-    return false;
+-  }
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&... args) const {
+-    bool found = (try_format_argument(out, name, args) || ...);
+-    if (!found) {
+-      FMT_THROW(format_error("argument with specified name is not found"));
+-    }
+-    return out;
+-  }
+-};
+-
+-template <typename Char>
+-struct is_compiled_format<runtime_named_field<Char>> : std::true_type {};
+-
+-// A replacement field that refers to argument N and has format specifiers.
+-template <typename Char, typename T, int N> struct spec_field {
+-  using char_type = Char;
+-  formatter<T, Char> fmt;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr FMT_INLINE OutputIt format(OutputIt out,
+-                                       const Args&... args) const {
+-    const auto& vargs =
+-        fmt::make_format_args<basic_format_context<OutputIt, Char>>(args...);
+-    basic_format_context<OutputIt, Char> ctx(out, vargs);
+-    return fmt.format(get_arg_checked<T, N>(args...), ctx);
+-  }
+-};
+-
+-template <typename Char, typename T, int N>
+-struct is_compiled_format<spec_field<Char, T, N>> : std::true_type {};
+-
+-template <typename L, typename R> struct concat {
+-  L lhs;
+-  R rhs;
+-  using char_type = typename L::char_type;
+-
+-  template <typename OutputIt, typename... Args>
+-  constexpr OutputIt format(OutputIt out, const Args&... args) const {
+-    out = lhs.format(out, args...);
+-    return rhs.format(out, args...);
+-  }
+-};
+-
+-template <typename L, typename R>
+-struct is_compiled_format<concat<L, R>> : std::true_type {};
+-
+-template <typename L, typename R>
+-constexpr concat<L, R> make_concat(L lhs, R rhs) {
+-  return {lhs, rhs};
+-}
+-
+-struct unknown_format {};
+-
+-template <typename Char>
+-constexpr size_t parse_text(basic_string_view<Char> str, size_t pos) {
+-  for (size_t size = str.size(); pos != size; ++pos) {
+-    if (str[pos] == '{' || str[pos] == '}') break;
+-  }
+-  return pos;
+-}
+-
+-template <typename Args, size_t POS, int ID, typename S>
+-constexpr auto compile_format_string(S format_str);
+-
+-template <typename Args, size_t POS, int ID, typename T, typename S>
+-constexpr auto parse_tail(T head, S format_str) {
+-  if constexpr (POS !=
+-                basic_string_view<typename S::char_type>(format_str).size()) {
+-    constexpr auto tail = compile_format_string<Args, POS, ID>(format_str);
+-    if constexpr (std::is_same<remove_cvref_t<decltype(tail)>,
+-                               unknown_format>())
+-      return tail;
+-    else
+-      return make_concat(head, tail);
+-  } else {
+-    return head;
+-  }
+-}
+-
+-template <typename T, typename Char> struct parse_specs_result {
+-  formatter<T, Char> fmt;
+-  size_t end;
+-  int next_arg_id;
+-};
+-
+-constexpr int manual_indexing_id = -1;
+-
+-template <typename T, typename Char>
+-constexpr parse_specs_result<T, Char> parse_specs(basic_string_view<Char> str,
+-                                                  size_t pos, int next_arg_id) {
+-  str.remove_prefix(pos);
+-  auto ctx = basic_format_parse_context<Char>(str, {}, next_arg_id);
+-  auto f = formatter<T, Char>();
+-  auto end = f.parse(ctx);
+-  return {f, pos + fmt::detail::to_unsigned(end - str.data()) + 1,
+-          next_arg_id == 0 ? manual_indexing_id : ctx.next_arg_id()};
+-}
+-
+-template <typename Char> struct arg_id_handler {
+-  arg_ref<Char> arg_id;
+-
+-  constexpr int operator()() {
+-    FMT_ASSERT(false, "handler cannot be used with automatic indexing");
+-    return 0;
+-  }
+-  constexpr int operator()(int id) {
+-    arg_id = arg_ref<Char>(id);
+-    return 0;
+-  }
+-  constexpr int operator()(basic_string_view<Char> id) {
+-    arg_id = arg_ref<Char>(id);
+-    return 0;
+-  }
+-
+-  constexpr void on_error(const char* message) {
+-    FMT_THROW(format_error(message));
+-  }
+-};
+-
+-template <typename Char> struct parse_arg_id_result {
+-  arg_ref<Char> arg_id;
+-  const Char* arg_id_end;
+-};
+-
+-template <int ID, typename Char>
+-constexpr auto parse_arg_id(const Char* begin, const Char* end) {
+-  auto handler = arg_id_handler<Char>{arg_ref<Char>{}};
+-  auto arg_id_end = parse_arg_id(begin, end, handler);
+-  return parse_arg_id_result<Char>{handler.arg_id, arg_id_end};
+-}
+-
+-template <typename T, typename Enable = void> struct field_type {
+-  using type = remove_cvref_t<T>;
+-};
+-
+-template <typename T>
+-struct field_type<T, enable_if_t<detail::is_named_arg<T>::value>> {
+-  using type = remove_cvref_t<decltype(T::value)>;
+-};
+-
+-template <typename T, typename Args, size_t END_POS, int ARG_INDEX, int NEXT_ID,
+-          typename S>
+-constexpr auto parse_replacement_field_then_tail(S format_str) {
+-  using char_type = typename S::char_type;
+-  constexpr auto str = basic_string_view<char_type>(format_str);
+-  constexpr char_type c = END_POS != str.size() ? str[END_POS] : char_type();
+-  if constexpr (c == '}') {
+-    return parse_tail<Args, END_POS + 1, NEXT_ID>(
+-        field<char_type, typename field_type<T>::type, ARG_INDEX>(),
+-        format_str);
+-  } else if constexpr (c == ':') {
+-    constexpr auto result = parse_specs<typename field_type<T>::type>(
+-        str, END_POS + 1, NEXT_ID == manual_indexing_id ? 0 : NEXT_ID);
+-    return parse_tail<Args, result.end, result.next_arg_id>(
+-        spec_field<char_type, typename field_type<T>::type, ARG_INDEX>{
+-            result.fmt},
+-        format_str);
+-  }
+-}
+-
+-// Compiles a non-empty format string and returns the compiled representation
+-// or unknown_format() on unrecognized input.
+-template <typename Args, size_t POS, int ID, typename S>
+-constexpr auto compile_format_string(S format_str) {
+-  using char_type = typename S::char_type;
+-  constexpr auto str = basic_string_view<char_type>(format_str);
+-  if constexpr (str[POS] == '{') {
+-    if constexpr (POS + 1 == str.size())
+-      FMT_THROW(format_error("unmatched '{' in format string"));
+-    if constexpr (str[POS + 1] == '{') {
+-      return parse_tail<Args, POS + 2, ID>(make_text(str, POS, 1), format_str);
+-    } else if constexpr (str[POS + 1] == '}' || str[POS + 1] == ':') {
+-      static_assert(ID != manual_indexing_id,
+-                    "cannot switch from manual to automatic argument indexing");
+-      constexpr auto next_id =
+-          ID != manual_indexing_id ? ID + 1 : manual_indexing_id;
+-      return parse_replacement_field_then_tail<get_type<ID, Args>, Args,
+-                                               POS + 1, ID, next_id>(
+-          format_str);
+-    } else {
+-      constexpr auto arg_id_result =
+-          parse_arg_id<ID>(str.data() + POS + 1, str.data() + str.size());
+-      constexpr auto arg_id_end_pos = arg_id_result.arg_id_end - str.data();
+-      constexpr char_type c =
+-          arg_id_end_pos != str.size() ? str[arg_id_end_pos] : char_type();
+-      static_assert(c == '}' || c == ':', "missing '}' in format string");
+-      if constexpr (arg_id_result.arg_id.kind == arg_id_kind::index) {
+-        static_assert(
+-            ID == manual_indexing_id || ID == 0,
+-            "cannot switch from automatic to manual argument indexing");
+-        constexpr auto arg_index = arg_id_result.arg_id.val.index;
+-        return parse_replacement_field_then_tail<get_type<arg_index, Args>,
+-                                                 Args, arg_id_end_pos,
+-                                                 arg_index, manual_indexing_id>(
+-            format_str);
+-      } else if constexpr (arg_id_result.arg_id.kind == arg_id_kind::name) {
+-        constexpr auto arg_index =
+-            get_arg_index_by_name(arg_id_result.arg_id.val.name, Args{});
+-        if constexpr (arg_index != invalid_arg_index) {
+-          constexpr auto next_id =
+-              ID != manual_indexing_id ? ID + 1 : manual_indexing_id;
+-          return parse_replacement_field_then_tail<
+-              decltype(get_type<arg_index, Args>::value), Args, arg_id_end_pos,
+-              arg_index, next_id>(format_str);
+-        } else {
+-          if constexpr (c == '}') {
+-            return parse_tail<Args, arg_id_end_pos + 1, ID>(
+-                runtime_named_field<char_type>{arg_id_result.arg_id.val.name},
+-                format_str);
+-          } else if constexpr (c == ':') {
+-            return unknown_format();  // no type info for specs parsing
+-          }
+-        }
+-      }
+-    }
+-  } else if constexpr (str[POS] == '}') {
+-    if constexpr (POS + 1 == str.size())
+-      FMT_THROW(format_error("unmatched '}' in format string"));
+-    return parse_tail<Args, POS + 2, ID>(make_text(str, POS, 1), format_str);
+-  } else {
+-    constexpr auto end = parse_text(str, POS + 1);
+-    if constexpr (end - POS > 1) {
+-      return parse_tail<Args, end, ID>(make_text(str, POS, end - POS),
+-                                       format_str);
+-    } else {
+-      return parse_tail<Args, end, ID>(code_unit<char_type>{str[POS]},
+-                                       format_str);
+-    }
+-  }
+-}
+-
+-template <typename... Args, typename S,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-constexpr auto compile(S format_str) {
+-  constexpr auto str = basic_string_view<typename S::char_type>(format_str);
+-  if constexpr (str.size() == 0) {
+-    return detail::make_text(str, 0, 0);
+-  } else {
+-    constexpr auto result =
+-        detail::compile_format_string<detail::type_list<Args...>, 0, 0>(
+-            format_str);
+-    return result;
+-  }
+-}
+-#endif  // defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
+-}  // namespace detail
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-#if defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
+-
+-template <typename CompiledFormat, typename... Args,
+-          typename Char = typename CompiledFormat::char_type,
+-          FMT_ENABLE_IF(detail::is_compiled_format<CompiledFormat>::value)>
+-FMT_INLINE std::basic_string<Char> format(const CompiledFormat& cf,
+-                                          const Args&... args) {
+-  auto s = std::basic_string<Char>();
+-  cf.format(std::back_inserter(s), args...);
+-  return s;
+-}
+-
+-template <typename OutputIt, typename CompiledFormat, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_format<CompiledFormat>::value)>
+-constexpr FMT_INLINE OutputIt format_to(OutputIt out, const CompiledFormat& cf,
+-                                        const Args&... args) {
+-  return cf.format(out, args...);
+-}
+-
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-FMT_INLINE std::basic_string<typename S::char_type> format(const S&,
+-                                                           Args&&... args) {
+-  if constexpr (std::is_same<typename S::char_type, char>::value) {
+-    constexpr auto str = basic_string_view<typename S::char_type>(S());
+-    if constexpr (str.size() == 2 && str[0] == '{' && str[1] == '}') {
+-      const auto& first = detail::first(args...);
+-      if constexpr (detail::is_named_arg<
+-                        remove_cvref_t<decltype(first)>>::value) {
+-        return fmt::to_string(first.value);
+-      } else {
+-        return fmt::to_string(first);
+-      }
+-    }
+-  }
+-  constexpr auto compiled = detail::compile<Args...>(S());
+-  if constexpr (std::is_same<remove_cvref_t<decltype(compiled)>,
+-                             detail::unknown_format>()) {
+-    return format(static_cast<basic_string_view<typename S::char_type>>(S()),
+-                  std::forward<Args>(args)...);
+-  } else {
+-    return format(compiled, std::forward<Args>(args)...);
+-  }
+-}
+-
+-template <typename OutputIt, typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-FMT_CONSTEXPR OutputIt format_to(OutputIt out, const S&, Args&&... args) {
+-  constexpr auto compiled = detail::compile<Args...>(S());
+-  if constexpr (std::is_same<remove_cvref_t<decltype(compiled)>,
+-                             detail::unknown_format>()) {
+-    return format_to(out,
+-                     static_cast<basic_string_view<typename S::char_type>>(S()),
+-                     std::forward<Args>(args)...);
+-  } else {
+-    return format_to(out, compiled, std::forward<Args>(args)...);
+-  }
+-}
+-#endif
+-
+-template <typename OutputIt, typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-format_to_n_result<OutputIt> format_to_n(OutputIt out, size_t n,
+-                                         const S& format_str, Args&&... args) {
+-  auto it = format_to(detail::truncating_iterator<OutputIt>(out, n), format_str,
+-                      std::forward<Args>(args)...);
+-  return {it.base(), it.count()};
+-}
+-
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-size_t formatted_size(const S& format_str, const Args&... args) {
+-  return format_to(detail::counting_iterator(), format_str, args...).count();
+-}
+-
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-void print(std::FILE* f, const S& format_str, const Args&... args) {
+-  memory_buffer buffer;
+-  format_to(std::back_inserter(buffer), format_str, args...);
+-  detail::print(f, {buffer.data(), buffer.size()});
+-}
+-
+-template <typename S, typename... Args,
+-          FMT_ENABLE_IF(detail::is_compiled_string<S>::value)>
+-void print(const S& format_str, const Args&... args) {
+-  print(stdout, format_str, args...);
+-}
+-
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-inline namespace literals {
+-template <detail_exported::fixed_string Str>
+-constexpr detail::udl_compiled_string<
+-    remove_cvref_t<decltype(Str.data[0])>,
+-    sizeof(Str.data) / sizeof(decltype(Str.data[0])), Str>
+-operator""_cf() {
+-  return {};
+-}
+-}  // namespace literals
+-#endif
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_COMPILE_H_
+diff --git a/include/dpp/fmt/core.h b/include/dpp/fmt/core.h
+deleted file mode 100644
+index 92a7aa1..0000000
+--- a/include/dpp/fmt/core.h
++++ /dev/null
+@@ -1,3236 +0,0 @@
+-// Formatting library for C++ - the core API for char/UTF-8
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_CORE_H_
+-#define FMT_CORE_H_
+-
+-#include <cstddef>  // std::byte
+-#include <cstdio>   // std::FILE
+-#include <cstring>
+-#include <iterator>
+-#include <limits>
+-#include <string>
+-#include <type_traits>
+-
+-// The fmt library version in the form major * 10000 + minor * 100 + patch.
+-#define FMT_VERSION 80101
+-
+-#if defined(__clang__) && !defined(__ibmxl__)
+-#  define FMT_CLANG_VERSION (__clang_major__ * 100 + __clang_minor__)
+-#else
+-#  define FMT_CLANG_VERSION 0
+-#endif
+-
+-#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) && \
+-    !defined(__NVCOMPILER)
+-#  define FMT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
+-#else
+-#  define FMT_GCC_VERSION 0
+-#endif
+-
+-#ifndef FMT_GCC_PRAGMA
+-// Workaround _Pragma bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59884.
+-#  if FMT_GCC_VERSION >= 504
+-#    define FMT_GCC_PRAGMA(arg) _Pragma(arg)
+-#  else
+-#    define FMT_GCC_PRAGMA(arg)
+-#  endif
+-#endif
+-
+-#ifdef __ICL
+-#  define FMT_ICC_VERSION __ICL
+-#elif defined(__INTEL_COMPILER)
+-#  define FMT_ICC_VERSION __INTEL_COMPILER
+-#else
+-#  define FMT_ICC_VERSION 0
+-#endif
+-
+-#ifdef __NVCC__
+-#  define FMT_NVCC __NVCC__
+-#else
+-#  define FMT_NVCC 0
+-#endif
+-
+-#ifdef _MSC_VER
+-#  define FMT_MSC_VER _MSC_VER
+-#  define FMT_MSC_WARNING(...) __pragma(warning(__VA_ARGS__))
+-#else
+-#  define FMT_MSC_VER 0
+-#  define FMT_MSC_WARNING(...)
+-#endif
+-
+-#ifdef __has_feature
+-#  define FMT_HAS_FEATURE(x) __has_feature(x)
+-#else
+-#  define FMT_HAS_FEATURE(x) 0
+-#endif
+-
+-#if defined(__has_include) &&                             \
+-    (!defined(__INTELLISENSE__) || FMT_MSC_VER > 1900) && \
+-    (!FMT_ICC_VERSION || FMT_ICC_VERSION >= 1600)
+-#  define FMT_HAS_INCLUDE(x) __has_include(x)
+-#else
+-#  define FMT_HAS_INCLUDE(x) 0
+-#endif
+-
+-#ifdef __has_cpp_attribute
+-#  define FMT_HAS_CPP_ATTRIBUTE(x) __has_cpp_attribute(x)
+-#else
+-#  define FMT_HAS_CPP_ATTRIBUTE(x) 0
+-#endif
+-
+-#ifdef _MSVC_LANG
+-#  define FMT_CPLUSPLUS _MSVC_LANG
+-#else
+-#  define FMT_CPLUSPLUS __cplusplus
+-#endif
+-
+-#define FMT_HAS_CPP14_ATTRIBUTE(attribute) \
+-  (FMT_CPLUSPLUS >= 201402L && FMT_HAS_CPP_ATTRIBUTE(attribute))
+-
+-#define FMT_HAS_CPP17_ATTRIBUTE(attribute) \
+-  (FMT_CPLUSPLUS >= 201703L && FMT_HAS_CPP_ATTRIBUTE(attribute))
+-
+-// Check if relaxed C++14 constexpr is supported.
+-// GCC doesn't allow throw in constexpr until version 6 (bug 67371).
+-#ifndef FMT_USE_CONSTEXPR
+-#  define FMT_USE_CONSTEXPR                                           \
+-    (FMT_HAS_FEATURE(cxx_relaxed_constexpr) || FMT_MSC_VER >= 1912 || \
+-     (FMT_GCC_VERSION >= 600 && __cplusplus >= 201402L)) &&           \
+-        !FMT_NVCC && !FMT_ICC_VERSION
+-#endif
+-#if FMT_USE_CONSTEXPR
+-#  define FMT_CONSTEXPR constexpr
+-#  define FMT_CONSTEXPR_DECL constexpr
+-#else
+-#  define FMT_CONSTEXPR
+-#  define FMT_CONSTEXPR_DECL
+-#endif
+-
+-#if ((__cplusplus >= 202002L) &&                              \
+-     (!defined(_GLIBCXX_RELEASE) || _GLIBCXX_RELEASE > 9)) || \
+-    (__cplusplus >= 201709L && FMT_GCC_VERSION >= 1002)
+-#  define FMT_CONSTEXPR20 constexpr
+-#else
+-#  define FMT_CONSTEXPR20
+-#endif
+-
+-// Check if constexpr std::char_traits<>::compare,length is supported.
+-#if defined(__GLIBCXX__)
+-#  if __cplusplus >= 201703L && defined(_GLIBCXX_RELEASE) && \
+-      _GLIBCXX_RELEASE >= 7  // GCC 7+ libstdc++ has _GLIBCXX_RELEASE.
+-#    define FMT_CONSTEXPR_CHAR_TRAITS constexpr
+-#  endif
+-#elif defined(_LIBCPP_VERSION) && __cplusplus >= 201703L && \
+-    _LIBCPP_VERSION >= 4000
+-#  define FMT_CONSTEXPR_CHAR_TRAITS constexpr
+-#elif FMT_MSC_VER >= 1914 && _MSVC_LANG >= 201703L
+-#  define FMT_CONSTEXPR_CHAR_TRAITS constexpr
+-#endif
+-#ifndef FMT_CONSTEXPR_CHAR_TRAITS
+-#  define FMT_CONSTEXPR_CHAR_TRAITS
+-#endif
+-
+-// Check if exceptions are disabled.
+-#ifndef FMT_EXCEPTIONS
+-#  if (defined(__GNUC__) && !defined(__EXCEPTIONS)) || \
+-      FMT_MSC_VER && !_HAS_EXCEPTIONS
+-#    define FMT_EXCEPTIONS 0
+-#  else
+-#    define FMT_EXCEPTIONS 1
+-#  endif
+-#endif
+-
+-// Define FMT_USE_NOEXCEPT to make fmt use noexcept (C++11 feature).
+-#ifndef FMT_USE_NOEXCEPT
+-#  define FMT_USE_NOEXCEPT 0
+-#endif
+-
+-#if FMT_USE_NOEXCEPT || FMT_HAS_FEATURE(cxx_noexcept) || \
+-    FMT_GCC_VERSION >= 408 || FMT_MSC_VER >= 1900
+-#  define FMT_DETECTED_NOEXCEPT noexcept
+-#  define FMT_HAS_CXX11_NOEXCEPT 1
+-#else
+-#  define FMT_DETECTED_NOEXCEPT throw()
+-#  define FMT_HAS_CXX11_NOEXCEPT 0
+-#endif
+-
+-#ifndef FMT_NOEXCEPT
+-#  if FMT_EXCEPTIONS || FMT_HAS_CXX11_NOEXCEPT
+-#    define FMT_NOEXCEPT FMT_DETECTED_NOEXCEPT
+-#  else
+-#    define FMT_NOEXCEPT
+-#  endif
+-#endif
+-
+-// [[noreturn]] is disabled on MSVC and NVCC because of bogus unreachable code
+-// warnings.
+-#if FMT_EXCEPTIONS && FMT_HAS_CPP_ATTRIBUTE(noreturn) && !FMT_MSC_VER && \
+-    !FMT_NVCC
+-#  define FMT_NORETURN [[noreturn]]
+-#else
+-#  define FMT_NORETURN
+-#endif
+-
+-#if __cplusplus == 201103L || __cplusplus == 201402L
+-#  if defined(__INTEL_COMPILER) || defined(__PGI)
+-#    define FMT_FALLTHROUGH
+-#  elif defined(__clang__)
+-#    define FMT_FALLTHROUGH [[clang::fallthrough]]
+-#  elif FMT_GCC_VERSION >= 700 && \
+-      (!defined(__EDG_VERSION__) || __EDG_VERSION__ >= 520)
+-#    define FMT_FALLTHROUGH [[gnu::fallthrough]]
+-#  else
+-#    define FMT_FALLTHROUGH
+-#  endif
+-#elif FMT_HAS_CPP17_ATTRIBUTE(fallthrough)
+-#  define FMT_FALLTHROUGH [[fallthrough]]
+-#else
+-#  define FMT_FALLTHROUGH
+-#endif
+-
+-#ifndef FMT_NODISCARD
+-#  if FMT_HAS_CPP17_ATTRIBUTE(nodiscard)
+-#    define FMT_NODISCARD [[nodiscard]]
+-#  else
+-#    define FMT_NODISCARD
+-#  endif
+-#endif
+-
+-#ifndef FMT_USE_FLOAT
+-#  define FMT_USE_FLOAT 1
+-#endif
+-#ifndef FMT_USE_DOUBLE
+-#  define FMT_USE_DOUBLE 1
+-#endif
+-#ifndef FMT_USE_LONG_DOUBLE
+-#  define FMT_USE_LONG_DOUBLE 1
+-#endif
+-
+-#ifndef FMT_INLINE
+-#  if FMT_GCC_VERSION || FMT_CLANG_VERSION
+-#    define FMT_INLINE inline __attribute__((always_inline))
+-#  else
+-#    define FMT_INLINE inline
+-#  endif
+-#endif
+-
+-#ifndef FMT_DEPRECATED
+-#  if FMT_HAS_CPP14_ATTRIBUTE(deprecated) || FMT_MSC_VER >= 1900
+-#    define FMT_DEPRECATED [[deprecated]]
+-#  else
+-#    if (defined(__GNUC__) && !defined(__LCC__)) || defined(__clang__)
+-#      define FMT_DEPRECATED __attribute__((deprecated))
+-#    elif FMT_MSC_VER
+-#      define FMT_DEPRECATED __declspec(deprecated)
+-#    else
+-#      define FMT_DEPRECATED /* deprecated */
+-#    endif
+-#  endif
+-#endif
+-
+-#ifndef FMT_BEGIN_NAMESPACE
+-#  define FMT_BEGIN_NAMESPACE \
+-    namespace fmt {           \
+-    inline namespace v8 {
+-#  define FMT_END_NAMESPACE \
+-    }                       \
+-    }
+-#endif
+-
+-#ifndef FMT_MODULE_EXPORT
+-#  define FMT_MODULE_EXPORT
+-#  define FMT_MODULE_EXPORT_BEGIN
+-#  define FMT_MODULE_EXPORT_END
+-#  define FMT_BEGIN_DETAIL_NAMESPACE namespace detail {
+-#  define FMT_END_DETAIL_NAMESPACE }
+-#endif
+-
+-#if !defined(FMT_HEADER_ONLY) && defined(_WIN32)
+-#  define FMT_CLASS_API FMT_MSC_WARNING(suppress : 4275)
+-#  ifdef FMT_EXPORT
+-#    define FMT_API __declspec(dllexport)
+-#  elif defined(FMT_SHARED)
+-#    define FMT_API __declspec(dllimport)
+-#  endif
+-#else
+-#  define FMT_CLASS_API
+-#  if defined(FMT_EXPORT) || defined(FMT_SHARED)
+-#    if defined(__GNUC__) || defined(__clang__)
+-#      define FMT_API __attribute__((visibility("default")))
+-#    endif
+-#  endif
+-#endif
+-#ifndef FMT_API
+-#  define FMT_API
+-#endif
+-
+-// libc++ supports string_view in pre-c++17.
+-#if (FMT_HAS_INCLUDE(<string_view>) &&                       \
+-     (__cplusplus > 201402L || defined(_LIBCPP_VERSION))) || \
+-    (defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910)
+-#  include <string_view>
+-#  define FMT_USE_STRING_VIEW
+-#elif FMT_HAS_INCLUDE("experimental/string_view") && __cplusplus >= 201402L
+-#  include <experimental/string_view>
+-#  define FMT_USE_EXPERIMENTAL_STRING_VIEW
+-#endif
+-
+-#ifndef FMT_UNICODE
+-#  define FMT_UNICODE !FMT_MSC_VER
+-#endif
+-
+-#ifndef FMT_CONSTEVAL
+-#  if ((FMT_GCC_VERSION >= 1000 || FMT_CLANG_VERSION >= 1101) &&      \
+-       __cplusplus > 201703L && !defined(__apple_build_version__)) || \
+-      (defined(__cpp_consteval) &&                                    \
+-       (!FMT_MSC_VER || _MSC_FULL_VER >= 193030704))
+-// consteval is broken in MSVC before VS2022 and Apple clang 13.
+-#    define FMT_CONSTEVAL consteval
+-#    define FMT_HAS_CONSTEVAL
+-#  else
+-#    define FMT_CONSTEVAL
+-#  endif
+-#endif
+-
+-#ifndef FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-#  if defined(__cpp_nontype_template_args) &&                \
+-      ((FMT_GCC_VERSION >= 903 && __cplusplus >= 201709L) || \
+-       __cpp_nontype_template_args >= 201911L)
+-#    define FMT_USE_NONTYPE_TEMPLATE_PARAMETERS 1
+-#  else
+-#    define FMT_USE_NONTYPE_TEMPLATE_PARAMETERS 0
+-#  endif
+-#endif
+-
+-// Enable minimal optimizations for more compact code in debug mode.
+-FMT_GCC_PRAGMA("GCC push_options")
+-#ifndef __OPTIMIZE__
+-FMT_GCC_PRAGMA("GCC optimize(\"Og\")")
+-#endif
+-
+-FMT_BEGIN_NAMESPACE
+-FMT_MODULE_EXPORT_BEGIN
+-
+-// Implementations of enable_if_t and other metafunctions for older systems.
+-template <bool B, typename T = void>
+-using enable_if_t = typename std::enable_if<B, T>::type;
+-template <bool B, typename T, typename F>
+-using conditional_t = typename std::conditional<B, T, F>::type;
+-template <bool B> using bool_constant = std::integral_constant<bool, B>;
+-template <typename T>
+-using remove_reference_t = typename std::remove_reference<T>::type;
+-template <typename T>
+-using remove_const_t = typename std::remove_const<T>::type;
+-template <typename T>
+-using remove_cvref_t = typename std::remove_cv<remove_reference_t<T>>::type;
+-template <typename T> struct type_identity { using type = T; };
+-template <typename T> using type_identity_t = typename type_identity<T>::type;
+-
+-struct monostate {
+-  constexpr monostate() {}
+-};
+-
+-// An enable_if helper to be used in template parameters which results in much
+-// shorter symbols: https://godbolt.org/z/sWw4vP. Extra parentheses are needed
+-// to workaround a bug in MSVC 2019 (see #1140 and #1186).
+-#ifdef FMT_DOC
+-#  define FMT_ENABLE_IF(...)
+-#else
+-#  define FMT_ENABLE_IF(...) enable_if_t<(__VA_ARGS__), int> = 0
+-#endif
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// Suppress "unused variable" warnings with the method described in
+-// https://herbsutter.com/2009/10/18/mailbag-shutting-up-compiler-warnings/.
+-// (void)var does not work on many Intel compilers.
+-template <typename... T> FMT_CONSTEXPR void ignore_unused(const T&...) {}
+-
+-constexpr FMT_INLINE auto is_constant_evaluated(bool default_value = false)
+-    FMT_NOEXCEPT -> bool {
+-#ifdef __cpp_lib_is_constant_evaluated
+-  ignore_unused(default_value);
+-  return std::is_constant_evaluated();
+-#else
+-  return default_value;
+-#endif
+-}
+-
+-// A function to suppress "conditional expression is constant" warnings.
+-template <typename T> constexpr FMT_INLINE auto const_check(T value) -> T {
+-  return value;
+-}
+-
+-FMT_NORETURN FMT_API void assert_fail(const char* file, int line,
+-                                      const char* message);
+-
+-#ifndef FMT_ASSERT
+-#  ifdef NDEBUG
+-// FMT_ASSERT is not empty to avoid -Werror=empty-body.
+-#    define FMT_ASSERT(condition, message) \
+-      ::fmt::detail::ignore_unused((condition), (message))
+-#  else
+-#    define FMT_ASSERT(condition, message)                                    \
+-      ((condition) /* void() fails with -Winvalid-constexpr on clang 4.0.1 */ \
+-           ? (void)0                                                          \
+-           : ::fmt::detail::assert_fail(__FILE__, __LINE__, (message)))
+-#  endif
+-#endif
+-
+-#ifdef __cpp_lib_byte
+-using byte = std::byte;
+-#else
+-enum class byte : unsigned char {};
+-#endif
+-
+-#if defined(FMT_USE_STRING_VIEW)
+-template <typename Char> using std_string_view = std::basic_string_view<Char>;
+-#elif defined(FMT_USE_EXPERIMENTAL_STRING_VIEW)
+-template <typename Char>
+-using std_string_view = std::experimental::basic_string_view<Char>;
+-#else
+-template <typename T> struct std_string_view {};
+-#endif
+-
+-#ifdef FMT_USE_INT128
+-// Do nothing.
+-#elif defined(__SIZEOF_INT128__) && !FMT_NVCC && \
+-    !(FMT_CLANG_VERSION && FMT_MSC_VER)
+-#  define FMT_USE_INT128 1
+-using int128_t = __int128_t;
+-using uint128_t = __uint128_t;
+-template <typename T> inline auto convert_for_visit(T value) -> T {
+-  return value;
+-}
+-#else
+-#  define FMT_USE_INT128 0
+-#endif
+-#if !FMT_USE_INT128
+-enum class int128_t {};
+-enum class uint128_t {};
+-// Reduce template instantiations.
+-template <typename T> inline auto convert_for_visit(T) -> monostate {
+-  return {};
+-}
+-#endif
+-
+-// Casts a nonnegative integer to unsigned.
+-template <typename Int>
+-FMT_CONSTEXPR auto to_unsigned(Int value) ->
+-    typename std::make_unsigned<Int>::type {
+-  FMT_ASSERT(value >= 0, "negative value");
+-  return static_cast<typename std::make_unsigned<Int>::type>(value);
+-}
+-
+-FMT_MSC_WARNING(suppress : 4566) constexpr unsigned char micro[] = "\u00B5";
+-
+-constexpr auto is_utf8() -> bool {
+-  // Avoid buggy sign extensions in MSVC's constant evaluation mode.
+-  // https://developercommunity.visualstudio.com/t/C-difference-in-behavior-for-unsigned/1233612
+-  using uchar = unsigned char;
+-  return FMT_UNICODE || (sizeof(micro) == 3 && uchar(micro[0]) == 0xC2 &&
+-                         uchar(micro[1]) == 0xB5);
+-}
+-FMT_END_DETAIL_NAMESPACE
+-
+-/**
+-  An implementation of ``std::basic_string_view`` for pre-C++17. It provides a
+-  subset of the API. ``fmt::basic_string_view`` is used for format strings even
+-  if ``std::string_view`` is available to prevent issues when a library is
+-  compiled with a different ``-std`` option than the client code (which is not
+-  recommended).
+- */
+-template <typename Char> class basic_string_view {
+- private:
+-  const Char* data_;
+-  size_t size_;
+-
+- public:
+-  using value_type = Char;
+-  using iterator = const Char*;
+-
+-  constexpr basic_string_view() FMT_NOEXCEPT : data_(nullptr), size_(0) {}
+-
+-  /** Constructs a string reference object from a C string and a size. */
+-  constexpr basic_string_view(const Char* s, size_t count) FMT_NOEXCEPT
+-      : data_(s),
+-        size_(count) {}
+-
+-  /**
+-    \rst
+-    Constructs a string reference object from a C string computing
+-    the size with ``std::char_traits<Char>::length``.
+-    \endrst
+-   */
+-  FMT_CONSTEXPR_CHAR_TRAITS
+-  FMT_INLINE
+-  basic_string_view(const Char* s)
+-      : data_(s),
+-        size_(detail::const_check(std::is_same<Char, char>::value &&
+-                                  !detail::is_constant_evaluated(true))
+-                  ? std::strlen(reinterpret_cast<const char*>(s))
+-                  : std::char_traits<Char>::length(s)) {}
+-
+-  /** Constructs a string reference from a ``std::basic_string`` object. */
+-  template <typename Traits, typename Alloc>
+-  FMT_CONSTEXPR basic_string_view(
+-      const std::basic_string<Char, Traits, Alloc>& s) FMT_NOEXCEPT
+-      : data_(s.data()),
+-        size_(s.size()) {}
+-
+-  template <typename S, FMT_ENABLE_IF(std::is_same<
+-                                      S, detail::std_string_view<Char>>::value)>
+-  FMT_CONSTEXPR basic_string_view(S s) FMT_NOEXCEPT : data_(s.data()),
+-                                                      size_(s.size()) {}
+-
+-  /** Returns a pointer to the string data. */
+-  constexpr auto data() const FMT_NOEXCEPT -> const Char* { return data_; }
+-
+-  /** Returns the string size. */
+-  constexpr auto size() const FMT_NOEXCEPT -> size_t { return size_; }
+-
+-  constexpr auto begin() const FMT_NOEXCEPT -> iterator { return data_; }
+-  constexpr auto end() const FMT_NOEXCEPT -> iterator { return data_ + size_; }
+-
+-  constexpr auto operator[](size_t pos) const FMT_NOEXCEPT -> const Char& {
+-    return data_[pos];
+-  }
+-
+-  FMT_CONSTEXPR void remove_prefix(size_t n) FMT_NOEXCEPT {
+-    data_ += n;
+-    size_ -= n;
+-  }
+-
+-  // Lexicographically compare this string reference to other.
+-  FMT_CONSTEXPR_CHAR_TRAITS auto compare(basic_string_view other) const -> int {
+-    size_t str_size = size_ < other.size_ ? size_ : other.size_;
+-    int result = std::char_traits<Char>::compare(data_, other.data_, str_size);
+-    if (result == 0)
+-      result = size_ == other.size_ ? 0 : (size_ < other.size_ ? -1 : 1);
+-    return result;
+-  }
+-
+-  FMT_CONSTEXPR_CHAR_TRAITS friend auto operator==(basic_string_view lhs,
+-                                                   basic_string_view rhs)
+-      -> bool {
+-    return lhs.compare(rhs) == 0;
+-  }
+-  friend auto operator!=(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) != 0;
+-  }
+-  friend auto operator<(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) < 0;
+-  }
+-  friend auto operator<=(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) <= 0;
+-  }
+-  friend auto operator>(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) > 0;
+-  }
+-  friend auto operator>=(basic_string_view lhs, basic_string_view rhs) -> bool {
+-    return lhs.compare(rhs) >= 0;
+-  }
+-};
+-
+-using string_view = basic_string_view<char>;
+-
+-/** Specifies if ``T`` is a character type. Can be specialized by users. */
+-template <typename T> struct is_char : std::false_type {};
+-template <> struct is_char<char> : std::true_type {};
+-
+-// Returns a string view of `s`.
+-template <typename Char, FMT_ENABLE_IF(is_char<Char>::value)>
+-FMT_INLINE auto to_string_view(const Char* s) -> basic_string_view<Char> {
+-  return s;
+-}
+-template <typename Char, typename Traits, typename Alloc>
+-inline auto to_string_view(const std::basic_string<Char, Traits, Alloc>& s)
+-    -> basic_string_view<Char> {
+-  return s;
+-}
+-template <typename Char>
+-constexpr auto to_string_view(basic_string_view<Char> s)
+-    -> basic_string_view<Char> {
+-  return s;
+-}
+-template <typename Char,
+-          FMT_ENABLE_IF(!std::is_empty<detail::std_string_view<Char>>::value)>
+-inline auto to_string_view(detail::std_string_view<Char> s)
+-    -> basic_string_view<Char> {
+-  return s;
+-}
+-
+-// A base class for compile-time strings. It is defined in the fmt namespace to
+-// make formatting functions visible via ADL, e.g. format(FMT_STRING("{}"), 42).
+-struct compile_string {};
+-
+-template <typename S>
+-struct is_compile_string : std::is_base_of<compile_string, S> {};
+-
+-template <typename S, FMT_ENABLE_IF(is_compile_string<S>::value)>
+-constexpr auto to_string_view(const S& s)
+-    -> basic_string_view<typename S::char_type> {
+-  return basic_string_view<typename S::char_type>(s);
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-void to_string_view(...);
+-using fmt::to_string_view;
+-
+-// Specifies whether S is a string type convertible to fmt::basic_string_view.
+-// It should be a constexpr function but MSVC 2017 fails to compile it in
+-// enable_if and MSVC 2015 fails to compile it as an alias template.
+-template <typename S>
+-struct is_string : std::is_class<decltype(to_string_view(std::declval<S>()))> {
+-};
+-
+-template <typename S, typename = void> struct char_t_impl {};
+-template <typename S> struct char_t_impl<S, enable_if_t<is_string<S>::value>> {
+-  using result = decltype(to_string_view(std::declval<S>()));
+-  using type = typename result::value_type;
+-};
+-
+-// Reports a compile-time error if S is not a valid format string.
+-template <typename..., typename S, FMT_ENABLE_IF(!is_compile_string<S>::value)>
+-FMT_INLINE void check_format_string(const S&) {
+-#ifdef FMT_ENFORCE_COMPILE_STRING
+-  static_assert(is_compile_string<S>::value,
+-                "FMT_ENFORCE_COMPILE_STRING requires all format strings to use "
+-                "FMT_STRING.");
+-#endif
+-}
+-template <typename..., typename S, FMT_ENABLE_IF(is_compile_string<S>::value)>
+-void check_format_string(S);
+-
+-FMT_NORETURN FMT_API void throw_format_error(const char* message);
+-
+-struct error_handler {
+-  constexpr error_handler() = default;
+-  constexpr error_handler(const error_handler&) = default;
+-
+-  // This function is intentionally not constexpr to give a compile-time error.
+-  FMT_NORETURN FMT_API void on_error(const char* message);
+-};
+-FMT_END_DETAIL_NAMESPACE
+-
+-/** String's character type. */
+-template <typename S> using char_t = typename detail::char_t_impl<S>::type;
+-
+-/**
+-  \rst
+-  Parsing context consisting of a format string range being parsed and an
+-  argument counter for automatic indexing.
+-  You can use the ``format_parse_context`` type alias for ``char`` instead.
+-  \endrst
+- */
+-template <typename Char, typename ErrorHandler = detail::error_handler>
+-class basic_format_parse_context : private ErrorHandler {
+- private:
+-  basic_string_view<Char> format_str_;
+-  int next_arg_id_;
+-
+- public:
+-  using char_type = Char;
+-  using iterator = typename basic_string_view<Char>::iterator;
+-
+-  explicit constexpr basic_format_parse_context(
+-      basic_string_view<Char> format_str, ErrorHandler eh = {},
+-      int next_arg_id = 0)
+-      : ErrorHandler(eh), format_str_(format_str), next_arg_id_(next_arg_id) {}
+-
+-  /**
+-    Returns an iterator to the beginning of the format string range being
+-    parsed.
+-   */
+-  constexpr auto begin() const FMT_NOEXCEPT -> iterator {
+-    return format_str_.begin();
+-  }
+-
+-  /**
+-    Returns an iterator past the end of the format string range being parsed.
+-   */
+-  constexpr auto end() const FMT_NOEXCEPT -> iterator {
+-    return format_str_.end();
+-  }
+-
+-  /** Advances the begin iterator to ``it``. */
+-  FMT_CONSTEXPR void advance_to(iterator it) {
+-    format_str_.remove_prefix(detail::to_unsigned(it - begin()));
+-  }
+-
+-  /**
+-    Reports an error if using the manual argument indexing; otherwise returns
+-    the next argument index and switches to the automatic indexing.
+-   */
+-  FMT_CONSTEXPR auto next_arg_id() -> int {
+-    // Don't check if the argument id is valid to avoid overhead and because it
+-    // will be checked during formatting anyway.
+-    if (next_arg_id_ >= 0) return next_arg_id_++;
+-    on_error("cannot switch from manual to automatic argument indexing");
+-    return 0;
+-  }
+-
+-  /**
+-    Reports an error if using the automatic argument indexing; otherwise
+-    switches to the manual indexing.
+-   */
+-  FMT_CONSTEXPR void check_arg_id(int) {
+-    if (next_arg_id_ > 0)
+-      on_error("cannot switch from automatic to manual argument indexing");
+-    else
+-      next_arg_id_ = -1;
+-  }
+-
+-  FMT_CONSTEXPR void check_arg_id(basic_string_view<Char>) {}
+-
+-  FMT_CONSTEXPR void on_error(const char* message) {
+-    ErrorHandler::on_error(message);
+-  }
+-
+-  constexpr auto error_handler() const -> ErrorHandler { return *this; }
+-};
+-
+-using format_parse_context = basic_format_parse_context<char>;
+-
+-template <typename Context> class basic_format_arg;
+-template <typename Context> class basic_format_args;
+-template <typename Context> class dynamic_format_arg_store;
+-
+-// A formatter for objects of type T.
+-template <typename T, typename Char = char, typename Enable = void>
+-struct formatter {
+-  // A deleted default constructor indicates a disabled formatter.
+-  formatter() = delete;
+-};
+-
+-// Specifies if T has an enabled formatter specialization. A type can be
+-// formattable even if it doesn't have a formatter e.g. via a conversion.
+-template <typename T, typename Context>
+-using has_formatter =
+-    std::is_constructible<typename Context::template formatter_type<T>>;
+-
+-// Checks whether T is a container with contiguous storage.
+-template <typename T> struct is_contiguous : std::false_type {};
+-template <typename Char>
+-struct is_contiguous<std::basic_string<Char>> : std::true_type {};
+-
+-class appender;
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename Context, typename T>
+-constexpr auto has_const_formatter_impl(T*)
+-    -> decltype(typename Context::template formatter_type<T>().format(
+-                    std::declval<const T&>(), std::declval<Context&>()),
+-                true) {
+-  return true;
+-}
+-template <typename Context>
+-constexpr auto has_const_formatter_impl(...) -> bool {
+-  return false;
+-}
+-template <typename T, typename Context>
+-constexpr auto has_const_formatter() -> bool {
+-  return has_const_formatter_impl<Context>(static_cast<T*>(nullptr));
+-}
+-
+-// Extracts a reference to the container from back_insert_iterator.
+-template <typename Container>
+-inline auto get_container(std::back_insert_iterator<Container> it)
+-    -> Container& {
+-  using bi_iterator = std::back_insert_iterator<Container>;
+-  struct accessor : bi_iterator {
+-    accessor(bi_iterator iter) : bi_iterator(iter) {}
+-    using bi_iterator::container;
+-  };
+-  return *accessor(it).container;
+-}
+-
+-template <typename Char, typename InputIt, typename OutputIt>
+-FMT_CONSTEXPR auto copy_str(InputIt begin, InputIt end, OutputIt out)
+-    -> OutputIt {
+-  while (begin != end) *out++ = static_cast<Char>(*begin++);
+-  return out;
+-}
+-
+-template <typename Char, typename T, typename U,
+-          FMT_ENABLE_IF(
+-              std::is_same<remove_const_t<T>, U>::value&& is_char<U>::value)>
+-FMT_CONSTEXPR auto copy_str(T* begin, T* end, U* out) -> U* {
+-  if (is_constant_evaluated()) return copy_str<Char, T*, U*>(begin, end, out);
+-  auto size = to_unsigned(end - begin);
+-  memcpy(out, begin, size * sizeof(U));
+-  return out + size;
+-}
+-
+-/**
+-  \rst
+-  A contiguous memory buffer with an optional growing ability. It is an internal
+-  class and shouldn't be used directly, only via `~fmt::basic_memory_buffer`.
+-  \endrst
+- */
+-template <typename T> class buffer {
+- private:
+-  T* ptr_;
+-  size_t size_;
+-  size_t capacity_;
+-
+- protected:
+-  // Don't initialize ptr_ since it is not accessed to save a few cycles.
+-  FMT_MSC_WARNING(suppress : 26495)
+-  buffer(size_t sz) FMT_NOEXCEPT : size_(sz), capacity_(sz) {}
+-
+-  FMT_CONSTEXPR20 buffer(T* p = nullptr, size_t sz = 0,
+-                         size_t cap = 0) FMT_NOEXCEPT : ptr_(p),
+-                                                        size_(sz),
+-                                                        capacity_(cap) {}
+-
+-  FMT_CONSTEXPR20 ~buffer() = default;
+-  buffer(buffer&&) = default;
+-
+-  /** Sets the buffer data and capacity. */
+-  FMT_CONSTEXPR void set(T* buf_data, size_t buf_capacity) FMT_NOEXCEPT {
+-    ptr_ = buf_data;
+-    capacity_ = buf_capacity;
+-  }
+-
+-  /** Increases the buffer capacity to hold at least *capacity* elements. */
+-  virtual FMT_CONSTEXPR20 void grow(size_t capacity) = 0;
+-
+- public:
+-  using value_type = T;
+-  using const_reference = const T&;
+-
+-  buffer(const buffer&) = delete;
+-  void operator=(const buffer&) = delete;
+-
+-  auto begin() FMT_NOEXCEPT -> T* { return ptr_; }
+-  auto end() FMT_NOEXCEPT -> T* { return ptr_ + size_; }
+-
+-  auto begin() const FMT_NOEXCEPT -> const T* { return ptr_; }
+-  auto end() const FMT_NOEXCEPT -> const T* { return ptr_ + size_; }
+-
+-  /** Returns the size of this buffer. */
+-  constexpr auto size() const FMT_NOEXCEPT -> size_t { return size_; }
+-
+-  /** Returns the capacity of this buffer. */
+-  constexpr auto capacity() const FMT_NOEXCEPT -> size_t { return capacity_; }
+-
+-  /** Returns a pointer to the buffer data. */
+-  FMT_CONSTEXPR auto data() FMT_NOEXCEPT -> T* { return ptr_; }
+-
+-  /** Returns a pointer to the buffer data. */
+-  FMT_CONSTEXPR auto data() const FMT_NOEXCEPT -> const T* { return ptr_; }
+-
+-  /** Clears this buffer. */
+-  void clear() { size_ = 0; }
+-
+-  // Tries resizing the buffer to contain *count* elements. If T is a POD type
+-  // the new elements may not be initialized.
+-  FMT_CONSTEXPR20 void try_resize(size_t count) {
+-    try_reserve(count);
+-    size_ = count <= capacity_ ? count : capacity_;
+-  }
+-
+-  // Tries increasing the buffer capacity to *new_capacity*. It can increase the
+-  // capacity by a smaller amount than requested but guarantees there is space
+-  // for at least one additional element either by increasing the capacity or by
+-  // flushing the buffer if it is full.
+-  FMT_CONSTEXPR20 void try_reserve(size_t new_capacity) {
+-    if (new_capacity > capacity_) grow(new_capacity);
+-  }
+-
+-  FMT_CONSTEXPR20 void push_back(const T& value) {
+-    try_reserve(size_ + 1);
+-    ptr_[size_++] = value;
+-  }
+-
+-  /** Appends data to the end of the buffer. */
+-  template <typename U> void append(const U* begin, const U* end);
+-
+-  template <typename I> FMT_CONSTEXPR auto operator[](I index) -> T& {
+-    return ptr_[index];
+-  }
+-  template <typename I>
+-  FMT_CONSTEXPR auto operator[](I index) const -> const T& {
+-    return ptr_[index];
+-  }
+-};
+-
+-struct buffer_traits {
+-  explicit buffer_traits(size_t) {}
+-  auto count() const -> size_t { return 0; }
+-  auto limit(size_t size) -> size_t { return size; }
+-};
+-
+-class fixed_buffer_traits {
+- private:
+-  size_t count_ = 0;
+-  size_t limit_;
+-
+- public:
+-  explicit fixed_buffer_traits(size_t limit) : limit_(limit) {}
+-  auto count() const -> size_t { return count_; }
+-  auto limit(size_t size) -> size_t {
+-    size_t n = limit_ > count_ ? limit_ - count_ : 0;
+-    count_ += size;
+-    return size < n ? size : n;
+-  }
+-};
+-
+-// A buffer that writes to an output iterator when flushed.
+-template <typename OutputIt, typename T, typename Traits = buffer_traits>
+-class iterator_buffer final : public Traits, public buffer<T> {
+- private:
+-  OutputIt out_;
+-  enum { buffer_size = 256 };
+-  T data_[buffer_size];
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t) override {
+-    if (this->size() == buffer_size) flush();
+-  }
+-
+-  void flush() {
+-    auto size = this->size();
+-    this->clear();
+-    out_ = copy_str<T>(data_, data_ + this->limit(size), out_);
+-  }
+-
+- public:
+-  explicit iterator_buffer(OutputIt out, size_t n = buffer_size)
+-      : Traits(n), buffer<T>(data_, 0, buffer_size), out_(out) {}
+-  iterator_buffer(iterator_buffer&& other)
+-      : Traits(other), buffer<T>(data_, 0, buffer_size), out_(other.out_) {}
+-  ~iterator_buffer() { flush(); }
+-
+-  auto out() -> OutputIt {
+-    flush();
+-    return out_;
+-  }
+-  auto count() const -> size_t { return Traits::count() + this->size(); }
+-};
+-
+-template <typename T>
+-class iterator_buffer<T*, T, fixed_buffer_traits> final
+-    : public fixed_buffer_traits,
+-      public buffer<T> {
+- private:
+-  T* out_;
+-  enum { buffer_size = 256 };
+-  T data_[buffer_size];
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t) override {
+-    if (this->size() == this->capacity()) flush();
+-  }
+-
+-  void flush() {
+-    size_t n = this->limit(this->size());
+-    if (this->data() == out_) {
+-      out_ += n;
+-      this->set(data_, buffer_size);
+-    }
+-    this->clear();
+-  }
+-
+- public:
+-  explicit iterator_buffer(T* out, size_t n = buffer_size)
+-      : fixed_buffer_traits(n), buffer<T>(out, 0, n), out_(out) {}
+-  iterator_buffer(iterator_buffer&& other)
+-      : fixed_buffer_traits(other),
+-        buffer<T>(std::move(other)),
+-        out_(other.out_) {
+-    if (this->data() != out_) {
+-      this->set(data_, buffer_size);
+-      this->clear();
+-    }
+-  }
+-  ~iterator_buffer() { flush(); }
+-
+-  auto out() -> T* {
+-    flush();
+-    return out_;
+-  }
+-  auto count() const -> size_t {
+-    return fixed_buffer_traits::count() + this->size();
+-  }
+-};
+-
+-template <typename T> class iterator_buffer<T*, T> final : public buffer<T> {
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t) override {}
+-
+- public:
+-  explicit iterator_buffer(T* out, size_t = 0) : buffer<T>(out, 0, ~size_t()) {}
+-
+-  auto out() -> T* { return &*this->end(); }
+-};
+-
+-// A buffer that writes to a container with the contiguous storage.
+-template <typename Container>
+-class iterator_buffer<std::back_insert_iterator<Container>,
+-                      enable_if_t<is_contiguous<Container>::value,
+-                                  typename Container::value_type>>
+-    final : public buffer<typename Container::value_type> {
+- private:
+-  Container& container_;
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t capacity) override {
+-    container_.resize(capacity);
+-    this->set(&container_[0], capacity);
+-  }
+-
+- public:
+-  explicit iterator_buffer(Container& c)
+-      : buffer<typename Container::value_type>(c.size()), container_(c) {}
+-  explicit iterator_buffer(std::back_insert_iterator<Container> out, size_t = 0)
+-      : iterator_buffer(get_container(out)) {}
+-  auto out() -> std::back_insert_iterator<Container> {
+-    return std::back_inserter(container_);
+-  }
+-};
+-
+-// A buffer that counts the number of code units written discarding the output.
+-template <typename T = char> class counting_buffer final : public buffer<T> {
+- private:
+-  enum { buffer_size = 256 };
+-  T data_[buffer_size];
+-  size_t count_ = 0;
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t) override {
+-    if (this->size() != buffer_size) return;
+-    count_ += this->size();
+-    this->clear();
+-  }
+-
+- public:
+-  counting_buffer() : buffer<T>(data_, 0, buffer_size) {}
+-
+-  auto count() -> size_t { return count_ + this->size(); }
+-};
+-
+-template <typename T>
+-using buffer_appender = conditional_t<std::is_same<T, char>::value, appender,
+-                                      std::back_insert_iterator<buffer<T>>>;
+-
+-// Maps an output iterator to a buffer.
+-template <typename T, typename OutputIt>
+-auto get_buffer(OutputIt out) -> iterator_buffer<OutputIt, T> {
+-  return iterator_buffer<OutputIt, T>(out);
+-}
+-
+-template <typename Buffer>
+-auto get_iterator(Buffer& buf) -> decltype(buf.out()) {
+-  return buf.out();
+-}
+-template <typename T> auto get_iterator(buffer<T>& buf) -> buffer_appender<T> {
+-  return buffer_appender<T>(buf);
+-}
+-
+-template <typename T, typename Char = char, typename Enable = void>
+-struct fallback_formatter {
+-  fallback_formatter() = delete;
+-};
+-
+-// Specifies if T has an enabled fallback_formatter specialization.
+-template <typename T, typename Char>
+-using has_fallback_formatter =
+-    std::is_constructible<fallback_formatter<T, Char>>;
+-
+-struct view {};
+-
+-template <typename Char, typename T> struct named_arg : view {
+-  const Char* name;
+-  const T& value;
+-  named_arg(const Char* n, const T& v) : name(n), value(v) {}
+-};
+-
+-template <typename Char> struct named_arg_info {
+-  const Char* name;
+-  int id;
+-};
+-
+-template <typename T, typename Char, size_t NUM_ARGS, size_t NUM_NAMED_ARGS>
+-struct arg_data {
+-  // args_[0].named_args points to named_args_ to avoid bloating format_args.
+-  // +1 to workaround a bug in gcc 7.5 that causes duplicated-branches warning.
+-  T args_[1 + (NUM_ARGS != 0 ? NUM_ARGS : +1)];
+-  named_arg_info<Char> named_args_[NUM_NAMED_ARGS];
+-
+-  template <typename... U>
+-  arg_data(const U&... init) : args_{T(named_args_, NUM_NAMED_ARGS), init...} {}
+-  arg_data(const arg_data& other) = delete;
+-  auto args() const -> const T* { return args_ + 1; }
+-  auto named_args() -> named_arg_info<Char>* { return named_args_; }
+-};
+-
+-template <typename T, typename Char, size_t NUM_ARGS>
+-struct arg_data<T, Char, NUM_ARGS, 0> {
+-  // +1 to workaround a bug in gcc 7.5 that causes duplicated-branches warning.
+-  T args_[NUM_ARGS != 0 ? NUM_ARGS : +1];
+-
+-  template <typename... U>
+-  FMT_CONSTEXPR FMT_INLINE arg_data(const U&... init) : args_{init...} {}
+-  FMT_CONSTEXPR FMT_INLINE auto args() const -> const T* { return args_; }
+-  FMT_CONSTEXPR FMT_INLINE auto named_args() -> std::nullptr_t {
+-    return nullptr;
+-  }
+-};
+-
+-template <typename Char>
+-inline void init_named_args(named_arg_info<Char>*, int, int) {}
+-
+-template <typename T> struct is_named_arg : std::false_type {};
+-template <typename T> struct is_statically_named_arg : std::false_type {};
+-
+-template <typename T, typename Char>
+-struct is_named_arg<named_arg<Char, T>> : std::true_type {};
+-
+-template <typename Char, typename T, typename... Tail,
+-          FMT_ENABLE_IF(!is_named_arg<T>::value)>
+-void init_named_args(named_arg_info<Char>* named_args, int arg_count,
+-                     int named_arg_count, const T&, const Tail&... args) {
+-  init_named_args(named_args, arg_count + 1, named_arg_count, args...);
+-}
+-
+-template <typename Char, typename T, typename... Tail,
+-          FMT_ENABLE_IF(is_named_arg<T>::value)>
+-void init_named_args(named_arg_info<Char>* named_args, int arg_count,
+-                     int named_arg_count, const T& arg, const Tail&... args) {
+-  named_args[named_arg_count++] = {arg.name, arg_count};
+-  init_named_args(named_args, arg_count + 1, named_arg_count, args...);
+-}
+-
+-template <typename... Args>
+-FMT_CONSTEXPR FMT_INLINE void init_named_args(std::nullptr_t, int, int,
+-                                              const Args&...) {}
+-
+-template <bool B = false> constexpr auto count() -> size_t { return B ? 1 : 0; }
+-template <bool B1, bool B2, bool... Tail> constexpr auto count() -> size_t {
+-  return (B1 ? 1 : 0) + count<B2, Tail...>();
+-}
+-
+-template <typename... Args> constexpr auto count_named_args() -> size_t {
+-  return count<is_named_arg<Args>::value...>();
+-}
+-
+-template <typename... Args>
+-constexpr auto count_statically_named_args() -> size_t {
+-  return count<is_statically_named_arg<Args>::value...>();
+-}
+-
+-enum class type {
+-  none_type,
+-  // Integer types should go first,
+-  int_type,
+-  uint_type,
+-  long_long_type,
+-  ulong_long_type,
+-  int128_type,
+-  uint128_type,
+-  bool_type,
+-  char_type,
+-  last_integer_type = char_type,
+-  // followed by floating-point types.
+-  float_type,
+-  double_type,
+-  long_double_type,
+-  last_numeric_type = long_double_type,
+-  cstring_type,
+-  string_type,
+-  pointer_type,
+-  custom_type
+-};
+-
+-// Maps core type T to the corresponding type enum constant.
+-template <typename T, typename Char>
+-struct type_constant : std::integral_constant<type, type::custom_type> {};
+-
+-#define FMT_TYPE_CONSTANT(Type, constant) \
+-  template <typename Char>                \
+-  struct type_constant<Type, Char>        \
+-      : std::integral_constant<type, type::constant> {}
+-
+-FMT_TYPE_CONSTANT(int, int_type);
+-FMT_TYPE_CONSTANT(unsigned, uint_type);
+-FMT_TYPE_CONSTANT(long long, long_long_type);
+-FMT_TYPE_CONSTANT(unsigned long long, ulong_long_type);
+-FMT_TYPE_CONSTANT(int128_t, int128_type);
+-FMT_TYPE_CONSTANT(uint128_t, uint128_type);
+-FMT_TYPE_CONSTANT(bool, bool_type);
+-FMT_TYPE_CONSTANT(Char, char_type);
+-FMT_TYPE_CONSTANT(float, float_type);
+-FMT_TYPE_CONSTANT(double, double_type);
+-FMT_TYPE_CONSTANT(long double, long_double_type);
+-FMT_TYPE_CONSTANT(const Char*, cstring_type);
+-FMT_TYPE_CONSTANT(basic_string_view<Char>, string_type);
+-FMT_TYPE_CONSTANT(const void*, pointer_type);
+-
+-constexpr bool is_integral_type(type t) {
+-  return t > type::none_type && t <= type::last_integer_type;
+-}
+-
+-constexpr bool is_arithmetic_type(type t) {
+-  return t > type::none_type && t <= type::last_numeric_type;
+-}
+-
+-struct unformattable {};
+-struct unformattable_char : unformattable {};
+-struct unformattable_const : unformattable {};
+-struct unformattable_pointer : unformattable {};
+-
+-template <typename Char> struct string_value {
+-  const Char* data;
+-  size_t size;
+-};
+-
+-template <typename Char> struct named_arg_value {
+-  const named_arg_info<Char>* data;
+-  size_t size;
+-};
+-
+-template <typename Context> struct custom_value {
+-  using parse_context = typename Context::parse_context_type;
+-  void* value;
+-  void (*format)(void* arg, parse_context& parse_ctx, Context& ctx);
+-};
+-
+-// A formatting argument value.
+-template <typename Context> class value {
+- public:
+-  using char_type = typename Context::char_type;
+-
+-  union {
+-    monostate no_value;
+-    int int_value;
+-    unsigned uint_value;
+-    long long long_long_value;
+-    unsigned long long ulong_long_value;
+-    int128_t int128_value;
+-    uint128_t uint128_value;
+-    bool bool_value;
+-    char_type char_value;
+-    float float_value;
+-    double double_value;
+-    long double long_double_value;
+-    const void* pointer;
+-    string_value<char_type> string;
+-    custom_value<Context> custom;
+-    named_arg_value<char_type> named_args;
+-  };
+-
+-  constexpr FMT_INLINE value() : no_value() {}
+-  constexpr FMT_INLINE value(int val) : int_value(val) {}
+-  constexpr FMT_INLINE value(unsigned val) : uint_value(val) {}
+-  constexpr FMT_INLINE value(long long val) : long_long_value(val) {}
+-  constexpr FMT_INLINE value(unsigned long long val) : ulong_long_value(val) {}
+-  FMT_INLINE value(int128_t val) : int128_value(val) {}
+-  FMT_INLINE value(uint128_t val) : uint128_value(val) {}
+-  constexpr FMT_INLINE value(float val) : float_value(val) {}
+-  constexpr FMT_INLINE value(double val) : double_value(val) {}
+-  FMT_INLINE value(long double val) : long_double_value(val) {}
+-  constexpr FMT_INLINE value(bool val) : bool_value(val) {}
+-  constexpr FMT_INLINE value(char_type val) : char_value(val) {}
+-  FMT_CONSTEXPR FMT_INLINE value(const char_type* val) {
+-    string.data = val;
+-    if (is_constant_evaluated()) string.size = {};
+-  }
+-  FMT_CONSTEXPR FMT_INLINE value(basic_string_view<char_type> val) {
+-    string.data = val.data();
+-    string.size = val.size();
+-  }
+-  FMT_INLINE value(const void* val) : pointer(val) {}
+-  FMT_INLINE value(const named_arg_info<char_type>* args, size_t size)
+-      : named_args{args, size} {}
+-
+-  template <typename T> FMT_CONSTEXPR FMT_INLINE value(T& val) {
+-    using value_type = remove_cvref_t<T>;
+-    custom.value = const_cast<value_type*>(&val);
+-    // Get the formatter type through the context to allow different contexts
+-    // have different extension points, e.g. `formatter<T>` for `format` and
+-    // `printf_formatter<T>` for `printf`.
+-    custom.format = format_custom_arg<
+-        value_type,
+-        conditional_t<has_formatter<value_type, Context>::value,
+-                      typename Context::template formatter_type<value_type>,
+-                      fallback_formatter<value_type, char_type>>>;
+-  }
+-  value(unformattable);
+-  value(unformattable_char);
+-  value(unformattable_const);
+-  value(unformattable_pointer);
+-
+- private:
+-  // Formats an argument of a custom type, such as a user-defined class.
+-  template <typename T, typename Formatter>
+-  static void format_custom_arg(void* arg,
+-                                typename Context::parse_context_type& parse_ctx,
+-                                Context& ctx) {
+-    auto f = Formatter();
+-    parse_ctx.advance_to(f.parse(parse_ctx));
+-    using qualified_type =
+-        conditional_t<has_const_formatter<T, Context>(), const T, T>;
+-    ctx.advance_to(f.format(*static_cast<qualified_type*>(arg), ctx));
+-  }
+-};
+-
+-template <typename Context, typename T>
+-FMT_CONSTEXPR auto make_arg(const T& value) -> basic_format_arg<Context>;
+-
+-// To minimize the number of types we need to deal with, long is translated
+-// either to int or to long long depending on its size.
+-enum { long_short = sizeof(long) == sizeof(int) };
+-using long_type = conditional_t<long_short, int, long long>;
+-using ulong_type = conditional_t<long_short, unsigned, unsigned long long>;
+-
+-// Maps formatting arguments to core types.
+-// arg_mapper reports errors by returning unformattable instead of using
+-// static_assert because it's used in the is_formattable trait.
+-template <typename Context> struct arg_mapper {
+-  using char_type = typename Context::char_type;
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(signed char val) -> int { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned char val) -> unsigned {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(short val) -> int { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned short val) -> unsigned {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(int val) -> int { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned val) -> unsigned { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(long val) -> long_type { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned long val) -> ulong_type {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(long long val) -> long long { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(unsigned long long val)
+-      -> unsigned long long {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(int128_t val) -> int128_t { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(uint128_t val) -> uint128_t { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(bool val) -> bool { return val; }
+-
+-  template <typename T, FMT_ENABLE_IF(std::is_same<T, char>::value ||
+-                                      std::is_same<T, char_type>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(T val) -> char_type {
+-    return val;
+-  }
+-  template <typename T, enable_if_t<(std::is_same<T, wchar_t>::value ||
+-#ifdef __cpp_char8_t
+-                                     std::is_same<T, char8_t>::value ||
+-#endif
+-                                     std::is_same<T, char16_t>::value ||
+-                                     std::is_same<T, char32_t>::value) &&
+-                                        !std::is_same<T, char_type>::value,
+-                                    int> = 0>
+-  FMT_CONSTEXPR FMT_INLINE auto map(T) -> unformattable_char {
+-    return {};
+-  }
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(float val) -> float { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(double val) -> double { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(long double val) -> long double {
+-    return val;
+-  }
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(char_type* val) -> const char_type* {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(const char_type* val) -> const char_type* {
+-    return val;
+-  }
+-  template <typename T,
+-            FMT_ENABLE_IF(is_string<T>::value && !std::is_pointer<T>::value &&
+-                          std::is_same<char_type, char_t<T>>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
+-      -> basic_string_view<char_type> {
+-    return to_string_view(val);
+-  }
+-  template <typename T,
+-            FMT_ENABLE_IF(is_string<T>::value && !std::is_pointer<T>::value &&
+-                          !std::is_same<char_type, char_t<T>>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T&) -> unformattable_char {
+-    return {};
+-  }
+-  template <typename T,
+-            FMT_ENABLE_IF(
+-                std::is_constructible<basic_string_view<char_type>, T>::value &&
+-                !is_string<T>::value && !has_formatter<T, Context>::value &&
+-                !has_fallback_formatter<T, char_type>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
+-      -> basic_string_view<char_type> {
+-    return basic_string_view<char_type>(val);
+-  }
+-  template <
+-      typename T,
+-      FMT_ENABLE_IF(
+-          std::is_constructible<std_string_view<char_type>, T>::value &&
+-          !std::is_constructible<basic_string_view<char_type>, T>::value &&
+-          !is_string<T>::value && !has_formatter<T, Context>::value &&
+-          !has_fallback_formatter<T, char_type>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
+-      -> basic_string_view<char_type> {
+-    return std_string_view<char_type>(val);
+-  }
+-
+-  using cstring_result = conditional_t<std::is_same<char_type, char>::value,
+-                                       const char*, unformattable_pointer>;
+-
+-  FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(const signed char* val)
+-      -> cstring_result {
+-    return map(reinterpret_cast<const char*>(val));
+-  }
+-  FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(const unsigned char* val)
+-      -> cstring_result {
+-    return map(reinterpret_cast<const char*>(val));
+-  }
+-  FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(signed char* val)
+-      -> cstring_result {
+-    return map(reinterpret_cast<const char*>(val));
+-  }
+-  FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(unsigned char* val)
+-      -> cstring_result {
+-    return map(reinterpret_cast<const char*>(val));
+-  }
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(void* val) -> const void* { return val; }
+-  FMT_CONSTEXPR FMT_INLINE auto map(const void* val) -> const void* {
+-    return val;
+-  }
+-  FMT_CONSTEXPR FMT_INLINE auto map(std::nullptr_t val) -> const void* {
+-    return val;
+-  }
+-
+-  // We use SFINAE instead of a const T* parameter to avoid conflicting with
+-  // the C array overload.
+-  template <
+-      typename T,
+-      FMT_ENABLE_IF(
+-          std::is_member_pointer<T>::value ||
+-          std::is_function<typename std::remove_pointer<T>::type>::value ||
+-          (std::is_convertible<const T&, const void*>::value &&
+-           !std::is_convertible<const T&, const char_type*>::value))>
+-  FMT_CONSTEXPR auto map(const T&) -> unformattable_pointer {
+-    return {};
+-  }
+-
+-  template <typename T, std::size_t N,
+-            FMT_ENABLE_IF(!std::is_same<T, wchar_t>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T (&values)[N]) -> const T (&)[N] {
+-    return values;
+-  }
+-
+-  template <typename T,
+-            FMT_ENABLE_IF(
+-                std::is_enum<T>::value&& std::is_convertible<T, int>::value &&
+-                !has_formatter<T, Context>::value &&
+-                !has_fallback_formatter<T, char_type>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
+-      -> decltype(std::declval<arg_mapper>().map(
+-          static_cast<typename std::underlying_type<T>::type>(val))) {
+-    return map(static_cast<typename std::underlying_type<T>::type>(val));
+-  }
+-
+-  FMT_CONSTEXPR FMT_INLINE auto map(detail::byte val) -> unsigned {
+-    return map(static_cast<unsigned char>(val));
+-  }
+-
+-  template <typename T, typename U = remove_cvref_t<T>>
+-  struct formattable
+-      : bool_constant<has_const_formatter<U, Context>() ||
+-                      !std::is_const<remove_reference_t<T>>::value ||
+-                      has_fallback_formatter<U, char_type>::value> {};
+-
+-#if FMT_MSC_VER != 0 && FMT_MSC_VER < 1910
+-  // Workaround a bug in MSVC.
+-  template <typename T> FMT_CONSTEXPR FMT_INLINE auto do_map(T&& val) -> T& {
+-    return val;
+-  }
+-#else
+-  template <typename T, FMT_ENABLE_IF(formattable<T>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto do_map(T&& val) -> T& {
+-    return val;
+-  }
+-  template <typename T, FMT_ENABLE_IF(!formattable<T>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto do_map(T&&) -> unformattable_const {
+-    return {};
+-  }
+-#endif
+-
+-  template <typename T, typename U = remove_cvref_t<T>,
+-            FMT_ENABLE_IF(!is_string<U>::value && !is_char<U>::value &&
+-                          !std::is_array<U>::value &&
+-                          (has_formatter<U, Context>::value ||
+-                           has_fallback_formatter<U, char_type>::value))>
+-  FMT_CONSTEXPR FMT_INLINE auto map(T&& val)
+-      -> decltype(this->do_map(std::forward<T>(val))) {
+-    return do_map(std::forward<T>(val));
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(is_named_arg<T>::value)>
+-  FMT_CONSTEXPR FMT_INLINE auto map(const T& named_arg)
+-      -> decltype(std::declval<arg_mapper>().map(named_arg.value)) {
+-    return map(named_arg.value);
+-  }
+-
+-  auto map(...) -> unformattable { return {}; }
+-};
+-
+-// A type constant after applying arg_mapper<Context>.
+-template <typename T, typename Context>
+-using mapped_type_constant =
+-    type_constant<decltype(arg_mapper<Context>().map(std::declval<const T&>())),
+-                  typename Context::char_type>;
+-
+-enum { packed_arg_bits = 4 };
+-// Maximum number of arguments with packed types.
+-enum { max_packed_args = 62 / packed_arg_bits };
+-enum : unsigned long long { is_unpacked_bit = 1ULL << 63 };
+-enum : unsigned long long { has_named_args_bit = 1ULL << 62 };
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-// An output iterator that appends to a buffer.
+-// It is used to reduce symbol sizes for the common case.
+-class appender : public std::back_insert_iterator<detail::buffer<char>> {
+-  using base = std::back_insert_iterator<detail::buffer<char>>;
+-
+-  template <typename T>
+-  friend auto get_buffer(appender out) -> detail::buffer<char>& {
+-    return detail::get_container(out);
+-  }
+-
+- public:
+-  using std::back_insert_iterator<detail::buffer<char>>::back_insert_iterator;
+-  appender(base it) FMT_NOEXCEPT : base(it) {}
+-  using _Unchecked_type = appender;  // Mark iterator as checked.
+-
+-  auto operator++() FMT_NOEXCEPT -> appender& { return *this; }
+-
+-  auto operator++(int) FMT_NOEXCEPT -> appender { return *this; }
+-};
+-
+-// A formatting argument. It is a trivially copyable/constructible type to
+-// allow storage in basic_memory_buffer.
+-template <typename Context> class basic_format_arg {
+- private:
+-  detail::value<Context> value_;
+-  detail::type type_;
+-
+-  template <typename ContextType, typename T>
+-  friend FMT_CONSTEXPR auto detail::make_arg(const T& value)
+-      -> basic_format_arg<ContextType>;
+-
+-  template <typename Visitor, typename Ctx>
+-  friend FMT_CONSTEXPR auto visit_format_arg(Visitor&& vis,
+-                                             const basic_format_arg<Ctx>& arg)
+-      -> decltype(vis(0));
+-
+-  friend class basic_format_args<Context>;
+-  friend class dynamic_format_arg_store<Context>;
+-
+-  using char_type = typename Context::char_type;
+-
+-  template <typename T, typename Char, size_t NUM_ARGS, size_t NUM_NAMED_ARGS>
+-  friend struct detail::arg_data;
+-
+-  basic_format_arg(const detail::named_arg_info<char_type>* args, size_t size)
+-      : value_(args, size) {}
+-
+- public:
+-  class handle {
+-   public:
+-    explicit handle(detail::custom_value<Context> custom) : custom_(custom) {}
+-
+-    void format(typename Context::parse_context_type& parse_ctx,
+-                Context& ctx) const {
+-      custom_.format(custom_.value, parse_ctx, ctx);
+-    }
+-
+-   private:
+-    detail::custom_value<Context> custom_;
+-  };
+-
+-  constexpr basic_format_arg() : type_(detail::type::none_type) {}
+-
+-  constexpr explicit operator bool() const FMT_NOEXCEPT {
+-    return type_ != detail::type::none_type;
+-  }
+-
+-  auto type() const -> detail::type { return type_; }
+-
+-  auto is_integral() const -> bool { return detail::is_integral_type(type_); }
+-  auto is_arithmetic() const -> bool {
+-    return detail::is_arithmetic_type(type_);
+-  }
+-};
+-
+-/**
+-  \rst
+-  Visits an argument dispatching to the appropriate visit method based on
+-  the argument type. For example, if the argument type is ``double`` then
+-  ``vis(value)`` will be called with the value of type ``double``.
+-  \endrst
+- */
+-template <typename Visitor, typename Context>
+-FMT_CONSTEXPR FMT_INLINE auto visit_format_arg(
+-    Visitor&& vis, const basic_format_arg<Context>& arg) -> decltype(vis(0)) {
+-  switch (arg.type_) {
+-  case detail::type::none_type:
+-    break;
+-  case detail::type::int_type:
+-    return vis(arg.value_.int_value);
+-  case detail::type::uint_type:
+-    return vis(arg.value_.uint_value);
+-  case detail::type::long_long_type:
+-    return vis(arg.value_.long_long_value);
+-  case detail::type::ulong_long_type:
+-    return vis(arg.value_.ulong_long_value);
+-  case detail::type::int128_type:
+-    return vis(detail::convert_for_visit(arg.value_.int128_value));
+-  case detail::type::uint128_type:
+-    return vis(detail::convert_for_visit(arg.value_.uint128_value));
+-  case detail::type::bool_type:
+-    return vis(arg.value_.bool_value);
+-  case detail::type::char_type:
+-    return vis(arg.value_.char_value);
+-  case detail::type::float_type:
+-    return vis(arg.value_.float_value);
+-  case detail::type::double_type:
+-    return vis(arg.value_.double_value);
+-  case detail::type::long_double_type:
+-    return vis(arg.value_.long_double_value);
+-  case detail::type::cstring_type:
+-    return vis(arg.value_.string.data);
+-  case detail::type::string_type:
+-    using sv = basic_string_view<typename Context::char_type>;
+-    return vis(sv(arg.value_.string.data, arg.value_.string.size));
+-  case detail::type::pointer_type:
+-    return vis(arg.value_.pointer);
+-  case detail::type::custom_type:
+-    return vis(typename basic_format_arg<Context>::handle(arg.value_.custom));
+-  }
+-  return vis(monostate());
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename Char, typename InputIt>
+-auto copy_str(InputIt begin, InputIt end, appender out) -> appender {
+-  get_container(out).append(begin, end);
+-  return out;
+-}
+-
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 500
+-// A workaround for gcc 4.8 to make void_t work in a SFINAE context.
+-template <typename... Ts> struct void_t_impl { using type = void; };
+-template <typename... Ts>
+-using void_t = typename detail::void_t_impl<Ts...>::type;
+-#else
+-template <typename...> using void_t = void;
+-#endif
+-
+-template <typename It, typename T, typename Enable = void>
+-struct is_output_iterator : std::false_type {};
+-
+-template <typename It, typename T>
+-struct is_output_iterator<
+-    It, T,
+-    void_t<typename std::iterator_traits<It>::iterator_category,
+-           decltype(*std::declval<It>() = std::declval<T>())>>
+-    : std::true_type {};
+-
+-template <typename OutputIt>
+-struct is_back_insert_iterator : std::false_type {};
+-template <typename Container>
+-struct is_back_insert_iterator<std::back_insert_iterator<Container>>
+-    : std::true_type {};
+-
+-template <typename OutputIt>
+-struct is_contiguous_back_insert_iterator : std::false_type {};
+-template <typename Container>
+-struct is_contiguous_back_insert_iterator<std::back_insert_iterator<Container>>
+-    : is_contiguous<Container> {};
+-template <>
+-struct is_contiguous_back_insert_iterator<appender> : std::true_type {};
+-
+-// A type-erased reference to an std::locale to avoid heavy <locale> include.
+-class locale_ref {
+- private:
+-  const void* locale_;  // A type-erased pointer to std::locale.
+-
+- public:
+-  constexpr locale_ref() : locale_(nullptr) {}
+-  template <typename Locale> explicit locale_ref(const Locale& loc);
+-
+-  explicit operator bool() const FMT_NOEXCEPT { return locale_ != nullptr; }
+-
+-  template <typename Locale> auto get() const -> Locale;
+-};
+-
+-template <typename> constexpr auto encode_types() -> unsigned long long {
+-  return 0;
+-}
+-
+-template <typename Context, typename Arg, typename... Args>
+-constexpr auto encode_types() -> unsigned long long {
+-  return static_cast<unsigned>(mapped_type_constant<Arg, Context>::value) |
+-         (encode_types<Context, Args...>() << packed_arg_bits);
+-}
+-
+-template <typename Context, typename T>
+-FMT_CONSTEXPR auto make_arg(const T& value) -> basic_format_arg<Context> {
+-  basic_format_arg<Context> arg;
+-  arg.type_ = mapped_type_constant<T, Context>::value;
+-  arg.value_ = arg_mapper<Context>().map(value);
+-  return arg;
+-}
+-
+-// The type template parameter is there to avoid an ODR violation when using
+-// a fallback formatter in one translation unit and an implicit conversion in
+-// another (not recommended).
+-template <bool IS_PACKED, typename Context, type, typename T,
+-          FMT_ENABLE_IF(IS_PACKED)>
+-FMT_CONSTEXPR FMT_INLINE auto make_arg(T&& val) -> value<Context> {
+-  const auto& arg = arg_mapper<Context>().map(std::forward<T>(val));
+-
+-  constexpr bool formattable_char =
+-      !std::is_same<decltype(arg), const unformattable_char&>::value;
+-  static_assert(formattable_char, "Mixing character types is disallowed.");
+-
+-  constexpr bool formattable_const =
+-      !std::is_same<decltype(arg), const unformattable_const&>::value;
+-  static_assert(formattable_const, "Cannot format a const argument.");
+-
+-  // Formatting of arbitrary pointers is disallowed. If you want to output
+-  // a pointer cast it to "void *" or "const void *". In particular, this
+-  // forbids formatting of "[const] volatile char *" which is printed as bool
+-  // by iostreams.
+-  constexpr bool formattable_pointer =
+-      !std::is_same<decltype(arg), const unformattable_pointer&>::value;
+-  static_assert(formattable_pointer,
+-                "Formatting of non-void pointers is disallowed.");
+-
+-  constexpr bool formattable =
+-      !std::is_same<decltype(arg), const unformattable&>::value;
+-  static_assert(
+-      formattable,
+-      "Cannot format an argument. To make type T formattable provide a "
+-      "formatter<T> specialization: https://fmt.dev/latest/api.html#udt");
+-  return {arg};
+-}
+-
+-template <bool IS_PACKED, typename Context, type, typename T,
+-          FMT_ENABLE_IF(!IS_PACKED)>
+-inline auto make_arg(const T& value) -> basic_format_arg<Context> {
+-  return make_arg<Context>(value);
+-}
+-FMT_END_DETAIL_NAMESPACE
+-
+-// Formatting context.
+-template <typename OutputIt, typename Char> class basic_format_context {
+- public:
+-  /** The character type for the output. */
+-  using char_type = Char;
+-
+- private:
+-  OutputIt out_;
+-  basic_format_args<basic_format_context> args_;
+-  detail::locale_ref loc_;
+-
+- public:
+-  using iterator = OutputIt;
+-  using format_arg = basic_format_arg<basic_format_context>;
+-  using parse_context_type = basic_format_parse_context<Char>;
+-  template <typename T> using formatter_type = formatter<T, char_type>;
+-
+-  basic_format_context(basic_format_context&&) = default;
+-  basic_format_context(const basic_format_context&) = delete;
+-  void operator=(const basic_format_context&) = delete;
+-  /**
+-   Constructs a ``basic_format_context`` object. References to the arguments are
+-   stored in the object so make sure they have appropriate lifetimes.
+-   */
+-  constexpr basic_format_context(
+-      OutputIt out, basic_format_args<basic_format_context> ctx_args,
+-      detail::locale_ref loc = detail::locale_ref())
+-      : out_(out), args_(ctx_args), loc_(loc) {}
+-
+-  constexpr auto arg(int id) const -> format_arg { return args_.get(id); }
+-  FMT_CONSTEXPR auto arg(basic_string_view<char_type> name) -> format_arg {
+-    return args_.get(name);
+-  }
+-  FMT_CONSTEXPR auto arg_id(basic_string_view<char_type> name) -> int {
+-    return args_.get_id(name);
+-  }
+-  auto args() const -> const basic_format_args<basic_format_context>& {
+-    return args_;
+-  }
+-
+-  FMT_CONSTEXPR auto error_handler() -> detail::error_handler { return {}; }
+-  void on_error(const char* message) { error_handler().on_error(message); }
+-
+-  // Returns an iterator to the beginning of the output range.
+-  FMT_CONSTEXPR auto out() -> iterator { return out_; }
+-
+-  // Advances the begin iterator to ``it``.
+-  void advance_to(iterator it) {
+-    if (!detail::is_back_insert_iterator<iterator>()) out_ = it;
+-  }
+-
+-  FMT_CONSTEXPR auto locale() -> detail::locale_ref { return loc_; }
+-};
+-
+-template <typename Char>
+-using buffer_context =
+-    basic_format_context<detail::buffer_appender<Char>, Char>;
+-using format_context = buffer_context<char>;
+-
+-// Workaround an alias issue: https://stackoverflow.com/q/62767544/471164.
+-#define FMT_BUFFER_CONTEXT(Char) \
+-  basic_format_context<detail::buffer_appender<Char>, Char>
+-
+-template <typename T, typename Char = char>
+-using is_formattable = bool_constant<
+-    !std::is_base_of<detail::unformattable,
+-                     decltype(detail::arg_mapper<buffer_context<Char>>().map(
+-                         std::declval<T>()))>::value &&
+-    !detail::has_fallback_formatter<T, Char>::value>;
+-
+-/**
+-  \rst
+-  An array of references to arguments. It can be implicitly converted into
+-  `~fmt::basic_format_args` for passing into type-erased formatting functions
+-  such as `~fmt::vformat`.
+-  \endrst
+- */
+-template <typename Context, typename... Args>
+-class format_arg_store
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-    // Workaround a GCC template argument substitution bug.
+-    : public basic_format_args<Context>
+-#endif
+-{
+- private:
+-  static const size_t num_args = sizeof...(Args);
+-  static const size_t num_named_args = detail::count_named_args<Args...>();
+-  static const bool is_packed = num_args <= detail::max_packed_args;
+-
+-  using value_type = conditional_t<is_packed, detail::value<Context>,
+-                                   basic_format_arg<Context>>;
+-
+-  detail::arg_data<value_type, typename Context::char_type, num_args,
+-                   num_named_args>
+-      data_;
+-
+-  friend class basic_format_args<Context>;
+-
+-  static constexpr unsigned long long desc =
+-      (is_packed ? detail::encode_types<Context, Args...>()
+-                 : detail::is_unpacked_bit | num_args) |
+-      (num_named_args != 0
+-           ? static_cast<unsigned long long>(detail::has_named_args_bit)
+-           : 0);
+-
+- public:
+-  template <typename... T>
+-  FMT_CONSTEXPR FMT_INLINE format_arg_store(T&&... args)
+-      :
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-        basic_format_args<Context>(*this),
+-#endif
+-        data_{detail::make_arg<
+-            is_packed, Context,
+-            detail::mapped_type_constant<remove_cvref_t<T>, Context>::value>(
+-            std::forward<T>(args))...} {
+-    detail::init_named_args(data_.named_args(), 0, 0, args...);
+-  }
+-};
+-
+-/**
+-  \rst
+-  Constructs a `~fmt::format_arg_store` object that contains references to
+-  arguments and can be implicitly converted to `~fmt::format_args`. `Context`
+-  can be omitted in which case it defaults to `~fmt::context`.
+-  See `~fmt::arg` for lifetime considerations.
+-  \endrst
+- */
+-template <typename Context = format_context, typename... Args>
+-constexpr auto make_format_args(Args&&... args)
+-    -> format_arg_store<Context, remove_cvref_t<Args>...> {
+-  return {std::forward<Args>(args)...};
+-}
+-
+-/**
+-  \rst
+-  Returns a named argument to be used in a formatting function.
+-  It should only be used in a call to a formatting function or
+-  `dynamic_format_arg_store::push_back`.
+-
+-  **Example**::
+-
+-    fmt::print("Elapsed time: {s:.2f} seconds", fmt::arg("s", 1.23));
+-  \endrst
+- */
+-template <typename Char, typename T>
+-inline auto arg(const Char* name, const T& arg) -> detail::named_arg<Char, T> {
+-  static_assert(!detail::is_named_arg<T>(), "nested named arguments");
+-  return {name, arg};
+-}
+-
+-/**
+-  \rst
+-  A view of a collection of formatting arguments. To avoid lifetime issues it
+-  should only be used as a parameter type in type-erased functions such as
+-  ``vformat``::
+-
+-    void vlog(string_view format_str, format_args args);  // OK
+-    format_args args = make_format_args(42);  // Error: dangling reference
+-  \endrst
+- */
+-template <typename Context> class basic_format_args {
+- public:
+-  using size_type = int;
+-  using format_arg = basic_format_arg<Context>;
+-
+- private:
+-  // A descriptor that contains information about formatting arguments.
+-  // If the number of arguments is less or equal to max_packed_args then
+-  // argument types are passed in the descriptor. This reduces binary code size
+-  // per formatting function call.
+-  unsigned long long desc_;
+-  union {
+-    // If is_packed() returns true then argument values are stored in values_;
+-    // otherwise they are stored in args_. This is done to improve cache
+-    // locality and reduce compiled code size since storing larger objects
+-    // may require more code (at least on x86-64) even if the same amount of
+-    // data is actually copied to stack. It saves ~10% on the bloat test.
+-    const detail::value<Context>* values_;
+-    const format_arg* args_;
+-  };
+-
+-  constexpr auto is_packed() const -> bool {
+-    return (desc_ & detail::is_unpacked_bit) == 0;
+-  }
+-  auto has_named_args() const -> bool {
+-    return (desc_ & detail::has_named_args_bit) != 0;
+-  }
+-
+-  FMT_CONSTEXPR auto type(int index) const -> detail::type {
+-    int shift = index * detail::packed_arg_bits;
+-    unsigned int mask = (1 << detail::packed_arg_bits) - 1;
+-    return static_cast<detail::type>((desc_ >> shift) & mask);
+-  }
+-
+-  constexpr FMT_INLINE basic_format_args(unsigned long long desc,
+-                                         const detail::value<Context>* values)
+-      : desc_(desc), values_(values) {}
+-  constexpr basic_format_args(unsigned long long desc, const format_arg* args)
+-      : desc_(desc), args_(args) {}
+-
+- public:
+-  constexpr basic_format_args() : desc_(0), args_(nullptr) {}
+-
+-  /**
+-   \rst
+-   Constructs a `basic_format_args` object from `~fmt::format_arg_store`.
+-   \endrst
+-   */
+-  template <typename... Args>
+-  constexpr FMT_INLINE basic_format_args(
+-      const format_arg_store<Context, Args...>& store)
+-      : basic_format_args(format_arg_store<Context, Args...>::desc,
+-                          store.data_.args()) {}
+-
+-  /**
+-   \rst
+-   Constructs a `basic_format_args` object from
+-   `~fmt::dynamic_format_arg_store`.
+-   \endrst
+-   */
+-  constexpr FMT_INLINE basic_format_args(
+-      const dynamic_format_arg_store<Context>& store)
+-      : basic_format_args(store.get_types(), store.data()) {}
+-
+-  /**
+-   \rst
+-   Constructs a `basic_format_args` object from a dynamic set of arguments.
+-   \endrst
+-   */
+-  constexpr basic_format_args(const format_arg* args, int count)
+-      : basic_format_args(detail::is_unpacked_bit | detail::to_unsigned(count),
+-                          args) {}
+-
+-  /** Returns the argument with the specified id. */
+-  FMT_CONSTEXPR auto get(int id) const -> format_arg {
+-    format_arg arg;
+-    if (!is_packed()) {
+-      if (id < max_size()) arg = args_[id];
+-      return arg;
+-    }
+-    if (id >= detail::max_packed_args) return arg;
+-    arg.type_ = type(id);
+-    if (arg.type_ == detail::type::none_type) return arg;
+-    arg.value_ = values_[id];
+-    return arg;
+-  }
+-
+-  template <typename Char>
+-  auto get(basic_string_view<Char> name) const -> format_arg {
+-    int id = get_id(name);
+-    return id >= 0 ? get(id) : format_arg();
+-  }
+-
+-  template <typename Char>
+-  auto get_id(basic_string_view<Char> name) const -> int {
+-    if (!has_named_args()) return -1;
+-    const auto& named_args =
+-        (is_packed() ? values_[-1] : args_[-1].value_).named_args;
+-    for (size_t i = 0; i < named_args.size; ++i) {
+-      if (named_args.data[i].name == name) return named_args.data[i].id;
+-    }
+-    return -1;
+-  }
+-
+-  auto max_size() const -> int {
+-    unsigned long long max_packed = detail::max_packed_args;
+-    return static_cast<int>(is_packed() ? max_packed
+-                                        : desc_ & ~detail::is_unpacked_bit);
+-  }
+-};
+-
+-/** An alias to ``basic_format_args<format_context>``. */
+-// A separate type would result in shorter symbols but break ABI compatibility
+-// between clang and gcc on ARM (#1919).
+-using format_args = basic_format_args<format_context>;
+-
+-// We cannot use enum classes as bit fields because of a gcc bug
+-// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414.
+-namespace align {
+-enum type { none, left, right, center, numeric };
+-}
+-using align_t = align::type;
+-namespace sign {
+-enum type { none, minus, plus, space };
+-}
+-using sign_t = sign::type;
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// Workaround an array initialization issue in gcc 4.8.
+-template <typename Char> struct fill_t {
+- private:
+-  enum { max_size = 4 };
+-  Char data_[max_size] = {Char(' '), Char(0), Char(0), Char(0)};
+-  unsigned char size_ = 1;
+-
+- public:
+-  FMT_CONSTEXPR void operator=(basic_string_view<Char> s) {
+-    auto size = s.size();
+-    if (size > max_size) return throw_format_error("invalid fill");
+-    for (size_t i = 0; i < size; ++i) data_[i] = s[i];
+-    size_ = static_cast<unsigned char>(size);
+-  }
+-
+-  constexpr auto size() const -> size_t { return size_; }
+-  constexpr auto data() const -> const Char* { return data_; }
+-
+-  FMT_CONSTEXPR auto operator[](size_t index) -> Char& { return data_[index]; }
+-  FMT_CONSTEXPR auto operator[](size_t index) const -> const Char& {
+-    return data_[index];
+-  }
+-};
+-FMT_END_DETAIL_NAMESPACE
+-
+-enum class presentation_type : unsigned char {
+-  none,
+-  // Integer types should go first,
+-  dec,             // 'd'
+-  oct,             // 'o'
+-  hex_lower,       // 'x'
+-  hex_upper,       // 'X'
+-  bin_lower,       // 'b'
+-  bin_upper,       // 'B'
+-  hexfloat_lower,  // 'a'
+-  hexfloat_upper,  // 'A'
+-  exp_lower,       // 'e'
+-  exp_upper,       // 'E'
+-  fixed_lower,     // 'f'
+-  fixed_upper,     // 'F'
+-  general_lower,   // 'g'
+-  general_upper,   // 'G'
+-  chr,             // 'c'
+-  string,          // 's'
+-  pointer          // 'p'
+-};
+-
+-// Format specifiers for built-in and string types.
+-template <typename Char> struct basic_format_specs {
+-  int width;
+-  int precision;
+-  presentation_type type;
+-  align_t align : 4;
+-  sign_t sign : 3;
+-  bool alt : 1;  // Alternate form ('#').
+-  bool localized : 1;
+-  detail::fill_t<Char> fill;
+-
+-  constexpr basic_format_specs()
+-      : width(0),
+-        precision(-1),
+-        type(presentation_type::none),
+-        align(align::none),
+-        sign(sign::none),
+-        alt(false),
+-        localized(false) {}
+-};
+-
+-using format_specs = basic_format_specs<char>;
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-enum class arg_id_kind { none, index, name };
+-
+-// An argument reference.
+-template <typename Char> struct arg_ref {
+-  FMT_CONSTEXPR arg_ref() : kind(arg_id_kind::none), val() {}
+-
+-  FMT_CONSTEXPR explicit arg_ref(int index)
+-      : kind(arg_id_kind::index), val(index) {}
+-  FMT_CONSTEXPR explicit arg_ref(basic_string_view<Char> name)
+-      : kind(arg_id_kind::name), val(name) {}
+-
+-  FMT_CONSTEXPR auto operator=(int idx) -> arg_ref& {
+-    kind = arg_id_kind::index;
+-    val.index = idx;
+-    return *this;
+-  }
+-
+-  arg_id_kind kind;
+-  union value {
+-    FMT_CONSTEXPR value(int id = 0) : index{id} {}
+-    FMT_CONSTEXPR value(basic_string_view<Char> n) : name(n) {}
+-
+-    int index;
+-    basic_string_view<Char> name;
+-  } val;
+-};
+-
+-// Format specifiers with width and precision resolved at formatting rather
+-// than parsing time to allow re-using the same parsed specifiers with
+-// different sets of arguments (precompilation of format strings).
+-template <typename Char>
+-struct dynamic_format_specs : basic_format_specs<Char> {
+-  arg_ref<Char> width_ref;
+-  arg_ref<Char> precision_ref;
+-};
+-
+-struct auto_id {};
+-
+-// A format specifier handler that sets fields in basic_format_specs.
+-template <typename Char> class specs_setter {
+- protected:
+-  basic_format_specs<Char>& specs_;
+-
+- public:
+-  explicit FMT_CONSTEXPR specs_setter(basic_format_specs<Char>& specs)
+-      : specs_(specs) {}
+-
+-  FMT_CONSTEXPR specs_setter(const specs_setter& other)
+-      : specs_(other.specs_) {}
+-
+-  FMT_CONSTEXPR void on_align(align_t align) { specs_.align = align; }
+-  FMT_CONSTEXPR void on_fill(basic_string_view<Char> fill) {
+-    specs_.fill = fill;
+-  }
+-  FMT_CONSTEXPR void on_sign(sign_t s) { specs_.sign = s; }
+-  FMT_CONSTEXPR void on_hash() { specs_.alt = true; }
+-  FMT_CONSTEXPR void on_localized() { specs_.localized = true; }
+-
+-  FMT_CONSTEXPR void on_zero() {
+-    if (specs_.align == align::none) specs_.align = align::numeric;
+-    specs_.fill[0] = Char('0');
+-  }
+-
+-  FMT_CONSTEXPR void on_width(int width) { specs_.width = width; }
+-  FMT_CONSTEXPR void on_precision(int precision) {
+-    specs_.precision = precision;
+-  }
+-  FMT_CONSTEXPR void end_precision() {}
+-
+-  FMT_CONSTEXPR void on_type(presentation_type type) { specs_.type = type; }
+-};
+-
+-// Format spec handler that saves references to arguments representing dynamic
+-// width and precision to be resolved at formatting time.
+-template <typename ParseContext>
+-class dynamic_specs_handler
+-    : public specs_setter<typename ParseContext::char_type> {
+- public:
+-  using char_type = typename ParseContext::char_type;
+-
+-  FMT_CONSTEXPR dynamic_specs_handler(dynamic_format_specs<char_type>& specs,
+-                                      ParseContext& ctx)
+-      : specs_setter<char_type>(specs), specs_(specs), context_(ctx) {}
+-
+-  FMT_CONSTEXPR dynamic_specs_handler(const dynamic_specs_handler& other)
+-      : specs_setter<char_type>(other),
+-        specs_(other.specs_),
+-        context_(other.context_) {}
+-
+-  template <typename Id> FMT_CONSTEXPR void on_dynamic_width(Id arg_id) {
+-    specs_.width_ref = make_arg_ref(arg_id);
+-  }
+-
+-  template <typename Id> FMT_CONSTEXPR void on_dynamic_precision(Id arg_id) {
+-    specs_.precision_ref = make_arg_ref(arg_id);
+-  }
+-
+-  FMT_CONSTEXPR void on_error(const char* message) {
+-    context_.on_error(message);
+-  }
+-
+- private:
+-  dynamic_format_specs<char_type>& specs_;
+-  ParseContext& context_;
+-
+-  using arg_ref_type = arg_ref<char_type>;
+-
+-  FMT_CONSTEXPR auto make_arg_ref(int arg_id) -> arg_ref_type {
+-    context_.check_arg_id(arg_id);
+-    return arg_ref_type(arg_id);
+-  }
+-
+-  FMT_CONSTEXPR auto make_arg_ref(auto_id) -> arg_ref_type {
+-    return arg_ref_type(context_.next_arg_id());
+-  }
+-
+-  FMT_CONSTEXPR auto make_arg_ref(basic_string_view<char_type> arg_id)
+-      -> arg_ref_type {
+-    context_.check_arg_id(arg_id);
+-    basic_string_view<char_type> format_str(
+-        context_.begin(), to_unsigned(context_.end() - context_.begin()));
+-    return arg_ref_type(arg_id);
+-  }
+-};
+-
+-template <typename Char> constexpr bool is_ascii_letter(Char c) {
+-  return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');
+-}
+-
+-// Converts a character to ASCII. Returns a number > 127 on conversion failure.
+-template <typename Char, FMT_ENABLE_IF(std::is_integral<Char>::value)>
+-constexpr auto to_ascii(Char value) -> Char {
+-  return value;
+-}
+-template <typename Char, FMT_ENABLE_IF(std::is_enum<Char>::value)>
+-constexpr auto to_ascii(Char value) ->
+-    typename std::underlying_type<Char>::type {
+-  return value;
+-}
+-
+-template <typename Char>
+-FMT_CONSTEXPR auto code_point_length(const Char* begin) -> int {
+-  if (const_check(sizeof(Char) != 1)) return 1;
+-  auto lengths =
+-      "\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0\0\0\0\0\0\2\2\2\2\3\3\4";
+-  int len = lengths[static_cast<unsigned char>(*begin) >> 3];
+-
+-  // Compute the pointer to the next character early so that the next
+-  // iteration can start working on the next character. Neither Clang
+-  // nor GCC figure out this reordering on their own.
+-  return len + !len;
+-}
+-
+-// Return the result via the out param to workaround gcc bug 77539.
+-template <bool IS_CONSTEXPR, typename T, typename Ptr = const T*>
+-FMT_CONSTEXPR auto find(Ptr first, Ptr last, T value, Ptr& out) -> bool {
+-  for (out = first; out != last; ++out) {
+-    if (*out == value) return true;
+-  }
+-  return false;
+-}
+-
+-template <>
+-inline auto find<false, char>(const char* first, const char* last, char value,
+-                              const char*& out) -> bool {
+-  out = static_cast<const char*>(
+-      std::memchr(first, value, to_unsigned(last - first)));
+-  return out != nullptr;
+-}
+-
+-// Parses the range [begin, end) as an unsigned integer. This function assumes
+-// that the range is non-empty and the first character is a digit.
+-template <typename Char>
+-FMT_CONSTEXPR auto parse_nonnegative_int(const Char*& begin, const Char* end,
+-                                         int error_value) noexcept -> int {
+-  FMT_ASSERT(begin != end && '0' <= *begin && *begin <= '9', "");
+-  unsigned value = 0, prev = 0;
+-  auto p = begin;
+-  do {
+-    prev = value;
+-    value = value * 10 + unsigned(*p - '0');
+-    ++p;
+-  } while (p != end && '0' <= *p && *p <= '9');
+-  auto num_digits = p - begin;
+-  begin = p;
+-  if (num_digits <= std::numeric_limits<int>::digits10)
+-    return static_cast<int>(value);
+-  // Check for overflow.
+-  const unsigned max = to_unsigned((std::numeric_limits<int>::max)());
+-  return num_digits == std::numeric_limits<int>::digits10 + 1 &&
+-                 prev * 10ull + unsigned(p[-1] - '0') <= max
+-             ? static_cast<int>(value)
+-             : error_value;
+-}
+-
+-// Parses fill and alignment.
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR auto parse_align(const Char* begin, const Char* end,
+-                               Handler&& handler) -> const Char* {
+-  FMT_ASSERT(begin != end, "");
+-  auto align = align::none;
+-  auto p = begin + code_point_length(begin);
+-  if (p >= end) p = begin;
+-  for (;;) {
+-    switch (to_ascii(*p)) {
+-    case '<':
+-      align = align::left;
+-      break;
+-    case '>':
+-      align = align::right;
+-      break;
+-    case '^':
+-      align = align::center;
+-      break;
+-    default:
+-      break;
+-    }
+-    if (align != align::none) {
+-      if (p != begin) {
+-        auto c = *begin;
+-        if (c == '{')
+-          return handler.on_error("invalid fill character '{'"), begin;
+-        handler.on_fill(basic_string_view<Char>(begin, to_unsigned(p - begin)));
+-        begin = p + 1;
+-      } else
+-        ++begin;
+-      handler.on_align(align);
+-      break;
+-    } else if (p == begin) {
+-      break;
+-    }
+-    p = begin;
+-  }
+-  return begin;
+-}
+-
+-template <typename Char> FMT_CONSTEXPR bool is_name_start(Char c) {
+-  return ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || '_' == c;
+-}
+-
+-template <typename Char, typename IDHandler>
+-FMT_CONSTEXPR auto do_parse_arg_id(const Char* begin, const Char* end,
+-                                   IDHandler&& handler) -> const Char* {
+-  FMT_ASSERT(begin != end, "");
+-  Char c = *begin;
+-  if (c >= '0' && c <= '9') {
+-    int index = 0;
+-    if (c != '0')
+-      index =
+-          parse_nonnegative_int(begin, end, (std::numeric_limits<int>::max)());
+-    else
+-      ++begin;
+-    if (begin == end || (*begin != '}' && *begin != ':'))
+-      handler.on_error("invalid format string");
+-    else
+-      handler(index);
+-    return begin;
+-  }
+-  if (!is_name_start(c)) {
+-    handler.on_error("invalid format string");
+-    return begin;
+-  }
+-  auto it = begin;
+-  do {
+-    ++it;
+-  } while (it != end && (is_name_start(c = *it) || ('0' <= c && c <= '9')));
+-  handler(basic_string_view<Char>(begin, to_unsigned(it - begin)));
+-  return it;
+-}
+-
+-template <typename Char, typename IDHandler>
+-FMT_CONSTEXPR FMT_INLINE auto parse_arg_id(const Char* begin, const Char* end,
+-                                           IDHandler&& handler) -> const Char* {
+-  Char c = *begin;
+-  if (c != '}' && c != ':') return do_parse_arg_id(begin, end, handler);
+-  handler();
+-  return begin;
+-}
+-
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR auto parse_width(const Char* begin, const Char* end,
+-                               Handler&& handler) -> const Char* {
+-  using detail::auto_id;
+-  struct width_adapter {
+-    Handler& handler;
+-
+-    FMT_CONSTEXPR void operator()() { handler.on_dynamic_width(auto_id()); }
+-    FMT_CONSTEXPR void operator()(int id) { handler.on_dynamic_width(id); }
+-    FMT_CONSTEXPR void operator()(basic_string_view<Char> id) {
+-      handler.on_dynamic_width(id);
+-    }
+-    FMT_CONSTEXPR void on_error(const char* message) {
+-      if (message) handler.on_error(message);
+-    }
+-  };
+-
+-  FMT_ASSERT(begin != end, "");
+-  if ('0' <= *begin && *begin <= '9') {
+-    int width = parse_nonnegative_int(begin, end, -1);
+-    if (width != -1)
+-      handler.on_width(width);
+-    else
+-      handler.on_error("number is too big");
+-  } else if (*begin == '{') {
+-    ++begin;
+-    if (begin != end) begin = parse_arg_id(begin, end, width_adapter{handler});
+-    if (begin == end || *begin != '}')
+-      return handler.on_error("invalid format string"), begin;
+-    ++begin;
+-  }
+-  return begin;
+-}
+-
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR auto parse_precision(const Char* begin, const Char* end,
+-                                   Handler&& handler) -> const Char* {
+-  using detail::auto_id;
+-  struct precision_adapter {
+-    Handler& handler;
+-
+-    FMT_CONSTEXPR void operator()() { handler.on_dynamic_precision(auto_id()); }
+-    FMT_CONSTEXPR void operator()(int id) { handler.on_dynamic_precision(id); }
+-    FMT_CONSTEXPR void operator()(basic_string_view<Char> id) {
+-      handler.on_dynamic_precision(id);
+-    }
+-    FMT_CONSTEXPR void on_error(const char* message) {
+-      if (message) handler.on_error(message);
+-    }
+-  };
+-
+-  ++begin;
+-  auto c = begin != end ? *begin : Char();
+-  if ('0' <= c && c <= '9') {
+-    auto precision = parse_nonnegative_int(begin, end, -1);
+-    if (precision != -1)
+-      handler.on_precision(precision);
+-    else
+-      handler.on_error("number is too big");
+-  } else if (c == '{') {
+-    ++begin;
+-    if (begin != end)
+-      begin = parse_arg_id(begin, end, precision_adapter{handler});
+-    if (begin == end || *begin++ != '}')
+-      return handler.on_error("invalid format string"), begin;
+-  } else {
+-    return handler.on_error("missing precision specifier"), begin;
+-  }
+-  handler.end_precision();
+-  return begin;
+-}
+-
+-template <typename Char>
+-FMT_CONSTEXPR auto parse_presentation_type(Char type) -> presentation_type {
+-  switch (to_ascii(type)) {
+-  case 'd':
+-    return presentation_type::dec;
+-  case 'o':
+-    return presentation_type::oct;
+-  case 'x':
+-    return presentation_type::hex_lower;
+-  case 'X':
+-    return presentation_type::hex_upper;
+-  case 'b':
+-    return presentation_type::bin_lower;
+-  case 'B':
+-    return presentation_type::bin_upper;
+-  case 'a':
+-    return presentation_type::hexfloat_lower;
+-  case 'A':
+-    return presentation_type::hexfloat_upper;
+-  case 'e':
+-    return presentation_type::exp_lower;
+-  case 'E':
+-    return presentation_type::exp_upper;
+-  case 'f':
+-    return presentation_type::fixed_lower;
+-  case 'F':
+-    return presentation_type::fixed_upper;
+-  case 'g':
+-    return presentation_type::general_lower;
+-  case 'G':
+-    return presentation_type::general_upper;
+-  case 'c':
+-    return presentation_type::chr;
+-  case 's':
+-    return presentation_type::string;
+-  case 'p':
+-    return presentation_type::pointer;
+-  default:
+-    return presentation_type::none;
+-  }
+-}
+-
+-// Parses standard format specifiers and sends notifications about parsed
+-// components to handler.
+-template <typename Char, typename SpecHandler>
+-FMT_CONSTEXPR FMT_INLINE auto parse_format_specs(const Char* begin,
+-                                                 const Char* end,
+-                                                 SpecHandler&& handler)
+-    -> const Char* {
+-  if (1 < end - begin && begin[1] == '}' && is_ascii_letter(*begin) &&
+-      *begin != 'L') {
+-    presentation_type type = parse_presentation_type(*begin++);
+-    if (type == presentation_type::none)
+-      handler.on_error("invalid type specifier");
+-    handler.on_type(type);
+-    return begin;
+-  }
+-
+-  if (begin == end) return begin;
+-
+-  begin = parse_align(begin, end, handler);
+-  if (begin == end) return begin;
+-
+-  // Parse sign.
+-  switch (to_ascii(*begin)) {
+-  case '+':
+-    handler.on_sign(sign::plus);
+-    ++begin;
+-    break;
+-  case '-':
+-    handler.on_sign(sign::minus);
+-    ++begin;
+-    break;
+-  case ' ':
+-    handler.on_sign(sign::space);
+-    ++begin;
+-    break;
+-  default:
+-    break;
+-  }
+-  if (begin == end) return begin;
+-
+-  if (*begin == '#') {
+-    handler.on_hash();
+-    if (++begin == end) return begin;
+-  }
+-
+-  // Parse zero flag.
+-  if (*begin == '0') {
+-    handler.on_zero();
+-    if (++begin == end) return begin;
+-  }
+-
+-  begin = parse_width(begin, end, handler);
+-  if (begin == end) return begin;
+-
+-  // Parse precision.
+-  if (*begin == '.') {
+-    begin = parse_precision(begin, end, handler);
+-    if (begin == end) return begin;
+-  }
+-
+-  if (*begin == 'L') {
+-    handler.on_localized();
+-    ++begin;
+-  }
+-
+-  // Parse type.
+-  if (begin != end && *begin != '}') {
+-    presentation_type type = parse_presentation_type(*begin++);
+-    if (type == presentation_type::none)
+-      handler.on_error("invalid type specifier");
+-    handler.on_type(type);
+-  }
+-  return begin;
+-}
+-
+-template <typename Char, typename Handler>
+-FMT_CONSTEXPR auto parse_replacement_field(const Char* begin, const Char* end,
+-                                           Handler&& handler) -> const Char* {
+-  struct id_adapter {
+-    Handler& handler;
+-    int arg_id;
+-
+-    FMT_CONSTEXPR void operator()() { arg_id = handler.on_arg_id(); }
+-    FMT_CONSTEXPR void operator()(int id) { arg_id = handler.on_arg_id(id); }
+-    FMT_CONSTEXPR void operator()(basic_string_view<Char> id) {
+-      arg_id = handler.on_arg_id(id);
+-    }
+-    FMT_CONSTEXPR void on_error(const char* message) {
+-      if (message) handler.on_error(message);
+-    }
+-  };
+-
+-  ++begin;
+-  if (begin == end) return handler.on_error("invalid format string"), end;
+-  if (*begin == '}') {
+-    handler.on_replacement_field(handler.on_arg_id(), begin);
+-  } else if (*begin == '{') {
+-    handler.on_text(begin, begin + 1);
+-  } else {
+-    auto adapter = id_adapter{handler, 0};
+-    begin = parse_arg_id(begin, end, adapter);
+-    Char c = begin != end ? *begin : Char();
+-    if (c == '}') {
+-      handler.on_replacement_field(adapter.arg_id, begin);
+-    } else if (c == ':') {
+-      begin = handler.on_format_specs(adapter.arg_id, begin + 1, end);
+-      if (begin == end || *begin != '}')
+-        return handler.on_error("unknown format specifier"), end;
+-    } else {
+-      return handler.on_error("missing '}' in format string"), end;
+-    }
+-  }
+-  return begin + 1;
+-}
+-
+-template <bool IS_CONSTEXPR, typename Char, typename Handler>
+-FMT_CONSTEXPR FMT_INLINE void parse_format_string(
+-    basic_string_view<Char> format_str, Handler&& handler) {
+-  // Workaround a name-lookup bug in MSVC's modules implementation.
+-  using detail::find;
+-
+-  auto begin = format_str.data();
+-  auto end = begin + format_str.size();
+-  if (end - begin < 32) {
+-    // Use a simple loop instead of memchr for small strings.
+-    const Char* p = begin;
+-    while (p != end) {
+-      auto c = *p++;
+-      if (c == '{') {
+-        handler.on_text(begin, p - 1);
+-        begin = p = parse_replacement_field(p - 1, end, handler);
+-      } else if (c == '}') {
+-        if (p == end || *p != '}')
+-          return handler.on_error("unmatched '}' in format string");
+-        handler.on_text(begin, p);
+-        begin = ++p;
+-      }
+-    }
+-    handler.on_text(begin, end);
+-    return;
+-  }
+-  struct writer {
+-    FMT_CONSTEXPR void operator()(const Char* pbegin, const Char* pend) {
+-      if (pbegin == pend) return;
+-      for (;;) {
+-        const Char* p = nullptr;
+-        if (!find<IS_CONSTEXPR>(pbegin, pend, Char('}'), p))
+-          return handler_.on_text(pbegin, pend);
+-        ++p;
+-        if (p == pend || *p != '}')
+-          return handler_.on_error("unmatched '}' in format string");
+-        handler_.on_text(pbegin, p);
+-        pbegin = p + 1;
+-      }
+-    }
+-    Handler& handler_;
+-  } write{handler};
+-  while (begin != end) {
+-    // Doing two passes with memchr (one for '{' and another for '}') is up to
+-    // 2.5x faster than the naive one-pass implementation on big format strings.
+-    const Char* p = begin;
+-    if (*begin != '{' && !find<IS_CONSTEXPR>(begin + 1, end, Char('{'), p))
+-      return write(begin, end);
+-    write(begin, p);
+-    begin = parse_replacement_field(p, end, handler);
+-  }
+-}
+-
+-template <typename T, typename ParseContext>
+-FMT_CONSTEXPR auto parse_format_specs(ParseContext& ctx)
+-    -> decltype(ctx.begin()) {
+-  using char_type = typename ParseContext::char_type;
+-  using context = buffer_context<char_type>;
+-  using mapped_type = conditional_t<
+-      mapped_type_constant<T, context>::value != type::custom_type,
+-      decltype(arg_mapper<context>().map(std::declval<const T&>())), T>;
+-  auto f = conditional_t<has_formatter<mapped_type, context>::value,
+-                         formatter<mapped_type, char_type>,
+-                         fallback_formatter<T, char_type>>();
+-  return f.parse(ctx);
+-}
+-
+-// A parse context with extra argument id checks. It is only used at compile
+-// time because adding checks at runtime would introduce substantial overhead
+-// and would be redundant since argument ids are checked when arguments are
+-// retrieved anyway.
+-template <typename Char, typename ErrorHandler = error_handler>
+-class compile_parse_context
+-    : public basic_format_parse_context<Char, ErrorHandler> {
+- private:
+-  int num_args_;
+-  using base = basic_format_parse_context<Char, ErrorHandler>;
+-
+- public:
+-  explicit FMT_CONSTEXPR compile_parse_context(
+-      basic_string_view<Char> format_str,
+-      int num_args = (std::numeric_limits<int>::max)(), ErrorHandler eh = {})
+-      : base(format_str, eh), num_args_(num_args) {}
+-
+-  FMT_CONSTEXPR auto next_arg_id() -> int {
+-    int id = base::next_arg_id();
+-    if (id >= num_args_) this->on_error("argument not found");
+-    return id;
+-  }
+-
+-  FMT_CONSTEXPR void check_arg_id(int id) {
+-    base::check_arg_id(id);
+-    if (id >= num_args_) this->on_error("argument not found");
+-  }
+-  using base::check_arg_id;
+-};
+-
+-template <typename ErrorHandler>
+-FMT_CONSTEXPR void check_int_type_spec(presentation_type type,
+-                                       ErrorHandler&& eh) {
+-  if (type > presentation_type::bin_upper && type != presentation_type::chr)
+-    eh.on_error("invalid type specifier");
+-}
+-
+-// Checks char specs and returns true if the type spec is char (and not int).
+-template <typename Char, typename ErrorHandler = error_handler>
+-FMT_CONSTEXPR auto check_char_specs(const basic_format_specs<Char>& specs,
+-                                    ErrorHandler&& eh = {}) -> bool {
+-  if (specs.type != presentation_type::none &&
+-      specs.type != presentation_type::chr) {
+-    check_int_type_spec(specs.type, eh);
+-    return false;
+-  }
+-  if (specs.align == align::numeric || specs.sign != sign::none || specs.alt)
+-    eh.on_error("invalid format specifier for char");
+-  return true;
+-}
+-
+-// A floating-point presentation format.
+-enum class float_format : unsigned char {
+-  general,  // General: exponent notation or fixed point based on magnitude.
+-  exp,      // Exponent notation with the default precision of 6, e.g. 1.2e-3.
+-  fixed,    // Fixed point with the default precision of 6, e.g. 0.0012.
+-  hex
+-};
+-
+-struct float_specs {
+-  int precision;
+-  float_format format : 8;
+-  sign_t sign : 8;
+-  bool upper : 1;
+-  bool locale : 1;
+-  bool binary32 : 1;
+-  bool fallback : 1;
+-  bool showpoint : 1;
+-};
+-
+-template <typename ErrorHandler = error_handler, typename Char>
+-FMT_CONSTEXPR auto parse_float_type_spec(const basic_format_specs<Char>& specs,
+-                                         ErrorHandler&& eh = {})
+-    -> float_specs {
+-  auto result = float_specs();
+-  result.showpoint = specs.alt;
+-  result.locale = specs.localized;
+-  switch (specs.type) {
+-  case presentation_type::none:
+-    result.format = float_format::general;
+-    break;
+-  case presentation_type::general_upper:
+-    result.upper = true;
+-    FMT_FALLTHROUGH;
+-  case presentation_type::general_lower:
+-    result.format = float_format::general;
+-    break;
+-  case presentation_type::exp_upper:
+-    result.upper = true;
+-    FMT_FALLTHROUGH;
+-  case presentation_type::exp_lower:
+-    result.format = float_format::exp;
+-    result.showpoint |= specs.precision != 0;
+-    break;
+-  case presentation_type::fixed_upper:
+-    result.upper = true;
+-    FMT_FALLTHROUGH;
+-  case presentation_type::fixed_lower:
+-    result.format = float_format::fixed;
+-    result.showpoint |= specs.precision != 0;
+-    break;
+-  case presentation_type::hexfloat_upper:
+-    result.upper = true;
+-    FMT_FALLTHROUGH;
+-  case presentation_type::hexfloat_lower:
+-    result.format = float_format::hex;
+-    break;
+-  default:
+-    eh.on_error("invalid type specifier");
+-    break;
+-  }
+-  return result;
+-}
+-
+-template <typename ErrorHandler = error_handler>
+-FMT_CONSTEXPR auto check_cstring_type_spec(presentation_type type,
+-                                           ErrorHandler&& eh = {}) -> bool {
+-  if (type == presentation_type::none || type == presentation_type::string)
+-    return true;
+-  if (type != presentation_type::pointer) eh.on_error("invalid type specifier");
+-  return false;
+-}
+-
+-template <typename ErrorHandler = error_handler>
+-FMT_CONSTEXPR void check_string_type_spec(presentation_type type,
+-                                          ErrorHandler&& eh = {}) {
+-  if (type != presentation_type::none && type != presentation_type::string)
+-    eh.on_error("invalid type specifier");
+-}
+-
+-template <typename ErrorHandler>
+-FMT_CONSTEXPR void check_pointer_type_spec(presentation_type type,
+-                                           ErrorHandler&& eh) {
+-  if (type != presentation_type::none && type != presentation_type::pointer)
+-    eh.on_error("invalid type specifier");
+-}
+-
+-// A parse_format_specs handler that checks if specifiers are consistent with
+-// the argument type.
+-template <typename Handler> class specs_checker : public Handler {
+- private:
+-  detail::type arg_type_;
+-
+-  FMT_CONSTEXPR void require_numeric_argument() {
+-    if (!is_arithmetic_type(arg_type_))
+-      this->on_error("format specifier requires numeric argument");
+-  }
+-
+- public:
+-  FMT_CONSTEXPR specs_checker(const Handler& handler, detail::type arg_type)
+-      : Handler(handler), arg_type_(arg_type) {}
+-
+-  FMT_CONSTEXPR void on_align(align_t align) {
+-    if (align == align::numeric) require_numeric_argument();
+-    Handler::on_align(align);
+-  }
+-
+-  FMT_CONSTEXPR void on_sign(sign_t s) {
+-    require_numeric_argument();
+-    if (is_integral_type(arg_type_) && arg_type_ != type::int_type &&
+-        arg_type_ != type::long_long_type && arg_type_ != type::char_type) {
+-      this->on_error("format specifier requires signed argument");
+-    }
+-    Handler::on_sign(s);
+-  }
+-
+-  FMT_CONSTEXPR void on_hash() {
+-    require_numeric_argument();
+-    Handler::on_hash();
+-  }
+-
+-  FMT_CONSTEXPR void on_localized() {
+-    require_numeric_argument();
+-    Handler::on_localized();
+-  }
+-
+-  FMT_CONSTEXPR void on_zero() {
+-    require_numeric_argument();
+-    Handler::on_zero();
+-  }
+-
+-  FMT_CONSTEXPR void end_precision() {
+-    if (is_integral_type(arg_type_) || arg_type_ == type::pointer_type)
+-      this->on_error("precision not allowed for this argument type");
+-  }
+-};
+-
+-constexpr int invalid_arg_index = -1;
+-
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <int N, typename T, typename... Args, typename Char>
+-constexpr auto get_arg_index_by_name(basic_string_view<Char> name) -> int {
+-  if constexpr (detail::is_statically_named_arg<T>()) {
+-    if (name == T::name) return N;
+-  }
+-  if constexpr (sizeof...(Args) > 0)
+-    return get_arg_index_by_name<N + 1, Args...>(name);
+-  (void)name;  // Workaround an MSVC bug about "unused" parameter.
+-  return invalid_arg_index;
+-}
+-#endif
+-
+-template <typename... Args, typename Char>
+-FMT_CONSTEXPR auto get_arg_index_by_name(basic_string_view<Char> name) -> int {
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-  if constexpr (sizeof...(Args) > 0)
+-    return get_arg_index_by_name<0, Args...>(name);
+-#endif
+-  (void)name;
+-  return invalid_arg_index;
+-}
+-
+-template <typename Char, typename ErrorHandler, typename... Args>
+-class format_string_checker {
+- private:
+-  using parse_context_type = compile_parse_context<Char, ErrorHandler>;
+-  enum { num_args = sizeof...(Args) };
+-
+-  // Format specifier parsing function.
+-  using parse_func = const Char* (*)(parse_context_type&);
+-
+-  parse_context_type context_;
+-  parse_func parse_funcs_[num_args > 0 ? num_args : 1];
+-
+- public:
+-  explicit FMT_CONSTEXPR format_string_checker(
+-      basic_string_view<Char> format_str, ErrorHandler eh)
+-      : context_(format_str, num_args, eh),
+-        parse_funcs_{&parse_format_specs<Args, parse_context_type>...} {}
+-
+-  FMT_CONSTEXPR void on_text(const Char*, const Char*) {}
+-
+-  FMT_CONSTEXPR auto on_arg_id() -> int { return context_.next_arg_id(); }
+-  FMT_CONSTEXPR auto on_arg_id(int id) -> int {
+-    return context_.check_arg_id(id), id;
+-  }
+-  FMT_CONSTEXPR auto on_arg_id(basic_string_view<Char> id) -> int {
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-    auto index = get_arg_index_by_name<Args...>(id);
+-    if (index == invalid_arg_index) on_error("named argument is not found");
+-    return context_.check_arg_id(index), index;
+-#else
+-    (void)id;
+-    on_error("compile-time checks for named arguments require C++20 support");
+-    return 0;
+-#endif
+-  }
+-
+-  FMT_CONSTEXPR void on_replacement_field(int, const Char*) {}
+-
+-  FMT_CONSTEXPR auto on_format_specs(int id, const Char* begin, const Char*)
+-      -> const Char* {
+-    context_.advance_to(context_.begin() + (begin - &*context_.begin()));
+-    // id >= 0 check is a workaround for gcc 10 bug (#2065).
+-    return id >= 0 && id < num_args ? parse_funcs_[id](context_) : begin;
+-  }
+-
+-  FMT_CONSTEXPR void on_error(const char* message) {
+-    context_.on_error(message);
+-  }
+-};
+-
+-template <typename... Args, typename S,
+-          enable_if_t<(is_compile_string<S>::value), int>>
+-void check_format_string(S format_str) {
+-  FMT_CONSTEXPR auto s = to_string_view(format_str);
+-  using checker = format_string_checker<typename S::char_type, error_handler,
+-                                        remove_cvref_t<Args>...>;
+-  FMT_CONSTEXPR bool invalid_format =
+-      (parse_format_string<true>(s, checker(s, {})), true);
+-  ignore_unused(invalid_format);
+-}
+-
+-template <typename Char>
+-void vformat_to(
+-    buffer<Char>& buf, basic_string_view<Char> fmt,
+-    basic_format_args<FMT_BUFFER_CONTEXT(type_identity_t<Char>)> args,
+-    locale_ref loc = {});
+-
+-FMT_API void vprint_mojibake(std::FILE*, string_view, format_args);
+-#ifndef _WIN32
+-inline void vprint_mojibake(std::FILE*, string_view, format_args) {}
+-#endif
+-FMT_END_DETAIL_NAMESPACE
+-
+-// A formatter specialization for the core types corresponding to detail::type
+-// constants.
+-template <typename T, typename Char>
+-struct formatter<T, Char,
+-                 enable_if_t<detail::type_constant<T, Char>::value !=
+-                             detail::type::custom_type>> {
+- private:
+-  detail::dynamic_format_specs<Char> specs_;
+-
+- public:
+-  // Parses format specifiers stopping either at the end of the range or at the
+-  // terminating '}'.
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    auto begin = ctx.begin(), end = ctx.end();
+-    if (begin == end) return begin;
+-    using handler_type = detail::dynamic_specs_handler<ParseContext>;
+-    auto type = detail::type_constant<T, Char>::value;
+-    auto checker =
+-        detail::specs_checker<handler_type>(handler_type(specs_, ctx), type);
+-    auto it = detail::parse_format_specs(begin, end, checker);
+-    auto eh = ctx.error_handler();
+-    switch (type) {
+-    case detail::type::none_type:
+-      FMT_ASSERT(false, "invalid argument type");
+-      break;
+-    case detail::type::bool_type:
+-      if (specs_.type == presentation_type::none ||
+-          specs_.type == presentation_type::string) {
+-        break;
+-      }
+-      FMT_FALLTHROUGH;
+-    case detail::type::int_type:
+-    case detail::type::uint_type:
+-    case detail::type::long_long_type:
+-    case detail::type::ulong_long_type:
+-    case detail::type::int128_type:
+-    case detail::type::uint128_type:
+-      detail::check_int_type_spec(specs_.type, eh);
+-      break;
+-    case detail::type::char_type:
+-      detail::check_char_specs(specs_, eh);
+-      break;
+-    case detail::type::float_type:
+-      if (detail::const_check(FMT_USE_FLOAT))
+-        detail::parse_float_type_spec(specs_, eh);
+-      else
+-        FMT_ASSERT(false, "float support disabled");
+-      break;
+-    case detail::type::double_type:
+-      if (detail::const_check(FMT_USE_DOUBLE))
+-        detail::parse_float_type_spec(specs_, eh);
+-      else
+-        FMT_ASSERT(false, "double support disabled");
+-      break;
+-    case detail::type::long_double_type:
+-      if (detail::const_check(FMT_USE_LONG_DOUBLE))
+-        detail::parse_float_type_spec(specs_, eh);
+-      else
+-        FMT_ASSERT(false, "long double support disabled");
+-      break;
+-    case detail::type::cstring_type:
+-      detail::check_cstring_type_spec(specs_.type, eh);
+-      break;
+-    case detail::type::string_type:
+-      detail::check_string_type_spec(specs_.type, eh);
+-      break;
+-    case detail::type::pointer_type:
+-      detail::check_pointer_type_spec(specs_.type, eh);
+-      break;
+-    case detail::type::custom_type:
+-      // Custom format specifiers are checked in parse functions of
+-      // formatter specializations.
+-      break;
+-    }
+-    return it;
+-  }
+-
+-  template <typename FormatContext>
+-  FMT_CONSTEXPR auto format(const T& val, FormatContext& ctx) const
+-      -> decltype(ctx.out());
+-};
+-
+-template <typename Char> struct basic_runtime { basic_string_view<Char> str; };
+-
+-/** A compile-time format string. */
+-template <typename Char, typename... Args> class basic_format_string {
+- private:
+-  basic_string_view<Char> str_;
+-
+- public:
+-  template <typename S,
+-            FMT_ENABLE_IF(
+-                std::is_convertible<const S&, basic_string_view<Char>>::value)>
+-  FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
+-    static_assert(
+-        detail::count<
+-            (std::is_base_of<detail::view, remove_reference_t<Args>>::value &&
+-             std::is_reference<Args>::value)...>() == 0,
+-        "passing views as lvalues is disallowed");
+-#ifdef FMT_HAS_CONSTEVAL
+-    if constexpr (detail::count_named_args<Args...>() ==
+-                  detail::count_statically_named_args<Args...>()) {
+-      using checker = detail::format_string_checker<Char, detail::error_handler,
+-                                                    remove_cvref_t<Args>...>;
+-      detail::parse_format_string<true>(str_, checker(s, {}));
+-    }
+-#else
+-    detail::check_format_string<Args...>(s);
+-#endif
+-  }
+-  basic_format_string(basic_runtime<Char> r) : str_(r.str) {}
+-
+-  FMT_INLINE operator basic_string_view<Char>() const { return str_; }
+-};
+-
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-// Workaround broken conversion on older gcc.
+-template <typename... Args> using format_string = string_view;
+-template <typename S> auto runtime(const S& s) -> basic_string_view<char_t<S>> {
+-  return s;
+-}
+-#else
+-template <typename... Args>
+-using format_string = basic_format_string<char, type_identity_t<Args>...>;
+-/**
+-  \rst
+-  Creates a runtime format string.
+-
+-  **Example**::
+-
+-    // Check format string at runtime instead of compile-time.
+-    fmt::print(fmt::runtime("{:d}"), "I am not a number");
+-  \endrst
+- */
+-template <typename S> auto runtime(const S& s) -> basic_runtime<char_t<S>> {
+-  return {{s}};
+-}
+-#endif
+-
+-FMT_API auto vformat(string_view fmt, format_args args) -> std::string;
+-
+-/**
+-  \rst
+-  Formats ``args`` according to specifications in ``fmt`` and returns the result
+-  as a string.
+-
+-  **Example**::
+-
+-    #include <fmt/core.h>
+-    std::string message = fmt::format("The answer is {}.", 42);
+-  \endrst
+-*/
+-template <typename... T>
+-FMT_NODISCARD FMT_INLINE auto format(format_string<T...> fmt, T&&... args)
+-    -> std::string {
+-  return vformat(fmt, fmt::make_format_args(args...));
+-}
+-
+-/** Formats a string and writes the output to ``out``. */
+-template <typename OutputIt,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value)>
+-auto vformat_to(OutputIt out, string_view fmt, format_args args) -> OutputIt {
+-  using detail::get_buffer;
+-  auto&& buf = get_buffer<char>(out);
+-  detail::vformat_to(buf, fmt, args, {});
+-  return detail::get_iterator(buf);
+-}
+-
+-/**
+- \rst
+- Formats ``args`` according to specifications in ``fmt``, writes the result to
+- the output iterator ``out`` and returns the iterator past the end of the output
+- range. `format_to` does not append a terminating null character.
+-
+- **Example**::
+-
+-   auto out = std::vector<char>();
+-   fmt::format_to(std::back_inserter(out), "{}", 42);
+- \endrst
+- */
+-template <typename OutputIt, typename... T,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value)>
+-FMT_INLINE auto format_to(OutputIt out, format_string<T...> fmt, T&&... args)
+-    -> OutputIt {
+-  return vformat_to(out, fmt, fmt::make_format_args(args...));
+-}
+-
+-template <typename OutputIt> struct format_to_n_result {
+-  /** Iterator past the end of the output range. */
+-  OutputIt out;
+-  /** Total (not truncated) output size. */
+-  size_t size;
+-};
+-
+-template <typename OutputIt, typename... T,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value)>
+-auto vformat_to_n(OutputIt out, size_t n, string_view fmt, format_args args)
+-    -> format_to_n_result<OutputIt> {
+-  using traits = detail::fixed_buffer_traits;
+-  auto buf = detail::iterator_buffer<OutputIt, char, traits>(out, n);
+-  detail::vformat_to(buf, fmt, args, {});
+-  return {buf.out(), buf.count()};
+-}
+-
+-/**
+-  \rst
+-  Formats ``args`` according to specifications in ``fmt``, writes up to ``n``
+-  characters of the result to the output iterator ``out`` and returns the total
+-  (not truncated) output size and the iterator past the end of the output range.
+-  `format_to_n` does not append a terminating null character.
+-  \endrst
+- */
+-template <typename OutputIt, typename... T,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value)>
+-FMT_INLINE auto format_to_n(OutputIt out, size_t n, format_string<T...> fmt,
+-                            T&&... args) -> format_to_n_result<OutputIt> {
+-  return vformat_to_n(out, n, fmt, fmt::make_format_args(args...));
+-}
+-
+-/** Returns the number of chars in the output of ``format(fmt, args...)``. */
+-template <typename... T>
+-FMT_NODISCARD FMT_INLINE auto formatted_size(format_string<T...> fmt,
+-                                             T&&... args) -> size_t {
+-  auto buf = detail::counting_buffer<>();
+-  detail::vformat_to(buf, string_view(fmt), fmt::make_format_args(args...), {});
+-  return buf.count();
+-}
+-
+-FMT_API void vprint(string_view fmt, format_args args);
+-FMT_API void vprint(std::FILE* f, string_view fmt, format_args args);
+-
+-/**
+-  \rst
+-  Formats ``args`` according to specifications in ``fmt`` and writes the output
+-  to ``stdout``.
+-
+-  **Example**::
+-
+-    fmt::print("Elapsed time: {0:.2f} seconds", 1.23);
+-  \endrst
+- */
+-template <typename... T>
+-FMT_INLINE void print(format_string<T...> fmt, T&&... args) {
+-  const auto& vargs = fmt::make_format_args(args...);
+-  return detail::is_utf8() ? vprint(fmt, vargs)
+-                           : detail::vprint_mojibake(stdout, fmt, vargs);
+-}
+-
+-/**
+-  \rst
+-  Formats ``args`` according to specifications in ``fmt`` and writes the
+-  output to the file ``f``.
+-
+-  **Example**::
+-
+-    fmt::print(stderr, "Don't {}!", "panic");
+-  \endrst
+- */
+-template <typename... T>
+-FMT_INLINE void print(std::FILE* f, format_string<T...> fmt, T&&... args) {
+-  const auto& vargs = fmt::make_format_args(args...);
+-  return detail::is_utf8() ? vprint(f, fmt, vargs)
+-                           : detail::vprint_mojibake(f, fmt, vargs);
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_GCC_PRAGMA("GCC pop_options")
+-FMT_END_NAMESPACE
+-
+-#ifdef FMT_HEADER_ONLY
+-#  include "format.h"
+-#endif
+-#endif  // FMT_CORE_H_
+diff --git a/include/dpp/fmt/format-inl.h b/include/dpp/fmt/format-inl.h
+deleted file mode 100644
+index 5902bf1..0000000
+--- a/include/dpp/fmt/format-inl.h
++++ /dev/null
+@@ -1,2643 +0,0 @@
+-// Formatting library for C++ - implementation
+-//
+-// Copyright (c) 2012 - 2016, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_FORMAT_INL_H_
+-#define FMT_FORMAT_INL_H_
+-
+-#include <algorithm>
+-#include <cctype>
+-#include <cerrno>  // errno
+-#include <climits>
+-#include <cmath>
+-#include <cstdarg>
+-#include <cstring>  // std::memmove
+-#include <cwchar>
+-#include <exception>
+-
+-#ifndef FMT_STATIC_THOUSANDS_SEPARATOR
+-#  include <locale>
+-#endif
+-
+-#ifdef _WIN32
+-#  include <io.h>  // _isatty
+-#endif
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-
+-FMT_FUNC void assert_fail(const char* file, int line, const char* message) {
+-  // Use unchecked std::fprintf to avoid triggering another assertion when
+-  // writing to stderr fails
+-  std::fprintf(stderr, "%s:%d: assertion failed: %s", file, line, message);
+-  // Chosen instead of std::abort to satisfy Clang in CUDA mode during device
+-  // code pass.
+-  std::terminate();
+-}
+-
+-FMT_FUNC void throw_format_error(const char* message) {
+-  FMT_THROW(format_error(message));
+-}
+-
+-#ifndef _MSC_VER
+-#  define FMT_SNPRINTF snprintf
+-#else  // _MSC_VER
+-inline int fmt_snprintf(char* buffer, size_t size, const char* format, ...) {
+-  va_list args;
+-  va_start(args, format);
+-  int result = vsnprintf_s(buffer, size, _TRUNCATE, format, args);
+-  va_end(args);
+-  return result;
+-}
+-#  define FMT_SNPRINTF fmt_snprintf
+-#endif  // _MSC_VER
+-
+-FMT_FUNC void format_error_code(detail::buffer<char>& out, int error_code,
+-                                string_view message) FMT_NOEXCEPT {
+-  // Report error code making sure that the output fits into
+-  // inline_buffer_size to avoid dynamic memory allocation and potential
+-  // bad_alloc.
+-  out.try_resize(0);
+-  static const char SEP[] = ": ";
+-  static const char ERROR_STR[] = "error ";
+-  // Subtract 2 to account for terminating null characters in SEP and ERROR_STR.
+-  size_t error_code_size = sizeof(SEP) + sizeof(ERROR_STR) - 2;
+-  auto abs_value = static_cast<uint32_or_64_or_128_t<int>>(error_code);
+-  if (detail::is_negative(error_code)) {
+-    abs_value = 0 - abs_value;
+-    ++error_code_size;
+-  }
+-  error_code_size += detail::to_unsigned(detail::count_digits(abs_value));
+-  auto it = buffer_appender<char>(out);
+-  if (message.size() <= inline_buffer_size - error_code_size)
+-    format_to(it, FMT_STRING("{}{}"), message, SEP);
+-  format_to(it, FMT_STRING("{}{}"), ERROR_STR, error_code);
+-  FMT_ASSERT(out.size() <= inline_buffer_size, "");
+-}
+-
+-FMT_FUNC void report_error(format_func func, int error_code,
+-                           const char* message) FMT_NOEXCEPT {
+-  memory_buffer full_message;
+-  func(full_message, error_code, message);
+-  // Don't use fwrite_fully because the latter may throw.
+-  if (std::fwrite(full_message.data(), full_message.size(), 1, stderr) > 0)
+-    std::fputc('\n', stderr);
+-}
+-
+-// A wrapper around fwrite that throws on error.
+-inline void fwrite_fully(const void* ptr, size_t size, size_t count,
+-                         FILE* stream) {
+-  size_t written = std::fwrite(ptr, size, count, stream);
+-  if (written < count) FMT_THROW(system_error(errno, "cannot write to file"));
+-}
+-
+-#ifndef FMT_STATIC_THOUSANDS_SEPARATOR
+-template <typename Locale>
+-locale_ref::locale_ref(const Locale& loc) : locale_(&loc) {
+-  static_assert(std::is_same<Locale, std::locale>::value, "");
+-}
+-
+-template <typename Locale> Locale locale_ref::get() const {
+-  static_assert(std::is_same<Locale, std::locale>::value, "");
+-  return locale_ ? *static_cast<const std::locale*>(locale_) : std::locale();
+-}
+-
+-template <typename Char>
+-FMT_FUNC auto thousands_sep_impl(locale_ref loc) -> thousands_sep_result<Char> {
+-  auto& facet = std::use_facet<std::numpunct<Char>>(loc.get<std::locale>());
+-  auto grouping = facet.grouping();
+-  auto thousands_sep = grouping.empty() ? Char() : facet.thousands_sep();
+-  return {std::move(grouping), thousands_sep};
+-}
+-template <typename Char> FMT_FUNC Char decimal_point_impl(locale_ref loc) {
+-  return std::use_facet<std::numpunct<Char>>(loc.get<std::locale>())
+-      .decimal_point();
+-}
+-#else
+-template <typename Char>
+-FMT_FUNC auto thousands_sep_impl(locale_ref) -> thousands_sep_result<Char> {
+-  return {"\03", FMT_STATIC_THOUSANDS_SEPARATOR};
+-}
+-template <typename Char> FMT_FUNC Char decimal_point_impl(locale_ref) {
+-  return '.';
+-}
+-#endif
+-}  // namespace detail
+-
+-#if !FMT_MSC_VER
+-FMT_API FMT_FUNC format_error::~format_error() FMT_NOEXCEPT = default;
+-#endif
+-
+-FMT_FUNC std::system_error vsystem_error(int error_code, string_view format_str,
+-                                         format_args args) {
+-  auto ec = std::error_code(error_code, std::generic_category());
+-  return std::system_error(ec, vformat(format_str, args));
+-}
+-
+-namespace detail {
+-
+-template <> FMT_FUNC int count_digits<4>(detail::fallback_uintptr n) {
+-  // fallback_uintptr is always stored in little endian.
+-  int i = static_cast<int>(sizeof(void*)) - 1;
+-  while (i > 0 && n.value[i] == 0) --i;
+-  auto char_digits = std::numeric_limits<unsigned char>::digits / 4;
+-  return i >= 0 ? i * char_digits + count_digits<4, unsigned>(n.value[i]) : 1;
+-}
+-
+-// log10(2) = 0x0.4d104d427de7fbcc...
+-static constexpr uint64_t log10_2_significand = 0x4d104d427de7fbcc;
+-
+-template <typename T = void> struct basic_impl_data {
+-  // Normalized 64-bit significands of pow(10, k), for k = -348, -340, ..., 340.
+-  // These are generated by support/compute-powers.py.
+-  static constexpr uint64_t pow10_significands[87] = {
+-      0xfa8fd5a0081c0288, 0xbaaee17fa23ebf76, 0x8b16fb203055ac76,
+-      0xcf42894a5dce35ea, 0x9a6bb0aa55653b2d, 0xe61acf033d1a45df,
+-      0xab70fe17c79ac6ca, 0xff77b1fcbebcdc4f, 0xbe5691ef416bd60c,
+-      0x8dd01fad907ffc3c, 0xd3515c2831559a83, 0x9d71ac8fada6c9b5,
+-      0xea9c227723ee8bcb, 0xaecc49914078536d, 0x823c12795db6ce57,
+-      0xc21094364dfb5637, 0x9096ea6f3848984f, 0xd77485cb25823ac7,
+-      0xa086cfcd97bf97f4, 0xef340a98172aace5, 0xb23867fb2a35b28e,
+-      0x84c8d4dfd2c63f3b, 0xc5dd44271ad3cdba, 0x936b9fcebb25c996,
+-      0xdbac6c247d62a584, 0xa3ab66580d5fdaf6, 0xf3e2f893dec3f126,
+-      0xb5b5ada8aaff80b8, 0x87625f056c7c4a8b, 0xc9bcff6034c13053,
+-      0x964e858c91ba2655, 0xdff9772470297ebd, 0xa6dfbd9fb8e5b88f,
+-      0xf8a95fcf88747d94, 0xb94470938fa89bcf, 0x8a08f0f8bf0f156b,
+-      0xcdb02555653131b6, 0x993fe2c6d07b7fac, 0xe45c10c42a2b3b06,
+-      0xaa242499697392d3, 0xfd87b5f28300ca0e, 0xbce5086492111aeb,
+-      0x8cbccc096f5088cc, 0xd1b71758e219652c, 0x9c40000000000000,
+-      0xe8d4a51000000000, 0xad78ebc5ac620000, 0x813f3978f8940984,
+-      0xc097ce7bc90715b3, 0x8f7e32ce7bea5c70, 0xd5d238a4abe98068,
+-      0x9f4f2726179a2245, 0xed63a231d4c4fb27, 0xb0de65388cc8ada8,
+-      0x83c7088e1aab65db, 0xc45d1df942711d9a, 0x924d692ca61be758,
+-      0xda01ee641a708dea, 0xa26da3999aef774a, 0xf209787bb47d6b85,
+-      0xb454e4a179dd1877, 0x865b86925b9bc5c2, 0xc83553c5c8965d3d,
+-      0x952ab45cfa97a0b3, 0xde469fbd99a05fe3, 0xa59bc234db398c25,
+-      0xf6c69a72a3989f5c, 0xb7dcbf5354e9bece, 0x88fcf317f22241e2,
+-      0xcc20ce9bd35c78a5, 0x98165af37b2153df, 0xe2a0b5dc971f303a,
+-      0xa8d9d1535ce3b396, 0xfb9b7cd9a4a7443c, 0xbb764c4ca7a44410,
+-      0x8bab8eefb6409c1a, 0xd01fef10a657842c, 0x9b10a4e5e9913129,
+-      0xe7109bfba19c0c9d, 0xac2820d9623bf429, 0x80444b5e7aa7cf85,
+-      0xbf21e44003acdd2d, 0x8e679c2f5e44ff8f, 0xd433179d9c8cb841,
+-      0x9e19db92b4e31ba9, 0xeb96bf6ebadf77d9, 0xaf87023b9bf0ee6b,
+-  };
+-
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-#  pragma GCC diagnostic push
+-#  pragma GCC diagnostic ignored "-Wnarrowing"
+-#endif
+-  // Binary exponents of pow(10, k), for k = -348, -340, ..., 340, corresponding
+-  // to significands above.
+-  static constexpr int16_t pow10_exponents[87] = {
+-      -1220, -1193, -1166, -1140, -1113, -1087, -1060, -1034, -1007, -980, -954,
+-      -927,  -901,  -874,  -847,  -821,  -794,  -768,  -741,  -715,  -688, -661,
+-      -635,  -608,  -582,  -555,  -529,  -502,  -475,  -449,  -422,  -396, -369,
+-      -343,  -316,  -289,  -263,  -236,  -210,  -183,  -157,  -130,  -103, -77,
+-      -50,   -24,   3,     30,    56,    83,    109,   136,   162,   189,  216,
+-      242,   269,   295,   322,   348,   375,   402,   428,   455,   481,  508,
+-      534,   561,   588,   614,   641,   667,   694,   720,   747,   774,  800,
+-      827,   853,   880,   907,   933,   960,   986,   1013,  1039,  1066};
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-#  pragma GCC diagnostic pop
+-#endif
+-
+-  static constexpr uint64_t power_of_10_64[20] = {
+-      1, FMT_POWERS_OF_10(1ULL), FMT_POWERS_OF_10(1000000000ULL),
+-      10000000000000000000ULL};
+-};
+-
+-// This is a struct rather than an alias to avoid shadowing warnings in gcc.
+-struct impl_data : basic_impl_data<> {};
+-
+-#if __cplusplus < 201703L
+-template <typename T>
+-constexpr uint64_t basic_impl_data<T>::pow10_significands[];
+-template <typename T> constexpr int16_t basic_impl_data<T>::pow10_exponents[];
+-template <typename T> constexpr uint64_t basic_impl_data<T>::power_of_10_64[];
+-#endif
+-
+-template <typename T> struct bits {
+-  static FMT_CONSTEXPR_DECL const int value =
+-      static_cast<int>(sizeof(T) * std::numeric_limits<unsigned char>::digits);
+-};
+-
+-// Returns the number of significand bits in Float excluding the implicit bit.
+-template <typename Float> constexpr int num_significand_bits() {
+-  // Subtract 1 to account for an implicit most significant bit in the
+-  // normalized form.
+-  return std::numeric_limits<Float>::digits - 1;
+-}
+-
+-// A floating-point number f * pow(2, e).
+-struct fp {
+-  uint64_t f;
+-  int e;
+-
+-  static constexpr const int num_significand_bits = bits<decltype(f)>::value;
+-
+-  constexpr fp() : f(0), e(0) {}
+-  constexpr fp(uint64_t f_val, int e_val) : f(f_val), e(e_val) {}
+-
+-  // Constructs fp from an IEEE754 floating-point number. It is a template to
+-  // prevent compile errors on systems where n is not IEEE754.
+-  template <typename Float> explicit FMT_CONSTEXPR fp(Float n) { assign(n); }
+-
+-  template <typename Float>
+-  using is_supported = bool_constant<sizeof(Float) == sizeof(uint64_t) ||
+-                                     sizeof(Float) == sizeof(uint32_t)>;
+-
+-  // Assigns d to this and return true iff predecessor is closer than successor.
+-  template <typename Float, FMT_ENABLE_IF(is_supported<Float>::value)>
+-  FMT_CONSTEXPR bool assign(Float n) {
+-    // Assume float is in the format [sign][exponent][significand].
+-    const int num_float_significand_bits =
+-        detail::num_significand_bits<Float>();
+-    const uint64_t implicit_bit = 1ULL << num_float_significand_bits;
+-    const uint64_t significand_mask = implicit_bit - 1;
+-    constexpr bool is_double = sizeof(Float) == sizeof(uint64_t);
+-    auto u = bit_cast<conditional_t<is_double, uint64_t, uint32_t>>(n);
+-    f = u & significand_mask;
+-    const uint64_t exponent_mask = (~0ULL >> 1) & ~significand_mask;
+-    int biased_e =
+-        static_cast<int>((u & exponent_mask) >> num_float_significand_bits);
+-    // The predecessor is closer if n is a normalized power of 2 (f == 0) other
+-    // than the smallest normalized number (biased_e > 1).
+-    bool is_predecessor_closer = f == 0 && biased_e > 1;
+-    if (biased_e != 0)
+-      f += implicit_bit;
+-    else
+-      biased_e = 1;  // Subnormals use biased exponent 1 (min exponent).
+-    const int exponent_bias = std::numeric_limits<Float>::max_exponent - 1;
+-    e = biased_e - exponent_bias - num_float_significand_bits;
+-    return is_predecessor_closer;
+-  }
+-
+-  template <typename Float, FMT_ENABLE_IF(!is_supported<Float>::value)>
+-  bool assign(Float) {
+-    FMT_ASSERT(false, "");
+-    return false;
+-  }
+-};
+-
+-// Normalizes the value converted from double and multiplied by (1 << SHIFT).
+-template <int SHIFT = 0> FMT_CONSTEXPR fp normalize(fp value) {
+-  // Handle subnormals.
+-  const uint64_t implicit_bit = 1ULL << num_significand_bits<double>();
+-  const auto shifted_implicit_bit = implicit_bit << SHIFT;
+-  while ((value.f & shifted_implicit_bit) == 0) {
+-    value.f <<= 1;
+-    --value.e;
+-  }
+-  // Subtract 1 to account for hidden bit.
+-  const auto offset =
+-      fp::num_significand_bits - num_significand_bits<double>() - SHIFT - 1;
+-  value.f <<= offset;
+-  value.e -= offset;
+-  return value;
+-}
+-
+-inline bool operator==(fp x, fp y) { return x.f == y.f && x.e == y.e; }
+-
+-// Computes lhs * rhs / pow(2, 64) rounded to nearest with half-up tie breaking.
+-FMT_CONSTEXPR inline uint64_t multiply(uint64_t lhs, uint64_t rhs) {
+-#if FMT_USE_INT128
+-  auto product = static_cast<__uint128_t>(lhs) * rhs;
+-  auto f = static_cast<uint64_t>(product >> 64);
+-  return (static_cast<uint64_t>(product) & (1ULL << 63)) != 0 ? f + 1 : f;
+-#else
+-  // Multiply 32-bit parts of significands.
+-  uint64_t mask = (1ULL << 32) - 1;
+-  uint64_t a = lhs >> 32, b = lhs & mask;
+-  uint64_t c = rhs >> 32, d = rhs & mask;
+-  uint64_t ac = a * c, bc = b * c, ad = a * d, bd = b * d;
+-  // Compute mid 64-bit of result and round.
+-  uint64_t mid = (bd >> 32) + (ad & mask) + (bc & mask) + (1U << 31);
+-  return ac + (ad >> 32) + (bc >> 32) + (mid >> 32);
+-#endif
+-}
+-
+-FMT_CONSTEXPR inline fp operator*(fp x, fp y) {
+-  return {multiply(x.f, y.f), x.e + y.e + 64};
+-}
+-
+-// Returns a cached power of 10 `c_k = c_k.f * pow(2, c_k.e)` such that its
+-// (binary) exponent satisfies `min_exponent <= c_k.e <= min_exponent + 28`.
+-FMT_CONSTEXPR inline fp get_cached_power(int min_exponent,
+-                                         int& pow10_exponent) {
+-  const int shift = 32;
+-  const auto significand = static_cast<int64_t>(log10_2_significand);
+-  int index = static_cast<int>(
+-      ((min_exponent + fp::num_significand_bits - 1) * (significand >> shift) +
+-       ((int64_t(1) << shift) - 1))  // ceil
+-      >> 32                          // arithmetic shift
+-  );
+-  // Decimal exponent of the first (smallest) cached power of 10.
+-  const int first_dec_exp = -348;
+-  // Difference between 2 consecutive decimal exponents in cached powers of 10.
+-  const int dec_exp_step = 8;
+-  index = (index - first_dec_exp - 1) / dec_exp_step + 1;
+-  pow10_exponent = first_dec_exp + index * dec_exp_step;
+-  return {impl_data::pow10_significands[index],
+-          impl_data::pow10_exponents[index]};
+-}
+-
+-// A simple accumulator to hold the sums of terms in bigint::square if uint128_t
+-// is not available.
+-struct accumulator {
+-  uint64_t lower;
+-  uint64_t upper;
+-
+-  constexpr accumulator() : lower(0), upper(0) {}
+-  constexpr explicit operator uint32_t() const {
+-    return static_cast<uint32_t>(lower);
+-  }
+-
+-  FMT_CONSTEXPR void operator+=(uint64_t n) {
+-    lower += n;
+-    if (lower < n) ++upper;
+-  }
+-  FMT_CONSTEXPR void operator>>=(int shift) {
+-    FMT_ASSERT(shift == 32, "");
+-    (void)shift;
+-    lower = (upper << 32) | (lower >> 32);
+-    upper >>= 32;
+-  }
+-};
+-
+-class bigint {
+- private:
+-  // A bigint is stored as an array of bigits (big digits), with bigit at index
+-  // 0 being the least significant one.
+-  using bigit = uint32_t;
+-  using double_bigit = uint64_t;
+-  enum { bigits_capacity = 32 };
+-  basic_memory_buffer<bigit, bigits_capacity> bigits_;
+-  int exp_;
+-
+-  FMT_CONSTEXPR20 bigit operator[](int index) const {
+-    return bigits_[to_unsigned(index)];
+-  }
+-  FMT_CONSTEXPR20 bigit& operator[](int index) {
+-    return bigits_[to_unsigned(index)];
+-  }
+-
+-  static FMT_CONSTEXPR_DECL const int bigit_bits = bits<bigit>::value;
+-
+-  friend struct formatter<bigint>;
+-
+-  FMT_CONSTEXPR20 void subtract_bigits(int index, bigit other, bigit& borrow) {
+-    auto result = static_cast<double_bigit>((*this)[index]) - other - borrow;
+-    (*this)[index] = static_cast<bigit>(result);
+-    borrow = static_cast<bigit>(result >> (bigit_bits * 2 - 1));
+-  }
+-
+-  FMT_CONSTEXPR20 void remove_leading_zeros() {
+-    int num_bigits = static_cast<int>(bigits_.size()) - 1;
+-    while (num_bigits > 0 && (*this)[num_bigits] == 0) --num_bigits;
+-    bigits_.resize(to_unsigned(num_bigits + 1));
+-  }
+-
+-  // Computes *this -= other assuming aligned bigints and *this >= other.
+-  FMT_CONSTEXPR20 void subtract_aligned(const bigint& other) {
+-    FMT_ASSERT(other.exp_ >= exp_, "unaligned bigints");
+-    FMT_ASSERT(compare(*this, other) >= 0, "");
+-    bigit borrow = 0;
+-    int i = other.exp_ - exp_;
+-    for (size_t j = 0, n = other.bigits_.size(); j != n; ++i, ++j)
+-      subtract_bigits(i, other.bigits_[j], borrow);
+-    while (borrow > 0) subtract_bigits(i, 0, borrow);
+-    remove_leading_zeros();
+-  }
+-
+-  FMT_CONSTEXPR20 void multiply(uint32_t value) {
+-    const double_bigit wide_value = value;
+-    bigit carry = 0;
+-    for (size_t i = 0, n = bigits_.size(); i < n; ++i) {
+-      double_bigit result = bigits_[i] * wide_value + carry;
+-      bigits_[i] = static_cast<bigit>(result);
+-      carry = static_cast<bigit>(result >> bigit_bits);
+-    }
+-    if (carry != 0) bigits_.push_back(carry);
+-  }
+-
+-  FMT_CONSTEXPR20 void multiply(uint64_t value) {
+-    const bigit mask = ~bigit(0);
+-    const double_bigit lower = value & mask;
+-    const double_bigit upper = value >> bigit_bits;
+-    double_bigit carry = 0;
+-    for (size_t i = 0, n = bigits_.size(); i < n; ++i) {
+-      double_bigit result = bigits_[i] * lower + (carry & mask);
+-      carry =
+-          bigits_[i] * upper + (result >> bigit_bits) + (carry >> bigit_bits);
+-      bigits_[i] = static_cast<bigit>(result);
+-    }
+-    while (carry != 0) {
+-      bigits_.push_back(carry & mask);
+-      carry >>= bigit_bits;
+-    }
+-  }
+-
+- public:
+-  FMT_CONSTEXPR20 bigint() : exp_(0) {}
+-  explicit bigint(uint64_t n) { assign(n); }
+-  FMT_CONSTEXPR20 ~bigint() {
+-    FMT_ASSERT(bigits_.capacity() <= bigits_capacity, "");
+-  }
+-
+-  bigint(const bigint&) = delete;
+-  void operator=(const bigint&) = delete;
+-
+-  FMT_CONSTEXPR20 void assign(const bigint& other) {
+-    auto size = other.bigits_.size();
+-    bigits_.resize(size);
+-    auto data = other.bigits_.data();
+-    std::copy(data, data + size, make_checked(bigits_.data(), size));
+-    exp_ = other.exp_;
+-  }
+-
+-  FMT_CONSTEXPR20 void assign(uint64_t n) {
+-    size_t num_bigits = 0;
+-    do {
+-      bigits_[num_bigits++] = n & ~bigit(0);
+-      n >>= bigit_bits;
+-    } while (n != 0);
+-    bigits_.resize(num_bigits);
+-    exp_ = 0;
+-  }
+-
+-  FMT_CONSTEXPR20 int num_bigits() const {
+-    return static_cast<int>(bigits_.size()) + exp_;
+-  }
+-
+-  FMT_NOINLINE FMT_CONSTEXPR20 bigint& operator<<=(int shift) {
+-    FMT_ASSERT(shift >= 0, "");
+-    exp_ += shift / bigit_bits;
+-    shift %= bigit_bits;
+-    if (shift == 0) return *this;
+-    bigit carry = 0;
+-    for (size_t i = 0, n = bigits_.size(); i < n; ++i) {
+-      bigit c = bigits_[i] >> (bigit_bits - shift);
+-      bigits_[i] = (bigits_[i] << shift) + carry;
+-      carry = c;
+-    }
+-    if (carry != 0) bigits_.push_back(carry);
+-    return *this;
+-  }
+-
+-  template <typename Int> FMT_CONSTEXPR20 bigint& operator*=(Int value) {
+-    FMT_ASSERT(value > 0, "");
+-    multiply(uint32_or_64_or_128_t<Int>(value));
+-    return *this;
+-  }
+-
+-  friend FMT_CONSTEXPR20 int compare(const bigint& lhs, const bigint& rhs) {
+-    int num_lhs_bigits = lhs.num_bigits(), num_rhs_bigits = rhs.num_bigits();
+-    if (num_lhs_bigits != num_rhs_bigits)
+-      return num_lhs_bigits > num_rhs_bigits ? 1 : -1;
+-    int i = static_cast<int>(lhs.bigits_.size()) - 1;
+-    int j = static_cast<int>(rhs.bigits_.size()) - 1;
+-    int end = i - j;
+-    if (end < 0) end = 0;
+-    for (; i >= end; --i, --j) {
+-      bigit lhs_bigit = lhs[i], rhs_bigit = rhs[j];
+-      if (lhs_bigit != rhs_bigit) return lhs_bigit > rhs_bigit ? 1 : -1;
+-    }
+-    if (i != j) return i > j ? 1 : -1;
+-    return 0;
+-  }
+-
+-  // Returns compare(lhs1 + lhs2, rhs).
+-  friend FMT_CONSTEXPR20 int add_compare(const bigint& lhs1, const bigint& lhs2,
+-                                         const bigint& rhs) {
+-    int max_lhs_bigits = (std::max)(lhs1.num_bigits(), lhs2.num_bigits());
+-    int num_rhs_bigits = rhs.num_bigits();
+-    if (max_lhs_bigits + 1 < num_rhs_bigits) return -1;
+-    if (max_lhs_bigits > num_rhs_bigits) return 1;
+-    auto get_bigit = [](const bigint& n, int i) -> bigit {
+-      return i >= n.exp_ && i < n.num_bigits() ? n[i - n.exp_] : 0;
+-    };
+-    double_bigit borrow = 0;
+-    int min_exp = (std::min)((std::min)(lhs1.exp_, lhs2.exp_), rhs.exp_);
+-    for (int i = num_rhs_bigits - 1; i >= min_exp; --i) {
+-      double_bigit sum =
+-          static_cast<double_bigit>(get_bigit(lhs1, i)) + get_bigit(lhs2, i);
+-      bigit rhs_bigit = get_bigit(rhs, i);
+-      if (sum > rhs_bigit + borrow) return 1;
+-      borrow = rhs_bigit + borrow - sum;
+-      if (borrow > 1) return -1;
+-      borrow <<= bigit_bits;
+-    }
+-    return borrow != 0 ? -1 : 0;
+-  }
+-
+-  // Assigns pow(10, exp) to this bigint.
+-  FMT_CONSTEXPR20 void assign_pow10(int exp) {
+-    FMT_ASSERT(exp >= 0, "");
+-    if (exp == 0) return assign(1);
+-    // Find the top bit.
+-    int bitmask = 1;
+-    while (exp >= bitmask) bitmask <<= 1;
+-    bitmask >>= 1;
+-    // pow(10, exp) = pow(5, exp) * pow(2, exp). First compute pow(5, exp) by
+-    // repeated squaring and multiplication.
+-    assign(5);
+-    bitmask >>= 1;
+-    while (bitmask != 0) {
+-      square();
+-      if ((exp & bitmask) != 0) *this *= 5;
+-      bitmask >>= 1;
+-    }
+-    *this <<= exp;  // Multiply by pow(2, exp) by shifting.
+-  }
+-
+-  FMT_CONSTEXPR20 void square() {
+-    int num_bigits = static_cast<int>(bigits_.size());
+-    int num_result_bigits = 2 * num_bigits;
+-    basic_memory_buffer<bigit, bigits_capacity> n(std::move(bigits_));
+-    bigits_.resize(to_unsigned(num_result_bigits));
+-    using accumulator_t = conditional_t<FMT_USE_INT128, uint128_t, accumulator>;
+-    auto sum = accumulator_t();
+-    for (int bigit_index = 0; bigit_index < num_bigits; ++bigit_index) {
+-      // Compute bigit at position bigit_index of the result by adding
+-      // cross-product terms n[i] * n[j] such that i + j == bigit_index.
+-      for (int i = 0, j = bigit_index; j >= 0; ++i, --j) {
+-        // Most terms are multiplied twice which can be optimized in the future.
+-        sum += static_cast<double_bigit>(n[i]) * n[j];
+-      }
+-      (*this)[bigit_index] = static_cast<bigit>(sum);
+-      sum >>= bits<bigit>::value;  // Compute the carry.
+-    }
+-    // Do the same for the top half.
+-    for (int bigit_index = num_bigits; bigit_index < num_result_bigits;
+-         ++bigit_index) {
+-      for (int j = num_bigits - 1, i = bigit_index - j; i < num_bigits;)
+-        sum += static_cast<double_bigit>(n[i++]) * n[j--];
+-      (*this)[bigit_index] = static_cast<bigit>(sum);
+-      sum >>= bits<bigit>::value;
+-    }
+-    remove_leading_zeros();
+-    exp_ *= 2;
+-  }
+-
+-  // If this bigint has a bigger exponent than other, adds trailing zero to make
+-  // exponents equal. This simplifies some operations such as subtraction.
+-  FMT_CONSTEXPR20 void align(const bigint& other) {
+-    int exp_difference = exp_ - other.exp_;
+-    if (exp_difference <= 0) return;
+-    int num_bigits = static_cast<int>(bigits_.size());
+-    bigits_.resize(to_unsigned(num_bigits + exp_difference));
+-    for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j)
+-      bigits_[j] = bigits_[i];
+-    std::uninitialized_fill_n(bigits_.data(), exp_difference, 0);
+-    exp_ -= exp_difference;
+-  }
+-
+-  // Divides this bignum by divisor, assigning the remainder to this and
+-  // returning the quotient.
+-  FMT_CONSTEXPR20 int divmod_assign(const bigint& divisor) {
+-    FMT_ASSERT(this != &divisor, "");
+-    if (compare(*this, divisor) < 0) return 0;
+-    FMT_ASSERT(divisor.bigits_[divisor.bigits_.size() - 1u] != 0, "");
+-    align(divisor);
+-    int quotient = 0;
+-    do {
+-      subtract_aligned(divisor);
+-      ++quotient;
+-    } while (compare(*this, divisor) >= 0);
+-    return quotient;
+-  }
+-};
+-
+-enum class round_direction { unknown, up, down };
+-
+-// Given the divisor (normally a power of 10), the remainder = v % divisor for
+-// some number v and the error, returns whether v should be rounded up, down, or
+-// whether the rounding direction can't be determined due to error.
+-// error should be less than divisor / 2.
+-FMT_CONSTEXPR inline round_direction get_round_direction(uint64_t divisor,
+-                                                         uint64_t remainder,
+-                                                         uint64_t error) {
+-  FMT_ASSERT(remainder < divisor, "");  // divisor - remainder won't overflow.
+-  FMT_ASSERT(error < divisor, "");      // divisor - error won't overflow.
+-  FMT_ASSERT(error < divisor - error, "");  // error * 2 won't overflow.
+-  // Round down if (remainder + error) * 2 <= divisor.
+-  if (remainder <= divisor - remainder && error * 2 <= divisor - remainder * 2)
+-    return round_direction::down;
+-  // Round up if (remainder - error) * 2 >= divisor.
+-  if (remainder >= error &&
+-      remainder - error >= divisor - (remainder - error)) {
+-    return round_direction::up;
+-  }
+-  return round_direction::unknown;
+-}
+-
+-namespace digits {
+-enum result {
+-  more,  // Generate more digits.
+-  done,  // Done generating digits.
+-  error  // Digit generation cancelled due to an error.
+-};
+-}
+-
+-struct gen_digits_handler {
+-  char* buf;
+-  int size;
+-  int precision;
+-  int exp10;
+-  bool fixed;
+-
+-  FMT_CONSTEXPR digits::result on_digit(char digit, uint64_t divisor,
+-                                        uint64_t remainder, uint64_t error,
+-                                        bool integral) {
+-    FMT_ASSERT(remainder < divisor, "");
+-    buf[size++] = digit;
+-    if (!integral && error >= remainder) return digits::error;
+-    if (size < precision) return digits::more;
+-    if (!integral) {
+-      // Check if error * 2 < divisor with overflow prevention.
+-      // The check is not needed for the integral part because error = 1
+-      // and divisor > (1 << 32) there.
+-      if (error >= divisor || error >= divisor - error) return digits::error;
+-    } else {
+-      FMT_ASSERT(error == 1 && divisor > 2, "");
+-    }
+-    auto dir = get_round_direction(divisor, remainder, error);
+-    if (dir != round_direction::up)
+-      return dir == round_direction::down ? digits::done : digits::error;
+-    ++buf[size - 1];
+-    for (int i = size - 1; i > 0 && buf[i] > '9'; --i) {
+-      buf[i] = '0';
+-      ++buf[i - 1];
+-    }
+-    if (buf[0] > '9') {
+-      buf[0] = '1';
+-      if (fixed)
+-        buf[size++] = '0';
+-      else
+-        ++exp10;
+-    }
+-    return digits::done;
+-  }
+-};
+-
+-// Generates output using the Grisu digit-gen algorithm.
+-// error: the size of the region (lower, upper) outside of which numbers
+-// definitely do not round to value (Delta in Grisu3).
+-FMT_INLINE FMT_CONSTEXPR20 digits::result grisu_gen_digits(
+-    fp value, uint64_t error, int& exp, gen_digits_handler& handler) {
+-  const fp one(1ULL << -value.e, value.e);
+-  // The integral part of scaled value (p1 in Grisu) = value / one. It cannot be
+-  // zero because it contains a product of two 64-bit numbers with MSB set (due
+-  // to normalization) - 1, shifted right by at most 60 bits.
+-  auto integral = static_cast<uint32_t>(value.f >> -one.e);
+-  FMT_ASSERT(integral != 0, "");
+-  FMT_ASSERT(integral == value.f >> -one.e, "");
+-  // The fractional part of scaled value (p2 in Grisu) c = value % one.
+-  uint64_t fractional = value.f & (one.f - 1);
+-  exp = count_digits(integral);  // kappa in Grisu.
+-  // Non-fixed formats require at least one digit and no precision adjustment.
+-  if (handler.fixed) {
+-    // Adjust fixed precision by exponent because it is relative to decimal
+-    // point.
+-    int precision_offset = exp + handler.exp10;
+-    if (precision_offset > 0 &&
+-        handler.precision > max_value<int>() - precision_offset) {
+-      FMT_THROW(format_error("number is too big"));
+-    }
+-    handler.precision += precision_offset;
+-    // Check if precision is satisfied just by leading zeros, e.g.
+-    // format("{:.2f}", 0.001) gives "0.00" without generating any digits.
+-    if (handler.precision <= 0) {
+-      if (handler.precision < 0) return digits::done;
+-      // Divide by 10 to prevent overflow.
+-      uint64_t divisor = impl_data::power_of_10_64[exp - 1] << -one.e;
+-      auto dir = get_round_direction(divisor, value.f / 10, error * 10);
+-      if (dir == round_direction::unknown) return digits::error;
+-      handler.buf[handler.size++] = dir == round_direction::up ? '1' : '0';
+-      return digits::done;
+-    }
+-  }
+-  // Generate digits for the integral part. This can produce up to 10 digits.
+-  do {
+-    uint32_t digit = 0;
+-    auto divmod_integral = [&](uint32_t divisor) {
+-      digit = integral / divisor;
+-      integral %= divisor;
+-    };
+-    // This optimization by Milo Yip reduces the number of integer divisions by
+-    // one per iteration.
+-    switch (exp) {
+-    case 10:
+-      divmod_integral(1000000000);
+-      break;
+-    case 9:
+-      divmod_integral(100000000);
+-      break;
+-    case 8:
+-      divmod_integral(10000000);
+-      break;
+-    case 7:
+-      divmod_integral(1000000);
+-      break;
+-    case 6:
+-      divmod_integral(100000);
+-      break;
+-    case 5:
+-      divmod_integral(10000);
+-      break;
+-    case 4:
+-      divmod_integral(1000);
+-      break;
+-    case 3:
+-      divmod_integral(100);
+-      break;
+-    case 2:
+-      divmod_integral(10);
+-      break;
+-    case 1:
+-      digit = integral;
+-      integral = 0;
+-      break;
+-    default:
+-      FMT_ASSERT(false, "invalid number of digits");
+-    }
+-    --exp;
+-    auto remainder = (static_cast<uint64_t>(integral) << -one.e) + fractional;
+-    auto result = handler.on_digit(static_cast<char>('0' + digit),
+-                                   impl_data::power_of_10_64[exp] << -one.e,
+-                                   remainder, error, true);
+-    if (result != digits::more) return result;
+-  } while (exp > 0);
+-  // Generate digits for the fractional part.
+-  for (;;) {
+-    fractional *= 10;
+-    error *= 10;
+-    char digit = static_cast<char>('0' + (fractional >> -one.e));
+-    fractional &= one.f - 1;
+-    --exp;
+-    auto result = handler.on_digit(digit, one.f, fractional, error, false);
+-    if (result != digits::more) return result;
+-  }
+-}
+-
+-// A 128-bit integer type used internally,
+-struct uint128_wrapper {
+-  uint128_wrapper() = default;
+-
+-#if FMT_USE_INT128
+-  uint128_t internal_;
+-
+-  constexpr uint128_wrapper(uint64_t high, uint64_t low) FMT_NOEXCEPT
+-      : internal_{static_cast<uint128_t>(low) |
+-                  (static_cast<uint128_t>(high) << 64)} {}
+-
+-  constexpr uint128_wrapper(uint128_t u) : internal_{u} {}
+-
+-  constexpr uint64_t high() const FMT_NOEXCEPT {
+-    return uint64_t(internal_ >> 64);
+-  }
+-  constexpr uint64_t low() const FMT_NOEXCEPT { return uint64_t(internal_); }
+-
+-  uint128_wrapper& operator+=(uint64_t n) FMT_NOEXCEPT {
+-    internal_ += n;
+-    return *this;
+-  }
+-#else
+-  uint64_t high_;
+-  uint64_t low_;
+-
+-  constexpr uint128_wrapper(uint64_t high, uint64_t low) FMT_NOEXCEPT
+-      : high_{high},
+-        low_{low} {}
+-
+-  constexpr uint64_t high() const FMT_NOEXCEPT { return high_; }
+-  constexpr uint64_t low() const FMT_NOEXCEPT { return low_; }
+-
+-  uint128_wrapper& operator+=(uint64_t n) FMT_NOEXCEPT {
+-#  if defined(_MSC_VER) && defined(_M_X64)
+-    unsigned char carry = _addcarry_u64(0, low_, n, &low_);
+-    _addcarry_u64(carry, high_, 0, &high_);
+-    return *this;
+-#  else
+-    uint64_t sum = low_ + n;
+-    high_ += (sum < low_ ? 1 : 0);
+-    low_ = sum;
+-    return *this;
+-#  endif
+-  }
+-#endif
+-};
+-
+-// Implementation of Dragonbox algorithm: https://github.com/jk-jeon/dragonbox.
+-namespace dragonbox {
+-// Computes 128-bit result of multiplication of two 64-bit unsigned integers.
+-inline uint128_wrapper umul128(uint64_t x, uint64_t y) FMT_NOEXCEPT {
+-#if FMT_USE_INT128
+-  return static_cast<uint128_t>(x) * static_cast<uint128_t>(y);
+-#elif defined(_MSC_VER) && defined(_M_X64)
+-  uint128_wrapper result;
+-  result.low_ = _umul128(x, y, &result.high_);
+-  return result;
+-#else
+-  const uint64_t mask = (uint64_t(1) << 32) - uint64_t(1);
+-
+-  uint64_t a = x >> 32;
+-  uint64_t b = x & mask;
+-  uint64_t c = y >> 32;
+-  uint64_t d = y & mask;
+-
+-  uint64_t ac = a * c;
+-  uint64_t bc = b * c;
+-  uint64_t ad = a * d;
+-  uint64_t bd = b * d;
+-
+-  uint64_t intermediate = (bd >> 32) + (ad & mask) + (bc & mask);
+-
+-  return {ac + (intermediate >> 32) + (ad >> 32) + (bc >> 32),
+-          (intermediate << 32) + (bd & mask)};
+-#endif
+-}
+-
+-// Computes upper 64 bits of multiplication of two 64-bit unsigned integers.
+-inline uint64_t umul128_upper64(uint64_t x, uint64_t y) FMT_NOEXCEPT {
+-#if FMT_USE_INT128
+-  auto p = static_cast<uint128_t>(x) * static_cast<uint128_t>(y);
+-  return static_cast<uint64_t>(p >> 64);
+-#elif defined(_MSC_VER) && defined(_M_X64)
+-  return __umulh(x, y);
+-#else
+-  return umul128(x, y).high();
+-#endif
+-}
+-
+-// Computes upper 64 bits of multiplication of a 64-bit unsigned integer and a
+-// 128-bit unsigned integer.
+-inline uint64_t umul192_upper64(uint64_t x, uint128_wrapper y) FMT_NOEXCEPT {
+-  uint128_wrapper g0 = umul128(x, y.high());
+-  g0 += umul128_upper64(x, y.low());
+-  return g0.high();
+-}
+-
+-// Computes upper 32 bits of multiplication of a 32-bit unsigned integer and a
+-// 64-bit unsigned integer.
+-inline uint32_t umul96_upper32(uint32_t x, uint64_t y) FMT_NOEXCEPT {
+-  return static_cast<uint32_t>(umul128_upper64(x, y));
+-}
+-
+-// Computes middle 64 bits of multiplication of a 64-bit unsigned integer and a
+-// 128-bit unsigned integer.
+-inline uint64_t umul192_middle64(uint64_t x, uint128_wrapper y) FMT_NOEXCEPT {
+-  uint64_t g01 = x * y.high();
+-  uint64_t g10 = umul128_upper64(x, y.low());
+-  return g01 + g10;
+-}
+-
+-// Computes lower 64 bits of multiplication of a 32-bit unsigned integer and a
+-// 64-bit unsigned integer.
+-inline uint64_t umul96_lower64(uint32_t x, uint64_t y) FMT_NOEXCEPT {
+-  return x * y;
+-}
+-
+-// Computes floor(log10(pow(2, e))) for e in [-1700, 1700] using the method from
+-// https://fmt.dev/papers/Grisu-Exact.pdf#page=5, section 3.4.
+-inline int floor_log10_pow2(int e) FMT_NOEXCEPT {
+-  FMT_ASSERT(e <= 1700 && e >= -1700, "too large exponent");
+-  const int shift = 22;
+-  return (e * static_cast<int>(log10_2_significand >> (64 - shift))) >> shift;
+-}
+-
+-// Various fast log computations.
+-inline int floor_log2_pow10(int e) FMT_NOEXCEPT {
+-  FMT_ASSERT(e <= 1233 && e >= -1233, "too large exponent");
+-  const uint64_t log2_10_integer_part = 3;
+-  const uint64_t log2_10_fractional_digits = 0x5269e12f346e2bf9;
+-  const int shift_amount = 19;
+-  return (e * static_cast<int>(
+-                  (log2_10_integer_part << shift_amount) |
+-                  (log2_10_fractional_digits >> (64 - shift_amount)))) >>
+-         shift_amount;
+-}
+-inline int floor_log10_pow2_minus_log10_4_over_3(int e) FMT_NOEXCEPT {
+-  FMT_ASSERT(e <= 1700 && e >= -1700, "too large exponent");
+-  const uint64_t log10_4_over_3_fractional_digits = 0x1ffbfc2bbc780375;
+-  const int shift_amount = 22;
+-  return (e * static_cast<int>(log10_2_significand >> (64 - shift_amount)) -
+-          static_cast<int>(log10_4_over_3_fractional_digits >>
+-                           (64 - shift_amount))) >>
+-         shift_amount;
+-}
+-
+-// Returns true iff x is divisible by pow(2, exp).
+-inline bool divisible_by_power_of_2(uint32_t x, int exp) FMT_NOEXCEPT {
+-  FMT_ASSERT(exp >= 1, "");
+-  FMT_ASSERT(x != 0, "");
+-#ifdef FMT_BUILTIN_CTZ
+-  return FMT_BUILTIN_CTZ(x) >= exp;
+-#else
+-  return exp < num_bits<uint32_t>() && x == ((x >> exp) << exp);
+-#endif
+-}
+-inline bool divisible_by_power_of_2(uint64_t x, int exp) FMT_NOEXCEPT {
+-  FMT_ASSERT(exp >= 1, "");
+-  FMT_ASSERT(x != 0, "");
+-#ifdef FMT_BUILTIN_CTZLL
+-  return FMT_BUILTIN_CTZLL(x) >= exp;
+-#else
+-  return exp < num_bits<uint64_t>() && x == ((x >> exp) << exp);
+-#endif
+-}
+-
+-// Table entry type for divisibility test.
+-template <typename T> struct divtest_table_entry {
+-  T mod_inv;
+-  T max_quotient;
+-};
+-
+-// Returns true iff x is divisible by pow(5, exp).
+-inline bool divisible_by_power_of_5(uint32_t x, int exp) FMT_NOEXCEPT {
+-  FMT_ASSERT(exp <= 10, "too large exponent");
+-  static constexpr const divtest_table_entry<uint32_t> divtest_table[] = {
+-      {0x00000001, 0xffffffff}, {0xcccccccd, 0x33333333},
+-      {0xc28f5c29, 0x0a3d70a3}, {0x26e978d5, 0x020c49ba},
+-      {0x3afb7e91, 0x0068db8b}, {0x0bcbe61d, 0x0014f8b5},
+-      {0x68c26139, 0x000431bd}, {0xae8d46a5, 0x0000d6bf},
+-      {0x22e90e21, 0x00002af3}, {0x3a2e9c6d, 0x00000897},
+-      {0x3ed61f49, 0x000001b7}};
+-  return x * divtest_table[exp].mod_inv <= divtest_table[exp].max_quotient;
+-}
+-inline bool divisible_by_power_of_5(uint64_t x, int exp) FMT_NOEXCEPT {
+-  FMT_ASSERT(exp <= 23, "too large exponent");
+-  static constexpr const divtest_table_entry<uint64_t> divtest_table[] = {
+-      {0x0000000000000001, 0xffffffffffffffff},
+-      {0xcccccccccccccccd, 0x3333333333333333},
+-      {0x8f5c28f5c28f5c29, 0x0a3d70a3d70a3d70},
+-      {0x1cac083126e978d5, 0x020c49ba5e353f7c},
+-      {0xd288ce703afb7e91, 0x0068db8bac710cb2},
+-      {0x5d4e8fb00bcbe61d, 0x0014f8b588e368f0},
+-      {0x790fb65668c26139, 0x000431bde82d7b63},
+-      {0xe5032477ae8d46a5, 0x0000d6bf94d5e57a},
+-      {0xc767074b22e90e21, 0x00002af31dc46118},
+-      {0x8e47ce423a2e9c6d, 0x0000089705f4136b},
+-      {0x4fa7f60d3ed61f49, 0x000001b7cdfd9d7b},
+-      {0x0fee64690c913975, 0x00000057f5ff85e5},
+-      {0x3662e0e1cf503eb1, 0x000000119799812d},
+-      {0xa47a2cf9f6433fbd, 0x0000000384b84d09},
+-      {0x54186f653140a659, 0x00000000b424dc35},
+-      {0x7738164770402145, 0x0000000024075f3d},
+-      {0xe4a4d1417cd9a041, 0x000000000734aca5},
+-      {0xc75429d9e5c5200d, 0x000000000170ef54},
+-      {0xc1773b91fac10669, 0x000000000049c977},
+-      {0x26b172506559ce15, 0x00000000000ec1e4},
+-      {0xd489e3a9addec2d1, 0x000000000002f394},
+-      {0x90e860bb892c8d5d, 0x000000000000971d},
+-      {0x502e79bf1b6f4f79, 0x0000000000001e39},
+-      {0xdcd618596be30fe5, 0x000000000000060b}};
+-  return x * divtest_table[exp].mod_inv <= divtest_table[exp].max_quotient;
+-}
+-
+-// Replaces n by floor(n / pow(5, N)) returning true if and only if n is
+-// divisible by pow(5, N).
+-// Precondition: n <= 2 * pow(5, N + 1).
+-template <int N>
+-bool check_divisibility_and_divide_by_pow5(uint32_t& n) FMT_NOEXCEPT {
+-  static constexpr struct {
+-    uint32_t magic_number;
+-    int bits_for_comparison;
+-    uint32_t threshold;
+-    int shift_amount;
+-  } infos[] = {{0xcccd, 16, 0x3333, 18}, {0xa429, 8, 0x0a, 20}};
+-  constexpr auto info = infos[N - 1];
+-  n *= info.magic_number;
+-  const uint32_t comparison_mask = (1u << info.bits_for_comparison) - 1;
+-  bool result = (n & comparison_mask) <= info.threshold;
+-  n >>= info.shift_amount;
+-  return result;
+-}
+-
+-// Computes floor(n / pow(10, N)) for small n and N.
+-// Precondition: n <= pow(10, N + 1).
+-template <int N> uint32_t small_division_by_pow10(uint32_t n) FMT_NOEXCEPT {
+-  static constexpr struct {
+-    uint32_t magic_number;
+-    int shift_amount;
+-    uint32_t divisor_times_10;
+-  } infos[] = {{0xcccd, 19, 100}, {0xa3d8, 22, 1000}};
+-  constexpr auto info = infos[N - 1];
+-  FMT_ASSERT(n <= info.divisor_times_10, "n is too large");
+-  return n * info.magic_number >> info.shift_amount;
+-}
+-
+-// Computes floor(n / 10^(kappa + 1)) (float)
+-inline uint32_t divide_by_10_to_kappa_plus_1(uint32_t n) FMT_NOEXCEPT {
+-  return n / float_info<float>::big_divisor;
+-}
+-// Computes floor(n / 10^(kappa + 1)) (double)
+-inline uint64_t divide_by_10_to_kappa_plus_1(uint64_t n) FMT_NOEXCEPT {
+-  return umul128_upper64(n, 0x83126e978d4fdf3c) >> 9;
+-}
+-
+-// Various subroutines using pow10 cache
+-template <class T> struct cache_accessor;
+-
+-template <> struct cache_accessor<float> {
+-  using carrier_uint = float_info<float>::carrier_uint;
+-  using cache_entry_type = uint64_t;
+-
+-  static uint64_t get_cached_power(int k) FMT_NOEXCEPT {
+-    FMT_ASSERT(k >= float_info<float>::min_k && k <= float_info<float>::max_k,
+-               "k is out of range");
+-    static constexpr const uint64_t pow10_significands[] = {
+-        0x81ceb32c4b43fcf5, 0xa2425ff75e14fc32, 0xcad2f7f5359a3b3f,
+-        0xfd87b5f28300ca0e, 0x9e74d1b791e07e49, 0xc612062576589ddb,
+-        0xf79687aed3eec552, 0x9abe14cd44753b53, 0xc16d9a0095928a28,
+-        0xf1c90080baf72cb2, 0x971da05074da7bef, 0xbce5086492111aeb,
+-        0xec1e4a7db69561a6, 0x9392ee8e921d5d08, 0xb877aa3236a4b44a,
+-        0xe69594bec44de15c, 0x901d7cf73ab0acda, 0xb424dc35095cd810,
+-        0xe12e13424bb40e14, 0x8cbccc096f5088cc, 0xafebff0bcb24aaff,
+-        0xdbe6fecebdedd5bf, 0x89705f4136b4a598, 0xabcc77118461cefd,
+-        0xd6bf94d5e57a42bd, 0x8637bd05af6c69b6, 0xa7c5ac471b478424,
+-        0xd1b71758e219652c, 0x83126e978d4fdf3c, 0xa3d70a3d70a3d70b,
+-        0xcccccccccccccccd, 0x8000000000000000, 0xa000000000000000,
+-        0xc800000000000000, 0xfa00000000000000, 0x9c40000000000000,
+-        0xc350000000000000, 0xf424000000000000, 0x9896800000000000,
+-        0xbebc200000000000, 0xee6b280000000000, 0x9502f90000000000,
+-        0xba43b74000000000, 0xe8d4a51000000000, 0x9184e72a00000000,
+-        0xb5e620f480000000, 0xe35fa931a0000000, 0x8e1bc9bf04000000,
+-        0xb1a2bc2ec5000000, 0xde0b6b3a76400000, 0x8ac7230489e80000,
+-        0xad78ebc5ac620000, 0xd8d726b7177a8000, 0x878678326eac9000,
+-        0xa968163f0a57b400, 0xd3c21bcecceda100, 0x84595161401484a0,
+-        0xa56fa5b99019a5c8, 0xcecb8f27f4200f3a, 0x813f3978f8940984,
+-        0xa18f07d736b90be5, 0xc9f2c9cd04674ede, 0xfc6f7c4045812296,
+-        0x9dc5ada82b70b59d, 0xc5371912364ce305, 0xf684df56c3e01bc6,
+-        0x9a130b963a6c115c, 0xc097ce7bc90715b3, 0xf0bdc21abb48db20,
+-        0x96769950b50d88f4, 0xbc143fa4e250eb31, 0xeb194f8e1ae525fd,
+-        0x92efd1b8d0cf37be, 0xb7abc627050305ad, 0xe596b7b0c643c719,
+-        0x8f7e32ce7bea5c6f, 0xb35dbf821ae4f38b, 0xe0352f62a19e306e};
+-    return pow10_significands[k - float_info<float>::min_k];
+-  }
+-
+-  static carrier_uint compute_mul(carrier_uint u,
+-                                  const cache_entry_type& cache) FMT_NOEXCEPT {
+-    return umul96_upper32(u, cache);
+-  }
+-
+-  static uint32_t compute_delta(const cache_entry_type& cache,
+-                                int beta_minus_1) FMT_NOEXCEPT {
+-    return static_cast<uint32_t>(cache >> (64 - 1 - beta_minus_1));
+-  }
+-
+-  static bool compute_mul_parity(carrier_uint two_f,
+-                                 const cache_entry_type& cache,
+-                                 int beta_minus_1) FMT_NOEXCEPT {
+-    FMT_ASSERT(beta_minus_1 >= 1, "");
+-    FMT_ASSERT(beta_minus_1 < 64, "");
+-
+-    return ((umul96_lower64(two_f, cache) >> (64 - beta_minus_1)) & 1) != 0;
+-  }
+-
+-  static carrier_uint compute_left_endpoint_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return static_cast<carrier_uint>(
+-        (cache - (cache >> (float_info<float>::significand_bits + 2))) >>
+-        (64 - float_info<float>::significand_bits - 1 - beta_minus_1));
+-  }
+-
+-  static carrier_uint compute_right_endpoint_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return static_cast<carrier_uint>(
+-        (cache + (cache >> (float_info<float>::significand_bits + 1))) >>
+-        (64 - float_info<float>::significand_bits - 1 - beta_minus_1));
+-  }
+-
+-  static carrier_uint compute_round_up_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return (static_cast<carrier_uint>(
+-                cache >>
+-                (64 - float_info<float>::significand_bits - 2 - beta_minus_1)) +
+-            1) /
+-           2;
+-  }
+-};
+-
+-template <> struct cache_accessor<double> {
+-  using carrier_uint = float_info<double>::carrier_uint;
+-  using cache_entry_type = uint128_wrapper;
+-
+-  static uint128_wrapper get_cached_power(int k) FMT_NOEXCEPT {
+-    FMT_ASSERT(k >= float_info<double>::min_k && k <= float_info<double>::max_k,
+-               "k is out of range");
+-
+-    static constexpr const uint128_wrapper pow10_significands[] = {
+-#if FMT_USE_FULL_CACHE_DRAGONBOX
+-      {0xff77b1fcbebcdc4f, 0x25e8e89c13bb0f7b},
+-      {0x9faacf3df73609b1, 0x77b191618c54e9ad},
+-      {0xc795830d75038c1d, 0xd59df5b9ef6a2418},
+-      {0xf97ae3d0d2446f25, 0x4b0573286b44ad1e},
+-      {0x9becce62836ac577, 0x4ee367f9430aec33},
+-      {0xc2e801fb244576d5, 0x229c41f793cda740},
+-      {0xf3a20279ed56d48a, 0x6b43527578c11110},
+-      {0x9845418c345644d6, 0x830a13896b78aaaa},
+-      {0xbe5691ef416bd60c, 0x23cc986bc656d554},
+-      {0xedec366b11c6cb8f, 0x2cbfbe86b7ec8aa9},
+-      {0x94b3a202eb1c3f39, 0x7bf7d71432f3d6aa},
+-      {0xb9e08a83a5e34f07, 0xdaf5ccd93fb0cc54},
+-      {0xe858ad248f5c22c9, 0xd1b3400f8f9cff69},
+-      {0x91376c36d99995be, 0x23100809b9c21fa2},
+-      {0xb58547448ffffb2d, 0xabd40a0c2832a78b},
+-      {0xe2e69915b3fff9f9, 0x16c90c8f323f516d},
+-      {0x8dd01fad907ffc3b, 0xae3da7d97f6792e4},
+-      {0xb1442798f49ffb4a, 0x99cd11cfdf41779d},
+-      {0xdd95317f31c7fa1d, 0x40405643d711d584},
+-      {0x8a7d3eef7f1cfc52, 0x482835ea666b2573},
+-      {0xad1c8eab5ee43b66, 0xda3243650005eed0},
+-      {0xd863b256369d4a40, 0x90bed43e40076a83},
+-      {0x873e4f75e2224e68, 0x5a7744a6e804a292},
+-      {0xa90de3535aaae202, 0x711515d0a205cb37},
+-      {0xd3515c2831559a83, 0x0d5a5b44ca873e04},
+-      {0x8412d9991ed58091, 0xe858790afe9486c3},
+-      {0xa5178fff668ae0b6, 0x626e974dbe39a873},
+-      {0xce5d73ff402d98e3, 0xfb0a3d212dc81290},
+-      {0x80fa687f881c7f8e, 0x7ce66634bc9d0b9a},
+-      {0xa139029f6a239f72, 0x1c1fffc1ebc44e81},
+-      {0xc987434744ac874e, 0xa327ffb266b56221},
+-      {0xfbe9141915d7a922, 0x4bf1ff9f0062baa9},
+-      {0x9d71ac8fada6c9b5, 0x6f773fc3603db4aa},
+-      {0xc4ce17b399107c22, 0xcb550fb4384d21d4},
+-      {0xf6019da07f549b2b, 0x7e2a53a146606a49},
+-      {0x99c102844f94e0fb, 0x2eda7444cbfc426e},
+-      {0xc0314325637a1939, 0xfa911155fefb5309},
+-      {0xf03d93eebc589f88, 0x793555ab7eba27cb},
+-      {0x96267c7535b763b5, 0x4bc1558b2f3458df},
+-      {0xbbb01b9283253ca2, 0x9eb1aaedfb016f17},
+-      {0xea9c227723ee8bcb, 0x465e15a979c1cadd},
+-      {0x92a1958a7675175f, 0x0bfacd89ec191eca},
+-      {0xb749faed14125d36, 0xcef980ec671f667c},
+-      {0xe51c79a85916f484, 0x82b7e12780e7401b},
+-      {0x8f31cc0937ae58d2, 0xd1b2ecb8b0908811},
+-      {0xb2fe3f0b8599ef07, 0x861fa7e6dcb4aa16},
+-      {0xdfbdcece67006ac9, 0x67a791e093e1d49b},
+-      {0x8bd6a141006042bd, 0xe0c8bb2c5c6d24e1},
+-      {0xaecc49914078536d, 0x58fae9f773886e19},
+-      {0xda7f5bf590966848, 0xaf39a475506a899f},
+-      {0x888f99797a5e012d, 0x6d8406c952429604},
+-      {0xaab37fd7d8f58178, 0xc8e5087ba6d33b84},
+-      {0xd5605fcdcf32e1d6, 0xfb1e4a9a90880a65},
+-      {0x855c3be0a17fcd26, 0x5cf2eea09a550680},
+-      {0xa6b34ad8c9dfc06f, 0xf42faa48c0ea481f},
+-      {0xd0601d8efc57b08b, 0xf13b94daf124da27},
+-      {0x823c12795db6ce57, 0x76c53d08d6b70859},
+-      {0xa2cb1717b52481ed, 0x54768c4b0c64ca6f},
+-      {0xcb7ddcdda26da268, 0xa9942f5dcf7dfd0a},
+-      {0xfe5d54150b090b02, 0xd3f93b35435d7c4d},
+-      {0x9efa548d26e5a6e1, 0xc47bc5014a1a6db0},
+-      {0xc6b8e9b0709f109a, 0x359ab6419ca1091c},
+-      {0xf867241c8cc6d4c0, 0xc30163d203c94b63},
+-      {0x9b407691d7fc44f8, 0x79e0de63425dcf1e},
+-      {0xc21094364dfb5636, 0x985915fc12f542e5},
+-      {0xf294b943e17a2bc4, 0x3e6f5b7b17b2939e},
+-      {0x979cf3ca6cec5b5a, 0xa705992ceecf9c43},
+-      {0xbd8430bd08277231, 0x50c6ff782a838354},
+-      {0xece53cec4a314ebd, 0xa4f8bf5635246429},
+-      {0x940f4613ae5ed136, 0x871b7795e136be9a},
+-      {0xb913179899f68584, 0x28e2557b59846e40},
+-      {0xe757dd7ec07426e5, 0x331aeada2fe589d0},
+-      {0x9096ea6f3848984f, 0x3ff0d2c85def7622},
+-      {0xb4bca50b065abe63, 0x0fed077a756b53aa},
+-      {0xe1ebce4dc7f16dfb, 0xd3e8495912c62895},
+-      {0x8d3360f09cf6e4bd, 0x64712dd7abbbd95d},
+-      {0xb080392cc4349dec, 0xbd8d794d96aacfb4},
+-      {0xdca04777f541c567, 0xecf0d7a0fc5583a1},
+-      {0x89e42caaf9491b60, 0xf41686c49db57245},
+-      {0xac5d37d5b79b6239, 0x311c2875c522ced6},
+-      {0xd77485cb25823ac7, 0x7d633293366b828c},
+-      {0x86a8d39ef77164bc, 0xae5dff9c02033198},
+-      {0xa8530886b54dbdeb, 0xd9f57f830283fdfd},
+-      {0xd267caa862a12d66, 0xd072df63c324fd7c},
+-      {0x8380dea93da4bc60, 0x4247cb9e59f71e6e},
+-      {0xa46116538d0deb78, 0x52d9be85f074e609},
+-      {0xcd795be870516656, 0x67902e276c921f8c},
+-      {0x806bd9714632dff6, 0x00ba1cd8a3db53b7},
+-      {0xa086cfcd97bf97f3, 0x80e8a40eccd228a5},
+-      {0xc8a883c0fdaf7df0, 0x6122cd128006b2ce},
+-      {0xfad2a4b13d1b5d6c, 0x796b805720085f82},
+-      {0x9cc3a6eec6311a63, 0xcbe3303674053bb1},
+-      {0xc3f490aa77bd60fc, 0xbedbfc4411068a9d},
+-      {0xf4f1b4d515acb93b, 0xee92fb5515482d45},
+-      {0x991711052d8bf3c5, 0x751bdd152d4d1c4b},
+-      {0xbf5cd54678eef0b6, 0xd262d45a78a0635e},
+-      {0xef340a98172aace4, 0x86fb897116c87c35},
+-      {0x9580869f0e7aac0e, 0xd45d35e6ae3d4da1},
+-      {0xbae0a846d2195712, 0x8974836059cca10a},
+-      {0xe998d258869facd7, 0x2bd1a438703fc94c},
+-      {0x91ff83775423cc06, 0x7b6306a34627ddd0},
+-      {0xb67f6455292cbf08, 0x1a3bc84c17b1d543},
+-      {0xe41f3d6a7377eeca, 0x20caba5f1d9e4a94},
+-      {0x8e938662882af53e, 0x547eb47b7282ee9d},
+-      {0xb23867fb2a35b28d, 0xe99e619a4f23aa44},
+-      {0xdec681f9f4c31f31, 0x6405fa00e2ec94d5},
+-      {0x8b3c113c38f9f37e, 0xde83bc408dd3dd05},
+-      {0xae0b158b4738705e, 0x9624ab50b148d446},
+-      {0xd98ddaee19068c76, 0x3badd624dd9b0958},
+-      {0x87f8a8d4cfa417c9, 0xe54ca5d70a80e5d7},
+-      {0xa9f6d30a038d1dbc, 0x5e9fcf4ccd211f4d},
+-      {0xd47487cc8470652b, 0x7647c32000696720},
+-      {0x84c8d4dfd2c63f3b, 0x29ecd9f40041e074},
+-      {0xa5fb0a17c777cf09, 0xf468107100525891},
+-      {0xcf79cc9db955c2cc, 0x7182148d4066eeb5},
+-      {0x81ac1fe293d599bf, 0xc6f14cd848405531},
+-      {0xa21727db38cb002f, 0xb8ada00e5a506a7d},
+-      {0xca9cf1d206fdc03b, 0xa6d90811f0e4851d},
+-      {0xfd442e4688bd304a, 0x908f4a166d1da664},
+-      {0x9e4a9cec15763e2e, 0x9a598e4e043287ff},
+-      {0xc5dd44271ad3cdba, 0x40eff1e1853f29fe},
+-      {0xf7549530e188c128, 0xd12bee59e68ef47d},
+-      {0x9a94dd3e8cf578b9, 0x82bb74f8301958cf},
+-      {0xc13a148e3032d6e7, 0xe36a52363c1faf02},
+-      {0xf18899b1bc3f8ca1, 0xdc44e6c3cb279ac2},
+-      {0x96f5600f15a7b7e5, 0x29ab103a5ef8c0ba},
+-      {0xbcb2b812db11a5de, 0x7415d448f6b6f0e8},
+-      {0xebdf661791d60f56, 0x111b495b3464ad22},
+-      {0x936b9fcebb25c995, 0xcab10dd900beec35},
+-      {0xb84687c269ef3bfb, 0x3d5d514f40eea743},
+-      {0xe65829b3046b0afa, 0x0cb4a5a3112a5113},
+-      {0x8ff71a0fe2c2e6dc, 0x47f0e785eaba72ac},
+-      {0xb3f4e093db73a093, 0x59ed216765690f57},
+-      {0xe0f218b8d25088b8, 0x306869c13ec3532d},
+-      {0x8c974f7383725573, 0x1e414218c73a13fc},
+-      {0xafbd2350644eeacf, 0xe5d1929ef90898fb},
+-      {0xdbac6c247d62a583, 0xdf45f746b74abf3a},
+-      {0x894bc396ce5da772, 0x6b8bba8c328eb784},
+-      {0xab9eb47c81f5114f, 0x066ea92f3f326565},
+-      {0xd686619ba27255a2, 0xc80a537b0efefebe},
+-      {0x8613fd0145877585, 0xbd06742ce95f5f37},
+-      {0xa798fc4196e952e7, 0x2c48113823b73705},
+-      {0xd17f3b51fca3a7a0, 0xf75a15862ca504c6},
+-      {0x82ef85133de648c4, 0x9a984d73dbe722fc},
+-      {0xa3ab66580d5fdaf5, 0xc13e60d0d2e0ebbb},
+-      {0xcc963fee10b7d1b3, 0x318df905079926a9},
+-      {0xffbbcfe994e5c61f, 0xfdf17746497f7053},
+-      {0x9fd561f1fd0f9bd3, 0xfeb6ea8bedefa634},
+-      {0xc7caba6e7c5382c8, 0xfe64a52ee96b8fc1},
+-      {0xf9bd690a1b68637b, 0x3dfdce7aa3c673b1},
+-      {0x9c1661a651213e2d, 0x06bea10ca65c084f},
+-      {0xc31bfa0fe5698db8, 0x486e494fcff30a63},
+-      {0xf3e2f893dec3f126, 0x5a89dba3c3efccfb},
+-      {0x986ddb5c6b3a76b7, 0xf89629465a75e01d},
+-      {0xbe89523386091465, 0xf6bbb397f1135824},
+-      {0xee2ba6c0678b597f, 0x746aa07ded582e2d},
+-      {0x94db483840b717ef, 0xa8c2a44eb4571cdd},
+-      {0xba121a4650e4ddeb, 0x92f34d62616ce414},
+-      {0xe896a0d7e51e1566, 0x77b020baf9c81d18},
+-      {0x915e2486ef32cd60, 0x0ace1474dc1d122f},
+-      {0xb5b5ada8aaff80b8, 0x0d819992132456bb},
+-      {0xe3231912d5bf60e6, 0x10e1fff697ed6c6a},
+-      {0x8df5efabc5979c8f, 0xca8d3ffa1ef463c2},
+-      {0xb1736b96b6fd83b3, 0xbd308ff8a6b17cb3},
+-      {0xddd0467c64bce4a0, 0xac7cb3f6d05ddbdf},
+-      {0x8aa22c0dbef60ee4, 0x6bcdf07a423aa96c},
+-      {0xad4ab7112eb3929d, 0x86c16c98d2c953c7},
+-      {0xd89d64d57a607744, 0xe871c7bf077ba8b8},
+-      {0x87625f056c7c4a8b, 0x11471cd764ad4973},
+-      {0xa93af6c6c79b5d2d, 0xd598e40d3dd89bd0},
+-      {0xd389b47879823479, 0x4aff1d108d4ec2c4},
+-      {0x843610cb4bf160cb, 0xcedf722a585139bb},
+-      {0xa54394fe1eedb8fe, 0xc2974eb4ee658829},
+-      {0xce947a3da6a9273e, 0x733d226229feea33},
+-      {0x811ccc668829b887, 0x0806357d5a3f5260},
+-      {0xa163ff802a3426a8, 0xca07c2dcb0cf26f8},
+-      {0xc9bcff6034c13052, 0xfc89b393dd02f0b6},
+-      {0xfc2c3f3841f17c67, 0xbbac2078d443ace3},
+-      {0x9d9ba7832936edc0, 0xd54b944b84aa4c0e},
+-      {0xc5029163f384a931, 0x0a9e795e65d4df12},
+-      {0xf64335bcf065d37d, 0x4d4617b5ff4a16d6},
+-      {0x99ea0196163fa42e, 0x504bced1bf8e4e46},
+-      {0xc06481fb9bcf8d39, 0xe45ec2862f71e1d7},
+-      {0xf07da27a82c37088, 0x5d767327bb4e5a4d},
+-      {0x964e858c91ba2655, 0x3a6a07f8d510f870},
+-      {0xbbe226efb628afea, 0x890489f70a55368c},
+-      {0xeadab0aba3b2dbe5, 0x2b45ac74ccea842f},
+-      {0x92c8ae6b464fc96f, 0x3b0b8bc90012929e},
+-      {0xb77ada0617e3bbcb, 0x09ce6ebb40173745},
+-      {0xe55990879ddcaabd, 0xcc420a6a101d0516},
+-      {0x8f57fa54c2a9eab6, 0x9fa946824a12232e},
+-      {0xb32df8e9f3546564, 0x47939822dc96abfa},
+-      {0xdff9772470297ebd, 0x59787e2b93bc56f8},
+-      {0x8bfbea76c619ef36, 0x57eb4edb3c55b65b},
+-      {0xaefae51477a06b03, 0xede622920b6b23f2},
+-      {0xdab99e59958885c4, 0xe95fab368e45ecee},
+-      {0x88b402f7fd75539b, 0x11dbcb0218ebb415},
+-      {0xaae103b5fcd2a881, 0xd652bdc29f26a11a},
+-      {0xd59944a37c0752a2, 0x4be76d3346f04960},
+-      {0x857fcae62d8493a5, 0x6f70a4400c562ddc},
+-      {0xa6dfbd9fb8e5b88e, 0xcb4ccd500f6bb953},
+-      {0xd097ad07a71f26b2, 0x7e2000a41346a7a8},
+-      {0x825ecc24c873782f, 0x8ed400668c0c28c9},
+-      {0xa2f67f2dfa90563b, 0x728900802f0f32fb},
+-      {0xcbb41ef979346bca, 0x4f2b40a03ad2ffba},
+-      {0xfea126b7d78186bc, 0xe2f610c84987bfa9},
+-      {0x9f24b832e6b0f436, 0x0dd9ca7d2df4d7ca},
+-      {0xc6ede63fa05d3143, 0x91503d1c79720dbc},
+-      {0xf8a95fcf88747d94, 0x75a44c6397ce912b},
+-      {0x9b69dbe1b548ce7c, 0xc986afbe3ee11abb},
+-      {0xc24452da229b021b, 0xfbe85badce996169},
+-      {0xf2d56790ab41c2a2, 0xfae27299423fb9c4},
+-      {0x97c560ba6b0919a5, 0xdccd879fc967d41b},
+-      {0xbdb6b8e905cb600f, 0x5400e987bbc1c921},
+-      {0xed246723473e3813, 0x290123e9aab23b69},
+-      {0x9436c0760c86e30b, 0xf9a0b6720aaf6522},
+-      {0xb94470938fa89bce, 0xf808e40e8d5b3e6a},
+-      {0xe7958cb87392c2c2, 0xb60b1d1230b20e05},
+-      {0x90bd77f3483bb9b9, 0xb1c6f22b5e6f48c3},
+-      {0xb4ecd5f01a4aa828, 0x1e38aeb6360b1af4},
+-      {0xe2280b6c20dd5232, 0x25c6da63c38de1b1},
+-      {0x8d590723948a535f, 0x579c487e5a38ad0f},
+-      {0xb0af48ec79ace837, 0x2d835a9df0c6d852},
+-      {0xdcdb1b2798182244, 0xf8e431456cf88e66},
+-      {0x8a08f0f8bf0f156b, 0x1b8e9ecb641b5900},
+-      {0xac8b2d36eed2dac5, 0xe272467e3d222f40},
+-      {0xd7adf884aa879177, 0x5b0ed81dcc6abb10},
+-      {0x86ccbb52ea94baea, 0x98e947129fc2b4ea},
+-      {0xa87fea27a539e9a5, 0x3f2398d747b36225},
+-      {0xd29fe4b18e88640e, 0x8eec7f0d19a03aae},
+-      {0x83a3eeeef9153e89, 0x1953cf68300424ad},
+-      {0xa48ceaaab75a8e2b, 0x5fa8c3423c052dd8},
+-      {0xcdb02555653131b6, 0x3792f412cb06794e},
+-      {0x808e17555f3ebf11, 0xe2bbd88bbee40bd1},
+-      {0xa0b19d2ab70e6ed6, 0x5b6aceaeae9d0ec5},
+-      {0xc8de047564d20a8b, 0xf245825a5a445276},
+-      {0xfb158592be068d2e, 0xeed6e2f0f0d56713},
+-      {0x9ced737bb6c4183d, 0x55464dd69685606c},
+-      {0xc428d05aa4751e4c, 0xaa97e14c3c26b887},
+-      {0xf53304714d9265df, 0xd53dd99f4b3066a9},
+-      {0x993fe2c6d07b7fab, 0xe546a8038efe402a},
+-      {0xbf8fdb78849a5f96, 0xde98520472bdd034},
+-      {0xef73d256a5c0f77c, 0x963e66858f6d4441},
+-      {0x95a8637627989aad, 0xdde7001379a44aa9},
+-      {0xbb127c53b17ec159, 0x5560c018580d5d53},
+-      {0xe9d71b689dde71af, 0xaab8f01e6e10b4a7},
+-      {0x9226712162ab070d, 0xcab3961304ca70e9},
+-      {0xb6b00d69bb55c8d1, 0x3d607b97c5fd0d23},
+-      {0xe45c10c42a2b3b05, 0x8cb89a7db77c506b},
+-      {0x8eb98a7a9a5b04e3, 0x77f3608e92adb243},
+-      {0xb267ed1940f1c61c, 0x55f038b237591ed4},
+-      {0xdf01e85f912e37a3, 0x6b6c46dec52f6689},
+-      {0x8b61313bbabce2c6, 0x2323ac4b3b3da016},
+-      {0xae397d8aa96c1b77, 0xabec975e0a0d081b},
+-      {0xd9c7dced53c72255, 0x96e7bd358c904a22},
+-      {0x881cea14545c7575, 0x7e50d64177da2e55},
+-      {0xaa242499697392d2, 0xdde50bd1d5d0b9ea},
+-      {0xd4ad2dbfc3d07787, 0x955e4ec64b44e865},
+-      {0x84ec3c97da624ab4, 0xbd5af13bef0b113f},
+-      {0xa6274bbdd0fadd61, 0xecb1ad8aeacdd58f},
+-      {0xcfb11ead453994ba, 0x67de18eda5814af3},
+-      {0x81ceb32c4b43fcf4, 0x80eacf948770ced8},
+-      {0xa2425ff75e14fc31, 0xa1258379a94d028e},
+-      {0xcad2f7f5359a3b3e, 0x096ee45813a04331},
+-      {0xfd87b5f28300ca0d, 0x8bca9d6e188853fd},
+-      {0x9e74d1b791e07e48, 0x775ea264cf55347e},
+-      {0xc612062576589dda, 0x95364afe032a819e},
+-      {0xf79687aed3eec551, 0x3a83ddbd83f52205},
+-      {0x9abe14cd44753b52, 0xc4926a9672793543},
+-      {0xc16d9a0095928a27, 0x75b7053c0f178294},
+-      {0xf1c90080baf72cb1, 0x5324c68b12dd6339},
+-      {0x971da05074da7bee, 0xd3f6fc16ebca5e04},
+-      {0xbce5086492111aea, 0x88f4bb1ca6bcf585},
+-      {0xec1e4a7db69561a5, 0x2b31e9e3d06c32e6},
+-      {0x9392ee8e921d5d07, 0x3aff322e62439fd0},
+-      {0xb877aa3236a4b449, 0x09befeb9fad487c3},
+-      {0xe69594bec44de15b, 0x4c2ebe687989a9b4},
+-      {0x901d7cf73ab0acd9, 0x0f9d37014bf60a11},
+-      {0xb424dc35095cd80f, 0x538484c19ef38c95},
+-      {0xe12e13424bb40e13, 0x2865a5f206b06fba},
+-      {0x8cbccc096f5088cb, 0xf93f87b7442e45d4},
+-      {0xafebff0bcb24aafe, 0xf78f69a51539d749},
+-      {0xdbe6fecebdedd5be, 0xb573440e5a884d1c},
+-      {0x89705f4136b4a597, 0x31680a88f8953031},
+-      {0xabcc77118461cefc, 0xfdc20d2b36ba7c3e},
+-      {0xd6bf94d5e57a42bc, 0x3d32907604691b4d},
+-      {0x8637bd05af6c69b5, 0xa63f9a49c2c1b110},
+-      {0xa7c5ac471b478423, 0x0fcf80dc33721d54},
+-      {0xd1b71758e219652b, 0xd3c36113404ea4a9},
+-      {0x83126e978d4fdf3b, 0x645a1cac083126ea},
+-      {0xa3d70a3d70a3d70a, 0x3d70a3d70a3d70a4},
+-      {0xcccccccccccccccc, 0xcccccccccccccccd},
+-      {0x8000000000000000, 0x0000000000000000},
+-      {0xa000000000000000, 0x0000000000000000},
+-      {0xc800000000000000, 0x0000000000000000},
+-      {0xfa00000000000000, 0x0000000000000000},
+-      {0x9c40000000000000, 0x0000000000000000},
+-      {0xc350000000000000, 0x0000000000000000},
+-      {0xf424000000000000, 0x0000000000000000},
+-      {0x9896800000000000, 0x0000000000000000},
+-      {0xbebc200000000000, 0x0000000000000000},
+-      {0xee6b280000000000, 0x0000000000000000},
+-      {0x9502f90000000000, 0x0000000000000000},
+-      {0xba43b74000000000, 0x0000000000000000},
+-      {0xe8d4a51000000000, 0x0000000000000000},
+-      {0x9184e72a00000000, 0x0000000000000000},
+-      {0xb5e620f480000000, 0x0000000000000000},
+-      {0xe35fa931a0000000, 0x0000000000000000},
+-      {0x8e1bc9bf04000000, 0x0000000000000000},
+-      {0xb1a2bc2ec5000000, 0x0000000000000000},
+-      {0xde0b6b3a76400000, 0x0000000000000000},
+-      {0x8ac7230489e80000, 0x0000000000000000},
+-      {0xad78ebc5ac620000, 0x0000000000000000},
+-      {0xd8d726b7177a8000, 0x0000000000000000},
+-      {0x878678326eac9000, 0x0000000000000000},
+-      {0xa968163f0a57b400, 0x0000000000000000},
+-      {0xd3c21bcecceda100, 0x0000000000000000},
+-      {0x84595161401484a0, 0x0000000000000000},
+-      {0xa56fa5b99019a5c8, 0x0000000000000000},
+-      {0xcecb8f27f4200f3a, 0x0000000000000000},
+-      {0x813f3978f8940984, 0x4000000000000000},
+-      {0xa18f07d736b90be5, 0x5000000000000000},
+-      {0xc9f2c9cd04674ede, 0xa400000000000000},
+-      {0xfc6f7c4045812296, 0x4d00000000000000},
+-      {0x9dc5ada82b70b59d, 0xf020000000000000},
+-      {0xc5371912364ce305, 0x6c28000000000000},
+-      {0xf684df56c3e01bc6, 0xc732000000000000},
+-      {0x9a130b963a6c115c, 0x3c7f400000000000},
+-      {0xc097ce7bc90715b3, 0x4b9f100000000000},
+-      {0xf0bdc21abb48db20, 0x1e86d40000000000},
+-      {0x96769950b50d88f4, 0x1314448000000000},
+-      {0xbc143fa4e250eb31, 0x17d955a000000000},
+-      {0xeb194f8e1ae525fd, 0x5dcfab0800000000},
+-      {0x92efd1b8d0cf37be, 0x5aa1cae500000000},
+-      {0xb7abc627050305ad, 0xf14a3d9e40000000},
+-      {0xe596b7b0c643c719, 0x6d9ccd05d0000000},
+-      {0x8f7e32ce7bea5c6f, 0xe4820023a2000000},
+-      {0xb35dbf821ae4f38b, 0xdda2802c8a800000},
+-      {0xe0352f62a19e306e, 0xd50b2037ad200000},
+-      {0x8c213d9da502de45, 0x4526f422cc340000},
+-      {0xaf298d050e4395d6, 0x9670b12b7f410000},
+-      {0xdaf3f04651d47b4c, 0x3c0cdd765f114000},
+-      {0x88d8762bf324cd0f, 0xa5880a69fb6ac800},
+-      {0xab0e93b6efee0053, 0x8eea0d047a457a00},
+-      {0xd5d238a4abe98068, 0x72a4904598d6d880},
+-      {0x85a36366eb71f041, 0x47a6da2b7f864750},
+-      {0xa70c3c40a64e6c51, 0x999090b65f67d924},
+-      {0xd0cf4b50cfe20765, 0xfff4b4e3f741cf6d},
+-      {0x82818f1281ed449f, 0xbff8f10e7a8921a4},
+-      {0xa321f2d7226895c7, 0xaff72d52192b6a0d},
+-      {0xcbea6f8ceb02bb39, 0x9bf4f8a69f764490},
+-      {0xfee50b7025c36a08, 0x02f236d04753d5b4},
+-      {0x9f4f2726179a2245, 0x01d762422c946590},
+-      {0xc722f0ef9d80aad6, 0x424d3ad2b7b97ef5},
+-      {0xf8ebad2b84e0d58b, 0xd2e0898765a7deb2},
+-      {0x9b934c3b330c8577, 0x63cc55f49f88eb2f},
+-      {0xc2781f49ffcfa6d5, 0x3cbf6b71c76b25fb},
+-      {0xf316271c7fc3908a, 0x8bef464e3945ef7a},
+-      {0x97edd871cfda3a56, 0x97758bf0e3cbb5ac},
+-      {0xbde94e8e43d0c8ec, 0x3d52eeed1cbea317},
+-      {0xed63a231d4c4fb27, 0x4ca7aaa863ee4bdd},
+-      {0x945e455f24fb1cf8, 0x8fe8caa93e74ef6a},
+-      {0xb975d6b6ee39e436, 0xb3e2fd538e122b44},
+-      {0xe7d34c64a9c85d44, 0x60dbbca87196b616},
+-      {0x90e40fbeea1d3a4a, 0xbc8955e946fe31cd},
+-      {0xb51d13aea4a488dd, 0x6babab6398bdbe41},
+-      {0xe264589a4dcdab14, 0xc696963c7eed2dd1},
+-      {0x8d7eb76070a08aec, 0xfc1e1de5cf543ca2},
+-      {0xb0de65388cc8ada8, 0x3b25a55f43294bcb},
+-      {0xdd15fe86affad912, 0x49ef0eb713f39ebe},
+-      {0x8a2dbf142dfcc7ab, 0x6e3569326c784337},
+-      {0xacb92ed9397bf996, 0x49c2c37f07965404},
+-      {0xd7e77a8f87daf7fb, 0xdc33745ec97be906},
+-      {0x86f0ac99b4e8dafd, 0x69a028bb3ded71a3},
+-      {0xa8acd7c0222311bc, 0xc40832ea0d68ce0c},
+-      {0xd2d80db02aabd62b, 0xf50a3fa490c30190},
+-      {0x83c7088e1aab65db, 0x792667c6da79e0fa},
+-      {0xa4b8cab1a1563f52, 0x577001b891185938},
+-      {0xcde6fd5e09abcf26, 0xed4c0226b55e6f86},
+-      {0x80b05e5ac60b6178, 0x544f8158315b05b4},
+-      {0xa0dc75f1778e39d6, 0x696361ae3db1c721},
+-      {0xc913936dd571c84c, 0x03bc3a19cd1e38e9},
+-      {0xfb5878494ace3a5f, 0x04ab48a04065c723},
+-      {0x9d174b2dcec0e47b, 0x62eb0d64283f9c76},
+-      {0xc45d1df942711d9a, 0x3ba5d0bd324f8394},
+-      {0xf5746577930d6500, 0xca8f44ec7ee36479},
+-      {0x9968bf6abbe85f20, 0x7e998b13cf4e1ecb},
+-      {0xbfc2ef456ae276e8, 0x9e3fedd8c321a67e},
+-      {0xefb3ab16c59b14a2, 0xc5cfe94ef3ea101e},
+-      {0x95d04aee3b80ece5, 0xbba1f1d158724a12},
+-      {0xbb445da9ca61281f, 0x2a8a6e45ae8edc97},
+-      {0xea1575143cf97226, 0xf52d09d71a3293bd},
+-      {0x924d692ca61be758, 0x593c2626705f9c56},
+-      {0xb6e0c377cfa2e12e, 0x6f8b2fb00c77836c},
+-      {0xe498f455c38b997a, 0x0b6dfb9c0f956447},
+-      {0x8edf98b59a373fec, 0x4724bd4189bd5eac},
+-      {0xb2977ee300c50fe7, 0x58edec91ec2cb657},
+-      {0xdf3d5e9bc0f653e1, 0x2f2967b66737e3ed},
+-      {0x8b865b215899f46c, 0xbd79e0d20082ee74},
+-      {0xae67f1e9aec07187, 0xecd8590680a3aa11},
+-      {0xda01ee641a708de9, 0xe80e6f4820cc9495},
+-      {0x884134fe908658b2, 0x3109058d147fdcdd},
+-      {0xaa51823e34a7eede, 0xbd4b46f0599fd415},
+-      {0xd4e5e2cdc1d1ea96, 0x6c9e18ac7007c91a},
+-      {0x850fadc09923329e, 0x03e2cf6bc604ddb0},
+-      {0xa6539930bf6bff45, 0x84db8346b786151c},
+-      {0xcfe87f7cef46ff16, 0xe612641865679a63},
+-      {0x81f14fae158c5f6e, 0x4fcb7e8f3f60c07e},
+-      {0xa26da3999aef7749, 0xe3be5e330f38f09d},
+-      {0xcb090c8001ab551c, 0x5cadf5bfd3072cc5},
+-      {0xfdcb4fa002162a63, 0x73d9732fc7c8f7f6},
+-      {0x9e9f11c4014dda7e, 0x2867e7fddcdd9afa},
+-      {0xc646d63501a1511d, 0xb281e1fd541501b8},
+-      {0xf7d88bc24209a565, 0x1f225a7ca91a4226},
+-      {0x9ae757596946075f, 0x3375788de9b06958},
+-      {0xc1a12d2fc3978937, 0x0052d6b1641c83ae},
+-      {0xf209787bb47d6b84, 0xc0678c5dbd23a49a},
+-      {0x9745eb4d50ce6332, 0xf840b7ba963646e0},
+-      {0xbd176620a501fbff, 0xb650e5a93bc3d898},
+-      {0xec5d3fa8ce427aff, 0xa3e51f138ab4cebe},
+-      {0x93ba47c980e98cdf, 0xc66f336c36b10137},
+-      {0xb8a8d9bbe123f017, 0xb80b0047445d4184},
+-      {0xe6d3102ad96cec1d, 0xa60dc059157491e5},
+-      {0x9043ea1ac7e41392, 0x87c89837ad68db2f},
+-      {0xb454e4a179dd1877, 0x29babe4598c311fb},
+-      {0xe16a1dc9d8545e94, 0xf4296dd6fef3d67a},
+-      {0x8ce2529e2734bb1d, 0x1899e4a65f58660c},
+-      {0xb01ae745b101e9e4, 0x5ec05dcff72e7f8f},
+-      {0xdc21a1171d42645d, 0x76707543f4fa1f73},
+-      {0x899504ae72497eba, 0x6a06494a791c53a8},
+-      {0xabfa45da0edbde69, 0x0487db9d17636892},
+-      {0xd6f8d7509292d603, 0x45a9d2845d3c42b6},
+-      {0x865b86925b9bc5c2, 0x0b8a2392ba45a9b2},
+-      {0xa7f26836f282b732, 0x8e6cac7768d7141e},
+-      {0xd1ef0244af2364ff, 0x3207d795430cd926},
+-      {0x8335616aed761f1f, 0x7f44e6bd49e807b8},
+-      {0xa402b9c5a8d3a6e7, 0x5f16206c9c6209a6},
+-      {0xcd036837130890a1, 0x36dba887c37a8c0f},
+-      {0x802221226be55a64, 0xc2494954da2c9789},
+-      {0xa02aa96b06deb0fd, 0xf2db9baa10b7bd6c},
+-      {0xc83553c5c8965d3d, 0x6f92829494e5acc7},
+-      {0xfa42a8b73abbf48c, 0xcb772339ba1f17f9},
+-      {0x9c69a97284b578d7, 0xff2a760414536efb},
+-      {0xc38413cf25e2d70d, 0xfef5138519684aba},
+-      {0xf46518c2ef5b8cd1, 0x7eb258665fc25d69},
+-      {0x98bf2f79d5993802, 0xef2f773ffbd97a61},
+-      {0xbeeefb584aff8603, 0xaafb550ffacfd8fa},
+-      {0xeeaaba2e5dbf6784, 0x95ba2a53f983cf38},
+-      {0x952ab45cfa97a0b2, 0xdd945a747bf26183},
+-      {0xba756174393d88df, 0x94f971119aeef9e4},
+-      {0xe912b9d1478ceb17, 0x7a37cd5601aab85d},
+-      {0x91abb422ccb812ee, 0xac62e055c10ab33a},
+-      {0xb616a12b7fe617aa, 0x577b986b314d6009},
+-      {0xe39c49765fdf9d94, 0xed5a7e85fda0b80b},
+-      {0x8e41ade9fbebc27d, 0x14588f13be847307},
+-      {0xb1d219647ae6b31c, 0x596eb2d8ae258fc8},
+-      {0xde469fbd99a05fe3, 0x6fca5f8ed9aef3bb},
+-      {0x8aec23d680043bee, 0x25de7bb9480d5854},
+-      {0xada72ccc20054ae9, 0xaf561aa79a10ae6a},
+-      {0xd910f7ff28069da4, 0x1b2ba1518094da04},
+-      {0x87aa9aff79042286, 0x90fb44d2f05d0842},
+-      {0xa99541bf57452b28, 0x353a1607ac744a53},
+-      {0xd3fa922f2d1675f2, 0x42889b8997915ce8},
+-      {0x847c9b5d7c2e09b7, 0x69956135febada11},
+-      {0xa59bc234db398c25, 0x43fab9837e699095},
+-      {0xcf02b2c21207ef2e, 0x94f967e45e03f4bb},
+-      {0x8161afb94b44f57d, 0x1d1be0eebac278f5},
+-      {0xa1ba1ba79e1632dc, 0x6462d92a69731732},
+-      {0xca28a291859bbf93, 0x7d7b8f7503cfdcfe},
+-      {0xfcb2cb35e702af78, 0x5cda735244c3d43e},
+-      {0x9defbf01b061adab, 0x3a0888136afa64a7},
+-      {0xc56baec21c7a1916, 0x088aaa1845b8fdd0},
+-      {0xf6c69a72a3989f5b, 0x8aad549e57273d45},
+-      {0x9a3c2087a63f6399, 0x36ac54e2f678864b},
+-      {0xc0cb28a98fcf3c7f, 0x84576a1bb416a7dd},
+-      {0xf0fdf2d3f3c30b9f, 0x656d44a2a11c51d5},
+-      {0x969eb7c47859e743, 0x9f644ae5a4b1b325},
+-      {0xbc4665b596706114, 0x873d5d9f0dde1fee},
+-      {0xeb57ff22fc0c7959, 0xa90cb506d155a7ea},
+-      {0x9316ff75dd87cbd8, 0x09a7f12442d588f2},
+-      {0xb7dcbf5354e9bece, 0x0c11ed6d538aeb2f},
+-      {0xe5d3ef282a242e81, 0x8f1668c8a86da5fa},
+-      {0x8fa475791a569d10, 0xf96e017d694487bc},
+-      {0xb38d92d760ec4455, 0x37c981dcc395a9ac},
+-      {0xe070f78d3927556a, 0x85bbe253f47b1417},
+-      {0x8c469ab843b89562, 0x93956d7478ccec8e},
+-      {0xaf58416654a6babb, 0x387ac8d1970027b2},
+-      {0xdb2e51bfe9d0696a, 0x06997b05fcc0319e},
+-      {0x88fcf317f22241e2, 0x441fece3bdf81f03},
+-      {0xab3c2fddeeaad25a, 0xd527e81cad7626c3},
+-      {0xd60b3bd56a5586f1, 0x8a71e223d8d3b074},
+-      {0x85c7056562757456, 0xf6872d5667844e49},
+-      {0xa738c6bebb12d16c, 0xb428f8ac016561db},
+-      {0xd106f86e69d785c7, 0xe13336d701beba52},
+-      {0x82a45b450226b39c, 0xecc0024661173473},
+-      {0xa34d721642b06084, 0x27f002d7f95d0190},
+-      {0xcc20ce9bd35c78a5, 0x31ec038df7b441f4},
+-      {0xff290242c83396ce, 0x7e67047175a15271},
+-      {0x9f79a169bd203e41, 0x0f0062c6e984d386},
+-      {0xc75809c42c684dd1, 0x52c07b78a3e60868},
+-      {0xf92e0c3537826145, 0xa7709a56ccdf8a82},
+-      {0x9bbcc7a142b17ccb, 0x88a66076400bb691},
+-      {0xc2abf989935ddbfe, 0x6acff893d00ea435},
+-      {0xf356f7ebf83552fe, 0x0583f6b8c4124d43},
+-      {0x98165af37b2153de, 0xc3727a337a8b704a},
+-      {0xbe1bf1b059e9a8d6, 0x744f18c0592e4c5c},
+-      {0xeda2ee1c7064130c, 0x1162def06f79df73},
+-      {0x9485d4d1c63e8be7, 0x8addcb5645ac2ba8},
+-      {0xb9a74a0637ce2ee1, 0x6d953e2bd7173692},
+-      {0xe8111c87c5c1ba99, 0xc8fa8db6ccdd0437},
+-      {0x910ab1d4db9914a0, 0x1d9c9892400a22a2},
+-      {0xb54d5e4a127f59c8, 0x2503beb6d00cab4b},
+-      {0xe2a0b5dc971f303a, 0x2e44ae64840fd61d},
+-      {0x8da471a9de737e24, 0x5ceaecfed289e5d2},
+-      {0xb10d8e1456105dad, 0x7425a83e872c5f47},
+-      {0xdd50f1996b947518, 0xd12f124e28f77719},
+-      {0x8a5296ffe33cc92f, 0x82bd6b70d99aaa6f},
+-      {0xace73cbfdc0bfb7b, 0x636cc64d1001550b},
+-      {0xd8210befd30efa5a, 0x3c47f7e05401aa4e},
+-      {0x8714a775e3e95c78, 0x65acfaec34810a71},
+-      {0xa8d9d1535ce3b396, 0x7f1839a741a14d0d},
+-      {0xd31045a8341ca07c, 0x1ede48111209a050},
+-      {0x83ea2b892091e44d, 0x934aed0aab460432},
+-      {0xa4e4b66b68b65d60, 0xf81da84d5617853f},
+-      {0xce1de40642e3f4b9, 0x36251260ab9d668e},
+-      {0x80d2ae83e9ce78f3, 0xc1d72b7c6b426019},
+-      {0xa1075a24e4421730, 0xb24cf65b8612f81f},
+-      {0xc94930ae1d529cfc, 0xdee033f26797b627},
+-      {0xfb9b7cd9a4a7443c, 0x169840ef017da3b1},
+-      {0x9d412e0806e88aa5, 0x8e1f289560ee864e},
+-      {0xc491798a08a2ad4e, 0xf1a6f2bab92a27e2},
+-      {0xf5b5d7ec8acb58a2, 0xae10af696774b1db},
+-      {0x9991a6f3d6bf1765, 0xacca6da1e0a8ef29},
+-      {0xbff610b0cc6edd3f, 0x17fd090a58d32af3},
+-      {0xeff394dcff8a948e, 0xddfc4b4cef07f5b0},
+-      {0x95f83d0a1fb69cd9, 0x4abdaf101564f98e},
+-      {0xbb764c4ca7a4440f, 0x9d6d1ad41abe37f1},
+-      {0xea53df5fd18d5513, 0x84c86189216dc5ed},
+-      {0x92746b9be2f8552c, 0x32fd3cf5b4e49bb4},
+-      {0xb7118682dbb66a77, 0x3fbc8c33221dc2a1},
+-      {0xe4d5e82392a40515, 0x0fabaf3feaa5334a},
+-      {0x8f05b1163ba6832d, 0x29cb4d87f2a7400e},
+-      {0xb2c71d5bca9023f8, 0x743e20e9ef511012},
+-      {0xdf78e4b2bd342cf6, 0x914da9246b255416},
+-      {0x8bab8eefb6409c1a, 0x1ad089b6c2f7548e},
+-      {0xae9672aba3d0c320, 0xa184ac2473b529b1},
+-      {0xda3c0f568cc4f3e8, 0xc9e5d72d90a2741e},
+-      {0x8865899617fb1871, 0x7e2fa67c7a658892},
+-      {0xaa7eebfb9df9de8d, 0xddbb901b98feeab7},
+-      {0xd51ea6fa85785631, 0x552a74227f3ea565},
+-      {0x8533285c936b35de, 0xd53a88958f87275f},
+-      {0xa67ff273b8460356, 0x8a892abaf368f137},
+-      {0xd01fef10a657842c, 0x2d2b7569b0432d85},
+-      {0x8213f56a67f6b29b, 0x9c3b29620e29fc73},
+-      {0xa298f2c501f45f42, 0x8349f3ba91b47b8f},
+-      {0xcb3f2f7642717713, 0x241c70a936219a73},
+-      {0xfe0efb53d30dd4d7, 0xed238cd383aa0110},
+-      {0x9ec95d1463e8a506, 0xf4363804324a40aa},
+-      {0xc67bb4597ce2ce48, 0xb143c6053edcd0d5},
+-      {0xf81aa16fdc1b81da, 0xdd94b7868e94050a},
+-      {0x9b10a4e5e9913128, 0xca7cf2b4191c8326},
+-      {0xc1d4ce1f63f57d72, 0xfd1c2f611f63a3f0},
+-      {0xf24a01a73cf2dccf, 0xbc633b39673c8cec},
+-      {0x976e41088617ca01, 0xd5be0503e085d813},
+-      {0xbd49d14aa79dbc82, 0x4b2d8644d8a74e18},
+-      {0xec9c459d51852ba2, 0xddf8e7d60ed1219e},
+-      {0x93e1ab8252f33b45, 0xcabb90e5c942b503},
+-      {0xb8da1662e7b00a17, 0x3d6a751f3b936243},
+-      {0xe7109bfba19c0c9d, 0x0cc512670a783ad4},
+-      {0x906a617d450187e2, 0x27fb2b80668b24c5},
+-      {0xb484f9dc9641e9da, 0xb1f9f660802dedf6},
+-      {0xe1a63853bbd26451, 0x5e7873f8a0396973},
+-      {0x8d07e33455637eb2, 0xdb0b487b6423e1e8},
+-      {0xb049dc016abc5e5f, 0x91ce1a9a3d2cda62},
+-      {0xdc5c5301c56b75f7, 0x7641a140cc7810fb},
+-      {0x89b9b3e11b6329ba, 0xa9e904c87fcb0a9d},
+-      {0xac2820d9623bf429, 0x546345fa9fbdcd44},
+-      {0xd732290fbacaf133, 0xa97c177947ad4095},
+-      {0x867f59a9d4bed6c0, 0x49ed8eabcccc485d},
+-      {0xa81f301449ee8c70, 0x5c68f256bfff5a74},
+-      {0xd226fc195c6a2f8c, 0x73832eec6fff3111},
+-      {0x83585d8fd9c25db7, 0xc831fd53c5ff7eab},
+-      {0xa42e74f3d032f525, 0xba3e7ca8b77f5e55},
+-      {0xcd3a1230c43fb26f, 0x28ce1bd2e55f35eb},
+-      {0x80444b5e7aa7cf85, 0x7980d163cf5b81b3},
+-      {0xa0555e361951c366, 0xd7e105bcc332621f},
+-      {0xc86ab5c39fa63440, 0x8dd9472bf3fefaa7},
+-      {0xfa856334878fc150, 0xb14f98f6f0feb951},
+-      {0x9c935e00d4b9d8d2, 0x6ed1bf9a569f33d3},
+-      {0xc3b8358109e84f07, 0x0a862f80ec4700c8},
+-      {0xf4a642e14c6262c8, 0xcd27bb612758c0fa},
+-      {0x98e7e9cccfbd7dbd, 0x8038d51cb897789c},
+-      {0xbf21e44003acdd2c, 0xe0470a63e6bd56c3},
+-      {0xeeea5d5004981478, 0x1858ccfce06cac74},
+-      {0x95527a5202df0ccb, 0x0f37801e0c43ebc8},
+-      {0xbaa718e68396cffd, 0xd30560258f54e6ba},
+-      {0xe950df20247c83fd, 0x47c6b82ef32a2069},
+-      {0x91d28b7416cdd27e, 0x4cdc331d57fa5441},
+-      {0xb6472e511c81471d, 0xe0133fe4adf8e952},
+-      {0xe3d8f9e563a198e5, 0x58180fddd97723a6},
+-      {0x8e679c2f5e44ff8f, 0x570f09eaa7ea7648},
+-      {0xb201833b35d63f73, 0x2cd2cc6551e513da},
+-      {0xde81e40a034bcf4f, 0xf8077f7ea65e58d1},
+-      {0x8b112e86420f6191, 0xfb04afaf27faf782},
+-      {0xadd57a27d29339f6, 0x79c5db9af1f9b563},
+-      {0xd94ad8b1c7380874, 0x18375281ae7822bc},
+-      {0x87cec76f1c830548, 0x8f2293910d0b15b5},
+-      {0xa9c2794ae3a3c69a, 0xb2eb3875504ddb22},
+-      {0xd433179d9c8cb841, 0x5fa60692a46151eb},
+-      {0x849feec281d7f328, 0xdbc7c41ba6bcd333},
+-      {0xa5c7ea73224deff3, 0x12b9b522906c0800},
+-      {0xcf39e50feae16bef, 0xd768226b34870a00},
+-      {0x81842f29f2cce375, 0xe6a1158300d46640},
+-      {0xa1e53af46f801c53, 0x60495ae3c1097fd0},
+-      {0xca5e89b18b602368, 0x385bb19cb14bdfc4},
+-      {0xfcf62c1dee382c42, 0x46729e03dd9ed7b5},
+-      {0x9e19db92b4e31ba9, 0x6c07a2c26a8346d1},
+-      {0xc5a05277621be293, 0xc7098b7305241885},
+-      { 0xf70867153aa2db38,
+-        0xb8cbee4fc66d1ea7 }
+-#else
+-      {0xff77b1fcbebcdc4f, 0x25e8e89c13bb0f7b},
+-      {0xce5d73ff402d98e3, 0xfb0a3d212dc81290},
+-      {0xa6b34ad8c9dfc06f, 0xf42faa48c0ea481f},
+-      {0x86a8d39ef77164bc, 0xae5dff9c02033198},
+-      {0xd98ddaee19068c76, 0x3badd624dd9b0958},
+-      {0xafbd2350644eeacf, 0xe5d1929ef90898fb},
+-      {0x8df5efabc5979c8f, 0xca8d3ffa1ef463c2},
+-      {0xe55990879ddcaabd, 0xcc420a6a101d0516},
+-      {0xb94470938fa89bce, 0xf808e40e8d5b3e6a},
+-      {0x95a8637627989aad, 0xdde7001379a44aa9},
+-      {0xf1c90080baf72cb1, 0x5324c68b12dd6339},
+-      {0xc350000000000000, 0x0000000000000000},
+-      {0x9dc5ada82b70b59d, 0xf020000000000000},
+-      {0xfee50b7025c36a08, 0x02f236d04753d5b4},
+-      {0xcde6fd5e09abcf26, 0xed4c0226b55e6f86},
+-      {0xa6539930bf6bff45, 0x84db8346b786151c},
+-      {0x865b86925b9bc5c2, 0x0b8a2392ba45a9b2},
+-      {0xd910f7ff28069da4, 0x1b2ba1518094da04},
+-      {0xaf58416654a6babb, 0x387ac8d1970027b2},
+-      {0x8da471a9de737e24, 0x5ceaecfed289e5d2},
+-      {0xe4d5e82392a40515, 0x0fabaf3feaa5334a},
+-      {0xb8da1662e7b00a17, 0x3d6a751f3b936243},
+-      { 0x95527a5202df0ccb,
+-        0x0f37801e0c43ebc8 }
+-#endif
+-    };
+-
+-#if FMT_USE_FULL_CACHE_DRAGONBOX
+-    return pow10_significands[k - float_info<double>::min_k];
+-#else
+-    static constexpr const uint64_t powers_of_5_64[] = {
+-        0x0000000000000001, 0x0000000000000005, 0x0000000000000019,
+-        0x000000000000007d, 0x0000000000000271, 0x0000000000000c35,
+-        0x0000000000003d09, 0x000000000001312d, 0x000000000005f5e1,
+-        0x00000000001dcd65, 0x00000000009502f9, 0x0000000002e90edd,
+-        0x000000000e8d4a51, 0x0000000048c27395, 0x000000016bcc41e9,
+-        0x000000071afd498d, 0x0000002386f26fc1, 0x000000b1a2bc2ec5,
+-        0x000003782dace9d9, 0x00001158e460913d, 0x000056bc75e2d631,
+-        0x0001b1ae4d6e2ef5, 0x000878678326eac9, 0x002a5a058fc295ed,
+-        0x00d3c21bcecceda1, 0x0422ca8b0a00a425, 0x14adf4b7320334b9};
+-
+-    static constexpr const uint32_t pow10_recovery_errors[] = {
+-        0x50001400, 0x54044100, 0x54014555, 0x55954415, 0x54115555, 0x00000001,
+-        0x50000000, 0x00104000, 0x54010004, 0x05004001, 0x55555544, 0x41545555,
+-        0x54040551, 0x15445545, 0x51555514, 0x10000015, 0x00101100, 0x01100015,
+-        0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x04450514, 0x45414110,
+-        0x55555145, 0x50544050, 0x15040155, 0x11054140, 0x50111514, 0x11451454,
+-        0x00400541, 0x00000000, 0x55555450, 0x10056551, 0x10054011, 0x55551014,
+-        0x69514555, 0x05151109, 0x00155555};
+-
+-    static const int compression_ratio = 27;
+-
+-    // Compute base index.
+-    int cache_index = (k - float_info<double>::min_k) / compression_ratio;
+-    int kb = cache_index * compression_ratio + float_info<double>::min_k;
+-    int offset = k - kb;
+-
+-    // Get base cache.
+-    uint128_wrapper base_cache = pow10_significands[cache_index];
+-    if (offset == 0) return base_cache;
+-
+-    // Compute the required amount of bit-shift.
+-    int alpha = floor_log2_pow10(kb + offset) - floor_log2_pow10(kb) - offset;
+-    FMT_ASSERT(alpha > 0 && alpha < 64, "shifting error detected");
+-
+-    // Try to recover the real cache.
+-    uint64_t pow5 = powers_of_5_64[offset];
+-    uint128_wrapper recovered_cache = umul128(base_cache.high(), pow5);
+-    uint128_wrapper middle_low =
+-        umul128(base_cache.low() - (kb < 0 ? 1u : 0u), pow5);
+-
+-    recovered_cache += middle_low.high();
+-
+-    uint64_t high_to_middle = recovered_cache.high() << (64 - alpha);
+-    uint64_t middle_to_low = recovered_cache.low() << (64 - alpha);
+-
+-    recovered_cache =
+-        uint128_wrapper{(recovered_cache.low() >> alpha) | high_to_middle,
+-                        ((middle_low.low() >> alpha) | middle_to_low)};
+-
+-    if (kb < 0) recovered_cache += 1;
+-
+-    // Get error.
+-    int error_idx = (k - float_info<double>::min_k) / 16;
+-    uint32_t error = (pow10_recovery_errors[error_idx] >>
+-                      ((k - float_info<double>::min_k) % 16) * 2) &
+-                     0x3;
+-
+-    // Add the error back.
+-    FMT_ASSERT(recovered_cache.low() + error >= recovered_cache.low(), "");
+-    return {recovered_cache.high(), recovered_cache.low() + error};
+-#endif
+-  }
+-
+-  static carrier_uint compute_mul(carrier_uint u,
+-                                  const cache_entry_type& cache) FMT_NOEXCEPT {
+-    return umul192_upper64(u, cache);
+-  }
+-
+-  static uint32_t compute_delta(cache_entry_type const& cache,
+-                                int beta_minus_1) FMT_NOEXCEPT {
+-    return static_cast<uint32_t>(cache.high() >> (64 - 1 - beta_minus_1));
+-  }
+-
+-  static bool compute_mul_parity(carrier_uint two_f,
+-                                 const cache_entry_type& cache,
+-                                 int beta_minus_1) FMT_NOEXCEPT {
+-    FMT_ASSERT(beta_minus_1 >= 1, "");
+-    FMT_ASSERT(beta_minus_1 < 64, "");
+-
+-    return ((umul192_middle64(two_f, cache) >> (64 - beta_minus_1)) & 1) != 0;
+-  }
+-
+-  static carrier_uint compute_left_endpoint_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return (cache.high() -
+-            (cache.high() >> (float_info<double>::significand_bits + 2))) >>
+-           (64 - float_info<double>::significand_bits - 1 - beta_minus_1);
+-  }
+-
+-  static carrier_uint compute_right_endpoint_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return (cache.high() +
+-            (cache.high() >> (float_info<double>::significand_bits + 1))) >>
+-           (64 - float_info<double>::significand_bits - 1 - beta_minus_1);
+-  }
+-
+-  static carrier_uint compute_round_up_for_shorter_interval_case(
+-      const cache_entry_type& cache, int beta_minus_1) FMT_NOEXCEPT {
+-    return ((cache.high() >>
+-             (64 - float_info<double>::significand_bits - 2 - beta_minus_1)) +
+-            1) /
+-           2;
+-  }
+-};
+-
+-// Various integer checks
+-template <class T>
+-bool is_left_endpoint_integer_shorter_interval(int exponent) FMT_NOEXCEPT {
+-  return exponent >=
+-             float_info<
+-                 T>::case_shorter_interval_left_endpoint_lower_threshold &&
+-         exponent <=
+-             float_info<T>::case_shorter_interval_left_endpoint_upper_threshold;
+-}
+-template <class T>
+-bool is_endpoint_integer(typename float_info<T>::carrier_uint two_f,
+-                         int exponent, int minus_k) FMT_NOEXCEPT {
+-  if (exponent < float_info<T>::case_fc_pm_half_lower_threshold) return false;
+-  // For k >= 0.
+-  if (exponent <= float_info<T>::case_fc_pm_half_upper_threshold) return true;
+-  // For k < 0.
+-  if (exponent > float_info<T>::divisibility_check_by_5_threshold) return false;
+-  return divisible_by_power_of_5(two_f, minus_k);
+-}
+-
+-template <class T>
+-bool is_center_integer(typename float_info<T>::carrier_uint two_f, int exponent,
+-                       int minus_k) FMT_NOEXCEPT {
+-  // Exponent for 5 is negative.
+-  if (exponent > float_info<T>::divisibility_check_by_5_threshold) return false;
+-  if (exponent > float_info<T>::case_fc_upper_threshold)
+-    return divisible_by_power_of_5(two_f, minus_k);
+-  // Both exponents are nonnegative.
+-  if (exponent >= float_info<T>::case_fc_lower_threshold) return true;
+-  // Exponent for 2 is negative.
+-  return divisible_by_power_of_2(two_f, minus_k - exponent + 1);
+-}
+-
+-// Remove trailing zeros from n and return the number of zeros removed (float)
+-FMT_INLINE int remove_trailing_zeros(uint32_t& n) FMT_NOEXCEPT {
+-#ifdef FMT_BUILTIN_CTZ
+-  int t = FMT_BUILTIN_CTZ(n);
+-#else
+-  int t = ctz(n);
+-#endif
+-  if (t > float_info<float>::max_trailing_zeros)
+-    t = float_info<float>::max_trailing_zeros;
+-
+-  const uint32_t mod_inv1 = 0xcccccccd;
+-  const uint32_t max_quotient1 = 0x33333333;
+-  const uint32_t mod_inv2 = 0xc28f5c29;
+-  const uint32_t max_quotient2 = 0x0a3d70a3;
+-
+-  int s = 0;
+-  for (; s < t - 1; s += 2) {
+-    if (n * mod_inv2 > max_quotient2) break;
+-    n *= mod_inv2;
+-  }
+-  if (s < t && n * mod_inv1 <= max_quotient1) {
+-    n *= mod_inv1;
+-    ++s;
+-  }
+-  n >>= s;
+-  return s;
+-}
+-
+-// Removes trailing zeros and returns the number of zeros removed (double)
+-FMT_INLINE int remove_trailing_zeros(uint64_t& n) FMT_NOEXCEPT {
+-#ifdef FMT_BUILTIN_CTZLL
+-  int t = FMT_BUILTIN_CTZLL(n);
+-#else
+-  int t = ctzll(n);
+-#endif
+-  if (t > float_info<double>::max_trailing_zeros)
+-    t = float_info<double>::max_trailing_zeros;
+-  // Divide by 10^8 and reduce to 32-bits
+-  // Since ret_value.significand <= (2^64 - 1) / 1000 < 10^17,
+-  // both of the quotient and the r should fit in 32-bits
+-
+-  const uint32_t mod_inv1 = 0xcccccccd;
+-  const uint32_t max_quotient1 = 0x33333333;
+-  const uint64_t mod_inv8 = 0xc767074b22e90e21;
+-  const uint64_t max_quotient8 = 0x00002af31dc46118;
+-
+-  // If the number is divisible by 1'0000'0000, work with the quotient
+-  if (t >= 8) {
+-    auto quotient_candidate = n * mod_inv8;
+-
+-    if (quotient_candidate <= max_quotient8) {
+-      auto quotient = static_cast<uint32_t>(quotient_candidate >> 8);
+-
+-      int s = 8;
+-      for (; s < t; ++s) {
+-        if (quotient * mod_inv1 > max_quotient1) break;
+-        quotient *= mod_inv1;
+-      }
+-      quotient >>= (s - 8);
+-      n = quotient;
+-      return s;
+-    }
+-  }
+-
+-  // Otherwise, work with the remainder
+-  auto quotient = static_cast<uint32_t>(n / 100000000);
+-  auto remainder = static_cast<uint32_t>(n - 100000000 * quotient);
+-
+-  if (t == 0 || remainder * mod_inv1 > max_quotient1) {
+-    return 0;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 1 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 1) + quotient * 10000000ull;
+-    return 1;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 2 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 2) + quotient * 1000000ull;
+-    return 2;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 3 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 3) + quotient * 100000ull;
+-    return 3;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 4 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 4) + quotient * 10000ull;
+-    return 4;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 5 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 5) + quotient * 1000ull;
+-    return 5;
+-  }
+-  remainder *= mod_inv1;
+-
+-  if (t == 6 || remainder * mod_inv1 > max_quotient1) {
+-    n = (remainder >> 6) + quotient * 100ull;
+-    return 6;
+-  }
+-  remainder *= mod_inv1;
+-
+-  n = (remainder >> 7) + quotient * 10ull;
+-  return 7;
+-}
+-
+-// The main algorithm for shorter interval case
+-template <class T>
+-FMT_INLINE decimal_fp<T> shorter_interval_case(int exponent) FMT_NOEXCEPT {
+-  decimal_fp<T> ret_value;
+-  // Compute k and beta
+-  const int minus_k = floor_log10_pow2_minus_log10_4_over_3(exponent);
+-  const int beta_minus_1 = exponent + floor_log2_pow10(-minus_k);
+-
+-  // Compute xi and zi
+-  using cache_entry_type = typename cache_accessor<T>::cache_entry_type;
+-  const cache_entry_type cache = cache_accessor<T>::get_cached_power(-minus_k);
+-
+-  auto xi = cache_accessor<T>::compute_left_endpoint_for_shorter_interval_case(
+-      cache, beta_minus_1);
+-  auto zi = cache_accessor<T>::compute_right_endpoint_for_shorter_interval_case(
+-      cache, beta_minus_1);
+-
+-  // If the left endpoint is not an integer, increase it
+-  if (!is_left_endpoint_integer_shorter_interval<T>(exponent)) ++xi;
+-
+-  // Try bigger divisor
+-  ret_value.significand = zi / 10;
+-
+-  // If succeed, remove trailing zeros if necessary and return
+-  if (ret_value.significand * 10 >= xi) {
+-    ret_value.exponent = minus_k + 1;
+-    ret_value.exponent += remove_trailing_zeros(ret_value.significand);
+-    return ret_value;
+-  }
+-
+-  // Otherwise, compute the round-up of y
+-  ret_value.significand =
+-      cache_accessor<T>::compute_round_up_for_shorter_interval_case(
+-          cache, beta_minus_1);
+-  ret_value.exponent = minus_k;
+-
+-  // When tie occurs, choose one of them according to the rule
+-  if (exponent >= float_info<T>::shorter_interval_tie_lower_threshold &&
+-      exponent <= float_info<T>::shorter_interval_tie_upper_threshold) {
+-    ret_value.significand = ret_value.significand % 2 == 0
+-                                ? ret_value.significand
+-                                : ret_value.significand - 1;
+-  } else if (ret_value.significand < xi) {
+-    ++ret_value.significand;
+-  }
+-  return ret_value;
+-}
+-
+-template <typename T> decimal_fp<T> to_decimal(T x) FMT_NOEXCEPT {
+-  // Step 1: integer promotion & Schubfach multiplier calculation.
+-
+-  using carrier_uint = typename float_info<T>::carrier_uint;
+-  using cache_entry_type = typename cache_accessor<T>::cache_entry_type;
+-  auto br = bit_cast<carrier_uint>(x);
+-
+-  // Extract significand bits and exponent bits.
+-  const carrier_uint significand_mask =
+-      (static_cast<carrier_uint>(1) << float_info<T>::significand_bits) - 1;
+-  carrier_uint significand = (br & significand_mask);
+-  int exponent = static_cast<int>((br & exponent_mask<T>()) >>
+-                                  float_info<T>::significand_bits);
+-
+-  if (exponent != 0) {  // Check if normal.
+-    exponent += float_info<T>::exponent_bias - float_info<T>::significand_bits;
+-
+-    // Shorter interval case; proceed like Schubfach.
+-    if (significand == 0) return shorter_interval_case<T>(exponent);
+-
+-    significand |=
+-        (static_cast<carrier_uint>(1) << float_info<T>::significand_bits);
+-  } else {
+-    // Subnormal case; the interval is always regular.
+-    if (significand == 0) return {0, 0};
+-    exponent = float_info<T>::min_exponent - float_info<T>::significand_bits;
+-  }
+-
+-  const bool include_left_endpoint = (significand % 2 == 0);
+-  const bool include_right_endpoint = include_left_endpoint;
+-
+-  // Compute k and beta.
+-  const int minus_k = floor_log10_pow2(exponent) - float_info<T>::kappa;
+-  const cache_entry_type cache = cache_accessor<T>::get_cached_power(-minus_k);
+-  const int beta_minus_1 = exponent + floor_log2_pow10(-minus_k);
+-
+-  // Compute zi and deltai
+-  // 10^kappa <= deltai < 10^(kappa + 1)
+-  const uint32_t deltai = cache_accessor<T>::compute_delta(cache, beta_minus_1);
+-  const carrier_uint two_fc = significand << 1;
+-  const carrier_uint two_fr = two_fc | 1;
+-  const carrier_uint zi =
+-      cache_accessor<T>::compute_mul(two_fr << beta_minus_1, cache);
+-
+-  // Step 2: Try larger divisor; remove trailing zeros if necessary
+-
+-  // Using an upper bound on zi, we might be able to optimize the division
+-  // better than the compiler; we are computing zi / big_divisor here
+-  decimal_fp<T> ret_value;
+-  ret_value.significand = divide_by_10_to_kappa_plus_1(zi);
+-  uint32_t r = static_cast<uint32_t>(zi - float_info<T>::big_divisor *
+-                                              ret_value.significand);
+-
+-  if (r > deltai) {
+-    goto small_divisor_case_label;
+-  } else if (r < deltai) {
+-    // Exclude the right endpoint if necessary
+-    if (r == 0 && !include_right_endpoint &&
+-        is_endpoint_integer<T>(two_fr, exponent, minus_k)) {
+-      --ret_value.significand;
+-      r = float_info<T>::big_divisor;
+-      goto small_divisor_case_label;
+-    }
+-  } else {
+-    // r == deltai; compare fractional parts
+-    // Check conditions in the order different from the paper
+-    // to take advantage of short-circuiting
+-    const carrier_uint two_fl = two_fc - 1;
+-    if ((!include_left_endpoint ||
+-         !is_endpoint_integer<T>(two_fl, exponent, minus_k)) &&
+-        !cache_accessor<T>::compute_mul_parity(two_fl, cache, beta_minus_1)) {
+-      goto small_divisor_case_label;
+-    }
+-  }
+-  ret_value.exponent = minus_k + float_info<T>::kappa + 1;
+-
+-  // We may need to remove trailing zeros
+-  ret_value.exponent += remove_trailing_zeros(ret_value.significand);
+-  return ret_value;
+-
+-  // Step 3: Find the significand with the smaller divisor
+-
+-small_divisor_case_label:
+-  ret_value.significand *= 10;
+-  ret_value.exponent = minus_k + float_info<T>::kappa;
+-
+-  const uint32_t mask = (1u << float_info<T>::kappa) - 1;
+-  auto dist = r - (deltai / 2) + (float_info<T>::small_divisor / 2);
+-
+-  // Is dist divisible by 2^kappa?
+-  if ((dist & mask) == 0) {
+-    const bool approx_y_parity =
+-        ((dist ^ (float_info<T>::small_divisor / 2)) & 1) != 0;
+-    dist >>= float_info<T>::kappa;
+-
+-    // Is dist divisible by 5^kappa?
+-    if (check_divisibility_and_divide_by_pow5<float_info<T>::kappa>(dist)) {
+-      ret_value.significand += dist;
+-
+-      // Check z^(f) >= epsilon^(f)
+-      // We have either yi == zi - epsiloni or yi == (zi - epsiloni) - 1,
+-      // where yi == zi - epsiloni if and only if z^(f) >= epsilon^(f)
+-      // Since there are only 2 possibilities, we only need to care about the
+-      // parity. Also, zi and r should have the same parity since the divisor
+-      // is an even number
+-      if (cache_accessor<T>::compute_mul_parity(two_fc, cache, beta_minus_1) !=
+-          approx_y_parity) {
+-        --ret_value.significand;
+-      } else {
+-        // If z^(f) >= epsilon^(f), we might have a tie
+-        // when z^(f) == epsilon^(f), or equivalently, when y is an integer
+-        if (is_center_integer<T>(two_fc, exponent, minus_k)) {
+-          ret_value.significand = ret_value.significand % 2 == 0
+-                                      ? ret_value.significand
+-                                      : ret_value.significand - 1;
+-        }
+-      }
+-    }
+-    // Is dist not divisible by 5^kappa?
+-    else {
+-      ret_value.significand += dist;
+-    }
+-  }
+-  // Is dist not divisible by 2^kappa?
+-  else {
+-    // Since we know dist is small, we might be able to optimize the division
+-    // better than the compiler; we are computing dist / small_divisor here
+-    ret_value.significand +=
+-        small_division_by_pow10<float_info<T>::kappa>(dist);
+-  }
+-  return ret_value;
+-}
+-}  // namespace dragonbox
+-
+-// Formats a floating-point number using a variation of the Fixed-Precision
+-// Positive Floating-Point Printout ((FPP)^2) algorithm by Steele & White:
+-// https://fmt.dev/papers/p372-steele.pdf.
+-FMT_CONSTEXPR20 inline void format_dragon(fp value, bool is_predecessor_closer,
+-                                          int num_digits, buffer<char>& buf,
+-                                          int& exp10) {
+-  bigint numerator;    // 2 * R in (FPP)^2.
+-  bigint denominator;  // 2 * S in (FPP)^2.
+-  // lower and upper are differences between value and corresponding boundaries.
+-  bigint lower;             // (M^- in (FPP)^2).
+-  bigint upper_store;       // upper's value if different from lower.
+-  bigint* upper = nullptr;  // (M^+ in (FPP)^2).
+-  // Shift numerator and denominator by an extra bit or two (if lower boundary
+-  // is closer) to make lower and upper integers. This eliminates multiplication
+-  // by 2 during later computations.
+-  int shift = is_predecessor_closer ? 2 : 1;
+-  uint64_t significand = value.f << shift;
+-  if (value.e >= 0) {
+-    numerator.assign(significand);
+-    numerator <<= value.e;
+-    lower.assign(1);
+-    lower <<= value.e;
+-    if (shift != 1) {
+-      upper_store.assign(1);
+-      upper_store <<= value.e + 1;
+-      upper = &upper_store;
+-    }
+-    denominator.assign_pow10(exp10);
+-    denominator <<= shift;
+-  } else if (exp10 < 0) {
+-    numerator.assign_pow10(-exp10);
+-    lower.assign(numerator);
+-    if (shift != 1) {
+-      upper_store.assign(numerator);
+-      upper_store <<= 1;
+-      upper = &upper_store;
+-    }
+-    numerator *= significand;
+-    denominator.assign(1);
+-    denominator <<= shift - value.e;
+-  } else {
+-    numerator.assign(significand);
+-    denominator.assign_pow10(exp10);
+-    denominator <<= shift - value.e;
+-    lower.assign(1);
+-    if (shift != 1) {
+-      upper_store.assign(1ULL << 1);
+-      upper = &upper_store;
+-    }
+-  }
+-  // Invariant: value == (numerator / denominator) * pow(10, exp10).
+-  if (num_digits < 0) {
+-    // Generate the shortest representation.
+-    if (!upper) upper = &lower;
+-    bool even = (value.f & 1) == 0;
+-    num_digits = 0;
+-    char* data = buf.data();
+-    for (;;) {
+-      int digit = numerator.divmod_assign(denominator);
+-      bool low = compare(numerator, lower) - even < 0;  // numerator <[=] lower.
+-      // numerator + upper >[=] pow10:
+-      bool high = add_compare(numerator, *upper, denominator) + even > 0;
+-      data[num_digits++] = static_cast<char>('0' + digit);
+-      if (low || high) {
+-        if (!low) {
+-          ++data[num_digits - 1];
+-        } else if (high) {
+-          int result = add_compare(numerator, numerator, denominator);
+-          // Round half to even.
+-          if (result > 0 || (result == 0 && (digit % 2) != 0))
+-            ++data[num_digits - 1];
+-        }
+-        buf.try_resize(to_unsigned(num_digits));
+-        exp10 -= num_digits - 1;
+-        return;
+-      }
+-      numerator *= 10;
+-      lower *= 10;
+-      if (upper != &lower) *upper *= 10;
+-    }
+-  }
+-  // Generate the given number of digits.
+-  exp10 -= num_digits - 1;
+-  if (num_digits == 0) {
+-    denominator *= 10;
+-    auto digit = add_compare(numerator, numerator, denominator) > 0 ? '1' : '0';
+-    buf.push_back(digit);
+-    return;
+-  }
+-  buf.try_resize(to_unsigned(num_digits));
+-  for (int i = 0; i < num_digits - 1; ++i) {
+-    int digit = numerator.divmod_assign(denominator);
+-    buf[i] = static_cast<char>('0' + digit);
+-    numerator *= 10;
+-  }
+-  int digit = numerator.divmod_assign(denominator);
+-  auto result = add_compare(numerator, numerator, denominator);
+-  if (result > 0 || (result == 0 && (digit % 2) != 0)) {
+-    if (digit == 9) {
+-      const auto overflow = '0' + 10;
+-      buf[num_digits - 1] = overflow;
+-      // Propagate the carry.
+-      for (int i = num_digits - 1; i > 0 && buf[i] == overflow; --i) {
+-        buf[i] = '0';
+-        ++buf[i - 1];
+-      }
+-      if (buf[0] == overflow) {
+-        buf[0] = '1';
+-        ++exp10;
+-      }
+-      return;
+-    }
+-    ++digit;
+-  }
+-  buf[num_digits - 1] = static_cast<char>('0' + digit);
+-}
+-
+-template <typename Float>
+-FMT_HEADER_ONLY_CONSTEXPR20 int format_float(Float value, int precision,
+-                                             float_specs specs,
+-                                             buffer<char>& buf) {
+-  // float is passed as double to reduce the number of instantiations.
+-  static_assert(!std::is_same<Float, float>::value, "");
+-  FMT_ASSERT(value >= 0, "value is negative");
+-
+-  const bool fixed = specs.format == float_format::fixed;
+-  if (value <= 0) {  // <= instead of == to silence a warning.
+-    if (precision <= 0 || !fixed) {
+-      buf.push_back('0');
+-      return 0;
+-    }
+-    buf.try_resize(to_unsigned(precision));
+-    fill_n(buf.data(), precision, '0');
+-    return -precision;
+-  }
+-
+-  if (specs.fallback) return snprintf_float(value, precision, specs, buf);
+-
+-  if (!is_constant_evaluated() && precision < 0) {
+-    // Use Dragonbox for the shortest format.
+-    if (specs.binary32) {
+-      auto dec = dragonbox::to_decimal(static_cast<float>(value));
+-      write<char>(buffer_appender<char>(buf), dec.significand);
+-      return dec.exponent;
+-    }
+-    auto dec = dragonbox::to_decimal(static_cast<double>(value));
+-    write<char>(buffer_appender<char>(buf), dec.significand);
+-    return dec.exponent;
+-  }
+-
+-  int exp = 0;
+-  bool use_dragon = true;
+-  if (is_fast_float<Float>()) {
+-    // Use Grisu + Dragon4 for the given precision:
+-    // https://www.cs.tufts.edu/~nr/cs257/archive/florian-loitsch/printf.pdf.
+-    const int min_exp = -60;  // alpha in Grisu.
+-    int cached_exp10 = 0;     // K in Grisu.
+-    fp normalized = normalize(fp(value));
+-    const auto cached_pow = get_cached_power(
+-        min_exp - (normalized.e + fp::num_significand_bits), cached_exp10);
+-    normalized = normalized * cached_pow;
+-    gen_digits_handler handler{buf.data(), 0, precision, -cached_exp10, fixed};
+-    if (grisu_gen_digits(normalized, 1, exp, handler) != digits::error &&
+-        !is_constant_evaluated()) {
+-      exp += handler.exp10;
+-      buf.try_resize(to_unsigned(handler.size));
+-      use_dragon = false;
+-    } else {
+-      exp += handler.size - cached_exp10 - 1;
+-      precision = handler.precision;
+-    }
+-  }
+-  if (use_dragon) {
+-    auto f = fp();
+-    bool is_predecessor_closer =
+-        specs.binary32 ? f.assign(static_cast<float>(value)) : f.assign(value);
+-    // Limit precision to the maximum possible number of significant digits in
+-    // an IEEE754 double because we don't need to generate zeros.
+-    const int max_double_digits = 767;
+-    if (precision > max_double_digits) precision = max_double_digits;
+-    format_dragon(f, is_predecessor_closer, precision, buf, exp);
+-  }
+-  if (!fixed && !specs.showpoint) {
+-    // Remove trailing zeros.
+-    auto num_digits = buf.size();
+-    while (num_digits > 0 && buf[num_digits - 1] == '0') {
+-      --num_digits;
+-      ++exp;
+-    }
+-    buf.try_resize(num_digits);
+-  }
+-  return exp;
+-}
+-
+-template <typename T>
+-int snprintf_float(T value, int precision, float_specs specs,
+-                   buffer<char>& buf) {
+-  // Buffer capacity must be non-zero, otherwise MSVC's vsnprintf_s will fail.
+-  FMT_ASSERT(buf.capacity() > buf.size(), "empty buffer");
+-  static_assert(!std::is_same<T, float>::value, "");
+-
+-  // Subtract 1 to account for the difference in precision since we use %e for
+-  // both general and exponent format.
+-  if (specs.format == float_format::general ||
+-      specs.format == float_format::exp)
+-    precision = (precision >= 0 ? precision : 6) - 1;
+-
+-  // Build the format string.
+-  enum { max_format_size = 7 };  // The longest format is "%#.*Le".
+-  char format[max_format_size];
+-  char* format_ptr = format;
+-  *format_ptr++ = '%';
+-  if (specs.showpoint && specs.format == float_format::hex) *format_ptr++ = '#';
+-  if (precision >= 0) {
+-    *format_ptr++ = '.';
+-    *format_ptr++ = '*';
+-  }
+-  if (std::is_same<T, long double>()) *format_ptr++ = 'L';
+-  *format_ptr++ = specs.format != float_format::hex
+-                      ? (specs.format == float_format::fixed ? 'f' : 'e')
+-                      : (specs.upper ? 'A' : 'a');
+-  *format_ptr = '\0';
+-
+-  // Format using snprintf.
+-  auto offset = buf.size();
+-  for (;;) {
+-    auto begin = buf.data() + offset;
+-    auto capacity = buf.capacity() - offset;
+-#ifdef FMT_FUZZ
+-    if (precision > 100000)
+-      throw std::runtime_error(
+-          "fuzz mode - avoid large allocation inside snprintf");
+-#endif
+-    // Suppress the warning about a nonliteral format string.
+-    // Cannot use auto because of a bug in MinGW (#1532).
+-    int (*snprintf_ptr)(char*, size_t, const char*, ...) = FMT_SNPRINTF;
+-    int result = precision >= 0
+-                     ? snprintf_ptr(begin, capacity, format, precision, value)
+-                     : snprintf_ptr(begin, capacity, format, value);
+-    if (result < 0) {
+-      // The buffer will grow exponentially.
+-      buf.try_reserve(buf.capacity() + 1);
+-      continue;
+-    }
+-    auto size = to_unsigned(result);
+-    // Size equal to capacity means that the last character was truncated.
+-    if (size >= capacity) {
+-      buf.try_reserve(size + offset + 1);  // Add 1 for the terminating '\0'.
+-      continue;
+-    }
+-    auto is_digit = [](char c) { return c >= '0' && c <= '9'; };
+-    if (specs.format == float_format::fixed) {
+-      if (precision == 0) {
+-        buf.try_resize(size);
+-        return 0;
+-      }
+-      // Find and remove the decimal point.
+-      auto end = begin + size, p = end;
+-      do {
+-        --p;
+-      } while (is_digit(*p));
+-      int fraction_size = static_cast<int>(end - p - 1);
+-      std::memmove(p, p + 1, to_unsigned(fraction_size));
+-      buf.try_resize(size - 1);
+-      return -fraction_size;
+-    }
+-    if (specs.format == float_format::hex) {
+-      buf.try_resize(size + offset);
+-      return 0;
+-    }
+-    // Find and parse the exponent.
+-    auto end = begin + size, exp_pos = end;
+-    do {
+-      --exp_pos;
+-    } while (*exp_pos != 'e');
+-    char sign = exp_pos[1];
+-    FMT_ASSERT(sign == '+' || sign == '-', "");
+-    int exp = 0;
+-    auto p = exp_pos + 2;  // Skip 'e' and sign.
+-    do {
+-      FMT_ASSERT(is_digit(*p), "");
+-      exp = exp * 10 + (*p++ - '0');
+-    } while (p != end);
+-    if (sign == '-') exp = -exp;
+-    int fraction_size = 0;
+-    if (exp_pos != begin + 1) {
+-      // Remove trailing zeros.
+-      auto fraction_end = exp_pos - 1;
+-      while (*fraction_end == '0') --fraction_end;
+-      // Move the fractional part left to get rid of the decimal point.
+-      fraction_size = static_cast<int>(fraction_end - begin - 1);
+-      std::memmove(begin + 1, begin + 2, to_unsigned(fraction_size));
+-    }
+-    buf.try_resize(to_unsigned(fraction_size) + offset + 1);
+-    return exp - fraction_size;
+-  }
+-}
+-}  // namespace detail
+-
+-template <> struct formatter<detail::bigint> {
+-  FMT_CONSTEXPR format_parse_context::iterator parse(
+-      format_parse_context& ctx) {
+-    return ctx.begin();
+-  }
+-
+-  format_context::iterator format(const detail::bigint& n,
+-                                  format_context& ctx) {
+-    auto out = ctx.out();
+-    bool first = true;
+-    for (auto i = n.bigits_.size(); i > 0; --i) {
+-      auto value = n.bigits_[i - 1u];
+-      if (first) {
+-        out = format_to(out, FMT_STRING("{:x}"), value);
+-        first = false;
+-        continue;
+-      }
+-      out = format_to(out, FMT_STRING("{:08x}"), value);
+-    }
+-    if (n.exp_ > 0)
+-      out = format_to(out, FMT_STRING("p{}"),
+-                      n.exp_ * detail::bigint::bigit_bits);
+-    return out;
+-  }
+-};
+-
+-FMT_FUNC detail::utf8_to_utf16::utf8_to_utf16(string_view s) {
+-  for_each_codepoint(s, [this](uint32_t cp, string_view) {
+-    if (cp == invalid_code_point) FMT_THROW(std::runtime_error("invalid utf8"));
+-    if (cp <= 0xFFFF) {
+-      buffer_.push_back(static_cast<wchar_t>(cp));
+-    } else {
+-      cp -= 0x10000;
+-      buffer_.push_back(static_cast<wchar_t>(0xD800 + (cp >> 10)));
+-      buffer_.push_back(static_cast<wchar_t>(0xDC00 + (cp & 0x3FF)));
+-    }
+-    return true;
+-  });
+-  buffer_.push_back(0);
+-}
+-
+-FMT_FUNC void format_system_error(detail::buffer<char>& out, int error_code,
+-                                  const char* message) FMT_NOEXCEPT {
+-  FMT_TRY {
+-    auto ec = std::error_code(error_code, std::generic_category());
+-    write(std::back_inserter(out), std::system_error(ec, message).what());
+-    return;
+-  }
+-  FMT_CATCH(...) {}
+-  format_error_code(out, error_code, message);
+-}
+-
+-FMT_FUNC void report_system_error(int error_code,
+-                                  const char* message) FMT_NOEXCEPT {
+-  report_error(format_system_error, error_code, message);
+-}
+-
+-// DEPRECATED!
+-// This function is defined here and not inline for ABI compatibility.
+-FMT_FUNC void detail::error_handler::on_error(const char* message) {
+-  throw_format_error(message);
+-}
+-
+-FMT_FUNC std::string vformat(string_view fmt, format_args args) {
+-  // Don't optimize the "{}" case to keep the binary size small and because it
+-  // can be better optimized in fmt::format anyway.
+-  auto buffer = memory_buffer();
+-  detail::vformat_to(buffer, fmt, args);
+-  return to_string(buffer);
+-}
+-
+-#ifdef _WIN32
+-namespace detail {
+-using dword = conditional_t<sizeof(long) == 4, unsigned long, unsigned>;
+-extern "C" __declspec(dllimport) int __stdcall WriteConsoleW(  //
+-    void*, const void*, dword, dword*, void*);
+-}  // namespace detail
+-#endif
+-
+-namespace detail {
+-FMT_FUNC void print(std::FILE* f, string_view text) {
+-#ifdef _WIN32
+-  auto fd = _fileno(f);
+-  if (_isatty(fd)) {
+-    detail::utf8_to_utf16 u16(string_view(text.data(), text.size()));
+-    auto written = detail::dword();
+-    if (detail::WriteConsoleW(reinterpret_cast<void*>(_get_osfhandle(fd)),
+-                              u16.c_str(), static_cast<uint32_t>(u16.size()),
+-                              &written, nullptr)) {
+-      return;
+-    }
+-    // Fallback to fwrite on failure. It can happen if the output has been
+-    // redirected to NUL.
+-  }
+-#endif
+-  detail::fwrite_fully(text.data(), 1, text.size(), f);
+-}
+-}  // namespace detail
+-
+-FMT_FUNC void vprint(std::FILE* f, string_view format_str, format_args args) {
+-  memory_buffer buffer;
+-  detail::vformat_to(buffer, format_str, args);
+-  detail::print(f, {buffer.data(), buffer.size()});
+-}
+-
+-#ifdef _WIN32
+-// Print assuming legacy (non-Unicode) encoding.
+-FMT_FUNC void detail::vprint_mojibake(std::FILE* f, string_view format_str,
+-                                      format_args args) {
+-  memory_buffer buffer;
+-  detail::vformat_to(buffer, format_str,
+-                     basic_format_args<buffer_context<char>>(args));
+-  fwrite_fully(buffer.data(), 1, buffer.size(), f);
+-}
+-#endif
+-
+-FMT_FUNC void vprint(string_view format_str, format_args args) {
+-  vprint(stdout, format_str, args);
+-}
+-
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_FORMAT_INL_H_
+diff --git a/include/dpp/fmt/format.h b/include/dpp/fmt/format.h
+deleted file mode 100644
+index ee69651..0000000
+--- a/include/dpp/fmt/format.h
++++ /dev/null
+@@ -1,3104 +0,0 @@
+-/*
+- Formatting library for C++
+-
+- Copyright (c) 2012 - present, Victor Zverovich
+-
+- 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.
+-
+- --- Optional exception to the license ---
+-
+- As an exception, if, as a result of your compiling your source code, portions
+- of this Software are embedded into a machine-executable object form of such
+- source code, you may redistribute such embedded portions in such object form
+- without including the above copyright and permission notices.
+- */
+-
+-#ifndef FMT_FORMAT_H_
+-#define FMT_FORMAT_H_
+-
+-#include <cmath>         // std::signbit
+-#include <cstdint>       // uint32_t
+-#include <limits>        // std::numeric_limits
+-#include <memory>        // std::uninitialized_copy
+-#include <stdexcept>     // std::runtime_error
+-#include <system_error>  // std::system_error
+-#include <utility>       // std::swap
+-
+-#ifdef __cpp_lib_bit_cast
+-#  include <bit>  // std::bitcast
+-#endif
+-
+-#include "core.h"
+-
+-#if FMT_GCC_VERSION
+-#  define FMT_GCC_VISIBILITY_HIDDEN __attribute__((visibility("hidden")))
+-#else
+-#  define FMT_GCC_VISIBILITY_HIDDEN
+-#endif
+-
+-#ifdef __NVCC__
+-#  define FMT_CUDA_VERSION (__CUDACC_VER_MAJOR__ * 100 + __CUDACC_VER_MINOR__)
+-#else
+-#  define FMT_CUDA_VERSION 0
+-#endif
+-
+-#ifdef __has_builtin
+-#  define FMT_HAS_BUILTIN(x) __has_builtin(x)
+-#else
+-#  define FMT_HAS_BUILTIN(x) 0
+-#endif
+-
+-#if FMT_GCC_VERSION || FMT_CLANG_VERSION
+-#  define FMT_NOINLINE __attribute__((noinline))
+-#else
+-#  define FMT_NOINLINE
+-#endif
+-
+-#if FMT_MSC_VER
+-#  define FMT_MSC_DEFAULT = default
+-#else
+-#  define FMT_MSC_DEFAULT
+-#endif
+-
+-#ifndef FMT_THROW
+-#  if FMT_EXCEPTIONS
+-#    if FMT_MSC_VER || FMT_NVCC
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-template <typename Exception> inline void do_throw(const Exception& x) {
+-  // Silence unreachable code warnings in MSVC and NVCC because these
+-  // are nearly impossible to fix in a generic code.
+-  volatile bool b = true;
+-  if (b) throw x;
+-}
+-}  // namespace detail
+-FMT_END_NAMESPACE
+-#      define FMT_THROW(x) detail::do_throw(x)
+-#    else
+-#      define FMT_THROW(x) throw x
+-#    endif
+-#  else
+-#    define FMT_THROW(x)               \
+-      do {                             \
+-        FMT_ASSERT(false, (x).what()); \
+-      } while (false)
+-#  endif
+-#endif
+-
+-#if FMT_EXCEPTIONS
+-#  define FMT_TRY try
+-#  define FMT_CATCH(x) catch (x)
+-#else
+-#  define FMT_TRY if (true)
+-#  define FMT_CATCH(x) if (false)
+-#endif
+-
+-#ifndef FMT_MAYBE_UNUSED
+-#  if FMT_HAS_CPP17_ATTRIBUTE(maybe_unused)
+-#    define FMT_MAYBE_UNUSED [[maybe_unused]]
+-#  else
+-#    define FMT_MAYBE_UNUSED
+-#  endif
+-#endif
+-
+-// Workaround broken [[deprecated]] in the Intel, PGI and NVCC compilers.
+-#if FMT_ICC_VERSION || defined(__PGI) || FMT_NVCC
+-#  define FMT_DEPRECATED_ALIAS
+-#else
+-#  define FMT_DEPRECATED_ALIAS FMT_DEPRECATED
+-#endif
+-
+-#ifndef FMT_USE_USER_DEFINED_LITERALS
+-// EDG based compilers (Intel, NVIDIA, Elbrus, etc), GCC and MSVC support UDLs.
+-#  if (FMT_HAS_FEATURE(cxx_user_literals) || FMT_GCC_VERSION >= 407 || \
+-       FMT_MSC_VER >= 1900) &&                                         \
+-      (!defined(__EDG_VERSION__) || __EDG_VERSION__ >= /* UDL feature */ 480)
+-#    define FMT_USE_USER_DEFINED_LITERALS 1
+-#  else
+-#    define FMT_USE_USER_DEFINED_LITERALS 0
+-#  endif
+-#endif
+-
+-// Defining FMT_REDUCE_INT_INSTANTIATIONS to 1, will reduce the number of
+-// integer formatter template instantiations to just one by only using the
+-// largest integer type. This results in a reduction in binary size but will
+-// cause a decrease in integer formatting performance.
+-#if !defined(FMT_REDUCE_INT_INSTANTIATIONS)
+-#  define FMT_REDUCE_INT_INSTANTIATIONS 0
+-#endif
+-
+-// __builtin_clz is broken in clang with Microsoft CodeGen:
+-// https://github.com/fmtlib/fmt/issues/519.
+-#if !FMT_MSC_VER
+-#  if FMT_HAS_BUILTIN(__builtin_clz) || FMT_GCC_VERSION || FMT_ICC_VERSION
+-#    define FMT_BUILTIN_CLZ(n) __builtin_clz(n)
+-#  endif
+-#  if FMT_HAS_BUILTIN(__builtin_clzll) || FMT_GCC_VERSION || FMT_ICC_VERSION
+-#    define FMT_BUILTIN_CLZLL(n) __builtin_clzll(n)
+-#  endif
+-#endif
+-
+-// __builtin_ctz is broken in Intel Compiler Classic on Windows:
+-// https://github.com/fmtlib/fmt/issues/2510.
+-#ifndef __ICL
+-#  if FMT_HAS_BUILTIN(__builtin_ctz) || FMT_GCC_VERSION || FMT_ICC_VERSION
+-#    define FMT_BUILTIN_CTZ(n) __builtin_ctz(n)
+-#  endif
+-#  if FMT_HAS_BUILTIN(__builtin_ctzll) || FMT_GCC_VERSION || FMT_ICC_VERSION
+-#    define FMT_BUILTIN_CTZLL(n) __builtin_ctzll(n)
+-#  endif
+-#endif
+-
+-#if FMT_MSC_VER
+-#  include <intrin.h>  // _BitScanReverse[64], _BitScanForward[64], _umul128
+-#endif
+-
+-// Some compilers masquerade as both MSVC and GCC-likes or otherwise support
+-// __builtin_clz and __builtin_clzll, so only define FMT_BUILTIN_CLZ using the
+-// MSVC intrinsics if the clz and clzll builtins are not available.
+-#if FMT_MSC_VER && !defined(FMT_BUILTIN_CLZLL) && !defined(FMT_BUILTIN_CTZLL)
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-// Avoid Clang with Microsoft CodeGen's -Wunknown-pragmas warning.
+-#  if !defined(__clang__)
+-#    pragma intrinsic(_BitScanForward)
+-#    pragma intrinsic(_BitScanReverse)
+-#    if defined(_WIN64)
+-#      pragma intrinsic(_BitScanForward64)
+-#      pragma intrinsic(_BitScanReverse64)
+-#    endif
+-#  endif
+-
+-inline auto clz(uint32_t x) -> int {
+-  unsigned long r = 0;
+-  _BitScanReverse(&r, x);
+-  FMT_ASSERT(x != 0, "");
+-  // Static analysis complains about using uninitialized data
+-  // "r", but the only way that can happen is if "x" is 0,
+-  // which the callers guarantee to not happen.
+-  FMT_MSC_WARNING(suppress : 6102)
+-  return 31 ^ static_cast<int>(r);
+-}
+-#  define FMT_BUILTIN_CLZ(n) detail::clz(n)
+-
+-inline auto clzll(uint64_t x) -> int {
+-  unsigned long r = 0;
+-#  ifdef _WIN64
+-  _BitScanReverse64(&r, x);
+-#  else
+-  // Scan the high 32 bits.
+-  if (_BitScanReverse(&r, static_cast<uint32_t>(x >> 32))) return 63 ^ (r + 32);
+-  // Scan the low 32 bits.
+-  _BitScanReverse(&r, static_cast<uint32_t>(x));
+-#  endif
+-  FMT_ASSERT(x != 0, "");
+-  FMT_MSC_WARNING(suppress : 6102)  // Suppress a bogus static analysis warning.
+-  return 63 ^ static_cast<int>(r);
+-}
+-#  define FMT_BUILTIN_CLZLL(n) detail::clzll(n)
+-
+-inline auto ctz(uint32_t x) -> int {
+-  unsigned long r = 0;
+-  _BitScanForward(&r, x);
+-  FMT_ASSERT(x != 0, "");
+-  FMT_MSC_WARNING(suppress : 6102)  // Suppress a bogus static analysis warning.
+-  return static_cast<int>(r);
+-}
+-#  define FMT_BUILTIN_CTZ(n) detail::ctz(n)
+-
+-inline auto ctzll(uint64_t x) -> int {
+-  unsigned long r = 0;
+-  FMT_ASSERT(x != 0, "");
+-  FMT_MSC_WARNING(suppress : 6102)  // Suppress a bogus static analysis warning.
+-#  ifdef _WIN64
+-  _BitScanForward64(&r, x);
+-#  else
+-  // Scan the low 32 bits.
+-  if (_BitScanForward(&r, static_cast<uint32_t>(x))) return static_cast<int>(r);
+-  // Scan the high 32 bits.
+-  _BitScanForward(&r, static_cast<uint32_t>(x >> 32));
+-  r += 32;
+-#  endif
+-  return static_cast<int>(r);
+-}
+-#  define FMT_BUILTIN_CTZLL(n) detail::ctzll(n)
+-}  // namespace detail
+-FMT_END_NAMESPACE
+-#endif
+-
+-#ifdef FMT_HEADER_ONLY
+-#  define FMT_HEADER_ONLY_CONSTEXPR20 FMT_CONSTEXPR20
+-#else
+-#  define FMT_HEADER_ONLY_CONSTEXPR20
+-#endif
+-
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-
+-template <typename Streambuf> class formatbuf : public Streambuf {
+- private:
+-  using char_type = typename Streambuf::char_type;
+-  using streamsize = decltype(std::declval<Streambuf>().sputn(nullptr, 0));
+-  using int_type = typename Streambuf::int_type;
+-  using traits_type = typename Streambuf::traits_type;
+-
+-  buffer<char_type>& buffer_;
+-
+- public:
+-  explicit formatbuf(buffer<char_type>& buf) : buffer_(buf) {}
+-
+- protected:
+-  // The put area is always empty. This makes the implementation simpler and has
+-  // the advantage that the streambuf and the buffer are always in sync and
+-  // sputc never writes into uninitialized memory. A disadvantage is that each
+-  // call to sputc always results in a (virtual) call to overflow. There is no
+-  // disadvantage here for sputn since this always results in a call to xsputn.
+-
+-  auto overflow(int_type ch) -> int_type override {
+-    if (!traits_type::eq_int_type(ch, traits_type::eof()))
+-      buffer_.push_back(static_cast<char_type>(ch));
+-    return ch;
+-  }
+-
+-  auto xsputn(const char_type* s, streamsize count) -> streamsize override {
+-    buffer_.append(s, s + count);
+-    return count;
+-  }
+-};
+-
+-// Implementation of std::bit_cast for pre-C++20.
+-template <typename To, typename From>
+-FMT_CONSTEXPR20 auto bit_cast(const From& from) -> To {
+-  static_assert(sizeof(To) == sizeof(From), "size mismatch");
+-#ifdef __cpp_lib_bit_cast
+-  if (is_constant_evaluated()) return std::bit_cast<To>(from);
+-#endif
+-  auto to = To();
+-  std::memcpy(&to, &from, sizeof(to));
+-  return to;
+-}
+-
+-inline auto is_big_endian() -> bool {
+-#ifdef _WIN32
+-  return false;
+-#elif defined(__BIG_ENDIAN__)
+-  return true;
+-#elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__)
+-  return __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__;
+-#else
+-  struct bytes {
+-    char data[sizeof(int)];
+-  };
+-  return bit_cast<bytes>(1).data[0] == 0;
+-#endif
+-}
+-
+-// A fallback implementation of uintptr_t for systems that lack it.
+-struct fallback_uintptr {
+-  unsigned char value[sizeof(void*)];
+-
+-  fallback_uintptr() = default;
+-  explicit fallback_uintptr(const void* p) {
+-    *this = bit_cast<fallback_uintptr>(p);
+-    if (const_check(is_big_endian())) {
+-      for (size_t i = 0, j = sizeof(void*) - 1; i < j; ++i, --j)
+-        std::swap(value[i], value[j]);
+-    }
+-  }
+-};
+-#ifdef UINTPTR_MAX
+-using uintptr_t = ::uintptr_t;
+-inline auto to_uintptr(const void* p) -> uintptr_t {
+-  return bit_cast<uintptr_t>(p);
+-}
+-#else
+-using uintptr_t = fallback_uintptr;
+-inline auto to_uintptr(const void* p) -> fallback_uintptr {
+-  return fallback_uintptr(p);
+-}
+-#endif
+-
+-// Returns the largest possible value for type T. Same as
+-// std::numeric_limits<T>::max() but shorter and not affected by the max macro.
+-template <typename T> constexpr auto max_value() -> T {
+-  return (std::numeric_limits<T>::max)();
+-}
+-template <typename T> constexpr auto num_bits() -> int {
+-  return std::numeric_limits<T>::digits;
+-}
+-// std::numeric_limits<T>::digits may return 0 for 128-bit ints.
+-template <> constexpr auto num_bits<int128_t>() -> int { return 128; }
+-template <> constexpr auto num_bits<uint128_t>() -> int { return 128; }
+-template <> constexpr auto num_bits<fallback_uintptr>() -> int {
+-  return static_cast<int>(sizeof(void*) *
+-                          std::numeric_limits<unsigned char>::digits);
+-}
+-
+-FMT_INLINE void assume(bool condition) {
+-  (void)condition;
+-#if FMT_HAS_BUILTIN(__builtin_assume)
+-  __builtin_assume(condition);
+-#endif
+-}
+-
+-// An approximation of iterator_t for pre-C++20 systems.
+-template <typename T>
+-using iterator_t = decltype(std::begin(std::declval<T&>()));
+-template <typename T> using sentinel_t = decltype(std::end(std::declval<T&>()));
+-
+-// A workaround for std::string not having mutable data() until C++17.
+-template <typename Char>
+-inline auto get_data(std::basic_string<Char>& s) -> Char* {
+-  return &s[0];
+-}
+-template <typename Container>
+-inline auto get_data(Container& c) -> typename Container::value_type* {
+-  return c.data();
+-}
+-
+-#if defined(_SECURE_SCL) && _SECURE_SCL
+-// Make a checked iterator to avoid MSVC warnings.
+-template <typename T> using checked_ptr = stdext::checked_array_iterator<T*>;
+-template <typename T>
+-constexpr auto make_checked(T* p, size_t size) -> checked_ptr<T> {
+-  return {p, size};
+-}
+-#else
+-template <typename T> using checked_ptr = T*;
+-template <typename T> constexpr auto make_checked(T* p, size_t) -> T* {
+-  return p;
+-}
+-#endif
+-
+-// Attempts to reserve space for n extra characters in the output range.
+-// Returns a pointer to the reserved range or a reference to it.
+-template <typename Container, FMT_ENABLE_IF(is_contiguous<Container>::value)>
+-#if FMT_CLANG_VERSION >= 307 && !FMT_ICC_VERSION
+-__attribute__((no_sanitize("undefined")))
+-#endif
+-inline auto
+-reserve(std::back_insert_iterator<Container> it, size_t n)
+-    -> checked_ptr<typename Container::value_type> {
+-  Container& c = get_container(it);
+-  size_t size = c.size();
+-  c.resize(size + n);
+-  return make_checked(get_data(c) + size, n);
+-}
+-
+-template <typename T>
+-inline auto reserve(buffer_appender<T> it, size_t n) -> buffer_appender<T> {
+-  buffer<T>& buf = get_container(it);
+-  buf.try_reserve(buf.size() + n);
+-  return it;
+-}
+-
+-template <typename Iterator>
+-constexpr auto reserve(Iterator& it, size_t) -> Iterator& {
+-  return it;
+-}
+-
+-template <typename OutputIt>
+-using reserve_iterator =
+-    remove_reference_t<decltype(reserve(std::declval<OutputIt&>(), 0))>;
+-
+-template <typename T, typename OutputIt>
+-constexpr auto to_pointer(OutputIt, size_t) -> T* {
+-  return nullptr;
+-}
+-template <typename T> auto to_pointer(buffer_appender<T> it, size_t n) -> T* {
+-  buffer<T>& buf = get_container(it);
+-  auto size = buf.size();
+-  if (buf.capacity() < size + n) return nullptr;
+-  buf.try_resize(size + n);
+-  return buf.data() + size;
+-}
+-
+-template <typename Container, FMT_ENABLE_IF(is_contiguous<Container>::value)>
+-inline auto base_iterator(std::back_insert_iterator<Container>& it,
+-                          checked_ptr<typename Container::value_type>)
+-    -> std::back_insert_iterator<Container> {
+-  return it;
+-}
+-
+-template <typename Iterator>
+-constexpr auto base_iterator(Iterator, Iterator it) -> Iterator {
+-  return it;
+-}
+-
+-// <algorithm> is spectacularly slow to compile in C++20 so use a simple fill_n
+-// instead (#1998).
+-template <typename OutputIt, typename Size, typename T>
+-FMT_CONSTEXPR auto fill_n(OutputIt out, Size count, const T& value)
+-    -> OutputIt {
+-  for (Size i = 0; i < count; ++i) *out++ = value;
+-  return out;
+-}
+-template <typename T, typename Size>
+-FMT_CONSTEXPR20 auto fill_n(T* out, Size count, char value) -> T* {
+-  if (is_constant_evaluated()) {
+-    return fill_n<T*, Size, T>(out, count, value);
+-  }
+-  std::memset(out, value, to_unsigned(count));
+-  return out + count;
+-}
+-
+-#ifdef __cpp_char8_t
+-using char8_type = char8_t;
+-#else
+-enum char8_type : unsigned char {};
+-#endif
+-
+-template <typename OutChar, typename InputIt, typename OutputIt>
+-FMT_CONSTEXPR FMT_NOINLINE auto copy_str_noinline(InputIt begin, InputIt end,
+-                                                  OutputIt out) -> OutputIt {
+-  return copy_str<OutChar>(begin, end, out);
+-}
+-
+-// A public domain branchless UTF-8 decoder by Christopher Wellons:
+-// https://github.com/skeeto/branchless-utf8
+-/* Decode the next character, c, from s, reporting errors in e.
+- *
+- * Since this is a branchless decoder, four bytes will be read from the
+- * buffer regardless of the actual length of the next character. This
+- * means the buffer _must_ have at least three bytes of zero padding
+- * following the end of the data stream.
+- *
+- * Errors are reported in e, which will be non-zero if the parsed
+- * character was somehow invalid: invalid byte sequence, non-canonical
+- * encoding, or a surrogate half.
+- *
+- * The function returns a pointer to the next character. When an error
+- * occurs, this pointer will be a guess that depends on the particular
+- * error, but it will always advance at least one byte.
+- */
+-FMT_CONSTEXPR inline auto utf8_decode(const char* s, uint32_t* c, int* e)
+-    -> const char* {
+-  constexpr const int masks[] = {0x00, 0x7f, 0x1f, 0x0f, 0x07};
+-  constexpr const uint32_t mins[] = {4194304, 0, 128, 2048, 65536};
+-  constexpr const int shiftc[] = {0, 18, 12, 6, 0};
+-  constexpr const int shifte[] = {0, 6, 4, 2, 0};
+-
+-  int len = code_point_length(s);
+-  const char* next = s + len;
+-
+-  // Assume a four-byte character and load four bytes. Unused bits are
+-  // shifted out.
+-  *c = uint32_t(s[0] & masks[len]) << 18;
+-  *c |= uint32_t(s[1] & 0x3f) << 12;
+-  *c |= uint32_t(s[2] & 0x3f) << 6;
+-  *c |= uint32_t(s[3] & 0x3f) << 0;
+-  *c >>= shiftc[len];
+-
+-  // Accumulate the various error conditions.
+-  using uchar = unsigned char;
+-  *e = (*c < mins[len]) << 6;       // non-canonical encoding
+-  *e |= ((*c >> 11) == 0x1b) << 7;  // surrogate half?
+-  *e |= (*c > 0x10FFFF) << 8;       // out of range?
+-  *e |= (uchar(s[1]) & 0xc0) >> 2;
+-  *e |= (uchar(s[2]) & 0xc0) >> 4;
+-  *e |= uchar(s[3]) >> 6;
+-  *e ^= 0x2a;  // top two bits of each tail byte correct?
+-  *e >>= shifte[len];
+-
+-  return next;
+-}
+-
+-constexpr uint32_t invalid_code_point = ~uint32_t();
+-
+-// Invokes f(cp, sv) for every code point cp in s with sv being the string view
+-// corresponding to the code point. cp is invalid_code_point on error.
+-template <typename F>
+-FMT_CONSTEXPR void for_each_codepoint(string_view s, F f) {
+-  auto decode = [f](const char* buf_ptr, const char* ptr) {
+-    auto cp = uint32_t();
+-    auto error = 0;
+-    auto end = utf8_decode(buf_ptr, &cp, &error);
+-    bool result = f(error ? invalid_code_point : cp,
+-                    string_view(ptr, to_unsigned(end - buf_ptr)));
+-    return result ? end : nullptr;
+-  };
+-  auto p = s.data();
+-  const size_t block_size = 4;  // utf8_decode always reads blocks of 4 chars.
+-  if (s.size() >= block_size) {
+-    for (auto end = p + s.size() - block_size + 1; p < end;) {
+-      p = decode(p, p);
+-      if (!p) return;
+-    }
+-  }
+-  if (auto num_chars_left = s.data() + s.size() - p) {
+-    char buf[2 * block_size - 1] = {};
+-    copy_str<char>(p, p + num_chars_left, buf);
+-    const char* buf_ptr = buf;
+-    do {
+-      auto end = decode(buf_ptr, p);
+-      if (!end) return;
+-      p += end - buf_ptr;
+-      buf_ptr = end;
+-    } while (buf_ptr - buf < num_chars_left);
+-  }
+-}
+-
+-template <typename Char>
+-inline auto compute_width(basic_string_view<Char> s) -> size_t {
+-  return s.size();
+-}
+-
+-// Computes approximate display width of a UTF-8 string.
+-FMT_CONSTEXPR inline size_t compute_width(string_view s) {
+-  size_t num_code_points = 0;
+-  // It is not a lambda for compatibility with C++14.
+-  struct count_code_points {
+-    size_t* count;
+-    FMT_CONSTEXPR auto operator()(uint32_t cp, string_view) const -> bool {
+-      *count += detail::to_unsigned(
+-          1 +
+-          (cp >= 0x1100 &&
+-           (cp <= 0x115f ||  // Hangul Jamo init. consonants
+-            cp == 0x2329 ||  // LEFT-POINTING ANGLE BRACKET
+-            cp == 0x232a ||  // RIGHT-POINTING ANGLE BRACKET
+-            // CJK ... Yi except IDEOGRAPHIC HALF FILL SPACE:
+-            (cp >= 0x2e80 && cp <= 0xa4cf && cp != 0x303f) ||
+-            (cp >= 0xac00 && cp <= 0xd7a3) ||    // Hangul Syllables
+-            (cp >= 0xf900 && cp <= 0xfaff) ||    // CJK Compatibility Ideographs
+-            (cp >= 0xfe10 && cp <= 0xfe19) ||    // Vertical Forms
+-            (cp >= 0xfe30 && cp <= 0xfe6f) ||    // CJK Compatibility Forms
+-            (cp >= 0xff00 && cp <= 0xff60) ||    // Fullwidth Forms
+-            (cp >= 0xffe0 && cp <= 0xffe6) ||    // Fullwidth Forms
+-            (cp >= 0x20000 && cp <= 0x2fffd) ||  // CJK
+-            (cp >= 0x30000 && cp <= 0x3fffd) ||
+-            // Miscellaneous Symbols and Pictographs + Emoticons:
+-            (cp >= 0x1f300 && cp <= 0x1f64f) ||
+-            // Supplemental Symbols and Pictographs:
+-            (cp >= 0x1f900 && cp <= 0x1f9ff))));
+-      return true;
+-    }
+-  };
+-  for_each_codepoint(s, count_code_points{&num_code_points});
+-  return num_code_points;
+-}
+-
+-inline auto compute_width(basic_string_view<char8_type> s) -> size_t {
+-  return compute_width(basic_string_view<char>(
+-      reinterpret_cast<const char*>(s.data()), s.size()));
+-}
+-
+-template <typename Char>
+-inline auto code_point_index(basic_string_view<Char> s, size_t n) -> size_t {
+-  size_t size = s.size();
+-  return n < size ? n : size;
+-}
+-
+-// Calculates the index of the nth code point in a UTF-8 string.
+-inline auto code_point_index(basic_string_view<char8_type> s, size_t n)
+-    -> size_t {
+-  const char8_type* data = s.data();
+-  size_t num_code_points = 0;
+-  for (size_t i = 0, size = s.size(); i != size; ++i) {
+-    if ((data[i] & 0xc0) != 0x80 && ++num_code_points > n) return i;
+-  }
+-  return s.size();
+-}
+-
+-template <typename T, bool = std::is_floating_point<T>::value>
+-struct is_fast_float : bool_constant<std::numeric_limits<T>::is_iec559 &&
+-                                     sizeof(T) <= sizeof(double)> {};
+-template <typename T> struct is_fast_float<T, false> : std::false_type {};
+-
+-#ifndef FMT_USE_FULL_CACHE_DRAGONBOX
+-#  define FMT_USE_FULL_CACHE_DRAGONBOX 0
+-#endif
+-
+-template <typename T>
+-template <typename U>
+-void buffer<T>::append(const U* begin, const U* end) {
+-  while (begin != end) {
+-    auto count = to_unsigned(end - begin);
+-    try_reserve(size_ + count);
+-    auto free_cap = capacity_ - size_;
+-    if (free_cap < count) count = free_cap;
+-    std::uninitialized_copy_n(begin, count, make_checked(ptr_ + size_, count));
+-    size_ += count;
+-    begin += count;
+-  }
+-}
+-
+-template <typename T, typename Enable = void>
+-struct is_locale : std::false_type {};
+-template <typename T>
+-struct is_locale<T, void_t<decltype(T::classic())>> : std::true_type {};
+-}  // namespace detail
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-// The number of characters to store in the basic_memory_buffer object itself
+-// to avoid dynamic memory allocation.
+-enum { inline_buffer_size = 500 };
+-
+-/**
+-  \rst
+-  A dynamically growing memory buffer for trivially copyable/constructible types
+-  with the first ``SIZE`` elements stored in the object itself.
+-
+-  You can use the ``memory_buffer`` type alias for ``char`` instead.
+-
+-  **Example**::
+-
+-     auto out = fmt::memory_buffer();
+-     format_to(std::back_inserter(out), "The answer is {}.", 42);
+-
+-  This will append the following output to the ``out`` object:
+-
+-  .. code-block:: none
+-
+-     The answer is 42.
+-
+-  The output can be converted to an ``std::string`` with ``to_string(out)``.
+-  \endrst
+- */
+-template <typename T, size_t SIZE = inline_buffer_size,
+-          typename Allocator = std::allocator<T>>
+-class basic_memory_buffer final : public detail::buffer<T> {
+- private:
+-  T store_[SIZE];
+-
+-  // Don't inherit from Allocator avoid generating type_info for it.
+-  Allocator alloc_;
+-
+-  // Deallocate memory allocated by the buffer.
+-  FMT_CONSTEXPR20 void deallocate() {
+-    T* data = this->data();
+-    if (data != store_) alloc_.deallocate(data, this->capacity());
+-  }
+-
+- protected:
+-  FMT_CONSTEXPR20 void grow(size_t size) override;
+-
+- public:
+-  using value_type = T;
+-  using const_reference = const T&;
+-
+-  FMT_CONSTEXPR20 explicit basic_memory_buffer(
+-      const Allocator& alloc = Allocator())
+-      : alloc_(alloc) {
+-    this->set(store_, SIZE);
+-    if (detail::is_constant_evaluated()) {
+-      detail::fill_n(store_, SIZE, T{});
+-    }
+-  }
+-  FMT_CONSTEXPR20 ~basic_memory_buffer() { deallocate(); }
+-
+- private:
+-  // Move data from other to this buffer.
+-  FMT_CONSTEXPR20 void move(basic_memory_buffer& other) {
+-    alloc_ = std::move(other.alloc_);
+-    T* data = other.data();
+-    size_t size = other.size(), capacity = other.capacity();
+-    if (data == other.store_) {
+-      this->set(store_, capacity);
+-      if (detail::is_constant_evaluated()) {
+-        detail::copy_str<T>(other.store_, other.store_ + size,
+-                            detail::make_checked(store_, capacity));
+-      } else {
+-        std::uninitialized_copy(other.store_, other.store_ + size,
+-                                detail::make_checked(store_, capacity));
+-      }
+-    } else {
+-      this->set(data, capacity);
+-      // Set pointer to the inline array so that delete is not called
+-      // when deallocating.
+-      other.set(other.store_, 0);
+-    }
+-    this->resize(size);
+-  }
+-
+- public:
+-  /**
+-    \rst
+-    Constructs a :class:`fmt::basic_memory_buffer` object moving the content
+-    of the other object to it.
+-    \endrst
+-   */
+-  FMT_CONSTEXPR20 basic_memory_buffer(basic_memory_buffer&& other)
+-      FMT_NOEXCEPT {
+-    move(other);
+-  }
+-
+-  /**
+-    \rst
+-    Moves the content of the other ``basic_memory_buffer`` object to this one.
+-    \endrst
+-   */
+-  auto operator=(basic_memory_buffer&& other) FMT_NOEXCEPT
+-      -> basic_memory_buffer& {
+-    FMT_ASSERT(this != &other, "");
+-    deallocate();
+-    move(other);
+-    return *this;
+-  }
+-
+-  // Returns a copy of the allocator associated with this buffer.
+-  auto get_allocator() const -> Allocator { return alloc_; }
+-
+-  /**
+-    Resizes the buffer to contain *count* elements. If T is a POD type new
+-    elements may not be initialized.
+-   */
+-  FMT_CONSTEXPR20 void resize(size_t count) { this->try_resize(count); }
+-
+-  /** Increases the buffer capacity to *new_capacity*. */
+-  void reserve(size_t new_capacity) { this->try_reserve(new_capacity); }
+-
+-  // Directly append data into the buffer
+-  using detail::buffer<T>::append;
+-  template <typename ContiguousRange>
+-  void append(const ContiguousRange& range) {
+-    append(range.data(), range.data() + range.size());
+-  }
+-};
+-
+-template <typename T, size_t SIZE, typename Allocator>
+-FMT_CONSTEXPR20 void basic_memory_buffer<T, SIZE, Allocator>::grow(
+-    size_t size) {
+-#ifdef FMT_FUZZ
+-  if (size > 5000) throw std::runtime_error("fuzz mode - won't grow that much");
+-#endif
+-  const size_t max_size = std::allocator_traits<Allocator>::max_size(alloc_);
+-  size_t old_capacity = this->capacity();
+-  size_t new_capacity = old_capacity + old_capacity / 2;
+-  if (size > new_capacity)
+-    new_capacity = size;
+-  else if (new_capacity > max_size)
+-    new_capacity = size > max_size ? size : max_size;
+-  T* old_data = this->data();
+-  T* new_data =
+-      std::allocator_traits<Allocator>::allocate(alloc_, new_capacity);
+-  // The following code doesn't throw, so the raw pointer above doesn't leak.
+-  std::uninitialized_copy(old_data, old_data + this->size(),
+-                          detail::make_checked(new_data, new_capacity));
+-  this->set(new_data, new_capacity);
+-  // deallocate must not throw according to the standard, but even if it does,
+-  // the buffer already uses the new storage and will deallocate it in
+-  // destructor.
+-  if (old_data != store_) alloc_.deallocate(old_data, old_capacity);
+-}
+-
+-using memory_buffer = basic_memory_buffer<char>;
+-
+-template <typename T, size_t SIZE, typename Allocator>
+-struct is_contiguous<basic_memory_buffer<T, SIZE, Allocator>> : std::true_type {
+-};
+-
+-namespace detail {
+-FMT_API void print(std::FILE*, string_view);
+-}
+-
+-/** A formatting error such as invalid format string. */
+-FMT_CLASS_API
+-class FMT_API format_error : public std::runtime_error {
+- public:
+-  explicit format_error(const char* message) : std::runtime_error(message) {}
+-  explicit format_error(const std::string& message)
+-      : std::runtime_error(message) {}
+-  format_error(const format_error&) = default;
+-  format_error& operator=(const format_error&) = default;
+-  format_error(format_error&&) = default;
+-  format_error& operator=(format_error&&) = default;
+-  ~format_error() FMT_NOEXCEPT override FMT_MSC_DEFAULT;
+-};
+-
+-/**
+-  \rst
+-  Constructs a `~fmt::format_arg_store` object that contains references
+-  to arguments and can be implicitly converted to `~fmt::format_args`.
+-  If ``fmt`` is a compile-time string then `make_args_checked` checks
+-  its validity at compile time.
+-  \endrst
+- */
+-template <typename... Args, typename S, typename Char = char_t<S>>
+-FMT_INLINE auto make_args_checked(const S& fmt,
+-                                  const remove_reference_t<Args>&... args)
+-    -> format_arg_store<buffer_context<Char>, remove_reference_t<Args>...> {
+-  static_assert(
+-      detail::count<(
+-              std::is_base_of<detail::view, remove_reference_t<Args>>::value &&
+-              std::is_reference<Args>::value)...>() == 0,
+-      "passing views as lvalues is disallowed");
+-  detail::check_format_string<Args...>(fmt);
+-  return {args...};
+-}
+-
+-// compile-time support
+-namespace detail_exported {
+-#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <typename Char, size_t N> struct fixed_string {
+-  constexpr fixed_string(const Char (&str)[N]) {
+-    detail::copy_str<Char, const Char*, Char*>(static_cast<const Char*>(str),
+-                                               str + N, data);
+-  }
+-  Char data[N]{};
+-};
+-#endif
+-
+-// Converts a compile-time string to basic_string_view.
+-template <typename Char, size_t N>
+-constexpr auto compile_string_to_view(const Char (&s)[N])
+-    -> basic_string_view<Char> {
+-  // Remove trailing NUL character if needed. Won't be present if this is used
+-  // with a raw character array (i.e. not defined as a string).
+-  return {s, N - (std::char_traits<Char>::to_int_type(s[N - 1]) == 0 ? 1 : 0)};
+-}
+-template <typename Char>
+-constexpr auto compile_string_to_view(detail::std_string_view<Char> s)
+-    -> basic_string_view<Char> {
+-  return {s.data(), s.size()};
+-}
+-}  // namespace detail_exported
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename T> struct is_integral : std::is_integral<T> {};
+-template <> struct is_integral<int128_t> : std::true_type {};
+-template <> struct is_integral<uint128_t> : std::true_type {};
+-
+-template <typename T>
+-using is_signed =
+-    std::integral_constant<bool, std::numeric_limits<T>::is_signed ||
+-                                     std::is_same<T, int128_t>::value>;
+-
+-// Returns true if value is negative, false otherwise.
+-// Same as `value < 0` but doesn't produce warnings if T is an unsigned type.
+-template <typename T, FMT_ENABLE_IF(is_signed<T>::value)>
+-FMT_CONSTEXPR auto is_negative(T value) -> bool {
+-  return value < 0;
+-}
+-template <typename T, FMT_ENABLE_IF(!is_signed<T>::value)>
+-FMT_CONSTEXPR auto is_negative(T) -> bool {
+-  return false;
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_CONSTEXPR auto is_supported_floating_point(T) -> uint16_t {
+-  return (std::is_same<T, float>::value && FMT_USE_FLOAT) ||
+-         (std::is_same<T, double>::value && FMT_USE_DOUBLE) ||
+-         (std::is_same<T, long double>::value && FMT_USE_LONG_DOUBLE);
+-}
+-
+-// Smallest of uint32_t, uint64_t, uint128_t that is large enough to
+-// represent all values of an integral type T.
+-template <typename T>
+-using uint32_or_64_or_128_t =
+-    conditional_t<num_bits<T>() <= 32 && !FMT_REDUCE_INT_INSTANTIATIONS,
+-                  uint32_t,
+-                  conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>>;
+-template <typename T>
+-using uint64_or_128_t = conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>;
+-
+-#define FMT_POWERS_OF_10(factor)                                             \
+-  factor * 10, (factor)*100, (factor)*1000, (factor)*10000, (factor)*100000, \
+-      (factor)*1000000, (factor)*10000000, (factor)*100000000,               \
+-      (factor)*1000000000
+-
+-// Converts value in the range [0, 100) to a string.
+-constexpr const char* digits2(size_t value) {
+-  // GCC generates slightly better code when value is pointer-size.
+-  return &"0001020304050607080910111213141516171819"
+-         "2021222324252627282930313233343536373839"
+-         "4041424344454647484950515253545556575859"
+-         "6061626364656667686970717273747576777879"
+-         "8081828384858687888990919293949596979899"[value * 2];
+-}
+-
+-// Sign is a template parameter to workaround a bug in gcc 4.8.
+-template <typename Char, typename Sign> constexpr Char sign(Sign s) {
+-#if !FMT_GCC_VERSION || FMT_GCC_VERSION >= 604
+-  static_assert(std::is_same<Sign, sign_t>::value, "");
+-#endif
+-  return static_cast<Char>("\0-+ "[s]);
+-}
+-
+-template <typename T> FMT_CONSTEXPR auto count_digits_fallback(T n) -> int {
+-  int count = 1;
+-  for (;;) {
+-    // Integer division is slow so do it for a group of four digits instead
+-    // of for every digit. The idea comes from the talk by Alexandrescu
+-    // "Three Optimization Tips for C++". See speed-test for a comparison.
+-    if (n < 10) return count;
+-    if (n < 100) return count + 1;
+-    if (n < 1000) return count + 2;
+-    if (n < 10000) return count + 3;
+-    n /= 10000u;
+-    count += 4;
+-  }
+-}
+-#if FMT_USE_INT128
+-FMT_CONSTEXPR inline auto count_digits(uint128_t n) -> int {
+-  return count_digits_fallback(n);
+-}
+-#endif
+-
+-#ifdef FMT_BUILTIN_CLZLL
+-// It is a separate function rather than a part of count_digits to workaround
+-// the lack of static constexpr in constexpr functions.
+-inline auto do_count_digits(uint64_t n) -> int {
+-  // This has comparable performance to the version by Kendall Willets
+-  // (https://github.com/fmtlib/format-benchmark/blob/master/digits10)
+-  // but uses smaller tables.
+-  // Maps bsr(n) to ceil(log10(pow(2, bsr(n) + 1) - 1)).
+-  static constexpr uint8_t bsr2log10[] = {
+-      1,  1,  1,  2,  2,  2,  3,  3,  3,  4,  4,  4,  4,  5,  5,  5,
+-      6,  6,  6,  7,  7,  7,  7,  8,  8,  8,  9,  9,  9,  10, 10, 10,
+-      10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 15, 15,
+-      15, 16, 16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 19, 20};
+-  auto t = bsr2log10[FMT_BUILTIN_CLZLL(n | 1) ^ 63];
+-  static constexpr const uint64_t zero_or_powers_of_10[] = {
+-      0, 0, FMT_POWERS_OF_10(1U), FMT_POWERS_OF_10(1000000000ULL),
+-      10000000000000000000ULL};
+-  return t - (n < zero_or_powers_of_10[t]);
+-}
+-#endif
+-
+-// Returns the number of decimal digits in n. Leading zeros are not counted
+-// except for n == 0 in which case count_digits returns 1.
+-FMT_CONSTEXPR20 inline auto count_digits(uint64_t n) -> int {
+-#ifdef FMT_BUILTIN_CLZLL
+-  if (!is_constant_evaluated()) {
+-    return do_count_digits(n);
+-  }
+-#endif
+-  return count_digits_fallback(n);
+-}
+-
+-// Counts the number of digits in n. BITS = log2(radix).
+-template <int BITS, typename UInt>
+-FMT_CONSTEXPR auto count_digits(UInt n) -> int {
+-#ifdef FMT_BUILTIN_CLZ
+-  if (num_bits<UInt>() == 32)
+-    return (FMT_BUILTIN_CLZ(static_cast<uint32_t>(n) | 1) ^ 31) / BITS + 1;
+-#endif
+-  // Lambda avoids unreachable code warnings from NVHPC.
+-  return [](UInt m) {
+-    int num_digits = 0;
+-    do {
+-      ++num_digits;
+-    } while ((m >>= BITS) != 0);
+-    return num_digits;
+-  }(n);
+-}
+-
+-template <> auto count_digits<4>(detail::fallback_uintptr n) -> int;
+-
+-#ifdef FMT_BUILTIN_CLZ
+-// It is a separate function rather than a part of count_digits to workaround
+-// the lack of static constexpr in constexpr functions.
+-FMT_INLINE auto do_count_digits(uint32_t n) -> int {
+-// An optimization by Kendall Willets from https://bit.ly/3uOIQrB.
+-// This increments the upper 32 bits (log10(T) - 1) when >= T is added.
+-#  define FMT_INC(T) (((sizeof(#  T) - 1ull) << 32) - T)
+-  static constexpr uint64_t table[] = {
+-      FMT_INC(0),          FMT_INC(0),          FMT_INC(0),           // 8
+-      FMT_INC(10),         FMT_INC(10),         FMT_INC(10),          // 64
+-      FMT_INC(100),        FMT_INC(100),        FMT_INC(100),         // 512
+-      FMT_INC(1000),       FMT_INC(1000),       FMT_INC(1000),        // 4096
+-      FMT_INC(10000),      FMT_INC(10000),      FMT_INC(10000),       // 32k
+-      FMT_INC(100000),     FMT_INC(100000),     FMT_INC(100000),      // 256k
+-      FMT_INC(1000000),    FMT_INC(1000000),    FMT_INC(1000000),     // 2048k
+-      FMT_INC(10000000),   FMT_INC(10000000),   FMT_INC(10000000),    // 16M
+-      FMT_INC(100000000),  FMT_INC(100000000),  FMT_INC(100000000),   // 128M
+-      FMT_INC(1000000000), FMT_INC(1000000000), FMT_INC(1000000000),  // 1024M
+-      FMT_INC(1000000000), FMT_INC(1000000000)                        // 4B
+-  };
+-  auto inc = table[FMT_BUILTIN_CLZ(n | 1) ^ 31];
+-  return static_cast<int>((n + inc) >> 32);
+-}
+-#endif
+-
+-// Optional version of count_digits for better performance on 32-bit platforms.
+-FMT_CONSTEXPR20 inline auto count_digits(uint32_t n) -> int {
+-#ifdef FMT_BUILTIN_CLZ
+-  if (!is_constant_evaluated()) {
+-    return do_count_digits(n);
+-  }
+-#endif
+-  return count_digits_fallback(n);
+-}
+-
+-template <typename Int> constexpr auto digits10() FMT_NOEXCEPT -> int {
+-  return std::numeric_limits<Int>::digits10;
+-}
+-template <> constexpr auto digits10<int128_t>() FMT_NOEXCEPT -> int {
+-  return 38;
+-}
+-template <> constexpr auto digits10<uint128_t>() FMT_NOEXCEPT -> int {
+-  return 38;
+-}
+-
+-template <typename Char> struct thousands_sep_result {
+-  std::string grouping;
+-  Char thousands_sep;
+-};
+-
+-template <typename Char>
+-FMT_API auto thousands_sep_impl(locale_ref loc) -> thousands_sep_result<Char>;
+-template <typename Char>
+-inline auto thousands_sep(locale_ref loc) -> thousands_sep_result<Char> {
+-  auto result = thousands_sep_impl<char>(loc);
+-  return {result.grouping, Char(result.thousands_sep)};
+-}
+-template <>
+-inline auto thousands_sep(locale_ref loc) -> thousands_sep_result<wchar_t> {
+-  return thousands_sep_impl<wchar_t>(loc);
+-}
+-
+-template <typename Char>
+-FMT_API auto decimal_point_impl(locale_ref loc) -> Char;
+-template <typename Char> inline auto decimal_point(locale_ref loc) -> Char {
+-  return Char(decimal_point_impl<char>(loc));
+-}
+-template <> inline auto decimal_point(locale_ref loc) -> wchar_t {
+-  return decimal_point_impl<wchar_t>(loc);
+-}
+-
+-// Compares two characters for equality.
+-template <typename Char> auto equal2(const Char* lhs, const char* rhs) -> bool {
+-  return lhs[0] == Char(rhs[0]) && lhs[1] == Char(rhs[1]);
+-}
+-inline auto equal2(const char* lhs, const char* rhs) -> bool {
+-  return memcmp(lhs, rhs, 2) == 0;
+-}
+-
+-// Copies two characters from src to dst.
+-template <typename Char>
+-FMT_CONSTEXPR20 FMT_INLINE void copy2(Char* dst, const char* src) {
+-  if (!is_constant_evaluated() && sizeof(Char) == sizeof(char)) {
+-    memcpy(dst, src, 2);
+-    return;
+-  }
+-  *dst++ = static_cast<Char>(*src++);
+-  *dst = static_cast<Char>(*src);
+-}
+-
+-template <typename Iterator> struct format_decimal_result {
+-  Iterator begin;
+-  Iterator end;
+-};
+-
+-// Formats a decimal unsigned integer value writing into out pointing to a
+-// buffer of specified size. The caller must ensure that the buffer is large
+-// enough.
+-template <typename Char, typename UInt>
+-FMT_CONSTEXPR20 auto format_decimal(Char* out, UInt value, int size)
+-    -> format_decimal_result<Char*> {
+-  FMT_ASSERT(size >= count_digits(value), "invalid digit count");
+-  out += size;
+-  Char* end = out;
+-  while (value >= 100) {
+-    // Integer division is slow so do it for a group of two digits instead
+-    // of for every digit. The idea comes from the talk by Alexandrescu
+-    // "Three Optimization Tips for C++". See speed-test for a comparison.
+-    out -= 2;
+-    copy2(out, digits2(static_cast<size_t>(value % 100)));
+-    value /= 100;
+-  }
+-  if (value < 10) {
+-    *--out = static_cast<Char>('0' + value);
+-    return {out, end};
+-  }
+-  out -= 2;
+-  copy2(out, digits2(static_cast<size_t>(value)));
+-  return {out, end};
+-}
+-
+-template <typename Char, typename UInt, typename Iterator,
+-          FMT_ENABLE_IF(!std::is_pointer<remove_cvref_t<Iterator>>::value)>
+-inline auto format_decimal(Iterator out, UInt value, int size)
+-    -> format_decimal_result<Iterator> {
+-  // Buffer is large enough to hold all digits (digits10 + 1).
+-  Char buffer[digits10<UInt>() + 1];
+-  auto end = format_decimal(buffer, value, size).end;
+-  return {out, detail::copy_str_noinline<Char>(buffer, end, out)};
+-}
+-
+-template <unsigned BASE_BITS, typename Char, typename UInt>
+-FMT_CONSTEXPR auto format_uint(Char* buffer, UInt value, int num_digits,
+-                               bool upper = false) -> Char* {
+-  buffer += num_digits;
+-  Char* end = buffer;
+-  do {
+-    const char* digits = upper ? "0123456789ABCDEF" : "0123456789abcdef";
+-    unsigned digit = (value & ((1 << BASE_BITS) - 1));
+-    *--buffer = static_cast<Char>(BASE_BITS < 4 ? static_cast<char>('0' + digit)
+-                                                : digits[digit]);
+-  } while ((value >>= BASE_BITS) != 0);
+-  return end;
+-}
+-
+-template <unsigned BASE_BITS, typename Char>
+-auto format_uint(Char* buffer, detail::fallback_uintptr n, int num_digits,
+-                 bool = false) -> Char* {
+-  auto char_digits = std::numeric_limits<unsigned char>::digits / 4;
+-  int start = (num_digits + char_digits - 1) / char_digits - 1;
+-  if (int start_digits = num_digits % char_digits) {
+-    unsigned value = n.value[start--];
+-    buffer = format_uint<BASE_BITS>(buffer, value, start_digits);
+-  }
+-  for (; start >= 0; --start) {
+-    unsigned value = n.value[start];
+-    buffer += char_digits;
+-    auto p = buffer;
+-    for (int i = 0; i < char_digits; ++i) {
+-      unsigned digit = (value & ((1 << BASE_BITS) - 1));
+-      *--p = static_cast<Char>("0123456789abcdef"[digit]);
+-      value >>= BASE_BITS;
+-    }
+-  }
+-  return buffer;
+-}
+-
+-template <unsigned BASE_BITS, typename Char, typename It, typename UInt>
+-inline auto format_uint(It out, UInt value, int num_digits, bool upper = false)
+-    -> It {
+-  if (auto ptr = to_pointer<Char>(out, to_unsigned(num_digits))) {
+-    format_uint<BASE_BITS>(ptr, value, num_digits, upper);
+-    return out;
+-  }
+-  // Buffer should be large enough to hold all digits (digits / BASE_BITS + 1).
+-  char buffer[num_bits<UInt>() / BASE_BITS + 1];
+-  format_uint<BASE_BITS>(buffer, value, num_digits, upper);
+-  return detail::copy_str_noinline<Char>(buffer, buffer + num_digits, out);
+-}
+-
+-// A converter from UTF-8 to UTF-16.
+-class utf8_to_utf16 {
+- private:
+-  basic_memory_buffer<wchar_t> buffer_;
+-
+- public:
+-  FMT_API explicit utf8_to_utf16(string_view s);
+-  operator basic_string_view<wchar_t>() const { return {&buffer_[0], size()}; }
+-  auto size() const -> size_t { return buffer_.size() - 1; }
+-  auto c_str() const -> const wchar_t* { return &buffer_[0]; }
+-  auto str() const -> std::wstring { return {&buffer_[0], size()}; }
+-};
+-
+-namespace dragonbox {
+-
+-// Type-specific information that Dragonbox uses.
+-template <class T> struct float_info;
+-
+-template <> struct float_info<float> {
+-  using carrier_uint = uint32_t;
+-  static const int significand_bits = 23;
+-  static const int exponent_bits = 8;
+-  static const int min_exponent = -126;
+-  static const int max_exponent = 127;
+-  static const int exponent_bias = -127;
+-  static const int decimal_digits = 9;
+-  static const int kappa = 1;
+-  static const int big_divisor = 100;
+-  static const int small_divisor = 10;
+-  static const int min_k = -31;
+-  static const int max_k = 46;
+-  static const int cache_bits = 64;
+-  static const int divisibility_check_by_5_threshold = 39;
+-  static const int case_fc_pm_half_lower_threshold = -1;
+-  static const int case_fc_pm_half_upper_threshold = 6;
+-  static const int case_fc_lower_threshold = -2;
+-  static const int case_fc_upper_threshold = 6;
+-  static const int case_shorter_interval_left_endpoint_lower_threshold = 2;
+-  static const int case_shorter_interval_left_endpoint_upper_threshold = 3;
+-  static const int shorter_interval_tie_lower_threshold = -35;
+-  static const int shorter_interval_tie_upper_threshold = -35;
+-  static const int max_trailing_zeros = 7;
+-};
+-
+-template <> struct float_info<double> {
+-  using carrier_uint = uint64_t;
+-  static const int significand_bits = 52;
+-  static const int exponent_bits = 11;
+-  static const int min_exponent = -1022;
+-  static const int max_exponent = 1023;
+-  static const int exponent_bias = -1023;
+-  static const int decimal_digits = 17;
+-  static const int kappa = 2;
+-  static const int big_divisor = 1000;
+-  static const int small_divisor = 100;
+-  static const int min_k = -292;
+-  static const int max_k = 326;
+-  static const int cache_bits = 128;
+-  static const int divisibility_check_by_5_threshold = 86;
+-  static const int case_fc_pm_half_lower_threshold = -2;
+-  static const int case_fc_pm_half_upper_threshold = 9;
+-  static const int case_fc_lower_threshold = -4;
+-  static const int case_fc_upper_threshold = 9;
+-  static const int case_shorter_interval_left_endpoint_lower_threshold = 2;
+-  static const int case_shorter_interval_left_endpoint_upper_threshold = 3;
+-  static const int shorter_interval_tie_lower_threshold = -77;
+-  static const int shorter_interval_tie_upper_threshold = -77;
+-  static const int max_trailing_zeros = 16;
+-};
+-
+-template <typename T> struct decimal_fp {
+-  using significand_type = typename float_info<T>::carrier_uint;
+-  significand_type significand;
+-  int exponent;
+-};
+-
+-template <typename T>
+-FMT_API auto to_decimal(T x) FMT_NOEXCEPT -> decimal_fp<T>;
+-}  // namespace dragonbox
+-
+-template <typename T>
+-constexpr auto exponent_mask() ->
+-    typename dragonbox::float_info<T>::carrier_uint {
+-  using uint = typename dragonbox::float_info<T>::carrier_uint;
+-  return ((uint(1) << dragonbox::float_info<T>::exponent_bits) - 1)
+-         << dragonbox::float_info<T>::significand_bits;
+-}
+-
+-// Writes the exponent exp in the form "[+-]d{2,3}" to buffer.
+-template <typename Char, typename It>
+-FMT_CONSTEXPR auto write_exponent(int exp, It it) -> It {
+-  FMT_ASSERT(-10000 < exp && exp < 10000, "exponent out of range");
+-  if (exp < 0) {
+-    *it++ = static_cast<Char>('-');
+-    exp = -exp;
+-  } else {
+-    *it++ = static_cast<Char>('+');
+-  }
+-  if (exp >= 100) {
+-    const char* top = digits2(to_unsigned(exp / 100));
+-    if (exp >= 1000) *it++ = static_cast<Char>(top[0]);
+-    *it++ = static_cast<Char>(top[1]);
+-    exp %= 100;
+-  }
+-  const char* d = digits2(to_unsigned(exp));
+-  *it++ = static_cast<Char>(d[0]);
+-  *it++ = static_cast<Char>(d[1]);
+-  return it;
+-}
+-
+-template <typename T>
+-FMT_HEADER_ONLY_CONSTEXPR20 auto format_float(T value, int precision,
+-                                              float_specs specs,
+-                                              buffer<char>& buf) -> int;
+-
+-// Formats a floating-point number with snprintf.
+-template <typename T>
+-auto snprintf_float(T value, int precision, float_specs specs,
+-                    buffer<char>& buf) -> int;
+-
+-template <typename T> constexpr auto promote_float(T value) -> T {
+-  return value;
+-}
+-constexpr auto promote_float(float value) -> double {
+-  return static_cast<double>(value);
+-}
+-
+-template <typename OutputIt, typename Char>
+-FMT_NOINLINE FMT_CONSTEXPR auto fill(OutputIt it, size_t n,
+-                                     const fill_t<Char>& fill) -> OutputIt {
+-  auto fill_size = fill.size();
+-  if (fill_size == 1) return detail::fill_n(it, n, fill[0]);
+-  auto data = fill.data();
+-  for (size_t i = 0; i < n; ++i)
+-    it = copy_str<Char>(data, data + fill_size, it);
+-  return it;
+-}
+-
+-// Writes the output of f, padded according to format specifications in specs.
+-// size: output size in code units.
+-// width: output display width in (terminal) column positions.
+-template <align::type align = align::left, typename OutputIt, typename Char,
+-          typename F>
+-FMT_CONSTEXPR auto write_padded(OutputIt out,
+-                                const basic_format_specs<Char>& specs,
+-                                size_t size, size_t width, F&& f) -> OutputIt {
+-  static_assert(align == align::left || align == align::right, "");
+-  unsigned spec_width = to_unsigned(specs.width);
+-  size_t padding = spec_width > width ? spec_width - width : 0;
+-  // Shifts are encoded as string literals because static constexpr is not
+-  // supported in constexpr functions.
+-  auto* shifts = align == align::left ? "\x1f\x1f\x00\x01" : "\x00\x1f\x00\x01";
+-  size_t left_padding = padding >> shifts[specs.align];
+-  size_t right_padding = padding - left_padding;
+-  auto it = reserve(out, size + padding * specs.fill.size());
+-  if (left_padding != 0) it = fill(it, left_padding, specs.fill);
+-  it = f(it);
+-  if (right_padding != 0) it = fill(it, right_padding, specs.fill);
+-  return base_iterator(out, it);
+-}
+-
+-template <align::type align = align::left, typename OutputIt, typename Char,
+-          typename F>
+-constexpr auto write_padded(OutputIt out, const basic_format_specs<Char>& specs,
+-                            size_t size, F&& f) -> OutputIt {
+-  return write_padded<align>(out, specs, size, size, f);
+-}
+-
+-template <align::type align = align::left, typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write_bytes(OutputIt out, string_view bytes,
+-                               const basic_format_specs<Char>& specs)
+-    -> OutputIt {
+-  return write_padded<align>(
+-      out, specs, bytes.size(), [bytes](reserve_iterator<OutputIt> it) {
+-        const char* data = bytes.data();
+-        return copy_str<Char>(data, data + bytes.size(), it);
+-      });
+-}
+-
+-template <typename Char, typename OutputIt, typename UIntPtr>
+-auto write_ptr(OutputIt out, UIntPtr value,
+-               const basic_format_specs<Char>* specs) -> OutputIt {
+-  int num_digits = count_digits<4>(value);
+-  auto size = to_unsigned(num_digits) + size_t(2);
+-  auto write = [=](reserve_iterator<OutputIt> it) {
+-    *it++ = static_cast<Char>('0');
+-    *it++ = static_cast<Char>('x');
+-    return format_uint<4, Char>(it, value, num_digits);
+-  };
+-  return specs ? write_padded<align::right>(out, *specs, size, write)
+-               : base_iterator(out, write(reserve(out, size)));
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write_char(OutputIt out, Char value,
+-                              const basic_format_specs<Char>& specs)
+-    -> OutputIt {
+-  return write_padded(out, specs, 1, [=](reserve_iterator<OutputIt> it) {
+-    *it++ = value;
+-    return it;
+-  });
+-}
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, Char value,
+-                         const basic_format_specs<Char>& specs,
+-                         locale_ref loc = {}) -> OutputIt {
+-  return check_char_specs(specs)
+-             ? write_char(out, value, specs)
+-             : write(out, static_cast<int>(value), specs, loc);
+-}
+-
+-// Data for write_int that doesn't depend on output iterator type. It is used to
+-// avoid template code bloat.
+-template <typename Char> struct write_int_data {
+-  size_t size;
+-  size_t padding;
+-
+-  FMT_CONSTEXPR write_int_data(int num_digits, unsigned prefix,
+-                               const basic_format_specs<Char>& specs)
+-      : size((prefix >> 24) + to_unsigned(num_digits)), padding(0) {
+-    if (specs.align == align::numeric) {
+-      auto width = to_unsigned(specs.width);
+-      if (width > size) {
+-        padding = width - size;
+-        size = width;
+-      }
+-    } else if (specs.precision > num_digits) {
+-      size = (prefix >> 24) + to_unsigned(specs.precision);
+-      padding = to_unsigned(specs.precision - num_digits);
+-    }
+-  }
+-};
+-
+-// Writes an integer in the format
+-//   <left-padding><prefix><numeric-padding><digits><right-padding>
+-// where <digits> are written by write_digits(it).
+-// prefix contains chars in three lower bytes and the size in the fourth byte.
+-template <typename OutputIt, typename Char, typename W>
+-FMT_CONSTEXPR FMT_INLINE auto write_int(OutputIt out, int num_digits,
+-                                        unsigned prefix,
+-                                        const basic_format_specs<Char>& specs,
+-                                        W write_digits) -> OutputIt {
+-  // Slightly faster check for specs.width == 0 && specs.precision == -1.
+-  if ((specs.width | (specs.precision + 1)) == 0) {
+-    auto it = reserve(out, to_unsigned(num_digits) + (prefix >> 24));
+-    if (prefix != 0) {
+-      for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8)
+-        *it++ = static_cast<Char>(p & 0xff);
+-    }
+-    return base_iterator(out, write_digits(it));
+-  }
+-  auto data = write_int_data<Char>(num_digits, prefix, specs);
+-  return write_padded<align::right>(
+-      out, specs, data.size, [=](reserve_iterator<OutputIt> it) {
+-        for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8)
+-          *it++ = static_cast<Char>(p & 0xff);
+-        it = detail::fill_n(it, data.padding, static_cast<Char>('0'));
+-        return write_digits(it);
+-      });
+-}
+-
+-template <typename Char> class digit_grouping {
+- private:
+-  thousands_sep_result<Char> sep_;
+-
+-  struct next_state {
+-    std::string::const_iterator group;
+-    int pos;
+-  };
+-  next_state initial_state() const { return {sep_.grouping.begin(), 0}; }
+-
+-  // Returns the next digit group separator position.
+-  int next(next_state& state) const {
+-    if (!sep_.thousands_sep) return max_value<int>();
+-    if (state.group == sep_.grouping.end())
+-      return state.pos += sep_.grouping.back();
+-    if (*state.group <= 0 || *state.group == max_value<char>())
+-      return max_value<int>();
+-    state.pos += *state.group++;
+-    return state.pos;
+-  }
+-
+- public:
+-  explicit digit_grouping(locale_ref loc, bool localized = true) {
+-    if (localized)
+-      sep_ = thousands_sep<Char>(loc);
+-    else
+-      sep_.thousands_sep = Char();
+-  }
+-  explicit digit_grouping(thousands_sep_result<Char> sep) : sep_(sep) {}
+-
+-  Char separator() const { return sep_.thousands_sep; }
+-
+-  int count_separators(int num_digits) const {
+-    int count = 0;
+-    auto state = initial_state();
+-    while (num_digits > next(state)) ++count;
+-    return count;
+-  }
+-
+-  // Applies grouping to digits and write the output to out.
+-  template <typename Out, typename C>
+-  Out apply(Out out, basic_string_view<C> digits) const {
+-    auto num_digits = static_cast<int>(digits.size());
+-    auto separators = basic_memory_buffer<int>();
+-    separators.push_back(0);
+-    auto state = initial_state();
+-    while (int i = next(state)) {
+-      if (i >= num_digits) break;
+-      separators.push_back(i);
+-    }
+-    for (int i = 0, sep_index = static_cast<int>(separators.size() - 1);
+-         i < num_digits; ++i) {
+-      if (num_digits - i == separators[sep_index]) {
+-        *out++ = separator();
+-        --sep_index;
+-      }
+-      *out++ = static_cast<Char>(digits[to_unsigned(i)]);
+-    }
+-    return out;
+-  }
+-};
+-
+-template <typename OutputIt, typename UInt, typename Char>
+-auto write_int_localized(OutputIt out, UInt value, unsigned prefix,
+-                         const basic_format_specs<Char>& specs,
+-                         const digit_grouping<Char>& grouping) -> OutputIt {
+-  static_assert(std::is_same<uint64_or_128_t<UInt>, UInt>::value, "");
+-  int num_digits = count_digits(value);
+-  char digits[40];
+-  format_decimal(digits, value, num_digits);
+-  unsigned size = to_unsigned((prefix != 0 ? 1 : 0) + num_digits +
+-                              grouping.count_separators(num_digits));
+-  return write_padded<align::right>(
+-      out, specs, size, size, [&](reserve_iterator<OutputIt> it) {
+-        if (prefix != 0) *it++ = static_cast<Char>(prefix);
+-        return grouping.apply(it, string_view(digits, to_unsigned(num_digits)));
+-      });
+-}
+-
+-template <typename OutputIt, typename UInt, typename Char>
+-auto write_int_localized(OutputIt& out, UInt value, unsigned prefix,
+-                         const basic_format_specs<Char>& specs, locale_ref loc)
+-    -> bool {
+-  auto grouping = digit_grouping<Char>(loc);
+-  out = write_int_localized(out, value, prefix, specs, grouping);
+-  return true;
+-}
+-
+-FMT_CONSTEXPR inline void prefix_append(unsigned& prefix, unsigned value) {
+-  prefix |= prefix != 0 ? value << 8 : value;
+-  prefix += (1u + (value > 0xff ? 1 : 0)) << 24;
+-}
+-
+-template <typename UInt> struct write_int_arg {
+-  UInt abs_value;
+-  unsigned prefix;
+-};
+-
+-template <typename T>
+-FMT_CONSTEXPR auto make_write_int_arg(T value, sign_t sign)
+-    -> write_int_arg<uint32_or_64_or_128_t<T>> {
+-  auto prefix = 0u;
+-  auto abs_value = static_cast<uint32_or_64_or_128_t<T>>(value);
+-  if (is_negative(value)) {
+-    prefix = 0x01000000 | '-';
+-    abs_value = 0 - abs_value;
+-  } else {
+-    constexpr const unsigned prefixes[4] = {0, 0, 0x1000000u | '+',
+-                                            0x1000000u | ' '};
+-    prefix = prefixes[sign];
+-  }
+-  return {abs_value, prefix};
+-}
+-
+-template <typename Char, typename OutputIt, typename T>
+-FMT_CONSTEXPR FMT_INLINE auto write_int(OutputIt out, write_int_arg<T> arg,
+-                                        const basic_format_specs<Char>& specs,
+-                                        locale_ref loc) -> OutputIt {
+-  static_assert(std::is_same<T, uint32_or_64_or_128_t<T>>::value, "");
+-  auto abs_value = arg.abs_value;
+-  auto prefix = arg.prefix;
+-  switch (specs.type) {
+-  case presentation_type::none:
+-  case presentation_type::dec: {
+-    if (specs.localized &&
+-        write_int_localized(out, static_cast<uint64_or_128_t<T>>(abs_value),
+-                            prefix, specs, loc)) {
+-      return out;
+-    }
+-    auto num_digits = count_digits(abs_value);
+-    return write_int(
+-        out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) {
+-          return format_decimal<Char>(it, abs_value, num_digits).end;
+-        });
+-  }
+-  case presentation_type::hex_lower:
+-  case presentation_type::hex_upper: {
+-    bool upper = specs.type == presentation_type::hex_upper;
+-    if (specs.alt)
+-      prefix_append(prefix, unsigned(upper ? 'X' : 'x') << 8 | '0');
+-    int num_digits = count_digits<4>(abs_value);
+-    return write_int(
+-        out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) {
+-          return format_uint<4, Char>(it, abs_value, num_digits, upper);
+-        });
+-  }
+-  case presentation_type::bin_lower:
+-  case presentation_type::bin_upper: {
+-    bool upper = specs.type == presentation_type::bin_upper;
+-    if (specs.alt)
+-      prefix_append(prefix, unsigned(upper ? 'B' : 'b') << 8 | '0');
+-    int num_digits = count_digits<1>(abs_value);
+-    return write_int(out, num_digits, prefix, specs,
+-                     [=](reserve_iterator<OutputIt> it) {
+-                       return format_uint<1, Char>(it, abs_value, num_digits);
+-                     });
+-  }
+-  case presentation_type::oct: {
+-    int num_digits = count_digits<3>(abs_value);
+-    // Octal prefix '0' is counted as a digit, so only add it if precision
+-    // is not greater than the number of digits.
+-    if (specs.alt && specs.precision <= num_digits && abs_value != 0)
+-      prefix_append(prefix, '0');
+-    return write_int(out, num_digits, prefix, specs,
+-                     [=](reserve_iterator<OutputIt> it) {
+-                       return format_uint<3, Char>(it, abs_value, num_digits);
+-                     });
+-  }
+-  case presentation_type::chr:
+-    return write_char(out, static_cast<Char>(abs_value), specs);
+-  default:
+-    throw_format_error("invalid type specifier");
+-  }
+-  return out;
+-}
+-template <typename Char, typename OutputIt, typename T>
+-FMT_CONSTEXPR FMT_NOINLINE auto write_int_noinline(
+-    OutputIt out, write_int_arg<T> arg, const basic_format_specs<Char>& specs,
+-    locale_ref loc) -> OutputIt {
+-  return write_int(out, arg, specs, loc);
+-}
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_integral<T>::value &&
+-                        !std::is_same<T, bool>::value &&
+-                        std::is_same<OutputIt, buffer_appender<Char>>::value)>
+-FMT_CONSTEXPR FMT_INLINE auto write(OutputIt out, T value,
+-                                    const basic_format_specs<Char>& specs,
+-                                    locale_ref loc) -> OutputIt {
+-  return write_int_noinline(out, make_write_int_arg(value, specs.sign), specs,
+-                            loc);
+-}
+-// An inlined version of write used in format string compilation.
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_integral<T>::value &&
+-                        !std::is_same<T, bool>::value &&
+-                        !std::is_same<OutputIt, buffer_appender<Char>>::value)>
+-FMT_CONSTEXPR FMT_INLINE auto write(OutputIt out, T value,
+-                                    const basic_format_specs<Char>& specs,
+-                                    locale_ref loc) -> OutputIt {
+-  return write_int(out, make_write_int_arg(value, specs.sign), specs, loc);
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s,
+-                         const basic_format_specs<Char>& specs) -> OutputIt {
+-  auto data = s.data();
+-  auto size = s.size();
+-  if (specs.precision >= 0 && to_unsigned(specs.precision) < size)
+-    size = code_point_index(s, to_unsigned(specs.precision));
+-  auto width =
+-      specs.width != 0 ? compute_width(basic_string_view<Char>(data, size)) : 0;
+-  return write_padded(out, specs, size, width,
+-                      [=](reserve_iterator<OutputIt> it) {
+-                        return copy_str<Char>(data, data + size, it);
+-                      });
+-}
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out,
+-                         basic_string_view<type_identity_t<Char>> s,
+-                         const basic_format_specs<Char>& specs, locale_ref)
+-    -> OutputIt {
+-  check_string_type_spec(specs.type);
+-  return write(out, s, specs);
+-}
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, const Char* s,
+-                         const basic_format_specs<Char>& specs, locale_ref)
+-    -> OutputIt {
+-  return check_cstring_type_spec(specs.type)
+-             ? write(out, basic_string_view<Char>(s), specs, {})
+-             : write_ptr<Char>(out, to_uintptr(s), &specs);
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR20 auto write_nonfinite(OutputIt out, bool isinf,
+-                                     basic_format_specs<Char> specs,
+-                                     const float_specs& fspecs) -> OutputIt {
+-  auto str =
+-      isinf ? (fspecs.upper ? "INF" : "inf") : (fspecs.upper ? "NAN" : "nan");
+-  constexpr size_t str_size = 3;
+-  auto sign = fspecs.sign;
+-  auto size = str_size + (sign ? 1 : 0);
+-  // Replace '0'-padding with space for non-finite values.
+-  const bool is_zero_fill =
+-      specs.fill.size() == 1 && *specs.fill.data() == static_cast<Char>('0');
+-  if (is_zero_fill) specs.fill[0] = static_cast<Char>(' ');
+-  return write_padded(out, specs, size, [=](reserve_iterator<OutputIt> it) {
+-    if (sign) *it++ = detail::sign<Char>(sign);
+-    return copy_str<Char>(str, str + str_size, it);
+-  });
+-}
+-
+-// A decimal floating-point number significand * pow(10, exp).
+-struct big_decimal_fp {
+-  const char* significand;
+-  int significand_size;
+-  int exponent;
+-};
+-
+-constexpr auto get_significand_size(const big_decimal_fp& fp) -> int {
+-  return fp.significand_size;
+-}
+-template <typename T>
+-inline auto get_significand_size(const dragonbox::decimal_fp<T>& fp) -> int {
+-  return count_digits(fp.significand);
+-}
+-
+-template <typename Char, typename OutputIt>
+-constexpr auto write_significand(OutputIt out, const char* significand,
+-                                 int significand_size) -> OutputIt {
+-  return copy_str<Char>(significand, significand + significand_size, out);
+-}
+-template <typename Char, typename OutputIt, typename UInt>
+-inline auto write_significand(OutputIt out, UInt significand,
+-                              int significand_size) -> OutputIt {
+-  return format_decimal<Char>(out, significand, significand_size).end;
+-}
+-template <typename Char, typename OutputIt, typename T, typename Grouping>
+-FMT_CONSTEXPR20 auto write_significand(OutputIt out, T significand,
+-                                       int significand_size, int exponent,
+-                                       const Grouping& grouping) -> OutputIt {
+-  if (!grouping.separator()) {
+-    out = write_significand<Char>(out, significand, significand_size);
+-    return detail::fill_n(out, exponent, static_cast<Char>('0'));
+-  }
+-  auto buffer = memory_buffer();
+-  write_significand<char>(appender(buffer), significand, significand_size);
+-  detail::fill_n(appender(buffer), exponent, '0');
+-  return grouping.apply(out, string_view(buffer.data(), buffer.size()));
+-}
+-
+-template <typename Char, typename UInt,
+-          FMT_ENABLE_IF(std::is_integral<UInt>::value)>
+-inline auto write_significand(Char* out, UInt significand, int significand_size,
+-                              int integral_size, Char decimal_point) -> Char* {
+-  if (!decimal_point)
+-    return format_decimal(out, significand, significand_size).end;
+-  out += significand_size + 1;
+-  Char* end = out;
+-  int floating_size = significand_size - integral_size;
+-  for (int i = floating_size / 2; i > 0; --i) {
+-    out -= 2;
+-    copy2(out, digits2(significand % 100));
+-    significand /= 100;
+-  }
+-  if (floating_size % 2 != 0) {
+-    *--out = static_cast<Char>('0' + significand % 10);
+-    significand /= 10;
+-  }
+-  *--out = decimal_point;
+-  format_decimal(out - integral_size, significand, integral_size);
+-  return end;
+-}
+-
+-template <typename OutputIt, typename UInt, typename Char,
+-          FMT_ENABLE_IF(!std::is_pointer<remove_cvref_t<OutputIt>>::value)>
+-inline auto write_significand(OutputIt out, UInt significand,
+-                              int significand_size, int integral_size,
+-                              Char decimal_point) -> OutputIt {
+-  // Buffer is large enough to hold digits (digits10 + 1) and a decimal point.
+-  Char buffer[digits10<UInt>() + 2];
+-  auto end = write_significand(buffer, significand, significand_size,
+-                               integral_size, decimal_point);
+-  return detail::copy_str_noinline<Char>(buffer, end, out);
+-}
+-
+-template <typename OutputIt, typename Char>
+-FMT_CONSTEXPR auto write_significand(OutputIt out, const char* significand,
+-                                     int significand_size, int integral_size,
+-                                     Char decimal_point) -> OutputIt {
+-  out = detail::copy_str_noinline<Char>(significand,
+-                                        significand + integral_size, out);
+-  if (!decimal_point) return out;
+-  *out++ = decimal_point;
+-  return detail::copy_str_noinline<Char>(significand + integral_size,
+-                                         significand + significand_size, out);
+-}
+-
+-template <typename OutputIt, typename Char, typename T, typename Grouping>
+-FMT_CONSTEXPR20 auto write_significand(OutputIt out, T significand,
+-                                       int significand_size, int integral_size,
+-                                       Char decimal_point,
+-                                       const Grouping& grouping) -> OutputIt {
+-  if (!grouping.separator()) {
+-    return write_significand(out, significand, significand_size, integral_size,
+-                             decimal_point);
+-  }
+-  auto buffer = basic_memory_buffer<Char>();
+-  write_significand(buffer_appender<Char>(buffer), significand,
+-                    significand_size, integral_size, decimal_point);
+-  grouping.apply(
+-      out, basic_string_view<Char>(buffer.data(), to_unsigned(integral_size)));
+-  return detail::copy_str_noinline<Char>(buffer.data() + integral_size,
+-                                         buffer.end(), out);
+-}
+-
+-template <typename OutputIt, typename DecimalFP, typename Char,
+-          typename Grouping = digit_grouping<Char>>
+-FMT_CONSTEXPR20 auto do_write_float(OutputIt out, const DecimalFP& fp,
+-                                    const basic_format_specs<Char>& specs,
+-                                    float_specs fspecs, locale_ref loc)
+-    -> OutputIt {
+-  auto significand = fp.significand;
+-  int significand_size = get_significand_size(fp);
+-  constexpr Char zero = static_cast<Char>('0');
+-  auto sign = fspecs.sign;
+-  size_t size = to_unsigned(significand_size) + (sign ? 1 : 0);
+-  using iterator = reserve_iterator<OutputIt>;
+-
+-  Char decimal_point =
+-      fspecs.locale ? detail::decimal_point<Char>(loc) : static_cast<Char>('.');
+-
+-  int output_exp = fp.exponent + significand_size - 1;
+-  auto use_exp_format = [=]() {
+-    if (fspecs.format == float_format::exp) return true;
+-    if (fspecs.format != float_format::general) return false;
+-    // Use the fixed notation if the exponent is in [exp_lower, exp_upper),
+-    // e.g. 0.0001 instead of 1e-04. Otherwise use the exponent notation.
+-    const int exp_lower = -4, exp_upper = 16;
+-    return output_exp < exp_lower ||
+-           output_exp >= (fspecs.precision > 0 ? fspecs.precision : exp_upper);
+-  };
+-  if (use_exp_format()) {
+-    int num_zeros = 0;
+-    if (fspecs.showpoint) {
+-      num_zeros = fspecs.precision - significand_size;
+-      if (num_zeros < 0) num_zeros = 0;
+-      size += to_unsigned(num_zeros);
+-    } else if (significand_size == 1) {
+-      decimal_point = Char();
+-    }
+-    auto abs_output_exp = output_exp >= 0 ? output_exp : -output_exp;
+-    int exp_digits = 2;
+-    if (abs_output_exp >= 100) exp_digits = abs_output_exp >= 1000 ? 4 : 3;
+-
+-    size += to_unsigned((decimal_point ? 1 : 0) + 2 + exp_digits);
+-    char exp_char = fspecs.upper ? 'E' : 'e';
+-    auto write = [=](iterator it) {
+-      if (sign) *it++ = detail::sign<Char>(sign);
+-      // Insert a decimal point after the first digit and add an exponent.
+-      it = write_significand(it, significand, significand_size, 1,
+-                             decimal_point);
+-      if (num_zeros > 0) it = detail::fill_n(it, num_zeros, zero);
+-      *it++ = static_cast<Char>(exp_char);
+-      return write_exponent<Char>(output_exp, it);
+-    };
+-    return specs.width > 0 ? write_padded<align::right>(out, specs, size, write)
+-                           : base_iterator(out, write(reserve(out, size)));
+-  }
+-
+-  int exp = fp.exponent + significand_size;
+-  if (fp.exponent >= 0) {
+-    // 1234e5 -> 123400000[.0+]
+-    size += to_unsigned(fp.exponent);
+-    int num_zeros = fspecs.precision - exp;
+-#ifdef FMT_FUZZ
+-    if (num_zeros > 5000)
+-      throw std::runtime_error("fuzz mode - avoiding excessive cpu use");
+-#endif
+-    if (fspecs.showpoint) {
+-      if (num_zeros <= 0 && fspecs.format != float_format::fixed) num_zeros = 1;
+-      if (num_zeros > 0) size += to_unsigned(num_zeros) + 1;
+-    }
+-    auto grouping = Grouping(loc, fspecs.locale);
+-    size += to_unsigned(grouping.count_separators(significand_size));
+-    return write_padded<align::right>(out, specs, size, [&](iterator it) {
+-      if (sign) *it++ = detail::sign<Char>(sign);
+-      it = write_significand<Char>(it, significand, significand_size,
+-                                   fp.exponent, grouping);
+-      if (!fspecs.showpoint) return it;
+-      *it++ = decimal_point;
+-      return num_zeros > 0 ? detail::fill_n(it, num_zeros, zero) : it;
+-    });
+-  } else if (exp > 0) {
+-    // 1234e-2 -> 12.34[0+]
+-    int num_zeros = fspecs.showpoint ? fspecs.precision - significand_size : 0;
+-    size += 1 + to_unsigned(num_zeros > 0 ? num_zeros : 0);
+-    auto grouping = Grouping(loc, fspecs.locale);
+-    size += to_unsigned(grouping.count_separators(significand_size));
+-    return write_padded<align::right>(out, specs, size, [&](iterator it) {
+-      if (sign) *it++ = detail::sign<Char>(sign);
+-      it = write_significand(it, significand, significand_size, exp,
+-                             decimal_point, grouping);
+-      return num_zeros > 0 ? detail::fill_n(it, num_zeros, zero) : it;
+-    });
+-  }
+-  // 1234e-6 -> 0.001234
+-  int num_zeros = -exp;
+-  if (significand_size == 0 && fspecs.precision >= 0 &&
+-      fspecs.precision < num_zeros) {
+-    num_zeros = fspecs.precision;
+-  }
+-  bool pointy = num_zeros != 0 || significand_size != 0 || fspecs.showpoint;
+-  size += 1 + (pointy ? 1 : 0) + to_unsigned(num_zeros);
+-  return write_padded<align::right>(out, specs, size, [&](iterator it) {
+-    if (sign) *it++ = detail::sign<Char>(sign);
+-    *it++ = zero;
+-    if (!pointy) return it;
+-    *it++ = decimal_point;
+-    it = detail::fill_n(it, num_zeros, zero);
+-    return write_significand<Char>(it, significand, significand_size);
+-  });
+-}
+-
+-template <typename Char> class fallback_digit_grouping {
+- public:
+-  constexpr fallback_digit_grouping(locale_ref, bool) {}
+-
+-  constexpr Char separator() const { return Char(); }
+-
+-  constexpr int count_separators(int) const { return 0; }
+-
+-  template <typename Out, typename C>
+-  constexpr Out apply(Out out, basic_string_view<C>) const {
+-    return out;
+-  }
+-};
+-
+-template <typename OutputIt, typename DecimalFP, typename Char>
+-FMT_CONSTEXPR20 auto write_float(OutputIt out, const DecimalFP& fp,
+-                                 const basic_format_specs<Char>& specs,
+-                                 float_specs fspecs, locale_ref loc)
+-    -> OutputIt {
+-  if (is_constant_evaluated()) {
+-    return do_write_float<OutputIt, DecimalFP, Char,
+-                          fallback_digit_grouping<Char>>(out, fp, specs, fspecs,
+-                                                         loc);
+-  } else {
+-    return do_write_float(out, fp, specs, fspecs, loc);
+-  }
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_CONSTEXPR20 bool isinf(T value) {
+-  if (is_constant_evaluated()) {
+-#if defined(__cpp_if_constexpr)
+-    if constexpr (std::numeric_limits<double>::is_iec559) {
+-      auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value));
+-      constexpr auto significand_bits =
+-          dragonbox::float_info<double>::significand_bits;
+-      return (bits & exponent_mask<double>()) &&
+-             !(bits & ((uint64_t(1) << significand_bits) - 1));
+-    }
+-#endif
+-  }
+-  return std::isinf(value);
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_CONSTEXPR20 bool isfinite(T value) {
+-  if (is_constant_evaluated()) {
+-#if defined(__cpp_if_constexpr)
+-    if constexpr (std::numeric_limits<double>::is_iec559) {
+-      auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value));
+-      return (bits & exponent_mask<double>()) != exponent_mask<double>();
+-    }
+-#endif
+-  }
+-  return std::isfinite(value);
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_INLINE FMT_CONSTEXPR bool signbit(T value) {
+-  if (is_constant_evaluated()) {
+-#ifdef __cpp_if_constexpr
+-    if constexpr (std::numeric_limits<double>::is_iec559) {
+-      auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value));
+-      return (bits & (uint64_t(1) << (num_bits<uint64_t>() - 1))) != 0;
+-    }
+-#endif
+-  }
+-  return std::signbit(value);
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-FMT_CONSTEXPR20 auto write(OutputIt out, T value,
+-                           basic_format_specs<Char> specs, locale_ref loc = {})
+-    -> OutputIt {
+-  if (const_check(!is_supported_floating_point(value))) return out;
+-  float_specs fspecs = parse_float_type_spec(specs);
+-  fspecs.sign = specs.sign;
+-  if (detail::signbit(value)) {  // value < 0 is false for NaN so use signbit.
+-    fspecs.sign = sign::minus;
+-    value = -value;
+-  } else if (fspecs.sign == sign::minus) {
+-    fspecs.sign = sign::none;
+-  }
+-
+-  if (!detail::isfinite(value))
+-    return write_nonfinite(out, detail::isinf(value), specs, fspecs);
+-
+-  if (specs.align == align::numeric && fspecs.sign) {
+-    auto it = reserve(out, 1);
+-    *it++ = detail::sign<Char>(fspecs.sign);
+-    out = base_iterator(out, it);
+-    fspecs.sign = sign::none;
+-    if (specs.width != 0) --specs.width;
+-  }
+-
+-  memory_buffer buffer;
+-  if (fspecs.format == float_format::hex) {
+-    if (fspecs.sign) buffer.push_back(detail::sign<char>(fspecs.sign));
+-    snprintf_float(promote_float(value), specs.precision, fspecs, buffer);
+-    return write_bytes<align::right>(out, {buffer.data(), buffer.size()},
+-                                     specs);
+-  }
+-  int precision = specs.precision >= 0 || specs.type == presentation_type::none
+-                      ? specs.precision
+-                      : 6;
+-  if (fspecs.format == float_format::exp) {
+-    if (precision == max_value<int>())
+-      throw_format_error("number is too big");
+-    else
+-      ++precision;
+-  }
+-  if (const_check(std::is_same<T, float>())) fspecs.binary32 = true;
+-  if (!is_fast_float<T>()) fspecs.fallback = true;
+-  int exp = format_float(promote_float(value), precision, fspecs, buffer);
+-  fspecs.precision = precision;
+-  auto fp = big_decimal_fp{buffer.data(), static_cast<int>(buffer.size()), exp};
+-  return write_float(out, fp, specs, fspecs, loc);
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_fast_float<T>::value)>
+-FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt {
+-  if (is_constant_evaluated()) {
+-    return write(out, value, basic_format_specs<Char>());
+-  }
+-
+-  if (const_check(!is_supported_floating_point(value))) return out;
+-
+-  using floaty = conditional_t<std::is_same<T, long double>::value, double, T>;
+-  using uint = typename dragonbox::float_info<floaty>::carrier_uint;
+-  auto bits = bit_cast<uint>(value);
+-
+-  auto fspecs = float_specs();
+-  if (detail::signbit(value)) {
+-    fspecs.sign = sign::minus;
+-    value = -value;
+-  }
+-
+-  constexpr auto specs = basic_format_specs<Char>();
+-  uint mask = exponent_mask<floaty>();
+-  if ((bits & mask) == mask)
+-    return write_nonfinite(out, std::isinf(value), specs, fspecs);
+-
+-  auto dec = dragonbox::to_decimal(static_cast<floaty>(value));
+-  return write_float(out, dec, specs, fspecs, {});
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_floating_point<T>::value &&
+-                        !is_fast_float<T>::value)>
+-inline auto write(OutputIt out, T value) -> OutputIt {
+-  return write(out, value, basic_format_specs<Char>());
+-}
+-
+-template <typename Char, typename OutputIt>
+-auto write(OutputIt out, monostate, basic_format_specs<Char> = {},
+-           locale_ref = {}) -> OutputIt {
+-  FMT_ASSERT(false, "");
+-  return out;
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> value)
+-    -> OutputIt {
+-  auto it = reserve(out, value.size());
+-  it = copy_str_noinline<Char>(value.begin(), value.end(), it);
+-  return base_iterator(out, it);
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_string<T>::value)>
+-constexpr auto write(OutputIt out, const T& value) -> OutputIt {
+-  return write<Char>(out, to_string_view(value));
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(is_integral<T>::value &&
+-                        !std::is_same<T, bool>::value &&
+-                        !std::is_same<T, Char>::value)>
+-FMT_CONSTEXPR auto write(OutputIt out, T value) -> OutputIt {
+-  auto abs_value = static_cast<uint32_or_64_or_128_t<T>>(value);
+-  bool negative = is_negative(value);
+-  // Don't do -abs_value since it trips unsigned-integer-overflow sanitizer.
+-  if (negative) abs_value = ~abs_value + 1;
+-  int num_digits = count_digits(abs_value);
+-  auto size = (negative ? 1 : 0) + static_cast<size_t>(num_digits);
+-  auto it = reserve(out, size);
+-  if (auto ptr = to_pointer<Char>(it, size)) {
+-    if (negative) *ptr++ = static_cast<Char>('-');
+-    format_decimal<Char>(ptr, abs_value, num_digits);
+-    return out;
+-  }
+-  if (negative) *it++ = static_cast<Char>('-');
+-  it = format_decimal<Char>(it, abs_value, num_digits).end;
+-  return base_iterator(out, it);
+-}
+-
+-// FMT_ENABLE_IF() condition separated to workaround an MSVC bug.
+-template <
+-    typename Char, typename OutputIt, typename T,
+-    bool check =
+-        std::is_enum<T>::value && !std::is_same<T, Char>::value &&
+-        mapped_type_constant<T, basic_format_context<OutputIt, Char>>::value !=
+-            type::custom_type,
+-    FMT_ENABLE_IF(check)>
+-FMT_CONSTEXPR auto write(OutputIt out, T value) -> OutputIt {
+-  return write<Char>(
+-      out, static_cast<typename std::underlying_type<T>::type>(value));
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_same<T, bool>::value)>
+-FMT_CONSTEXPR auto write(OutputIt out, T value,
+-                         const basic_format_specs<Char>& specs = {},
+-                         locale_ref = {}) -> OutputIt {
+-  return specs.type != presentation_type::none &&
+-                 specs.type != presentation_type::string
+-             ? write(out, value ? 1 : 0, specs, {})
+-             : write_bytes(out, value ? "true" : "false", specs);
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR auto write(OutputIt out, Char value) -> OutputIt {
+-  auto it = reserve(out, 1);
+-  *it++ = value;
+-  return base_iterator(out, it);
+-}
+-
+-template <typename Char, typename OutputIt>
+-FMT_CONSTEXPR_CHAR_TRAITS auto write(OutputIt out, const Char* value)
+-    -> OutputIt {
+-  if (!value) {
+-    throw_format_error("string pointer is null");
+-  } else {
+-    out = write(out, basic_string_view<Char>(value));
+-  }
+-  return out;
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_same<T, void>::value)>
+-auto write(OutputIt out, const T* value,
+-           const basic_format_specs<Char>& specs = {}, locale_ref = {})
+-    -> OutputIt {
+-  check_pointer_type_spec(specs.type, error_handler());
+-  return write_ptr<Char>(out, to_uintptr(value), &specs);
+-}
+-
+-// A write overload that handles implicit conversions.
+-template <typename Char, typename OutputIt, typename T,
+-          typename Context = basic_format_context<OutputIt, Char>>
+-FMT_CONSTEXPR auto write(OutputIt out, const T& value) -> enable_if_t<
+-    std::is_class<T>::value && !is_string<T>::value &&
+-        !std::is_same<T, Char>::value &&
+-        !std::is_same<const T&,
+-                      decltype(arg_mapper<Context>().map(value))>::value,
+-    OutputIt> {
+-  return write<Char>(out, arg_mapper<Context>().map(value));
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          typename Context = basic_format_context<OutputIt, Char>>
+-FMT_CONSTEXPR auto write(OutputIt out, const T& value)
+-    -> enable_if_t<mapped_type_constant<T, Context>::value == type::custom_type,
+-                   OutputIt> {
+-  using formatter_type =
+-      conditional_t<has_formatter<T, Context>::value,
+-                    typename Context::template formatter_type<T>,
+-                    fallback_formatter<T, Char>>;
+-  auto ctx = Context(out, {}, {});
+-  return formatter_type().format(value, ctx);
+-}
+-
+-// An argument visitor that formats the argument and writes it via the output
+-// iterator. It's a class and not a generic lambda for compatibility with C++11.
+-template <typename Char> struct default_arg_formatter {
+-  using iterator = buffer_appender<Char>;
+-  using context = buffer_context<Char>;
+-
+-  iterator out;
+-  basic_format_args<context> args;
+-  locale_ref loc;
+-
+-  template <typename T> auto operator()(T value) -> iterator {
+-    return write<Char>(out, value);
+-  }
+-  auto operator()(typename basic_format_arg<context>::handle h) -> iterator {
+-    basic_format_parse_context<Char> parse_ctx({});
+-    context format_ctx(out, args, loc);
+-    h.format(parse_ctx, format_ctx);
+-    return format_ctx.out();
+-  }
+-};
+-
+-template <typename Char> struct arg_formatter {
+-  using iterator = buffer_appender<Char>;
+-  using context = buffer_context<Char>;
+-
+-  iterator out;
+-  const basic_format_specs<Char>& specs;
+-  locale_ref locale;
+-
+-  template <typename T>
+-  FMT_CONSTEXPR FMT_INLINE auto operator()(T value) -> iterator {
+-    return detail::write(out, value, specs, locale);
+-  }
+-  auto operator()(typename basic_format_arg<context>::handle) -> iterator {
+-    // User-defined types are handled separately because they require access
+-    // to the parse context.
+-    return out;
+-  }
+-};
+-
+-template <typename Char> struct custom_formatter {
+-  basic_format_parse_context<Char>& parse_ctx;
+-  buffer_context<Char>& ctx;
+-
+-  void operator()(
+-      typename basic_format_arg<buffer_context<Char>>::handle h) const {
+-    h.format(parse_ctx, ctx);
+-  }
+-  template <typename T> void operator()(T) const {}
+-};
+-
+-template <typename T>
+-using is_integer =
+-    bool_constant<is_integral<T>::value && !std::is_same<T, bool>::value &&
+-                  !std::is_same<T, char>::value &&
+-                  !std::is_same<T, wchar_t>::value>;
+-
+-template <typename ErrorHandler> class width_checker {
+- public:
+-  explicit FMT_CONSTEXPR width_checker(ErrorHandler& eh) : handler_(eh) {}
+-
+-  template <typename T, FMT_ENABLE_IF(is_integer<T>::value)>
+-  FMT_CONSTEXPR auto operator()(T value) -> unsigned long long {
+-    if (is_negative(value)) handler_.on_error("negative width");
+-    return static_cast<unsigned long long>(value);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!is_integer<T>::value)>
+-  FMT_CONSTEXPR auto operator()(T) -> unsigned long long {
+-    handler_.on_error("width is not integer");
+-    return 0;
+-  }
+-
+- private:
+-  ErrorHandler& handler_;
+-};
+-
+-template <typename ErrorHandler> class precision_checker {
+- public:
+-  explicit FMT_CONSTEXPR precision_checker(ErrorHandler& eh) : handler_(eh) {}
+-
+-  template <typename T, FMT_ENABLE_IF(is_integer<T>::value)>
+-  FMT_CONSTEXPR auto operator()(T value) -> unsigned long long {
+-    if (is_negative(value)) handler_.on_error("negative precision");
+-    return static_cast<unsigned long long>(value);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!is_integer<T>::value)>
+-  FMT_CONSTEXPR auto operator()(T) -> unsigned long long {
+-    handler_.on_error("precision is not integer");
+-    return 0;
+-  }
+-
+- private:
+-  ErrorHandler& handler_;
+-};
+-
+-template <template <typename> class Handler, typename FormatArg,
+-          typename ErrorHandler>
+-FMT_CONSTEXPR auto get_dynamic_spec(FormatArg arg, ErrorHandler eh) -> int {
+-  unsigned long long value = visit_format_arg(Handler<ErrorHandler>(eh), arg);
+-  if (value > to_unsigned(max_value<int>())) eh.on_error("number is too big");
+-  return static_cast<int>(value);
+-}
+-
+-template <typename Context, typename ID>
+-FMT_CONSTEXPR auto get_arg(Context& ctx, ID id) ->
+-    typename Context::format_arg {
+-  auto arg = ctx.arg(id);
+-  if (!arg) ctx.on_error("argument not found");
+-  return arg;
+-}
+-
+-// The standard format specifier handler with checking.
+-template <typename Char> class specs_handler : public specs_setter<Char> {
+- private:
+-  basic_format_parse_context<Char>& parse_context_;
+-  buffer_context<Char>& context_;
+-
+-  // This is only needed for compatibility with gcc 4.4.
+-  using format_arg = basic_format_arg<buffer_context<Char>>;
+-
+-  FMT_CONSTEXPR auto get_arg(auto_id) -> format_arg {
+-    return detail::get_arg(context_, parse_context_.next_arg_id());
+-  }
+-
+-  FMT_CONSTEXPR auto get_arg(int arg_id) -> format_arg {
+-    parse_context_.check_arg_id(arg_id);
+-    return detail::get_arg(context_, arg_id);
+-  }
+-
+-  FMT_CONSTEXPR auto get_arg(basic_string_view<Char> arg_id) -> format_arg {
+-    parse_context_.check_arg_id(arg_id);
+-    return detail::get_arg(context_, arg_id);
+-  }
+-
+- public:
+-  FMT_CONSTEXPR specs_handler(basic_format_specs<Char>& specs,
+-                              basic_format_parse_context<Char>& parse_ctx,
+-                              buffer_context<Char>& ctx)
+-      : specs_setter<Char>(specs), parse_context_(parse_ctx), context_(ctx) {}
+-
+-  template <typename Id> FMT_CONSTEXPR void on_dynamic_width(Id arg_id) {
+-    this->specs_.width = get_dynamic_spec<width_checker>(
+-        get_arg(arg_id), context_.error_handler());
+-  }
+-
+-  template <typename Id> FMT_CONSTEXPR void on_dynamic_precision(Id arg_id) {
+-    this->specs_.precision = get_dynamic_spec<precision_checker>(
+-        get_arg(arg_id), context_.error_handler());
+-  }
+-
+-  void on_error(const char* message) { context_.on_error(message); }
+-};
+-
+-template <template <typename> class Handler, typename Context>
+-FMT_CONSTEXPR void handle_dynamic_spec(int& value,
+-                                       arg_ref<typename Context::char_type> ref,
+-                                       Context& ctx) {
+-  switch (ref.kind) {
+-  case arg_id_kind::none:
+-    break;
+-  case arg_id_kind::index:
+-    value = detail::get_dynamic_spec<Handler>(ctx.arg(ref.val.index),
+-                                              ctx.error_handler());
+-    break;
+-  case arg_id_kind::name:
+-    value = detail::get_dynamic_spec<Handler>(ctx.arg(ref.val.name),
+-                                              ctx.error_handler());
+-    break;
+-  }
+-}
+-
+-#define FMT_STRING_IMPL(s, base, explicit)                                 \
+-  [] {                                                                     \
+-    /* Use the hidden visibility as a workaround for a GCC bug (#1973). */ \
+-    /* Use a macro-like name to avoid shadowing warnings. */               \
+-    struct FMT_GCC_VISIBILITY_HIDDEN FMT_COMPILE_STRING : base {           \
+-      using char_type = fmt::remove_cvref_t<decltype(s[0])>;               \
+-      FMT_MAYBE_UNUSED FMT_CONSTEXPR explicit                              \
+-      operator fmt::basic_string_view<char_type>() const {                 \
+-        return fmt::detail_exported::compile_string_to_view<char_type>(s); \
+-      }                                                                    \
+-    };                                                                     \
+-    return FMT_COMPILE_STRING();                                           \
+-  }()
+-
+-/**
+-  \rst
+-  Constructs a compile-time format string from a string literal *s*.
+-
+-  **Example**::
+-
+-    // A compile-time error because 'd' is an invalid specifier for strings.
+-    std::string s = fmt::format(FMT_STRING("{:d}"), "foo");
+-  \endrst
+- */
+-#define FMT_STRING(s) FMT_STRING_IMPL(s, fmt::compile_string, )
+-
+-#if FMT_USE_USER_DEFINED_LITERALS
+-template <typename Char> struct udl_formatter {
+-  basic_string_view<Char> str;
+-
+-  template <typename... T>
+-  auto operator()(T&&... args) const -> std::basic_string<Char> {
+-    return vformat(str, fmt::make_args_checked<T...>(str, args...));
+-  }
+-};
+-
+-#  if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <typename T, typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct statically_named_arg : view {
+-  static constexpr auto name = Str.data;
+-
+-  const T& value;
+-  statically_named_arg(const T& v) : value(v) {}
+-};
+-
+-template <typename T, typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct is_named_arg<statically_named_arg<T, Char, N, Str>> : std::true_type {};
+-
+-template <typename T, typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct is_statically_named_arg<statically_named_arg<T, Char, N, Str>>
+-    : std::true_type {};
+-
+-template <typename Char, size_t N,
+-          fmt::detail_exported::fixed_string<Char, N> Str>
+-struct udl_arg {
+-  template <typename T> auto operator=(T&& value) const {
+-    return statically_named_arg<T, Char, N, Str>(std::forward<T>(value));
+-  }
+-};
+-#  else
+-template <typename Char> struct udl_arg {
+-  const Char* str;
+-
+-  template <typename T> auto operator=(T&& value) const -> named_arg<Char, T> {
+-    return {str, std::forward<T>(value)};
+-  }
+-};
+-#  endif
+-#endif  // FMT_USE_USER_DEFINED_LITERALS
+-
+-template <typename Locale, typename Char>
+-auto vformat(const Locale& loc, basic_string_view<Char> format_str,
+-             basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> std::basic_string<Char> {
+-  basic_memory_buffer<Char> buffer;
+-  detail::vformat_to(buffer, format_str, args, detail::locale_ref(loc));
+-  return {buffer.data(), buffer.size()};
+-}
+-
+-using format_func = void (*)(detail::buffer<char>&, int, const char*);
+-
+-FMT_API void format_error_code(buffer<char>& out, int error_code,
+-                               string_view message) FMT_NOEXCEPT;
+-
+-FMT_API void report_error(format_func func, int error_code,
+-                          const char* message) FMT_NOEXCEPT;
+-FMT_END_DETAIL_NAMESPACE
+-
+-FMT_API auto vsystem_error(int error_code, string_view format_str,
+-                           format_args args) -> std::system_error;
+-
+-/**
+- \rst
+- Constructs :class:`std::system_error` with a message formatted with
+- ``fmt::format(fmt, args...)``.
+-  *error_code* is a system error code as given by ``errno``.
+-
+- **Example**::
+-
+-   // This throws std::system_error with the description
+-   //   cannot open file 'madeup': No such file or directory
+-   // or similar (system message may vary).
+-   const char* filename = "madeup";
+-   std::FILE* file = std::fopen(filename, "r");
+-   if (!file)
+-     throw fmt::system_error(errno, "cannot open file '{}'", filename);
+- \endrst
+-*/
+-template <typename... T>
+-auto system_error(int error_code, format_string<T...> fmt, T&&... args)
+-    -> std::system_error {
+-  return vsystem_error(error_code, fmt, fmt::make_format_args(args...));
+-}
+-
+-/**
+-  \rst
+-  Formats an error message for an error returned by an operating system or a
+-  language runtime, for example a file opening error, and writes it to *out*.
+-  The format is the same as the one used by ``std::system_error(ec, message)``
+-  where ``ec`` is ``std::error_code(error_code, std::generic_category()})``.
+-  It is implementation-defined but normally looks like:
+-
+-  .. parsed-literal::
+-     *<message>*: *<system-message>*
+-
+-  where *<message>* is the passed message and *<system-message>* is the system
+-  message corresponding to the error code.
+-  *error_code* is a system error code as given by ``errno``.
+-  \endrst
+- */
+-FMT_API void format_system_error(detail::buffer<char>& out, int error_code,
+-                                 const char* message) FMT_NOEXCEPT;
+-
+-// Reports a system error without throwing an exception.
+-// Can be used to report errors from destructors.
+-FMT_API void report_system_error(int error_code,
+-                                 const char* message) FMT_NOEXCEPT;
+-
+-/** Fast integer formatter. */
+-class format_int {
+- private:
+-  // Buffer should be large enough to hold all digits (digits10 + 1),
+-  // a sign and a null character.
+-  enum { buffer_size = std::numeric_limits<unsigned long long>::digits10 + 3 };
+-  mutable char buffer_[buffer_size];
+-  char* str_;
+-
+-  template <typename UInt> auto format_unsigned(UInt value) -> char* {
+-    auto n = static_cast<detail::uint32_or_64_or_128_t<UInt>>(value);
+-    return detail::format_decimal(buffer_, n, buffer_size - 1).begin;
+-  }
+-
+-  template <typename Int> auto format_signed(Int value) -> char* {
+-    auto abs_value = static_cast<detail::uint32_or_64_or_128_t<Int>>(value);
+-    bool negative = value < 0;
+-    if (negative) abs_value = 0 - abs_value;
+-    auto begin = format_unsigned(abs_value);
+-    if (negative) *--begin = '-';
+-    return begin;
+-  }
+-
+- public:
+-  explicit format_int(int value) : str_(format_signed(value)) {}
+-  explicit format_int(long value) : str_(format_signed(value)) {}
+-  explicit format_int(long long value) : str_(format_signed(value)) {}
+-  explicit format_int(unsigned value) : str_(format_unsigned(value)) {}
+-  explicit format_int(unsigned long value) : str_(format_unsigned(value)) {}
+-  explicit format_int(unsigned long long value)
+-      : str_(format_unsigned(value)) {}
+-
+-  /** Returns the number of characters written to the output buffer. */
+-  auto size() const -> size_t {
+-    return detail::to_unsigned(buffer_ - str_ + buffer_size - 1);
+-  }
+-
+-  /**
+-    Returns a pointer to the output buffer content. No terminating null
+-    character is appended.
+-   */
+-  auto data() const -> const char* { return str_; }
+-
+-  /**
+-    Returns a pointer to the output buffer content with terminating null
+-    character appended.
+-   */
+-  auto c_str() const -> const char* {
+-    buffer_[buffer_size - 1] = '\0';
+-    return str_;
+-  }
+-
+-  /**
+-    \rst
+-    Returns the content of the output buffer as an ``std::string``.
+-    \endrst
+-   */
+-  auto str() const -> std::string { return std::string(str_, size()); }
+-};
+-
+-template <typename T, typename Char>
+-template <typename FormatContext>
+-FMT_CONSTEXPR FMT_INLINE auto
+-formatter<T, Char,
+-          enable_if_t<detail::type_constant<T, Char>::value !=
+-                      detail::type::custom_type>>::format(const T& val,
+-                                                          FormatContext& ctx)
+-    const -> decltype(ctx.out()) {
+-  if (specs_.width_ref.kind != detail::arg_id_kind::none ||
+-      specs_.precision_ref.kind != detail::arg_id_kind::none) {
+-    auto specs = specs_;
+-    detail::handle_dynamic_spec<detail::width_checker>(specs.width,
+-                                                       specs.width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(
+-        specs.precision, specs.precision_ref, ctx);
+-    return detail::write<Char>(ctx.out(), val, specs, ctx.locale());
+-  }
+-  return detail::write<Char>(ctx.out(), val, specs_, ctx.locale());
+-}
+-
+-#define FMT_FORMAT_AS(Type, Base)                                        \
+-  template <typename Char>                                               \
+-  struct formatter<Type, Char> : formatter<Base, Char> {                 \
+-    template <typename FormatContext>                                    \
+-    auto format(Type const& val, FormatContext& ctx) const               \
+-        -> decltype(ctx.out()) {                                         \
+-      return formatter<Base, Char>::format(static_cast<Base>(val), ctx); \
+-    }                                                                    \
+-  }
+-
+-FMT_FORMAT_AS(signed char, int);
+-FMT_FORMAT_AS(unsigned char, unsigned);
+-FMT_FORMAT_AS(short, int);
+-FMT_FORMAT_AS(unsigned short, unsigned);
+-FMT_FORMAT_AS(long, long long);
+-FMT_FORMAT_AS(unsigned long, unsigned long long);
+-FMT_FORMAT_AS(Char*, const Char*);
+-FMT_FORMAT_AS(std::basic_string<Char>, basic_string_view<Char>);
+-FMT_FORMAT_AS(std::nullptr_t, const void*);
+-FMT_FORMAT_AS(detail::byte, unsigned char);
+-FMT_FORMAT_AS(detail::std_string_view<Char>, basic_string_view<Char>);
+-
+-template <typename Char>
+-struct formatter<void*, Char> : formatter<const void*, Char> {
+-  template <typename FormatContext>
+-  auto format(void* val, FormatContext& ctx) const -> decltype(ctx.out()) {
+-    return formatter<const void*, Char>::format(val, ctx);
+-  }
+-};
+-
+-template <typename Char, size_t N>
+-struct formatter<Char[N], Char> : formatter<basic_string_view<Char>, Char> {
+-  template <typename FormatContext>
+-  FMT_CONSTEXPR auto format(const Char* val, FormatContext& ctx) const
+-      -> decltype(ctx.out()) {
+-    return formatter<basic_string_view<Char>, Char>::format(val, ctx);
+-  }
+-};
+-
+-// A formatter for types known only at run time such as variant alternatives.
+-//
+-// Usage:
+-//   using variant = std::variant<int, std::string>;
+-//   template <>
+-//   struct formatter<variant>: dynamic_formatter<> {
+-//     auto format(const variant& v, format_context& ctx) {
+-//       return visit([&](const auto& val) {
+-//           return dynamic_formatter<>::format(val, ctx);
+-//       }, v);
+-//     }
+-//   };
+-template <typename Char = char> class dynamic_formatter {
+- private:
+-  detail::dynamic_format_specs<Char> specs_;
+-  const Char* format_str_;
+-
+-  struct null_handler : detail::error_handler {
+-    void on_align(align_t) {}
+-    void on_sign(sign_t) {}
+-    void on_hash() {}
+-  };
+-
+-  template <typename Context> void handle_specs(Context& ctx) {
+-    detail::handle_dynamic_spec<detail::width_checker>(specs_.width,
+-                                                       specs_.width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(
+-        specs_.precision, specs_.precision_ref, ctx);
+-  }
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    format_str_ = ctx.begin();
+-    // Checks are deferred to formatting time when the argument type is known.
+-    detail::dynamic_specs_handler<ParseContext> handler(specs_, ctx);
+-    return detail::parse_format_specs(ctx.begin(), ctx.end(), handler);
+-  }
+-
+-  template <typename T, typename FormatContext>
+-  auto format(const T& val, FormatContext& ctx) -> decltype(ctx.out()) {
+-    handle_specs(ctx);
+-    detail::specs_checker<null_handler> checker(
+-        null_handler(), detail::mapped_type_constant<T, FormatContext>::value);
+-    checker.on_align(specs_.align);
+-    if (specs_.sign != sign::none) checker.on_sign(specs_.sign);
+-    if (specs_.alt) checker.on_hash();
+-    if (specs_.precision >= 0) checker.end_precision();
+-    return detail::write<Char>(ctx.out(), val, specs_, ctx.locale());
+-  }
+-};
+-
+-/**
+-  \rst
+-  Converts ``p`` to ``const void*`` for pointer formatting.
+-
+-  **Example**::
+-
+-    auto s = fmt::format("{}", fmt::ptr(p));
+-  \endrst
+- */
+-template <typename T> auto ptr(T p) -> const void* {
+-  static_assert(std::is_pointer<T>::value, "");
+-  return detail::bit_cast<const void*>(p);
+-}
+-template <typename T> auto ptr(const std::unique_ptr<T>& p) -> const void* {
+-  return p.get();
+-}
+-template <typename T> auto ptr(const std::shared_ptr<T>& p) -> const void* {
+-  return p.get();
+-}
+-
+-class bytes {
+- private:
+-  string_view data_;
+-  friend struct formatter<bytes>;
+-
+- public:
+-  explicit bytes(string_view data) : data_(data) {}
+-};
+-
+-template <> struct formatter<bytes> {
+- private:
+-  detail::dynamic_format_specs<char> specs_;
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    using handler_type = detail::dynamic_specs_handler<ParseContext>;
+-    detail::specs_checker<handler_type> handler(handler_type(specs_, ctx),
+-                                                detail::type::string_type);
+-    auto it = parse_format_specs(ctx.begin(), ctx.end(), handler);
+-    detail::check_string_type_spec(specs_.type, ctx.error_handler());
+-    return it;
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(bytes b, FormatContext& ctx) -> decltype(ctx.out()) {
+-    detail::handle_dynamic_spec<detail::width_checker>(specs_.width,
+-                                                       specs_.width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(
+-        specs_.precision, specs_.precision_ref, ctx);
+-    return detail::write_bytes(ctx.out(), b.data_, specs_);
+-  }
+-};
+-
+-// group_digits_view is not derived from view because it copies the argument.
+-template <typename T> struct group_digits_view { T value; };
+-
+-/**
+-  \rst
+-  Returns a view that formats an integer value using ',' as a locale-independent
+-  thousands separator.
+-
+-  **Example**::
+-
+-    fmt::print("{}", fmt::group_digits(12345));
+-    // Output: "12,345"
+-  \endrst
+- */
+-template <typename T> auto group_digits(T value) -> group_digits_view<T> {
+-  return {value};
+-}
+-
+-template <typename T> struct formatter<group_digits_view<T>> : formatter<T> {
+- private:
+-  detail::dynamic_format_specs<char> specs_;
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    using handler_type = detail::dynamic_specs_handler<ParseContext>;
+-    detail::specs_checker<handler_type> handler(handler_type(specs_, ctx),
+-                                                detail::type::int_type);
+-    auto it = parse_format_specs(ctx.begin(), ctx.end(), handler);
+-    detail::check_string_type_spec(specs_.type, ctx.error_handler());
+-    return it;
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(group_digits_view<T> t, FormatContext& ctx)
+-      -> decltype(ctx.out()) {
+-    detail::handle_dynamic_spec<detail::width_checker>(specs_.width,
+-                                                       specs_.width_ref, ctx);
+-    detail::handle_dynamic_spec<detail::precision_checker>(
+-        specs_.precision, specs_.precision_ref, ctx);
+-    return detail::write_int_localized(
+-        ctx.out(), static_cast<detail::uint64_or_128_t<T>>(t.value), 0, specs_,
+-        detail::digit_grouping<char>({"\3", ','}));
+-  }
+-};
+-
+-template <typename It, typename Sentinel, typename Char = char>
+-struct join_view : detail::view {
+-  It begin;
+-  Sentinel end;
+-  basic_string_view<Char> sep;
+-
+-  join_view(It b, Sentinel e, basic_string_view<Char> s)
+-      : begin(b), end(e), sep(s) {}
+-};
+-
+-template <typename It, typename Sentinel, typename Char>
+-using arg_join FMT_DEPRECATED_ALIAS = join_view<It, Sentinel, Char>;
+-
+-template <typename It, typename Sentinel, typename Char>
+-struct formatter<join_view<It, Sentinel, Char>, Char> {
+- private:
+-  using value_type =
+-#ifdef __cpp_lib_ranges
+-      std::iter_value_t<It>;
+-#else
+-      typename std::iterator_traits<It>::value_type;
+-#endif
+-  using context = buffer_context<Char>;
+-  using mapper = detail::arg_mapper<context>;
+-
+-  template <typename T, FMT_ENABLE_IF(has_formatter<T, context>::value)>
+-  static auto map(const T& value) -> const T& {
+-    return value;
+-  }
+-  template <typename T, FMT_ENABLE_IF(!has_formatter<T, context>::value)>
+-  static auto map(const T& value) -> decltype(mapper().map(value)) {
+-    return mapper().map(value);
+-  }
+-
+-  using formatter_type =
+-      conditional_t<is_formattable<value_type, Char>::value,
+-                    formatter<remove_cvref_t<decltype(map(
+-                                  std::declval<const value_type&>()))>,
+-                              Char>,
+-                    detail::fallback_formatter<value_type, Char>>;
+-
+-  formatter_type value_formatter_;
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return value_formatter_.parse(ctx);
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(const join_view<It, Sentinel, Char>& value, FormatContext& ctx)
+-      -> decltype(ctx.out()) {
+-    auto it = value.begin;
+-    auto out = ctx.out();
+-    if (it != value.end) {
+-      out = value_formatter_.format(map(*it), ctx);
+-      ++it;
+-      while (it != value.end) {
+-        out = detail::copy_str<Char>(value.sep.begin(), value.sep.end(), out);
+-        ctx.advance_to(out);
+-        out = value_formatter_.format(map(*it), ctx);
+-        ++it;
+-      }
+-    }
+-    return out;
+-  }
+-};
+-
+-/**
+-  Returns a view that formats the iterator range `[begin, end)` with elements
+-  separated by `sep`.
+- */
+-template <typename It, typename Sentinel>
+-auto join(It begin, Sentinel end, string_view sep) -> join_view<It, Sentinel> {
+-  return {begin, end, sep};
+-}
+-
+-/**
+-  \rst
+-  Returns a view that formats `range` with elements separated by `sep`.
+-
+-  **Example**::
+-
+-    std::vector<int> v = {1, 2, 3};
+-    fmt::print("{}", fmt::join(v, ", "));
+-    // Output: "1, 2, 3"
+-
+-  ``fmt::join`` applies passed format specifiers to the range elements::
+-
+-    fmt::print("{:02}", fmt::join(v, ", "));
+-    // Output: "01, 02, 03"
+-  \endrst
+- */
+-template <typename Range>
+-auto join(Range&& range, string_view sep)
+-    -> join_view<detail::iterator_t<Range>, detail::sentinel_t<Range>> {
+-  return join(std::begin(range), std::end(range), sep);
+-}
+-
+-/**
+-  \rst
+-  Converts *value* to ``std::string`` using the default format for type *T*.
+-
+-  **Example**::
+-
+-    #include <fmt/format.h>
+-
+-    std::string answer = fmt::to_string(42);
+-  \endrst
+- */
+-template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-inline auto to_string(const T& value) -> std::string {
+-  auto result = std::string();
+-  detail::write<char>(std::back_inserter(result), value);
+-  return result;
+-}
+-
+-template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-FMT_NODISCARD inline auto to_string(T value) -> std::string {
+-  // The buffer should be large enough to store the number including the sign
+-  // or "false" for bool.
+-  constexpr int max_size = detail::digits10<T>() + 2;
+-  char buffer[max_size > 5 ? static_cast<unsigned>(max_size) : 5];
+-  char* begin = buffer;
+-  return std::string(begin, detail::write<char>(begin, value));
+-}
+-
+-template <typename Char, size_t SIZE>
+-FMT_NODISCARD auto to_string(const basic_memory_buffer<Char, SIZE>& buf)
+-    -> std::basic_string<Char> {
+-  auto size = buf.size();
+-  detail::assume(size < std::basic_string<Char>().max_size());
+-  return std::basic_string<Char>(buf.data(), size);
+-}
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-template <typename Char>
+-void vformat_to(
+-    buffer<Char>& buf, basic_string_view<Char> fmt,
+-    basic_format_args<FMT_BUFFER_CONTEXT(type_identity_t<Char>)> args,
+-    locale_ref loc) {
+-  // workaround for msvc bug regarding name-lookup in module
+-  // link names into function scope
+-  using detail::arg_formatter;
+-  using detail::buffer_appender;
+-  using detail::custom_formatter;
+-  using detail::default_arg_formatter;
+-  using detail::get_arg;
+-  using detail::locale_ref;
+-  using detail::parse_format_specs;
+-  using detail::specs_checker;
+-  using detail::specs_handler;
+-  using detail::to_unsigned;
+-  using detail::type;
+-  using detail::write;
+-  auto out = buffer_appender<Char>(buf);
+-  if (fmt.size() == 2 && equal2(fmt.data(), "{}")) {
+-    auto arg = args.get(0);
+-    if (!arg) error_handler().on_error("argument not found");
+-    visit_format_arg(default_arg_formatter<Char>{out, args, loc}, arg);
+-    return;
+-  }
+-
+-  struct format_handler : error_handler {
+-    basic_format_parse_context<Char> parse_context;
+-    buffer_context<Char> context;
+-
+-    format_handler(buffer_appender<Char> out, basic_string_view<Char> str,
+-                   basic_format_args<buffer_context<Char>> args, locale_ref loc)
+-        : parse_context(str), context(out, args, loc) {}
+-
+-    void on_text(const Char* begin, const Char* end) {
+-      auto text = basic_string_view<Char>(begin, to_unsigned(end - begin));
+-      context.advance_to(write<Char>(context.out(), text));
+-    }
+-
+-    FMT_CONSTEXPR auto on_arg_id() -> int {
+-      return parse_context.next_arg_id();
+-    }
+-    FMT_CONSTEXPR auto on_arg_id(int id) -> int {
+-      return parse_context.check_arg_id(id), id;
+-    }
+-    FMT_CONSTEXPR auto on_arg_id(basic_string_view<Char> id) -> int {
+-      int arg_id = context.arg_id(id);
+-      if (arg_id < 0) on_error("argument not found");
+-      return arg_id;
+-    }
+-
+-    FMT_INLINE void on_replacement_field(int id, const Char*) {
+-      auto arg = get_arg(context, id);
+-      context.advance_to(visit_format_arg(
+-          default_arg_formatter<Char>{context.out(), context.args(),
+-                                      context.locale()},
+-          arg));
+-    }
+-
+-    auto on_format_specs(int id, const Char* begin, const Char* end)
+-        -> const Char* {
+-      auto arg = get_arg(context, id);
+-      if (arg.type() == type::custom_type) {
+-        parse_context.advance_to(parse_context.begin() +
+-                                 (begin - &*parse_context.begin()));
+-        visit_format_arg(custom_formatter<Char>{parse_context, context}, arg);
+-        return parse_context.begin();
+-      }
+-      auto specs = basic_format_specs<Char>();
+-      specs_checker<specs_handler<Char>> handler(
+-          specs_handler<Char>(specs, parse_context, context), arg.type());
+-      begin = parse_format_specs(begin, end, handler);
+-      if (begin == end || *begin != '}')
+-        on_error("missing '}' in format string");
+-      auto f = arg_formatter<Char>{context.out(), specs, context.locale()};
+-      context.advance_to(visit_format_arg(f, arg));
+-      return begin;
+-    }
+-  };
+-  detail::parse_format_string<false>(fmt, format_handler(out, fmt, args, loc));
+-}
+-
+-#ifndef FMT_HEADER_ONLY
+-extern template FMT_API auto thousands_sep_impl<char>(locale_ref)
+-    -> thousands_sep_result<char>;
+-extern template FMT_API auto thousands_sep_impl<wchar_t>(locale_ref)
+-    -> thousands_sep_result<wchar_t>;
+-extern template FMT_API auto decimal_point_impl(locale_ref) -> char;
+-extern template FMT_API auto decimal_point_impl(locale_ref) -> wchar_t;
+-extern template auto format_float<double>(double value, int precision,
+-                                          float_specs specs, buffer<char>& buf)
+-    -> int;
+-extern template auto format_float<long double>(long double value, int precision,
+-                                               float_specs specs,
+-                                               buffer<char>& buf) -> int;
+-void snprintf_float(float, int, float_specs, buffer<char>&) = delete;
+-extern template auto snprintf_float<double>(double value, int precision,
+-                                            float_specs specs,
+-                                            buffer<char>& buf) -> int;
+-extern template auto snprintf_float<long double>(long double value,
+-                                                 int precision,
+-                                                 float_specs specs,
+-                                                 buffer<char>& buf) -> int;
+-#endif  // FMT_HEADER_ONLY
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-#if FMT_USE_USER_DEFINED_LITERALS
+-inline namespace literals {
+-/**
+-  \rst
+-  User-defined literal equivalent of :func:`fmt::arg`.
+-
+-  **Example**::
+-
+-    using namespace fmt::literals;
+-    fmt::print("Elapsed time: {s:.2f} seconds", "s"_a=1.23);
+-  \endrst
+- */
+-#  if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-template <detail_exported::fixed_string Str>
+-constexpr auto operator""_a()
+-    -> detail::udl_arg<remove_cvref_t<decltype(Str.data[0])>,
+-                       sizeof(Str.data) / sizeof(decltype(Str.data[0])), Str> {
+-  return {};
+-}
+-#  else
+-constexpr auto operator"" _a(const char* s, size_t) -> detail::udl_arg<char> {
+-  return {s};
+-}
+-#  endif
+-
+-// DEPRECATED!
+-// User-defined literal equivalent of fmt::format.
+-FMT_DEPRECATED constexpr auto operator"" _format(const char* s, size_t n)
+-    -> detail::udl_formatter<char> {
+-  return {{s, n}};
+-}
+-}  // namespace literals
+-#endif  // FMT_USE_USER_DEFINED_LITERALS
+-
+-template <typename Locale, FMT_ENABLE_IF(detail::is_locale<Locale>::value)>
+-inline auto vformat(const Locale& loc, string_view fmt, format_args args)
+-    -> std::string {
+-  return detail::vformat(loc, fmt, args);
+-}
+-
+-template <typename Locale, typename... T,
+-          FMT_ENABLE_IF(detail::is_locale<Locale>::value)>
+-inline auto format(const Locale& loc, format_string<T...> fmt, T&&... args)
+-    -> std::string {
+-  return vformat(loc, string_view(fmt), fmt::make_format_args(args...));
+-}
+-
+-template <typename... T, size_t SIZE, typename Allocator>
+-FMT_DEPRECATED auto format_to(basic_memory_buffer<char, SIZE, Allocator>& buf,
+-                              format_string<T...> fmt, T&&... args)
+-    -> appender {
+-  detail::vformat_to(buf, string_view(fmt), fmt::make_format_args(args...));
+-  return appender(buf);
+-}
+-
+-template <typename OutputIt, typename Locale,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value&&
+-                            detail::is_locale<Locale>::value)>
+-auto vformat_to(OutputIt out, const Locale& loc, string_view fmt,
+-                format_args args) -> OutputIt {
+-  using detail::get_buffer;
+-  auto&& buf = get_buffer<char>(out);
+-  detail::vformat_to(buf, fmt, args, detail::locale_ref(loc));
+-  return detail::get_iterator(buf);
+-}
+-
+-template <typename OutputIt, typename Locale, typename... T,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value&&
+-                            detail::is_locale<Locale>::value)>
+-FMT_INLINE auto format_to(OutputIt out, const Locale& loc,
+-                          format_string<T...> fmt, T&&... args) -> OutputIt {
+-  return vformat_to(out, loc, fmt, fmt::make_format_args(args...));
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#ifdef FMT_DEPRECATED_INCLUDE_XCHAR
+-#  include "xchar.h"
+-#endif
+-
+-#ifdef FMT_HEADER_ONLY
+-#  define FMT_FUNC inline
+-#  include "format-inl.h"
+-#else
+-#  define FMT_FUNC
+-#endif
+-
+-#endif  // FMT_FORMAT_H_
+diff --git a/include/dpp/fmt/locale.h b/include/dpp/fmt/locale.h
+deleted file mode 100644
+index 7571b52..0000000
+--- a/include/dpp/fmt/locale.h
++++ /dev/null
+@@ -1,2 +0,0 @@
+-#include "xchar.h"
+-#warning fmt/locale.h is deprecated, include fmt/format.h or fmt/xchar.h instead
+diff --git a/include/dpp/fmt/os.h b/include/dpp/fmt/os.h
+deleted file mode 100644
+index b64f8bb..0000000
+--- a/include/dpp/fmt/os.h
++++ /dev/null
+@@ -1,527 +0,0 @@
+-// Formatting library for C++ - optional OS-specific functionality
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_OS_H_
+-#define FMT_OS_H_
+-
+-#include <cerrno>
+-#include <clocale>  // locale_t
+-#include <cstddef>
+-#include <cstdio>
+-#include <cstdlib>       // strtod_l
+-#include <system_error>  // std::system_error
+-
+-#if defined __APPLE__ || defined(__FreeBSD__)
+-#  include <xlocale.h>  // for LC_NUMERIC_MASK on OS X
+-#endif
+-
+-#include "format.h"
+-
+-#ifndef FMT_USE_FCNTL
+-// UWP doesn't provide _pipe.
+-#  if FMT_HAS_INCLUDE("winapifamily.h")
+-#    include <winapifamily.h>
+-#  endif
+-#  if (FMT_HAS_INCLUDE(<fcntl.h>) || defined(__APPLE__) || \
+-       defined(__linux__)) &&                              \
+-      (!defined(WINAPI_FAMILY) ||                          \
+-       (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP))
+-#    include <fcntl.h>  // for O_RDONLY
+-#    define FMT_USE_FCNTL 1
+-#  else
+-#    define FMT_USE_FCNTL 0
+-#  endif
+-#endif
+-
+-#ifndef FMT_POSIX
+-#  if defined(_WIN32) && !defined(__MINGW32__)
+-// Fix warnings about deprecated symbols.
+-#    define FMT_POSIX(call) _##call
+-#  else
+-#    define FMT_POSIX(call) call
+-#  endif
+-#endif
+-
+-// Calls to system functions are wrapped in FMT_SYSTEM for testability.
+-#ifdef FMT_SYSTEM
+-#  define FMT_POSIX_CALL(call) FMT_SYSTEM(call)
+-#else
+-#  define FMT_SYSTEM(call) ::call
+-#  ifdef _WIN32
+-// Fix warnings about deprecated symbols.
+-#    define FMT_POSIX_CALL(call) ::_##call
+-#  else
+-#    define FMT_POSIX_CALL(call) ::call
+-#  endif
+-#endif
+-
+-// Retries the expression while it evaluates to error_result and errno
+-// equals to EINTR.
+-#ifndef _WIN32
+-#  define FMT_RETRY_VAL(result, expression, error_result) \
+-    do {                                                  \
+-      (result) = (expression);                            \
+-    } while ((result) == (error_result) && errno == EINTR)
+-#else
+-#  define FMT_RETRY_VAL(result, expression, error_result) result = (expression)
+-#endif
+-
+-#define FMT_RETRY(result, expression) FMT_RETRY_VAL(result, expression, -1)
+-
+-FMT_BEGIN_NAMESPACE
+-FMT_MODULE_EXPORT_BEGIN
+-
+-/**
+-  \rst
+-  A reference to a null-terminated string. It can be constructed from a C
+-  string or ``std::string``.
+-
+-  You can use one of the following type aliases for common character types:
+-
+-  +---------------+-----------------------------+
+-  | Type          | Definition                  |
+-  +===============+=============================+
+-  | cstring_view  | basic_cstring_view<char>    |
+-  +---------------+-----------------------------+
+-  | wcstring_view | basic_cstring_view<wchar_t> |
+-  +---------------+-----------------------------+
+-
+-  This class is most useful as a parameter type to allow passing
+-  different types of strings to a function, for example::
+-
+-    template <typename... Args>
+-    std::string format(cstring_view format_str, const Args & ... args);
+-
+-    format("{}", 42);
+-    format(std::string("{}"), 42);
+-  \endrst
+- */
+-template <typename Char> class basic_cstring_view {
+- private:
+-  const Char* data_;
+-
+- public:
+-  /** Constructs a string reference object from a C string. */
+-  basic_cstring_view(const Char* s) : data_(s) {}
+-
+-  /**
+-    \rst
+-    Constructs a string reference from an ``std::string`` object.
+-    \endrst
+-   */
+-  basic_cstring_view(const std::basic_string<Char>& s) : data_(s.c_str()) {}
+-
+-  /** Returns the pointer to a C string. */
+-  const Char* c_str() const { return data_; }
+-};
+-
+-using cstring_view = basic_cstring_view<char>;
+-using wcstring_view = basic_cstring_view<wchar_t>;
+-
+-template <typename Char> struct formatter<std::error_code, Char> {
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <typename FormatContext>
+-  FMT_CONSTEXPR auto format(const std::error_code& ec, FormatContext& ctx) const
+-      -> decltype(ctx.out()) {
+-    auto out = ctx.out();
+-    out = detail::write_bytes(out, ec.category().name(),
+-                              basic_format_specs<Char>());
+-    out = detail::write<Char>(out, Char(':'));
+-    out = detail::write<Char>(out, ec.value());
+-    return out;
+-  }
+-};
+-
+-#ifdef _WIN32
+-FMT_API const std::error_category& system_category() FMT_NOEXCEPT;
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-// A converter from UTF-16 to UTF-8.
+-// It is only provided for Windows since other systems support UTF-8 natively.
+-class utf16_to_utf8 {
+- private:
+-  memory_buffer buffer_;
+-
+- public:
+-  utf16_to_utf8() {}
+-  FMT_API explicit utf16_to_utf8(basic_string_view<wchar_t> s);
+-  operator string_view() const { return string_view(&buffer_[0], size()); }
+-  size_t size() const { return buffer_.size() - 1; }
+-  const char* c_str() const { return &buffer_[0]; }
+-  std::string str() const { return std::string(&buffer_[0], size()); }
+-
+-  // Performs conversion returning a system error code instead of
+-  // throwing exception on conversion error. This method may still throw
+-  // in case of memory allocation error.
+-  FMT_API int convert(basic_string_view<wchar_t> s);
+-};
+-
+-FMT_API void format_windows_error(buffer<char>& out, int error_code,
+-                                  const char* message) FMT_NOEXCEPT;
+-FMT_END_DETAIL_NAMESPACE
+-
+-FMT_API std::system_error vwindows_error(int error_code, string_view format_str,
+-                                         format_args args);
+-
+-/**
+- \rst
+- Constructs a :class:`std::system_error` object with the description
+- of the form
+-
+- .. parsed-literal::
+-   *<message>*: *<system-message>*
+-
+- where *<message>* is the formatted message and *<system-message>* is the
+- system message corresponding to the error code.
+- *error_code* is a Windows error code as given by ``GetLastError``.
+- If *error_code* is not a valid error code such as -1, the system message
+- will look like "error -1".
+-
+- **Example**::
+-
+-   // This throws a system_error with the description
+-   //   cannot open file 'madeup': The system cannot find the file specified.
+-   // or similar (system message may vary).
+-   const char *filename = "madeup";
+-   LPOFSTRUCT of = LPOFSTRUCT();
+-   HFILE file = OpenFile(filename, &of, OF_READ);
+-   if (file == HFILE_ERROR) {
+-     throw fmt::windows_error(GetLastError(),
+-                              "cannot open file '{}'", filename);
+-   }
+- \endrst
+-*/
+-template <typename... Args>
+-std::system_error windows_error(int error_code, string_view message,
+-                                const Args&... args) {
+-  return vwindows_error(error_code, message, fmt::make_format_args(args...));
+-}
+-
+-// Reports a Windows error without throwing an exception.
+-// Can be used to report errors from destructors.
+-FMT_API void report_windows_error(int error_code,
+-                                  const char* message) FMT_NOEXCEPT;
+-#else
+-inline const std::error_category& system_category() FMT_NOEXCEPT {
+-  return std::system_category();
+-}
+-#endif  // _WIN32
+-
+-// std::system is not available on some platforms such as iOS (#2248).
+-#ifdef __OSX__
+-template <typename S, typename... Args, typename Char = char_t<S>>
+-void say(const S& format_str, Args&&... args) {
+-  std::system(format("say \"{}\"", format(format_str, args...)).c_str());
+-}
+-#endif
+-
+-// A buffered file.
+-class buffered_file {
+- private:
+-  FILE* file_;
+-
+-  friend class file;
+-
+-  explicit buffered_file(FILE* f) : file_(f) {}
+-
+- public:
+-  buffered_file(const buffered_file&) = delete;
+-  void operator=(const buffered_file&) = delete;
+-
+-  // Constructs a buffered_file object which doesn't represent any file.
+-  buffered_file() FMT_NOEXCEPT : file_(nullptr) {}
+-
+-  // Destroys the object closing the file it represents if any.
+-  FMT_API ~buffered_file() FMT_NOEXCEPT;
+-
+- public:
+-  buffered_file(buffered_file&& other) FMT_NOEXCEPT : file_(other.file_) {
+-    other.file_ = nullptr;
+-  }
+-
+-  buffered_file& operator=(buffered_file&& other) {
+-    close();
+-    file_ = other.file_;
+-    other.file_ = nullptr;
+-    return *this;
+-  }
+-
+-  // Opens a file.
+-  FMT_API buffered_file(cstring_view filename, cstring_view mode);
+-
+-  // Closes the file.
+-  FMT_API void close();
+-
+-  // Returns the pointer to a FILE object representing this file.
+-  FILE* get() const FMT_NOEXCEPT { return file_; }
+-
+-  // We place parentheses around fileno to workaround a bug in some versions
+-  // of MinGW that define fileno as a macro.
+-  FMT_API int(fileno)() const;
+-
+-  void vprint(string_view format_str, format_args args) {
+-    fmt::vprint(file_, format_str, args);
+-  }
+-
+-  template <typename... Args>
+-  inline void print(string_view format_str, const Args&... args) {
+-    vprint(format_str, fmt::make_format_args(args...));
+-  }
+-};
+-
+-#if FMT_USE_FCNTL
+-// A file. Closed file is represented by a file object with descriptor -1.
+-// Methods that are not declared with FMT_NOEXCEPT may throw
+-// fmt::system_error in case of failure. Note that some errors such as
+-// closing the file multiple times will cause a crash on Windows rather
+-// than an exception. You can get standard behavior by overriding the
+-// invalid parameter handler with _set_invalid_parameter_handler.
+-class file {
+- private:
+-  int fd_;  // File descriptor.
+-
+-  // Constructs a file object with a given descriptor.
+-  explicit file(int fd) : fd_(fd) {}
+-
+- public:
+-  // Possible values for the oflag argument to the constructor.
+-  enum {
+-    RDONLY = FMT_POSIX(O_RDONLY),  // Open for reading only.
+-    WRONLY = FMT_POSIX(O_WRONLY),  // Open for writing only.
+-    RDWR = FMT_POSIX(O_RDWR),      // Open for reading and writing.
+-    CREATE = FMT_POSIX(O_CREAT),   // Create if the file doesn't exist.
+-    APPEND = FMT_POSIX(O_APPEND),  // Open in append mode.
+-    TRUNC = FMT_POSIX(O_TRUNC)     // Truncate the content of the file.
+-  };
+-
+-  // Constructs a file object which doesn't represent any file.
+-  file() FMT_NOEXCEPT : fd_(-1) {}
+-
+-  // Opens a file and constructs a file object representing this file.
+-  FMT_API file(cstring_view path, int oflag);
+-
+- public:
+-  file(const file&) = delete;
+-  void operator=(const file&) = delete;
+-
+-  file(file&& other) FMT_NOEXCEPT : fd_(other.fd_) { other.fd_ = -1; }
+-
+-  // Move assignment is not noexcept because close may throw.
+-  file& operator=(file&& other) {
+-    close();
+-    fd_ = other.fd_;
+-    other.fd_ = -1;
+-    return *this;
+-  }
+-
+-  // Destroys the object closing the file it represents if any.
+-  FMT_API ~file() FMT_NOEXCEPT;
+-
+-  // Returns the file descriptor.
+-  int descriptor() const FMT_NOEXCEPT { return fd_; }
+-
+-  // Closes the file.
+-  FMT_API void close();
+-
+-  // Returns the file size. The size has signed type for consistency with
+-  // stat::st_size.
+-  FMT_API long long size() const;
+-
+-  // Attempts to read count bytes from the file into the specified buffer.
+-  FMT_API size_t read(void* buffer, size_t count);
+-
+-  // Attempts to write count bytes from the specified buffer to the file.
+-  FMT_API size_t write(const void* buffer, size_t count);
+-
+-  // Duplicates a file descriptor with the dup function and returns
+-  // the duplicate as a file object.
+-  FMT_API static file dup(int fd);
+-
+-  // Makes fd be the copy of this file descriptor, closing fd first if
+-  // necessary.
+-  FMT_API void dup2(int fd);
+-
+-  // Makes fd be the copy of this file descriptor, closing fd first if
+-  // necessary.
+-  FMT_API void dup2(int fd, std::error_code& ec) FMT_NOEXCEPT;
+-
+-  // Creates a pipe setting up read_end and write_end file objects for reading
+-  // and writing respectively.
+-  FMT_API static void pipe(file& read_end, file& write_end);
+-
+-  // Creates a buffered_file object associated with this file and detaches
+-  // this file object from the file.
+-  FMT_API buffered_file fdopen(const char* mode);
+-};
+-
+-// Returns the memory page size.
+-long getpagesize();
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-struct buffer_size {
+-  buffer_size() = default;
+-  size_t value = 0;
+-  buffer_size operator=(size_t val) const {
+-    auto bs = buffer_size();
+-    bs.value = val;
+-    return bs;
+-  }
+-};
+-
+-struct ostream_params {
+-  int oflag = file::WRONLY | file::CREATE | file::TRUNC;
+-  size_t buffer_size = BUFSIZ > 32768 ? BUFSIZ : 32768;
+-
+-  ostream_params() {}
+-
+-  template <typename... T>
+-  ostream_params(T... params, int new_oflag) : ostream_params(params...) {
+-    oflag = new_oflag;
+-  }
+-
+-  template <typename... T>
+-  ostream_params(T... params, detail::buffer_size bs)
+-      : ostream_params(params...) {
+-    this->buffer_size = bs.value;
+-  }
+-
+-// Intel has a bug that results in failure to deduce a constructor
+-// for empty parameter packs.
+-#  if defined(__INTEL_COMPILER) && __INTEL_COMPILER < 2000
+-  ostream_params(int new_oflag) : oflag(new_oflag) {}
+-  ostream_params(detail::buffer_size bs) : buffer_size(bs.value) {}
+-#  endif
+-};
+-
+-FMT_END_DETAIL_NAMESPACE
+-
+-// Added {} below to work around default constructor error known to
+-// occur in Xcode versions 7.2.1 and 8.2.1.
+-constexpr detail::buffer_size buffer_size{};
+-
+-/** A fast output stream which is not thread-safe. */
+-class FMT_API ostream final : private detail::buffer<char> {
+- private:
+-  file file_;
+-
+-  void grow(size_t) override;
+-
+-  ostream(cstring_view path, const detail::ostream_params& params)
+-      : file_(path, params.oflag) {
+-    set(new char[params.buffer_size], params.buffer_size);
+-  }
+-
+- public:
+-  ostream(ostream&& other)
+-      : detail::buffer<char>(other.data(), other.size(), other.capacity()),
+-        file_(std::move(other.file_)) {
+-    other.clear();
+-    other.set(nullptr, 0);
+-  }
+-  ~ostream() {
+-    flush();
+-    delete[] data();
+-  }
+-
+-  void flush() {
+-    if (size() == 0) return;
+-    file_.write(data(), size());
+-    clear();
+-  }
+-
+-  template <typename... T>
+-  friend ostream output_file(cstring_view path, T... params);
+-
+-  void close() {
+-    flush();
+-    file_.close();
+-  }
+-
+-  /**
+-    Formats ``args`` according to specifications in ``fmt`` and writes the
+-    output to the file.
+-   */
+-  template <typename... T> void print(format_string<T...> fmt, T&&... args) {
+-    vformat_to(detail::buffer_appender<char>(*this), fmt,
+-               fmt::make_format_args(args...));
+-  }
+-};
+-
+-/**
+-  \rst
+-  Opens a file for writing. Supported parameters passed in *params*:
+-
+-  * ``<integer>``: Flags passed to `open
+-    <https://pubs.opengroup.org/onlinepubs/007904875/functions/open.html>`_
+-    (``file::WRONLY | file::CREATE`` by default)
+-  * ``buffer_size=<integer>``: Output buffer size
+-
+-  **Example**::
+-
+-    auto out = fmt::output_file("guide.txt");
+-    out.print("Don't {}", "Panic");
+-  \endrst
+- */
+-template <typename... T>
+-inline ostream output_file(cstring_view path, T... params) {
+-  return {path, detail::ostream_params(params...)};
+-}
+-#endif  // FMT_USE_FCNTL
+-
+-#ifdef FMT_LOCALE
+-// A "C" numeric locale.
+-class locale {
+- private:
+-#  ifdef _WIN32
+-  using locale_t = _locale_t;
+-
+-  static void freelocale(locale_t loc) { _free_locale(loc); }
+-
+-  static double strtod_l(const char* nptr, char** endptr, _locale_t loc) {
+-    return _strtod_l(nptr, endptr, loc);
+-  }
+-#  endif
+-
+-  locale_t locale_;
+-
+- public:
+-  using type = locale_t;
+-  locale(const locale&) = delete;
+-  void operator=(const locale&) = delete;
+-
+-  locale() {
+-#  ifndef _WIN32
+-    locale_ = FMT_SYSTEM(newlocale(LC_NUMERIC_MASK, "C", nullptr));
+-#  else
+-    locale_ = _create_locale(LC_NUMERIC, "C");
+-#  endif
+-    if (!locale_) FMT_THROW(system_error(errno, "cannot create locale"));
+-  }
+-  ~locale() { freelocale(locale_); }
+-
+-  type get() const { return locale_; }
+-
+-  // Converts string to floating-point number and advances str past the end
+-  // of the parsed input.
+-  FMT_DEPRECATED double strtod(const char*& str) const {
+-    char* end = nullptr;
+-    double result = strtod_l(str, &end, locale_);
+-    str = end;
+-    return result;
+-  }
+-};
+-using Locale FMT_DEPRECATED_ALIAS = locale;
+-#endif  // FMT_LOCALE
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_OS_H_
+diff --git a/include/dpp/fmt/ostream.h b/include/dpp/fmt/ostream.h
+deleted file mode 100644
+index 3d716ec..0000000
+--- a/include/dpp/fmt/ostream.h
++++ /dev/null
+@@ -1,135 +0,0 @@
+-// Formatting library for C++ - std::ostream support
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_OSTREAM_H_
+-#define FMT_OSTREAM_H_
+-
+-#include <ostream>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-
+-template <typename OutputIt, typename Char> class basic_printf_context;
+-
+-namespace detail {
+-
+-// Checks if T has a user-defined operator<<.
+-template <typename T, typename Char, typename Enable = void>
+-class is_streamable {
+- private:
+-  template <typename U>
+-  static auto test(int)
+-      -> bool_constant<sizeof(std::declval<std::basic_ostream<Char>&>()
+-                              << std::declval<U>()) != 0>;
+-
+-  template <typename> static auto test(...) -> std::false_type;
+-
+-  using result = decltype(test<T>(0));
+-
+- public:
+-  is_streamable() = default;
+-
+-  static const bool value = result::value;
+-};
+-
+-// Formatting of built-in types and arrays is intentionally disabled because
+-// it's handled by standard (non-ostream) formatters.
+-template <typename T, typename Char>
+-struct is_streamable<
+-    T, Char,
+-    enable_if_t<
+-        std::is_arithmetic<T>::value || std::is_array<T>::value ||
+-        std::is_pointer<T>::value || std::is_same<T, char8_type>::value ||
+-        std::is_same<T, std::basic_string<Char>>::value ||
+-        std::is_same<T, std_string_view<Char>>::value ||
+-        (std::is_convertible<T, int>::value && !std::is_enum<T>::value)>>
+-    : std::false_type {};
+-
+-// Write the content of buf to os.
+-// It is a separate function rather than a part of vprint to simplify testing.
+-template <typename Char>
+-void write_buffer(std::basic_ostream<Char>& os, buffer<Char>& buf) {
+-  const Char* buf_data = buf.data();
+-  using unsigned_streamsize = std::make_unsigned<std::streamsize>::type;
+-  unsigned_streamsize size = buf.size();
+-  unsigned_streamsize max_size = to_unsigned(max_value<std::streamsize>());
+-  do {
+-    unsigned_streamsize n = size <= max_size ? size : max_size;
+-    os.write(buf_data, static_cast<std::streamsize>(n));
+-    buf_data += n;
+-    size -= n;
+-  } while (size != 0);
+-}
+-
+-template <typename Char, typename T>
+-void format_value(buffer<Char>& buf, const T& value,
+-                  locale_ref loc = locale_ref()) {
+-  auto&& format_buf = formatbuf<std::basic_streambuf<Char>>(buf);
+-  auto&& output = std::basic_ostream<Char>(&format_buf);
+-#if !defined(FMT_STATIC_THOUSANDS_SEPARATOR)
+-  if (loc) output.imbue(loc.get<std::locale>());
+-#endif
+-  output << value;
+-  output.exceptions(std::ios_base::failbit | std::ios_base::badbit);
+-  buf.try_resize(buf.size());
+-}
+-
+-// Formats an object of type T that has an overloaded ostream operator<<.
+-template <typename T, typename Char>
+-struct fallback_formatter<T, Char, enable_if_t<is_streamable<T, Char>::value>>
+-    : private formatter<basic_string_view<Char>, Char> {
+-  using formatter<basic_string_view<Char>, Char>::parse;
+-
+-  template <typename OutputIt>
+-  auto format(const T& value, basic_format_context<OutputIt, Char>& ctx)
+-      -> OutputIt {
+-    auto buffer = basic_memory_buffer<Char>();
+-    format_value(buffer, value, ctx.locale());
+-    return formatter<basic_string_view<Char>, Char>::format(
+-        {buffer.data(), buffer.size()}, ctx);
+-  }
+-
+-  // DEPRECATED!
+-  template <typename OutputIt>
+-  auto format(const T& value, basic_printf_context<OutputIt, Char>& ctx)
+-      -> OutputIt {
+-    auto buffer = basic_memory_buffer<Char>();
+-    format_value(buffer, value, ctx.locale());
+-    return std::copy(buffer.begin(), buffer.end(), ctx.out());
+-  }
+-};
+-}  // namespace detail
+-
+-FMT_MODULE_EXPORT
+-template <typename Char>
+-void vprint(std::basic_ostream<Char>& os, basic_string_view<Char> format_str,
+-            basic_format_args<buffer_context<type_identity_t<Char>>> args) {
+-  auto buffer = basic_memory_buffer<Char>();
+-  detail::vformat_to(buffer, format_str, args);
+-  detail::write_buffer(os, buffer);
+-}
+-
+-/**
+-  \rst
+-  Prints formatted data to the stream *os*.
+-
+-  **Example**::
+-
+-    fmt::print(cerr, "Don't {}!", "panic");
+-  \endrst
+- */
+-FMT_MODULE_EXPORT
+-template <typename S, typename... Args,
+-          typename Char = enable_if_t<detail::is_string<S>::value, char_t<S>>>
+-void print(std::basic_ostream<Char>& os, const S& format_str, Args&&... args) {
+-  vprint(os, to_string_view(format_str),
+-         fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_OSTREAM_H_
+diff --git a/include/dpp/fmt/printf.h b/include/dpp/fmt/printf.h
+deleted file mode 100644
+index 19d550f..0000000
+--- a/include/dpp/fmt/printf.h
++++ /dev/null
+@@ -1,657 +0,0 @@
+-// Formatting library for C++ - legacy printf implementation
+-//
+-// Copyright (c) 2012 - 2016, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_PRINTF_H_
+-#define FMT_PRINTF_H_
+-
+-#include <algorithm>  // std::max
+-#include <limits>     // std::numeric_limits
+-#include <ostream>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-FMT_MODULE_EXPORT_BEGIN
+-
+-template <typename T> struct printf_formatter { printf_formatter() = delete; };
+-
+-template <typename Char>
+-class basic_printf_parse_context : public basic_format_parse_context<Char> {
+-  using basic_format_parse_context<Char>::basic_format_parse_context;
+-};
+-
+-template <typename OutputIt, typename Char> class basic_printf_context {
+- private:
+-  OutputIt out_;
+-  basic_format_args<basic_printf_context> args_;
+-
+- public:
+-  using char_type = Char;
+-  using format_arg = basic_format_arg<basic_printf_context>;
+-  using parse_context_type = basic_printf_parse_context<Char>;
+-  template <typename T> using formatter_type = printf_formatter<T>;
+-
+-  /**
+-    \rst
+-    Constructs a ``printf_context`` object. References to the arguments are
+-    stored in the context object so make sure they have appropriate lifetimes.
+-    \endrst
+-   */
+-  basic_printf_context(OutputIt out,
+-                       basic_format_args<basic_printf_context> args)
+-      : out_(out), args_(args) {}
+-
+-  OutputIt out() { return out_; }
+-  void advance_to(OutputIt it) { out_ = it; }
+-
+-  detail::locale_ref locale() { return {}; }
+-
+-  format_arg arg(int id) const { return args_.get(id); }
+-
+-  FMT_CONSTEXPR void on_error(const char* message) {
+-    detail::error_handler().on_error(message);
+-  }
+-};
+-
+-FMT_BEGIN_DETAIL_NAMESPACE
+-
+-// Checks if a value fits in int - used to avoid warnings about comparing
+-// signed and unsigned integers.
+-template <bool IsSigned> struct int_checker {
+-  template <typename T> static bool fits_in_int(T value) {
+-    unsigned max = max_value<int>();
+-    return value <= max;
+-  }
+-  static bool fits_in_int(bool) { return true; }
+-};
+-
+-template <> struct int_checker<true> {
+-  template <typename T> static bool fits_in_int(T value) {
+-    return value >= (std::numeric_limits<int>::min)() &&
+-           value <= max_value<int>();
+-  }
+-  static bool fits_in_int(int) { return true; }
+-};
+-
+-class printf_precision_handler {
+- public:
+-  template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-  int operator()(T value) {
+-    if (!int_checker<std::numeric_limits<T>::is_signed>::fits_in_int(value))
+-      FMT_THROW(format_error("number is too big"));
+-    return (std::max)(static_cast<int>(value), 0);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-  int operator()(T) {
+-    FMT_THROW(format_error("precision is not integer"));
+-    return 0;
+-  }
+-};
+-
+-// An argument visitor that returns true iff arg is a zero integer.
+-class is_zero_int {
+- public:
+-  template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-  bool operator()(T value) {
+-    return value == 0;
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-  bool operator()(T) {
+-    return false;
+-  }
+-};
+-
+-template <typename T> struct make_unsigned_or_bool : std::make_unsigned<T> {};
+-
+-template <> struct make_unsigned_or_bool<bool> { using type = bool; };
+-
+-template <typename T, typename Context> class arg_converter {
+- private:
+-  using char_type = typename Context::char_type;
+-
+-  basic_format_arg<Context>& arg_;
+-  char_type type_;
+-
+- public:
+-  arg_converter(basic_format_arg<Context>& arg, char_type type)
+-      : arg_(arg), type_(type) {}
+-
+-  void operator()(bool value) {
+-    if (type_ != 's') operator()<bool>(value);
+-  }
+-
+-  template <typename U, FMT_ENABLE_IF(std::is_integral<U>::value)>
+-  void operator()(U value) {
+-    bool is_signed = type_ == 'd' || type_ == 'i';
+-    using target_type = conditional_t<std::is_same<T, void>::value, U, T>;
+-    if (const_check(sizeof(target_type) <= sizeof(int))) {
+-      // Extra casts are used to silence warnings.
+-      if (is_signed) {
+-        arg_ = detail::make_arg<Context>(
+-            static_cast<int>(static_cast<target_type>(value)));
+-      } else {
+-        using unsigned_type = typename make_unsigned_or_bool<target_type>::type;
+-        arg_ = detail::make_arg<Context>(
+-            static_cast<unsigned>(static_cast<unsigned_type>(value)));
+-      }
+-    } else {
+-      if (is_signed) {
+-        // glibc's printf doesn't sign extend arguments of smaller types:
+-        //   std::printf("%lld", -42);  // prints "4294967254"
+-        // but we don't have to do the same because it's a UB.
+-        arg_ = detail::make_arg<Context>(static_cast<long long>(value));
+-      } else {
+-        arg_ = detail::make_arg<Context>(
+-            static_cast<typename make_unsigned_or_bool<U>::type>(value));
+-      }
+-    }
+-  }
+-
+-  template <typename U, FMT_ENABLE_IF(!std::is_integral<U>::value)>
+-  void operator()(U) {}  // No conversion needed for non-integral types.
+-};
+-
+-// Converts an integer argument to T for printf, if T is an integral type.
+-// If T is void, the argument is converted to corresponding signed or unsigned
+-// type depending on the type specifier: 'd' and 'i' - signed, other -
+-// unsigned).
+-template <typename T, typename Context, typename Char>
+-void convert_arg(basic_format_arg<Context>& arg, Char type) {
+-  visit_format_arg(arg_converter<T, Context>(arg, type), arg);
+-}
+-
+-// Converts an integer argument to char for printf.
+-template <typename Context> class char_converter {
+- private:
+-  basic_format_arg<Context>& arg_;
+-
+- public:
+-  explicit char_converter(basic_format_arg<Context>& arg) : arg_(arg) {}
+-
+-  template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-  void operator()(T value) {
+-    arg_ = detail::make_arg<Context>(
+-        static_cast<typename Context::char_type>(value));
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-  void operator()(T) {}  // No conversion needed for non-integral types.
+-};
+-
+-// An argument visitor that return a pointer to a C string if argument is a
+-// string or null otherwise.
+-template <typename Char> struct get_cstring {
+-  template <typename T> const Char* operator()(T) { return nullptr; }
+-  const Char* operator()(const Char* s) { return s; }
+-};
+-
+-// Checks if an argument is a valid printf width specifier and sets
+-// left alignment if it is negative.
+-template <typename Char> class printf_width_handler {
+- private:
+-  using format_specs = basic_format_specs<Char>;
+-
+-  format_specs& specs_;
+-
+- public:
+-  explicit printf_width_handler(format_specs& specs) : specs_(specs) {}
+-
+-  template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
+-  unsigned operator()(T value) {
+-    auto width = static_cast<uint32_or_64_or_128_t<T>>(value);
+-    if (detail::is_negative(value)) {
+-      specs_.align = align::left;
+-      width = 0 - width;
+-    }
+-    unsigned int_max = max_value<int>();
+-    if (width > int_max) FMT_THROW(format_error("number is too big"));
+-    return static_cast<unsigned>(width);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
+-  unsigned operator()(T) {
+-    FMT_THROW(format_error("width is not integer"));
+-    return 0;
+-  }
+-};
+-
+-// The ``printf`` argument formatter.
+-template <typename OutputIt, typename Char>
+-class printf_arg_formatter : public arg_formatter<Char> {
+- private:
+-  using base = arg_formatter<Char>;
+-  using context_type = basic_printf_context<OutputIt, Char>;
+-  using format_specs = basic_format_specs<Char>;
+-
+-  context_type& context_;
+-
+-  OutputIt write_null_pointer(bool is_string = false) {
+-    auto s = this->specs;
+-    s.type = presentation_type::none;
+-    return write_bytes(this->out, is_string ? "(null)" : "(nil)", s);
+-  }
+-
+- public:
+-  printf_arg_formatter(OutputIt iter, format_specs& s, context_type& ctx)
+-      : base{iter, s, locale_ref()}, context_(ctx) {}
+-
+-  OutputIt operator()(monostate value) { return base::operator()(value); }
+-
+-  template <typename T, FMT_ENABLE_IF(detail::is_integral<T>::value)>
+-  OutputIt operator()(T value) {
+-    // MSVC2013 fails to compile separate overloads for bool and Char so use
+-    // std::is_same instead.
+-    if (std::is_same<T, Char>::value) {
+-      format_specs fmt_specs = this->specs;
+-      if (fmt_specs.type != presentation_type::none &&
+-          fmt_specs.type != presentation_type::chr) {
+-        return (*this)(static_cast<int>(value));
+-      }
+-      fmt_specs.sign = sign::none;
+-      fmt_specs.alt = false;
+-      fmt_specs.fill[0] = ' ';  // Ignore '0' flag for char types.
+-      // align::numeric needs to be overwritten here since the '0' flag is
+-      // ignored for non-numeric types
+-      if (fmt_specs.align == align::none || fmt_specs.align == align::numeric)
+-        fmt_specs.align = align::right;
+-      return write<Char>(this->out, static_cast<Char>(value), fmt_specs);
+-    }
+-    return base::operator()(value);
+-  }
+-
+-  template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
+-  OutputIt operator()(T value) {
+-    return base::operator()(value);
+-  }
+-
+-  /** Formats a null-terminated C string. */
+-  OutputIt operator()(const char* value) {
+-    if (value) return base::operator()(value);
+-    return write_null_pointer(this->specs.type != presentation_type::pointer);
+-  }
+-
+-  /** Formats a null-terminated wide C string. */
+-  OutputIt operator()(const wchar_t* value) {
+-    if (value) return base::operator()(value);
+-    return write_null_pointer(this->specs.type != presentation_type::pointer);
+-  }
+-
+-  OutputIt operator()(basic_string_view<Char> value) {
+-    return base::operator()(value);
+-  }
+-
+-  /** Formats a pointer. */
+-  OutputIt operator()(const void* value) {
+-    return value ? base::operator()(value) : write_null_pointer();
+-  }
+-
+-  /** Formats an argument of a custom (user-defined) type. */
+-  OutputIt operator()(typename basic_format_arg<context_type>::handle handle) {
+-    auto parse_ctx =
+-        basic_printf_parse_context<Char>(basic_string_view<Char>());
+-    handle.format(parse_ctx, context_);
+-    return this->out;
+-  }
+-};
+-
+-template <typename Char>
+-void parse_flags(basic_format_specs<Char>& specs, const Char*& it,
+-                 const Char* end) {
+-  for (; it != end; ++it) {
+-    switch (*it) {
+-    case '-':
+-      specs.align = align::left;
+-      break;
+-    case '+':
+-      specs.sign = sign::plus;
+-      break;
+-    case '0':
+-      specs.fill[0] = '0';
+-      break;
+-    case ' ':
+-      if (specs.sign != sign::plus) {
+-        specs.sign = sign::space;
+-      }
+-      break;
+-    case '#':
+-      specs.alt = true;
+-      break;
+-    default:
+-      return;
+-    }
+-  }
+-}
+-
+-template <typename Char, typename GetArg>
+-int parse_header(const Char*& it, const Char* end,
+-                 basic_format_specs<Char>& specs, GetArg get_arg) {
+-  int arg_index = -1;
+-  Char c = *it;
+-  if (c >= '0' && c <= '9') {
+-    // Parse an argument index (if followed by '$') or a width possibly
+-    // preceded with '0' flag(s).
+-    int value = parse_nonnegative_int(it, end, -1);
+-    if (it != end && *it == '$') {  // value is an argument index
+-      ++it;
+-      arg_index = value != -1 ? value : max_value<int>();
+-    } else {
+-      if (c == '0') specs.fill[0] = '0';
+-      if (value != 0) {
+-        // Nonzero value means that we parsed width and don't need to
+-        // parse it or flags again, so return now.
+-        if (value == -1) FMT_THROW(format_error("number is too big"));
+-        specs.width = value;
+-        return arg_index;
+-      }
+-    }
+-  }
+-  parse_flags(specs, it, end);
+-  // Parse width.
+-  if (it != end) {
+-    if (*it >= '0' && *it <= '9') {
+-      specs.width = parse_nonnegative_int(it, end, -1);
+-      if (specs.width == -1) FMT_THROW(format_error("number is too big"));
+-    } else if (*it == '*') {
+-      ++it;
+-      specs.width = static_cast<int>(visit_format_arg(
+-          detail::printf_width_handler<Char>(specs), get_arg(-1)));
+-    }
+-  }
+-  return arg_index;
+-}
+-
+-template <typename Char, typename Context>
+-void vprintf(buffer<Char>& buf, basic_string_view<Char> format,
+-             basic_format_args<Context> args) {
+-  using OutputIt = buffer_appender<Char>;
+-  auto out = OutputIt(buf);
+-  auto context = basic_printf_context<OutputIt, Char>(out, args);
+-  auto parse_ctx = basic_printf_parse_context<Char>(format);
+-
+-  // Returns the argument with specified index or, if arg_index is -1, the next
+-  // argument.
+-  auto get_arg = [&](int arg_index) {
+-    if (arg_index < 0)
+-      arg_index = parse_ctx.next_arg_id();
+-    else
+-      parse_ctx.check_arg_id(--arg_index);
+-    return detail::get_arg(context, arg_index);
+-  };
+-
+-  const Char* start = parse_ctx.begin();
+-  const Char* end = parse_ctx.end();
+-  auto it = start;
+-  while (it != end) {
+-    if (!detail::find<false, Char>(it, end, '%', it)) {
+-      it = end;  // detail::find leaves it == nullptr if it doesn't find '%'
+-      break;
+-    }
+-    Char c = *it++;
+-    if (it != end && *it == c) {
+-      out = detail::write(
+-          out, basic_string_view<Char>(start, detail::to_unsigned(it - start)));
+-      start = ++it;
+-      continue;
+-    }
+-    out = detail::write(out, basic_string_view<Char>(
+-                                 start, detail::to_unsigned(it - 1 - start)));
+-
+-    basic_format_specs<Char> specs;
+-    specs.align = align::right;
+-
+-    // Parse argument index, flags and width.
+-    int arg_index = parse_header(it, end, specs, get_arg);
+-    if (arg_index == 0) parse_ctx.on_error("argument not found");
+-
+-    // Parse precision.
+-    if (it != end && *it == '.') {
+-      ++it;
+-      c = it != end ? *it : 0;
+-      if ('0' <= c && c <= '9') {
+-        specs.precision = parse_nonnegative_int(it, end, 0);
+-      } else if (c == '*') {
+-        ++it;
+-        specs.precision = static_cast<int>(
+-            visit_format_arg(detail::printf_precision_handler(), get_arg(-1)));
+-      } else {
+-        specs.precision = 0;
+-      }
+-    }
+-
+-    auto arg = get_arg(arg_index);
+-    // For d, i, o, u, x, and X conversion specifiers, if a precision is
+-    // specified, the '0' flag is ignored
+-    if (specs.precision >= 0 && arg.is_integral())
+-      specs.fill[0] =
+-          ' ';  // Ignore '0' flag for non-numeric types or if '-' present.
+-    if (specs.precision >= 0 && arg.type() == detail::type::cstring_type) {
+-      auto str = visit_format_arg(detail::get_cstring<Char>(), arg);
+-      auto str_end = str + specs.precision;
+-      auto nul = std::find(str, str_end, Char());
+-      arg = detail::make_arg<basic_printf_context<OutputIt, Char>>(
+-          basic_string_view<Char>(
+-              str, detail::to_unsigned(nul != str_end ? nul - str
+-                                                      : specs.precision)));
+-    }
+-    if (specs.alt && visit_format_arg(detail::is_zero_int(), arg))
+-      specs.alt = false;
+-    if (specs.fill[0] == '0') {
+-      if (arg.is_arithmetic() && specs.align != align::left)
+-        specs.align = align::numeric;
+-      else
+-        specs.fill[0] = ' ';  // Ignore '0' flag for non-numeric types or if '-'
+-                              // flag is also present.
+-    }
+-
+-    // Parse length and convert the argument to the required type.
+-    c = it != end ? *it++ : 0;
+-    Char t = it != end ? *it : 0;
+-    using detail::convert_arg;
+-    switch (c) {
+-    case 'h':
+-      if (t == 'h') {
+-        ++it;
+-        t = it != end ? *it : 0;
+-        convert_arg<signed char>(arg, t);
+-      } else {
+-        convert_arg<short>(arg, t);
+-      }
+-      break;
+-    case 'l':
+-      if (t == 'l') {
+-        ++it;
+-        t = it != end ? *it : 0;
+-        convert_arg<long long>(arg, t);
+-      } else {
+-        convert_arg<long>(arg, t);
+-      }
+-      break;
+-    case 'j':
+-      convert_arg<intmax_t>(arg, t);
+-      break;
+-    case 'z':
+-      convert_arg<size_t>(arg, t);
+-      break;
+-    case 't':
+-      convert_arg<std::ptrdiff_t>(arg, t);
+-      break;
+-    case 'L':
+-      // printf produces garbage when 'L' is omitted for long double, no
+-      // need to do the same.
+-      break;
+-    default:
+-      --it;
+-      convert_arg<void>(arg, c);
+-    }
+-
+-    // Parse type.
+-    if (it == end) FMT_THROW(format_error("invalid format string"));
+-    char type = static_cast<char>(*it++);
+-    if (arg.is_integral()) {
+-      // Normalize type.
+-      switch (type) {
+-      case 'i':
+-      case 'u':
+-        type = 'd';
+-        break;
+-      case 'c':
+-        visit_format_arg(
+-            detail::char_converter<basic_printf_context<OutputIt, Char>>(arg),
+-            arg);
+-        break;
+-      }
+-    }
+-    specs.type = parse_presentation_type(type);
+-    if (specs.type == presentation_type::none)
+-      parse_ctx.on_error("invalid type specifier");
+-
+-    start = it;
+-
+-    // Format argument.
+-    out = visit_format_arg(
+-        detail::printf_arg_formatter<OutputIt, Char>(out, specs, context), arg);
+-  }
+-  detail::write(out, basic_string_view<Char>(start, to_unsigned(it - start)));
+-}
+-FMT_END_DETAIL_NAMESPACE
+-
+-template <typename Char>
+-using basic_printf_context_t =
+-    basic_printf_context<detail::buffer_appender<Char>, Char>;
+-
+-using printf_context = basic_printf_context_t<char>;
+-using wprintf_context = basic_printf_context_t<wchar_t>;
+-
+-using printf_args = basic_format_args<printf_context>;
+-using wprintf_args = basic_format_args<wprintf_context>;
+-
+-/**
+-  \rst
+-  Constructs an `~fmt::format_arg_store` object that contains references to
+-  arguments and can be implicitly converted to `~fmt::printf_args`.
+-  \endrst
+- */
+-template <typename... T>
+-inline auto make_printf_args(const T&... args)
+-    -> format_arg_store<printf_context, T...> {
+-  return {args...};
+-}
+-
+-/**
+-  \rst
+-  Constructs an `~fmt::format_arg_store` object that contains references to
+-  arguments and can be implicitly converted to `~fmt::wprintf_args`.
+-  \endrst
+- */
+-template <typename... T>
+-inline auto make_wprintf_args(const T&... args)
+-    -> format_arg_store<wprintf_context, T...> {
+-  return {args...};
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-inline auto vsprintf(
+-    const S& fmt,
+-    basic_format_args<basic_printf_context_t<type_identity_t<Char>>> args)
+-    -> std::basic_string<Char> {
+-  basic_memory_buffer<Char> buffer;
+-  vprintf(buffer, to_string_view(fmt), args);
+-  return to_string(buffer);
+-}
+-
+-/**
+-  \rst
+-  Formats arguments and returns the result as a string.
+-
+-  **Example**::
+-
+-    std::string message = fmt::sprintf("The answer is %d", 42);
+-  \endrst
+-*/
+-template <typename S, typename... T,
+-          typename Char = enable_if_t<detail::is_string<S>::value, char_t<S>>>
+-inline auto sprintf(const S& fmt, const T&... args) -> std::basic_string<Char> {
+-  using context = basic_printf_context_t<Char>;
+-  return vsprintf(to_string_view(fmt), fmt::make_format_args<context>(args...));
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-inline auto vfprintf(
+-    std::FILE* f, const S& fmt,
+-    basic_format_args<basic_printf_context_t<type_identity_t<Char>>> args)
+-    -> int {
+-  basic_memory_buffer<Char> buffer;
+-  vprintf(buffer, to_string_view(fmt), args);
+-  size_t size = buffer.size();
+-  return std::fwrite(buffer.data(), sizeof(Char), size, f) < size
+-             ? -1
+-             : static_cast<int>(size);
+-}
+-
+-/**
+-  \rst
+-  Prints formatted data to the file *f*.
+-
+-  **Example**::
+-
+-    fmt::fprintf(stderr, "Don't %s!", "panic");
+-  \endrst
+- */
+-template <typename S, typename... T, typename Char = char_t<S>>
+-inline auto fprintf(std::FILE* f, const S& fmt, const T&... args) -> int {
+-  using context = basic_printf_context_t<Char>;
+-  return vfprintf(f, to_string_view(fmt),
+-                  fmt::make_format_args<context>(args...));
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-inline auto vprintf(
+-    const S& fmt,
+-    basic_format_args<basic_printf_context_t<type_identity_t<Char>>> args)
+-    -> int {
+-  return vfprintf(stdout, to_string_view(fmt), args);
+-}
+-
+-/**
+-  \rst
+-  Prints formatted data to ``stdout``.
+-
+-  **Example**::
+-
+-    fmt::printf("Elapsed time: %.2f seconds", 1.23);
+-  \endrst
+- */
+-template <typename S, typename... T, FMT_ENABLE_IF(detail::is_string<S>::value)>
+-inline auto printf(const S& fmt, const T&... args) -> int {
+-  return vprintf(
+-      to_string_view(fmt),
+-      fmt::make_format_args<basic_printf_context_t<char_t<S>>>(args...));
+-}
+-
+-template <typename S, typename Char = char_t<S>>
+-FMT_DEPRECATED auto vfprintf(
+-    std::basic_ostream<Char>& os, const S& fmt,
+-    basic_format_args<basic_printf_context_t<type_identity_t<Char>>> args)
+-    -> int {
+-  basic_memory_buffer<Char> buffer;
+-  vprintf(buffer, to_string_view(fmt), args);
+-  os.write(buffer.data(), static_cast<std::streamsize>(buffer.size()));
+-  return static_cast<int>(buffer.size());
+-}
+-template <typename S, typename... T, typename Char = char_t<S>>
+-FMT_DEPRECATED auto fprintf(std::basic_ostream<Char>& os, const S& fmt,
+-                            const T&... args) -> int {
+-  return vfprintf(os, to_string_view(fmt),
+-                  fmt::make_format_args<basic_printf_context_t<Char>>(args...));
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_PRINTF_H_
+diff --git a/include/dpp/fmt/ranges.h b/include/dpp/fmt/ranges.h
+deleted file mode 100644
+index eb9fb8a..0000000
+--- a/include/dpp/fmt/ranges.h
++++ /dev/null
+@@ -1,793 +0,0 @@
+-// Formatting library for C++ - experimental range support
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-//
+-// Copyright (c) 2018 - present, Remotion (Igor Schulz)
+-// All Rights Reserved
+-// {fmt} support for ranges, containers and types tuple interface.
+-
+-#ifndef FMT_RANGES_H_
+-#define FMT_RANGES_H_
+-
+-#include <initializer_list>
+-#include <tuple>
+-#include <type_traits>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-
+-namespace detail {
+-
+-template <typename RangeT, typename OutputIterator>
+-OutputIterator copy(const RangeT& range, OutputIterator out) {
+-  for (auto it = range.begin(), end = range.end(); it != end; ++it)
+-    *out++ = *it;
+-  return out;
+-}
+-
+-template <typename OutputIterator>
+-OutputIterator copy(const char* str, OutputIterator out) {
+-  while (*str) *out++ = *str++;
+-  return out;
+-}
+-
+-template <typename OutputIterator>
+-OutputIterator copy(char ch, OutputIterator out) {
+-  *out++ = ch;
+-  return out;
+-}
+-
+-template <typename OutputIterator>
+-OutputIterator copy(wchar_t ch, OutputIterator out) {
+-  *out++ = ch;
+-  return out;
+-}
+-
+-// Returns true if T has a std::string-like interface, like std::string_view.
+-template <typename T> class is_std_string_like {
+-  template <typename U>
+-  static auto check(U* p)
+-      -> decltype((void)p->find('a'), p->length(), (void)p->data(), int());
+-  template <typename> static void check(...);
+-
+- public:
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      is_string<T>::value ||
+-      std::is_convertible<T, std_string_view<char>>::value ||
+-      !std::is_void<decltype(check<T>(nullptr))>::value;
+-};
+-
+-template <typename Char>
+-struct is_std_string_like<fmt::basic_string_view<Char>> : std::true_type {};
+-
+-template <typename T> class is_map {
+-  template <typename U> static auto check(U*) -> typename U::mapped_type;
+-  template <typename> static void check(...);
+-
+- public:
+-#ifdef FMT_FORMAT_MAP_AS_LIST
+-  static FMT_CONSTEXPR_DECL const bool value = false;
+-#else
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      !std::is_void<decltype(check<T>(nullptr))>::value;
+-#endif
+-};
+-
+-template <typename T> class is_set {
+-  template <typename U> static auto check(U*) -> typename U::key_type;
+-  template <typename> static void check(...);
+-
+- public:
+-#ifdef FMT_FORMAT_SET_AS_LIST
+-  static FMT_CONSTEXPR_DECL const bool value = false;
+-#else
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      !std::is_void<decltype(check<T>(nullptr))>::value && !is_map<T>::value;
+-#endif
+-};
+-
+-template <typename... Ts> struct conditional_helper {};
+-
+-template <typename T, typename _ = void> struct is_range_ : std::false_type {};
+-
+-#if !FMT_MSC_VER || FMT_MSC_VER > 1800
+-
+-#  define FMT_DECLTYPE_RETURN(val)  \
+-    ->decltype(val) { return val; } \
+-    static_assert(                  \
+-        true, "")  // This makes it so that a semicolon is required after the
+-                   // macro, which helps clang-format handle the formatting.
+-
+-// C array overload
+-template <typename T, std::size_t N>
+-auto range_begin(const T (&arr)[N]) -> const T* {
+-  return arr;
+-}
+-template <typename T, std::size_t N>
+-auto range_end(const T (&arr)[N]) -> const T* {
+-  return arr + N;
+-}
+-
+-template <typename T, typename Enable = void>
+-struct has_member_fn_begin_end_t : std::false_type {};
+-
+-template <typename T>
+-struct has_member_fn_begin_end_t<T, void_t<decltype(std::declval<T>().begin()),
+-                                           decltype(std::declval<T>().end())>>
+-    : std::true_type {};
+-
+-// Member function overload
+-template <typename T>
+-auto range_begin(T&& rng) FMT_DECLTYPE_RETURN(static_cast<T&&>(rng).begin());
+-template <typename T>
+-auto range_end(T&& rng) FMT_DECLTYPE_RETURN(static_cast<T&&>(rng).end());
+-
+-// ADL overload. Only participates in overload resolution if member functions
+-// are not found.
+-template <typename T>
+-auto range_begin(T&& rng)
+-    -> enable_if_t<!has_member_fn_begin_end_t<T&&>::value,
+-                   decltype(begin(static_cast<T&&>(rng)))> {
+-  return begin(static_cast<T&&>(rng));
+-}
+-template <typename T>
+-auto range_end(T&& rng) -> enable_if_t<!has_member_fn_begin_end_t<T&&>::value,
+-                                       decltype(end(static_cast<T&&>(rng)))> {
+-  return end(static_cast<T&&>(rng));
+-}
+-
+-template <typename T, typename Enable = void>
+-struct has_const_begin_end : std::false_type {};
+-template <typename T, typename Enable = void>
+-struct has_mutable_begin_end : std::false_type {};
+-
+-template <typename T>
+-struct has_const_begin_end<
+-    T,
+-    void_t<
+-        decltype(detail::range_begin(std::declval<const remove_cvref_t<T>&>())),
+-        decltype(detail::range_end(std::declval<const remove_cvref_t<T>&>()))>>
+-    : std::true_type {};
+-
+-template <typename T>
+-struct has_mutable_begin_end<
+-    T, void_t<decltype(detail::range_begin(std::declval<T>())),
+-              decltype(detail::range_end(std::declval<T>())),
+-              enable_if_t<std::is_copy_constructible<T>::value>>>
+-    : std::true_type {};
+-
+-template <typename T>
+-struct is_range_<T, void>
+-    : std::integral_constant<bool, (has_const_begin_end<T>::value ||
+-                                    has_mutable_begin_end<T>::value)> {};
+-#  undef FMT_DECLTYPE_RETURN
+-#endif
+-
+-// tuple_size and tuple_element check.
+-template <typename T> class is_tuple_like_ {
+-  template <typename U>
+-  static auto check(U* p) -> decltype(std::tuple_size<U>::value, int());
+-  template <typename> static void check(...);
+-
+- public:
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      !std::is_void<decltype(check<T>(nullptr))>::value;
+-};
+-
+-// Check for integer_sequence
+-#if defined(__cpp_lib_integer_sequence) || FMT_MSC_VER >= 1900
+-template <typename T, T... N>
+-using integer_sequence = std::integer_sequence<T, N...>;
+-template <size_t... N> using index_sequence = std::index_sequence<N...>;
+-template <size_t N> using make_index_sequence = std::make_index_sequence<N>;
+-#else
+-template <typename T, T... N> struct integer_sequence {
+-  using value_type = T;
+-
+-  static FMT_CONSTEXPR size_t size() { return sizeof...(N); }
+-};
+-
+-template <size_t... N> using index_sequence = integer_sequence<size_t, N...>;
+-
+-template <typename T, size_t N, T... Ns>
+-struct make_integer_sequence : make_integer_sequence<T, N - 1, N - 1, Ns...> {};
+-template <typename T, T... Ns>
+-struct make_integer_sequence<T, 0, Ns...> : integer_sequence<T, Ns...> {};
+-
+-template <size_t N>
+-using make_index_sequence = make_integer_sequence<size_t, N>;
+-#endif
+-
+-template <class Tuple, class F, size_t... Is>
+-void for_each(index_sequence<Is...>, Tuple&& tup, F&& f) FMT_NOEXCEPT {
+-  using std::get;
+-  // using free function get<I>(T) now.
+-  const int _[] = {0, ((void)f(get<Is>(tup)), 0)...};
+-  (void)_;  // blocks warnings
+-}
+-
+-template <class T>
+-FMT_CONSTEXPR make_index_sequence<std::tuple_size<T>::value> get_indexes(
+-    T const&) {
+-  return {};
+-}
+-
+-template <class Tuple, class F> void for_each(Tuple&& tup, F&& f) {
+-  const auto indexes = get_indexes(tup);
+-  for_each(indexes, std::forward<Tuple>(tup), std::forward<F>(f));
+-}
+-
+-template <typename Range>
+-using value_type =
+-    remove_cvref_t<decltype(*detail::range_begin(std::declval<Range>()))>;
+-
+-template <typename OutputIt> OutputIt write_delimiter(OutputIt out) {
+-  *out++ = ',';
+-  *out++ = ' ';
+-  return out;
+-}
+-
+-struct singleton {
+-  unsigned char upper;
+-  unsigned char lower_count;
+-};
+-
+-inline auto is_printable(uint16_t x, const singleton* singletons,
+-                         size_t singletons_size,
+-                         const unsigned char* singleton_lowers,
+-                         const unsigned char* normal, size_t normal_size)
+-    -> bool {
+-  auto upper = x >> 8;
+-  auto lower_start = 0;
+-  for (size_t i = 0; i < singletons_size; ++i) {
+-    auto s = singletons[i];
+-    auto lower_end = lower_start + s.lower_count;
+-    if (upper < s.upper) break;
+-    if (upper == s.upper) {
+-      for (auto j = lower_start; j < lower_end; ++j) {
+-        if (singleton_lowers[j] == (x & 0xff)) return false;
+-      }
+-    }
+-    lower_start = lower_end;
+-  }
+-
+-  auto xsigned = static_cast<int>(x);
+-  auto current = true;
+-  for (size_t i = 0; i < normal_size; ++i) {
+-    auto v = static_cast<int>(normal[i]);
+-    auto len = (v & 0x80) != 0 ? (v & 0x7f) << 8 | normal[++i] : v;
+-    xsigned -= len;
+-    if (xsigned < 0) break;
+-    current = !current;
+-  }
+-  return current;
+-}
+-
+-// Returns true iff the code point cp is printable.
+-// This code is generated by support/printable.py.
+-inline auto is_printable(uint32_t cp) -> bool {
+-  static constexpr singleton singletons0[] = {
+-      {0x00, 1},  {0x03, 5},  {0x05, 6},  {0x06, 3},  {0x07, 6},  {0x08, 8},
+-      {0x09, 17}, {0x0a, 28}, {0x0b, 25}, {0x0c, 20}, {0x0d, 16}, {0x0e, 13},
+-      {0x0f, 4},  {0x10, 3},  {0x12, 18}, {0x13, 9},  {0x16, 1},  {0x17, 5},
+-      {0x18, 2},  {0x19, 3},  {0x1a, 7},  {0x1c, 2},  {0x1d, 1},  {0x1f, 22},
+-      {0x20, 3},  {0x2b, 3},  {0x2c, 2},  {0x2d, 11}, {0x2e, 1},  {0x30, 3},
+-      {0x31, 2},  {0x32, 1},  {0xa7, 2},  {0xa9, 2},  {0xaa, 4},  {0xab, 8},
+-      {0xfa, 2},  {0xfb, 5},  {0xfd, 4},  {0xfe, 3},  {0xff, 9},
+-  };
+-  static constexpr unsigned char singletons0_lower[] = {
+-      0xad, 0x78, 0x79, 0x8b, 0x8d, 0xa2, 0x30, 0x57, 0x58, 0x8b, 0x8c, 0x90,
+-      0x1c, 0x1d, 0xdd, 0x0e, 0x0f, 0x4b, 0x4c, 0xfb, 0xfc, 0x2e, 0x2f, 0x3f,
+-      0x5c, 0x5d, 0x5f, 0xb5, 0xe2, 0x84, 0x8d, 0x8e, 0x91, 0x92, 0xa9, 0xb1,
+-      0xba, 0xbb, 0xc5, 0xc6, 0xc9, 0xca, 0xde, 0xe4, 0xe5, 0xff, 0x00, 0x04,
+-      0x11, 0x12, 0x29, 0x31, 0x34, 0x37, 0x3a, 0x3b, 0x3d, 0x49, 0x4a, 0x5d,
+-      0x84, 0x8e, 0x92, 0xa9, 0xb1, 0xb4, 0xba, 0xbb, 0xc6, 0xca, 0xce, 0xcf,
+-      0xe4, 0xe5, 0x00, 0x04, 0x0d, 0x0e, 0x11, 0x12, 0x29, 0x31, 0x34, 0x3a,
+-      0x3b, 0x45, 0x46, 0x49, 0x4a, 0x5e, 0x64, 0x65, 0x84, 0x91, 0x9b, 0x9d,
+-      0xc9, 0xce, 0xcf, 0x0d, 0x11, 0x29, 0x45, 0x49, 0x57, 0x64, 0x65, 0x8d,
+-      0x91, 0xa9, 0xb4, 0xba, 0xbb, 0xc5, 0xc9, 0xdf, 0xe4, 0xe5, 0xf0, 0x0d,
+-      0x11, 0x45, 0x49, 0x64, 0x65, 0x80, 0x84, 0xb2, 0xbc, 0xbe, 0xbf, 0xd5,
+-      0xd7, 0xf0, 0xf1, 0x83, 0x85, 0x8b, 0xa4, 0xa6, 0xbe, 0xbf, 0xc5, 0xc7,
+-      0xce, 0xcf, 0xda, 0xdb, 0x48, 0x98, 0xbd, 0xcd, 0xc6, 0xce, 0xcf, 0x49,
+-      0x4e, 0x4f, 0x57, 0x59, 0x5e, 0x5f, 0x89, 0x8e, 0x8f, 0xb1, 0xb6, 0xb7,
+-      0xbf, 0xc1, 0xc6, 0xc7, 0xd7, 0x11, 0x16, 0x17, 0x5b, 0x5c, 0xf6, 0xf7,
+-      0xfe, 0xff, 0x80, 0x0d, 0x6d, 0x71, 0xde, 0xdf, 0x0e, 0x0f, 0x1f, 0x6e,
+-      0x6f, 0x1c, 0x1d, 0x5f, 0x7d, 0x7e, 0xae, 0xaf, 0xbb, 0xbc, 0xfa, 0x16,
+-      0x17, 0x1e, 0x1f, 0x46, 0x47, 0x4e, 0x4f, 0x58, 0x5a, 0x5c, 0x5e, 0x7e,
+-      0x7f, 0xb5, 0xc5, 0xd4, 0xd5, 0xdc, 0xf0, 0xf1, 0xf5, 0x72, 0x73, 0x8f,
+-      0x74, 0x75, 0x96, 0x2f, 0x5f, 0x26, 0x2e, 0x2f, 0xa7, 0xaf, 0xb7, 0xbf,
+-      0xc7, 0xcf, 0xd7, 0xdf, 0x9a, 0x40, 0x97, 0x98, 0x30, 0x8f, 0x1f, 0xc0,
+-      0xc1, 0xce, 0xff, 0x4e, 0x4f, 0x5a, 0x5b, 0x07, 0x08, 0x0f, 0x10, 0x27,
+-      0x2f, 0xee, 0xef, 0x6e, 0x6f, 0x37, 0x3d, 0x3f, 0x42, 0x45, 0x90, 0x91,
+-      0xfe, 0xff, 0x53, 0x67, 0x75, 0xc8, 0xc9, 0xd0, 0xd1, 0xd8, 0xd9, 0xe7,
+-      0xfe, 0xff,
+-  };
+-  static constexpr singleton singletons1[] = {
+-      {0x00, 6},  {0x01, 1}, {0x03, 1},  {0x04, 2}, {0x08, 8},  {0x09, 2},
+-      {0x0a, 5},  {0x0b, 2}, {0x0e, 4},  {0x10, 1}, {0x11, 2},  {0x12, 5},
+-      {0x13, 17}, {0x14, 1}, {0x15, 2},  {0x17, 2}, {0x19, 13}, {0x1c, 5},
+-      {0x1d, 8},  {0x24, 1}, {0x6a, 3},  {0x6b, 2}, {0xbc, 2},  {0xd1, 2},
+-      {0xd4, 12}, {0xd5, 9}, {0xd6, 2},  {0xd7, 2}, {0xda, 1},  {0xe0, 5},
+-      {0xe1, 2},  {0xe8, 2}, {0xee, 32}, {0xf0, 4}, {0xf8, 2},  {0xf9, 2},
+-      {0xfa, 2},  {0xfb, 1},
+-  };
+-  static constexpr unsigned char singletons1_lower[] = {
+-      0x0c, 0x27, 0x3b, 0x3e, 0x4e, 0x4f, 0x8f, 0x9e, 0x9e, 0x9f, 0x06, 0x07,
+-      0x09, 0x36, 0x3d, 0x3e, 0x56, 0xf3, 0xd0, 0xd1, 0x04, 0x14, 0x18, 0x36,
+-      0x37, 0x56, 0x57, 0x7f, 0xaa, 0xae, 0xaf, 0xbd, 0x35, 0xe0, 0x12, 0x87,
+-      0x89, 0x8e, 0x9e, 0x04, 0x0d, 0x0e, 0x11, 0x12, 0x29, 0x31, 0x34, 0x3a,
+-      0x45, 0x46, 0x49, 0x4a, 0x4e, 0x4f, 0x64, 0x65, 0x5c, 0xb6, 0xb7, 0x1b,
+-      0x1c, 0x07, 0x08, 0x0a, 0x0b, 0x14, 0x17, 0x36, 0x39, 0x3a, 0xa8, 0xa9,
+-      0xd8, 0xd9, 0x09, 0x37, 0x90, 0x91, 0xa8, 0x07, 0x0a, 0x3b, 0x3e, 0x66,
+-      0x69, 0x8f, 0x92, 0x6f, 0x5f, 0xee, 0xef, 0x5a, 0x62, 0x9a, 0x9b, 0x27,
+-      0x28, 0x55, 0x9d, 0xa0, 0xa1, 0xa3, 0xa4, 0xa7, 0xa8, 0xad, 0xba, 0xbc,
+-      0xc4, 0x06, 0x0b, 0x0c, 0x15, 0x1d, 0x3a, 0x3f, 0x45, 0x51, 0xa6, 0xa7,
+-      0xcc, 0xcd, 0xa0, 0x07, 0x19, 0x1a, 0x22, 0x25, 0x3e, 0x3f, 0xc5, 0xc6,
+-      0x04, 0x20, 0x23, 0x25, 0x26, 0x28, 0x33, 0x38, 0x3a, 0x48, 0x4a, 0x4c,
+-      0x50, 0x53, 0x55, 0x56, 0x58, 0x5a, 0x5c, 0x5e, 0x60, 0x63, 0x65, 0x66,
+-      0x6b, 0x73, 0x78, 0x7d, 0x7f, 0x8a, 0xa4, 0xaa, 0xaf, 0xb0, 0xc0, 0xd0,
+-      0xae, 0xaf, 0x79, 0xcc, 0x6e, 0x6f, 0x93,
+-  };
+-  static constexpr unsigned char normal0[] = {
+-      0x00, 0x20, 0x5f, 0x22, 0x82, 0xdf, 0x04, 0x82, 0x44, 0x08, 0x1b, 0x04,
+-      0x06, 0x11, 0x81, 0xac, 0x0e, 0x80, 0xab, 0x35, 0x28, 0x0b, 0x80, 0xe0,
+-      0x03, 0x19, 0x08, 0x01, 0x04, 0x2f, 0x04, 0x34, 0x04, 0x07, 0x03, 0x01,
+-      0x07, 0x06, 0x07, 0x11, 0x0a, 0x50, 0x0f, 0x12, 0x07, 0x55, 0x07, 0x03,
+-      0x04, 0x1c, 0x0a, 0x09, 0x03, 0x08, 0x03, 0x07, 0x03, 0x02, 0x03, 0x03,
+-      0x03, 0x0c, 0x04, 0x05, 0x03, 0x0b, 0x06, 0x01, 0x0e, 0x15, 0x05, 0x3a,
+-      0x03, 0x11, 0x07, 0x06, 0x05, 0x10, 0x07, 0x57, 0x07, 0x02, 0x07, 0x15,
+-      0x0d, 0x50, 0x04, 0x43, 0x03, 0x2d, 0x03, 0x01, 0x04, 0x11, 0x06, 0x0f,
+-      0x0c, 0x3a, 0x04, 0x1d, 0x25, 0x5f, 0x20, 0x6d, 0x04, 0x6a, 0x25, 0x80,
+-      0xc8, 0x05, 0x82, 0xb0, 0x03, 0x1a, 0x06, 0x82, 0xfd, 0x03, 0x59, 0x07,
+-      0x15, 0x0b, 0x17, 0x09, 0x14, 0x0c, 0x14, 0x0c, 0x6a, 0x06, 0x0a, 0x06,
+-      0x1a, 0x06, 0x59, 0x07, 0x2b, 0x05, 0x46, 0x0a, 0x2c, 0x04, 0x0c, 0x04,
+-      0x01, 0x03, 0x31, 0x0b, 0x2c, 0x04, 0x1a, 0x06, 0x0b, 0x03, 0x80, 0xac,
+-      0x06, 0x0a, 0x06, 0x21, 0x3f, 0x4c, 0x04, 0x2d, 0x03, 0x74, 0x08, 0x3c,
+-      0x03, 0x0f, 0x03, 0x3c, 0x07, 0x38, 0x08, 0x2b, 0x05, 0x82, 0xff, 0x11,
+-      0x18, 0x08, 0x2f, 0x11, 0x2d, 0x03, 0x20, 0x10, 0x21, 0x0f, 0x80, 0x8c,
+-      0x04, 0x82, 0x97, 0x19, 0x0b, 0x15, 0x88, 0x94, 0x05, 0x2f, 0x05, 0x3b,
+-      0x07, 0x02, 0x0e, 0x18, 0x09, 0x80, 0xb3, 0x2d, 0x74, 0x0c, 0x80, 0xd6,
+-      0x1a, 0x0c, 0x05, 0x80, 0xff, 0x05, 0x80, 0xdf, 0x0c, 0xee, 0x0d, 0x03,
+-      0x84, 0x8d, 0x03, 0x37, 0x09, 0x81, 0x5c, 0x14, 0x80, 0xb8, 0x08, 0x80,
+-      0xcb, 0x2a, 0x38, 0x03, 0x0a, 0x06, 0x38, 0x08, 0x46, 0x08, 0x0c, 0x06,
+-      0x74, 0x0b, 0x1e, 0x03, 0x5a, 0x04, 0x59, 0x09, 0x80, 0x83, 0x18, 0x1c,
+-      0x0a, 0x16, 0x09, 0x4c, 0x04, 0x80, 0x8a, 0x06, 0xab, 0xa4, 0x0c, 0x17,
+-      0x04, 0x31, 0xa1, 0x04, 0x81, 0xda, 0x26, 0x07, 0x0c, 0x05, 0x05, 0x80,
+-      0xa5, 0x11, 0x81, 0x6d, 0x10, 0x78, 0x28, 0x2a, 0x06, 0x4c, 0x04, 0x80,
+-      0x8d, 0x04, 0x80, 0xbe, 0x03, 0x1b, 0x03, 0x0f, 0x0d,
+-  };
+-  static constexpr unsigned char normal1[] = {
+-      0x5e, 0x22, 0x7b, 0x05, 0x03, 0x04, 0x2d, 0x03, 0x66, 0x03, 0x01, 0x2f,
+-      0x2e, 0x80, 0x82, 0x1d, 0x03, 0x31, 0x0f, 0x1c, 0x04, 0x24, 0x09, 0x1e,
+-      0x05, 0x2b, 0x05, 0x44, 0x04, 0x0e, 0x2a, 0x80, 0xaa, 0x06, 0x24, 0x04,
+-      0x24, 0x04, 0x28, 0x08, 0x34, 0x0b, 0x01, 0x80, 0x90, 0x81, 0x37, 0x09,
+-      0x16, 0x0a, 0x08, 0x80, 0x98, 0x39, 0x03, 0x63, 0x08, 0x09, 0x30, 0x16,
+-      0x05, 0x21, 0x03, 0x1b, 0x05, 0x01, 0x40, 0x38, 0x04, 0x4b, 0x05, 0x2f,
+-      0x04, 0x0a, 0x07, 0x09, 0x07, 0x40, 0x20, 0x27, 0x04, 0x0c, 0x09, 0x36,
+-      0x03, 0x3a, 0x05, 0x1a, 0x07, 0x04, 0x0c, 0x07, 0x50, 0x49, 0x37, 0x33,
+-      0x0d, 0x33, 0x07, 0x2e, 0x08, 0x0a, 0x81, 0x26, 0x52, 0x4e, 0x28, 0x08,
+-      0x2a, 0x56, 0x1c, 0x14, 0x17, 0x09, 0x4e, 0x04, 0x1e, 0x0f, 0x43, 0x0e,
+-      0x19, 0x07, 0x0a, 0x06, 0x48, 0x08, 0x27, 0x09, 0x75, 0x0b, 0x3f, 0x41,
+-      0x2a, 0x06, 0x3b, 0x05, 0x0a, 0x06, 0x51, 0x06, 0x01, 0x05, 0x10, 0x03,
+-      0x05, 0x80, 0x8b, 0x62, 0x1e, 0x48, 0x08, 0x0a, 0x80, 0xa6, 0x5e, 0x22,
+-      0x45, 0x0b, 0x0a, 0x06, 0x0d, 0x13, 0x39, 0x07, 0x0a, 0x36, 0x2c, 0x04,
+-      0x10, 0x80, 0xc0, 0x3c, 0x64, 0x53, 0x0c, 0x48, 0x09, 0x0a, 0x46, 0x45,
+-      0x1b, 0x48, 0x08, 0x53, 0x1d, 0x39, 0x81, 0x07, 0x46, 0x0a, 0x1d, 0x03,
+-      0x47, 0x49, 0x37, 0x03, 0x0e, 0x08, 0x0a, 0x06, 0x39, 0x07, 0x0a, 0x81,
+-      0x36, 0x19, 0x80, 0xb7, 0x01, 0x0f, 0x32, 0x0d, 0x83, 0x9b, 0x66, 0x75,
+-      0x0b, 0x80, 0xc4, 0x8a, 0xbc, 0x84, 0x2f, 0x8f, 0xd1, 0x82, 0x47, 0xa1,
+-      0xb9, 0x82, 0x39, 0x07, 0x2a, 0x04, 0x02, 0x60, 0x26, 0x0a, 0x46, 0x0a,
+-      0x28, 0x05, 0x13, 0x82, 0xb0, 0x5b, 0x65, 0x4b, 0x04, 0x39, 0x07, 0x11,
+-      0x40, 0x05, 0x0b, 0x02, 0x0e, 0x97, 0xf8, 0x08, 0x84, 0xd6, 0x2a, 0x09,
+-      0xa2, 0xf7, 0x81, 0x1f, 0x31, 0x03, 0x11, 0x04, 0x08, 0x81, 0x8c, 0x89,
+-      0x04, 0x6b, 0x05, 0x0d, 0x03, 0x09, 0x07, 0x10, 0x93, 0x60, 0x80, 0xf6,
+-      0x0a, 0x73, 0x08, 0x6e, 0x17, 0x46, 0x80, 0x9a, 0x14, 0x0c, 0x57, 0x09,
+-      0x19, 0x80, 0x87, 0x81, 0x47, 0x03, 0x85, 0x42, 0x0f, 0x15, 0x85, 0x50,
+-      0x2b, 0x80, 0xd5, 0x2d, 0x03, 0x1a, 0x04, 0x02, 0x81, 0x70, 0x3a, 0x05,
+-      0x01, 0x85, 0x00, 0x80, 0xd7, 0x29, 0x4c, 0x04, 0x0a, 0x04, 0x02, 0x83,
+-      0x11, 0x44, 0x4c, 0x3d, 0x80, 0xc2, 0x3c, 0x06, 0x01, 0x04, 0x55, 0x05,
+-      0x1b, 0x34, 0x02, 0x81, 0x0e, 0x2c, 0x04, 0x64, 0x0c, 0x56, 0x0a, 0x80,
+-      0xae, 0x38, 0x1d, 0x0d, 0x2c, 0x04, 0x09, 0x07, 0x02, 0x0e, 0x06, 0x80,
+-      0x9a, 0x83, 0xd8, 0x08, 0x0d, 0x03, 0x0d, 0x03, 0x74, 0x0c, 0x59, 0x07,
+-      0x0c, 0x14, 0x0c, 0x04, 0x38, 0x08, 0x0a, 0x06, 0x28, 0x08, 0x22, 0x4e,
+-      0x81, 0x54, 0x0c, 0x15, 0x03, 0x03, 0x05, 0x07, 0x09, 0x19, 0x07, 0x07,
+-      0x09, 0x03, 0x0d, 0x07, 0x29, 0x80, 0xcb, 0x25, 0x0a, 0x84, 0x06,
+-  };
+-  auto lower = static_cast<uint16_t>(cp);
+-  if (cp < 0x10000) {
+-    return is_printable(lower, singletons0,
+-                        sizeof(singletons0) / sizeof(*singletons0),
+-                        singletons0_lower, normal0, sizeof(normal0));
+-  }
+-  if (cp < 0x20000) {
+-    return is_printable(lower, singletons1,
+-                        sizeof(singletons1) / sizeof(*singletons1),
+-                        singletons1_lower, normal1, sizeof(normal1));
+-  }
+-  if (0x2a6de <= cp && cp < 0x2a700) return false;
+-  if (0x2b735 <= cp && cp < 0x2b740) return false;
+-  if (0x2b81e <= cp && cp < 0x2b820) return false;
+-  if (0x2cea2 <= cp && cp < 0x2ceb0) return false;
+-  if (0x2ebe1 <= cp && cp < 0x2f800) return false;
+-  if (0x2fa1e <= cp && cp < 0x30000) return false;
+-  if (0x3134b <= cp && cp < 0xe0100) return false;
+-  if (0xe01f0 <= cp && cp < 0x110000) return false;
+-  return cp < 0x110000;
+-}
+-
+-inline auto needs_escape(uint32_t cp) -> bool {
+-  return cp < 0x20 || cp == 0x7f || cp == '"' || cp == '\\' ||
+-         !is_printable(cp);
+-}
+-
+-template <typename Char> struct find_escape_result {
+-  const Char* begin;
+-  const Char* end;
+-  uint32_t cp;
+-};
+-
+-template <typename Char>
+-auto find_escape(const Char* begin, const Char* end)
+-    -> find_escape_result<Char> {
+-  for (; begin != end; ++begin) {
+-    auto cp = static_cast<typename std::make_unsigned<Char>::type>(*begin);
+-    if (sizeof(Char) == 1 && cp >= 0x80) continue;
+-    if (needs_escape(cp)) return {begin, begin + 1, cp};
+-  }
+-  return {begin, nullptr, 0};
+-}
+-
+-inline auto find_escape(const char* begin, const char* end)
+-    -> find_escape_result<char> {
+-  if (!is_utf8()) return find_escape<char>(begin, end);
+-  auto result = find_escape_result<char>{end, nullptr, 0};
+-  for_each_codepoint(string_view(begin, to_unsigned(end - begin)),
+-                     [&](uint32_t cp, string_view sv) {
+-                       if (needs_escape(cp)) {
+-                         result = {sv.begin(), sv.end(), cp};
+-                         return false;
+-                       }
+-                       return true;
+-                     });
+-  return result;
+-}
+-
+-template <typename Char, typename OutputIt>
+-auto write_range_entry(OutputIt out, basic_string_view<Char> str) -> OutputIt {
+-  *out++ = '"';
+-  auto begin = str.begin(), end = str.end();
+-  do {
+-    auto escape = find_escape(begin, end);
+-    out = copy_str<Char>(begin, escape.begin, out);
+-    begin = escape.end;
+-    if (!begin) break;
+-    auto c = static_cast<Char>(escape.cp);
+-    switch (escape.cp) {
+-    case '\n':
+-      *out++ = '\\';
+-      c = 'n';
+-      break;
+-    case '\r':
+-      *out++ = '\\';
+-      c = 'r';
+-      break;
+-    case '\t':
+-      *out++ = '\\';
+-      c = 't';
+-      break;
+-    case '"':
+-      FMT_FALLTHROUGH;
+-    case '\\':
+-      *out++ = '\\';
+-      break;
+-    default:
+-      if (is_utf8()) {
+-        if (escape.cp < 0x100) {
+-          out = format_to(out, "\\x{:02x}", escape.cp);
+-          continue;
+-        }
+-        if (escape.cp < 0x10000) {
+-          out = format_to(out, "\\u{:04x}", escape.cp);
+-          continue;
+-        }
+-        if (escape.cp < 0x110000) {
+-          out = format_to(out, "\\U{:08x}", escape.cp);
+-          continue;
+-        }
+-      }
+-      for (Char escape_char : basic_string_view<Char>(
+-               escape.begin, to_unsigned(escape.end - escape.begin))) {
+-        out = format_to(
+-            out, "\\x{:02x}",
+-            static_cast<typename std::make_unsigned<Char>::type>(escape_char));
+-      }
+-      continue;
+-    }
+-    *out++ = c;
+-  } while (begin != end);
+-  *out++ = '"';
+-  return out;
+-}
+-
+-template <typename Char, typename OutputIt, typename T,
+-          FMT_ENABLE_IF(std::is_convertible<T, std_string_view<char>>::value)>
+-inline auto write_range_entry(OutputIt out, const T& str) -> OutputIt {
+-  auto sv = std_string_view<Char>(str);
+-  return write_range_entry<Char>(out, basic_string_view<Char>(sv));
+-}
+-
+-template <typename Char, typename OutputIt, typename Arg,
+-          FMT_ENABLE_IF(std::is_same<Arg, Char>::value)>
+-OutputIt write_range_entry(OutputIt out, const Arg v) {
+-  *out++ = '\'';
+-  *out++ = v;
+-  *out++ = '\'';
+-  return out;
+-}
+-
+-template <
+-    typename Char, typename OutputIt, typename Arg,
+-    FMT_ENABLE_IF(!is_std_string_like<typename std::decay<Arg>::type>::value &&
+-                  !std::is_same<Arg, Char>::value)>
+-OutputIt write_range_entry(OutputIt out, const Arg& v) {
+-  return write<Char>(out, v);
+-}
+-
+-}  // namespace detail
+-
+-template <typename T> struct is_tuple_like {
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      detail::is_tuple_like_<T>::value && !detail::is_range_<T>::value;
+-};
+-
+-template <typename TupleT, typename Char>
+-struct formatter<TupleT, Char, enable_if_t<fmt::is_tuple_like<TupleT>::value>> {
+- private:
+-  // C++11 generic lambda for format().
+-  template <typename FormatContext> struct format_each {
+-    template <typename T> void operator()(const T& v) {
+-      if (i > 0) out = detail::write_delimiter(out);
+-      out = detail::write_range_entry<Char>(out, v);
+-      ++i;
+-    }
+-    int i;
+-    typename FormatContext::iterator& out;
+-  };
+-
+- public:
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <typename FormatContext = format_context>
+-  auto format(const TupleT& values, FormatContext& ctx) -> decltype(ctx.out()) {
+-    auto out = ctx.out();
+-    *out++ = '(';
+-    detail::for_each(values, format_each<FormatContext>{0, out});
+-    *out++ = ')';
+-    return out;
+-  }
+-};
+-
+-template <typename T, typename Char> struct is_range {
+-  static FMT_CONSTEXPR_DECL const bool value =
+-      detail::is_range_<T>::value && !detail::is_std_string_like<T>::value &&
+-      !detail::is_map<T>::value &&
+-      !std::is_convertible<T, std::basic_string<Char>>::value &&
+-      !std::is_constructible<detail::std_string_view<Char>, T>::value;
+-};
+-
+-template <typename T, typename Char>
+-struct formatter<
+-    T, Char,
+-    enable_if_t<
+-        fmt::is_range<T, Char>::value
+-// Workaround a bug in MSVC 2019 and earlier.
+-#if !FMT_MSC_VER
+-        && (is_formattable<detail::value_type<T>, Char>::value ||
+-            detail::has_fallback_formatter<detail::value_type<T>, Char>::value)
+-#endif
+-        >> {
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <
+-      typename FormatContext, typename U,
+-      FMT_ENABLE_IF(
+-          std::is_same<U, conditional_t<detail::has_const_begin_end<T>::value,
+-                                        const T, T>>::value)>
+-  auto format(U& range, FormatContext& ctx) -> decltype(ctx.out()) {
+-#ifdef FMT_DEPRECATED_BRACED_RANGES
+-    Char prefix = '{';
+-    Char postfix = '}';
+-#else
+-    Char prefix = detail::is_set<T>::value ? '{' : '[';
+-    Char postfix = detail::is_set<T>::value ? '}' : ']';
+-#endif
+-    auto out = ctx.out();
+-    *out++ = prefix;
+-    int i = 0;
+-    auto it = std::begin(range);
+-    auto end = std::end(range);
+-    for (; it != end; ++it) {
+-      if (i > 0) out = detail::write_delimiter(out);
+-      out = detail::write_range_entry<Char>(out, *it);
+-      ++i;
+-    }
+-    *out++ = postfix;
+-    return out;
+-  }
+-};
+-
+-template <typename T, typename Char>
+-struct formatter<
+-    T, Char,
+-    enable_if_t<
+-        detail::is_map<T>::value
+-// Workaround a bug in MSVC 2019 and earlier.
+-#if !FMT_MSC_VER
+-        && (is_formattable<detail::value_type<T>, Char>::value ||
+-            detail::has_fallback_formatter<detail::value_type<T>, Char>::value)
+-#endif
+-        >> {
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <
+-      typename FormatContext, typename U,
+-      FMT_ENABLE_IF(
+-          std::is_same<U, conditional_t<detail::has_const_begin_end<T>::value,
+-                                        const T, T>>::value)>
+-  auto format(U& map, FormatContext& ctx) -> decltype(ctx.out()) {
+-    auto out = ctx.out();
+-    *out++ = '{';
+-    int i = 0;
+-    for (const auto& item : map) {
+-      if (i > 0) out = detail::write_delimiter(out);
+-      out = detail::write_range_entry<Char>(out, item.first);
+-      *out++ = ':';
+-      *out++ = ' ';
+-      out = detail::write_range_entry<Char>(out, item.second);
+-      ++i;
+-    }
+-    *out++ = '}';
+-    return out;
+-  }
+-};
+-
+-template <typename Char, typename... T> struct tuple_join_view : detail::view {
+-  const std::tuple<T...>& tuple;
+-  basic_string_view<Char> sep;
+-
+-  tuple_join_view(const std::tuple<T...>& t, basic_string_view<Char> s)
+-      : tuple(t), sep{s} {}
+-};
+-
+-template <typename Char, typename... T>
+-using tuple_arg_join = tuple_join_view<Char, T...>;
+-
+-// Define FMT_TUPLE_JOIN_SPECIFIERS to enable experimental format specifiers
+-// support in tuple_join. It is disabled by default because of issues with
+-// the dynamic width and precision.
+-#ifndef FMT_TUPLE_JOIN_SPECIFIERS
+-#  define FMT_TUPLE_JOIN_SPECIFIERS 0
+-#endif
+-
+-template <typename Char, typename... T>
+-struct formatter<tuple_join_view<Char, T...>, Char> {
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
+-    return do_parse(ctx, std::integral_constant<size_t, sizeof...(T)>());
+-  }
+-
+-  template <typename FormatContext>
+-  auto format(const tuple_join_view<Char, T...>& value,
+-              FormatContext& ctx) const -> typename FormatContext::iterator {
+-    return do_format(value, ctx,
+-                     std::integral_constant<size_t, sizeof...(T)>());
+-  }
+-
+- private:
+-  std::tuple<formatter<typename std::decay<T>::type, Char>...> formatters_;
+-
+-  template <typename ParseContext>
+-  FMT_CONSTEXPR auto do_parse(ParseContext& ctx,
+-                              std::integral_constant<size_t, 0>)
+-      -> decltype(ctx.begin()) {
+-    return ctx.begin();
+-  }
+-
+-  template <typename ParseContext, size_t N>
+-  FMT_CONSTEXPR auto do_parse(ParseContext& ctx,
+-                              std::integral_constant<size_t, N>)
+-      -> decltype(ctx.begin()) {
+-    auto end = ctx.begin();
+-#if FMT_TUPLE_JOIN_SPECIFIERS
+-    end = std::get<sizeof...(T) - N>(formatters_).parse(ctx);
+-    if (N > 1) {
+-      auto end1 = do_parse(ctx, std::integral_constant<size_t, N - 1>());
+-      if (end != end1)
+-        FMT_THROW(format_error("incompatible format specs for tuple elements"));
+-    }
+-#endif
+-    return end;
+-  }
+-
+-  template <typename FormatContext>
+-  auto do_format(const tuple_join_view<Char, T...>&, FormatContext& ctx,
+-                 std::integral_constant<size_t, 0>) const ->
+-      typename FormatContext::iterator {
+-    return ctx.out();
+-  }
+-
+-  template <typename FormatContext, size_t N>
+-  auto do_format(const tuple_join_view<Char, T...>& value, FormatContext& ctx,
+-                 std::integral_constant<size_t, N>) const ->
+-      typename FormatContext::iterator {
+-    auto out = std::get<sizeof...(T) - N>(formatters_)
+-                   .format(std::get<sizeof...(T) - N>(value.tuple), ctx);
+-    if (N > 1) {
+-      out = std::copy(value.sep.begin(), value.sep.end(), out);
+-      ctx.advance_to(out);
+-      return do_format(value, ctx, std::integral_constant<size_t, N - 1>());
+-    }
+-    return out;
+-  }
+-};
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-/**
+-  \rst
+-  Returns an object that formats `tuple` with elements separated by `sep`.
+-
+-  **Example**::
+-
+-    std::tuple<int, char> t = {1, 'a'};
+-    fmt::print("{}", fmt::join(t, ", "));
+-    // Output: "1, a"
+-  \endrst
+- */
+-template <typename... T>
+-FMT_CONSTEXPR auto join(const std::tuple<T...>& tuple, string_view sep)
+-    -> tuple_join_view<char, T...> {
+-  return {tuple, sep};
+-}
+-
+-template <typename... T>
+-FMT_CONSTEXPR auto join(const std::tuple<T...>& tuple,
+-                        basic_string_view<wchar_t> sep)
+-    -> tuple_join_view<wchar_t, T...> {
+-  return {tuple, sep};
+-}
+-
+-/**
+-  \rst
+-  Returns an object that formats `initializer_list` with elements separated by
+-  `sep`.
+-
+-  **Example**::
+-
+-    fmt::print("{}", fmt::join({1, 2, 3}, ", "));
+-    // Output: "1, 2, 3"
+-  \endrst
+- */
+-template <typename T>
+-auto join(std::initializer_list<T> list, string_view sep)
+-    -> join_view<const T*, const T*> {
+-  return join(std::begin(list), std::end(list), sep);
+-}
+-
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_RANGES_H_
+diff --git a/include/dpp/fmt/xchar.h b/include/dpp/fmt/xchar.h
+deleted file mode 100644
+index 5582507..0000000
+--- a/include/dpp/fmt/xchar.h
++++ /dev/null
+@@ -1,236 +0,0 @@
+-// Formatting library for C++ - optional wchar_t and exotic character support
+-//
+-// Copyright (c) 2012 - present, Victor Zverovich
+-// All rights reserved.
+-//
+-// For the license information refer to format.h.
+-
+-#ifndef FMT_XCHAR_H_
+-#define FMT_XCHAR_H_
+-
+-#include <cwchar>
+-#include <tuple>
+-
+-#include "format.h"
+-
+-FMT_BEGIN_NAMESPACE
+-namespace detail {
+-template <typename T>
+-using is_exotic_char = bool_constant<!std::is_same<T, char>::value>;
+-}
+-
+-FMT_MODULE_EXPORT_BEGIN
+-
+-using wstring_view = basic_string_view<wchar_t>;
+-using wformat_parse_context = basic_format_parse_context<wchar_t>;
+-using wformat_context = buffer_context<wchar_t>;
+-using wformat_args = basic_format_args<wformat_context>;
+-using wmemory_buffer = basic_memory_buffer<wchar_t>;
+-
+-#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
+-// Workaround broken conversion on older gcc.
+-template <typename... Args> using wformat_string = wstring_view;
+-#else
+-template <typename... Args>
+-using wformat_string = basic_format_string<wchar_t, type_identity_t<Args>...>;
+-#endif
+-
+-template <> struct is_char<wchar_t> : std::true_type {};
+-template <> struct is_char<detail::char8_type> : std::true_type {};
+-template <> struct is_char<char16_t> : std::true_type {};
+-template <> struct is_char<char32_t> : std::true_type {};
+-
+-template <typename... Args>
+-constexpr format_arg_store<wformat_context, Args...> make_wformat_args(
+-    const Args&... args) {
+-  return {args...};
+-}
+-
+-inline namespace literals {
+-constexpr auto operator"" _format(const wchar_t* s, size_t n)
+-    -> detail::udl_formatter<wchar_t> {
+-  return {{s, n}};
+-}
+-
+-#if FMT_USE_USER_DEFINED_LITERALS && !FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
+-constexpr detail::udl_arg<wchar_t> operator"" _a(const wchar_t* s, size_t) {
+-  return {s};
+-}
+-#endif
+-}  // namespace literals
+-
+-template <typename It, typename Sentinel>
+-auto join(It begin, Sentinel end, wstring_view sep)
+-    -> join_view<It, Sentinel, wchar_t> {
+-  return {begin, end, sep};
+-}
+-
+-template <typename Range>
+-auto join(Range&& range, wstring_view sep)
+-    -> join_view<detail::iterator_t<Range>, detail::sentinel_t<Range>,
+-                 wchar_t> {
+-  return join(std::begin(range), std::end(range), sep);
+-}
+-
+-template <typename T>
+-auto join(std::initializer_list<T> list, wstring_view sep)
+-    -> join_view<const T*, const T*, wchar_t> {
+-  return join(std::begin(list), std::end(list), sep);
+-}
+-
+-template <typename Char, FMT_ENABLE_IF(!std::is_same<Char, char>::value)>
+-auto vformat(basic_string_view<Char> format_str,
+-             basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> std::basic_string<Char> {
+-  basic_memory_buffer<Char> buffer;
+-  detail::vformat_to(buffer, format_str, args);
+-  return to_string(buffer);
+-}
+-
+-// Pass char_t as a default template parameter instead of using
+-// std::basic_string<char_t<S>> to reduce the symbol size.
+-template <typename S, typename... Args, typename Char = char_t<S>,
+-          FMT_ENABLE_IF(!std::is_same<Char, char>::value)>
+-auto format(const S& format_str, Args&&... args) -> std::basic_string<Char> {
+-  const auto& vargs = fmt::make_args_checked<Args...>(format_str, args...);
+-  return vformat(to_string_view(format_str), vargs);
+-}
+-
+-template <typename Locale, typename S, typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_locale<Locale>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto vformat(
+-    const Locale& loc, const S& format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> std::basic_string<Char> {
+-  return detail::vformat(loc, to_string_view(format_str), args);
+-}
+-
+-template <typename Locale, typename S, typename... Args,
+-          typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_locale<Locale>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto format(const Locale& loc, const S& format_str, Args&&... args)
+-    -> std::basic_string<Char> {
+-  return detail::vformat(loc, to_string_view(format_str),
+-                         fmt::make_args_checked<Args...>(format_str, args...));
+-}
+-
+-template <typename OutputIt, typename S, typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-auto vformat_to(OutputIt out, const S& format_str,
+-                basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> OutputIt {
+-  auto&& buf = detail::get_buffer<Char>(out);
+-  detail::vformat_to(buf, to_string_view(format_str), args);
+-  return detail::get_iterator(buf);
+-}
+-
+-template <typename OutputIt, typename S, typename... Args,
+-          typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto format_to(OutputIt out, const S& fmt, Args&&... args) -> OutputIt {
+-  const auto& vargs = fmt::make_args_checked<Args...>(fmt, args...);
+-  return vformat_to(out, to_string_view(fmt), vargs);
+-}
+-
+-template <typename S, typename... Args, typename Char, size_t SIZE,
+-          typename Allocator, FMT_ENABLE_IF(detail::is_string<S>::value)>
+-FMT_DEPRECATED auto format_to(basic_memory_buffer<Char, SIZE, Allocator>& buf,
+-                              const S& format_str, Args&&... args) ->
+-    typename buffer_context<Char>::iterator {
+-  const auto& vargs = fmt::make_args_checked<Args...>(format_str, args...);
+-  detail::vformat_to(buf, to_string_view(format_str), vargs, {});
+-  return detail::buffer_appender<Char>(buf);
+-}
+-
+-template <typename Locale, typename S, typename OutputIt, typename... Args,
+-          typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_locale<Locale>::value&&
+-                                detail::is_exotic_char<Char>::value)>
+-inline auto vformat_to(
+-    OutputIt out, const Locale& loc, const S& format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args) -> OutputIt {
+-  auto&& buf = detail::get_buffer<Char>(out);
+-  vformat_to(buf, to_string_view(format_str), args, detail::locale_ref(loc));
+-  return detail::get_iterator(buf);
+-}
+-
+-template <
+-    typename OutputIt, typename Locale, typename S, typename... Args,
+-    typename Char = char_t<S>,
+-    bool enable = detail::is_output_iterator<OutputIt, Char>::value&&
+-        detail::is_locale<Locale>::value&& detail::is_exotic_char<Char>::value>
+-inline auto format_to(OutputIt out, const Locale& loc, const S& format_str,
+-                      Args&&... args) ->
+-    typename std::enable_if<enable, OutputIt>::type {
+-  const auto& vargs = fmt::make_args_checked<Args...>(format_str, args...);
+-  return vformat_to(out, loc, to_string_view(format_str), vargs);
+-}
+-
+-template <typename OutputIt, typename Char, typename... Args,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto vformat_to_n(
+-    OutputIt out, size_t n, basic_string_view<Char> format_str,
+-    basic_format_args<buffer_context<type_identity_t<Char>>> args)
+-    -> format_to_n_result<OutputIt> {
+-  detail::iterator_buffer<OutputIt, Char, detail::fixed_buffer_traits> buf(out,
+-                                                                           n);
+-  detail::vformat_to(buf, format_str, args);
+-  return {buf.out(), buf.count()};
+-}
+-
+-template <typename OutputIt, typename S, typename... Args,
+-          typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
+-                            detail::is_exotic_char<Char>::value)>
+-inline auto format_to_n(OutputIt out, size_t n, const S& fmt,
+-                        const Args&... args) -> format_to_n_result<OutputIt> {
+-  const auto& vargs = fmt::make_args_checked<Args...>(fmt, args...);
+-  return vformat_to_n(out, n, to_string_view(fmt), vargs);
+-}
+-
+-template <typename S, typename... Args, typename Char = char_t<S>,
+-          FMT_ENABLE_IF(detail::is_exotic_char<Char>::value)>
+-inline auto formatted_size(const S& fmt, Args&&... args) -> size_t {
+-  detail::counting_buffer<Char> buf;
+-  const auto& vargs = fmt::make_args_checked<Args...>(fmt, args...);
+-  detail::vformat_to(buf, to_string_view(fmt), vargs);
+-  return buf.count();
+-}
+-
+-inline void vprint(std::FILE* f, wstring_view fmt, wformat_args args) {
+-  wmemory_buffer buffer;
+-  detail::vformat_to(buffer, fmt, args);
+-  buffer.push_back(L'\0');
+-  if (std::fputws(buffer.data(), f) == -1)
+-    FMT_THROW(system_error(errno, FMT_STRING("cannot write to file")));
+-}
+-
+-inline void vprint(wstring_view fmt, wformat_args args) {
+-  vprint(stdout, fmt, args);
+-}
+-
+-template <typename... T>
+-void print(std::FILE* f, wformat_string<T...> fmt, T&&... args) {
+-  return vprint(f, wstring_view(fmt), fmt::make_wformat_args(args...));
+-}
+-
+-template <typename... T> void print(wformat_string<T...> fmt, T&&... args) {
+-  return vprint(wstring_view(fmt), fmt::make_wformat_args(args...));
+-}
+-
+-/**
+-  Converts *value* to ``std::wstring`` using the default format for type *T*.
+- */
+-template <typename T> inline auto to_wstring(const T& value) -> std::wstring {
+-  return format(FMT_STRING(L"{}"), value);
+-}
+-FMT_MODULE_EXPORT_END
+-FMT_END_NAMESPACE
+-
+-#endif  // FMT_XCHAR_H_
+diff --git a/include/dpp/integration.h b/include/dpp/integration.h
+index 420c8d8..6815c3c 100644
+--- a/include/dpp/integration.h
++++ b/include/dpp/integration.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/invite.h b/include/dpp/invite.h
+index eae62a9..e8977a8 100644
+--- a/include/dpp/invite.h
++++ b/include/dpp/invite.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/stage_instance.h>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/json_interface.h b/include/dpp/json_interface.h
+index 302642d..e2e467a 100644
+--- a/include/dpp/json_interface.h
++++ b/include/dpp/json_interface.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 	/**
+diff --git a/include/dpp/message.h b/include/dpp/message.h
+index 1c80553..08de4c0 100644
+--- a/include/dpp/message.h
++++ b/include/dpp/message.h
+@@ -27,7 +27,7 @@
+ #include <dpp/guild.h>
+ #include <optional>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/nlohmann/json.hpp b/include/dpp/nlohmann/json.hpp
+deleted file mode 100755
+index cb27e05..0000000
+--- a/include/dpp/nlohmann/json.hpp
++++ /dev/null
+@@ -1,22091 +0,0 @@
+-/*
+-    __ _____ _____ _____
+- __|  |   __|     |   | |  JSON for Modern C++
+-|  |  |__   |  |  | | | |  version 3.10.5
+-|_____|_____|_____|_|___|  https://github.com/nlohmann/json
+-
+-Licensed under the MIT License <http://opensource.org/licenses/MIT>.
+-SPDX-License-Identifier: MIT
+-Copyright (c) 2013-2022 Niels Lohmann <http://nlohmann.me>.
+-
+-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.
+-*/
+-
+-/****************************************************************************\
+- * Note on documentation: The source files contain links to the online      *
+- * documentation of the public API at https://json.nlohmann.me. This URL    *
+- * contains the most recent documentation and should also be applicable to  *
+- * previous versions; documentation for deprecated functions is not         *
+- * removed, but marked deprecated. See "Generate documentation" section in  *
+- * file doc/README.md.                                                      *
+-\****************************************************************************/
+-
+-#ifndef INCLUDE_NLOHMANN_JSON_HPP_
+-#define INCLUDE_NLOHMANN_JSON_HPP_
+-
+-#define NLOHMANN_JSON_VERSION_MAJOR 3
+-#define NLOHMANN_JSON_VERSION_MINOR 10
+-#define NLOHMANN_JSON_VERSION_PATCH 5
+-
+-#include <algorithm> // all_of, find, for_each
+-#include <cstddef> // nullptr_t, ptrdiff_t, size_t
+-#include <functional> // hash, less
+-#include <initializer_list> // initializer_list
+-#ifndef JSON_NO_IO
+-    #include <iosfwd> // istream, ostream
+-#endif  // JSON_NO_IO
+-#include <iterator> // random_access_iterator_tag
+-#include <memory> // unique_ptr
+-#include <numeric> // accumulate
+-#include <string> // string, stoi, to_string
+-#include <utility> // declval, forward, move, pair, swap
+-#include <vector> // vector
+-
+-// #include <nlohmann/adl_serializer.hpp>
+-
+-
+-#include <type_traits>
+-#include <utility>
+-
+-// #include <nlohmann/detail/conversions/from_json.hpp>
+-
+-
+-#include <algorithm> // transform
+-#include <array> // array
+-#include <forward_list> // forward_list
+-#include <iterator> // inserter, front_inserter, end
+-#include <map> // map
+-#include <string> // string
+-#include <tuple> // tuple, make_tuple
+-#include <type_traits> // is_arithmetic, is_same, is_enum, underlying_type, is_convertible
+-#include <unordered_map> // unordered_map
+-#include <utility> // pair, declval
+-#include <valarray> // valarray
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-
+-#include <exception> // exception
+-#include <stdexcept> // runtime_error
+-#include <string> // to_string
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-#include <array> // array
+-#include <cstddef> // size_t
+-#include <cstdint> // uint8_t
+-#include <string> // string
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-///////////////////////////
+-// JSON type enumeration //
+-///////////////////////////
+-
+-/*!
+-@brief the JSON type enumeration
+-
+-This enumeration collects the different JSON types. It is internally used to
+-distinguish the stored values, and the functions @ref basic_json::is_null(),
+-@ref basic_json::is_object(), @ref basic_json::is_array(),
+-@ref basic_json::is_string(), @ref basic_json::is_boolean(),
+-@ref basic_json::is_number() (with @ref basic_json::is_number_integer(),
+-@ref basic_json::is_number_unsigned(), and @ref basic_json::is_number_float()),
+-@ref basic_json::is_discarded(), @ref basic_json::is_primitive(), and
+-@ref basic_json::is_structured() rely on it.
+-
+-@note There are three enumeration entries (number_integer, number_unsigned, and
+-number_float), because the library distinguishes these three types for numbers:
+-@ref basic_json::number_unsigned_t is used for unsigned integers,
+-@ref basic_json::number_integer_t is used for signed integers, and
+-@ref basic_json::number_float_t is used for floating-point numbers or to
+-approximate integers which do not fit in the limits of their respective type.
+-
+-@sa see @ref basic_json::basic_json(const value_t value_type) -- create a JSON
+-value with the default value for a given type
+-
+-@since version 1.0.0
+-*/
+-enum class value_t : std::uint8_t
+-{
+-    null,             ///< null value
+-    object,           ///< object (unordered set of name/value pairs)
+-    array,            ///< array (ordered collection of values)
+-    string,           ///< string value
+-    boolean,          ///< boolean value
+-    number_integer,   ///< number value (signed integer)
+-    number_unsigned,  ///< number value (unsigned integer)
+-    number_float,     ///< number value (floating-point)
+-    binary,           ///< binary array (ordered collection of bytes)
+-    discarded         ///< discarded by the parser callback function
+-};
+-
+-/*!
+-@brief comparison operator for JSON types
+-
+-Returns an ordering that is similar to Python:
+-- order: null < boolean < number < object < array < string < binary
+-- furthermore, each type is not smaller than itself
+-- discarded values are not comparable
+-- binary is represented as a b"" string in python and directly comparable to a
+-  string; however, making a binary array directly comparable with a string would
+-  be surprising behavior in a JSON file.
+-
+-@since version 1.0.0
+-*/
+-inline bool operator<(const value_t lhs, const value_t rhs) noexcept
+-{
+-    static constexpr std::array<std::uint8_t, 9> order = {{
+-            0 /* null */, 3 /* object */, 4 /* array */, 5 /* string */,
+-            1 /* boolean */, 2 /* integer */, 2 /* unsigned */, 2 /* float */,
+-            6 /* binary */
+-        }
+-    };
+-
+-    const auto l_index = static_cast<std::size_t>(lhs);
+-    const auto r_index = static_cast<std::size_t>(rhs);
+-    return l_index < order.size() && r_index < order.size() && order[l_index] < order[r_index];
+-}
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/string_escape.hpp>
+-
+-
+-#include <string>
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-#include <utility> // declval, pair
+-// #include <nlohmann/thirdparty/hedley/hedley.hpp>
+-
+-
+-/* Hedley - https://nemequ.github.io/hedley
+- * Created by Evan Nemerson <evan@nemerson.com>
+- *
+- * To the extent possible under law, the author(s) have dedicated all
+- * copyright and related and neighboring rights to this software to
+- * the public domain worldwide. This software is distributed without
+- * any warranty.
+- *
+- * For details, see <http://creativecommons.org/publicdomain/zero/1.0/>.
+- * SPDX-License-Identifier: CC0-1.0
+- */
+-
+-#if !defined(JSON_HEDLEY_VERSION) || (JSON_HEDLEY_VERSION < 15)
+-#if defined(JSON_HEDLEY_VERSION)
+-    #undef JSON_HEDLEY_VERSION
+-#endif
+-#define JSON_HEDLEY_VERSION 15
+-
+-#if defined(JSON_HEDLEY_STRINGIFY_EX)
+-    #undef JSON_HEDLEY_STRINGIFY_EX
+-#endif
+-#define JSON_HEDLEY_STRINGIFY_EX(x) #x
+-
+-#if defined(JSON_HEDLEY_STRINGIFY)
+-    #undef JSON_HEDLEY_STRINGIFY
+-#endif
+-#define JSON_HEDLEY_STRINGIFY(x) JSON_HEDLEY_STRINGIFY_EX(x)
+-
+-#if defined(JSON_HEDLEY_CONCAT_EX)
+-    #undef JSON_HEDLEY_CONCAT_EX
+-#endif
+-#define JSON_HEDLEY_CONCAT_EX(a,b) a##b
+-
+-#if defined(JSON_HEDLEY_CONCAT)
+-    #undef JSON_HEDLEY_CONCAT
+-#endif
+-#define JSON_HEDLEY_CONCAT(a,b) JSON_HEDLEY_CONCAT_EX(a,b)
+-
+-#if defined(JSON_HEDLEY_CONCAT3_EX)
+-    #undef JSON_HEDLEY_CONCAT3_EX
+-#endif
+-#define JSON_HEDLEY_CONCAT3_EX(a,b,c) a##b##c
+-
+-#if defined(JSON_HEDLEY_CONCAT3)
+-    #undef JSON_HEDLEY_CONCAT3
+-#endif
+-#define JSON_HEDLEY_CONCAT3(a,b,c) JSON_HEDLEY_CONCAT3_EX(a,b,c)
+-
+-#if defined(JSON_HEDLEY_VERSION_ENCODE)
+-    #undef JSON_HEDLEY_VERSION_ENCODE
+-#endif
+-#define JSON_HEDLEY_VERSION_ENCODE(major,minor,revision) (((major) * 1000000) + ((minor) * 1000) + (revision))
+-
+-#if defined(JSON_HEDLEY_VERSION_DECODE_MAJOR)
+-    #undef JSON_HEDLEY_VERSION_DECODE_MAJOR
+-#endif
+-#define JSON_HEDLEY_VERSION_DECODE_MAJOR(version) ((version) / 1000000)
+-
+-#if defined(JSON_HEDLEY_VERSION_DECODE_MINOR)
+-    #undef JSON_HEDLEY_VERSION_DECODE_MINOR
+-#endif
+-#define JSON_HEDLEY_VERSION_DECODE_MINOR(version) (((version) % 1000000) / 1000)
+-
+-#if defined(JSON_HEDLEY_VERSION_DECODE_REVISION)
+-    #undef JSON_HEDLEY_VERSION_DECODE_REVISION
+-#endif
+-#define JSON_HEDLEY_VERSION_DECODE_REVISION(version) ((version) % 1000)
+-
+-#if defined(JSON_HEDLEY_GNUC_VERSION)
+-    #undef JSON_HEDLEY_GNUC_VERSION
+-#endif
+-#if defined(__GNUC__) && defined(__GNUC_PATCHLEVEL__)
+-    #define JSON_HEDLEY_GNUC_VERSION JSON_HEDLEY_VERSION_ENCODE(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__)
+-#elif defined(__GNUC__)
+-    #define JSON_HEDLEY_GNUC_VERSION JSON_HEDLEY_VERSION_ENCODE(__GNUC__, __GNUC_MINOR__, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_GNUC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_GNUC_VERSION)
+-    #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GNUC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MSVC_VERSION)
+-    #undef JSON_HEDLEY_MSVC_VERSION
+-#endif
+-#if defined(_MSC_FULL_VER) && (_MSC_FULL_VER >= 140000000) && !defined(__ICL)
+-    #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_FULL_VER / 10000000, (_MSC_FULL_VER % 10000000) / 100000, (_MSC_FULL_VER % 100000) / 100)
+-#elif defined(_MSC_FULL_VER) && !defined(__ICL)
+-    #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_FULL_VER / 1000000, (_MSC_FULL_VER % 1000000) / 10000, (_MSC_FULL_VER % 10000) / 10)
+-#elif defined(_MSC_VER) && !defined(__ICL)
+-    #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_VER / 100, _MSC_VER % 100, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MSVC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_MSVC_VERSION_CHECK
+-#endif
+-#if !defined(JSON_HEDLEY_MSVC_VERSION)
+-    #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (0)
+-#elif defined(_MSC_VER) && (_MSC_VER >= 1400)
+-    #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch)))
+-#elif defined(_MSC_VER) && (_MSC_VER >= 1200)
+-    #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch)))
+-#else
+-    #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_VER >= ((major * 100) + (minor)))
+-#endif
+-
+-#if defined(JSON_HEDLEY_INTEL_VERSION)
+-    #undef JSON_HEDLEY_INTEL_VERSION
+-#endif
+-#if defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE) && !defined(__ICL)
+-    #define JSON_HEDLEY_INTEL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, __INTEL_COMPILER_UPDATE)
+-#elif defined(__INTEL_COMPILER) && !defined(__ICL)
+-    #define JSON_HEDLEY_INTEL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_INTEL_VERSION_CHECK)
+-    #undef JSON_HEDLEY_INTEL_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_INTEL_VERSION)
+-    #define JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_INTEL_CL_VERSION)
+-    #undef JSON_HEDLEY_INTEL_CL_VERSION
+-#endif
+-#if defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE) && defined(__ICL)
+-    #define JSON_HEDLEY_INTEL_CL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER, __INTEL_COMPILER_UPDATE, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_INTEL_CL_VERSION_CHECK)
+-    #undef JSON_HEDLEY_INTEL_CL_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_INTEL_CL_VERSION)
+-    #define JSON_HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_CL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_PGI_VERSION)
+-    #undef JSON_HEDLEY_PGI_VERSION
+-#endif
+-#if defined(__PGI) && defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__)
+-    #define JSON_HEDLEY_PGI_VERSION JSON_HEDLEY_VERSION_ENCODE(__PGIC__, __PGIC_MINOR__, __PGIC_PATCHLEVEL__)
+-#endif
+-
+-#if defined(JSON_HEDLEY_PGI_VERSION_CHECK)
+-    #undef JSON_HEDLEY_PGI_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_PGI_VERSION)
+-    #define JSON_HEDLEY_PGI_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_PGI_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_PGI_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_SUNPRO_VERSION)
+-    #undef JSON_HEDLEY_SUNPRO_VERSION
+-#endif
+-#if defined(__SUNPRO_C) && (__SUNPRO_C > 0x1000)
+-    #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((((__SUNPRO_C >> 16) & 0xf) * 10) + ((__SUNPRO_C >> 12) & 0xf), (((__SUNPRO_C >> 8) & 0xf) * 10) + ((__SUNPRO_C >> 4) & 0xf), (__SUNPRO_C & 0xf) * 10)
+-#elif defined(__SUNPRO_C)
+-    #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((__SUNPRO_C >> 8) & 0xf, (__SUNPRO_C >> 4) & 0xf, (__SUNPRO_C) & 0xf)
+-#elif defined(__SUNPRO_CC) && (__SUNPRO_CC > 0x1000)
+-    #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((((__SUNPRO_CC >> 16) & 0xf) * 10) + ((__SUNPRO_CC >> 12) & 0xf), (((__SUNPRO_CC >> 8) & 0xf) * 10) + ((__SUNPRO_CC >> 4) & 0xf), (__SUNPRO_CC & 0xf) * 10)
+-#elif defined(__SUNPRO_CC)
+-    #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((__SUNPRO_CC >> 8) & 0xf, (__SUNPRO_CC >> 4) & 0xf, (__SUNPRO_CC) & 0xf)
+-#endif
+-
+-#if defined(JSON_HEDLEY_SUNPRO_VERSION_CHECK)
+-    #undef JSON_HEDLEY_SUNPRO_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_SUNPRO_VERSION)
+-    #define JSON_HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_SUNPRO_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION)
+-    #undef JSON_HEDLEY_EMSCRIPTEN_VERSION
+-#endif
+-#if defined(__EMSCRIPTEN__)
+-    #define JSON_HEDLEY_EMSCRIPTEN_VERSION JSON_HEDLEY_VERSION_ENCODE(__EMSCRIPTEN_major__, __EMSCRIPTEN_minor__, __EMSCRIPTEN_tiny__)
+-#endif
+-
+-#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK)
+-    #undef JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION)
+-    #define JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_EMSCRIPTEN_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_ARM_VERSION)
+-    #undef JSON_HEDLEY_ARM_VERSION
+-#endif
+-#if defined(__CC_ARM) && defined(__ARMCOMPILER_VERSION)
+-    #define JSON_HEDLEY_ARM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ARMCOMPILER_VERSION / 1000000, (__ARMCOMPILER_VERSION % 1000000) / 10000, (__ARMCOMPILER_VERSION % 10000) / 100)
+-#elif defined(__CC_ARM) && defined(__ARMCC_VERSION)
+-    #define JSON_HEDLEY_ARM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ARMCC_VERSION / 1000000, (__ARMCC_VERSION % 1000000) / 10000, (__ARMCC_VERSION % 10000) / 100)
+-#endif
+-
+-#if defined(JSON_HEDLEY_ARM_VERSION_CHECK)
+-    #undef JSON_HEDLEY_ARM_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_ARM_VERSION)
+-    #define JSON_HEDLEY_ARM_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_ARM_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_ARM_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_IBM_VERSION)
+-    #undef JSON_HEDLEY_IBM_VERSION
+-#endif
+-#if defined(__ibmxl__)
+-    #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ibmxl_version__, __ibmxl_release__, __ibmxl_modification__)
+-#elif defined(__xlC__) && defined(__xlC_ver__)
+-    #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__xlC__ >> 8, __xlC__ & 0xff, (__xlC_ver__ >> 8) & 0xff)
+-#elif defined(__xlC__)
+-    #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__xlC__ >> 8, __xlC__ & 0xff, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_IBM_VERSION_CHECK)
+-    #undef JSON_HEDLEY_IBM_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_IBM_VERSION)
+-    #define JSON_HEDLEY_IBM_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_IBM_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_IBM_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_VERSION)
+-    #undef JSON_HEDLEY_TI_VERSION
+-#endif
+-#if \
+-    defined(__TI_COMPILER_VERSION__) && \
+-    ( \
+-      defined(__TMS470__) || defined(__TI_ARM__) || \
+-      defined(__MSP430__) || \
+-      defined(__TMS320C2000__) \
+-    )
+-#if (__TI_COMPILER_VERSION__ >= 16000000)
+-    #define JSON_HEDLEY_TI_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_VERSION)
+-    #define JSON_HEDLEY_TI_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL2000_VERSION)
+-    #undef JSON_HEDLEY_TI_CL2000_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__TMS320C2000__)
+-    #define JSON_HEDLEY_TI_CL2000_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL2000_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CL2000_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CL2000_VERSION)
+-    #define JSON_HEDLEY_TI_CL2000_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL2000_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CL2000_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL430_VERSION)
+-    #undef JSON_HEDLEY_TI_CL430_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__MSP430__)
+-    #define JSON_HEDLEY_TI_CL430_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL430_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CL430_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CL430_VERSION)
+-    #define JSON_HEDLEY_TI_CL430_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL430_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CL430_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_ARMCL_VERSION)
+-    #undef JSON_HEDLEY_TI_ARMCL_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && (defined(__TMS470__) || defined(__TI_ARM__))
+-    #define JSON_HEDLEY_TI_ARMCL_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_ARMCL_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_ARMCL_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_ARMCL_VERSION)
+-    #define JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_ARMCL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL6X_VERSION)
+-    #undef JSON_HEDLEY_TI_CL6X_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__TMS320C6X__)
+-    #define JSON_HEDLEY_TI_CL6X_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL6X_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CL6X_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CL6X_VERSION)
+-    #define JSON_HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL6X_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL7X_VERSION)
+-    #undef JSON_HEDLEY_TI_CL7X_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__C7000__)
+-    #define JSON_HEDLEY_TI_CL7X_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CL7X_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CL7X_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CL7X_VERSION)
+-    #define JSON_HEDLEY_TI_CL7X_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL7X_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CL7X_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CLPRU_VERSION)
+-    #undef JSON_HEDLEY_TI_CLPRU_VERSION
+-#endif
+-#if defined(__TI_COMPILER_VERSION__) && defined(__PRU__)
+-    #define JSON_HEDLEY_TI_CLPRU_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
+-#endif
+-
+-#if defined(JSON_HEDLEY_TI_CLPRU_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TI_CLPRU_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TI_CLPRU_VERSION)
+-    #define JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CLPRU_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_CRAY_VERSION)
+-    #undef JSON_HEDLEY_CRAY_VERSION
+-#endif
+-#if defined(_CRAYC)
+-    #if defined(_RELEASE_PATCHLEVEL)
+-        #define JSON_HEDLEY_CRAY_VERSION JSON_HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, _RELEASE_PATCHLEVEL)
+-    #else
+-        #define JSON_HEDLEY_CRAY_VERSION JSON_HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, 0)
+-    #endif
+-#endif
+-
+-#if defined(JSON_HEDLEY_CRAY_VERSION_CHECK)
+-    #undef JSON_HEDLEY_CRAY_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_CRAY_VERSION)
+-    #define JSON_HEDLEY_CRAY_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_CRAY_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_CRAY_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_IAR_VERSION)
+-    #undef JSON_HEDLEY_IAR_VERSION
+-#endif
+-#if defined(__IAR_SYSTEMS_ICC__)
+-    #if __VER__ > 1000
+-        #define JSON_HEDLEY_IAR_VERSION JSON_HEDLEY_VERSION_ENCODE((__VER__ / 1000000), ((__VER__ / 1000) % 1000), (__VER__ % 1000))
+-    #else
+-        #define JSON_HEDLEY_IAR_VERSION JSON_HEDLEY_VERSION_ENCODE(__VER__ / 100, __VER__ % 100, 0)
+-    #endif
+-#endif
+-
+-#if defined(JSON_HEDLEY_IAR_VERSION_CHECK)
+-    #undef JSON_HEDLEY_IAR_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_IAR_VERSION)
+-    #define JSON_HEDLEY_IAR_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_IAR_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_IAR_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TINYC_VERSION)
+-    #undef JSON_HEDLEY_TINYC_VERSION
+-#endif
+-#if defined(__TINYC__)
+-    #define JSON_HEDLEY_TINYC_VERSION JSON_HEDLEY_VERSION_ENCODE(__TINYC__ / 1000, (__TINYC__ / 100) % 10, __TINYC__ % 100)
+-#endif
+-
+-#if defined(JSON_HEDLEY_TINYC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_TINYC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_TINYC_VERSION)
+-    #define JSON_HEDLEY_TINYC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TINYC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_TINYC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_DMC_VERSION)
+-    #undef JSON_HEDLEY_DMC_VERSION
+-#endif
+-#if defined(__DMC__)
+-    #define JSON_HEDLEY_DMC_VERSION JSON_HEDLEY_VERSION_ENCODE(__DMC__ >> 8, (__DMC__ >> 4) & 0xf, __DMC__ & 0xf)
+-#endif
+-
+-#if defined(JSON_HEDLEY_DMC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_DMC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_DMC_VERSION)
+-    #define JSON_HEDLEY_DMC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_DMC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_DMC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_COMPCERT_VERSION)
+-    #undef JSON_HEDLEY_COMPCERT_VERSION
+-#endif
+-#if defined(__COMPCERT_VERSION__)
+-    #define JSON_HEDLEY_COMPCERT_VERSION JSON_HEDLEY_VERSION_ENCODE(__COMPCERT_VERSION__ / 10000, (__COMPCERT_VERSION__ / 100) % 100, __COMPCERT_VERSION__ % 100)
+-#endif
+-
+-#if defined(JSON_HEDLEY_COMPCERT_VERSION_CHECK)
+-    #undef JSON_HEDLEY_COMPCERT_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_COMPCERT_VERSION)
+-    #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_COMPCERT_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_PELLES_VERSION)
+-    #undef JSON_HEDLEY_PELLES_VERSION
+-#endif
+-#if defined(__POCC__)
+-    #define JSON_HEDLEY_PELLES_VERSION JSON_HEDLEY_VERSION_ENCODE(__POCC__ / 100, __POCC__ % 100, 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_PELLES_VERSION_CHECK)
+-    #undef JSON_HEDLEY_PELLES_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_PELLES_VERSION)
+-    #define JSON_HEDLEY_PELLES_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_PELLES_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_PELLES_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MCST_LCC_VERSION)
+-    #undef JSON_HEDLEY_MCST_LCC_VERSION
+-#endif
+-#if defined(__LCC__) && defined(__LCC_MINOR__)
+-    #define JSON_HEDLEY_MCST_LCC_VERSION JSON_HEDLEY_VERSION_ENCODE(__LCC__ / 100, __LCC__ % 100, __LCC_MINOR__)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MCST_LCC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_MCST_LCC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_MCST_LCC_VERSION)
+-    #define JSON_HEDLEY_MCST_LCC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_MCST_LCC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_MCST_LCC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_VERSION)
+-    #undef JSON_HEDLEY_GCC_VERSION
+-#endif
+-#if \
+-    defined(JSON_HEDLEY_GNUC_VERSION) && \
+-    !defined(__clang__) && \
+-    !defined(JSON_HEDLEY_INTEL_VERSION) && \
+-    !defined(JSON_HEDLEY_PGI_VERSION) && \
+-    !defined(JSON_HEDLEY_ARM_VERSION) && \
+-    !defined(JSON_HEDLEY_CRAY_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_ARMCL_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CL430_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CL2000_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CL6X_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CL7X_VERSION) && \
+-    !defined(JSON_HEDLEY_TI_CLPRU_VERSION) && \
+-    !defined(__COMPCERT__) && \
+-    !defined(JSON_HEDLEY_MCST_LCC_VERSION)
+-    #define JSON_HEDLEY_GCC_VERSION JSON_HEDLEY_GNUC_VERSION
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_VERSION_CHECK)
+-    #undef JSON_HEDLEY_GCC_VERSION_CHECK
+-#endif
+-#if defined(JSON_HEDLEY_GCC_VERSION)
+-    #define JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GCC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
+-#else
+-    #define JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_ATTRIBUTE)
+-    #undef JSON_HEDLEY_HAS_ATTRIBUTE
+-#endif
+-#if \
+-  defined(__has_attribute) && \
+-  ( \
+-    (!defined(JSON_HEDLEY_IAR_VERSION) || JSON_HEDLEY_IAR_VERSION_CHECK(8,5,9)) \
+-  )
+-#  define JSON_HEDLEY_HAS_ATTRIBUTE(attribute) __has_attribute(attribute)
+-#else
+-#  define JSON_HEDLEY_HAS_ATTRIBUTE(attribute) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GNUC_HAS_ATTRIBUTE
+-#endif
+-#if defined(__has_attribute)
+-    #define JSON_HEDLEY_GNUC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_HAS_ATTRIBUTE(attribute)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GCC_HAS_ATTRIBUTE
+-#endif
+-#if defined(__has_attribute)
+-    #define JSON_HEDLEY_GCC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_HAS_ATTRIBUTE(attribute)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_CPP_ATTRIBUTE)
+-    #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE
+-#endif
+-#if \
+-    defined(__has_cpp_attribute) && \
+-    defined(__cplusplus) && \
+-    (!defined(JSON_HEDLEY_SUNPRO_VERSION) || JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0))
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute) __has_cpp_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS)
+-    #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS
+-#endif
+-#if !defined(__cplusplus) || !defined(__has_cpp_attribute)
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) (0)
+-#elif \
+-    !defined(JSON_HEDLEY_PGI_VERSION) && \
+-    !defined(JSON_HEDLEY_IAR_VERSION) && \
+-    (!defined(JSON_HEDLEY_SUNPRO_VERSION) || JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0)) && \
+-    (!defined(JSON_HEDLEY_MSVC_VERSION) || JSON_HEDLEY_MSVC_VERSION_CHECK(19,20,0))
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) JSON_HEDLEY_HAS_CPP_ATTRIBUTE(ns::attribute)
+-#else
+-    #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE
+-#endif
+-#if defined(__has_cpp_attribute) && defined(__cplusplus)
+-    #define JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) __has_cpp_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE
+-#endif
+-#if defined(__has_cpp_attribute) && defined(__cplusplus)
+-    #define JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) __has_cpp_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_BUILTIN)
+-    #undef JSON_HEDLEY_HAS_BUILTIN
+-#endif
+-#if defined(__has_builtin)
+-    #define JSON_HEDLEY_HAS_BUILTIN(builtin) __has_builtin(builtin)
+-#else
+-    #define JSON_HEDLEY_HAS_BUILTIN(builtin) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_BUILTIN)
+-    #undef JSON_HEDLEY_GNUC_HAS_BUILTIN
+-#endif
+-#if defined(__has_builtin)
+-    #define JSON_HEDLEY_GNUC_HAS_BUILTIN(builtin,major,minor,patch) __has_builtin(builtin)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_BUILTIN(builtin,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_BUILTIN)
+-    #undef JSON_HEDLEY_GCC_HAS_BUILTIN
+-#endif
+-#if defined(__has_builtin)
+-    #define JSON_HEDLEY_GCC_HAS_BUILTIN(builtin,major,minor,patch) __has_builtin(builtin)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_BUILTIN(builtin,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_FEATURE)
+-    #undef JSON_HEDLEY_HAS_FEATURE
+-#endif
+-#if defined(__has_feature)
+-    #define JSON_HEDLEY_HAS_FEATURE(feature) __has_feature(feature)
+-#else
+-    #define JSON_HEDLEY_HAS_FEATURE(feature) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_FEATURE)
+-    #undef JSON_HEDLEY_GNUC_HAS_FEATURE
+-#endif
+-#if defined(__has_feature)
+-    #define JSON_HEDLEY_GNUC_HAS_FEATURE(feature,major,minor,patch) __has_feature(feature)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_FEATURE(feature,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_FEATURE)
+-    #undef JSON_HEDLEY_GCC_HAS_FEATURE
+-#endif
+-#if defined(__has_feature)
+-    #define JSON_HEDLEY_GCC_HAS_FEATURE(feature,major,minor,patch) __has_feature(feature)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_FEATURE(feature,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_EXTENSION)
+-    #undef JSON_HEDLEY_HAS_EXTENSION
+-#endif
+-#if defined(__has_extension)
+-    #define JSON_HEDLEY_HAS_EXTENSION(extension) __has_extension(extension)
+-#else
+-    #define JSON_HEDLEY_HAS_EXTENSION(extension) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_EXTENSION)
+-    #undef JSON_HEDLEY_GNUC_HAS_EXTENSION
+-#endif
+-#if defined(__has_extension)
+-    #define JSON_HEDLEY_GNUC_HAS_EXTENSION(extension,major,minor,patch) __has_extension(extension)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_EXTENSION(extension,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_EXTENSION)
+-    #undef JSON_HEDLEY_GCC_HAS_EXTENSION
+-#endif
+-#if defined(__has_extension)
+-    #define JSON_HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) __has_extension(extension)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE)
+-    #undef JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE
+-#endif
+-#if defined(__has_declspec_attribute)
+-    #define JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) __has_declspec_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE
+-#endif
+-#if defined(__has_declspec_attribute)
+-    #define JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) __has_declspec_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE)
+-    #undef JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE
+-#endif
+-#if defined(__has_declspec_attribute)
+-    #define JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) __has_declspec_attribute(attribute)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_HAS_WARNING)
+-    #undef JSON_HEDLEY_HAS_WARNING
+-#endif
+-#if defined(__has_warning)
+-    #define JSON_HEDLEY_HAS_WARNING(warning) __has_warning(warning)
+-#else
+-    #define JSON_HEDLEY_HAS_WARNING(warning) (0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GNUC_HAS_WARNING)
+-    #undef JSON_HEDLEY_GNUC_HAS_WARNING
+-#endif
+-#if defined(__has_warning)
+-    #define JSON_HEDLEY_GNUC_HAS_WARNING(warning,major,minor,patch) __has_warning(warning)
+-#else
+-    #define JSON_HEDLEY_GNUC_HAS_WARNING(warning,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_GCC_HAS_WARNING)
+-    #undef JSON_HEDLEY_GCC_HAS_WARNING
+-#endif
+-#if defined(__has_warning)
+-    #define JSON_HEDLEY_GCC_HAS_WARNING(warning,major,minor,patch) __has_warning(warning)
+-#else
+-    #define JSON_HEDLEY_GCC_HAS_WARNING(warning,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if \
+-    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \
+-    defined(__clang__) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(18,4,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,7,0) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(2,0,1) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,1,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,0,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_CRAY_VERSION_CHECK(5,0,0) || \
+-    JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,17) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(8,0,0) || \
+-    (JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) && defined(__C99_PRAGMA_OPERATOR))
+-    #define JSON_HEDLEY_PRAGMA(value) _Pragma(#value)
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0)
+-    #define JSON_HEDLEY_PRAGMA(value) __pragma(value)
+-#else
+-    #define JSON_HEDLEY_PRAGMA(value)
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_PUSH)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_PUSH
+-#endif
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_POP)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_POP
+-#endif
+-#if defined(__clang__)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("clang diagnostic push")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("clang diagnostic pop")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("warning(push)")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("warning(pop)")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("GCC diagnostic push")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("GCC diagnostic pop")
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH __pragma(warning(push))
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP __pragma(warning(pop))
+-#elif JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("push")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("pop")
+-#elif \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,4,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,1,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("diag_push")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("diag_pop")
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,90,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("warning(push)")
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("warning(pop)")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_PUSH
+-    #define JSON_HEDLEY_DIAGNOSTIC_POP
+-#endif
+-
+-/* JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_ is for
+-   HEDLEY INTERNAL USE ONLY.  API subject to change without notice. */
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_
+-#endif
+-#if defined(__cplusplus)
+-#  if JSON_HEDLEY_HAS_WARNING("-Wc++98-compat")
+-#    if JSON_HEDLEY_HAS_WARNING("-Wc++17-extensions")
+-#      if JSON_HEDLEY_HAS_WARNING("-Wc++1z-extensions")
+-#        define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \
+-    _Pragma("clang diagnostic ignored \"-Wc++17-extensions\"") \
+-    _Pragma("clang diagnostic ignored \"-Wc++1z-extensions\"") \
+-    xpr \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#      else
+-#        define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \
+-    _Pragma("clang diagnostic ignored \"-Wc++17-extensions\"") \
+-    xpr \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#      endif
+-#    else
+-#      define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \
+-    xpr \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#    endif
+-#  endif
+-#endif
+-#if !defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(x) x
+-#endif
+-
+-#if defined(JSON_HEDLEY_CONST_CAST)
+-    #undef JSON_HEDLEY_CONST_CAST
+-#endif
+-#if defined(__cplusplus)
+-#  define JSON_HEDLEY_CONST_CAST(T, expr) (const_cast<T>(expr))
+-#elif \
+-  JSON_HEDLEY_HAS_WARNING("-Wcast-qual") || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-#  define JSON_HEDLEY_CONST_CAST(T, expr) (__extension__ ({ \
+-        JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-        JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL \
+-        ((T) (expr)); \
+-        JSON_HEDLEY_DIAGNOSTIC_POP \
+-    }))
+-#else
+-#  define JSON_HEDLEY_CONST_CAST(T, expr) ((T) (expr))
+-#endif
+-
+-#if defined(JSON_HEDLEY_REINTERPRET_CAST)
+-    #undef JSON_HEDLEY_REINTERPRET_CAST
+-#endif
+-#if defined(__cplusplus)
+-    #define JSON_HEDLEY_REINTERPRET_CAST(T, expr) (reinterpret_cast<T>(expr))
+-#else
+-    #define JSON_HEDLEY_REINTERPRET_CAST(T, expr) ((T) (expr))
+-#endif
+-
+-#if defined(JSON_HEDLEY_STATIC_CAST)
+-    #undef JSON_HEDLEY_STATIC_CAST
+-#endif
+-#if defined(__cplusplus)
+-    #define JSON_HEDLEY_STATIC_CAST(T, expr) (static_cast<T>(expr))
+-#else
+-    #define JSON_HEDLEY_STATIC_CAST(T, expr) ((T) (expr))
+-#endif
+-
+-#if defined(JSON_HEDLEY_CPP_CAST)
+-    #undef JSON_HEDLEY_CPP_CAST
+-#endif
+-#if defined(__cplusplus)
+-#  if JSON_HEDLEY_HAS_WARNING("-Wold-style-cast")
+-#    define JSON_HEDLEY_CPP_CAST(T, expr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wold-style-cast\"") \
+-    ((T) (expr)) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#  elif JSON_HEDLEY_IAR_VERSION_CHECK(8,3,0)
+-#    define JSON_HEDLEY_CPP_CAST(T, expr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("diag_suppress=Pe137") \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#  else
+-#    define JSON_HEDLEY_CPP_CAST(T, expr) ((T) (expr))
+-#  endif
+-#else
+-#  define JSON_HEDLEY_CPP_CAST(T, expr) (expr)
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wdeprecated-declarations")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("warning(disable:1478 1786)")
+-#elif JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED __pragma(warning(disable:1478 1786))
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(20,7,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1216,1444,1445")
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1444")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED __pragma(warning(disable:4996))
+-#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1444")
+-#elif \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1291,1718")
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) && !defined(__cplusplus)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("error_messages(off,E_DEPRECATED_ATT,E_DEPRECATED_ATT_MESS)")
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) && defined(__cplusplus)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("error_messages(off,symdeprecated,symdeprecated2)")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress=Pe1444,Pe1215")
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,90,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("warn(disable:2241)")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("clang diagnostic ignored \"-Wunknown-pragmas\"")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("warning(disable:161)")
+-#elif JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS __pragma(warning(disable:161))
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 1675")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("GCC diagnostic ignored \"-Wunknown-pragmas\"")
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS __pragma(warning(disable:4068))
+-#elif \
+-    JSON_HEDLEY_TI_VERSION_CHECK(16,9,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,3,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 163")
+-#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 163")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress=Pe161")
+-#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 161")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunknown-attributes")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("clang diagnostic ignored \"-Wunknown-attributes\"")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(17,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("warning(disable:1292)")
+-#elif JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES __pragma(warning(disable:1292))
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(19,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES __pragma(warning(disable:5030))
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(20,7,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097,1098")
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097")
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,14,0) && defined(__cplusplus)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("error_messages(off,attrskipunsup)")
+-#elif \
+-    JSON_HEDLEY_TI_VERSION_CHECK(18,1,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,3,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1173")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress=Pe1097")
+-#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wcast-qual")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("clang diagnostic ignored \"-Wcast-qual\"")
+-#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("warning(disable:2203 2331)")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("GCC diagnostic ignored \"-Wcast-qual\"")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL
+-#endif
+-
+-#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION)
+-    #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunused-function")
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("clang diagnostic ignored \"-Wunused-function\"")
+-#elif JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("GCC diagnostic ignored \"-Wunused-function\"")
+-#elif JSON_HEDLEY_MSVC_VERSION_CHECK(1,0,0)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION __pragma(warning(disable:4505))
+-#elif JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("diag_suppress 3142")
+-#else
+-    #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION
+-#endif
+-
+-#if defined(JSON_HEDLEY_DEPRECATED)
+-    #undef JSON_HEDLEY_DEPRECATED
+-#endif
+-#if defined(JSON_HEDLEY_DEPRECATED_FOR)
+-    #undef JSON_HEDLEY_DEPRECATED_FOR
+-#endif
+-#if \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DEPRECATED(since) __declspec(deprecated("Since " # since))
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __declspec(deprecated("Since " #since "; use " #replacement))
+-#elif \
+-    (JSON_HEDLEY_HAS_EXTENSION(attribute_deprecated_with_message) && !defined(JSON_HEDLEY_IAR_VERSION)) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,5,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(18,1,0) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(18,1,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,3,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,3,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_DEPRECATED(since) __attribute__((__deprecated__("Since " #since)))
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __attribute__((__deprecated__("Since " #since "; use " #replacement)))
+-#elif defined(__cplusplus) && (__cplusplus >= 201402L)
+-    #define JSON_HEDLEY_DEPRECATED(since) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[deprecated("Since " #since)]])
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[deprecated("Since " #since "; use " #replacement)]])
+-#elif \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(deprecated) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0)
+-    #define JSON_HEDLEY_DEPRECATED(since) __attribute__((__deprecated__))
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __attribute__((__deprecated__))
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
+-    JSON_HEDLEY_PELLES_VERSION_CHECK(6,50,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_DEPRECATED(since) __declspec(deprecated)
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __declspec(deprecated)
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_DEPRECATED(since) _Pragma("deprecated")
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) _Pragma("deprecated")
+-#else
+-    #define JSON_HEDLEY_DEPRECATED(since)
+-    #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement)
+-#endif
+-
+-#if defined(JSON_HEDLEY_UNAVAILABLE)
+-    #undef JSON_HEDLEY_UNAVAILABLE
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(warning) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_UNAVAILABLE(available_since) __attribute__((__warning__("Not available until " #available_since)))
+-#else
+-    #define JSON_HEDLEY_UNAVAILABLE(available_since)
+-#endif
+-
+-#if defined(JSON_HEDLEY_WARN_UNUSED_RESULT)
+-    #undef JSON_HEDLEY_WARN_UNUSED_RESULT
+-#endif
+-#if defined(JSON_HEDLEY_WARN_UNUSED_RESULT_MSG)
+-    #undef JSON_HEDLEY_WARN_UNUSED_RESULT_MSG
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(warn_unused_result) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0) && defined(__cplusplus)) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) __attribute__((__warn_unused_result__))
+-#elif (JSON_HEDLEY_HAS_CPP_ATTRIBUTE(nodiscard) >= 201907L)
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]])
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard(msg)]])
+-#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE(nodiscard)
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]])
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]])
+-#elif defined(_Check_return_) /* SAL */
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT _Check_return_
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) _Check_return_
+-#else
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT
+-    #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg)
+-#endif
+-
+-#if defined(JSON_HEDLEY_SENTINEL)
+-    #undef JSON_HEDLEY_SENTINEL
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(sentinel) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(5,4,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_SENTINEL(position) __attribute__((__sentinel__(position)))
+-#else
+-    #define JSON_HEDLEY_SENTINEL(position)
+-#endif
+-
+-#if defined(JSON_HEDLEY_NO_RETURN)
+-    #undef JSON_HEDLEY_NO_RETURN
+-#endif
+-#if JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_NO_RETURN __noreturn
+-#elif \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_NO_RETURN __attribute__((__noreturn__))
+-#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
+-    #define JSON_HEDLEY_NO_RETURN _Noreturn
+-#elif defined(__cplusplus) && (__cplusplus >= 201103L)
+-    #define JSON_HEDLEY_NO_RETURN JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[noreturn]])
+-#elif \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(noreturn) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,2,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0)
+-    #define JSON_HEDLEY_NO_RETURN __attribute__((__noreturn__))
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
+-    #define JSON_HEDLEY_NO_RETURN _Pragma("does_not_return")
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_NO_RETURN __declspec(noreturn)
+-#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,0,0) && defined(__cplusplus)
+-    #define JSON_HEDLEY_NO_RETURN _Pragma("FUNC_NEVER_RETURNS;")
+-#elif JSON_HEDLEY_COMPCERT_VERSION_CHECK(3,2,0)
+-    #define JSON_HEDLEY_NO_RETURN __attribute((noreturn))
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(9,0,0)
+-    #define JSON_HEDLEY_NO_RETURN __declspec(noreturn)
+-#else
+-    #define JSON_HEDLEY_NO_RETURN
+-#endif
+-
+-#if defined(JSON_HEDLEY_NO_ESCAPE)
+-    #undef JSON_HEDLEY_NO_ESCAPE
+-#endif
+-#if JSON_HEDLEY_HAS_ATTRIBUTE(noescape)
+-    #define JSON_HEDLEY_NO_ESCAPE __attribute__((__noescape__))
+-#else
+-    #define JSON_HEDLEY_NO_ESCAPE
+-#endif
+-
+-#if defined(JSON_HEDLEY_UNREACHABLE)
+-    #undef JSON_HEDLEY_UNREACHABLE
+-#endif
+-#if defined(JSON_HEDLEY_UNREACHABLE_RETURN)
+-    #undef JSON_HEDLEY_UNREACHABLE_RETURN
+-#endif
+-#if defined(JSON_HEDLEY_ASSUME)
+-    #undef JSON_HEDLEY_ASSUME
+-#endif
+-#if \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_ASSUME(expr) __assume(expr)
+-#elif JSON_HEDLEY_HAS_BUILTIN(__builtin_assume)
+-    #define JSON_HEDLEY_ASSUME(expr) __builtin_assume(expr)
+-#elif \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0)
+-    #if defined(__cplusplus)
+-        #define JSON_HEDLEY_ASSUME(expr) std::_nassert(expr)
+-    #else
+-        #define JSON_HEDLEY_ASSUME(expr) _nassert(expr)
+-    #endif
+-#endif
+-#if \
+-    (JSON_HEDLEY_HAS_BUILTIN(__builtin_unreachable) && (!defined(JSON_HEDLEY_ARM_VERSION))) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,5,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(18,10,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(13,1,5) || \
+-    JSON_HEDLEY_CRAY_VERSION_CHECK(10,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_UNREACHABLE() __builtin_unreachable()
+-#elif defined(JSON_HEDLEY_ASSUME)
+-    #define JSON_HEDLEY_UNREACHABLE() JSON_HEDLEY_ASSUME(0)
+-#endif
+-#if !defined(JSON_HEDLEY_ASSUME)
+-    #if defined(JSON_HEDLEY_UNREACHABLE)
+-        #define JSON_HEDLEY_ASSUME(expr) JSON_HEDLEY_STATIC_CAST(void, ((expr) ? 1 : (JSON_HEDLEY_UNREACHABLE(), 1)))
+-    #else
+-        #define JSON_HEDLEY_ASSUME(expr) JSON_HEDLEY_STATIC_CAST(void, expr)
+-    #endif
+-#endif
+-#if defined(JSON_HEDLEY_UNREACHABLE)
+-    #if  \
+-        JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \
+-        JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0)
+-        #define JSON_HEDLEY_UNREACHABLE_RETURN(value) return (JSON_HEDLEY_STATIC_CAST(void, JSON_HEDLEY_ASSUME(0)), (value))
+-    #else
+-        #define JSON_HEDLEY_UNREACHABLE_RETURN(value) JSON_HEDLEY_UNREACHABLE()
+-    #endif
+-#else
+-    #define JSON_HEDLEY_UNREACHABLE_RETURN(value) return (value)
+-#endif
+-#if !defined(JSON_HEDLEY_UNREACHABLE)
+-    #define JSON_HEDLEY_UNREACHABLE() JSON_HEDLEY_ASSUME(0)
+-#endif
+-
+-JSON_HEDLEY_DIAGNOSTIC_PUSH
+-#if JSON_HEDLEY_HAS_WARNING("-Wpedantic")
+-    #pragma clang diagnostic ignored "-Wpedantic"
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wc++98-compat-pedantic") && defined(__cplusplus)
+-    #pragma clang diagnostic ignored "-Wc++98-compat-pedantic"
+-#endif
+-#if JSON_HEDLEY_GCC_HAS_WARNING("-Wvariadic-macros",4,0,0)
+-    #if defined(__clang__)
+-        #pragma clang diagnostic ignored "-Wvariadic-macros"
+-    #elif defined(JSON_HEDLEY_GCC_VERSION)
+-        #pragma GCC diagnostic ignored "-Wvariadic-macros"
+-    #endif
+-#endif
+-#if defined(JSON_HEDLEY_NON_NULL)
+-    #undef JSON_HEDLEY_NON_NULL
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(nonnull) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0)
+-    #define JSON_HEDLEY_NON_NULL(...) __attribute__((__nonnull__(__VA_ARGS__)))
+-#else
+-    #define JSON_HEDLEY_NON_NULL(...)
+-#endif
+-JSON_HEDLEY_DIAGNOSTIC_POP
+-
+-#if defined(JSON_HEDLEY_PRINTF_FORMAT)
+-    #undef JSON_HEDLEY_PRINTF_FORMAT
+-#endif
+-#if defined(__MINGW32__) && JSON_HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && !defined(__USE_MINGW_ANSI_STDIO)
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(ms_printf, string_idx, first_to_check)))
+-#elif defined(__MINGW32__) && JSON_HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && defined(__USE_MINGW_ANSI_STDIO)
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(gnu_printf, string_idx, first_to_check)))
+-#elif \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(format) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(__printf__, string_idx, first_to_check)))
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(6,0,0)
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __declspec(vaformat(printf,string_idx,first_to_check))
+-#else
+-    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check)
+-#endif
+-
+-#if defined(JSON_HEDLEY_CONSTEXPR)
+-    #undef JSON_HEDLEY_CONSTEXPR
+-#endif
+-#if defined(__cplusplus)
+-    #if __cplusplus >= 201103L
+-        #define JSON_HEDLEY_CONSTEXPR JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(constexpr)
+-    #endif
+-#endif
+-#if !defined(JSON_HEDLEY_CONSTEXPR)
+-    #define JSON_HEDLEY_CONSTEXPR
+-#endif
+-
+-#if defined(JSON_HEDLEY_PREDICT)
+-    #undef JSON_HEDLEY_PREDICT
+-#endif
+-#if defined(JSON_HEDLEY_LIKELY)
+-    #undef JSON_HEDLEY_LIKELY
+-#endif
+-#if defined(JSON_HEDLEY_UNLIKELY)
+-    #undef JSON_HEDLEY_UNLIKELY
+-#endif
+-#if defined(JSON_HEDLEY_UNPREDICTABLE)
+-    #undef JSON_HEDLEY_UNPREDICTABLE
+-#endif
+-#if JSON_HEDLEY_HAS_BUILTIN(__builtin_unpredictable)
+-    #define JSON_HEDLEY_UNPREDICTABLE(expr) __builtin_unpredictable((expr))
+-#endif
+-#if \
+-  (JSON_HEDLEY_HAS_BUILTIN(__builtin_expect_with_probability) && !defined(JSON_HEDLEY_PGI_VERSION)) || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(9,0,0) || \
+-  JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-#  define JSON_HEDLEY_PREDICT(expr, value, probability) __builtin_expect_with_probability(  (expr), (value), (probability))
+-#  define JSON_HEDLEY_PREDICT_TRUE(expr, probability)   __builtin_expect_with_probability(!!(expr),    1   , (probability))
+-#  define JSON_HEDLEY_PREDICT_FALSE(expr, probability)  __builtin_expect_with_probability(!!(expr),    0   , (probability))
+-#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
+-#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
+-#elif \
+-  (JSON_HEDLEY_HAS_BUILTIN(__builtin_expect) && !defined(JSON_HEDLEY_INTEL_CL_VERSION)) || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-  (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0) && defined(__cplusplus)) || \
+-  JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-  JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-  JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-  JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,7,0) || \
+-  JSON_HEDLEY_TI_CL430_VERSION_CHECK(3,1,0) || \
+-  JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,1,0) || \
+-  JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \
+-  JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-  JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-  JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,27) || \
+-  JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \
+-  JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-#  define JSON_HEDLEY_PREDICT(expr, expected, probability) \
+-    (((probability) >= 0.9) ? __builtin_expect((expr), (expected)) : (JSON_HEDLEY_STATIC_CAST(void, expected), (expr)))
+-#  define JSON_HEDLEY_PREDICT_TRUE(expr, probability) \
+-    (__extension__ ({ \
+-        double hedley_probability_ = (probability); \
+-        ((hedley_probability_ >= 0.9) ? __builtin_expect(!!(expr), 1) : ((hedley_probability_ <= 0.1) ? __builtin_expect(!!(expr), 0) : !!(expr))); \
+-    }))
+-#  define JSON_HEDLEY_PREDICT_FALSE(expr, probability) \
+-    (__extension__ ({ \
+-        double hedley_probability_ = (probability); \
+-        ((hedley_probability_ >= 0.9) ? __builtin_expect(!!(expr), 0) : ((hedley_probability_ <= 0.1) ? __builtin_expect(!!(expr), 1) : !!(expr))); \
+-    }))
+-#  define JSON_HEDLEY_LIKELY(expr)   __builtin_expect(!!(expr), 1)
+-#  define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect(!!(expr), 0)
+-#else
+-#  define JSON_HEDLEY_PREDICT(expr, expected, probability) (JSON_HEDLEY_STATIC_CAST(void, expected), (expr))
+-#  define JSON_HEDLEY_PREDICT_TRUE(expr, probability) (!!(expr))
+-#  define JSON_HEDLEY_PREDICT_FALSE(expr, probability) (!!(expr))
+-#  define JSON_HEDLEY_LIKELY(expr) (!!(expr))
+-#  define JSON_HEDLEY_UNLIKELY(expr) (!!(expr))
+-#endif
+-#if !defined(JSON_HEDLEY_UNPREDICTABLE)
+-    #define JSON_HEDLEY_UNPREDICTABLE(expr) JSON_HEDLEY_PREDICT(expr, 1, 0.5)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MALLOC)
+-    #undef JSON_HEDLEY_MALLOC
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(malloc) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(12,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_MALLOC __attribute__((__malloc__))
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
+-    #define JSON_HEDLEY_MALLOC _Pragma("returns_new_memory")
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_MALLOC __declspec(restrict)
+-#else
+-    #define JSON_HEDLEY_MALLOC
+-#endif
+-
+-#if defined(JSON_HEDLEY_PURE)
+-    #undef JSON_HEDLEY_PURE
+-#endif
+-#if \
+-  JSON_HEDLEY_HAS_ATTRIBUTE(pure) || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(2,96,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-  JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-  JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-  JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-  JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-  (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-  (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-  (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-  (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-  JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-  JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-  JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-  JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-#  define JSON_HEDLEY_PURE __attribute__((__pure__))
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
+-#  define JSON_HEDLEY_PURE _Pragma("does_not_write_global_data")
+-#elif defined(__cplusplus) && \
+-    ( \
+-      JSON_HEDLEY_TI_CL430_VERSION_CHECK(2,0,1) || \
+-      JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0) || \
+-      JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) \
+-    )
+-#  define JSON_HEDLEY_PURE _Pragma("FUNC_IS_PURE;")
+-#else
+-#  define JSON_HEDLEY_PURE
+-#endif
+-
+-#if defined(JSON_HEDLEY_CONST)
+-    #undef JSON_HEDLEY_CONST
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(const) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(2,5,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_CONST __attribute__((__const__))
+-#elif \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
+-    #define JSON_HEDLEY_CONST _Pragma("no_side_effect")
+-#else
+-    #define JSON_HEDLEY_CONST JSON_HEDLEY_PURE
+-#endif
+-
+-#if defined(JSON_HEDLEY_RESTRICT)
+-    #undef JSON_HEDLEY_RESTRICT
+-#endif
+-#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && !defined(__cplusplus)
+-    #define JSON_HEDLEY_RESTRICT restrict
+-#elif \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,4) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,1,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,14,0) && defined(__cplusplus)) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) || \
+-    defined(__clang__) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_RESTRICT __restrict
+-#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,3,0) && !defined(__cplusplus)
+-    #define JSON_HEDLEY_RESTRICT _Restrict
+-#else
+-    #define JSON_HEDLEY_RESTRICT
+-#endif
+-
+-#if defined(JSON_HEDLEY_INLINE)
+-    #undef JSON_HEDLEY_INLINE
+-#endif
+-#if \
+-    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \
+-    (defined(__cplusplus) && (__cplusplus >= 199711L))
+-    #define JSON_HEDLEY_INLINE inline
+-#elif \
+-    defined(JSON_HEDLEY_GCC_VERSION) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(6,2,0)
+-    #define JSON_HEDLEY_INLINE __inline__
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(12,0,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,1,0) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(3,1,0) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_INLINE __inline
+-#else
+-    #define JSON_HEDLEY_INLINE
+-#endif
+-
+-#if defined(JSON_HEDLEY_ALWAYS_INLINE)
+-    #undef JSON_HEDLEY_ALWAYS_INLINE
+-#endif
+-#if \
+-  JSON_HEDLEY_HAS_ATTRIBUTE(always_inline) || \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-  JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-  JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-  JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-  JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-  (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-  (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-  (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-  (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-  JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-  JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-  JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-  JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \
+-  JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0)
+-#  define JSON_HEDLEY_ALWAYS_INLINE __attribute__((__always_inline__)) JSON_HEDLEY_INLINE
+-#elif \
+-  JSON_HEDLEY_MSVC_VERSION_CHECK(12,0,0) || \
+-  JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-#  define JSON_HEDLEY_ALWAYS_INLINE __forceinline
+-#elif defined(__cplusplus) && \
+-    ( \
+-      JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-      JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-      JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-      JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \
+-      JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-      JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) \
+-    )
+-#  define JSON_HEDLEY_ALWAYS_INLINE _Pragma("FUNC_ALWAYS_INLINE;")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-#  define JSON_HEDLEY_ALWAYS_INLINE _Pragma("inline=forced")
+-#else
+-#  define JSON_HEDLEY_ALWAYS_INLINE JSON_HEDLEY_INLINE
+-#endif
+-
+-#if defined(JSON_HEDLEY_NEVER_INLINE)
+-    #undef JSON_HEDLEY_NEVER_INLINE
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(noinline) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
+-    JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \
+-    (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
+-    (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
+-    (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
+-    (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
+-    JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
+-    JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \
+-    JSON_HEDLEY_IAR_VERSION_CHECK(8,10,0)
+-    #define JSON_HEDLEY_NEVER_INLINE __attribute__((__noinline__))
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_NEVER_INLINE __declspec(noinline)
+-#elif JSON_HEDLEY_PGI_VERSION_CHECK(10,2,0)
+-    #define JSON_HEDLEY_NEVER_INLINE _Pragma("noinline")
+-#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,0,0) && defined(__cplusplus)
+-    #define JSON_HEDLEY_NEVER_INLINE _Pragma("FUNC_CANNOT_INLINE;")
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-    #define JSON_HEDLEY_NEVER_INLINE _Pragma("inline=never")
+-#elif JSON_HEDLEY_COMPCERT_VERSION_CHECK(3,2,0)
+-    #define JSON_HEDLEY_NEVER_INLINE __attribute((noinline))
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(9,0,0)
+-    #define JSON_HEDLEY_NEVER_INLINE __declspec(noinline)
+-#else
+-    #define JSON_HEDLEY_NEVER_INLINE
+-#endif
+-
+-#if defined(JSON_HEDLEY_PRIVATE)
+-    #undef JSON_HEDLEY_PRIVATE
+-#endif
+-#if defined(JSON_HEDLEY_PUBLIC)
+-    #undef JSON_HEDLEY_PUBLIC
+-#endif
+-#if defined(JSON_HEDLEY_IMPORT)
+-    #undef JSON_HEDLEY_IMPORT
+-#endif
+-#if defined(_WIN32) || defined(__CYGWIN__)
+-#  define JSON_HEDLEY_PRIVATE
+-#  define JSON_HEDLEY_PUBLIC   __declspec(dllexport)
+-#  define JSON_HEDLEY_IMPORT   __declspec(dllimport)
+-#else
+-#  if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(visibility) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
+-    JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \
+-    ( \
+-      defined(__TI_EABI__) && \
+-      ( \
+-        (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
+-        JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) \
+-      ) \
+-    ) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-#    define JSON_HEDLEY_PRIVATE __attribute__((__visibility__("hidden")))
+-#    define JSON_HEDLEY_PUBLIC  __attribute__((__visibility__("default")))
+-#  else
+-#    define JSON_HEDLEY_PRIVATE
+-#    define JSON_HEDLEY_PUBLIC
+-#  endif
+-#  define JSON_HEDLEY_IMPORT    extern
+-#endif
+-
+-#if defined(JSON_HEDLEY_NO_THROW)
+-    #undef JSON_HEDLEY_NO_THROW
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(nothrow) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_NO_THROW __attribute__((__nothrow__))
+-#elif \
+-    JSON_HEDLEY_MSVC_VERSION_CHECK(13,1,0) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0)
+-    #define JSON_HEDLEY_NO_THROW __declspec(nothrow)
+-#else
+-    #define JSON_HEDLEY_NO_THROW
+-#endif
+-
+-#if defined(JSON_HEDLEY_FALL_THROUGH)
+-    #undef JSON_HEDLEY_FALL_THROUGH
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(fallthrough) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(7,0,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_FALL_THROUGH __attribute__((__fallthrough__))
+-#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(clang,fallthrough)
+-    #define JSON_HEDLEY_FALL_THROUGH JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[clang::fallthrough]])
+-#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE(fallthrough)
+-    #define JSON_HEDLEY_FALL_THROUGH JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[fallthrough]])
+-#elif defined(__fallthrough) /* SAL */
+-    #define JSON_HEDLEY_FALL_THROUGH __fallthrough
+-#else
+-    #define JSON_HEDLEY_FALL_THROUGH
+-#endif
+-
+-#if defined(JSON_HEDLEY_RETURNS_NON_NULL)
+-    #undef JSON_HEDLEY_RETURNS_NON_NULL
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_ATTRIBUTE(returns_nonnull) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_RETURNS_NON_NULL __attribute__((__returns_nonnull__))
+-#elif defined(_Ret_notnull_) /* SAL */
+-    #define JSON_HEDLEY_RETURNS_NON_NULL _Ret_notnull_
+-#else
+-    #define JSON_HEDLEY_RETURNS_NON_NULL
+-#endif
+-
+-#if defined(JSON_HEDLEY_ARRAY_PARAM)
+-    #undef JSON_HEDLEY_ARRAY_PARAM
+-#endif
+-#if \
+-    defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && \
+-    !defined(__STDC_NO_VLA__) && \
+-    !defined(__cplusplus) && \
+-    !defined(JSON_HEDLEY_PGI_VERSION) && \
+-    !defined(JSON_HEDLEY_TINYC_VERSION)
+-    #define JSON_HEDLEY_ARRAY_PARAM(name) (name)
+-#else
+-    #define JSON_HEDLEY_ARRAY_PARAM(name)
+-#endif
+-
+-#if defined(JSON_HEDLEY_IS_CONSTANT)
+-    #undef JSON_HEDLEY_IS_CONSTANT
+-#endif
+-#if defined(JSON_HEDLEY_REQUIRE_CONSTEXPR)
+-    #undef JSON_HEDLEY_REQUIRE_CONSTEXPR
+-#endif
+-/* JSON_HEDLEY_IS_CONSTEXPR_ is for
+-   HEDLEY INTERNAL USE ONLY.  API subject to change without notice. */
+-#if defined(JSON_HEDLEY_IS_CONSTEXPR_)
+-    #undef JSON_HEDLEY_IS_CONSTEXPR_
+-#endif
+-#if \
+-    JSON_HEDLEY_HAS_BUILTIN(__builtin_constant_p) || \
+-    JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \
+-    JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-    JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,19) || \
+-    JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
+-    JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \
+-    JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \
+-    (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) && !defined(__cplusplus)) || \
+-    JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \
+-    JSON_HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
+-    #define JSON_HEDLEY_IS_CONSTANT(expr) __builtin_constant_p(expr)
+-#endif
+-#if !defined(__cplusplus)
+-#  if \
+-       JSON_HEDLEY_HAS_BUILTIN(__builtin_types_compatible_p) || \
+-       JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \
+-       JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-       JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \
+-       JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \
+-       JSON_HEDLEY_ARM_VERSION_CHECK(5,4,0) || \
+-       JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,24)
+-#if defined(__INTPTR_TYPE__)
+-    #define JSON_HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0)), int*)
+-#else
+-    #include <stdint.h>
+-    #define JSON_HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((intptr_t) ((expr) * 0)) : (int*) 0)), int*)
+-#endif
+-#  elif \
+-       ( \
+-          defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) && \
+-          !defined(JSON_HEDLEY_SUNPRO_VERSION) && \
+-          !defined(JSON_HEDLEY_PGI_VERSION) && \
+-          !defined(JSON_HEDLEY_IAR_VERSION)) || \
+-       (JSON_HEDLEY_HAS_EXTENSION(c_generic_selections) && !defined(JSON_HEDLEY_IAR_VERSION)) || \
+-       JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0) || \
+-       JSON_HEDLEY_INTEL_VERSION_CHECK(17,0,0) || \
+-       JSON_HEDLEY_IBM_VERSION_CHECK(12,1,0) || \
+-       JSON_HEDLEY_ARM_VERSION_CHECK(5,3,0)
+-#if defined(__INTPTR_TYPE__)
+-    #define JSON_HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0), int*: 1, void*: 0)
+-#else
+-    #include <stdint.h>
+-    #define JSON_HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((intptr_t) * 0) : (int*) 0), int*: 1, void*: 0)
+-#endif
+-#  elif \
+-       defined(JSON_HEDLEY_GCC_VERSION) || \
+-       defined(JSON_HEDLEY_INTEL_VERSION) || \
+-       defined(JSON_HEDLEY_TINYC_VERSION) || \
+-       defined(JSON_HEDLEY_TI_ARMCL_VERSION) || \
+-       JSON_HEDLEY_TI_CL430_VERSION_CHECK(18,12,0) || \
+-       defined(JSON_HEDLEY_TI_CL2000_VERSION) || \
+-       defined(JSON_HEDLEY_TI_CL6X_VERSION) || \
+-       defined(JSON_HEDLEY_TI_CL7X_VERSION) || \
+-       defined(JSON_HEDLEY_TI_CLPRU_VERSION) || \
+-       defined(__clang__)
+-#    define JSON_HEDLEY_IS_CONSTEXPR_(expr) ( \
+-        sizeof(void) != \
+-        sizeof(*( \
+-                  1 ? \
+-                  ((void*) ((expr) * 0L) ) : \
+-((struct { char v[sizeof(void) * 2]; } *) 1) \
+-                ) \
+-              ) \
+-                                            )
+-#  endif
+-#endif
+-#if defined(JSON_HEDLEY_IS_CONSTEXPR_)
+-    #if !defined(JSON_HEDLEY_IS_CONSTANT)
+-        #define JSON_HEDLEY_IS_CONSTANT(expr) JSON_HEDLEY_IS_CONSTEXPR_(expr)
+-    #endif
+-    #define JSON_HEDLEY_REQUIRE_CONSTEXPR(expr) (JSON_HEDLEY_IS_CONSTEXPR_(expr) ? (expr) : (-1))
+-#else
+-    #if !defined(JSON_HEDLEY_IS_CONSTANT)
+-        #define JSON_HEDLEY_IS_CONSTANT(expr) (0)
+-    #endif
+-    #define JSON_HEDLEY_REQUIRE_CONSTEXPR(expr) (expr)
+-#endif
+-
+-#if defined(JSON_HEDLEY_BEGIN_C_DECLS)
+-    #undef JSON_HEDLEY_BEGIN_C_DECLS
+-#endif
+-#if defined(JSON_HEDLEY_END_C_DECLS)
+-    #undef JSON_HEDLEY_END_C_DECLS
+-#endif
+-#if defined(JSON_HEDLEY_C_DECL)
+-    #undef JSON_HEDLEY_C_DECL
+-#endif
+-#if defined(__cplusplus)
+-    #define JSON_HEDLEY_BEGIN_C_DECLS extern "C" {
+-    #define JSON_HEDLEY_END_C_DECLS }
+-    #define JSON_HEDLEY_C_DECL extern "C"
+-#else
+-    #define JSON_HEDLEY_BEGIN_C_DECLS
+-    #define JSON_HEDLEY_END_C_DECLS
+-    #define JSON_HEDLEY_C_DECL
+-#endif
+-
+-#if defined(JSON_HEDLEY_STATIC_ASSERT)
+-    #undef JSON_HEDLEY_STATIC_ASSERT
+-#endif
+-#if \
+-  !defined(__cplusplus) && ( \
+-      (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)) || \
+-      (JSON_HEDLEY_HAS_FEATURE(c_static_assert) && !defined(JSON_HEDLEY_INTEL_CL_VERSION)) || \
+-      JSON_HEDLEY_GCC_VERSION_CHECK(6,0,0) || \
+-      JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
+-      defined(_Static_assert) \
+-    )
+-#  define JSON_HEDLEY_STATIC_ASSERT(expr, message) _Static_assert(expr, message)
+-#elif \
+-  (defined(__cplusplus) && (__cplusplus >= 201103L)) || \
+-  JSON_HEDLEY_MSVC_VERSION_CHECK(16,0,0) || \
+-  JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-#  define JSON_HEDLEY_STATIC_ASSERT(expr, message) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(static_assert(expr, message))
+-#else
+-#  define JSON_HEDLEY_STATIC_ASSERT(expr, message)
+-#endif
+-
+-#if defined(JSON_HEDLEY_NULL)
+-    #undef JSON_HEDLEY_NULL
+-#endif
+-#if defined(__cplusplus)
+-    #if __cplusplus >= 201103L
+-        #define JSON_HEDLEY_NULL JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(nullptr)
+-    #elif defined(NULL)
+-        #define JSON_HEDLEY_NULL NULL
+-    #else
+-        #define JSON_HEDLEY_NULL JSON_HEDLEY_STATIC_CAST(void*, 0)
+-    #endif
+-#elif defined(NULL)
+-    #define JSON_HEDLEY_NULL NULL
+-#else
+-    #define JSON_HEDLEY_NULL ((void*) 0)
+-#endif
+-
+-#if defined(JSON_HEDLEY_MESSAGE)
+-    #undef JSON_HEDLEY_MESSAGE
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas")
+-#  define JSON_HEDLEY_MESSAGE(msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS \
+-    JSON_HEDLEY_PRAGMA(message msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#elif \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(4,4,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-#  define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message msg)
+-#elif JSON_HEDLEY_CRAY_VERSION_CHECK(5,0,0)
+-#  define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(_CRI message msg)
+-#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0)
+-#  define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message(msg))
+-#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,0,0)
+-#  define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message(msg))
+-#else
+-#  define JSON_HEDLEY_MESSAGE(msg)
+-#endif
+-
+-#if defined(JSON_HEDLEY_WARNING)
+-    #undef JSON_HEDLEY_WARNING
+-#endif
+-#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas")
+-#  define JSON_HEDLEY_WARNING(msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS \
+-    JSON_HEDLEY_PRAGMA(clang warning msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#elif \
+-  JSON_HEDLEY_GCC_VERSION_CHECK(4,8,0) || \
+-  JSON_HEDLEY_PGI_VERSION_CHECK(18,4,0) || \
+-  JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0)
+-#  define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_PRAGMA(GCC warning msg)
+-#elif \
+-  JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) || \
+-  JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-#  define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_PRAGMA(message(msg))
+-#else
+-#  define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_MESSAGE(msg)
+-#endif
+-
+-#if defined(JSON_HEDLEY_REQUIRE)
+-    #undef JSON_HEDLEY_REQUIRE
+-#endif
+-#if defined(JSON_HEDLEY_REQUIRE_MSG)
+-    #undef JSON_HEDLEY_REQUIRE_MSG
+-#endif
+-#if JSON_HEDLEY_HAS_ATTRIBUTE(diagnose_if)
+-#  if JSON_HEDLEY_HAS_WARNING("-Wgcc-compat")
+-#    define JSON_HEDLEY_REQUIRE(expr) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wgcc-compat\"") \
+-    __attribute__((diagnose_if(!(expr), #expr, "error"))) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#    define JSON_HEDLEY_REQUIRE_MSG(expr,msg) \
+-    JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-    _Pragma("clang diagnostic ignored \"-Wgcc-compat\"") \
+-    __attribute__((diagnose_if(!(expr), msg, "error"))) \
+-    JSON_HEDLEY_DIAGNOSTIC_POP
+-#  else
+-#    define JSON_HEDLEY_REQUIRE(expr) __attribute__((diagnose_if(!(expr), #expr, "error")))
+-#    define JSON_HEDLEY_REQUIRE_MSG(expr,msg) __attribute__((diagnose_if(!(expr), msg, "error")))
+-#  endif
+-#else
+-#  define JSON_HEDLEY_REQUIRE(expr)
+-#  define JSON_HEDLEY_REQUIRE_MSG(expr,msg)
+-#endif
+-
+-#if defined(JSON_HEDLEY_FLAGS)
+-    #undef JSON_HEDLEY_FLAGS
+-#endif
+-#if JSON_HEDLEY_HAS_ATTRIBUTE(flag_enum) && (!defined(__cplusplus) || JSON_HEDLEY_HAS_WARNING("-Wbitfield-enum-conversion"))
+-    #define JSON_HEDLEY_FLAGS __attribute__((__flag_enum__))
+-#else
+-    #define JSON_HEDLEY_FLAGS
+-#endif
+-
+-#if defined(JSON_HEDLEY_FLAGS_CAST)
+-    #undef JSON_HEDLEY_FLAGS_CAST
+-#endif
+-#if JSON_HEDLEY_INTEL_VERSION_CHECK(19,0,0)
+-#  define JSON_HEDLEY_FLAGS_CAST(T, expr) (__extension__ ({ \
+-        JSON_HEDLEY_DIAGNOSTIC_PUSH \
+-        _Pragma("warning(disable:188)") \
+-        ((T) (expr)); \
+-        JSON_HEDLEY_DIAGNOSTIC_POP \
+-    }))
+-#else
+-#  define JSON_HEDLEY_FLAGS_CAST(T, expr) JSON_HEDLEY_STATIC_CAST(T, expr)
+-#endif
+-
+-#if defined(JSON_HEDLEY_EMPTY_BASES)
+-    #undef JSON_HEDLEY_EMPTY_BASES
+-#endif
+-#if \
+-    (JSON_HEDLEY_MSVC_VERSION_CHECK(19,0,23918) && !JSON_HEDLEY_MSVC_VERSION_CHECK(20,0,0)) || \
+-    JSON_HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
+-    #define JSON_HEDLEY_EMPTY_BASES __declspec(empty_bases)
+-#else
+-    #define JSON_HEDLEY_EMPTY_BASES
+-#endif
+-
+-/* Remaining macros are deprecated. */
+-
+-#if defined(JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK)
+-    #undef JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK
+-#endif
+-#if defined(__clang__)
+-    #define JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK(major,minor,patch) (0)
+-#else
+-    #define JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK(major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
+-#endif
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_ATTRIBUTE)
+-    #undef JSON_HEDLEY_CLANG_HAS_ATTRIBUTE
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_ATTRIBUTE(attribute)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE)
+-    #undef JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_BUILTIN)
+-    #undef JSON_HEDLEY_CLANG_HAS_BUILTIN
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_BUILTIN(builtin) JSON_HEDLEY_HAS_BUILTIN(builtin)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_FEATURE)
+-    #undef JSON_HEDLEY_CLANG_HAS_FEATURE
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_FEATURE(feature) JSON_HEDLEY_HAS_FEATURE(feature)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_EXTENSION)
+-    #undef JSON_HEDLEY_CLANG_HAS_EXTENSION
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_EXTENSION(extension) JSON_HEDLEY_HAS_EXTENSION(extension)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE)
+-    #undef JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_DECLSPEC_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute)
+-
+-#if defined(JSON_HEDLEY_CLANG_HAS_WARNING)
+-    #undef JSON_HEDLEY_CLANG_HAS_WARNING
+-#endif
+-#define JSON_HEDLEY_CLANG_HAS_WARNING(warning) JSON_HEDLEY_HAS_WARNING(warning)
+-
+-#endif /* !defined(JSON_HEDLEY_VERSION) || (JSON_HEDLEY_VERSION < X) */
+-
+-// #include <nlohmann/detail/meta/detected.hpp>
+-
+-
+-#include <type_traits>
+-
+-// #include <nlohmann/detail/meta/void_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename ...Ts> struct make_void
+-{
+-    using type = void;
+-};
+-template<typename ...Ts> using void_t = typename make_void<Ts...>::type;
+-} // namespace detail
+-}  // namespace nlohmann
+-
+-
+-// https://en.cppreference.com/w/cpp/experimental/is_detected
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-struct nonesuch
+-{
+-    nonesuch() = delete;
+-    ~nonesuch() = delete;
+-    nonesuch(nonesuch const&) = delete;
+-    nonesuch(nonesuch const&&) = delete;
+-    void operator=(nonesuch const&) = delete;
+-    void operator=(nonesuch&&) = delete;
+-};
+-
+-template<class Default,
+-         class AlwaysVoid,
+-         template<class...> class Op,
+-         class... Args>
+-struct detector
+-{
+-    using value_t = std::false_type;
+-    using type = Default;
+-};
+-
+-template<class Default, template<class...> class Op, class... Args>
+-struct detector<Default, void_t<Op<Args...>>, Op, Args...>
+-{
+-    using value_t = std::true_type;
+-    using type = Op<Args...>;
+-};
+-
+-template<template<class...> class Op, class... Args>
+-using is_detected = typename detector<nonesuch, void, Op, Args...>::value_t;
+-
+-template<template<class...> class Op, class... Args>
+-struct is_detected_lazy : is_detected<Op, Args...> { };
+-
+-template<template<class...> class Op, class... Args>
+-using detected_t = typename detector<nonesuch, void, Op, Args...>::type;
+-
+-template<class Default, template<class...> class Op, class... Args>
+-using detected_or = detector<Default, void, Op, Args...>;
+-
+-template<class Default, template<class...> class Op, class... Args>
+-using detected_or_t = typename detected_or<Default, Op, Args...>::type;
+-
+-template<class Expected, template<class...> class Op, class... Args>
+-using is_detected_exact = std::is_same<Expected, detected_t<Op, Args...>>;
+-
+-template<class To, template<class...> class Op, class... Args>
+-using is_detected_convertible =
+-    std::is_convertible<detected_t<Op, Args...>, To>;
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-
+-// This file contains all internal macro definitions
+-// You MUST include macro_unscope.hpp at the end of json.hpp to undef all of them
+-
+-// exclude unsupported compilers
+-#if !defined(JSON_SKIP_UNSUPPORTED_COMPILER_CHECK)
+-    #if defined(__clang__)
+-        #if (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__) < 30400
+-            #error "unsupported Clang version - see https://github.com/nlohmann/json#supported-compilers"
+-        #endif
+-    #elif defined(__GNUC__) && !(defined(__ICC) || defined(__INTEL_COMPILER))
+-        #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) < 40800
+-            #error "unsupported GCC version - see https://github.com/nlohmann/json#supported-compilers"
+-        #endif
+-    #endif
+-#endif
+-
+-// C++ language standard detection
+-// if the user manually specified the used c++ version this is skipped
+-#if !defined(JSON_HAS_CPP_20) && !defined(JSON_HAS_CPP_17) && !defined(JSON_HAS_CPP_14) && !defined(JSON_HAS_CPP_11)
+-    #if (defined(__cplusplus) && __cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L)
+-        #define JSON_HAS_CPP_20
+-        #define JSON_HAS_CPP_17
+-        #define JSON_HAS_CPP_14
+-    #elif (defined(__cplusplus) && __cplusplus >= 201703L) || (defined(_HAS_CXX17) && _HAS_CXX17 == 1) // fix for issue #464
+-        #define JSON_HAS_CPP_17
+-        #define JSON_HAS_CPP_14
+-    #elif (defined(__cplusplus) && __cplusplus >= 201402L) || (defined(_HAS_CXX14) && _HAS_CXX14 == 1)
+-        #define JSON_HAS_CPP_14
+-    #endif
+-    // the cpp 11 flag is always specified because it is the minimal required version
+-    #define JSON_HAS_CPP_11
+-#endif
+-
+-#if !defined(JSON_HAS_FILESYSTEM) && !defined(JSON_HAS_EXPERIMENTAL_FILESYSTEM)
+-    #ifdef JSON_HAS_CPP_17
+-        #if defined(__cpp_lib_filesystem)
+-            #define JSON_HAS_FILESYSTEM 1
+-        #elif defined(__cpp_lib_experimental_filesystem)
+-            #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1
+-        #elif !defined(__has_include)
+-            #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1
+-        #elif __has_include(<filesystem>)
+-            #define JSON_HAS_FILESYSTEM 1
+-        #elif __has_include(<experimental/filesystem>)
+-            #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1
+-        #endif
+-
+-        // std::filesystem does not work on MinGW GCC 8: https://sourceforge.net/p/mingw-w64/bugs/737/
+-        #if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ == 8
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before GCC 8: https://en.cppreference.com/w/cpp/compiler_support
+-        #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before Clang 7: https://en.cppreference.com/w/cpp/compiler_support
+-        #if defined(__clang_major__) && __clang_major__ < 7
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before MSVC 19.14: https://en.cppreference.com/w/cpp/compiler_support
+-        #if defined(_MSC_VER) && _MSC_VER < 1940
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before iOS 13
+-        #if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED < 130000
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-
+-        // no filesystem support before macOS Catalina
+-        #if defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101500
+-            #undef JSON_HAS_FILESYSTEM
+-            #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-        #endif
+-    #endif
+-#endif
+-
+-#ifndef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-    #define JSON_HAS_EXPERIMENTAL_FILESYSTEM 0
+-#endif
+-
+-#ifndef JSON_HAS_FILESYSTEM
+-    #define JSON_HAS_FILESYSTEM 0
+-#endif
+-
+-// disable documentation warnings on clang
+-#if defined(__clang__)
+-    #pragma clang diagnostic push
+-    #pragma clang diagnostic ignored "-Wdocumentation"
+-    #pragma clang diagnostic ignored "-Wdocumentation-unknown-command"
+-#endif
+-
+-// allow disabling exceptions
+-#if (defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND)) && !defined(JSON_NOEXCEPTION)
+-    #define JSON_THROW(exception) throw exception
+-    #define JSON_TRY try
+-    #define JSON_CATCH(exception) catch(exception)
+-    #define JSON_INTERNAL_CATCH(exception) catch(exception)
+-#else
+-    #include <cstdlib>
+-    #define JSON_THROW(exception) std::abort()
+-    #define JSON_TRY if(true)
+-    #define JSON_CATCH(exception) if(false)
+-    #define JSON_INTERNAL_CATCH(exception) if(false)
+-#endif
+-
+-// override exception macros
+-#if defined(JSON_THROW_USER)
+-    #undef JSON_THROW
+-    #define JSON_THROW JSON_THROW_USER
+-#endif
+-#if defined(JSON_TRY_USER)
+-    #undef JSON_TRY
+-    #define JSON_TRY JSON_TRY_USER
+-#endif
+-#if defined(JSON_CATCH_USER)
+-    #undef JSON_CATCH
+-    #define JSON_CATCH JSON_CATCH_USER
+-    #undef JSON_INTERNAL_CATCH
+-    #define JSON_INTERNAL_CATCH JSON_CATCH_USER
+-#endif
+-#if defined(JSON_INTERNAL_CATCH_USER)
+-    #undef JSON_INTERNAL_CATCH
+-    #define JSON_INTERNAL_CATCH JSON_INTERNAL_CATCH_USER
+-#endif
+-
+-// allow overriding assert
+-#if !defined(JSON_ASSERT)
+-    #include <cassert> // assert
+-    #define JSON_ASSERT(x) assert(x)
+-#endif
+-
+-// allow to access some private functions (needed by the test suite)
+-#if defined(JSON_TESTS_PRIVATE)
+-    #define JSON_PRIVATE_UNLESS_TESTED public
+-#else
+-    #define JSON_PRIVATE_UNLESS_TESTED private
+-#endif
+-
+-/*!
+-@brief macro to briefly define a mapping between an enum and JSON
+-@def NLOHMANN_JSON_SERIALIZE_ENUM
+-@since version 3.4.0
+-*/
+-#define NLOHMANN_JSON_SERIALIZE_ENUM(ENUM_TYPE, ...)                                            \
+-    template<typename BasicJsonType>                                                            \
+-    inline void to_json(BasicJsonType& j, const ENUM_TYPE& e)                                   \
+-    {                                                                                           \
+-        static_assert(std::is_enum<ENUM_TYPE>::value, #ENUM_TYPE " must be an enum!");          \
+-        static const std::pair<ENUM_TYPE, BasicJsonType> m[] = __VA_ARGS__;                     \
+-        auto it = std::find_if(std::begin(m), std::end(m),                                      \
+-                               [e](const std::pair<ENUM_TYPE, BasicJsonType>& ej_pair) -> bool  \
+-        {                                                                                       \
+-            return ej_pair.first == e;                                                          \
+-        });                                                                                     \
+-        j = ((it != std::end(m)) ? it : std::begin(m))->second;                                 \
+-    }                                                                                           \
+-    template<typename BasicJsonType>                                                            \
+-    inline void from_json(const BasicJsonType& j, ENUM_TYPE& e)                                 \
+-    {                                                                                           \
+-        static_assert(std::is_enum<ENUM_TYPE>::value, #ENUM_TYPE " must be an enum!");          \
+-        static const std::pair<ENUM_TYPE, BasicJsonType> m[] = __VA_ARGS__;                     \
+-        auto it = std::find_if(std::begin(m), std::end(m),                                      \
+-                               [&j](const std::pair<ENUM_TYPE, BasicJsonType>& ej_pair) -> bool \
+-        {                                                                                       \
+-            return ej_pair.second == j;                                                         \
+-        });                                                                                     \
+-        e = ((it != std::end(m)) ? it : std::begin(m))->first;                                  \
+-    }
+-
+-// Ugly macros to avoid uglier copy-paste when specializing basic_json. They
+-// may be removed in the future once the class is split.
+-
+-#define NLOHMANN_BASIC_JSON_TPL_DECLARATION                                \
+-    template<template<typename, typename, typename...> class ObjectType,   \
+-             template<typename, typename...> class ArrayType,              \
+-             class StringType, class BooleanType, class NumberIntegerType, \
+-             class NumberUnsignedType, class NumberFloatType,              \
+-             template<typename> class AllocatorType,                       \
+-             template<typename, typename = void> class JSONSerializer,     \
+-             class BinaryType>
+-
+-#define NLOHMANN_BASIC_JSON_TPL                                            \
+-    basic_json<ObjectType, ArrayType, StringType, BooleanType,             \
+-    NumberIntegerType, NumberUnsignedType, NumberFloatType,                \
+-    AllocatorType, JSONSerializer, BinaryType>
+-
+-// Macros to simplify conversion from/to types
+-
+-#define NLOHMANN_JSON_EXPAND( x ) x
+-#define NLOHMANN_JSON_GET_MACRO(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, NAME,...) NAME
+-#define NLOHMANN_JSON_PASTE(...) NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_GET_MACRO(__VA_ARGS__, \
+-        NLOHMANN_JSON_PASTE64, \
+-        NLOHMANN_JSON_PASTE63, \
+-        NLOHMANN_JSON_PASTE62, \
+-        NLOHMANN_JSON_PASTE61, \
+-        NLOHMANN_JSON_PASTE60, \
+-        NLOHMANN_JSON_PASTE59, \
+-        NLOHMANN_JSON_PASTE58, \
+-        NLOHMANN_JSON_PASTE57, \
+-        NLOHMANN_JSON_PASTE56, \
+-        NLOHMANN_JSON_PASTE55, \
+-        NLOHMANN_JSON_PASTE54, \
+-        NLOHMANN_JSON_PASTE53, \
+-        NLOHMANN_JSON_PASTE52, \
+-        NLOHMANN_JSON_PASTE51, \
+-        NLOHMANN_JSON_PASTE50, \
+-        NLOHMANN_JSON_PASTE49, \
+-        NLOHMANN_JSON_PASTE48, \
+-        NLOHMANN_JSON_PASTE47, \
+-        NLOHMANN_JSON_PASTE46, \
+-        NLOHMANN_JSON_PASTE45, \
+-        NLOHMANN_JSON_PASTE44, \
+-        NLOHMANN_JSON_PASTE43, \
+-        NLOHMANN_JSON_PASTE42, \
+-        NLOHMANN_JSON_PASTE41, \
+-        NLOHMANN_JSON_PASTE40, \
+-        NLOHMANN_JSON_PASTE39, \
+-        NLOHMANN_JSON_PASTE38, \
+-        NLOHMANN_JSON_PASTE37, \
+-        NLOHMANN_JSON_PASTE36, \
+-        NLOHMANN_JSON_PASTE35, \
+-        NLOHMANN_JSON_PASTE34, \
+-        NLOHMANN_JSON_PASTE33, \
+-        NLOHMANN_JSON_PASTE32, \
+-        NLOHMANN_JSON_PASTE31, \
+-        NLOHMANN_JSON_PASTE30, \
+-        NLOHMANN_JSON_PASTE29, \
+-        NLOHMANN_JSON_PASTE28, \
+-        NLOHMANN_JSON_PASTE27, \
+-        NLOHMANN_JSON_PASTE26, \
+-        NLOHMANN_JSON_PASTE25, \
+-        NLOHMANN_JSON_PASTE24, \
+-        NLOHMANN_JSON_PASTE23, \
+-        NLOHMANN_JSON_PASTE22, \
+-        NLOHMANN_JSON_PASTE21, \
+-        NLOHMANN_JSON_PASTE20, \
+-        NLOHMANN_JSON_PASTE19, \
+-        NLOHMANN_JSON_PASTE18, \
+-        NLOHMANN_JSON_PASTE17, \
+-        NLOHMANN_JSON_PASTE16, \
+-        NLOHMANN_JSON_PASTE15, \
+-        NLOHMANN_JSON_PASTE14, \
+-        NLOHMANN_JSON_PASTE13, \
+-        NLOHMANN_JSON_PASTE12, \
+-        NLOHMANN_JSON_PASTE11, \
+-        NLOHMANN_JSON_PASTE10, \
+-        NLOHMANN_JSON_PASTE9, \
+-        NLOHMANN_JSON_PASTE8, \
+-        NLOHMANN_JSON_PASTE7, \
+-        NLOHMANN_JSON_PASTE6, \
+-        NLOHMANN_JSON_PASTE5, \
+-        NLOHMANN_JSON_PASTE4, \
+-        NLOHMANN_JSON_PASTE3, \
+-        NLOHMANN_JSON_PASTE2, \
+-        NLOHMANN_JSON_PASTE1)(__VA_ARGS__))
+-#define NLOHMANN_JSON_PASTE2(func, v1) func(v1)
+-#define NLOHMANN_JSON_PASTE3(func, v1, v2) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE2(func, v2)
+-#define NLOHMANN_JSON_PASTE4(func, v1, v2, v3) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE3(func, v2, v3)
+-#define NLOHMANN_JSON_PASTE5(func, v1, v2, v3, v4) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE4(func, v2, v3, v4)
+-#define NLOHMANN_JSON_PASTE6(func, v1, v2, v3, v4, v5) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE5(func, v2, v3, v4, v5)
+-#define NLOHMANN_JSON_PASTE7(func, v1, v2, v3, v4, v5, v6) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE6(func, v2, v3, v4, v5, v6)
+-#define NLOHMANN_JSON_PASTE8(func, v1, v2, v3, v4, v5, v6, v7) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE7(func, v2, v3, v4, v5, v6, v7)
+-#define NLOHMANN_JSON_PASTE9(func, v1, v2, v3, v4, v5, v6, v7, v8) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE8(func, v2, v3, v4, v5, v6, v7, v8)
+-#define NLOHMANN_JSON_PASTE10(func, v1, v2, v3, v4, v5, v6, v7, v8, v9) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE9(func, v2, v3, v4, v5, v6, v7, v8, v9)
+-#define NLOHMANN_JSON_PASTE11(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE10(func, v2, v3, v4, v5, v6, v7, v8, v9, v10)
+-#define NLOHMANN_JSON_PASTE12(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE11(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11)
+-#define NLOHMANN_JSON_PASTE13(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE12(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12)
+-#define NLOHMANN_JSON_PASTE14(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE13(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13)
+-#define NLOHMANN_JSON_PASTE15(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE14(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14)
+-#define NLOHMANN_JSON_PASTE16(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE15(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15)
+-#define NLOHMANN_JSON_PASTE17(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE16(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16)
+-#define NLOHMANN_JSON_PASTE18(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE17(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17)
+-#define NLOHMANN_JSON_PASTE19(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE18(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18)
+-#define NLOHMANN_JSON_PASTE20(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE19(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19)
+-#define NLOHMANN_JSON_PASTE21(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE20(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20)
+-#define NLOHMANN_JSON_PASTE22(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE21(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21)
+-#define NLOHMANN_JSON_PASTE23(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE22(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22)
+-#define NLOHMANN_JSON_PASTE24(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE23(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23)
+-#define NLOHMANN_JSON_PASTE25(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE24(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24)
+-#define NLOHMANN_JSON_PASTE26(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE25(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25)
+-#define NLOHMANN_JSON_PASTE27(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE26(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26)
+-#define NLOHMANN_JSON_PASTE28(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE27(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27)
+-#define NLOHMANN_JSON_PASTE29(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE28(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28)
+-#define NLOHMANN_JSON_PASTE30(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE29(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29)
+-#define NLOHMANN_JSON_PASTE31(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE30(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30)
+-#define NLOHMANN_JSON_PASTE32(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE31(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31)
+-#define NLOHMANN_JSON_PASTE33(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE32(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32)
+-#define NLOHMANN_JSON_PASTE34(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE33(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33)
+-#define NLOHMANN_JSON_PASTE35(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE34(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34)
+-#define NLOHMANN_JSON_PASTE36(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE35(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35)
+-#define NLOHMANN_JSON_PASTE37(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE36(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36)
+-#define NLOHMANN_JSON_PASTE38(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE37(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37)
+-#define NLOHMANN_JSON_PASTE39(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE38(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38)
+-#define NLOHMANN_JSON_PASTE40(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE39(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39)
+-#define NLOHMANN_JSON_PASTE41(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE40(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40)
+-#define NLOHMANN_JSON_PASTE42(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE41(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41)
+-#define NLOHMANN_JSON_PASTE43(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE42(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42)
+-#define NLOHMANN_JSON_PASTE44(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE43(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43)
+-#define NLOHMANN_JSON_PASTE45(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE44(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44)
+-#define NLOHMANN_JSON_PASTE46(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE45(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45)
+-#define NLOHMANN_JSON_PASTE47(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE46(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46)
+-#define NLOHMANN_JSON_PASTE48(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE47(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47)
+-#define NLOHMANN_JSON_PASTE49(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE48(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48)
+-#define NLOHMANN_JSON_PASTE50(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE49(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49)
+-#define NLOHMANN_JSON_PASTE51(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE50(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50)
+-#define NLOHMANN_JSON_PASTE52(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE51(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51)
+-#define NLOHMANN_JSON_PASTE53(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE52(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52)
+-#define NLOHMANN_JSON_PASTE54(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE53(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53)
+-#define NLOHMANN_JSON_PASTE55(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE54(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54)
+-#define NLOHMANN_JSON_PASTE56(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE55(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55)
+-#define NLOHMANN_JSON_PASTE57(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE56(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56)
+-#define NLOHMANN_JSON_PASTE58(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE57(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57)
+-#define NLOHMANN_JSON_PASTE59(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE58(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58)
+-#define NLOHMANN_JSON_PASTE60(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE59(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59)
+-#define NLOHMANN_JSON_PASTE61(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE60(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60)
+-#define NLOHMANN_JSON_PASTE62(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE61(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61)
+-#define NLOHMANN_JSON_PASTE63(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE62(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62)
+-#define NLOHMANN_JSON_PASTE64(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE63(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63)
+-
+-#define NLOHMANN_JSON_TO(v1) nlohmann_json_j[#v1] = nlohmann_json_t.v1;
+-#define NLOHMANN_JSON_FROM(v1) nlohmann_json_j.at(#v1).get_to(nlohmann_json_t.v1);
+-
+-/*!
+-@brief macro
+-@def NLOHMANN_DEFINE_TYPE_INTRUSIVE
+-@since version 3.9.0
+-*/
+-#define NLOHMANN_DEFINE_TYPE_INTRUSIVE(Type, ...)  \
+-    friend void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \
+-    friend void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) }
+-
+-/*!
+-@brief macro
+-@def NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE
+-@since version 3.9.0
+-*/
+-#define NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Type, ...)  \
+-    inline void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \
+-    inline void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) }
+-
+-
+-// inspired from https://stackoverflow.com/a/26745591
+-// allows to call any std function as if (e.g. with begin):
+-// using std::begin; begin(x);
+-//
+-// it allows using the detected idiom to retrieve the return type
+-// of such an expression
+-#define NLOHMANN_CAN_CALL_STD_FUNC_IMPL(std_name)                                 \
+-    namespace detail {                                                            \
+-    using std::std_name;                                                          \
+-    \
+-    template<typename... T>                                                       \
+-    using result_of_##std_name = decltype(std_name(std::declval<T>()...));        \
+-    }                                                                             \
+-    \
+-    namespace detail2 {                                                           \
+-    struct std_name##_tag                                                         \
+-    {                                                                             \
+-    };                                                                            \
+-    \
+-    template<typename... T>                                                       \
+-    std_name##_tag std_name(T&&...);                                              \
+-    \
+-    template<typename... T>                                                       \
+-    using result_of_##std_name = decltype(std_name(std::declval<T>()...));        \
+-    \
+-    template<typename... T>                                                       \
+-    struct would_call_std_##std_name                                              \
+-    {                                                                             \
+-        static constexpr auto const value = ::nlohmann::detail::                  \
+-                                            is_detected_exact<std_name##_tag, result_of_##std_name, T...>::value; \
+-    };                                                                            \
+-    } /* namespace detail2 */ \
+-    \
+-    template<typename... T>                                                       \
+-    struct would_call_std_##std_name : detail2::would_call_std_##std_name<T...>   \
+-    {                                                                             \
+-    }
+-
+-#ifndef JSON_USE_IMPLICIT_CONVERSIONS
+-    #define JSON_USE_IMPLICIT_CONVERSIONS 1
+-#endif
+-
+-#if JSON_USE_IMPLICIT_CONVERSIONS
+-    #define JSON_EXPLICIT
+-#else
+-    #define JSON_EXPLICIT explicit
+-#endif
+-
+-#ifndef JSON_DIAGNOSTICS
+-    #define JSON_DIAGNOSTICS 0
+-#endif
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-/*!
+-@brief replace all occurrences of a substring by another string
+-
+-@param[in,out] s  the string to manipulate; changed so that all
+-               occurrences of @a f are replaced with @a t
+-@param[in]     f  the substring to replace with @a t
+-@param[in]     t  the string to replace @a f
+-
+-@pre The search string @a f must not be empty. **This precondition is
+-enforced with an assertion.**
+-
+-@since version 2.0.0
+-*/
+-inline void replace_substring(std::string& s, const std::string& f,
+-                              const std::string& t)
+-{
+-    JSON_ASSERT(!f.empty());
+-    for (auto pos = s.find(f);                // find first occurrence of f
+-            pos != std::string::npos;         // make sure f was found
+-            s.replace(pos, f.size(), t),      // replace with t, and
+-            pos = s.find(f, pos + t.size()))  // find next occurrence of f
+-    {}
+-}
+-
+-/*!
+- * @brief string escaping as described in RFC 6901 (Sect. 4)
+- * @param[in] s string to escape
+- * @return    escaped string
+- *
+- * Note the order of escaping "~" to "~0" and "/" to "~1" is important.
+- */
+-inline std::string escape(std::string s)
+-{
+-    replace_substring(s, "~", "~0");
+-    replace_substring(s, "/", "~1");
+-    return s;
+-}
+-
+-/*!
+- * @brief string unescaping as described in RFC 6901 (Sect. 4)
+- * @param[in] s string to unescape
+- * @return    unescaped string
+- *
+- * Note the order of escaping "~1" to "/" and "~0" to "~" is important.
+- */
+-static void unescape(std::string& s)
+-{
+-    replace_substring(s, "~1", "/");
+-    replace_substring(s, "~0", "~");
+-}
+-
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/position_t.hpp>
+-
+-
+-#include <cstddef> // size_t
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/// struct to capture the start position of the current token
+-struct position_t
+-{
+-    /// the total number of characters read
+-    std::size_t chars_read_total = 0;
+-    /// the number of characters read in the current line
+-    std::size_t chars_read_current_line = 0;
+-    /// the number of lines read
+-    std::size_t lines_read = 0;
+-
+-    /// conversion to size_t to preserve SAX interface
+-    constexpr operator size_t() const
+-    {
+-        return chars_read_total;
+-    }
+-};
+-
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-////////////////
+-// exceptions //
+-////////////////
+-
+-/// @brief general exception of the @ref basic_json class
+-/// @sa https://json.nlohmann.me/api/basic_json/exception/
+-class exception : public std::exception
+-{
+-  public:
+-    /// returns the explanatory string
+-    const char* what() const noexcept override
+-    {
+-        return m.what();
+-    }
+-
+-    /// the id of the exception
+-    const int id; // NOLINT(cppcoreguidelines-non-private-member-variables-in-classes)
+-
+-  protected:
+-    JSON_HEDLEY_NON_NULL(3)
+-    exception(int id_, const char* what_arg) : id(id_), m(what_arg) {} // NOLINT(bugprone-throw-keyword-missing)
+-
+-    static std::string name(const std::string& ename, int id_)
+-    {
+-        return "[json.exception." + ename + "." + std::to_string(id_) + "] ";
+-    }
+-
+-    template<typename BasicJsonType>
+-    static std::string diagnostics(const BasicJsonType& leaf_element)
+-    {
+-#if JSON_DIAGNOSTICS
+-        std::vector<std::string> tokens;
+-        for (const auto* current = &leaf_element; current->m_parent != nullptr; current = current->m_parent)
+-        {
+-            switch (current->m_parent->type())
+-            {
+-                case value_t::array:
+-                {
+-                    for (std::size_t i = 0; i < current->m_parent->m_value.array->size(); ++i)
+-                    {
+-                        if (&current->m_parent->m_value.array->operator[](i) == current)
+-                        {
+-                            tokens.emplace_back(std::to_string(i));
+-                            break;
+-                        }
+-                    }
+-                    break;
+-                }
+-
+-                case value_t::object:
+-                {
+-                    for (const auto& element : *current->m_parent->m_value.object)
+-                    {
+-                        if (&element.second == current)
+-                        {
+-                            tokens.emplace_back(element.first.c_str());
+-                            break;
+-                        }
+-                    }
+-                    break;
+-                }
+-
+-                case value_t::null: // LCOV_EXCL_LINE
+-                case value_t::string: // LCOV_EXCL_LINE
+-                case value_t::boolean: // LCOV_EXCL_LINE
+-                case value_t::number_integer: // LCOV_EXCL_LINE
+-                case value_t::number_unsigned: // LCOV_EXCL_LINE
+-                case value_t::number_float: // LCOV_EXCL_LINE
+-                case value_t::binary: // LCOV_EXCL_LINE
+-                case value_t::discarded: // LCOV_EXCL_LINE
+-                default:   // LCOV_EXCL_LINE
+-                    break; // LCOV_EXCL_LINE
+-            }
+-        }
+-
+-        if (tokens.empty())
+-        {
+-            return "";
+-        }
+-
+-        return "(" + std::accumulate(tokens.rbegin(), tokens.rend(), std::string{},
+-                                     [](const std::string & a, const std::string & b)
+-        {
+-            return a + "/" + detail::escape(b);
+-        }) + ") ";
+-#else
+-        static_cast<void>(leaf_element);
+-        return "";
+-#endif
+-    }
+-
+-  private:
+-    /// an exception object as storage for error messages
+-    std::runtime_error m;
+-};
+-
+-/// @brief exception indicating a parse error
+-/// @sa https://json.nlohmann.me/api/basic_json/parse_error/
+-class parse_error : public exception
+-{
+-  public:
+-    /*!
+-    @brief create a parse error exception
+-    @param[in] id_       the id of the exception
+-    @param[in] pos       the position where the error occurred (or with
+-                         chars_read_total=0 if the position cannot be
+-                         determined)
+-    @param[in] what_arg  the explanatory string
+-    @return parse_error object
+-    */
+-    template<typename BasicJsonType>
+-    static parse_error create(int id_, const position_t& pos, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("parse_error", id_) + "parse error" +
+-                        position_string(pos) + ": " + exception::diagnostics(context) + what_arg;
+-        return {id_, pos.chars_read_total, w.c_str()};
+-    }
+-
+-    template<typename BasicJsonType>
+-    static parse_error create(int id_, std::size_t byte_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("parse_error", id_) + "parse error" +
+-                        (byte_ != 0 ? (" at byte " + std::to_string(byte_)) : "") +
+-                        ": " + exception::diagnostics(context) + what_arg;
+-        return {id_, byte_, w.c_str()};
+-    }
+-
+-    /*!
+-    @brief byte index of the parse error
+-
+-    The byte index of the last read character in the input file.
+-
+-    @note For an input with n bytes, 1 is the index of the first character and
+-          n+1 is the index of the terminating null byte or the end of file.
+-          This also holds true when reading a byte vector (CBOR or MessagePack).
+-    */
+-    const std::size_t byte;
+-
+-  private:
+-    parse_error(int id_, std::size_t byte_, const char* what_arg)
+-        : exception(id_, what_arg), byte(byte_) {}
+-
+-    static std::string position_string(const position_t& pos)
+-    {
+-        return " at line " + std::to_string(pos.lines_read + 1) +
+-               ", column " + std::to_string(pos.chars_read_current_line);
+-    }
+-};
+-
+-/// @brief exception indicating errors with iterators
+-/// @sa https://json.nlohmann.me/api/basic_json/invalid_iterator/
+-class invalid_iterator : public exception
+-{
+-  public:
+-    template<typename BasicJsonType>
+-    static invalid_iterator create(int id_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("invalid_iterator", id_) + exception::diagnostics(context) + what_arg;
+-        return {id_, w.c_str()};
+-    }
+-
+-  private:
+-    JSON_HEDLEY_NON_NULL(3)
+-    invalid_iterator(int id_, const char* what_arg)
+-        : exception(id_, what_arg) {}
+-};
+-
+-/// @brief exception indicating executing a member function with a wrong type
+-/// @sa https://json.nlohmann.me/api/basic_json/type_error/
+-class type_error : public exception
+-{
+-  public:
+-    template<typename BasicJsonType>
+-    static type_error create(int id_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("type_error", id_) + exception::diagnostics(context) + what_arg;
+-        return {id_, w.c_str()};
+-    }
+-
+-  private:
+-    JSON_HEDLEY_NON_NULL(3)
+-    type_error(int id_, const char* what_arg) : exception(id_, what_arg) {}
+-};
+-
+-/// @brief exception indicating access out of the defined range
+-/// @sa https://json.nlohmann.me/api/basic_json/out_of_range/
+-class out_of_range : public exception
+-{
+-  public:
+-    template<typename BasicJsonType>
+-    static out_of_range create(int id_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("out_of_range", id_) + exception::diagnostics(context) + what_arg;
+-        return {id_, w.c_str()};
+-    }
+-
+-  private:
+-    JSON_HEDLEY_NON_NULL(3)
+-    out_of_range(int id_, const char* what_arg) : exception(id_, what_arg) {}
+-};
+-
+-/// @brief exception indicating other library errors
+-/// @sa https://json.nlohmann.me/api/basic_json/other_error/
+-class other_error : public exception
+-{
+-  public:
+-    template<typename BasicJsonType>
+-    static other_error create(int id_, const std::string& what_arg, const BasicJsonType& context)
+-    {
+-        std::string w = exception::name("other_error", id_) + exception::diagnostics(context) + what_arg;
+-        return {id_, w.c_str()};
+-    }
+-
+-  private:
+-    JSON_HEDLEY_NON_NULL(3)
+-    other_error(int id_, const char* what_arg) : exception(id_, what_arg) {}
+-};
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-
+-#include <cstddef> // size_t
+-#include <type_traits> // conditional, enable_if, false_type, integral_constant, is_constructible, is_integral, is_same, remove_cv, remove_reference, true_type
+-#include <utility> // index_sequence, make_index_sequence, index_sequence_for
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-template<typename T>
+-using uncvref_t = typename std::remove_cv<typename std::remove_reference<T>::type>::type;
+-
+-#ifdef JSON_HAS_CPP_14
+-
+-// the following utilities are natively available in C++14
+-using std::enable_if_t;
+-using std::index_sequence;
+-using std::make_index_sequence;
+-using std::index_sequence_for;
+-
+-#else
+-
+-// alias templates to reduce boilerplate
+-template<bool B, typename T = void>
+-using enable_if_t = typename std::enable_if<B, T>::type;
+-
+-// The following code is taken from https://github.com/abseil/abseil-cpp/blob/10cb35e459f5ecca5b2ff107635da0bfa41011b4/absl/utility/utility.h
+-// which is part of Google Abseil (https://github.com/abseil/abseil-cpp), licensed under the Apache License 2.0.
+-
+-//// START OF CODE FROM GOOGLE ABSEIL
+-
+-// integer_sequence
+-//
+-// Class template representing a compile-time integer sequence. An instantiation
+-// of `integer_sequence<T, Ints...>` has a sequence of integers encoded in its
+-// type through its template arguments (which is a common need when
+-// working with C++11 variadic templates). `absl::integer_sequence` is designed
+-// to be a drop-in replacement for C++14's `std::integer_sequence`.
+-//
+-// Example:
+-//
+-//   template< class T, T... Ints >
+-//   void user_function(integer_sequence<T, Ints...>);
+-//
+-//   int main()
+-//   {
+-//     // user_function's `T` will be deduced to `int` and `Ints...`
+-//     // will be deduced to `0, 1, 2, 3, 4`.
+-//     user_function(make_integer_sequence<int, 5>());
+-//   }
+-template <typename T, T... Ints>
+-struct integer_sequence
+-{
+-    using value_type = T;
+-    static constexpr std::size_t size() noexcept
+-    {
+-        return sizeof...(Ints);
+-    }
+-};
+-
+-// index_sequence
+-//
+-// A helper template for an `integer_sequence` of `size_t`,
+-// `absl::index_sequence` is designed to be a drop-in replacement for C++14's
+-// `std::index_sequence`.
+-template <size_t... Ints>
+-using index_sequence = integer_sequence<size_t, Ints...>;
+-
+-namespace utility_internal
+-{
+-
+-template <typename Seq, size_t SeqSize, size_t Rem>
+-struct Extend;
+-
+-// Note that SeqSize == sizeof...(Ints). It's passed explicitly for efficiency.
+-template <typename T, T... Ints, size_t SeqSize>
+-struct Extend<integer_sequence<T, Ints...>, SeqSize, 0>
+-{
+-    using type = integer_sequence < T, Ints..., (Ints + SeqSize)... >;
+-};
+-
+-template <typename T, T... Ints, size_t SeqSize>
+-struct Extend<integer_sequence<T, Ints...>, SeqSize, 1>
+-{
+-    using type = integer_sequence < T, Ints..., (Ints + SeqSize)..., 2 * SeqSize >;
+-};
+-
+-// Recursion helper for 'make_integer_sequence<T, N>'.
+-// 'Gen<T, N>::type' is an alias for 'integer_sequence<T, 0, 1, ... N-1>'.
+-template <typename T, size_t N>
+-struct Gen
+-{
+-    using type =
+-        typename Extend < typename Gen < T, N / 2 >::type, N / 2, N % 2 >::type;
+-};
+-
+-template <typename T>
+-struct Gen<T, 0>
+-{
+-    using type = integer_sequence<T>;
+-};
+-
+-}  // namespace utility_internal
+-
+-// Compile-time sequences of integers
+-
+-// make_integer_sequence
+-//
+-// This template alias is equivalent to
+-// `integer_sequence<int, 0, 1, ..., N-1>`, and is designed to be a drop-in
+-// replacement for C++14's `std::make_integer_sequence`.
+-template <typename T, T N>
+-using make_integer_sequence = typename utility_internal::Gen<T, N>::type;
+-
+-// make_index_sequence
+-//
+-// This template alias is equivalent to `index_sequence<0, 1, ..., N-1>`,
+-// and is designed to be a drop-in replacement for C++14's
+-// `std::make_index_sequence`.
+-template <size_t N>
+-using make_index_sequence = make_integer_sequence<size_t, N>;
+-
+-// index_sequence_for
+-//
+-// Converts a typename pack into an index sequence of the same length, and
+-// is designed to be a drop-in replacement for C++14's
+-// `std::index_sequence_for()`
+-template <typename... Ts>
+-using index_sequence_for = make_index_sequence<sizeof...(Ts)>;
+-
+-//// END OF CODE FROM GOOGLE ABSEIL
+-
+-#endif
+-
+-// dispatch utility (taken from ranges-v3)
+-template<unsigned N> struct priority_tag : priority_tag < N - 1 > {};
+-template<> struct priority_tag<0> {};
+-
+-// taken from ranges-v3
+-template<typename T>
+-struct static_const
+-{
+-    static constexpr T value{};
+-};
+-
+-template<typename T>
+-constexpr T static_const<T>::value; // NOLINT(readability-redundant-declaration)
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/identity_tag.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-// dispatching helper struct
+-template <class T> struct identity_tag {};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-
+-#include <limits> // numeric_limits
+-#include <type_traits> // false_type, is_constructible, is_integral, is_same, true_type
+-#include <utility> // declval
+-#include <tuple> // tuple
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-// #include <nlohmann/detail/iterators/iterator_traits.hpp>
+-
+-
+-#include <iterator> // random_access_iterator_tag
+-
+-// #include <nlohmann/detail/meta/void_t.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename It, typename = void>
+-struct iterator_types {};
+-
+-template<typename It>
+-struct iterator_types <
+-    It,
+-    void_t<typename It::difference_type, typename It::value_type, typename It::pointer,
+-    typename It::reference, typename It::iterator_category >>
+-{
+-    using difference_type = typename It::difference_type;
+-    using value_type = typename It::value_type;
+-    using pointer = typename It::pointer;
+-    using reference = typename It::reference;
+-    using iterator_category = typename It::iterator_category;
+-};
+-
+-// This is required as some compilers implement std::iterator_traits in a way that
+-// doesn't work with SFINAE. See https://github.com/nlohmann/json/issues/1341.
+-template<typename T, typename = void>
+-struct iterator_traits
+-{
+-};
+-
+-template<typename T>
+-struct iterator_traits < T, enable_if_t < !std::is_pointer<T>::value >>
+-            : iterator_types<T>
+-{
+-};
+-
+-template<typename T>
+-struct iterator_traits<T*, enable_if_t<std::is_object<T>::value>>
+-{
+-    using iterator_category = std::random_access_iterator_tag;
+-    using value_type = T;
+-    using difference_type = ptrdiff_t;
+-    using pointer = T*;
+-    using reference = T&;
+-};
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/call_std/begin.hpp>
+-
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-NLOHMANN_CAN_CALL_STD_FUNC_IMPL(begin);
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/call_std/end.hpp>
+-
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-NLOHMANN_CAN_CALL_STD_FUNC_IMPL(end);
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/meta/detected.hpp>
+-
+-// #include <nlohmann/json_fwd.hpp>
+-#ifndef INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-#define INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-
+-#include <cstdint> // int64_t, uint64_t
+-#include <map> // map
+-#include <memory> // allocator
+-#include <string> // string
+-#include <vector> // vector
+-
+-/*!
+-@brief namespace for Niels Lohmann
+-@see https://github.com/nlohmann
+-@since version 1.0.0
+-*/
+-namespace nlohmann
+-{
+-/*!
+-@brief default JSONSerializer template argument
+-
+-This serializer ignores the template arguments and uses ADL
+-([argument-dependent lookup](https://en.cppreference.com/w/cpp/language/adl))
+-for serialization.
+-*/
+-template<typename T = void, typename SFINAE = void>
+-struct adl_serializer;
+-
+-/// a class to store JSON values
+-/// @sa https://json.nlohmann.me/api/basic_json/
+-template<template<typename U, typename V, typename... Args> class ObjectType =
+-         std::map,
+-         template<typename U, typename... Args> class ArrayType = std::vector,
+-         class StringType = std::string, class BooleanType = bool,
+-         class NumberIntegerType = std::int64_t,
+-         class NumberUnsignedType = std::uint64_t,
+-         class NumberFloatType = double,
+-         template<typename U> class AllocatorType = std::allocator,
+-         template<typename T, typename SFINAE = void> class JSONSerializer =
+-         adl_serializer,
+-         class BinaryType = std::vector<std::uint8_t>>
+-class basic_json;
+-
+-/// @brief JSON Pointer defines a string syntax for identifying a specific value within a JSON document
+-/// @sa https://json.nlohmann.me/api/json_pointer/
+-template<typename BasicJsonType>
+-class json_pointer;
+-
+-/*!
+-@brief default specialization
+-@sa https://json.nlohmann.me/api/json/
+-*/
+-using json = basic_json<>;
+-
+-/// @brief a minimal map-like container that preserves insertion order
+-/// @sa https://json.nlohmann.me/api/ordered_map/
+-template<class Key, class T, class IgnoredLess, class Allocator>
+-struct ordered_map;
+-
+-/// @brief specialization that maintains the insertion order of object keys
+-/// @sa https://json.nlohmann.me/api/ordered_json/
+-using ordered_json = basic_json<nlohmann::ordered_map>;
+-
+-}  // namespace nlohmann
+-
+-#endif  // INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-
+-
+-namespace nlohmann
+-{
+-/*!
+-@brief detail namespace with internal helper functions
+-
+-This namespace collects functions that should not be exposed,
+-implementations of some @ref basic_json methods, and meta-programming helpers.
+-
+-@since version 2.1.0
+-*/
+-namespace detail
+-{
+-/////////////
+-// helpers //
+-/////////////
+-
+-// Note to maintainers:
+-//
+-// Every trait in this file expects a non CV-qualified type.
+-// The only exceptions are in the 'aliases for detected' section
+-// (i.e. those of the form: decltype(T::member_function(std::declval<T>())))
+-//
+-// In this case, T has to be properly CV-qualified to constraint the function arguments
+-// (e.g. to_json(BasicJsonType&, const T&))
+-
+-template<typename> struct is_basic_json : std::false_type {};
+-
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-struct is_basic_json<NLOHMANN_BASIC_JSON_TPL> : std::true_type {};
+-
+-//////////////////////
+-// json_ref helpers //
+-//////////////////////
+-
+-template<typename>
+-class json_ref;
+-
+-template<typename>
+-struct is_json_ref : std::false_type {};
+-
+-template<typename T>
+-struct is_json_ref<json_ref<T>> : std::true_type {};
+-
+-//////////////////////////
+-// aliases for detected //
+-//////////////////////////
+-
+-template<typename T>
+-using mapped_type_t = typename T::mapped_type;
+-
+-template<typename T>
+-using key_type_t = typename T::key_type;
+-
+-template<typename T>
+-using value_type_t = typename T::value_type;
+-
+-template<typename T>
+-using difference_type_t = typename T::difference_type;
+-
+-template<typename T>
+-using pointer_t = typename T::pointer;
+-
+-template<typename T>
+-using reference_t = typename T::reference;
+-
+-template<typename T>
+-using iterator_category_t = typename T::iterator_category;
+-
+-template<typename T, typename... Args>
+-using to_json_function = decltype(T::to_json(std::declval<Args>()...));
+-
+-template<typename T, typename... Args>
+-using from_json_function = decltype(T::from_json(std::declval<Args>()...));
+-
+-template<typename T, typename U>
+-using get_template_function = decltype(std::declval<T>().template get<U>());
+-
+-// trait checking if JSONSerializer<T>::from_json(json const&, udt&) exists
+-template<typename BasicJsonType, typename T, typename = void>
+-struct has_from_json : std::false_type {};
+-
+-// trait checking if j.get<T> is valid
+-// use this trait instead of std::is_constructible or std::is_convertible,
+-// both rely on, or make use of implicit conversions, and thus fail when T
+-// has several constructors/operator= (see https://github.com/nlohmann/json/issues/958)
+-template <typename BasicJsonType, typename T>
+-struct is_getable
+-{
+-    static constexpr bool value = is_detected<get_template_function, const BasicJsonType&, T>::value;
+-};
+-
+-template<typename BasicJsonType, typename T>
+-struct has_from_json < BasicJsonType, T, enable_if_t < !is_basic_json<T>::value >>
+-{
+-    using serializer = typename BasicJsonType::template json_serializer<T, void>;
+-
+-    static constexpr bool value =
+-        is_detected_exact<void, from_json_function, serializer,
+-        const BasicJsonType&, T&>::value;
+-};
+-
+-// This trait checks if JSONSerializer<T>::from_json(json const&) exists
+-// this overload is used for non-default-constructible user-defined-types
+-template<typename BasicJsonType, typename T, typename = void>
+-struct has_non_default_from_json : std::false_type {};
+-
+-template<typename BasicJsonType, typename T>
+-struct has_non_default_from_json < BasicJsonType, T, enable_if_t < !is_basic_json<T>::value >>
+-{
+-    using serializer = typename BasicJsonType::template json_serializer<T, void>;
+-
+-    static constexpr bool value =
+-        is_detected_exact<T, from_json_function, serializer,
+-        const BasicJsonType&>::value;
+-};
+-
+-// This trait checks if BasicJsonType::json_serializer<T>::to_json exists
+-// Do not evaluate the trait when T is a basic_json type, to avoid template instantiation infinite recursion.
+-template<typename BasicJsonType, typename T, typename = void>
+-struct has_to_json : std::false_type {};
+-
+-template<typename BasicJsonType, typename T>
+-struct has_to_json < BasicJsonType, T, enable_if_t < !is_basic_json<T>::value >>
+-{
+-    using serializer = typename BasicJsonType::template json_serializer<T, void>;
+-
+-    static constexpr bool value =
+-        is_detected_exact<void, to_json_function, serializer, BasicJsonType&,
+-        T>::value;
+-};
+-
+-
+-///////////////////
+-// is_ functions //
+-///////////////////
+-
+-// https://en.cppreference.com/w/cpp/types/conjunction
+-template<class...> struct conjunction : std::true_type { };
+-template<class B1> struct conjunction<B1> : B1 { };
+-template<class B1, class... Bn>
+-struct conjunction<B1, Bn...>
+-: std::conditional<bool(B1::value), conjunction<Bn...>, B1>::type {};
+-
+-// https://en.cppreference.com/w/cpp/types/negation
+-template<class B> struct negation : std::integral_constant < bool, !B::value > { };
+-
+-// Reimplementation of is_constructible and is_default_constructible, due to them being broken for
+-// std::pair and std::tuple until LWG 2367 fix (see https://cplusplus.github.io/LWG/lwg-defects.html#2367).
+-// This causes compile errors in e.g. clang 3.5 or gcc 4.9.
+-template <typename T>
+-struct is_default_constructible : std::is_default_constructible<T> {};
+-
+-template <typename T1, typename T2>
+-struct is_default_constructible<std::pair<T1, T2>>
+-            : conjunction<is_default_constructible<T1>, is_default_constructible<T2>> {};
+-
+-template <typename T1, typename T2>
+-struct is_default_constructible<const std::pair<T1, T2>>
+-            : conjunction<is_default_constructible<T1>, is_default_constructible<T2>> {};
+-
+-template <typename... Ts>
+-struct is_default_constructible<std::tuple<Ts...>>
+-            : conjunction<is_default_constructible<Ts>...> {};
+-
+-template <typename... Ts>
+-struct is_default_constructible<const std::tuple<Ts...>>
+-            : conjunction<is_default_constructible<Ts>...> {};
+-
+-
+-template <typename T, typename... Args>
+-struct is_constructible : std::is_constructible<T, Args...> {};
+-
+-template <typename T1, typename T2>
+-struct is_constructible<std::pair<T1, T2>> : is_default_constructible<std::pair<T1, T2>> {};
+-
+-template <typename T1, typename T2>
+-struct is_constructible<const std::pair<T1, T2>> : is_default_constructible<const std::pair<T1, T2>> {};
+-
+-template <typename... Ts>
+-struct is_constructible<std::tuple<Ts...>> : is_default_constructible<std::tuple<Ts...>> {};
+-
+-template <typename... Ts>
+-struct is_constructible<const std::tuple<Ts...>> : is_default_constructible<const std::tuple<Ts...>> {};
+-
+-
+-template<typename T, typename = void>
+-struct is_iterator_traits : std::false_type {};
+-
+-template<typename T>
+-struct is_iterator_traits<iterator_traits<T>>
+-{
+-  private:
+-    using traits = iterator_traits<T>;
+-
+-  public:
+-    static constexpr auto value =
+-        is_detected<value_type_t, traits>::value &&
+-        is_detected<difference_type_t, traits>::value &&
+-        is_detected<pointer_t, traits>::value &&
+-        is_detected<iterator_category_t, traits>::value &&
+-        is_detected<reference_t, traits>::value;
+-};
+-
+-template<typename T>
+-struct is_range
+-{
+-  private:
+-    using t_ref = typename std::add_lvalue_reference<T>::type;
+-
+-    using iterator = detected_t<result_of_begin, t_ref>;
+-    using sentinel = detected_t<result_of_end, t_ref>;
+-
+-    // to be 100% correct, it should use https://en.cppreference.com/w/cpp/iterator/input_or_output_iterator
+-    // and https://en.cppreference.com/w/cpp/iterator/sentinel_for
+-    // but reimplementing these would be too much work, as a lot of other concepts are used underneath
+-    static constexpr auto is_iterator_begin =
+-        is_iterator_traits<iterator_traits<iterator>>::value;
+-
+-  public:
+-    static constexpr bool value = !std::is_same<iterator, nonesuch>::value && !std::is_same<sentinel, nonesuch>::value && is_iterator_begin;
+-};
+-
+-template<typename R>
+-using iterator_t = enable_if_t<is_range<R>::value, result_of_begin<decltype(std::declval<R&>())>>;
+-
+-template<typename T>
+-using range_value_t = value_type_t<iterator_traits<iterator_t<T>>>;
+-
+-// The following implementation of is_complete_type is taken from
+-// https://blogs.msdn.microsoft.com/vcblog/2015/12/02/partial-support-for-expression-sfinae-in-vs-2015-update-1/
+-// and is written by Xiang Fan who agreed to using it in this library.
+-
+-template<typename T, typename = void>
+-struct is_complete_type : std::false_type {};
+-
+-template<typename T>
+-struct is_complete_type<T, decltype(void(sizeof(T)))> : std::true_type {};
+-
+-template<typename BasicJsonType, typename CompatibleObjectType,
+-         typename = void>
+-struct is_compatible_object_type_impl : std::false_type {};
+-
+-template<typename BasicJsonType, typename CompatibleObjectType>
+-struct is_compatible_object_type_impl <
+-    BasicJsonType, CompatibleObjectType,
+-    enable_if_t < is_detected<mapped_type_t, CompatibleObjectType>::value&&
+-    is_detected<key_type_t, CompatibleObjectType>::value >>
+-{
+-    using object_t = typename BasicJsonType::object_t;
+-
+-    // macOS's is_constructible does not play well with nonesuch...
+-    static constexpr bool value =
+-        is_constructible<typename object_t::key_type,
+-        typename CompatibleObjectType::key_type>::value &&
+-        is_constructible<typename object_t::mapped_type,
+-        typename CompatibleObjectType::mapped_type>::value;
+-};
+-
+-template<typename BasicJsonType, typename CompatibleObjectType>
+-struct is_compatible_object_type
+-    : is_compatible_object_type_impl<BasicJsonType, CompatibleObjectType> {};
+-
+-template<typename BasicJsonType, typename ConstructibleObjectType,
+-         typename = void>
+-struct is_constructible_object_type_impl : std::false_type {};
+-
+-template<typename BasicJsonType, typename ConstructibleObjectType>
+-struct is_constructible_object_type_impl <
+-    BasicJsonType, ConstructibleObjectType,
+-    enable_if_t < is_detected<mapped_type_t, ConstructibleObjectType>::value&&
+-    is_detected<key_type_t, ConstructibleObjectType>::value >>
+-{
+-    using object_t = typename BasicJsonType::object_t;
+-
+-    static constexpr bool value =
+-        (is_default_constructible<ConstructibleObjectType>::value &&
+-         (std::is_move_assignable<ConstructibleObjectType>::value ||
+-          std::is_copy_assignable<ConstructibleObjectType>::value) &&
+-         (is_constructible<typename ConstructibleObjectType::key_type,
+-          typename object_t::key_type>::value &&
+-          std::is_same <
+-          typename object_t::mapped_type,
+-          typename ConstructibleObjectType::mapped_type >::value)) ||
+-        (has_from_json<BasicJsonType,
+-         typename ConstructibleObjectType::mapped_type>::value ||
+-         has_non_default_from_json <
+-         BasicJsonType,
+-         typename ConstructibleObjectType::mapped_type >::value);
+-};
+-
+-template<typename BasicJsonType, typename ConstructibleObjectType>
+-struct is_constructible_object_type
+-    : is_constructible_object_type_impl<BasicJsonType,
+-      ConstructibleObjectType> {};
+-
+-template<typename BasicJsonType, typename CompatibleStringType>
+-struct is_compatible_string_type
+-{
+-    static constexpr auto value =
+-        is_constructible<typename BasicJsonType::string_t, CompatibleStringType>::value;
+-};
+-
+-template<typename BasicJsonType, typename ConstructibleStringType>
+-struct is_constructible_string_type
+-{
+-    static constexpr auto value =
+-        is_constructible<ConstructibleStringType,
+-        typename BasicJsonType::string_t>::value;
+-};
+-
+-template<typename BasicJsonType, typename CompatibleArrayType, typename = void>
+-struct is_compatible_array_type_impl : std::false_type {};
+-
+-template<typename BasicJsonType, typename CompatibleArrayType>
+-struct is_compatible_array_type_impl <
+-    BasicJsonType, CompatibleArrayType,
+-    enable_if_t <
+-    is_detected<iterator_t, CompatibleArrayType>::value&&
+-    is_iterator_traits<iterator_traits<detected_t<iterator_t, CompatibleArrayType>>>::value&&
+-// special case for types like std::filesystem::path whose iterator's value_type are themselves
+-// c.f. https://github.com/nlohmann/json/pull/3073
+-    !std::is_same<CompatibleArrayType, detected_t<range_value_t, CompatibleArrayType>>::value >>
+-{
+-    static constexpr bool value =
+-        is_constructible<BasicJsonType,
+-        range_value_t<CompatibleArrayType>>::value;
+-};
+-
+-template<typename BasicJsonType, typename CompatibleArrayType>
+-struct is_compatible_array_type
+-    : is_compatible_array_type_impl<BasicJsonType, CompatibleArrayType> {};
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType, typename = void>
+-struct is_constructible_array_type_impl : std::false_type {};
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType>
+-struct is_constructible_array_type_impl <
+-    BasicJsonType, ConstructibleArrayType,
+-    enable_if_t<std::is_same<ConstructibleArrayType,
+-    typename BasicJsonType::value_type>::value >>
+-            : std::true_type {};
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType>
+-struct is_constructible_array_type_impl <
+-    BasicJsonType, ConstructibleArrayType,
+-    enable_if_t < !std::is_same<ConstructibleArrayType,
+-    typename BasicJsonType::value_type>::value&&
+-    !is_compatible_string_type<BasicJsonType, ConstructibleArrayType>::value&&
+-    is_default_constructible<ConstructibleArrayType>::value&&
+-(std::is_move_assignable<ConstructibleArrayType>::value ||
+- std::is_copy_assignable<ConstructibleArrayType>::value)&&
+-is_detected<iterator_t, ConstructibleArrayType>::value&&
+-is_iterator_traits<iterator_traits<detected_t<iterator_t, ConstructibleArrayType>>>::value&&
+-is_detected<range_value_t, ConstructibleArrayType>::value&&
+-// special case for types like std::filesystem::path whose iterator's value_type are themselves
+-// c.f. https://github.com/nlohmann/json/pull/3073
+-!std::is_same<ConstructibleArrayType, detected_t<range_value_t, ConstructibleArrayType>>::value&&
+-        is_complete_type <
+-        detected_t<range_value_t, ConstructibleArrayType >>::value >>
+-{
+-    using value_type = range_value_t<ConstructibleArrayType>;
+-
+-    static constexpr bool value =
+-        std::is_same<value_type,
+-        typename BasicJsonType::array_t::value_type>::value ||
+-        has_from_json<BasicJsonType,
+-        value_type>::value ||
+-        has_non_default_from_json <
+-        BasicJsonType,
+-        value_type >::value;
+-};
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType>
+-struct is_constructible_array_type
+-    : is_constructible_array_type_impl<BasicJsonType, ConstructibleArrayType> {};
+-
+-template<typename RealIntegerType, typename CompatibleNumberIntegerType,
+-         typename = void>
+-struct is_compatible_integer_type_impl : std::false_type {};
+-
+-template<typename RealIntegerType, typename CompatibleNumberIntegerType>
+-struct is_compatible_integer_type_impl <
+-    RealIntegerType, CompatibleNumberIntegerType,
+-    enable_if_t < std::is_integral<RealIntegerType>::value&&
+-    std::is_integral<CompatibleNumberIntegerType>::value&&
+-    !std::is_same<bool, CompatibleNumberIntegerType>::value >>
+-{
+-    // is there an assert somewhere on overflows?
+-    using RealLimits = std::numeric_limits<RealIntegerType>;
+-    using CompatibleLimits = std::numeric_limits<CompatibleNumberIntegerType>;
+-
+-    static constexpr auto value =
+-        is_constructible<RealIntegerType,
+-        CompatibleNumberIntegerType>::value &&
+-        CompatibleLimits::is_integer &&
+-        RealLimits::is_signed == CompatibleLimits::is_signed;
+-};
+-
+-template<typename RealIntegerType, typename CompatibleNumberIntegerType>
+-struct is_compatible_integer_type
+-    : is_compatible_integer_type_impl<RealIntegerType,
+-      CompatibleNumberIntegerType> {};
+-
+-template<typename BasicJsonType, typename CompatibleType, typename = void>
+-struct is_compatible_type_impl: std::false_type {};
+-
+-template<typename BasicJsonType, typename CompatibleType>
+-struct is_compatible_type_impl <
+-    BasicJsonType, CompatibleType,
+-    enable_if_t<is_complete_type<CompatibleType>::value >>
+-{
+-    static constexpr bool value =
+-        has_to_json<BasicJsonType, CompatibleType>::value;
+-};
+-
+-template<typename BasicJsonType, typename CompatibleType>
+-struct is_compatible_type
+-    : is_compatible_type_impl<BasicJsonType, CompatibleType> {};
+-
+-template<typename T1, typename T2>
+-struct is_constructible_tuple : std::false_type {};
+-
+-template<typename T1, typename... Args>
+-struct is_constructible_tuple<T1, std::tuple<Args...>> : conjunction<is_constructible<T1, Args>...> {};
+-
+-// a naive helper to check if a type is an ordered_map (exploits the fact that
+-// ordered_map inherits capacity() from std::vector)
+-template <typename T>
+-struct is_ordered_map
+-{
+-    using one = char;
+-
+-    struct two
+-    {
+-        char x[2]; // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-    };
+-
+-    template <typename C> static one test( decltype(&C::capacity) ) ;
+-    template <typename C> static two test(...);
+-
+-    enum { value = sizeof(test<T>(nullptr)) == sizeof(char) }; // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-};
+-
+-// to avoid useless casts (see https://github.com/nlohmann/json/issues/2893#issuecomment-889152324)
+-template < typename T, typename U, enable_if_t < !std::is_same<T, U>::value, int > = 0 >
+-T conditional_static_cast(U value)
+-{
+-    return static_cast<T>(value);
+-}
+-
+-template<typename T, typename U, enable_if_t<std::is_same<T, U>::value, int> = 0>
+-T conditional_static_cast(U value)
+-{
+-    return value;
+-}
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-#if JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-#include <experimental/filesystem>
+-namespace nlohmann::detail
+-{
+-namespace std_fs = std::experimental::filesystem;
+-} // namespace nlohmann::detail
+-#elif JSON_HAS_FILESYSTEM
+-#include <filesystem>
+-namespace nlohmann::detail
+-{
+-namespace std_fs = std::filesystem;
+-} // namespace nlohmann::detail
+-#endif
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename std::nullptr_t& n)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_null()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be null, but is " + std::string(j.type_name()), j));
+-    }
+-    n = nullptr;
+-}
+-
+-// overloads for basic_json template parameters
+-template < typename BasicJsonType, typename ArithmeticType,
+-           enable_if_t < std::is_arithmetic<ArithmeticType>::value&&
+-                         !std::is_same<ArithmeticType, typename BasicJsonType::boolean_t>::value,
+-                         int > = 0 >
+-void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val)
+-{
+-    switch (static_cast<value_t>(j))
+-    {
+-        case value_t::number_unsigned:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
+-            break;
+-        }
+-        case value_t::number_integer:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
+-            break;
+-        }
+-        case value_t::number_float:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
+-            break;
+-        }
+-
+-        case value_t::null:
+-        case value_t::object:
+-        case value_t::array:
+-        case value_t::string:
+-        case value_t::boolean:
+-        case value_t::binary:
+-        case value_t::discarded:
+-        default:
+-            JSON_THROW(type_error::create(302, "type must be number, but is " + std::string(j.type_name()), j));
+-    }
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::boolean_t& b)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_boolean()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be boolean, but is " + std::string(j.type_name()), j));
+-    }
+-    b = *j.template get_ptr<const typename BasicJsonType::boolean_t*>();
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::string_t& s)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be string, but is " + std::string(j.type_name()), j));
+-    }
+-    s = *j.template get_ptr<const typename BasicJsonType::string_t*>();
+-}
+-
+-template <
+-    typename BasicJsonType, typename ConstructibleStringType,
+-    enable_if_t <
+-        is_constructible_string_type<BasicJsonType, ConstructibleStringType>::value&&
+-        !std::is_same<typename BasicJsonType::string_t,
+-                      ConstructibleStringType>::value,
+-        int > = 0 >
+-void from_json(const BasicJsonType& j, ConstructibleStringType& s)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be string, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    s = *j.template get_ptr<const typename BasicJsonType::string_t*>();
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::number_float_t& val)
+-{
+-    get_arithmetic_value(j, val);
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::number_unsigned_t& val)
+-{
+-    get_arithmetic_value(j, val);
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::number_integer_t& val)
+-{
+-    get_arithmetic_value(j, val);
+-}
+-
+-template<typename BasicJsonType, typename EnumType,
+-         enable_if_t<std::is_enum<EnumType>::value, int> = 0>
+-void from_json(const BasicJsonType& j, EnumType& e)
+-{
+-    typename std::underlying_type<EnumType>::type val;
+-    get_arithmetic_value(j, val);
+-    e = static_cast<EnumType>(val);
+-}
+-
+-// forward_list doesn't have an insert method
+-template<typename BasicJsonType, typename T, typename Allocator,
+-         enable_if_t<is_getable<BasicJsonType, T>::value, int> = 0>
+-void from_json(const BasicJsonType& j, std::forward_list<T, Allocator>& l)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-    l.clear();
+-    std::transform(j.rbegin(), j.rend(),
+-                   std::front_inserter(l), [](const BasicJsonType & i)
+-    {
+-        return i.template get<T>();
+-    });
+-}
+-
+-// valarray doesn't have an insert method
+-template<typename BasicJsonType, typename T,
+-         enable_if_t<is_getable<BasicJsonType, T>::value, int> = 0>
+-void from_json(const BasicJsonType& j, std::valarray<T>& l)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-    l.resize(j.size());
+-    std::transform(j.begin(), j.end(), std::begin(l),
+-                   [](const BasicJsonType & elem)
+-    {
+-        return elem.template get<T>();
+-    });
+-}
+-
+-template<typename BasicJsonType, typename T, std::size_t N>
+-auto from_json(const BasicJsonType& j, T (&arr)[N])  // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+--> decltype(j.template get<T>(), void())
+-{
+-    for (std::size_t i = 0; i < N; ++i)
+-    {
+-        arr[i] = j.at(i).template get<T>();
+-    }
+-}
+-
+-template<typename BasicJsonType>
+-void from_json_array_impl(const BasicJsonType& j, typename BasicJsonType::array_t& arr, priority_tag<3> /*unused*/)
+-{
+-    arr = *j.template get_ptr<const typename BasicJsonType::array_t*>();
+-}
+-
+-template<typename BasicJsonType, typename T, std::size_t N>
+-auto from_json_array_impl(const BasicJsonType& j, std::array<T, N>& arr,
+-                          priority_tag<2> /*unused*/)
+--> decltype(j.template get<T>(), void())
+-{
+-    for (std::size_t i = 0; i < N; ++i)
+-    {
+-        arr[i] = j.at(i).template get<T>();
+-    }
+-}
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType,
+-         enable_if_t<
+-             std::is_assignable<ConstructibleArrayType&, ConstructibleArrayType>::value,
+-             int> = 0>
+-auto from_json_array_impl(const BasicJsonType& j, ConstructibleArrayType& arr, priority_tag<1> /*unused*/)
+--> decltype(
+-    arr.reserve(std::declval<typename ConstructibleArrayType::size_type>()),
+-    j.template get<typename ConstructibleArrayType::value_type>(),
+-    void())
+-{
+-    using std::end;
+-
+-    ConstructibleArrayType ret;
+-    ret.reserve(j.size());
+-    std::transform(j.begin(), j.end(),
+-                   std::inserter(ret, end(ret)), [](const BasicJsonType & i)
+-    {
+-        // get<BasicJsonType>() returns *this, this won't call a from_json
+-        // method when value_type is BasicJsonType
+-        return i.template get<typename ConstructibleArrayType::value_type>();
+-    });
+-    arr = std::move(ret);
+-}
+-
+-template<typename BasicJsonType, typename ConstructibleArrayType,
+-         enable_if_t<
+-             std::is_assignable<ConstructibleArrayType&, ConstructibleArrayType>::value,
+-             int> = 0>
+-void from_json_array_impl(const BasicJsonType& j, ConstructibleArrayType& arr,
+-                          priority_tag<0> /*unused*/)
+-{
+-    using std::end;
+-
+-    ConstructibleArrayType ret;
+-    std::transform(
+-        j.begin(), j.end(), std::inserter(ret, end(ret)),
+-        [](const BasicJsonType & i)
+-    {
+-        // get<BasicJsonType>() returns *this, this won't call a from_json
+-        // method when value_type is BasicJsonType
+-        return i.template get<typename ConstructibleArrayType::value_type>();
+-    });
+-    arr = std::move(ret);
+-}
+-
+-template < typename BasicJsonType, typename ConstructibleArrayType,
+-           enable_if_t <
+-               is_constructible_array_type<BasicJsonType, ConstructibleArrayType>::value&&
+-               !is_constructible_object_type<BasicJsonType, ConstructibleArrayType>::value&&
+-               !is_constructible_string_type<BasicJsonType, ConstructibleArrayType>::value&&
+-               !std::is_same<ConstructibleArrayType, typename BasicJsonType::binary_t>::value&&
+-               !is_basic_json<ConstructibleArrayType>::value,
+-               int > = 0 >
+-auto from_json(const BasicJsonType& j, ConstructibleArrayType& arr)
+--> decltype(from_json_array_impl(j, arr, priority_tag<3> {}),
+-j.template get<typename ConstructibleArrayType::value_type>(),
+-void())
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    from_json_array_impl(j, arr, priority_tag<3> {});
+-}
+-
+-template < typename BasicJsonType, typename T, std::size_t... Idx >
+-std::array<T, sizeof...(Idx)> from_json_inplace_array_impl(BasicJsonType&& j,
+-        identity_tag<std::array<T, sizeof...(Idx)>> /*unused*/, index_sequence<Idx...> /*unused*/)
+-{
+-    return { { std::forward<BasicJsonType>(j).at(Idx).template get<T>()... } };
+-}
+-
+-template < typename BasicJsonType, typename T, std::size_t N >
+-auto from_json(BasicJsonType&& j, identity_tag<std::array<T, N>> tag)
+--> decltype(from_json_inplace_array_impl(std::forward<BasicJsonType>(j), tag, make_index_sequence<N> {}))
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    return from_json_inplace_array_impl(std::forward<BasicJsonType>(j), tag, make_index_sequence<N> {});
+-}
+-
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, typename BasicJsonType::binary_t& bin)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_binary()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    bin = *j.template get_ptr<const typename BasicJsonType::binary_t*>();
+-}
+-
+-template<typename BasicJsonType, typename ConstructibleObjectType,
+-         enable_if_t<is_constructible_object_type<BasicJsonType, ConstructibleObjectType>::value, int> = 0>
+-void from_json(const BasicJsonType& j, ConstructibleObjectType& obj)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_object()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be object, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    ConstructibleObjectType ret;
+-    const auto* inner_object = j.template get_ptr<const typename BasicJsonType::object_t*>();
+-    using value_type = typename ConstructibleObjectType::value_type;
+-    std::transform(
+-        inner_object->begin(), inner_object->end(),
+-        std::inserter(ret, ret.begin()),
+-        [](typename BasicJsonType::object_t::value_type const & p)
+-    {
+-        return value_type(p.first, p.second.template get<typename ConstructibleObjectType::mapped_type>());
+-    });
+-    obj = std::move(ret);
+-}
+-
+-// overload for arithmetic types, not chosen for basic_json template arguments
+-// (BooleanType, etc..); note: Is it really necessary to provide explicit
+-// overloads for boolean_t etc. in case of a custom BooleanType which is not
+-// an arithmetic type?
+-template < typename BasicJsonType, typename ArithmeticType,
+-           enable_if_t <
+-               std::is_arithmetic<ArithmeticType>::value&&
+-               !std::is_same<ArithmeticType, typename BasicJsonType::number_unsigned_t>::value&&
+-               !std::is_same<ArithmeticType, typename BasicJsonType::number_integer_t>::value&&
+-               !std::is_same<ArithmeticType, typename BasicJsonType::number_float_t>::value&&
+-               !std::is_same<ArithmeticType, typename BasicJsonType::boolean_t>::value,
+-               int > = 0 >
+-void from_json(const BasicJsonType& j, ArithmeticType& val)
+-{
+-    switch (static_cast<value_t>(j))
+-    {
+-        case value_t::number_unsigned:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
+-            break;
+-        }
+-        case value_t::number_integer:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
+-            break;
+-        }
+-        case value_t::number_float:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
+-            break;
+-        }
+-        case value_t::boolean:
+-        {
+-            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::boolean_t*>());
+-            break;
+-        }
+-
+-        case value_t::null:
+-        case value_t::object:
+-        case value_t::array:
+-        case value_t::string:
+-        case value_t::binary:
+-        case value_t::discarded:
+-        default:
+-            JSON_THROW(type_error::create(302, "type must be number, but is " + std::string(j.type_name()), j));
+-    }
+-}
+-
+-template<typename BasicJsonType, typename... Args, std::size_t... Idx>
+-std::tuple<Args...> from_json_tuple_impl_base(BasicJsonType&& j, index_sequence<Idx...> /*unused*/)
+-{
+-    return std::make_tuple(std::forward<BasicJsonType>(j).at(Idx).template get<Args>()...);
+-}
+-
+-template < typename BasicJsonType, class A1, class A2 >
+-std::pair<A1, A2> from_json_tuple_impl(BasicJsonType&& j, identity_tag<std::pair<A1, A2>> /*unused*/, priority_tag<0> /*unused*/)
+-{
+-    return {std::forward<BasicJsonType>(j).at(0).template get<A1>(),
+-            std::forward<BasicJsonType>(j).at(1).template get<A2>()};
+-}
+-
+-template<typename BasicJsonType, typename A1, typename A2>
+-void from_json_tuple_impl(BasicJsonType&& j, std::pair<A1, A2>& p, priority_tag<1> /*unused*/)
+-{
+-    p = from_json_tuple_impl(std::forward<BasicJsonType>(j), identity_tag<std::pair<A1, A2>> {}, priority_tag<0> {});
+-}
+-
+-template<typename BasicJsonType, typename... Args>
+-std::tuple<Args...> from_json_tuple_impl(BasicJsonType&& j, identity_tag<std::tuple<Args...>> /*unused*/, priority_tag<2> /*unused*/)
+-{
+-    return from_json_tuple_impl_base<BasicJsonType, Args...>(std::forward<BasicJsonType>(j), index_sequence_for<Args...> {});
+-}
+-
+-template<typename BasicJsonType, typename... Args>
+-void from_json_tuple_impl(BasicJsonType&& j, std::tuple<Args...>& t, priority_tag<3> /*unused*/)
+-{
+-    t = from_json_tuple_impl_base<BasicJsonType, Args...>(std::forward<BasicJsonType>(j), index_sequence_for<Args...> {});
+-}
+-
+-template<typename BasicJsonType, typename TupleRelated>
+-auto from_json(BasicJsonType&& j, TupleRelated&& t)
+--> decltype(from_json_tuple_impl(std::forward<BasicJsonType>(j), std::forward<TupleRelated>(t), priority_tag<3> {}))
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-
+-    return from_json_tuple_impl(std::forward<BasicJsonType>(j), std::forward<TupleRelated>(t), priority_tag<3> {});
+-}
+-
+-template < typename BasicJsonType, typename Key, typename Value, typename Compare, typename Allocator,
+-           typename = enable_if_t < !std::is_constructible <
+-                                        typename BasicJsonType::string_t, Key >::value >>
+-void from_json(const BasicJsonType& j, std::map<Key, Value, Compare, Allocator>& m)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-    m.clear();
+-    for (const auto& p : j)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!p.is_array()))
+-        {
+-            JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(p.type_name()), j));
+-        }
+-        m.emplace(p.at(0).template get<Key>(), p.at(1).template get<Value>());
+-    }
+-}
+-
+-template < typename BasicJsonType, typename Key, typename Value, typename Hash, typename KeyEqual, typename Allocator,
+-           typename = enable_if_t < !std::is_constructible <
+-                                        typename BasicJsonType::string_t, Key >::value >>
+-void from_json(const BasicJsonType& j, std::unordered_map<Key, Value, Hash, KeyEqual, Allocator>& m)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j));
+-    }
+-    m.clear();
+-    for (const auto& p : j)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!p.is_array()))
+-        {
+-            JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(p.type_name()), j));
+-        }
+-        m.emplace(p.at(0).template get<Key>(), p.at(1).template get<Value>());
+-    }
+-}
+-
+-#if JSON_HAS_FILESYSTEM || JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-template<typename BasicJsonType>
+-void from_json(const BasicJsonType& j, std_fs::path& p)
+-{
+-    if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
+-    {
+-        JSON_THROW(type_error::create(302, "type must be string, but is " + std::string(j.type_name()), j));
+-    }
+-    p = *j.template get_ptr<const typename BasicJsonType::string_t*>();
+-}
+-#endif
+-
+-struct from_json_fn
+-{
+-    template<typename BasicJsonType, typename T>
+-    auto operator()(const BasicJsonType& j, T&& val) const
+-    noexcept(noexcept(from_json(j, std::forward<T>(val))))
+-    -> decltype(from_json(j, std::forward<T>(val)))
+-    {
+-        return from_json(j, std::forward<T>(val));
+-    }
+-};
+-}  // namespace detail
+-
+-/// namespace to hold default `from_json` function
+-/// to see why this is required:
+-/// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4381.html
+-namespace // NOLINT(cert-dcl59-cpp,fuchsia-header-anon-namespaces,google-build-namespaces)
+-{
+-constexpr const auto& from_json = detail::static_const<detail::from_json_fn>::value; // NOLINT(misc-definitions-in-headers)
+-} // namespace
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/conversions/to_json.hpp>
+-
+-
+-#include <algorithm> // copy
+-#include <iterator> // begin, end
+-#include <string> // string
+-#include <tuple> // tuple, get
+-#include <type_traits> // is_same, is_constructible, is_floating_point, is_enum, underlying_type
+-#include <utility> // move, forward, declval, pair
+-#include <valarray> // valarray
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/iterators/iteration_proxy.hpp>
+-
+-
+-#include <cstddef> // size_t
+-#include <iterator> // input_iterator_tag
+-#include <string> // string, to_string
+-#include <tuple> // tuple_size, get, tuple_element
+-#include <utility> // move
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename string_type>
+-void int_to_string( string_type& target, std::size_t value )
+-{
+-    // For ADL
+-    using std::to_string;
+-    target = to_string(value);
+-}
+-template<typename IteratorType> class iteration_proxy_value
+-{
+-  public:
+-    using difference_type = std::ptrdiff_t;
+-    using value_type = iteration_proxy_value;
+-    using pointer = value_type * ;
+-    using reference = value_type & ;
+-    using iterator_category = std::input_iterator_tag;
+-    using string_type = typename std::remove_cv< typename std::remove_reference<decltype( std::declval<IteratorType>().key() ) >::type >::type;
+-
+-  private:
+-    /// the iterator
+-    IteratorType anchor;
+-    /// an index for arrays (used to create key names)
+-    std::size_t array_index = 0;
+-    /// last stringified array index
+-    mutable std::size_t array_index_last = 0;
+-    /// a string representation of the array index
+-    mutable string_type array_index_str = "0";
+-    /// an empty string (to return a reference for primitive values)
+-    const string_type empty_str{};
+-
+-  public:
+-    explicit iteration_proxy_value(IteratorType it) noexcept
+-        : anchor(std::move(it))
+-    {}
+-
+-    /// dereference operator (needed for range-based for)
+-    iteration_proxy_value& operator*()
+-    {
+-        return *this;
+-    }
+-
+-    /// increment operator (needed for range-based for)
+-    iteration_proxy_value& operator++()
+-    {
+-        ++anchor;
+-        ++array_index;
+-
+-        return *this;
+-    }
+-
+-    /// equality operator (needed for InputIterator)
+-    bool operator==(const iteration_proxy_value& o) const
+-    {
+-        return anchor == o.anchor;
+-    }
+-
+-    /// inequality operator (needed for range-based for)
+-    bool operator!=(const iteration_proxy_value& o) const
+-    {
+-        return anchor != o.anchor;
+-    }
+-
+-    /// return key of the iterator
+-    const string_type& key() const
+-    {
+-        JSON_ASSERT(anchor.m_object != nullptr);
+-
+-        switch (anchor.m_object->type())
+-        {
+-            // use integer array index as key
+-            case value_t::array:
+-            {
+-                if (array_index != array_index_last)
+-                {
+-                    int_to_string( array_index_str, array_index );
+-                    array_index_last = array_index;
+-                }
+-                return array_index_str;
+-            }
+-
+-            // use key from the object
+-            case value_t::object:
+-                return anchor.key();
+-
+-            // use an empty key for all primitive types
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                return empty_str;
+-        }
+-    }
+-
+-    /// return value of the iterator
+-    typename IteratorType::reference value() const
+-    {
+-        return anchor.value();
+-    }
+-};
+-
+-/// proxy class for the items() function
+-template<typename IteratorType> class iteration_proxy
+-{
+-  private:
+-    /// the container to iterate
+-    typename IteratorType::reference container;
+-
+-  public:
+-    /// construct iteration proxy from a container
+-    explicit iteration_proxy(typename IteratorType::reference cont) noexcept
+-        : container(cont) {}
+-
+-    /// return iterator begin (needed for range-based for)
+-    iteration_proxy_value<IteratorType> begin() noexcept
+-    {
+-        return iteration_proxy_value<IteratorType>(container.begin());
+-    }
+-
+-    /// return iterator end (needed for range-based for)
+-    iteration_proxy_value<IteratorType> end() noexcept
+-    {
+-        return iteration_proxy_value<IteratorType>(container.end());
+-    }
+-};
+-// Structured Bindings Support
+-// For further reference see https://blog.tartanllama.xyz/structured-bindings/
+-// And see https://github.com/nlohmann/json/pull/1391
+-template<std::size_t N, typename IteratorType, enable_if_t<N == 0, int> = 0>
+-auto get(const nlohmann::detail::iteration_proxy_value<IteratorType>& i) -> decltype(i.key())
+-{
+-    return i.key();
+-}
+-// Structured Bindings Support
+-// For further reference see https://blog.tartanllama.xyz/structured-bindings/
+-// And see https://github.com/nlohmann/json/pull/1391
+-template<std::size_t N, typename IteratorType, enable_if_t<N == 1, int> = 0>
+-auto get(const nlohmann::detail::iteration_proxy_value<IteratorType>& i) -> decltype(i.value())
+-{
+-    return i.value();
+-}
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// The Addition to the STD Namespace is required to add
+-// Structured Bindings Support to the iteration_proxy_value class
+-// For further reference see https://blog.tartanllama.xyz/structured-bindings/
+-// And see https://github.com/nlohmann/json/pull/1391
+-namespace std
+-{
+-#if defined(__clang__)
+-    // Fix: https://github.com/nlohmann/json/issues/1401
+-    #pragma clang diagnostic push
+-    #pragma clang diagnostic ignored "-Wmismatched-tags"
+-#endif
+-template<typename IteratorType>
+-class tuple_size<::nlohmann::detail::iteration_proxy_value<IteratorType>>
+-            : public std::integral_constant<std::size_t, 2> {};
+-
+-template<std::size_t N, typename IteratorType>
+-class tuple_element<N, ::nlohmann::detail::iteration_proxy_value<IteratorType >>
+-{
+-  public:
+-    using type = decltype(
+-                     get<N>(std::declval <
+-                            ::nlohmann::detail::iteration_proxy_value<IteratorType >> ()));
+-};
+-#if defined(__clang__)
+-    #pragma clang diagnostic pop
+-#endif
+-} // namespace std
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-#if JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-#include <experimental/filesystem>
+-namespace nlohmann::detail
+-{
+-namespace std_fs = std::experimental::filesystem;
+-} // namespace nlohmann::detail
+-#elif JSON_HAS_FILESYSTEM
+-#include <filesystem>
+-namespace nlohmann::detail
+-{
+-namespace std_fs = std::filesystem;
+-} // namespace nlohmann::detail
+-#endif
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-//////////////////
+-// constructors //
+-//////////////////
+-
+-/*
+- * Note all external_constructor<>::construct functions need to call
+- * j.m_value.destroy(j.m_type) to avoid a memory leak in case j contains an
+- * allocated value (e.g., a string). See bug issue
+- * https://github.com/nlohmann/json/issues/2865 for more information.
+- */
+-
+-template<value_t> struct external_constructor;
+-
+-template<>
+-struct external_constructor<value_t::boolean>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::boolean_t b) noexcept
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::boolean;
+-        j.m_value = b;
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::string>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const typename BasicJsonType::string_t& s)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::string;
+-        j.m_value = s;
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::string_t&& s)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::string;
+-        j.m_value = std::move(s);
+-        j.assert_invariant();
+-    }
+-
+-    template < typename BasicJsonType, typename CompatibleStringType,
+-               enable_if_t < !std::is_same<CompatibleStringType, typename BasicJsonType::string_t>::value,
+-                             int > = 0 >
+-    static void construct(BasicJsonType& j, const CompatibleStringType& str)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::string;
+-        j.m_value.string = j.template create<typename BasicJsonType::string_t>(str);
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::binary>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const typename BasicJsonType::binary_t& b)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::binary;
+-        j.m_value = typename BasicJsonType::binary_t(b);
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::binary_t&& b)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::binary;
+-        j.m_value = typename BasicJsonType::binary_t(std::move(b));
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::number_float>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::number_float_t val) noexcept
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::number_float;
+-        j.m_value = val;
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::number_unsigned>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::number_unsigned_t val) noexcept
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::number_unsigned;
+-        j.m_value = val;
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::number_integer>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::number_integer_t val) noexcept
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::number_integer;
+-        j.m_value = val;
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::array>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const typename BasicJsonType::array_t& arr)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value = arr;
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::array_t&& arr)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value = std::move(arr);
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template < typename BasicJsonType, typename CompatibleArrayType,
+-               enable_if_t < !std::is_same<CompatibleArrayType, typename BasicJsonType::array_t>::value,
+-                             int > = 0 >
+-    static void construct(BasicJsonType& j, const CompatibleArrayType& arr)
+-    {
+-        using std::begin;
+-        using std::end;
+-
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value.array = j.template create<typename BasicJsonType::array_t>(begin(arr), end(arr));
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const std::vector<bool>& arr)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value = value_t::array;
+-        j.m_value.array->reserve(arr.size());
+-        for (const bool x : arr)
+-        {
+-            j.m_value.array->push_back(x);
+-            j.set_parent(j.m_value.array->back());
+-        }
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType, typename T,
+-             enable_if_t<std::is_convertible<T, BasicJsonType>::value, int> = 0>
+-    static void construct(BasicJsonType& j, const std::valarray<T>& arr)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::array;
+-        j.m_value = value_t::array;
+-        j.m_value.array->resize(arr.size());
+-        if (arr.size() > 0)
+-        {
+-            std::copy(std::begin(arr), std::end(arr), j.m_value.array->begin());
+-        }
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-};
+-
+-template<>
+-struct external_constructor<value_t::object>
+-{
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, const typename BasicJsonType::object_t& obj)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::object;
+-        j.m_value = obj;
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template<typename BasicJsonType>
+-    static void construct(BasicJsonType& j, typename BasicJsonType::object_t&& obj)
+-    {
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::object;
+-        j.m_value = std::move(obj);
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-
+-    template < typename BasicJsonType, typename CompatibleObjectType,
+-               enable_if_t < !std::is_same<CompatibleObjectType, typename BasicJsonType::object_t>::value, int > = 0 >
+-    static void construct(BasicJsonType& j, const CompatibleObjectType& obj)
+-    {
+-        using std::begin;
+-        using std::end;
+-
+-        j.m_value.destroy(j.m_type);
+-        j.m_type = value_t::object;
+-        j.m_value.object = j.template create<typename BasicJsonType::object_t>(begin(obj), end(obj));
+-        j.set_parents();
+-        j.assert_invariant();
+-    }
+-};
+-
+-/////////////
+-// to_json //
+-/////////////
+-
+-template<typename BasicJsonType, typename T,
+-         enable_if_t<std::is_same<T, typename BasicJsonType::boolean_t>::value, int> = 0>
+-void to_json(BasicJsonType& j, T b) noexcept
+-{
+-    external_constructor<value_t::boolean>::construct(j, b);
+-}
+-
+-template<typename BasicJsonType, typename CompatibleString,
+-         enable_if_t<std::is_constructible<typename BasicJsonType::string_t, CompatibleString>::value, int> = 0>
+-void to_json(BasicJsonType& j, const CompatibleString& s)
+-{
+-    external_constructor<value_t::string>::construct(j, s);
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, typename BasicJsonType::string_t&& s)
+-{
+-    external_constructor<value_t::string>::construct(j, std::move(s));
+-}
+-
+-template<typename BasicJsonType, typename FloatType,
+-         enable_if_t<std::is_floating_point<FloatType>::value, int> = 0>
+-void to_json(BasicJsonType& j, FloatType val) noexcept
+-{
+-    external_constructor<value_t::number_float>::construct(j, static_cast<typename BasicJsonType::number_float_t>(val));
+-}
+-
+-template<typename BasicJsonType, typename CompatibleNumberUnsignedType,
+-         enable_if_t<is_compatible_integer_type<typename BasicJsonType::number_unsigned_t, CompatibleNumberUnsignedType>::value, int> = 0>
+-void to_json(BasicJsonType& j, CompatibleNumberUnsignedType val) noexcept
+-{
+-    external_constructor<value_t::number_unsigned>::construct(j, static_cast<typename BasicJsonType::number_unsigned_t>(val));
+-}
+-
+-template<typename BasicJsonType, typename CompatibleNumberIntegerType,
+-         enable_if_t<is_compatible_integer_type<typename BasicJsonType::number_integer_t, CompatibleNumberIntegerType>::value, int> = 0>
+-void to_json(BasicJsonType& j, CompatibleNumberIntegerType val) noexcept
+-{
+-    external_constructor<value_t::number_integer>::construct(j, static_cast<typename BasicJsonType::number_integer_t>(val));
+-}
+-
+-template<typename BasicJsonType, typename EnumType,
+-         enable_if_t<std::is_enum<EnumType>::value, int> = 0>
+-void to_json(BasicJsonType& j, EnumType e) noexcept
+-{
+-    using underlying_type = typename std::underlying_type<EnumType>::type;
+-    external_constructor<value_t::number_integer>::construct(j, static_cast<underlying_type>(e));
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, const std::vector<bool>& e)
+-{
+-    external_constructor<value_t::array>::construct(j, e);
+-}
+-
+-template < typename BasicJsonType, typename CompatibleArrayType,
+-           enable_if_t < is_compatible_array_type<BasicJsonType,
+-                         CompatibleArrayType>::value&&
+-                         !is_compatible_object_type<BasicJsonType, CompatibleArrayType>::value&&
+-                         !is_compatible_string_type<BasicJsonType, CompatibleArrayType>::value&&
+-                         !std::is_same<typename BasicJsonType::binary_t, CompatibleArrayType>::value&&
+-                         !is_basic_json<CompatibleArrayType>::value,
+-                         int > = 0 >
+-void to_json(BasicJsonType& j, const CompatibleArrayType& arr)
+-{
+-    external_constructor<value_t::array>::construct(j, arr);
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, const typename BasicJsonType::binary_t& bin)
+-{
+-    external_constructor<value_t::binary>::construct(j, bin);
+-}
+-
+-template<typename BasicJsonType, typename T,
+-         enable_if_t<std::is_convertible<T, BasicJsonType>::value, int> = 0>
+-void to_json(BasicJsonType& j, const std::valarray<T>& arr)
+-{
+-    external_constructor<value_t::array>::construct(j, std::move(arr));
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, typename BasicJsonType::array_t&& arr)
+-{
+-    external_constructor<value_t::array>::construct(j, std::move(arr));
+-}
+-
+-template < typename BasicJsonType, typename CompatibleObjectType,
+-           enable_if_t < is_compatible_object_type<BasicJsonType, CompatibleObjectType>::value&& !is_basic_json<CompatibleObjectType>::value, int > = 0 >
+-void to_json(BasicJsonType& j, const CompatibleObjectType& obj)
+-{
+-    external_constructor<value_t::object>::construct(j, obj);
+-}
+-
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, typename BasicJsonType::object_t&& obj)
+-{
+-    external_constructor<value_t::object>::construct(j, std::move(obj));
+-}
+-
+-template <
+-    typename BasicJsonType, typename T, std::size_t N,
+-    enable_if_t < !std::is_constructible<typename BasicJsonType::string_t,
+-                  const T(&)[N]>::value, // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-                  int > = 0 >
+-void to_json(BasicJsonType& j, const T(&arr)[N]) // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-{
+-    external_constructor<value_t::array>::construct(j, arr);
+-}
+-
+-template < typename BasicJsonType, typename T1, typename T2, enable_if_t < std::is_constructible<BasicJsonType, T1>::value&& std::is_constructible<BasicJsonType, T2>::value, int > = 0 >
+-void to_json(BasicJsonType& j, const std::pair<T1, T2>& p)
+-{
+-    j = { p.first, p.second };
+-}
+-
+-// for https://github.com/nlohmann/json/pull/1134
+-template<typename BasicJsonType, typename T,
+-         enable_if_t<std::is_same<T, iteration_proxy_value<typename BasicJsonType::iterator>>::value, int> = 0>
+-void to_json(BasicJsonType& j, const T& b)
+-{
+-    j = { {b.key(), b.value()} };
+-}
+-
+-template<typename BasicJsonType, typename Tuple, std::size_t... Idx>
+-void to_json_tuple_impl(BasicJsonType& j, const Tuple& t, index_sequence<Idx...> /*unused*/)
+-{
+-    j = { std::get<Idx>(t)... };
+-}
+-
+-template<typename BasicJsonType, typename T, enable_if_t<is_constructible_tuple<BasicJsonType, T>::value, int > = 0>
+-void to_json(BasicJsonType& j, const T& t)
+-{
+-    to_json_tuple_impl(j, t, make_index_sequence<std::tuple_size<T>::value> {});
+-}
+-
+-#if JSON_HAS_FILESYSTEM || JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-template<typename BasicJsonType>
+-void to_json(BasicJsonType& j, const std_fs::path& p)
+-{
+-    j = p.string();
+-}
+-#endif
+-
+-struct to_json_fn
+-{
+-    template<typename BasicJsonType, typename T>
+-    auto operator()(BasicJsonType& j, T&& val) const noexcept(noexcept(to_json(j, std::forward<T>(val))))
+-    -> decltype(to_json(j, std::forward<T>(val)), void())
+-    {
+-        return to_json(j, std::forward<T>(val));
+-    }
+-};
+-}  // namespace detail
+-
+-/// namespace to hold default `to_json` function
+-/// to see why this is required:
+-/// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4381.html
+-namespace // NOLINT(cert-dcl59-cpp,fuchsia-header-anon-namespaces,google-build-namespaces)
+-{
+-constexpr const auto& to_json = detail::static_const<detail::to_json_fn>::value; // NOLINT(misc-definitions-in-headers)
+-} // namespace
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/identity_tag.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-
+-namespace nlohmann
+-{
+-
+-/// @sa https://json.nlohmann.me/api/adl_serializer/
+-template<typename ValueType, typename>
+-struct adl_serializer
+-{
+-    /// @brief convert a JSON value to any value type
+-    /// @sa https://json.nlohmann.me/api/adl_serializer/from_json/
+-    template<typename BasicJsonType, typename TargetType = ValueType>
+-    static auto from_json(BasicJsonType && j, TargetType& val) noexcept(
+-        noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), val)))
+-    -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), val), void())
+-    {
+-        ::nlohmann::from_json(std::forward<BasicJsonType>(j), val);
+-    }
+-
+-    /// @brief convert a JSON value to any value type
+-    /// @sa https://json.nlohmann.me/api/adl_serializer/from_json/
+-    template<typename BasicJsonType, typename TargetType = ValueType>
+-    static auto from_json(BasicJsonType && j) noexcept(
+-    noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {})))
+-    -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {}))
+-    {
+-        return ::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {});
+-    }
+-
+-    /// @brief convert any value type to a JSON value
+-    /// @sa https://json.nlohmann.me/api/adl_serializer/to_json/
+-    template<typename BasicJsonType, typename TargetType = ValueType>
+-    static auto to_json(BasicJsonType& j, TargetType && val) noexcept(
+-        noexcept(::nlohmann::to_json(j, std::forward<TargetType>(val))))
+-    -> decltype(::nlohmann::to_json(j, std::forward<TargetType>(val)), void())
+-    {
+-        ::nlohmann::to_json(j, std::forward<TargetType>(val));
+-    }
+-};
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/byte_container_with_subtype.hpp>
+-
+-
+-#include <cstdint> // uint8_t, uint64_t
+-#include <tuple> // tie
+-#include <utility> // move
+-
+-namespace nlohmann
+-{
+-
+-/// @brief an internal type for a backed binary type
+-/// @sa https://json.nlohmann.me/api/byte_container_with_subtype/
+-template<typename BinaryType>
+-class byte_container_with_subtype : public BinaryType
+-{
+-  public:
+-    using container_type = BinaryType;
+-    using subtype_type = std::uint64_t;
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype() noexcept(noexcept(container_type()))
+-        : container_type()
+-    {}
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype(const container_type& b) noexcept(noexcept(container_type(b)))
+-        : container_type(b)
+-    {}
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype(container_type&& b) noexcept(noexcept(container_type(std::move(b))))
+-        : container_type(std::move(b))
+-    {}
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype(const container_type& b, subtype_type subtype_) noexcept(noexcept(container_type(b)))
+-        : container_type(b)
+-        , m_subtype(subtype_)
+-        , m_has_subtype(true)
+-    {}
+-
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
+-    byte_container_with_subtype(container_type&& b, subtype_type subtype_) noexcept(noexcept(container_type(std::move(b))))
+-        : container_type(std::move(b))
+-        , m_subtype(subtype_)
+-        , m_has_subtype(true)
+-    {}
+-
+-    bool operator==(const byte_container_with_subtype& rhs) const
+-    {
+-        return std::tie(static_cast<const BinaryType&>(*this), m_subtype, m_has_subtype) ==
+-               std::tie(static_cast<const BinaryType&>(rhs), rhs.m_subtype, rhs.m_has_subtype);
+-    }
+-
+-    bool operator!=(const byte_container_with_subtype& rhs) const
+-    {
+-        return !(rhs == *this);
+-    }
+-
+-    /// @brief sets the binary subtype
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/set_subtype/
+-    void set_subtype(subtype_type subtype_) noexcept
+-    {
+-        m_subtype = subtype_;
+-        m_has_subtype = true;
+-    }
+-
+-    /// @brief return the binary subtype
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/subtype/
+-    constexpr subtype_type subtype() const noexcept
+-    {
+-        return m_has_subtype ? m_subtype : static_cast<subtype_type>(-1);
+-    }
+-
+-    /// @brief return whether the value has a subtype
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/has_subtype/
+-    constexpr bool has_subtype() const noexcept
+-    {
+-        return m_has_subtype;
+-    }
+-
+-    /// @brief clears the binary subtype
+-    /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/clear_subtype/
+-    void clear_subtype() noexcept
+-    {
+-        m_subtype = 0;
+-        m_has_subtype = false;
+-    }
+-
+-  private:
+-    subtype_type m_subtype = 0;
+-    bool m_has_subtype = false;
+-};
+-
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/conversions/from_json.hpp>
+-
+-// #include <nlohmann/detail/conversions/to_json.hpp>
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/hash.hpp>
+-
+-
+-#include <cstdint> // uint8_t
+-#include <cstddef> // size_t
+-#include <functional> // hash
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-// boost::hash_combine
+-inline std::size_t combine(std::size_t seed, std::size_t h) noexcept
+-{
+-    seed ^= h + 0x9e3779b9 + (seed << 6U) + (seed >> 2U);
+-    return seed;
+-}
+-
+-/*!
+-@brief hash a JSON value
+-
+-The hash function tries to rely on std::hash where possible. Furthermore, the
+-type of the JSON value is taken into account to have different hash values for
+-null, 0, 0U, and false, etc.
+-
+-@tparam BasicJsonType basic_json specialization
+-@param j JSON value to hash
+-@return hash value of j
+-*/
+-template<typename BasicJsonType>
+-std::size_t hash(const BasicJsonType& j)
+-{
+-    using string_t = typename BasicJsonType::string_t;
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-
+-    const auto type = static_cast<std::size_t>(j.type());
+-    switch (j.type())
+-    {
+-        case BasicJsonType::value_t::null:
+-        case BasicJsonType::value_t::discarded:
+-        {
+-            return combine(type, 0);
+-        }
+-
+-        case BasicJsonType::value_t::object:
+-        {
+-            auto seed = combine(type, j.size());
+-            for (const auto& element : j.items())
+-            {
+-                const auto h = std::hash<string_t> {}(element.key());
+-                seed = combine(seed, h);
+-                seed = combine(seed, hash(element.value()));
+-            }
+-            return seed;
+-        }
+-
+-        case BasicJsonType::value_t::array:
+-        {
+-            auto seed = combine(type, j.size());
+-            for (const auto& element : j)
+-            {
+-                seed = combine(seed, hash(element));
+-            }
+-            return seed;
+-        }
+-
+-        case BasicJsonType::value_t::string:
+-        {
+-            const auto h = std::hash<string_t> {}(j.template get_ref<const string_t&>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::boolean:
+-        {
+-            const auto h = std::hash<bool> {}(j.template get<bool>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::number_integer:
+-        {
+-            const auto h = std::hash<number_integer_t> {}(j.template get<number_integer_t>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::number_unsigned:
+-        {
+-            const auto h = std::hash<number_unsigned_t> {}(j.template get<number_unsigned_t>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::number_float:
+-        {
+-            const auto h = std::hash<number_float_t> {}(j.template get<number_float_t>());
+-            return combine(type, h);
+-        }
+-
+-        case BasicJsonType::value_t::binary:
+-        {
+-            auto seed = combine(type, j.get_binary().size());
+-            const auto h = std::hash<bool> {}(j.get_binary().has_subtype());
+-            seed = combine(seed, h);
+-            seed = combine(seed, static_cast<std::size_t>(j.get_binary().subtype()));
+-            for (const auto byte : j.get_binary())
+-            {
+-                seed = combine(seed, std::hash<std::uint8_t> {}(byte));
+-            }
+-            return seed;
+-        }
+-
+-        default:                   // LCOV_EXCL_LINE
+-            JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-            return 0;              // LCOV_EXCL_LINE
+-    }
+-}
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/binary_reader.hpp>
+-
+-
+-#include <algorithm> // generate_n
+-#include <array> // array
+-#include <cmath> // ldexp
+-#include <cstddef> // size_t
+-#include <cstdint> // uint8_t, uint16_t, uint32_t, uint64_t
+-#include <cstdio> // snprintf
+-#include <cstring> // memcpy
+-#include <iterator> // back_inserter
+-#include <limits> // numeric_limits
+-#include <string> // char_traits, string
+-#include <utility> // make_pair, move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/input/input_adapters.hpp>
+-
+-
+-#include <array> // array
+-#include <cstddef> // size_t
+-#include <cstring> // strlen
+-#include <iterator> // begin, end, iterator_traits, random_access_iterator_tag, distance, next
+-#include <memory> // shared_ptr, make_shared, addressof
+-#include <numeric> // accumulate
+-#include <string> // string, char_traits
+-#include <type_traits> // enable_if, is_base_of, is_pointer, is_integral, remove_pointer
+-#include <utility> // pair, declval
+-
+-#ifndef JSON_NO_IO
+-    #include <cstdio>   // FILE *
+-    #include <istream>  // istream
+-#endif                  // JSON_NO_IO
+-
+-// #include <nlohmann/detail/iterators/iterator_traits.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/// the supported input formats
+-enum class input_format_t { json, cbor, msgpack, ubjson, bson };
+-
+-////////////////////
+-// input adapters //
+-////////////////////
+-
+-#ifndef JSON_NO_IO
+-/*!
+-Input adapter for stdio file access. This adapter read only 1 byte and do not use any
+- buffer. This adapter is a very low level adapter.
+-*/
+-class file_input_adapter
+-{
+-  public:
+-    using char_type = char;
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    explicit file_input_adapter(std::FILE* f) noexcept
+-        : m_file(f)
+-    {}
+-
+-    // make class move-only
+-    file_input_adapter(const file_input_adapter&) = delete;
+-    file_input_adapter(file_input_adapter&&) noexcept = default;
+-    file_input_adapter& operator=(const file_input_adapter&) = delete;
+-    file_input_adapter& operator=(file_input_adapter&&) = delete;
+-    ~file_input_adapter() = default;
+-
+-    std::char_traits<char>::int_type get_character() noexcept
+-    {
+-        return std::fgetc(m_file);
+-    }
+-
+-  private:
+-    /// the file pointer to read from
+-    std::FILE* m_file;
+-};
+-
+-
+-/*!
+-Input adapter for a (caching) istream. Ignores a UFT Byte Order Mark at
+-beginning of input. Does not support changing the underlying std::streambuf
+-in mid-input. Maintains underlying std::istream and std::streambuf to support
+-subsequent use of standard std::istream operations to process any input
+-characters following those used in parsing the JSON input.  Clears the
+-std::istream flags; any input errors (e.g., EOF) will be detected by the first
+-subsequent call for input from the std::istream.
+-*/
+-class input_stream_adapter
+-{
+-  public:
+-    using char_type = char;
+-
+-    ~input_stream_adapter()
+-    {
+-        // clear stream flags; we use underlying streambuf I/O, do not
+-        // maintain ifstream flags, except eof
+-        if (is != nullptr)
+-        {
+-            is->clear(is->rdstate() & std::ios::eofbit);
+-        }
+-    }
+-
+-    explicit input_stream_adapter(std::istream& i)
+-        : is(&i), sb(i.rdbuf())
+-    {}
+-
+-    // delete because of pointer members
+-    input_stream_adapter(const input_stream_adapter&) = delete;
+-    input_stream_adapter& operator=(input_stream_adapter&) = delete;
+-    input_stream_adapter& operator=(input_stream_adapter&&) = delete;
+-
+-    input_stream_adapter(input_stream_adapter&& rhs) noexcept
+-        : is(rhs.is), sb(rhs.sb)
+-    {
+-        rhs.is = nullptr;
+-        rhs.sb = nullptr;
+-    }
+-
+-    // std::istream/std::streambuf use std::char_traits<char>::to_int_type, to
+-    // ensure that std::char_traits<char>::eof() and the character 0xFF do not
+-    // end up as the same value, e.g. 0xFFFFFFFF.
+-    std::char_traits<char>::int_type get_character()
+-    {
+-        auto res = sb->sbumpc();
+-        // set eof manually, as we don't use the istream interface.
+-        if (JSON_HEDLEY_UNLIKELY(res == std::char_traits<char>::eof()))
+-        {
+-            is->clear(is->rdstate() | std::ios::eofbit);
+-        }
+-        return res;
+-    }
+-
+-  private:
+-    /// the associated input stream
+-    std::istream* is = nullptr;
+-    std::streambuf* sb = nullptr;
+-};
+-#endif  // JSON_NO_IO
+-
+-// General-purpose iterator-based adapter. It might not be as fast as
+-// theoretically possible for some containers, but it is extremely versatile.
+-template<typename IteratorType>
+-class iterator_input_adapter
+-{
+-  public:
+-    using char_type = typename std::iterator_traits<IteratorType>::value_type;
+-
+-    iterator_input_adapter(IteratorType first, IteratorType last)
+-        : current(std::move(first)), end(std::move(last))
+-    {}
+-
+-    typename std::char_traits<char_type>::int_type get_character()
+-    {
+-        if (JSON_HEDLEY_LIKELY(current != end))
+-        {
+-            auto result = std::char_traits<char_type>::to_int_type(*current);
+-            std::advance(current, 1);
+-            return result;
+-        }
+-
+-        return std::char_traits<char_type>::eof();
+-    }
+-
+-  private:
+-    IteratorType current;
+-    IteratorType end;
+-
+-    template<typename BaseInputAdapter, size_t T>
+-    friend struct wide_string_input_helper;
+-
+-    bool empty() const
+-    {
+-        return current == end;
+-    }
+-};
+-
+-
+-template<typename BaseInputAdapter, size_t T>
+-struct wide_string_input_helper;
+-
+-template<typename BaseInputAdapter>
+-struct wide_string_input_helper<BaseInputAdapter, 4>
+-{
+-    // UTF-32
+-    static void fill_buffer(BaseInputAdapter& input,
+-                            std::array<std::char_traits<char>::int_type, 4>& utf8_bytes,
+-                            size_t& utf8_bytes_index,
+-                            size_t& utf8_bytes_filled)
+-    {
+-        utf8_bytes_index = 0;
+-
+-        if (JSON_HEDLEY_UNLIKELY(input.empty()))
+-        {
+-            utf8_bytes[0] = std::char_traits<char>::eof();
+-            utf8_bytes_filled = 1;
+-        }
+-        else
+-        {
+-            // get the current character
+-            const auto wc = input.get_character();
+-
+-            // UTF-32 to UTF-8 encoding
+-            if (wc < 0x80)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(wc);
+-                utf8_bytes_filled = 1;
+-            }
+-            else if (wc <= 0x7FF)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xC0u | ((static_cast<unsigned int>(wc) >> 6u) & 0x1Fu));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 2;
+-            }
+-            else if (wc <= 0xFFFF)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xE0u | ((static_cast<unsigned int>(wc) >> 12u) & 0x0Fu));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | ((static_cast<unsigned int>(wc) >> 6u) & 0x3Fu));
+-                utf8_bytes[2] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 3;
+-            }
+-            else if (wc <= 0x10FFFF)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xF0u | ((static_cast<unsigned int>(wc) >> 18u) & 0x07u));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | ((static_cast<unsigned int>(wc) >> 12u) & 0x3Fu));
+-                utf8_bytes[2] = static_cast<std::char_traits<char>::int_type>(0x80u | ((static_cast<unsigned int>(wc) >> 6u) & 0x3Fu));
+-                utf8_bytes[3] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 4;
+-            }
+-            else
+-            {
+-                // unknown character
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(wc);
+-                utf8_bytes_filled = 1;
+-            }
+-        }
+-    }
+-};
+-
+-template<typename BaseInputAdapter>
+-struct wide_string_input_helper<BaseInputAdapter, 2>
+-{
+-    // UTF-16
+-    static void fill_buffer(BaseInputAdapter& input,
+-                            std::array<std::char_traits<char>::int_type, 4>& utf8_bytes,
+-                            size_t& utf8_bytes_index,
+-                            size_t& utf8_bytes_filled)
+-    {
+-        utf8_bytes_index = 0;
+-
+-        if (JSON_HEDLEY_UNLIKELY(input.empty()))
+-        {
+-            utf8_bytes[0] = std::char_traits<char>::eof();
+-            utf8_bytes_filled = 1;
+-        }
+-        else
+-        {
+-            // get the current character
+-            const auto wc = input.get_character();
+-
+-            // UTF-16 to UTF-8 encoding
+-            if (wc < 0x80)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(wc);
+-                utf8_bytes_filled = 1;
+-            }
+-            else if (wc <= 0x7FF)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xC0u | ((static_cast<unsigned int>(wc) >> 6u)));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 2;
+-            }
+-            else if (0xD800 > wc || wc >= 0xE000)
+-            {
+-                utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xE0u | ((static_cast<unsigned int>(wc) >> 12u)));
+-                utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | ((static_cast<unsigned int>(wc) >> 6u) & 0x3Fu));
+-                utf8_bytes[2] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(wc) & 0x3Fu));
+-                utf8_bytes_filled = 3;
+-            }
+-            else
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!input.empty()))
+-                {
+-                    const auto wc2 = static_cast<unsigned int>(input.get_character());
+-                    const auto charcode = 0x10000u + (((static_cast<unsigned int>(wc) & 0x3FFu) << 10u) | (wc2 & 0x3FFu));
+-                    utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xF0u | (charcode >> 18u));
+-                    utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | ((charcode >> 12u) & 0x3Fu));
+-                    utf8_bytes[2] = static_cast<std::char_traits<char>::int_type>(0x80u | ((charcode >> 6u) & 0x3Fu));
+-                    utf8_bytes[3] = static_cast<std::char_traits<char>::int_type>(0x80u | (charcode & 0x3Fu));
+-                    utf8_bytes_filled = 4;
+-                }
+-                else
+-                {
+-                    utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(wc);
+-                    utf8_bytes_filled = 1;
+-                }
+-            }
+-        }
+-    }
+-};
+-
+-// Wraps another input apdater to convert wide character types into individual bytes.
+-template<typename BaseInputAdapter, typename WideCharType>
+-class wide_string_input_adapter
+-{
+-  public:
+-    using char_type = char;
+-
+-    wide_string_input_adapter(BaseInputAdapter base)
+-        : base_adapter(base) {}
+-
+-    typename std::char_traits<char>::int_type get_character() noexcept
+-    {
+-        // check if buffer needs to be filled
+-        if (utf8_bytes_index == utf8_bytes_filled)
+-        {
+-            fill_buffer<sizeof(WideCharType)>();
+-
+-            JSON_ASSERT(utf8_bytes_filled > 0);
+-            JSON_ASSERT(utf8_bytes_index == 0);
+-        }
+-
+-        // use buffer
+-        JSON_ASSERT(utf8_bytes_filled > 0);
+-        JSON_ASSERT(utf8_bytes_index < utf8_bytes_filled);
+-        return utf8_bytes[utf8_bytes_index++];
+-    }
+-
+-  private:
+-    BaseInputAdapter base_adapter;
+-
+-    template<size_t T>
+-    void fill_buffer()
+-    {
+-        wide_string_input_helper<BaseInputAdapter, T>::fill_buffer(base_adapter, utf8_bytes, utf8_bytes_index, utf8_bytes_filled);
+-    }
+-
+-    /// a buffer for UTF-8 bytes
+-    std::array<std::char_traits<char>::int_type, 4> utf8_bytes = {{0, 0, 0, 0}};
+-
+-    /// index to the utf8_codes array for the next valid byte
+-    std::size_t utf8_bytes_index = 0;
+-    /// number of valid bytes in the utf8_codes array
+-    std::size_t utf8_bytes_filled = 0;
+-};
+-
+-
+-template<typename IteratorType, typename Enable = void>
+-struct iterator_input_adapter_factory
+-{
+-    using iterator_type = IteratorType;
+-    using char_type = typename std::iterator_traits<iterator_type>::value_type;
+-    using adapter_type = iterator_input_adapter<iterator_type>;
+-
+-    static adapter_type create(IteratorType first, IteratorType last)
+-    {
+-        return adapter_type(std::move(first), std::move(last));
+-    }
+-};
+-
+-template<typename T>
+-struct is_iterator_of_multibyte
+-{
+-    using value_type = typename std::iterator_traits<T>::value_type;
+-    enum
+-    {
+-        value = sizeof(value_type) > 1
+-    };
+-};
+-
+-template<typename IteratorType>
+-struct iterator_input_adapter_factory<IteratorType, enable_if_t<is_iterator_of_multibyte<IteratorType>::value>>
+-{
+-    using iterator_type = IteratorType;
+-    using char_type = typename std::iterator_traits<iterator_type>::value_type;
+-    using base_adapter_type = iterator_input_adapter<iterator_type>;
+-    using adapter_type = wide_string_input_adapter<base_adapter_type, char_type>;
+-
+-    static adapter_type create(IteratorType first, IteratorType last)
+-    {
+-        return adapter_type(base_adapter_type(std::move(first), std::move(last)));
+-    }
+-};
+-
+-// General purpose iterator-based input
+-template<typename IteratorType>
+-typename iterator_input_adapter_factory<IteratorType>::adapter_type input_adapter(IteratorType first, IteratorType last)
+-{
+-    using factory_type = iterator_input_adapter_factory<IteratorType>;
+-    return factory_type::create(first, last);
+-}
+-
+-// Convenience shorthand from container to iterator
+-// Enables ADL on begin(container) and end(container)
+-// Encloses the using declarations in namespace for not to leak them to outside scope
+-
+-namespace container_input_adapter_factory_impl
+-{
+-
+-using std::begin;
+-using std::end;
+-
+-template<typename ContainerType, typename Enable = void>
+-struct container_input_adapter_factory {};
+-
+-template<typename ContainerType>
+-struct container_input_adapter_factory< ContainerType,
+-       void_t<decltype(begin(std::declval<ContainerType>()), end(std::declval<ContainerType>()))>>
+-       {
+-           using adapter_type = decltype(input_adapter(begin(std::declval<ContainerType>()), end(std::declval<ContainerType>())));
+-
+-           static adapter_type create(const ContainerType& container)
+-{
+-    return input_adapter(begin(container), end(container));
+-}
+-       };
+-
+-} // namespace container_input_adapter_factory_impl
+-
+-template<typename ContainerType>
+-typename container_input_adapter_factory_impl::container_input_adapter_factory<ContainerType>::adapter_type input_adapter(const ContainerType& container)
+-{
+-    return container_input_adapter_factory_impl::container_input_adapter_factory<ContainerType>::create(container);
+-}
+-
+-#ifndef JSON_NO_IO
+-// Special cases with fast paths
+-inline file_input_adapter input_adapter(std::FILE* file)
+-{
+-    return file_input_adapter(file);
+-}
+-
+-inline input_stream_adapter input_adapter(std::istream& stream)
+-{
+-    return input_stream_adapter(stream);
+-}
+-
+-inline input_stream_adapter input_adapter(std::istream&& stream)
+-{
+-    return input_stream_adapter(stream);
+-}
+-#endif  // JSON_NO_IO
+-
+-using contiguous_bytes_input_adapter = decltype(input_adapter(std::declval<const char*>(), std::declval<const char*>()));
+-
+-// Null-delimited strings, and the like.
+-template < typename CharT,
+-           typename std::enable_if <
+-               std::is_pointer<CharT>::value&&
+-               !std::is_array<CharT>::value&&
+-               std::is_integral<typename std::remove_pointer<CharT>::type>::value&&
+-               sizeof(typename std::remove_pointer<CharT>::type) == 1,
+-               int >::type = 0 >
+-contiguous_bytes_input_adapter input_adapter(CharT b)
+-{
+-    auto length = std::strlen(reinterpret_cast<const char*>(b));
+-    const auto* ptr = reinterpret_cast<const char*>(b);
+-    return input_adapter(ptr, ptr + length);
+-}
+-
+-template<typename T, std::size_t N>
+-auto input_adapter(T (&array)[N]) -> decltype(input_adapter(array, array + N)) // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-{
+-    return input_adapter(array, array + N);
+-}
+-
+-// This class only handles inputs of input_buffer_adapter type.
+-// It's required so that expressions like {ptr, len} can be implicitly cast
+-// to the correct adapter.
+-class span_input_adapter
+-{
+-  public:
+-    template < typename CharT,
+-               typename std::enable_if <
+-                   std::is_pointer<CharT>::value&&
+-                   std::is_integral<typename std::remove_pointer<CharT>::type>::value&&
+-                   sizeof(typename std::remove_pointer<CharT>::type) == 1,
+-                   int >::type = 0 >
+-    span_input_adapter(CharT b, std::size_t l)
+-        : ia(reinterpret_cast<const char*>(b), reinterpret_cast<const char*>(b) + l) {}
+-
+-    template<class IteratorType,
+-             typename std::enable_if<
+-                 std::is_same<typename iterator_traits<IteratorType>::iterator_category, std::random_access_iterator_tag>::value,
+-                 int>::type = 0>
+-    span_input_adapter(IteratorType first, IteratorType last)
+-        : ia(input_adapter(first, last)) {}
+-
+-    contiguous_bytes_input_adapter&& get()
+-    {
+-        return std::move(ia); // NOLINT(hicpp-move-const-arg,performance-move-const-arg)
+-    }
+-
+-  private:
+-    contiguous_bytes_input_adapter ia;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/json_sax.hpp>
+-
+-
+-#include <cstddef>
+-#include <string> // string
+-#include <utility> // move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-
+-/*!
+-@brief SAX interface
+-
+-This class describes the SAX interface used by @ref nlohmann::json::sax_parse.
+-Each function is called in different situations while the input is parsed. The
+-boolean return value informs the parser whether to continue processing the
+-input.
+-*/
+-template<typename BasicJsonType>
+-struct json_sax
+-{
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-
+-    /*!
+-    @brief a null value was read
+-    @return whether parsing should proceed
+-    */
+-    virtual bool null() = 0;
+-
+-    /*!
+-    @brief a boolean value was read
+-    @param[in] val  boolean value
+-    @return whether parsing should proceed
+-    */
+-    virtual bool boolean(bool val) = 0;
+-
+-    /*!
+-    @brief an integer number was read
+-    @param[in] val  integer value
+-    @return whether parsing should proceed
+-    */
+-    virtual bool number_integer(number_integer_t val) = 0;
+-
+-    /*!
+-    @brief an unsigned integer number was read
+-    @param[in] val  unsigned integer value
+-    @return whether parsing should proceed
+-    */
+-    virtual bool number_unsigned(number_unsigned_t val) = 0;
+-
+-    /*!
+-    @brief a floating-point number was read
+-    @param[in] val  floating-point value
+-    @param[in] s    raw token value
+-    @return whether parsing should proceed
+-    */
+-    virtual bool number_float(number_float_t val, const string_t& s) = 0;
+-
+-    /*!
+-    @brief a string value was read
+-    @param[in] val  string value
+-    @return whether parsing should proceed
+-    @note It is safe to move the passed string value.
+-    */
+-    virtual bool string(string_t& val) = 0;
+-
+-    /*!
+-    @brief a binary value was read
+-    @param[in] val  binary value
+-    @return whether parsing should proceed
+-    @note It is safe to move the passed binary value.
+-    */
+-    virtual bool binary(binary_t& val) = 0;
+-
+-    /*!
+-    @brief the beginning of an object was read
+-    @param[in] elements  number of object elements or -1 if unknown
+-    @return whether parsing should proceed
+-    @note binary formats may report the number of elements
+-    */
+-    virtual bool start_object(std::size_t elements) = 0;
+-
+-    /*!
+-    @brief an object key was read
+-    @param[in] val  object key
+-    @return whether parsing should proceed
+-    @note It is safe to move the passed string.
+-    */
+-    virtual bool key(string_t& val) = 0;
+-
+-    /*!
+-    @brief the end of an object was read
+-    @return whether parsing should proceed
+-    */
+-    virtual bool end_object() = 0;
+-
+-    /*!
+-    @brief the beginning of an array was read
+-    @param[in] elements  number of array elements or -1 if unknown
+-    @return whether parsing should proceed
+-    @note binary formats may report the number of elements
+-    */
+-    virtual bool start_array(std::size_t elements) = 0;
+-
+-    /*!
+-    @brief the end of an array was read
+-    @return whether parsing should proceed
+-    */
+-    virtual bool end_array() = 0;
+-
+-    /*!
+-    @brief a parse error occurred
+-    @param[in] position    the position in the input where the error occurs
+-    @param[in] last_token  the last read token
+-    @param[in] ex          an exception object describing the error
+-    @return whether parsing should proceed (must return false)
+-    */
+-    virtual bool parse_error(std::size_t position,
+-                             const std::string& last_token,
+-                             const detail::exception& ex) = 0;
+-
+-    json_sax() = default;
+-    json_sax(const json_sax&) = default;
+-    json_sax(json_sax&&) noexcept = default;
+-    json_sax& operator=(const json_sax&) = default;
+-    json_sax& operator=(json_sax&&) noexcept = default;
+-    virtual ~json_sax() = default;
+-};
+-
+-
+-namespace detail
+-{
+-/*!
+-@brief SAX implementation to create a JSON value from SAX events
+-
+-This class implements the @ref json_sax interface and processes the SAX events
+-to create a JSON value which makes it basically a DOM parser. The structure or
+-hierarchy of the JSON value is managed by the stack `ref_stack` which contains
+-a pointer to the respective array or object for each recursion depth.
+-
+-After successful parsing, the value that is passed by reference to the
+-constructor contains the parsed value.
+-
+-@tparam BasicJsonType  the JSON type
+-*/
+-template<typename BasicJsonType>
+-class json_sax_dom_parser
+-{
+-  public:
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-
+-    /*!
+-    @param[in,out] r  reference to a JSON value that is manipulated while
+-                       parsing
+-    @param[in] allow_exceptions_  whether parse errors yield exceptions
+-    */
+-    explicit json_sax_dom_parser(BasicJsonType& r, const bool allow_exceptions_ = true)
+-        : root(r), allow_exceptions(allow_exceptions_)
+-    {}
+-
+-    // make class move-only
+-    json_sax_dom_parser(const json_sax_dom_parser&) = delete;
+-    json_sax_dom_parser(json_sax_dom_parser&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    json_sax_dom_parser& operator=(const json_sax_dom_parser&) = delete;
+-    json_sax_dom_parser& operator=(json_sax_dom_parser&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    ~json_sax_dom_parser() = default;
+-
+-    bool null()
+-    {
+-        handle_value(nullptr);
+-        return true;
+-    }
+-
+-    bool boolean(bool val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_integer(number_integer_t val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_unsigned(number_unsigned_t val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_float(number_float_t val, const string_t& /*unused*/)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool string(string_t& val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool binary(binary_t& val)
+-    {
+-        handle_value(std::move(val));
+-        return true;
+-    }
+-
+-    bool start_object(std::size_t len)
+-    {
+-        ref_stack.push_back(handle_value(BasicJsonType::value_t::object));
+-
+-        if (JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
+-        {
+-            JSON_THROW(out_of_range::create(408, "excessive object size: " + std::to_string(len), *ref_stack.back()));
+-        }
+-
+-        return true;
+-    }
+-
+-    bool key(string_t& val)
+-    {
+-        // add null at given key and store the reference for later
+-        object_element = &(ref_stack.back()->m_value.object->operator[](val));
+-        return true;
+-    }
+-
+-    bool end_object()
+-    {
+-        ref_stack.back()->set_parents();
+-        ref_stack.pop_back();
+-        return true;
+-    }
+-
+-    bool start_array(std::size_t len)
+-    {
+-        ref_stack.push_back(handle_value(BasicJsonType::value_t::array));
+-
+-        if (JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
+-        {
+-            JSON_THROW(out_of_range::create(408, "excessive array size: " + std::to_string(len), *ref_stack.back()));
+-        }
+-
+-        return true;
+-    }
+-
+-    bool end_array()
+-    {
+-        ref_stack.back()->set_parents();
+-        ref_stack.pop_back();
+-        return true;
+-    }
+-
+-    template<class Exception>
+-    bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/,
+-                     const Exception& ex)
+-    {
+-        errored = true;
+-        static_cast<void>(ex);
+-        if (allow_exceptions)
+-        {
+-            JSON_THROW(ex);
+-        }
+-        return false;
+-    }
+-
+-    constexpr bool is_errored() const
+-    {
+-        return errored;
+-    }
+-
+-  private:
+-    /*!
+-    @invariant If the ref stack is empty, then the passed value will be the new
+-               root.
+-    @invariant If the ref stack contains a value, then it is an array or an
+-               object to which we can add elements
+-    */
+-    template<typename Value>
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    BasicJsonType* handle_value(Value&& v)
+-    {
+-        if (ref_stack.empty())
+-        {
+-            root = BasicJsonType(std::forward<Value>(v));
+-            return &root;
+-        }
+-
+-        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
+-
+-        if (ref_stack.back()->is_array())
+-        {
+-            ref_stack.back()->m_value.array->emplace_back(std::forward<Value>(v));
+-            return &(ref_stack.back()->m_value.array->back());
+-        }
+-
+-        JSON_ASSERT(ref_stack.back()->is_object());
+-        JSON_ASSERT(object_element);
+-        *object_element = BasicJsonType(std::forward<Value>(v));
+-        return object_element;
+-    }
+-
+-    /// the parsed JSON value
+-    BasicJsonType& root;
+-    /// stack to model hierarchy of values
+-    std::vector<BasicJsonType*> ref_stack {};
+-    /// helper to hold the reference for the next object element
+-    BasicJsonType* object_element = nullptr;
+-    /// whether a syntax error occurred
+-    bool errored = false;
+-    /// whether to throw exceptions in case of errors
+-    const bool allow_exceptions = true;
+-};
+-
+-template<typename BasicJsonType>
+-class json_sax_dom_callback_parser
+-{
+-  public:
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using parser_callback_t = typename BasicJsonType::parser_callback_t;
+-    using parse_event_t = typename BasicJsonType::parse_event_t;
+-
+-    json_sax_dom_callback_parser(BasicJsonType& r,
+-                                 const parser_callback_t cb,
+-                                 const bool allow_exceptions_ = true)
+-        : root(r), callback(cb), allow_exceptions(allow_exceptions_)
+-    {
+-        keep_stack.push_back(true);
+-    }
+-
+-    // make class move-only
+-    json_sax_dom_callback_parser(const json_sax_dom_callback_parser&) = delete;
+-    json_sax_dom_callback_parser(json_sax_dom_callback_parser&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    json_sax_dom_callback_parser& operator=(const json_sax_dom_callback_parser&) = delete;
+-    json_sax_dom_callback_parser& operator=(json_sax_dom_callback_parser&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    ~json_sax_dom_callback_parser() = default;
+-
+-    bool null()
+-    {
+-        handle_value(nullptr);
+-        return true;
+-    }
+-
+-    bool boolean(bool val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_integer(number_integer_t val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_unsigned(number_unsigned_t val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool number_float(number_float_t val, const string_t& /*unused*/)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool string(string_t& val)
+-    {
+-        handle_value(val);
+-        return true;
+-    }
+-
+-    bool binary(binary_t& val)
+-    {
+-        handle_value(std::move(val));
+-        return true;
+-    }
+-
+-    bool start_object(std::size_t len)
+-    {
+-        // check callback for object start
+-        const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::object_start, discarded);
+-        keep_stack.push_back(keep);
+-
+-        auto val = handle_value(BasicJsonType::value_t::object, true);
+-        ref_stack.push_back(val.second);
+-
+-        // check object limit
+-        if (ref_stack.back() && JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
+-        {
+-            JSON_THROW(out_of_range::create(408, "excessive object size: " + std::to_string(len), *ref_stack.back()));
+-        }
+-
+-        return true;
+-    }
+-
+-    bool key(string_t& val)
+-    {
+-        BasicJsonType k = BasicJsonType(val);
+-
+-        // check callback for key
+-        const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::key, k);
+-        key_keep_stack.push_back(keep);
+-
+-        // add discarded value at given key and store the reference for later
+-        if (keep && ref_stack.back())
+-        {
+-            object_element = &(ref_stack.back()->m_value.object->operator[](val) = discarded);
+-        }
+-
+-        return true;
+-    }
+-
+-    bool end_object()
+-    {
+-        if (ref_stack.back())
+-        {
+-            if (!callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back()))
+-            {
+-                // discard object
+-                *ref_stack.back() = discarded;
+-            }
+-            else
+-            {
+-                ref_stack.back()->set_parents();
+-            }
+-        }
+-
+-        JSON_ASSERT(!ref_stack.empty());
+-        JSON_ASSERT(!keep_stack.empty());
+-        ref_stack.pop_back();
+-        keep_stack.pop_back();
+-
+-        if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured())
+-        {
+-            // remove discarded value
+-            for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it)
+-            {
+-                if (it->is_discarded())
+-                {
+-                    ref_stack.back()->erase(it);
+-                    break;
+-                }
+-            }
+-        }
+-
+-        return true;
+-    }
+-
+-    bool start_array(std::size_t len)
+-    {
+-        const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::array_start, discarded);
+-        keep_stack.push_back(keep);
+-
+-        auto val = handle_value(BasicJsonType::value_t::array, true);
+-        ref_stack.push_back(val.second);
+-
+-        // check array limit
+-        if (ref_stack.back() && JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
+-        {
+-            JSON_THROW(out_of_range::create(408, "excessive array size: " + std::to_string(len), *ref_stack.back()));
+-        }
+-
+-        return true;
+-    }
+-
+-    bool end_array()
+-    {
+-        bool keep = true;
+-
+-        if (ref_stack.back())
+-        {
+-            keep = callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::array_end, *ref_stack.back());
+-            if (keep)
+-            {
+-                ref_stack.back()->set_parents();
+-            }
+-            else
+-            {
+-                // discard array
+-                *ref_stack.back() = discarded;
+-            }
+-        }
+-
+-        JSON_ASSERT(!ref_stack.empty());
+-        JSON_ASSERT(!keep_stack.empty());
+-        ref_stack.pop_back();
+-        keep_stack.pop_back();
+-
+-        // remove discarded value
+-        if (!keep && !ref_stack.empty() && ref_stack.back()->is_array())
+-        {
+-            ref_stack.back()->m_value.array->pop_back();
+-        }
+-
+-        return true;
+-    }
+-
+-    template<class Exception>
+-    bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/,
+-                     const Exception& ex)
+-    {
+-        errored = true;
+-        static_cast<void>(ex);
+-        if (allow_exceptions)
+-        {
+-            JSON_THROW(ex);
+-        }
+-        return false;
+-    }
+-
+-    constexpr bool is_errored() const
+-    {
+-        return errored;
+-    }
+-
+-  private:
+-    /*!
+-    @param[in] v  value to add to the JSON value we build during parsing
+-    @param[in] skip_callback  whether we should skip calling the callback
+-               function; this is required after start_array() and
+-               start_object() SAX events, because otherwise we would call the
+-               callback function with an empty array or object, respectively.
+-
+-    @invariant If the ref stack is empty, then the passed value will be the new
+-               root.
+-    @invariant If the ref stack contains a value, then it is an array or an
+-               object to which we can add elements
+-
+-    @return pair of boolean (whether value should be kept) and pointer (to the
+-            passed value in the ref_stack hierarchy; nullptr if not kept)
+-    */
+-    template<typename Value>
+-    std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
+-    {
+-        JSON_ASSERT(!keep_stack.empty());
+-
+-        // do not handle this value if we know it would be added to a discarded
+-        // container
+-        if (!keep_stack.back())
+-        {
+-            return {false, nullptr};
+-        }
+-
+-        // create value
+-        auto value = BasicJsonType(std::forward<Value>(v));
+-
+-        // check callback
+-        const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
+-
+-        // do not handle this value if we just learnt it shall be discarded
+-        if (!keep)
+-        {
+-            return {false, nullptr};
+-        }
+-
+-        if (ref_stack.empty())
+-        {
+-            root = std::move(value);
+-            return {true, &root};
+-        }
+-
+-        // skip this value if we already decided to skip the parent
+-        // (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
+-        if (!ref_stack.back())
+-        {
+-            return {false, nullptr};
+-        }
+-
+-        // we now only expect arrays and objects
+-        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
+-
+-        // array
+-        if (ref_stack.back()->is_array())
+-        {
+-            ref_stack.back()->m_value.array->emplace_back(std::move(value));
+-            return {true, &(ref_stack.back()->m_value.array->back())};
+-        }
+-
+-        // object
+-        JSON_ASSERT(ref_stack.back()->is_object());
+-        // check if we should store an element for the current key
+-        JSON_ASSERT(!key_keep_stack.empty());
+-        const bool store_element = key_keep_stack.back();
+-        key_keep_stack.pop_back();
+-
+-        if (!store_element)
+-        {
+-            return {false, nullptr};
+-        }
+-
+-        JSON_ASSERT(object_element);
+-        *object_element = std::move(value);
+-        return {true, object_element};
+-    }
+-
+-    /// the parsed JSON value
+-    BasicJsonType& root;
+-    /// stack to model hierarchy of values
+-    std::vector<BasicJsonType*> ref_stack {};
+-    /// stack to manage which values to keep
+-    std::vector<bool> keep_stack {};
+-    /// stack to manage which object keys to keep
+-    std::vector<bool> key_keep_stack {};
+-    /// helper to hold the reference for the next object element
+-    BasicJsonType* object_element = nullptr;
+-    /// whether a syntax error occurred
+-    bool errored = false;
+-    /// callback function
+-    const parser_callback_t callback = nullptr;
+-    /// whether to throw exceptions in case of errors
+-    const bool allow_exceptions = true;
+-    /// a discarded value for the callback
+-    BasicJsonType discarded = BasicJsonType::value_t::discarded;
+-};
+-
+-template<typename BasicJsonType>
+-class json_sax_acceptor
+-{
+-  public:
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-
+-    bool null()
+-    {
+-        return true;
+-    }
+-
+-    bool boolean(bool /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool number_integer(number_integer_t /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool number_unsigned(number_unsigned_t /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool number_float(number_float_t /*unused*/, const string_t& /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool string(string_t& /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool binary(binary_t& /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool start_object(std::size_t /*unused*/ = static_cast<std::size_t>(-1))
+-    {
+-        return true;
+-    }
+-
+-    bool key(string_t& /*unused*/)
+-    {
+-        return true;
+-    }
+-
+-    bool end_object()
+-    {
+-        return true;
+-    }
+-
+-    bool start_array(std::size_t /*unused*/ = static_cast<std::size_t>(-1))
+-    {
+-        return true;
+-    }
+-
+-    bool end_array()
+-    {
+-        return true;
+-    }
+-
+-    bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, const detail::exception& /*unused*/)
+-    {
+-        return false;
+-    }
+-};
+-}  // namespace detail
+-
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/lexer.hpp>
+-
+-
+-#include <array> // array
+-#include <clocale> // localeconv
+-#include <cstddef> // size_t
+-#include <cstdio> // snprintf
+-#include <cstdlib> // strtof, strtod, strtold, strtoll, strtoull
+-#include <initializer_list> // initializer_list
+-#include <string> // char_traits, string
+-#include <utility> // move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/input/input_adapters.hpp>
+-
+-// #include <nlohmann/detail/input/position_t.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-///////////
+-// lexer //
+-///////////
+-
+-template<typename BasicJsonType>
+-class lexer_base
+-{
+-  public:
+-    /// token types for the parser
+-    enum class token_type
+-    {
+-        uninitialized,    ///< indicating the scanner is uninitialized
+-        literal_true,     ///< the `true` literal
+-        literal_false,    ///< the `false` literal
+-        literal_null,     ///< the `null` literal
+-        value_string,     ///< a string -- use get_string() for actual value
+-        value_unsigned,   ///< an unsigned integer -- use get_number_unsigned() for actual value
+-        value_integer,    ///< a signed integer -- use get_number_integer() for actual value
+-        value_float,      ///< an floating point number -- use get_number_float() for actual value
+-        begin_array,      ///< the character for array begin `[`
+-        begin_object,     ///< the character for object begin `{`
+-        end_array,        ///< the character for array end `]`
+-        end_object,       ///< the character for object end `}`
+-        name_separator,   ///< the name separator `:`
+-        value_separator,  ///< the value separator `,`
+-        parse_error,      ///< indicating a parse error
+-        end_of_input,     ///< indicating the end of the input buffer
+-        literal_or_value  ///< a literal or the begin of a value (only for diagnostics)
+-    };
+-
+-    /// return name of values of type token_type (only used for errors)
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    JSON_HEDLEY_CONST
+-    static const char* token_type_name(const token_type t) noexcept
+-    {
+-        switch (t)
+-        {
+-            case token_type::uninitialized:
+-                return "<uninitialized>";
+-            case token_type::literal_true:
+-                return "true literal";
+-            case token_type::literal_false:
+-                return "false literal";
+-            case token_type::literal_null:
+-                return "null literal";
+-            case token_type::value_string:
+-                return "string literal";
+-            case token_type::value_unsigned:
+-            case token_type::value_integer:
+-            case token_type::value_float:
+-                return "number literal";
+-            case token_type::begin_array:
+-                return "'['";
+-            case token_type::begin_object:
+-                return "'{'";
+-            case token_type::end_array:
+-                return "']'";
+-            case token_type::end_object:
+-                return "'}'";
+-            case token_type::name_separator:
+-                return "':'";
+-            case token_type::value_separator:
+-                return "','";
+-            case token_type::parse_error:
+-                return "<parse error>";
+-            case token_type::end_of_input:
+-                return "end of input";
+-            case token_type::literal_or_value:
+-                return "'[', '{', or a literal";
+-            // LCOV_EXCL_START
+-            default: // catch non-enum values
+-                return "unknown token";
+-                // LCOV_EXCL_STOP
+-        }
+-    }
+-};
+-/*!
+-@brief lexical analysis
+-
+-This class organizes the lexical analysis during JSON deserialization.
+-*/
+-template<typename BasicJsonType, typename InputAdapterType>
+-class lexer : public lexer_base<BasicJsonType>
+-{
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using char_type = typename InputAdapterType::char_type;
+-    using char_int_type = typename std::char_traits<char_type>::int_type;
+-
+-  public:
+-    using token_type = typename lexer_base<BasicJsonType>::token_type;
+-
+-    explicit lexer(InputAdapterType&& adapter, bool ignore_comments_ = false) noexcept
+-        : ia(std::move(adapter))
+-        , ignore_comments(ignore_comments_)
+-        , decimal_point_char(static_cast<char_int_type>(get_decimal_point()))
+-    {}
+-
+-    // delete because of pointer members
+-    lexer(const lexer&) = delete;
+-    lexer(lexer&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    lexer& operator=(lexer&) = delete;
+-    lexer& operator=(lexer&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    ~lexer() = default;
+-
+-  private:
+-    /////////////////////
+-    // locales
+-    /////////////////////
+-
+-    /// return the locale-dependent decimal point
+-    JSON_HEDLEY_PURE
+-    static char get_decimal_point() noexcept
+-    {
+-        const auto* loc = localeconv();
+-        JSON_ASSERT(loc != nullptr);
+-        return (loc->decimal_point == nullptr) ? '.' : *(loc->decimal_point);
+-    }
+-
+-    /////////////////////
+-    // scan functions
+-    /////////////////////
+-
+-    /*!
+-    @brief get codepoint from 4 hex characters following `\u`
+-
+-    For input "\u c1 c2 c3 c4" the codepoint is:
+-      (c1 * 0x1000) + (c2 * 0x0100) + (c3 * 0x0010) + c4
+-    = (c1 << 12) + (c2 << 8) + (c3 << 4) + (c4 << 0)
+-
+-    Furthermore, the possible characters '0'..'9', 'A'..'F', and 'a'..'f'
+-    must be converted to the integers 0x0..0x9, 0xA..0xF, 0xA..0xF, resp. The
+-    conversion is done by subtracting the offset (0x30, 0x37, and 0x57)
+-    between the ASCII value of the character and the desired integer value.
+-
+-    @return codepoint (0x0000..0xFFFF) or -1 in case of an error (e.g. EOF or
+-            non-hex character)
+-    */
+-    int get_codepoint()
+-    {
+-        // this function only makes sense after reading `\u`
+-        JSON_ASSERT(current == 'u');
+-        int codepoint = 0;
+-
+-        const auto factors = { 12u, 8u, 4u, 0u };
+-        for (const auto factor : factors)
+-        {
+-            get();
+-
+-            if (current >= '0' && current <= '9')
+-            {
+-                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x30u) << factor);
+-            }
+-            else if (current >= 'A' && current <= 'F')
+-            {
+-                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x37u) << factor);
+-            }
+-            else if (current >= 'a' && current <= 'f')
+-            {
+-                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x57u) << factor);
+-            }
+-            else
+-            {
+-                return -1;
+-            }
+-        }
+-
+-        JSON_ASSERT(0x0000 <= codepoint && codepoint <= 0xFFFF);
+-        return codepoint;
+-    }
+-
+-    /*!
+-    @brief check if the next byte(s) are inside a given range
+-
+-    Adds the current byte and, for each passed range, reads a new byte and
+-    checks if it is inside the range. If a violation was detected, set up an
+-    error message and return false. Otherwise, return true.
+-
+-    @param[in] ranges  list of integers; interpreted as list of pairs of
+-                       inclusive lower and upper bound, respectively
+-
+-    @pre The passed list @a ranges must have 2, 4, or 6 elements; that is,
+-         1, 2, or 3 pairs. This precondition is enforced by an assertion.
+-
+-    @return true if and only if no range violation was detected
+-    */
+-    bool next_byte_in_range(std::initializer_list<char_int_type> ranges)
+-    {
+-        JSON_ASSERT(ranges.size() == 2 || ranges.size() == 4 || ranges.size() == 6);
+-        add(current);
+-
+-        for (auto range = ranges.begin(); range != ranges.end(); ++range)
+-        {
+-            get();
+-            if (JSON_HEDLEY_LIKELY(*range <= current && current <= *(++range)))
+-            {
+-                add(current);
+-            }
+-            else
+-            {
+-                error_message = "invalid string: ill-formed UTF-8 byte";
+-                return false;
+-            }
+-        }
+-
+-        return true;
+-    }
+-
+-    /*!
+-    @brief scan a string literal
+-
+-    This function scans a string according to Sect. 7 of RFC 8259. While
+-    scanning, bytes are escaped and copied into buffer token_buffer. Then the
+-    function returns successfully, token_buffer is *not* null-terminated (as it
+-    may contain \0 bytes), and token_buffer.size() is the number of bytes in the
+-    string.
+-
+-    @return token_type::value_string if string could be successfully scanned,
+-            token_type::parse_error otherwise
+-
+-    @note In case of errors, variable error_message contains a textual
+-          description.
+-    */
+-    token_type scan_string()
+-    {
+-        // reset token_buffer (ignore opening quote)
+-        reset();
+-
+-        // we entered the function by reading an open quote
+-        JSON_ASSERT(current == '\"');
+-
+-        while (true)
+-        {
+-            // get next character
+-            switch (get())
+-            {
+-                // end of file while parsing string
+-                case std::char_traits<char_type>::eof():
+-                {
+-                    error_message = "invalid string: missing closing quote";
+-                    return token_type::parse_error;
+-                }
+-
+-                // closing quote
+-                case '\"':
+-                {
+-                    return token_type::value_string;
+-                }
+-
+-                // escapes
+-                case '\\':
+-                {
+-                    switch (get())
+-                    {
+-                        // quotation mark
+-                        case '\"':
+-                            add('\"');
+-                            break;
+-                        // reverse solidus
+-                        case '\\':
+-                            add('\\');
+-                            break;
+-                        // solidus
+-                        case '/':
+-                            add('/');
+-                            break;
+-                        // backspace
+-                        case 'b':
+-                            add('\b');
+-                            break;
+-                        // form feed
+-                        case 'f':
+-                            add('\f');
+-                            break;
+-                        // line feed
+-                        case 'n':
+-                            add('\n');
+-                            break;
+-                        // carriage return
+-                        case 'r':
+-                            add('\r');
+-                            break;
+-                        // tab
+-                        case 't':
+-                            add('\t');
+-                            break;
+-
+-                        // unicode escapes
+-                        case 'u':
+-                        {
+-                            const int codepoint1 = get_codepoint();
+-                            int codepoint = codepoint1; // start with codepoint1
+-
+-                            if (JSON_HEDLEY_UNLIKELY(codepoint1 == -1))
+-                            {
+-                                error_message = "invalid string: '\\u' must be followed by 4 hex digits";
+-                                return token_type::parse_error;
+-                            }
+-
+-                            // check if code point is a high surrogate
+-                            if (0xD800 <= codepoint1 && codepoint1 <= 0xDBFF)
+-                            {
+-                                // expect next \uxxxx entry
+-                                if (JSON_HEDLEY_LIKELY(get() == '\\' && get() == 'u'))
+-                                {
+-                                    const int codepoint2 = get_codepoint();
+-
+-                                    if (JSON_HEDLEY_UNLIKELY(codepoint2 == -1))
+-                                    {
+-                                        error_message = "invalid string: '\\u' must be followed by 4 hex digits";
+-                                        return token_type::parse_error;
+-                                    }
+-
+-                                    // check if codepoint2 is a low surrogate
+-                                    if (JSON_HEDLEY_LIKELY(0xDC00 <= codepoint2 && codepoint2 <= 0xDFFF))
+-                                    {
+-                                        // overwrite codepoint
+-                                        codepoint = static_cast<int>(
+-                                                        // high surrogate occupies the most significant 22 bits
+-                                                        (static_cast<unsigned int>(codepoint1) << 10u)
+-                                                        // low surrogate occupies the least significant 15 bits
+-                                                        + static_cast<unsigned int>(codepoint2)
+-                                                        // there is still the 0xD800, 0xDC00 and 0x10000 noise
+-                                                        // in the result, so we have to subtract with:
+-                                                        // (0xD800 << 10) + DC00 - 0x10000 = 0x35FDC00
+-                                                        - 0x35FDC00u);
+-                                    }
+-                                    else
+-                                    {
+-                                        error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
+-                                        return token_type::parse_error;
+-                                    }
+-                                }
+-                                else
+-                                {
+-                                    error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
+-                                    return token_type::parse_error;
+-                                }
+-                            }
+-                            else
+-                            {
+-                                if (JSON_HEDLEY_UNLIKELY(0xDC00 <= codepoint1 && codepoint1 <= 0xDFFF))
+-                                {
+-                                    error_message = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
+-                                    return token_type::parse_error;
+-                                }
+-                            }
+-
+-                            // result of the above calculation yields a proper codepoint
+-                            JSON_ASSERT(0x00 <= codepoint && codepoint <= 0x10FFFF);
+-
+-                            // translate codepoint into bytes
+-                            if (codepoint < 0x80)
+-                            {
+-                                // 1-byte characters: 0xxxxxxx (ASCII)
+-                                add(static_cast<char_int_type>(codepoint));
+-                            }
+-                            else if (codepoint <= 0x7FF)
+-                            {
+-                                // 2-byte characters: 110xxxxx 10xxxxxx
+-                                add(static_cast<char_int_type>(0xC0u | (static_cast<unsigned int>(codepoint) >> 6u)));
+-                                add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
+-                            }
+-                            else if (codepoint <= 0xFFFF)
+-                            {
+-                                // 3-byte characters: 1110xxxx 10xxxxxx 10xxxxxx
+-                                add(static_cast<char_int_type>(0xE0u | (static_cast<unsigned int>(codepoint) >> 12u)));
+-                                add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu)));
+-                                add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
+-                            }
+-                            else
+-                            {
+-                                // 4-byte characters: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
+-                                add(static_cast<char_int_type>(0xF0u | (static_cast<unsigned int>(codepoint) >> 18u)));
+-                                add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 12u) & 0x3Fu)));
+-                                add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu)));
+-                                add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
+-                            }
+-
+-                            break;
+-                        }
+-
+-                        // other characters after escape
+-                        default:
+-                            error_message = "invalid string: forbidden character after backslash";
+-                            return token_type::parse_error;
+-                    }
+-
+-                    break;
+-                }
+-
+-                // invalid control characters
+-                case 0x00:
+-                {
+-                    error_message = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x01:
+-                {
+-                    error_message = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x02:
+-                {
+-                    error_message = "invalid string: control character U+0002 (STX) must be escaped to \\u0002";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x03:
+-                {
+-                    error_message = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x04:
+-                {
+-                    error_message = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x05:
+-                {
+-                    error_message = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x06:
+-                {
+-                    error_message = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x07:
+-                {
+-                    error_message = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x08:
+-                {
+-                    error_message = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x09:
+-                {
+-                    error_message = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0A:
+-                {
+-                    error_message = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0B:
+-                {
+-                    error_message = "invalid string: control character U+000B (VT) must be escaped to \\u000B";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0C:
+-                {
+-                    error_message = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0D:
+-                {
+-                    error_message = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0E:
+-                {
+-                    error_message = "invalid string: control character U+000E (SO) must be escaped to \\u000E";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x0F:
+-                {
+-                    error_message = "invalid string: control character U+000F (SI) must be escaped to \\u000F";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x10:
+-                {
+-                    error_message = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x11:
+-                {
+-                    error_message = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x12:
+-                {
+-                    error_message = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x13:
+-                {
+-                    error_message = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x14:
+-                {
+-                    error_message = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x15:
+-                {
+-                    error_message = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x16:
+-                {
+-                    error_message = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x17:
+-                {
+-                    error_message = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x18:
+-                {
+-                    error_message = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x19:
+-                {
+-                    error_message = "invalid string: control character U+0019 (EM) must be escaped to \\u0019";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1A:
+-                {
+-                    error_message = "invalid string: control character U+001A (SUB) must be escaped to \\u001A";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1B:
+-                {
+-                    error_message = "invalid string: control character U+001B (ESC) must be escaped to \\u001B";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1C:
+-                {
+-                    error_message = "invalid string: control character U+001C (FS) must be escaped to \\u001C";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1D:
+-                {
+-                    error_message = "invalid string: control character U+001D (GS) must be escaped to \\u001D";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1E:
+-                {
+-                    error_message = "invalid string: control character U+001E (RS) must be escaped to \\u001E";
+-                    return token_type::parse_error;
+-                }
+-
+-                case 0x1F:
+-                {
+-                    error_message = "invalid string: control character U+001F (US) must be escaped to \\u001F";
+-                    return token_type::parse_error;
+-                }
+-
+-                // U+0020..U+007F (except U+0022 (quote) and U+005C (backspace))
+-                case 0x20:
+-                case 0x21:
+-                case 0x23:
+-                case 0x24:
+-                case 0x25:
+-                case 0x26:
+-                case 0x27:
+-                case 0x28:
+-                case 0x29:
+-                case 0x2A:
+-                case 0x2B:
+-                case 0x2C:
+-                case 0x2D:
+-                case 0x2E:
+-                case 0x2F:
+-                case 0x30:
+-                case 0x31:
+-                case 0x32:
+-                case 0x33:
+-                case 0x34:
+-                case 0x35:
+-                case 0x36:
+-                case 0x37:
+-                case 0x38:
+-                case 0x39:
+-                case 0x3A:
+-                case 0x3B:
+-                case 0x3C:
+-                case 0x3D:
+-                case 0x3E:
+-                case 0x3F:
+-                case 0x40:
+-                case 0x41:
+-                case 0x42:
+-                case 0x43:
+-                case 0x44:
+-                case 0x45:
+-                case 0x46:
+-                case 0x47:
+-                case 0x48:
+-                case 0x49:
+-                case 0x4A:
+-                case 0x4B:
+-                case 0x4C:
+-                case 0x4D:
+-                case 0x4E:
+-                case 0x4F:
+-                case 0x50:
+-                case 0x51:
+-                case 0x52:
+-                case 0x53:
+-                case 0x54:
+-                case 0x55:
+-                case 0x56:
+-                case 0x57:
+-                case 0x58:
+-                case 0x59:
+-                case 0x5A:
+-                case 0x5B:
+-                case 0x5D:
+-                case 0x5E:
+-                case 0x5F:
+-                case 0x60:
+-                case 0x61:
+-                case 0x62:
+-                case 0x63:
+-                case 0x64:
+-                case 0x65:
+-                case 0x66:
+-                case 0x67:
+-                case 0x68:
+-                case 0x69:
+-                case 0x6A:
+-                case 0x6B:
+-                case 0x6C:
+-                case 0x6D:
+-                case 0x6E:
+-                case 0x6F:
+-                case 0x70:
+-                case 0x71:
+-                case 0x72:
+-                case 0x73:
+-                case 0x74:
+-                case 0x75:
+-                case 0x76:
+-                case 0x77:
+-                case 0x78:
+-                case 0x79:
+-                case 0x7A:
+-                case 0x7B:
+-                case 0x7C:
+-                case 0x7D:
+-                case 0x7E:
+-                case 0x7F:
+-                {
+-                    add(current);
+-                    break;
+-                }
+-
+-                // U+0080..U+07FF: bytes C2..DF 80..BF
+-                case 0xC2:
+-                case 0xC3:
+-                case 0xC4:
+-                case 0xC5:
+-                case 0xC6:
+-                case 0xC7:
+-                case 0xC8:
+-                case 0xC9:
+-                case 0xCA:
+-                case 0xCB:
+-                case 0xCC:
+-                case 0xCD:
+-                case 0xCE:
+-                case 0xCF:
+-                case 0xD0:
+-                case 0xD1:
+-                case 0xD2:
+-                case 0xD3:
+-                case 0xD4:
+-                case 0xD5:
+-                case 0xD6:
+-                case 0xD7:
+-                case 0xD8:
+-                case 0xD9:
+-                case 0xDA:
+-                case 0xDB:
+-                case 0xDC:
+-                case 0xDD:
+-                case 0xDE:
+-                case 0xDF:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!next_byte_in_range({0x80, 0xBF})))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+0800..U+0FFF: bytes E0 A0..BF 80..BF
+-                case 0xE0:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0xA0, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+1000..U+CFFF: bytes E1..EC 80..BF 80..BF
+-                // U+E000..U+FFFF: bytes EE..EF 80..BF 80..BF
+-                case 0xE1:
+-                case 0xE2:
+-                case 0xE3:
+-                case 0xE4:
+-                case 0xE5:
+-                case 0xE6:
+-                case 0xE7:
+-                case 0xE8:
+-                case 0xE9:
+-                case 0xEA:
+-                case 0xEB:
+-                case 0xEC:
+-                case 0xEE:
+-                case 0xEF:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+D000..U+D7FF: bytes ED 80..9F 80..BF
+-                case 0xED:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x9F, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+10000..U+3FFFF F0 90..BF 80..BF 80..BF
+-                case 0xF0:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x90, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+40000..U+FFFFF F1..F3 80..BF 80..BF 80..BF
+-                case 0xF1:
+-                case 0xF2:
+-                case 0xF3:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // U+100000..U+10FFFF F4 80..8F 80..BF 80..BF
+-                case 0xF4:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x8F, 0x80, 0xBF, 0x80, 0xBF}))))
+-                    {
+-                        return token_type::parse_error;
+-                    }
+-                    break;
+-                }
+-
+-                // remaining bytes (80..C1 and F5..FF) are ill-formed
+-                default:
+-                {
+-                    error_message = "invalid string: ill-formed UTF-8 byte";
+-                    return token_type::parse_error;
+-                }
+-            }
+-        }
+-    }
+-
+-    /*!
+-     * @brief scan a comment
+-     * @return whether comment could be scanned successfully
+-     */
+-    bool scan_comment()
+-    {
+-        switch (get())
+-        {
+-            // single-line comments skip input until a newline or EOF is read
+-            case '/':
+-            {
+-                while (true)
+-                {
+-                    switch (get())
+-                    {
+-                        case '\n':
+-                        case '\r':
+-                        case std::char_traits<char_type>::eof():
+-                        case '\0':
+-                            return true;
+-
+-                        default:
+-                            break;
+-                    }
+-                }
+-            }
+-
+-            // multi-line comments skip input until */ is read
+-            case '*':
+-            {
+-                while (true)
+-                {
+-                    switch (get())
+-                    {
+-                        case std::char_traits<char_type>::eof():
+-                        case '\0':
+-                        {
+-                            error_message = "invalid comment; missing closing '*/'";
+-                            return false;
+-                        }
+-
+-                        case '*':
+-                        {
+-                            switch (get())
+-                            {
+-                                case '/':
+-                                    return true;
+-
+-                                default:
+-                                {
+-                                    unget();
+-                                    continue;
+-                                }
+-                            }
+-                        }
+-
+-                        default:
+-                            continue;
+-                    }
+-                }
+-            }
+-
+-            // unexpected character after reading '/'
+-            default:
+-            {
+-                error_message = "invalid comment; expecting '/' or '*' after '/'";
+-                return false;
+-            }
+-        }
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    static void strtof(float& f, const char* str, char** endptr) noexcept
+-    {
+-        f = std::strtof(str, endptr);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    static void strtof(double& f, const char* str, char** endptr) noexcept
+-    {
+-        f = std::strtod(str, endptr);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    static void strtof(long double& f, const char* str, char** endptr) noexcept
+-    {
+-        f = std::strtold(str, endptr);
+-    }
+-
+-    /*!
+-    @brief scan a number literal
+-
+-    This function scans a string according to Sect. 6 of RFC 8259.
+-
+-    The function is realized with a deterministic finite state machine derived
+-    from the grammar described in RFC 8259. Starting in state "init", the
+-    input is read and used to determined the next state. Only state "done"
+-    accepts the number. State "error" is a trap state to model errors. In the
+-    table below, "anything" means any character but the ones listed before.
+-
+-    state    | 0        | 1-9      | e E      | +       | -       | .        | anything
+-    ---------|----------|----------|----------|---------|---------|----------|-----------
+-    init     | zero     | any1     | [error]  | [error] | minus   | [error]  | [error]
+-    minus    | zero     | any1     | [error]  | [error] | [error] | [error]  | [error]
+-    zero     | done     | done     | exponent | done    | done    | decimal1 | done
+-    any1     | any1     | any1     | exponent | done    | done    | decimal1 | done
+-    decimal1 | decimal2 | decimal2 | [error]  | [error] | [error] | [error]  | [error]
+-    decimal2 | decimal2 | decimal2 | exponent | done    | done    | done     | done
+-    exponent | any2     | any2     | [error]  | sign    | sign    | [error]  | [error]
+-    sign     | any2     | any2     | [error]  | [error] | [error] | [error]  | [error]
+-    any2     | any2     | any2     | done     | done    | done    | done     | done
+-
+-    The state machine is realized with one label per state (prefixed with
+-    "scan_number_") and `goto` statements between them. The state machine
+-    contains cycles, but any cycle can be left when EOF is read. Therefore,
+-    the function is guaranteed to terminate.
+-
+-    During scanning, the read bytes are stored in token_buffer. This string is
+-    then converted to a signed integer, an unsigned integer, or a
+-    floating-point number.
+-
+-    @return token_type::value_unsigned, token_type::value_integer, or
+-            token_type::value_float if number could be successfully scanned,
+-            token_type::parse_error otherwise
+-
+-    @note The scanner is independent of the current locale. Internally, the
+-          locale's decimal point is used instead of `.` to work with the
+-          locale-dependent converters.
+-    */
+-    token_type scan_number()  // lgtm [cpp/use-of-goto]
+-    {
+-        // reset token_buffer to store the number's bytes
+-        reset();
+-
+-        // the type of the parsed number; initially set to unsigned; will be
+-        // changed if minus sign, decimal point or exponent is read
+-        token_type number_type = token_type::value_unsigned;
+-
+-        // state (init): we just found out we need to scan a number
+-        switch (current)
+-        {
+-            case '-':
+-            {
+-                add(current);
+-                goto scan_number_minus;
+-            }
+-
+-            case '0':
+-            {
+-                add(current);
+-                goto scan_number_zero;
+-            }
+-
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any1;
+-            }
+-
+-            // all other characters are rejected outside scan_number()
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-
+-scan_number_minus:
+-        // state: we just parsed a leading minus sign
+-        number_type = token_type::value_integer;
+-        switch (get())
+-        {
+-            case '0':
+-            {
+-                add(current);
+-                goto scan_number_zero;
+-            }
+-
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any1;
+-            }
+-
+-            default:
+-            {
+-                error_message = "invalid number; expected digit after '-'";
+-                return token_type::parse_error;
+-            }
+-        }
+-
+-scan_number_zero:
+-        // state: we just parse a zero (maybe with a leading minus sign)
+-        switch (get())
+-        {
+-            case '.':
+-            {
+-                add(decimal_point_char);
+-                goto scan_number_decimal1;
+-            }
+-
+-            case 'e':
+-            case 'E':
+-            {
+-                add(current);
+-                goto scan_number_exponent;
+-            }
+-
+-            default:
+-                goto scan_number_done;
+-        }
+-
+-scan_number_any1:
+-        // state: we just parsed a number 0-9 (maybe with a leading minus sign)
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any1;
+-            }
+-
+-            case '.':
+-            {
+-                add(decimal_point_char);
+-                goto scan_number_decimal1;
+-            }
+-
+-            case 'e':
+-            case 'E':
+-            {
+-                add(current);
+-                goto scan_number_exponent;
+-            }
+-
+-            default:
+-                goto scan_number_done;
+-        }
+-
+-scan_number_decimal1:
+-        // state: we just parsed a decimal point
+-        number_type = token_type::value_float;
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_decimal2;
+-            }
+-
+-            default:
+-            {
+-                error_message = "invalid number; expected digit after '.'";
+-                return token_type::parse_error;
+-            }
+-        }
+-
+-scan_number_decimal2:
+-        // we just parsed at least one number after a decimal point
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_decimal2;
+-            }
+-
+-            case 'e':
+-            case 'E':
+-            {
+-                add(current);
+-                goto scan_number_exponent;
+-            }
+-
+-            default:
+-                goto scan_number_done;
+-        }
+-
+-scan_number_exponent:
+-        // we just parsed an exponent
+-        number_type = token_type::value_float;
+-        switch (get())
+-        {
+-            case '+':
+-            case '-':
+-            {
+-                add(current);
+-                goto scan_number_sign;
+-            }
+-
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any2;
+-            }
+-
+-            default:
+-            {
+-                error_message =
+-                    "invalid number; expected '+', '-', or digit after exponent";
+-                return token_type::parse_error;
+-            }
+-        }
+-
+-scan_number_sign:
+-        // we just parsed an exponent sign
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any2;
+-            }
+-
+-            default:
+-            {
+-                error_message = "invalid number; expected digit after exponent sign";
+-                return token_type::parse_error;
+-            }
+-        }
+-
+-scan_number_any2:
+-        // we just parsed a number after the exponent or exponent sign
+-        switch (get())
+-        {
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-            {
+-                add(current);
+-                goto scan_number_any2;
+-            }
+-
+-            default:
+-                goto scan_number_done;
+-        }
+-
+-scan_number_done:
+-        // unget the character after the number (we only read it to know that
+-        // we are done scanning a number)
+-        unget();
+-
+-        char* endptr = nullptr; // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-        errno = 0;
+-
+-        // try to parse integers first and fall back to floats
+-        if (number_type == token_type::value_unsigned)
+-        {
+-            const auto x = std::strtoull(token_buffer.data(), &endptr, 10);
+-
+-            // we checked the number format before
+-            JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
+-
+-            if (errno == 0)
+-            {
+-                value_unsigned = static_cast<number_unsigned_t>(x);
+-                if (value_unsigned == x)
+-                {
+-                    return token_type::value_unsigned;
+-                }
+-            }
+-        }
+-        else if (number_type == token_type::value_integer)
+-        {
+-            const auto x = std::strtoll(token_buffer.data(), &endptr, 10);
+-
+-            // we checked the number format before
+-            JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
+-
+-            if (errno == 0)
+-            {
+-                value_integer = static_cast<number_integer_t>(x);
+-                if (value_integer == x)
+-                {
+-                    return token_type::value_integer;
+-                }
+-            }
+-        }
+-
+-        // this code is reached if we parse a floating-point number or if an
+-        // integer conversion above failed
+-        strtof(value_float, token_buffer.data(), &endptr);
+-
+-        // we checked the number format before
+-        JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
+-
+-        return token_type::value_float;
+-    }
+-
+-    /*!
+-    @param[in] literal_text  the literal text to expect
+-    @param[in] length        the length of the passed literal text
+-    @param[in] return_type   the token type to return on success
+-    */
+-    JSON_HEDLEY_NON_NULL(2)
+-    token_type scan_literal(const char_type* literal_text, const std::size_t length,
+-                            token_type return_type)
+-    {
+-        JSON_ASSERT(std::char_traits<char_type>::to_char_type(current) == literal_text[0]);
+-        for (std::size_t i = 1; i < length; ++i)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(std::char_traits<char_type>::to_char_type(get()) != literal_text[i]))
+-            {
+-                error_message = "invalid literal";
+-                return token_type::parse_error;
+-            }
+-        }
+-        return return_type;
+-    }
+-
+-    /////////////////////
+-    // input management
+-    /////////////////////
+-
+-    /// reset token_buffer; current character is beginning of token
+-    void reset() noexcept
+-    {
+-        token_buffer.clear();
+-        token_string.clear();
+-        token_string.push_back(std::char_traits<char_type>::to_char_type(current));
+-    }
+-
+-    /*
+-    @brief get next character from the input
+-
+-    This function provides the interface to the used input adapter. It does
+-    not throw in case the input reached EOF, but returns a
+-    `std::char_traits<char>::eof()` in that case.  Stores the scanned characters
+-    for use in error messages.
+-
+-    @return character read from the input
+-    */
+-    char_int_type get()
+-    {
+-        ++position.chars_read_total;
+-        ++position.chars_read_current_line;
+-
+-        if (next_unget)
+-        {
+-            // just reset the next_unget variable and work with current
+-            next_unget = false;
+-        }
+-        else
+-        {
+-            current = ia.get_character();
+-        }
+-
+-        if (JSON_HEDLEY_LIKELY(current != std::char_traits<char_type>::eof()))
+-        {
+-            token_string.push_back(std::char_traits<char_type>::to_char_type(current));
+-        }
+-
+-        if (current == '\n')
+-        {
+-            ++position.lines_read;
+-            position.chars_read_current_line = 0;
+-        }
+-
+-        return current;
+-    }
+-
+-    /*!
+-    @brief unget current character (read it again on next get)
+-
+-    We implement unget by setting variable next_unget to true. The input is not
+-    changed - we just simulate ungetting by modifying chars_read_total,
+-    chars_read_current_line, and token_string. The next call to get() will
+-    behave as if the unget character is read again.
+-    */
+-    void unget()
+-    {
+-        next_unget = true;
+-
+-        --position.chars_read_total;
+-
+-        // in case we "unget" a newline, we have to also decrement the lines_read
+-        if (position.chars_read_current_line == 0)
+-        {
+-            if (position.lines_read > 0)
+-            {
+-                --position.lines_read;
+-            }
+-        }
+-        else
+-        {
+-            --position.chars_read_current_line;
+-        }
+-
+-        if (JSON_HEDLEY_LIKELY(current != std::char_traits<char_type>::eof()))
+-        {
+-            JSON_ASSERT(!token_string.empty());
+-            token_string.pop_back();
+-        }
+-    }
+-
+-    /// add a character to token_buffer
+-    void add(char_int_type c)
+-    {
+-        token_buffer.push_back(static_cast<typename string_t::value_type>(c));
+-    }
+-
+-  public:
+-    /////////////////////
+-    // value getters
+-    /////////////////////
+-
+-    /// return integer value
+-    constexpr number_integer_t get_number_integer() const noexcept
+-    {
+-        return value_integer;
+-    }
+-
+-    /// return unsigned integer value
+-    constexpr number_unsigned_t get_number_unsigned() const noexcept
+-    {
+-        return value_unsigned;
+-    }
+-
+-    /// return floating-point value
+-    constexpr number_float_t get_number_float() const noexcept
+-    {
+-        return value_float;
+-    }
+-
+-    /// return current string value (implicitly resets the token; useful only once)
+-    string_t& get_string()
+-    {
+-        return token_buffer;
+-    }
+-
+-    /////////////////////
+-    // diagnostics
+-    /////////////////////
+-
+-    /// return position of last read token
+-    constexpr position_t get_position() const noexcept
+-    {
+-        return position;
+-    }
+-
+-    /// return the last read token (for errors only).  Will never contain EOF
+-    /// (an arbitrary value that is not a valid char value, often -1), because
+-    /// 255 may legitimately occur.  May contain NUL, which should be escaped.
+-    std::string get_token_string() const
+-    {
+-        // escape control characters
+-        std::string result;
+-        for (const auto c : token_string)
+-        {
+-            if (static_cast<unsigned char>(c) <= '\x1F')
+-            {
+-                // escape control characters
+-                std::array<char, 9> cs{{}};
+-                static_cast<void>((std::snprintf)(cs.data(), cs.size(), "<U+%.4X>", static_cast<unsigned char>(c))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-                result += cs.data();
+-            }
+-            else
+-            {
+-                // add character as is
+-                result.push_back(static_cast<std::string::value_type>(c));
+-            }
+-        }
+-
+-        return result;
+-    }
+-
+-    /// return syntax error message
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    constexpr const char* get_error_message() const noexcept
+-    {
+-        return error_message;
+-    }
+-
+-    /////////////////////
+-    // actual scanner
+-    /////////////////////
+-
+-    /*!
+-    @brief skip the UTF-8 byte order mark
+-    @return true iff there is no BOM or the correct BOM has been skipped
+-    */
+-    bool skip_bom()
+-    {
+-        if (get() == 0xEF)
+-        {
+-            // check if we completely parse the BOM
+-            return get() == 0xBB && get() == 0xBF;
+-        }
+-
+-        // the first character is not the beginning of the BOM; unget it to
+-        // process is later
+-        unget();
+-        return true;
+-    }
+-
+-    void skip_whitespace()
+-    {
+-        do
+-        {
+-            get();
+-        }
+-        while (current == ' ' || current == '\t' || current == '\n' || current == '\r');
+-    }
+-
+-    token_type scan()
+-    {
+-        // initially, skip the BOM
+-        if (position.chars_read_total == 0 && !skip_bom())
+-        {
+-            error_message = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
+-            return token_type::parse_error;
+-        }
+-
+-        // read next character and ignore whitespace
+-        skip_whitespace();
+-
+-        // ignore comments
+-        while (ignore_comments && current == '/')
+-        {
+-            if (!scan_comment())
+-            {
+-                return token_type::parse_error;
+-            }
+-
+-            // skip following whitespace
+-            skip_whitespace();
+-        }
+-
+-        switch (current)
+-        {
+-            // structural characters
+-            case '[':
+-                return token_type::begin_array;
+-            case ']':
+-                return token_type::end_array;
+-            case '{':
+-                return token_type::begin_object;
+-            case '}':
+-                return token_type::end_object;
+-            case ':':
+-                return token_type::name_separator;
+-            case ',':
+-                return token_type::value_separator;
+-
+-            // literals
+-            case 't':
+-            {
+-                std::array<char_type, 4> true_literal = {{static_cast<char_type>('t'), static_cast<char_type>('r'), static_cast<char_type>('u'), static_cast<char_type>('e')}};
+-                return scan_literal(true_literal.data(), true_literal.size(), token_type::literal_true);
+-            }
+-            case 'f':
+-            {
+-                std::array<char_type, 5> false_literal = {{static_cast<char_type>('f'), static_cast<char_type>('a'), static_cast<char_type>('l'), static_cast<char_type>('s'), static_cast<char_type>('e')}};
+-                return scan_literal(false_literal.data(), false_literal.size(), token_type::literal_false);
+-            }
+-            case 'n':
+-            {
+-                std::array<char_type, 4> null_literal = {{static_cast<char_type>('n'), static_cast<char_type>('u'), static_cast<char_type>('l'), static_cast<char_type>('l')}};
+-                return scan_literal(null_literal.data(), null_literal.size(), token_type::literal_null);
+-            }
+-
+-            // string
+-            case '\"':
+-                return scan_string();
+-
+-            // number
+-            case '-':
+-            case '0':
+-            case '1':
+-            case '2':
+-            case '3':
+-            case '4':
+-            case '5':
+-            case '6':
+-            case '7':
+-            case '8':
+-            case '9':
+-                return scan_number();
+-
+-            // end of input (the null byte is needed when parsing from
+-            // string literals)
+-            case '\0':
+-            case std::char_traits<char_type>::eof():
+-                return token_type::end_of_input;
+-
+-            // error
+-            default:
+-                error_message = "invalid literal";
+-                return token_type::parse_error;
+-        }
+-    }
+-
+-  private:
+-    /// input adapter
+-    InputAdapterType ia;
+-
+-    /// whether comments should be ignored (true) or signaled as errors (false)
+-    const bool ignore_comments = false;
+-
+-    /// the current character
+-    char_int_type current = std::char_traits<char_type>::eof();
+-
+-    /// whether the next get() call should just return current
+-    bool next_unget = false;
+-
+-    /// the start position of the current token
+-    position_t position {};
+-
+-    /// raw input token string (for error messages)
+-    std::vector<char_type> token_string {};
+-
+-    /// buffer for variable-length tokens (numbers, strings)
+-    string_t token_buffer {};
+-
+-    /// a description of occurred lexer errors
+-    const char* error_message = "";
+-
+-    // number values
+-    number_integer_t value_integer = 0;
+-    number_unsigned_t value_unsigned = 0;
+-    number_float_t value_float = 0;
+-
+-    /// the decimal point
+-    const char_int_type decimal_point_char = '.';
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/is_sax.hpp>
+-
+-
+-#include <cstdint> // size_t
+-#include <utility> // declval
+-#include <string> // string
+-
+-// #include <nlohmann/detail/meta/detected.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename T>
+-using null_function_t = decltype(std::declval<T&>().null());
+-
+-template<typename T>
+-using boolean_function_t =
+-    decltype(std::declval<T&>().boolean(std::declval<bool>()));
+-
+-template<typename T, typename Integer>
+-using number_integer_function_t =
+-    decltype(std::declval<T&>().number_integer(std::declval<Integer>()));
+-
+-template<typename T, typename Unsigned>
+-using number_unsigned_function_t =
+-    decltype(std::declval<T&>().number_unsigned(std::declval<Unsigned>()));
+-
+-template<typename T, typename Float, typename String>
+-using number_float_function_t = decltype(std::declval<T&>().number_float(
+-                                    std::declval<Float>(), std::declval<const String&>()));
+-
+-template<typename T, typename String>
+-using string_function_t =
+-    decltype(std::declval<T&>().string(std::declval<String&>()));
+-
+-template<typename T, typename Binary>
+-using binary_function_t =
+-    decltype(std::declval<T&>().binary(std::declval<Binary&>()));
+-
+-template<typename T>
+-using start_object_function_t =
+-    decltype(std::declval<T&>().start_object(std::declval<std::size_t>()));
+-
+-template<typename T, typename String>
+-using key_function_t =
+-    decltype(std::declval<T&>().key(std::declval<String&>()));
+-
+-template<typename T>
+-using end_object_function_t = decltype(std::declval<T&>().end_object());
+-
+-template<typename T>
+-using start_array_function_t =
+-    decltype(std::declval<T&>().start_array(std::declval<std::size_t>()));
+-
+-template<typename T>
+-using end_array_function_t = decltype(std::declval<T&>().end_array());
+-
+-template<typename T, typename Exception>
+-using parse_error_function_t = decltype(std::declval<T&>().parse_error(
+-        std::declval<std::size_t>(), std::declval<const std::string&>(),
+-        std::declval<const Exception&>()));
+-
+-template<typename SAX, typename BasicJsonType>
+-struct is_sax
+-{
+-  private:
+-    static_assert(is_basic_json<BasicJsonType>::value,
+-                  "BasicJsonType must be of type basic_json<...>");
+-
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using exception_t = typename BasicJsonType::exception;
+-
+-  public:
+-    static constexpr bool value =
+-        is_detected_exact<bool, null_function_t, SAX>::value &&
+-        is_detected_exact<bool, boolean_function_t, SAX>::value &&
+-        is_detected_exact<bool, number_integer_function_t, SAX, number_integer_t>::value &&
+-        is_detected_exact<bool, number_unsigned_function_t, SAX, number_unsigned_t>::value &&
+-        is_detected_exact<bool, number_float_function_t, SAX, number_float_t, string_t>::value &&
+-        is_detected_exact<bool, string_function_t, SAX, string_t>::value &&
+-        is_detected_exact<bool, binary_function_t, SAX, binary_t>::value &&
+-        is_detected_exact<bool, start_object_function_t, SAX>::value &&
+-        is_detected_exact<bool, key_function_t, SAX, string_t>::value &&
+-        is_detected_exact<bool, end_object_function_t, SAX>::value &&
+-        is_detected_exact<bool, start_array_function_t, SAX>::value &&
+-        is_detected_exact<bool, end_array_function_t, SAX>::value &&
+-        is_detected_exact<bool, parse_error_function_t, SAX, exception_t>::value;
+-};
+-
+-template<typename SAX, typename BasicJsonType>
+-struct is_sax_static_asserts
+-{
+-  private:
+-    static_assert(is_basic_json<BasicJsonType>::value,
+-                  "BasicJsonType must be of type basic_json<...>");
+-
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using exception_t = typename BasicJsonType::exception;
+-
+-  public:
+-    static_assert(is_detected_exact<bool, null_function_t, SAX>::value,
+-                  "Missing/invalid function: bool null()");
+-    static_assert(is_detected_exact<bool, boolean_function_t, SAX>::value,
+-                  "Missing/invalid function: bool boolean(bool)");
+-    static_assert(is_detected_exact<bool, boolean_function_t, SAX>::value,
+-                  "Missing/invalid function: bool boolean(bool)");
+-    static_assert(
+-        is_detected_exact<bool, number_integer_function_t, SAX,
+-        number_integer_t>::value,
+-        "Missing/invalid function: bool number_integer(number_integer_t)");
+-    static_assert(
+-        is_detected_exact<bool, number_unsigned_function_t, SAX,
+-        number_unsigned_t>::value,
+-        "Missing/invalid function: bool number_unsigned(number_unsigned_t)");
+-    static_assert(is_detected_exact<bool, number_float_function_t, SAX,
+-                  number_float_t, string_t>::value,
+-                  "Missing/invalid function: bool number_float(number_float_t, const string_t&)");
+-    static_assert(
+-        is_detected_exact<bool, string_function_t, SAX, string_t>::value,
+-        "Missing/invalid function: bool string(string_t&)");
+-    static_assert(
+-        is_detected_exact<bool, binary_function_t, SAX, binary_t>::value,
+-        "Missing/invalid function: bool binary(binary_t&)");
+-    static_assert(is_detected_exact<bool, start_object_function_t, SAX>::value,
+-                  "Missing/invalid function: bool start_object(std::size_t)");
+-    static_assert(is_detected_exact<bool, key_function_t, SAX, string_t>::value,
+-                  "Missing/invalid function: bool key(string_t&)");
+-    static_assert(is_detected_exact<bool, end_object_function_t, SAX>::value,
+-                  "Missing/invalid function: bool end_object()");
+-    static_assert(is_detected_exact<bool, start_array_function_t, SAX>::value,
+-                  "Missing/invalid function: bool start_array(std::size_t)");
+-    static_assert(is_detected_exact<bool, end_array_function_t, SAX>::value,
+-                  "Missing/invalid function: bool end_array()");
+-    static_assert(
+-        is_detected_exact<bool, parse_error_function_t, SAX, exception_t>::value,
+-        "Missing/invalid function: bool parse_error(std::size_t, const "
+-        "std::string&, const exception&)");
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-/// how to treat CBOR tags
+-enum class cbor_tag_handler_t
+-{
+-    error,   ///< throw a parse_error exception in case of a tag
+-    ignore,  ///< ignore tags
+-    store    ///< store tags as binary type
+-};
+-
+-/*!
+-@brief determine system byte order
+-
+-@return true if and only if system's byte order is little endian
+-
+-@note from https://stackoverflow.com/a/1001328/266378
+-*/
+-static inline bool little_endianness(int num = 1) noexcept
+-{
+-    return *reinterpret_cast<char*>(&num) == 1;
+-}
+-
+-
+-///////////////////
+-// binary reader //
+-///////////////////
+-
+-/*!
+-@brief deserialization of CBOR, MessagePack, and UBJSON values
+-*/
+-template<typename BasicJsonType, typename InputAdapterType, typename SAX = json_sax_dom_parser<BasicJsonType>>
+-class binary_reader
+-{
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using json_sax_t = SAX;
+-    using char_type = typename InputAdapterType::char_type;
+-    using char_int_type = typename std::char_traits<char_type>::int_type;
+-
+-  public:
+-    /*!
+-    @brief create a binary reader
+-
+-    @param[in] adapter  input adapter to read from
+-    */
+-    explicit binary_reader(InputAdapterType&& adapter) noexcept : ia(std::move(adapter))
+-    {
+-        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
+-    }
+-
+-    // make class move-only
+-    binary_reader(const binary_reader&) = delete;
+-    binary_reader(binary_reader&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    binary_reader& operator=(const binary_reader&) = delete;
+-    binary_reader& operator=(binary_reader&&) = default; // NOLINT(hicpp-noexcept-move,performance-noexcept-move-constructor)
+-    ~binary_reader() = default;
+-
+-    /*!
+-    @param[in] format  the binary format to parse
+-    @param[in] sax_    a SAX event processor
+-    @param[in] strict  whether to expect the input to be consumed completed
+-    @param[in] tag_handler  how to treat CBOR tags
+-
+-    @return whether parsing was successful
+-    */
+-    JSON_HEDLEY_NON_NULL(3)
+-    bool sax_parse(const input_format_t format,
+-                   json_sax_t* sax_,
+-                   const bool strict = true,
+-                   const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        sax = sax_;
+-        bool result = false;
+-
+-        switch (format)
+-        {
+-            case input_format_t::bson:
+-                result = parse_bson_internal();
+-                break;
+-
+-            case input_format_t::cbor:
+-                result = parse_cbor_internal(true, tag_handler);
+-                break;
+-
+-            case input_format_t::msgpack:
+-                result = parse_msgpack_internal();
+-                break;
+-
+-            case input_format_t::ubjson:
+-                result = parse_ubjson_internal();
+-                break;
+-
+-            case input_format_t::json: // LCOV_EXCL_LINE
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-
+-        // strict mode: next byte must be EOF
+-        if (result && strict)
+-        {
+-            if (format == input_format_t::ubjson)
+-            {
+-                get_ignore_noop();
+-            }
+-            else
+-            {
+-                get();
+-            }
+-
+-            if (JSON_HEDLEY_UNLIKELY(current != std::char_traits<char_type>::eof()))
+-            {
+-                return sax->parse_error(chars_read, get_token_string(),
+-                                        parse_error::create(110, chars_read, exception_message(format, "expected end of input; last byte: 0x" + get_token_string(), "value"), BasicJsonType()));
+-            }
+-        }
+-
+-        return result;
+-    }
+-
+-  private:
+-    //////////
+-    // BSON //
+-    //////////
+-
+-    /*!
+-    @brief Reads in a BSON-object and passes it to the SAX-parser.
+-    @return whether a valid BSON-value was passed to the SAX parser
+-    */
+-    bool parse_bson_internal()
+-    {
+-        std::int32_t document_size{};
+-        get_number<std::int32_t, true>(input_format_t::bson, document_size);
+-
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_object(static_cast<std::size_t>(-1))))
+-        {
+-            return false;
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_list(/*is_array*/false)))
+-        {
+-            return false;
+-        }
+-
+-        return sax->end_object();
+-    }
+-
+-    /*!
+-    @brief Parses a C-style string from the BSON input.
+-    @param[in,out] result  A reference to the string variable where the read
+-                            string is to be stored.
+-    @return `true` if the \x00-byte indicating the end of the string was
+-             encountered before the EOF; false` indicates an unexpected EOF.
+-    */
+-    bool get_bson_cstr(string_t& result)
+-    {
+-        auto out = std::back_inserter(result);
+-        while (true)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::bson, "cstring")))
+-            {
+-                return false;
+-            }
+-            if (current == 0x00)
+-            {
+-                return true;
+-            }
+-            *out++ = static_cast<typename string_t::value_type>(current);
+-        }
+-    }
+-
+-    /*!
+-    @brief Parses a zero-terminated string of length @a len from the BSON
+-           input.
+-    @param[in] len  The length (including the zero-byte at the end) of the
+-                    string to be read.
+-    @param[in,out] result  A reference to the string variable where the read
+-                            string is to be stored.
+-    @tparam NumberType The type of the length @a len
+-    @pre len >= 1
+-    @return `true` if the string was successfully parsed
+-    */
+-    template<typename NumberType>
+-    bool get_bson_string(const NumberType len, string_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(len < 1))
+-        {
+-            auto last_token = get_token_string();
+-            return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::bson, "string length must be at least 1, is " + std::to_string(len), "string"), BasicJsonType()));
+-        }
+-
+-        return get_string(input_format_t::bson, len - static_cast<NumberType>(1), result) && get() != std::char_traits<char_type>::eof();
+-    }
+-
+-    /*!
+-    @brief Parses a byte array input of length @a len from the BSON input.
+-    @param[in] len  The length of the byte array to be read.
+-    @param[in,out] result  A reference to the binary variable where the read
+-                            array is to be stored.
+-    @tparam NumberType The type of the length @a len
+-    @pre len >= 0
+-    @return `true` if the byte array was successfully parsed
+-    */
+-    template<typename NumberType>
+-    bool get_bson_binary(const NumberType len, binary_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(len < 0))
+-        {
+-            auto last_token = get_token_string();
+-            return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::bson, "byte array length cannot be negative, is " + std::to_string(len), "binary"), BasicJsonType()));
+-        }
+-
+-        // All BSON binary values have a subtype
+-        std::uint8_t subtype{};
+-        get_number<std::uint8_t>(input_format_t::bson, subtype);
+-        result.set_subtype(subtype);
+-
+-        return get_binary(input_format_t::bson, len, result);
+-    }
+-
+-    /*!
+-    @brief Read a BSON document element of the given @a element_type.
+-    @param[in] element_type The BSON element type, c.f. http://bsonspec.org/spec.html
+-    @param[in] element_type_parse_position The position in the input stream,
+-               where the `element_type` was read.
+-    @warning Not all BSON element types are supported yet. An unsupported
+-             @a element_type will give rise to a parse_error.114:
+-             Unsupported BSON record type 0x...
+-    @return whether a valid BSON-object/array was passed to the SAX parser
+-    */
+-    bool parse_bson_element_internal(const char_int_type element_type,
+-                                     const std::size_t element_type_parse_position)
+-    {
+-        switch (element_type)
+-        {
+-            case 0x01: // double
+-            {
+-                double number{};
+-                return get_number<double, true>(input_format_t::bson, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 0x02: // string
+-            {
+-                std::int32_t len{};
+-                string_t value;
+-                return get_number<std::int32_t, true>(input_format_t::bson, len) && get_bson_string(len, value) && sax->string(value);
+-            }
+-
+-            case 0x03: // object
+-            {
+-                return parse_bson_internal();
+-            }
+-
+-            case 0x04: // array
+-            {
+-                return parse_bson_array();
+-            }
+-
+-            case 0x05: // binary
+-            {
+-                std::int32_t len{};
+-                binary_t value;
+-                return get_number<std::int32_t, true>(input_format_t::bson, len) && get_bson_binary(len, value) && sax->binary(value);
+-            }
+-
+-            case 0x08: // boolean
+-            {
+-                return sax->boolean(get() != 0);
+-            }
+-
+-            case 0x0A: // null
+-            {
+-                return sax->null();
+-            }
+-
+-            case 0x10: // int32
+-            {
+-                std::int32_t value{};
+-                return get_number<std::int32_t, true>(input_format_t::bson, value) && sax->number_integer(value);
+-            }
+-
+-            case 0x12: // int64
+-            {
+-                std::int64_t value{};
+-                return get_number<std::int64_t, true>(input_format_t::bson, value) && sax->number_integer(value);
+-            }
+-
+-            default: // anything else not supported (yet)
+-            {
+-                std::array<char, 3> cr{{}};
+-                static_cast<void>((std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(element_type))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-                return sax->parse_error(element_type_parse_position, std::string(cr.data()), parse_error::create(114, element_type_parse_position, "Unsupported BSON record type 0x" + std::string(cr.data()), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief Read a BSON element list (as specified in the BSON-spec)
+-
+-    The same binary layout is used for objects and arrays, hence it must be
+-    indicated with the argument @a is_array which one is expected
+-    (true --> array, false --> object).
+-
+-    @param[in] is_array Determines if the element list being read is to be
+-                        treated as an object (@a is_array == false), or as an
+-                        array (@a is_array == true).
+-    @return whether a valid BSON-object/array was passed to the SAX parser
+-    */
+-    bool parse_bson_element_list(const bool is_array)
+-    {
+-        string_t key;
+-
+-        while (auto element_type = get())
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::bson, "element list")))
+-            {
+-                return false;
+-            }
+-
+-            const std::size_t element_type_parse_position = chars_read;
+-            if (JSON_HEDLEY_UNLIKELY(!get_bson_cstr(key)))
+-            {
+-                return false;
+-            }
+-
+-            if (!is_array && !sax->key(key))
+-            {
+-                return false;
+-            }
+-
+-            if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_internal(element_type, element_type_parse_position)))
+-            {
+-                return false;
+-            }
+-
+-            // get_bson_cstr only appends
+-            key.clear();
+-        }
+-
+-        return true;
+-    }
+-
+-    /*!
+-    @brief Reads an array from the BSON input and passes it to the SAX-parser.
+-    @return whether a valid BSON-array was passed to the SAX parser
+-    */
+-    bool parse_bson_array()
+-    {
+-        std::int32_t document_size{};
+-        get_number<std::int32_t, true>(input_format_t::bson, document_size);
+-
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_array(static_cast<std::size_t>(-1))))
+-        {
+-            return false;
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_list(/*is_array*/true)))
+-        {
+-            return false;
+-        }
+-
+-        return sax->end_array();
+-    }
+-
+-    //////////
+-    // CBOR //
+-    //////////
+-
+-    /*!
+-    @param[in] get_char  whether a new character should be retrieved from the
+-                         input (true) or whether the last read character should
+-                         be considered instead (false)
+-    @param[in] tag_handler how CBOR tags should be treated
+-
+-    @return whether a valid CBOR value was passed to the SAX parser
+-    */
+-    bool parse_cbor_internal(const bool get_char,
+-                             const cbor_tag_handler_t tag_handler)
+-    {
+-        switch (get_char ? get() : current)
+-        {
+-            // EOF
+-            case std::char_traits<char_type>::eof():
+-                return unexpect_eof(input_format_t::cbor, "value");
+-
+-            // Integer 0x00..0x17 (0..23)
+-            case 0x00:
+-            case 0x01:
+-            case 0x02:
+-            case 0x03:
+-            case 0x04:
+-            case 0x05:
+-            case 0x06:
+-            case 0x07:
+-            case 0x08:
+-            case 0x09:
+-            case 0x0A:
+-            case 0x0B:
+-            case 0x0C:
+-            case 0x0D:
+-            case 0x0E:
+-            case 0x0F:
+-            case 0x10:
+-            case 0x11:
+-            case 0x12:
+-            case 0x13:
+-            case 0x14:
+-            case 0x15:
+-            case 0x16:
+-            case 0x17:
+-                return sax->number_unsigned(static_cast<number_unsigned_t>(current));
+-
+-            case 0x18: // Unsigned integer (one-byte uint8_t follows)
+-            {
+-                std::uint8_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0x19: // Unsigned integer (two-byte uint16_t follows)
+-            {
+-                std::uint16_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0x1A: // Unsigned integer (four-byte uint32_t follows)
+-            {
+-                std::uint32_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0x1B: // Unsigned integer (eight-byte uint64_t follows)
+-            {
+-                std::uint64_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_unsigned(number);
+-            }
+-
+-            // Negative integer -1-0x00..-1-0x17 (-1..-24)
+-            case 0x20:
+-            case 0x21:
+-            case 0x22:
+-            case 0x23:
+-            case 0x24:
+-            case 0x25:
+-            case 0x26:
+-            case 0x27:
+-            case 0x28:
+-            case 0x29:
+-            case 0x2A:
+-            case 0x2B:
+-            case 0x2C:
+-            case 0x2D:
+-            case 0x2E:
+-            case 0x2F:
+-            case 0x30:
+-            case 0x31:
+-            case 0x32:
+-            case 0x33:
+-            case 0x34:
+-            case 0x35:
+-            case 0x36:
+-            case 0x37:
+-                return sax->number_integer(static_cast<std::int8_t>(0x20 - 1 - current));
+-
+-            case 0x38: // Negative integer (one-byte uint8_t follows)
+-            {
+-                std::uint8_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1) - number);
+-            }
+-
+-            case 0x39: // Negative integer -1-n (two-byte uint16_t follows)
+-            {
+-                std::uint16_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1) - number);
+-            }
+-
+-            case 0x3A: // Negative integer -1-n (four-byte uint32_t follows)
+-            {
+-                std::uint32_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1) - number);
+-            }
+-
+-            case 0x3B: // Negative integer -1-n (eight-byte uint64_t follows)
+-            {
+-                std::uint64_t number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1)
+-                        - static_cast<number_integer_t>(number));
+-            }
+-
+-            // Binary data (0x00..0x17 bytes follow)
+-            case 0x40:
+-            case 0x41:
+-            case 0x42:
+-            case 0x43:
+-            case 0x44:
+-            case 0x45:
+-            case 0x46:
+-            case 0x47:
+-            case 0x48:
+-            case 0x49:
+-            case 0x4A:
+-            case 0x4B:
+-            case 0x4C:
+-            case 0x4D:
+-            case 0x4E:
+-            case 0x4F:
+-            case 0x50:
+-            case 0x51:
+-            case 0x52:
+-            case 0x53:
+-            case 0x54:
+-            case 0x55:
+-            case 0x56:
+-            case 0x57:
+-            case 0x58: // Binary data (one-byte uint8_t for n follows)
+-            case 0x59: // Binary data (two-byte uint16_t for n follow)
+-            case 0x5A: // Binary data (four-byte uint32_t for n follow)
+-            case 0x5B: // Binary data (eight-byte uint64_t for n follow)
+-            case 0x5F: // Binary data (indefinite length)
+-            {
+-                binary_t b;
+-                return get_cbor_binary(b) && sax->binary(b);
+-            }
+-
+-            // UTF-8 string (0x00..0x17 bytes follow)
+-            case 0x60:
+-            case 0x61:
+-            case 0x62:
+-            case 0x63:
+-            case 0x64:
+-            case 0x65:
+-            case 0x66:
+-            case 0x67:
+-            case 0x68:
+-            case 0x69:
+-            case 0x6A:
+-            case 0x6B:
+-            case 0x6C:
+-            case 0x6D:
+-            case 0x6E:
+-            case 0x6F:
+-            case 0x70:
+-            case 0x71:
+-            case 0x72:
+-            case 0x73:
+-            case 0x74:
+-            case 0x75:
+-            case 0x76:
+-            case 0x77:
+-            case 0x78: // UTF-8 string (one-byte uint8_t for n follows)
+-            case 0x79: // UTF-8 string (two-byte uint16_t for n follow)
+-            case 0x7A: // UTF-8 string (four-byte uint32_t for n follow)
+-            case 0x7B: // UTF-8 string (eight-byte uint64_t for n follow)
+-            case 0x7F: // UTF-8 string (indefinite length)
+-            {
+-                string_t s;
+-                return get_cbor_string(s) && sax->string(s);
+-            }
+-
+-            // array (0x00..0x17 data items follow)
+-            case 0x80:
+-            case 0x81:
+-            case 0x82:
+-            case 0x83:
+-            case 0x84:
+-            case 0x85:
+-            case 0x86:
+-            case 0x87:
+-            case 0x88:
+-            case 0x89:
+-            case 0x8A:
+-            case 0x8B:
+-            case 0x8C:
+-            case 0x8D:
+-            case 0x8E:
+-            case 0x8F:
+-            case 0x90:
+-            case 0x91:
+-            case 0x92:
+-            case 0x93:
+-            case 0x94:
+-            case 0x95:
+-            case 0x96:
+-            case 0x97:
+-                return get_cbor_array(static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x1Fu), tag_handler);
+-
+-            case 0x98: // array (one-byte uint8_t for n follows)
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0x99: // array (two-byte uint16_t for n follow)
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0x9A: // array (four-byte uint32_t for n follow)
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0x9B: // array (eight-byte uint64_t for n follow)
+-            {
+-                std::uint64_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_array(detail::conditional_static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0x9F: // array (indefinite length)
+-                return get_cbor_array(static_cast<std::size_t>(-1), tag_handler);
+-
+-            // map (0x00..0x17 pairs of data items follow)
+-            case 0xA0:
+-            case 0xA1:
+-            case 0xA2:
+-            case 0xA3:
+-            case 0xA4:
+-            case 0xA5:
+-            case 0xA6:
+-            case 0xA7:
+-            case 0xA8:
+-            case 0xA9:
+-            case 0xAA:
+-            case 0xAB:
+-            case 0xAC:
+-            case 0xAD:
+-            case 0xAE:
+-            case 0xAF:
+-            case 0xB0:
+-            case 0xB1:
+-            case 0xB2:
+-            case 0xB3:
+-            case 0xB4:
+-            case 0xB5:
+-            case 0xB6:
+-            case 0xB7:
+-                return get_cbor_object(static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x1Fu), tag_handler);
+-
+-            case 0xB8: // map (one-byte uint8_t for n follows)
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0xB9: // map (two-byte uint16_t for n follow)
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0xBA: // map (four-byte uint32_t for n follow)
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0xBB: // map (eight-byte uint64_t for n follow)
+-            {
+-                std::uint64_t len{};
+-                return get_number(input_format_t::cbor, len) && get_cbor_object(detail::conditional_static_cast<std::size_t>(len), tag_handler);
+-            }
+-
+-            case 0xBF: // map (indefinite length)
+-                return get_cbor_object(static_cast<std::size_t>(-1), tag_handler);
+-
+-            case 0xC6: // tagged item
+-            case 0xC7:
+-            case 0xC8:
+-            case 0xC9:
+-            case 0xCA:
+-            case 0xCB:
+-            case 0xCC:
+-            case 0xCD:
+-            case 0xCE:
+-            case 0xCF:
+-            case 0xD0:
+-            case 0xD1:
+-            case 0xD2:
+-            case 0xD3:
+-            case 0xD4:
+-            case 0xD8: // tagged item (1 bytes follow)
+-            case 0xD9: // tagged item (2 bytes follow)
+-            case 0xDA: // tagged item (4 bytes follow)
+-            case 0xDB: // tagged item (8 bytes follow)
+-            {
+-                switch (tag_handler)
+-                {
+-                    case cbor_tag_handler_t::error:
+-                    {
+-                        auto last_token = get_token_string();
+-                        return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::cbor, "invalid byte: 0x" + last_token, "value"), BasicJsonType()));
+-                    }
+-
+-                    case cbor_tag_handler_t::ignore:
+-                    {
+-                        // ignore binary subtype
+-                        switch (current)
+-                        {
+-                            case 0xD8:
+-                            {
+-                                std::uint8_t subtype_to_ignore{};
+-                                get_number(input_format_t::cbor, subtype_to_ignore);
+-                                break;
+-                            }
+-                            case 0xD9:
+-                            {
+-                                std::uint16_t subtype_to_ignore{};
+-                                get_number(input_format_t::cbor, subtype_to_ignore);
+-                                break;
+-                            }
+-                            case 0xDA:
+-                            {
+-                                std::uint32_t subtype_to_ignore{};
+-                                get_number(input_format_t::cbor, subtype_to_ignore);
+-                                break;
+-                            }
+-                            case 0xDB:
+-                            {
+-                                std::uint64_t subtype_to_ignore{};
+-                                get_number(input_format_t::cbor, subtype_to_ignore);
+-                                break;
+-                            }
+-                            default:
+-                                break;
+-                        }
+-                        return parse_cbor_internal(true, tag_handler);
+-                    }
+-
+-                    case cbor_tag_handler_t::store:
+-                    {
+-                        binary_t b;
+-                        // use binary subtype and store in binary container
+-                        switch (current)
+-                        {
+-                            case 0xD8:
+-                            {
+-                                std::uint8_t subtype{};
+-                                get_number(input_format_t::cbor, subtype);
+-                                b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype));
+-                                break;
+-                            }
+-                            case 0xD9:
+-                            {
+-                                std::uint16_t subtype{};
+-                                get_number(input_format_t::cbor, subtype);
+-                                b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype));
+-                                break;
+-                            }
+-                            case 0xDA:
+-                            {
+-                                std::uint32_t subtype{};
+-                                get_number(input_format_t::cbor, subtype);
+-                                b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype));
+-                                break;
+-                            }
+-                            case 0xDB:
+-                            {
+-                                std::uint64_t subtype{};
+-                                get_number(input_format_t::cbor, subtype);
+-                                b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype));
+-                                break;
+-                            }
+-                            default:
+-                                return parse_cbor_internal(true, tag_handler);
+-                        }
+-                        get();
+-                        return get_cbor_binary(b) && sax->binary(b);
+-                    }
+-
+-                    default:                 // LCOV_EXCL_LINE
+-                        JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-                        return false;        // LCOV_EXCL_LINE
+-                }
+-            }
+-
+-            case 0xF4: // false
+-                return sax->boolean(false);
+-
+-            case 0xF5: // true
+-                return sax->boolean(true);
+-
+-            case 0xF6: // null
+-                return sax->null();
+-
+-            case 0xF9: // Half-Precision Float (two-byte IEEE 754)
+-            {
+-                const auto byte1_raw = get();
+-                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "number")))
+-                {
+-                    return false;
+-                }
+-                const auto byte2_raw = get();
+-                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "number")))
+-                {
+-                    return false;
+-                }
+-
+-                const auto byte1 = static_cast<unsigned char>(byte1_raw);
+-                const auto byte2 = static_cast<unsigned char>(byte2_raw);
+-
+-                // code from RFC 7049, Appendix D, Figure 3:
+-                // As half-precision floating-point numbers were only added
+-                // to IEEE 754 in 2008, today's programming platforms often
+-                // still only have limited support for them. It is very
+-                // easy to include at least decoding support for them even
+-                // without such support. An example of a small decoder for
+-                // half-precision floating-point numbers in the C language
+-                // is shown in Fig. 3.
+-                const auto half = static_cast<unsigned int>((byte1 << 8u) + byte2);
+-                const double val = [&half]
+-                {
+-                    const int exp = (half >> 10u) & 0x1Fu;
+-                    const unsigned int mant = half & 0x3FFu;
+-                    JSON_ASSERT(0 <= exp&& exp <= 32);
+-                    JSON_ASSERT(mant <= 1024);
+-                    switch (exp)
+-                    {
+-                        case 0:
+-                            return std::ldexp(mant, -24);
+-                        case 31:
+-                            return (mant == 0)
+-                            ? std::numeric_limits<double>::infinity()
+-                            : std::numeric_limits<double>::quiet_NaN();
+-                        default:
+-                            return std::ldexp(mant + 1024, exp - 25);
+-                    }
+-                }();
+-                return sax->number_float((half & 0x8000u) != 0
+-                                         ? static_cast<number_float_t>(-val)
+-                                         : static_cast<number_float_t>(val), "");
+-            }
+-
+-            case 0xFA: // Single-Precision Float (four-byte IEEE 754)
+-            {
+-                float number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 0xFB: // Double-Precision Float (eight-byte IEEE 754)
+-            {
+-                double number{};
+-                return get_number(input_format_t::cbor, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            default: // anything else (0xFF is handled inside the other types)
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::cbor, "invalid byte: 0x" + last_token, "value"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief reads a CBOR string
+-
+-    This function first reads starting bytes to determine the expected
+-    string length and then copies this number of bytes into a string.
+-    Additionally, CBOR's strings with indefinite lengths are supported.
+-
+-    @param[out] result  created string
+-
+-    @return whether string creation completed
+-    */
+-    bool get_cbor_string(string_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "string")))
+-        {
+-            return false;
+-        }
+-
+-        switch (current)
+-        {
+-            // UTF-8 string (0x00..0x17 bytes follow)
+-            case 0x60:
+-            case 0x61:
+-            case 0x62:
+-            case 0x63:
+-            case 0x64:
+-            case 0x65:
+-            case 0x66:
+-            case 0x67:
+-            case 0x68:
+-            case 0x69:
+-            case 0x6A:
+-            case 0x6B:
+-            case 0x6C:
+-            case 0x6D:
+-            case 0x6E:
+-            case 0x6F:
+-            case 0x70:
+-            case 0x71:
+-            case 0x72:
+-            case 0x73:
+-            case 0x74:
+-            case 0x75:
+-            case 0x76:
+-            case 0x77:
+-            {
+-                return get_string(input_format_t::cbor, static_cast<unsigned int>(current) & 0x1Fu, result);
+-            }
+-
+-            case 0x78: // UTF-8 string (one-byte uint8_t for n follows)
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x79: // UTF-8 string (two-byte uint16_t for n follow)
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x7A: // UTF-8 string (four-byte uint32_t for n follow)
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x7B: // UTF-8 string (eight-byte uint64_t for n follow)
+-            {
+-                std::uint64_t len{};
+-                return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x7F: // UTF-8 string (indefinite length)
+-            {
+-                while (get() != 0xFF)
+-                {
+-                    string_t chunk;
+-                    if (!get_cbor_string(chunk))
+-                    {
+-                        return false;
+-                    }
+-                    result.append(chunk);
+-                }
+-                return true;
+-            }
+-
+-            default:
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::cbor, "expected length specification (0x60-0x7B) or indefinite string type (0x7F); last byte: 0x" + last_token, "string"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief reads a CBOR byte array
+-
+-    This function first reads starting bytes to determine the expected
+-    byte array length and then copies this number of bytes into the byte array.
+-    Additionally, CBOR's byte arrays with indefinite lengths are supported.
+-
+-    @param[out] result  created byte array
+-
+-    @return whether byte array creation completed
+-    */
+-    bool get_cbor_binary(binary_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "binary")))
+-        {
+-            return false;
+-        }
+-
+-        switch (current)
+-        {
+-            // Binary data (0x00..0x17 bytes follow)
+-            case 0x40:
+-            case 0x41:
+-            case 0x42:
+-            case 0x43:
+-            case 0x44:
+-            case 0x45:
+-            case 0x46:
+-            case 0x47:
+-            case 0x48:
+-            case 0x49:
+-            case 0x4A:
+-            case 0x4B:
+-            case 0x4C:
+-            case 0x4D:
+-            case 0x4E:
+-            case 0x4F:
+-            case 0x50:
+-            case 0x51:
+-            case 0x52:
+-            case 0x53:
+-            case 0x54:
+-            case 0x55:
+-            case 0x56:
+-            case 0x57:
+-            {
+-                return get_binary(input_format_t::cbor, static_cast<unsigned int>(current) & 0x1Fu, result);
+-            }
+-
+-            case 0x58: // Binary data (one-byte uint8_t for n follows)
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::cbor, len) &&
+-                       get_binary(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x59: // Binary data (two-byte uint16_t for n follow)
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::cbor, len) &&
+-                       get_binary(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x5A: // Binary data (four-byte uint32_t for n follow)
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::cbor, len) &&
+-                       get_binary(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x5B: // Binary data (eight-byte uint64_t for n follow)
+-            {
+-                std::uint64_t len{};
+-                return get_number(input_format_t::cbor, len) &&
+-                       get_binary(input_format_t::cbor, len, result);
+-            }
+-
+-            case 0x5F: // Binary data (indefinite length)
+-            {
+-                while (get() != 0xFF)
+-                {
+-                    binary_t chunk;
+-                    if (!get_cbor_binary(chunk))
+-                    {
+-                        return false;
+-                    }
+-                    result.insert(result.end(), chunk.begin(), chunk.end());
+-                }
+-                return true;
+-            }
+-
+-            default:
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::cbor, "expected length specification (0x40-0x5B) or indefinite binary array type (0x5F); last byte: 0x" + last_token, "binary"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @param[in] len  the length of the array or static_cast<std::size_t>(-1) for an
+-                    array of indefinite size
+-    @param[in] tag_handler how CBOR tags should be treated
+-    @return whether array creation completed
+-    */
+-    bool get_cbor_array(const std::size_t len,
+-                        const cbor_tag_handler_t tag_handler)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len)))
+-        {
+-            return false;
+-        }
+-
+-        if (len != static_cast<std::size_t>(-1))
+-        {
+-            for (std::size_t i = 0; i < len; ++i)
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(true, tag_handler)))
+-                {
+-                    return false;
+-                }
+-            }
+-        }
+-        else
+-        {
+-            while (get() != 0xFF)
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(false, tag_handler)))
+-                {
+-                    return false;
+-                }
+-            }
+-        }
+-
+-        return sax->end_array();
+-    }
+-
+-    /*!
+-    @param[in] len  the length of the object or static_cast<std::size_t>(-1) for an
+-                    object of indefinite size
+-    @param[in] tag_handler how CBOR tags should be treated
+-    @return whether object creation completed
+-    */
+-    bool get_cbor_object(const std::size_t len,
+-                         const cbor_tag_handler_t tag_handler)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_object(len)))
+-        {
+-            return false;
+-        }
+-
+-        if (len != 0)
+-        {
+-            string_t key;
+-            if (len != static_cast<std::size_t>(-1))
+-            {
+-                for (std::size_t i = 0; i < len; ++i)
+-                {
+-                    get();
+-                    if (JSON_HEDLEY_UNLIKELY(!get_cbor_string(key) || !sax->key(key)))
+-                    {
+-                        return false;
+-                    }
+-
+-                    if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(true, tag_handler)))
+-                    {
+-                        return false;
+-                    }
+-                    key.clear();
+-                }
+-            }
+-            else
+-            {
+-                while (get() != 0xFF)
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!get_cbor_string(key) || !sax->key(key)))
+-                    {
+-                        return false;
+-                    }
+-
+-                    if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(true, tag_handler)))
+-                    {
+-                        return false;
+-                    }
+-                    key.clear();
+-                }
+-            }
+-        }
+-
+-        return sax->end_object();
+-    }
+-
+-    /////////////
+-    // MsgPack //
+-    /////////////
+-
+-    /*!
+-    @return whether a valid MessagePack value was passed to the SAX parser
+-    */
+-    bool parse_msgpack_internal()
+-    {
+-        switch (get())
+-        {
+-            // EOF
+-            case std::char_traits<char_type>::eof():
+-                return unexpect_eof(input_format_t::msgpack, "value");
+-
+-            // positive fixint
+-            case 0x00:
+-            case 0x01:
+-            case 0x02:
+-            case 0x03:
+-            case 0x04:
+-            case 0x05:
+-            case 0x06:
+-            case 0x07:
+-            case 0x08:
+-            case 0x09:
+-            case 0x0A:
+-            case 0x0B:
+-            case 0x0C:
+-            case 0x0D:
+-            case 0x0E:
+-            case 0x0F:
+-            case 0x10:
+-            case 0x11:
+-            case 0x12:
+-            case 0x13:
+-            case 0x14:
+-            case 0x15:
+-            case 0x16:
+-            case 0x17:
+-            case 0x18:
+-            case 0x19:
+-            case 0x1A:
+-            case 0x1B:
+-            case 0x1C:
+-            case 0x1D:
+-            case 0x1E:
+-            case 0x1F:
+-            case 0x20:
+-            case 0x21:
+-            case 0x22:
+-            case 0x23:
+-            case 0x24:
+-            case 0x25:
+-            case 0x26:
+-            case 0x27:
+-            case 0x28:
+-            case 0x29:
+-            case 0x2A:
+-            case 0x2B:
+-            case 0x2C:
+-            case 0x2D:
+-            case 0x2E:
+-            case 0x2F:
+-            case 0x30:
+-            case 0x31:
+-            case 0x32:
+-            case 0x33:
+-            case 0x34:
+-            case 0x35:
+-            case 0x36:
+-            case 0x37:
+-            case 0x38:
+-            case 0x39:
+-            case 0x3A:
+-            case 0x3B:
+-            case 0x3C:
+-            case 0x3D:
+-            case 0x3E:
+-            case 0x3F:
+-            case 0x40:
+-            case 0x41:
+-            case 0x42:
+-            case 0x43:
+-            case 0x44:
+-            case 0x45:
+-            case 0x46:
+-            case 0x47:
+-            case 0x48:
+-            case 0x49:
+-            case 0x4A:
+-            case 0x4B:
+-            case 0x4C:
+-            case 0x4D:
+-            case 0x4E:
+-            case 0x4F:
+-            case 0x50:
+-            case 0x51:
+-            case 0x52:
+-            case 0x53:
+-            case 0x54:
+-            case 0x55:
+-            case 0x56:
+-            case 0x57:
+-            case 0x58:
+-            case 0x59:
+-            case 0x5A:
+-            case 0x5B:
+-            case 0x5C:
+-            case 0x5D:
+-            case 0x5E:
+-            case 0x5F:
+-            case 0x60:
+-            case 0x61:
+-            case 0x62:
+-            case 0x63:
+-            case 0x64:
+-            case 0x65:
+-            case 0x66:
+-            case 0x67:
+-            case 0x68:
+-            case 0x69:
+-            case 0x6A:
+-            case 0x6B:
+-            case 0x6C:
+-            case 0x6D:
+-            case 0x6E:
+-            case 0x6F:
+-            case 0x70:
+-            case 0x71:
+-            case 0x72:
+-            case 0x73:
+-            case 0x74:
+-            case 0x75:
+-            case 0x76:
+-            case 0x77:
+-            case 0x78:
+-            case 0x79:
+-            case 0x7A:
+-            case 0x7B:
+-            case 0x7C:
+-            case 0x7D:
+-            case 0x7E:
+-            case 0x7F:
+-                return sax->number_unsigned(static_cast<number_unsigned_t>(current));
+-
+-            // fixmap
+-            case 0x80:
+-            case 0x81:
+-            case 0x82:
+-            case 0x83:
+-            case 0x84:
+-            case 0x85:
+-            case 0x86:
+-            case 0x87:
+-            case 0x88:
+-            case 0x89:
+-            case 0x8A:
+-            case 0x8B:
+-            case 0x8C:
+-            case 0x8D:
+-            case 0x8E:
+-            case 0x8F:
+-                return get_msgpack_object(static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x0Fu));
+-
+-            // fixarray
+-            case 0x90:
+-            case 0x91:
+-            case 0x92:
+-            case 0x93:
+-            case 0x94:
+-            case 0x95:
+-            case 0x96:
+-            case 0x97:
+-            case 0x98:
+-            case 0x99:
+-            case 0x9A:
+-            case 0x9B:
+-            case 0x9C:
+-            case 0x9D:
+-            case 0x9E:
+-            case 0x9F:
+-                return get_msgpack_array(static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x0Fu));
+-
+-            // fixstr
+-            case 0xA0:
+-            case 0xA1:
+-            case 0xA2:
+-            case 0xA3:
+-            case 0xA4:
+-            case 0xA5:
+-            case 0xA6:
+-            case 0xA7:
+-            case 0xA8:
+-            case 0xA9:
+-            case 0xAA:
+-            case 0xAB:
+-            case 0xAC:
+-            case 0xAD:
+-            case 0xAE:
+-            case 0xAF:
+-            case 0xB0:
+-            case 0xB1:
+-            case 0xB2:
+-            case 0xB3:
+-            case 0xB4:
+-            case 0xB5:
+-            case 0xB6:
+-            case 0xB7:
+-            case 0xB8:
+-            case 0xB9:
+-            case 0xBA:
+-            case 0xBB:
+-            case 0xBC:
+-            case 0xBD:
+-            case 0xBE:
+-            case 0xBF:
+-            case 0xD9: // str 8
+-            case 0xDA: // str 16
+-            case 0xDB: // str 32
+-            {
+-                string_t s;
+-                return get_msgpack_string(s) && sax->string(s);
+-            }
+-
+-            case 0xC0: // nil
+-                return sax->null();
+-
+-            case 0xC2: // false
+-                return sax->boolean(false);
+-
+-            case 0xC3: // true
+-                return sax->boolean(true);
+-
+-            case 0xC4: // bin 8
+-            case 0xC5: // bin 16
+-            case 0xC6: // bin 32
+-            case 0xC7: // ext 8
+-            case 0xC8: // ext 16
+-            case 0xC9: // ext 32
+-            case 0xD4: // fixext 1
+-            case 0xD5: // fixext 2
+-            case 0xD6: // fixext 4
+-            case 0xD7: // fixext 8
+-            case 0xD8: // fixext 16
+-            {
+-                binary_t b;
+-                return get_msgpack_binary(b) && sax->binary(b);
+-            }
+-
+-            case 0xCA: // float 32
+-            {
+-                float number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 0xCB: // float 64
+-            {
+-                double number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 0xCC: // uint 8
+-            {
+-                std::uint8_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0xCD: // uint 16
+-            {
+-                std::uint16_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0xCE: // uint 32
+-            {
+-                std::uint32_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0xCF: // uint 64
+-            {
+-                std::uint64_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 0xD0: // int 8
+-            {
+-                std::int8_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_integer(number);
+-            }
+-
+-            case 0xD1: // int 16
+-            {
+-                std::int16_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_integer(number);
+-            }
+-
+-            case 0xD2: // int 32
+-            {
+-                std::int32_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_integer(number);
+-            }
+-
+-            case 0xD3: // int 64
+-            {
+-                std::int64_t number{};
+-                return get_number(input_format_t::msgpack, number) && sax->number_integer(number);
+-            }
+-
+-            case 0xDC: // array 16
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_msgpack_array(static_cast<std::size_t>(len));
+-            }
+-
+-            case 0xDD: // array 32
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_msgpack_array(static_cast<std::size_t>(len));
+-            }
+-
+-            case 0xDE: // map 16
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_msgpack_object(static_cast<std::size_t>(len));
+-            }
+-
+-            case 0xDF: // map 32
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_msgpack_object(static_cast<std::size_t>(len));
+-            }
+-
+-            // negative fixint
+-            case 0xE0:
+-            case 0xE1:
+-            case 0xE2:
+-            case 0xE3:
+-            case 0xE4:
+-            case 0xE5:
+-            case 0xE6:
+-            case 0xE7:
+-            case 0xE8:
+-            case 0xE9:
+-            case 0xEA:
+-            case 0xEB:
+-            case 0xEC:
+-            case 0xED:
+-            case 0xEE:
+-            case 0xEF:
+-            case 0xF0:
+-            case 0xF1:
+-            case 0xF2:
+-            case 0xF3:
+-            case 0xF4:
+-            case 0xF5:
+-            case 0xF6:
+-            case 0xF7:
+-            case 0xF8:
+-            case 0xF9:
+-            case 0xFA:
+-            case 0xFB:
+-            case 0xFC:
+-            case 0xFD:
+-            case 0xFE:
+-            case 0xFF:
+-                return sax->number_integer(static_cast<std::int8_t>(current));
+-
+-            default: // anything else
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::msgpack, "invalid byte: 0x" + last_token, "value"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief reads a MessagePack string
+-
+-    This function first reads starting bytes to determine the expected
+-    string length and then copies this number of bytes into a string.
+-
+-    @param[out] result  created string
+-
+-    @return whether string creation completed
+-    */
+-    bool get_msgpack_string(string_t& result)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::msgpack, "string")))
+-        {
+-            return false;
+-        }
+-
+-        switch (current)
+-        {
+-            // fixstr
+-            case 0xA0:
+-            case 0xA1:
+-            case 0xA2:
+-            case 0xA3:
+-            case 0xA4:
+-            case 0xA5:
+-            case 0xA6:
+-            case 0xA7:
+-            case 0xA8:
+-            case 0xA9:
+-            case 0xAA:
+-            case 0xAB:
+-            case 0xAC:
+-            case 0xAD:
+-            case 0xAE:
+-            case 0xAF:
+-            case 0xB0:
+-            case 0xB1:
+-            case 0xB2:
+-            case 0xB3:
+-            case 0xB4:
+-            case 0xB5:
+-            case 0xB6:
+-            case 0xB7:
+-            case 0xB8:
+-            case 0xB9:
+-            case 0xBA:
+-            case 0xBB:
+-            case 0xBC:
+-            case 0xBD:
+-            case 0xBE:
+-            case 0xBF:
+-            {
+-                return get_string(input_format_t::msgpack, static_cast<unsigned int>(current) & 0x1Fu, result);
+-            }
+-
+-            case 0xD9: // str 8
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_string(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xDA: // str 16
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_string(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xDB: // str 32
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::msgpack, len) && get_string(input_format_t::msgpack, len, result);
+-            }
+-
+-            default:
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::msgpack, "expected length specification (0xA0-0xBF, 0xD9-0xDB); last byte: 0x" + last_token, "string"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief reads a MessagePack byte array
+-
+-    This function first reads starting bytes to determine the expected
+-    byte array length and then copies this number of bytes into a byte array.
+-
+-    @param[out] result  created byte array
+-
+-    @return whether byte array creation completed
+-    */
+-    bool get_msgpack_binary(binary_t& result)
+-    {
+-        // helper function to set the subtype
+-        auto assign_and_return_true = [&result](std::int8_t subtype)
+-        {
+-            result.set_subtype(static_cast<std::uint8_t>(subtype));
+-            return true;
+-        };
+-
+-        switch (current)
+-        {
+-            case 0xC4: // bin 8
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_binary(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xC5: // bin 16
+-            {
+-                std::uint16_t len{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_binary(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xC6: // bin 32
+-            {
+-                std::uint32_t len{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_binary(input_format_t::msgpack, len, result);
+-            }
+-
+-            case 0xC7: // ext 8
+-            {
+-                std::uint8_t len{};
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, len, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xC8: // ext 16
+-            {
+-                std::uint16_t len{};
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, len, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xC9: // ext 32
+-            {
+-                std::uint32_t len{};
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, len) &&
+-                       get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, len, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD4: // fixext 1
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 1, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD5: // fixext 2
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 2, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD6: // fixext 4
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 4, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD7: // fixext 8
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 8, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            case 0xD8: // fixext 16
+-            {
+-                std::int8_t subtype{};
+-                return get_number(input_format_t::msgpack, subtype) &&
+-                       get_binary(input_format_t::msgpack, 16, result) &&
+-                       assign_and_return_true(subtype);
+-            }
+-
+-            default:           // LCOV_EXCL_LINE
+-                return false;  // LCOV_EXCL_LINE
+-        }
+-    }
+-
+-    /*!
+-    @param[in] len  the length of the array
+-    @return whether array creation completed
+-    */
+-    bool get_msgpack_array(const std::size_t len)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len)))
+-        {
+-            return false;
+-        }
+-
+-        for (std::size_t i = 0; i < len; ++i)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
+-            {
+-                return false;
+-            }
+-        }
+-
+-        return sax->end_array();
+-    }
+-
+-    /*!
+-    @param[in] len  the length of the object
+-    @return whether object creation completed
+-    */
+-    bool get_msgpack_object(const std::size_t len)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!sax->start_object(len)))
+-        {
+-            return false;
+-        }
+-
+-        string_t key;
+-        for (std::size_t i = 0; i < len; ++i)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!get_msgpack_string(key) || !sax->key(key)))
+-            {
+-                return false;
+-            }
+-
+-            if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
+-            {
+-                return false;
+-            }
+-            key.clear();
+-        }
+-
+-        return sax->end_object();
+-    }
+-
+-    ////////////
+-    // UBJSON //
+-    ////////////
+-
+-    /*!
+-    @param[in] get_char  whether a new character should be retrieved from the
+-                         input (true, default) or whether the last read
+-                         character should be considered instead
+-
+-    @return whether a valid UBJSON value was passed to the SAX parser
+-    */
+-    bool parse_ubjson_internal(const bool get_char = true)
+-    {
+-        return get_ubjson_value(get_char ? get_ignore_noop() : current);
+-    }
+-
+-    /*!
+-    @brief reads a UBJSON string
+-
+-    This function is either called after reading the 'S' byte explicitly
+-    indicating a string, or in case of an object key where the 'S' byte can be
+-    left out.
+-
+-    @param[out] result   created string
+-    @param[in] get_char  whether a new character should be retrieved from the
+-                         input (true, default) or whether the last read
+-                         character should be considered instead
+-
+-    @return whether string creation completed
+-    */
+-    bool get_ubjson_string(string_t& result, const bool get_char = true)
+-    {
+-        if (get_char)
+-        {
+-            get();  // TODO(niels): may we ignore N here?
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "value")))
+-        {
+-            return false;
+-        }
+-
+-        switch (current)
+-        {
+-            case 'U':
+-            {
+-                std::uint8_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            case 'i':
+-            {
+-                std::int8_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            case 'I':
+-            {
+-                std::int16_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            case 'l':
+-            {
+-                std::int32_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            case 'L':
+-            {
+-                std::int64_t len{};
+-                return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result);
+-            }
+-
+-            default:
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::ubjson, "expected length type specification (U, i, I, l, L); last byte: 0x" + last_token, "string"), BasicJsonType()));
+-        }
+-    }
+-
+-    /*!
+-    @param[out] result  determined size
+-    @return whether size determination completed
+-    */
+-    bool get_ubjson_size_value(std::size_t& result)
+-    {
+-        switch (get_ignore_noop())
+-        {
+-            case 'U':
+-            {
+-                std::uint8_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number);
+-                return true;
+-            }
+-
+-            case 'i':
+-            {
+-                std::int8_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
+-                return true;
+-            }
+-
+-            case 'I':
+-            {
+-                std::int16_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number);
+-                return true;
+-            }
+-
+-            case 'l':
+-            {
+-                std::int32_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number);
+-                return true;
+-            }
+-
+-            case 'L':
+-            {
+-                std::int64_t number{};
+-                if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number)))
+-                {
+-                    return false;
+-                }
+-                result = static_cast<std::size_t>(number);
+-                return true;
+-            }
+-
+-            default:
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::ubjson, "expected length type specification (U, i, I, l, L) after '#'; last byte: 0x" + last_token, "size"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief determine the type and size for a container
+-
+-    In the optimized UBJSON format, a type and a size can be provided to allow
+-    for a more compact representation.
+-
+-    @param[out] result  pair of the size and the type
+-
+-    @return whether pair creation completed
+-    */
+-    bool get_ubjson_size_type(std::pair<std::size_t, char_int_type>& result)
+-    {
+-        result.first = string_t::npos; // size
+-        result.second = 0; // type
+-
+-        get_ignore_noop();
+-
+-        if (current == '$')
+-        {
+-            result.second = get();  // must not ignore 'N', because 'N' maybe the type
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "type")))
+-            {
+-                return false;
+-            }
+-
+-            get_ignore_noop();
+-            if (JSON_HEDLEY_UNLIKELY(current != '#'))
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "value")))
+-                {
+-                    return false;
+-                }
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::ubjson, "expected '#' after type information; last byte: 0x" + last_token, "size"), BasicJsonType()));
+-            }
+-
+-            return get_ubjson_size_value(result.first);
+-        }
+-
+-        if (current == '#')
+-        {
+-            return get_ubjson_size_value(result.first);
+-        }
+-
+-        return true;
+-    }
+-
+-    /*!
+-    @param prefix  the previously read or set type prefix
+-    @return whether value creation completed
+-    */
+-    bool get_ubjson_value(const char_int_type prefix)
+-    {
+-        switch (prefix)
+-        {
+-            case std::char_traits<char_type>::eof():  // EOF
+-                return unexpect_eof(input_format_t::ubjson, "value");
+-
+-            case 'T':  // true
+-                return sax->boolean(true);
+-            case 'F':  // false
+-                return sax->boolean(false);
+-
+-            case 'Z':  // null
+-                return sax->null();
+-
+-            case 'U':
+-            {
+-                std::uint8_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_unsigned(number);
+-            }
+-
+-            case 'i':
+-            {
+-                std::int8_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_integer(number);
+-            }
+-
+-            case 'I':
+-            {
+-                std::int16_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_integer(number);
+-            }
+-
+-            case 'l':
+-            {
+-                std::int32_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_integer(number);
+-            }
+-
+-            case 'L':
+-            {
+-                std::int64_t number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_integer(number);
+-            }
+-
+-            case 'd':
+-            {
+-                float number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 'D':
+-            {
+-                double number{};
+-                return get_number(input_format_t::ubjson, number) && sax->number_float(static_cast<number_float_t>(number), "");
+-            }
+-
+-            case 'H':
+-            {
+-                return get_ubjson_high_precision_number();
+-            }
+-
+-            case 'C':  // char
+-            {
+-                get();
+-                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "char")))
+-                {
+-                    return false;
+-                }
+-                if (JSON_HEDLEY_UNLIKELY(current > 127))
+-                {
+-                    auto last_token = get_token_string();
+-                    return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::ubjson, "byte after 'C' must be in range 0x00..0x7F; last byte: 0x" + last_token, "char"), BasicJsonType()));
+-                }
+-                string_t s(1, static_cast<typename string_t::value_type>(current));
+-                return sax->string(s);
+-            }
+-
+-            case 'S':  // string
+-            {
+-                string_t s;
+-                return get_ubjson_string(s) && sax->string(s);
+-            }
+-
+-            case '[':  // array
+-                return get_ubjson_array();
+-
+-            case '{':  // object
+-                return get_ubjson_object();
+-
+-            default: // anything else
+-            {
+-                auto last_token = get_token_string();
+-                return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::ubjson, "invalid byte: 0x" + last_token, "value"), BasicJsonType()));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @return whether array creation completed
+-    */
+-    bool get_ubjson_array()
+-    {
+-        std::pair<std::size_t, char_int_type> size_and_type;
+-        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
+-        {
+-            return false;
+-        }
+-
+-        if (size_and_type.first != string_t::npos)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!sax->start_array(size_and_type.first)))
+-            {
+-                return false;
+-            }
+-
+-            if (size_and_type.second != 0)
+-            {
+-                if (size_and_type.second != 'N')
+-                {
+-                    for (std::size_t i = 0; i < size_and_type.first; ++i)
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second)))
+-                        {
+-                            return false;
+-                        }
+-                    }
+-                }
+-            }
+-            else
+-            {
+-                for (std::size_t i = 0; i < size_and_type.first; ++i)
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal()))
+-                    {
+-                        return false;
+-                    }
+-                }
+-            }
+-        }
+-        else
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!sax->start_array(static_cast<std::size_t>(-1))))
+-            {
+-                return false;
+-            }
+-
+-            while (current != ']')
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal(false)))
+-                {
+-                    return false;
+-                }
+-                get_ignore_noop();
+-            }
+-        }
+-
+-        return sax->end_array();
+-    }
+-
+-    /*!
+-    @return whether object creation completed
+-    */
+-    bool get_ubjson_object()
+-    {
+-        std::pair<std::size_t, char_int_type> size_and_type;
+-        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
+-        {
+-            return false;
+-        }
+-
+-        string_t key;
+-        if (size_and_type.first != string_t::npos)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!sax->start_object(size_and_type.first)))
+-            {
+-                return false;
+-            }
+-
+-            if (size_and_type.second != 0)
+-            {
+-                for (std::size_t i = 0; i < size_and_type.first; ++i)
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key) || !sax->key(key)))
+-                    {
+-                        return false;
+-                    }
+-                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second)))
+-                    {
+-                        return false;
+-                    }
+-                    key.clear();
+-                }
+-            }
+-            else
+-            {
+-                for (std::size_t i = 0; i < size_and_type.first; ++i)
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key) || !sax->key(key)))
+-                    {
+-                        return false;
+-                    }
+-                    if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal()))
+-                    {
+-                        return false;
+-                    }
+-                    key.clear();
+-                }
+-            }
+-        }
+-        else
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!sax->start_object(static_cast<std::size_t>(-1))))
+-            {
+-                return false;
+-            }
+-
+-            while (current != '}')
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, false) || !sax->key(key)))
+-                {
+-                    return false;
+-                }
+-                if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal()))
+-                {
+-                    return false;
+-                }
+-                get_ignore_noop();
+-                key.clear();
+-            }
+-        }
+-
+-        return sax->end_object();
+-    }
+-
+-    // Note, no reader for UBJSON binary types is implemented because they do
+-    // not exist
+-
+-    bool get_ubjson_high_precision_number()
+-    {
+-        // get size of following number string
+-        std::size_t size{};
+-        auto res = get_ubjson_size_value(size);
+-        if (JSON_HEDLEY_UNLIKELY(!res))
+-        {
+-            return res;
+-        }
+-
+-        // get number string
+-        std::vector<char> number_vector;
+-        for (std::size_t i = 0; i < size; ++i)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "number")))
+-            {
+-                return false;
+-            }
+-            number_vector.push_back(static_cast<char>(current));
+-        }
+-
+-        // parse number string
+-        using ia_type = decltype(detail::input_adapter(number_vector));
+-        auto number_lexer = detail::lexer<BasicJsonType, ia_type>(detail::input_adapter(number_vector), false);
+-        const auto result_number = number_lexer.scan();
+-        const auto number_string = number_lexer.get_token_string();
+-        const auto result_remainder = number_lexer.scan();
+-
+-        using token_type = typename detail::lexer_base<BasicJsonType>::token_type;
+-
+-        if (JSON_HEDLEY_UNLIKELY(result_remainder != token_type::end_of_input))
+-        {
+-            return sax->parse_error(chars_read, number_string, parse_error::create(115, chars_read, exception_message(input_format_t::ubjson, "invalid number text: " + number_lexer.get_token_string(), "high-precision number"), BasicJsonType()));
+-        }
+-
+-        switch (result_number)
+-        {
+-            case token_type::value_integer:
+-                return sax->number_integer(number_lexer.get_number_integer());
+-            case token_type::value_unsigned:
+-                return sax->number_unsigned(number_lexer.get_number_unsigned());
+-            case token_type::value_float:
+-                return sax->number_float(number_lexer.get_number_float(), std::move(number_string));
+-            case token_type::uninitialized:
+-            case token_type::literal_true:
+-            case token_type::literal_false:
+-            case token_type::literal_null:
+-            case token_type::value_string:
+-            case token_type::begin_array:
+-            case token_type::begin_object:
+-            case token_type::end_array:
+-            case token_type::end_object:
+-            case token_type::name_separator:
+-            case token_type::value_separator:
+-            case token_type::parse_error:
+-            case token_type::end_of_input:
+-            case token_type::literal_or_value:
+-            default:
+-                return sax->parse_error(chars_read, number_string, parse_error::create(115, chars_read, exception_message(input_format_t::ubjson, "invalid number text: " + number_lexer.get_token_string(), "high-precision number"), BasicJsonType()));
+-        }
+-    }
+-
+-    ///////////////////////
+-    // Utility functions //
+-    ///////////////////////
+-
+-    /*!
+-    @brief get next character from the input
+-
+-    This function provides the interface to the used input adapter. It does
+-    not throw in case the input reached EOF, but returns a -'ve valued
+-    `std::char_traits<char_type>::eof()` in that case.
+-
+-    @return character read from the input
+-    */
+-    char_int_type get()
+-    {
+-        ++chars_read;
+-        return current = ia.get_character();
+-    }
+-
+-    /*!
+-    @return character read from the input after ignoring all 'N' entries
+-    */
+-    char_int_type get_ignore_noop()
+-    {
+-        do
+-        {
+-            get();
+-        }
+-        while (current == 'N');
+-
+-        return current;
+-    }
+-
+-    /*
+-    @brief read a number from the input
+-
+-    @tparam NumberType the type of the number
+-    @param[in] format   the current format (for diagnostics)
+-    @param[out] result  number of type @a NumberType
+-
+-    @return whether conversion completed
+-
+-    @note This function needs to respect the system's endianness, because
+-          bytes in CBOR, MessagePack, and UBJSON are stored in network order
+-          (big endian) and therefore need reordering on little endian systems.
+-    */
+-    template<typename NumberType, bool InputIsLittleEndian = false>
+-    bool get_number(const input_format_t format, NumberType& result)
+-    {
+-        // step 1: read input into array with system's byte order
+-        std::array<std::uint8_t, sizeof(NumberType)> vec{};
+-        for (std::size_t i = 0; i < sizeof(NumberType); ++i)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "number")))
+-            {
+-                return false;
+-            }
+-
+-            // reverse byte order prior to conversion if necessary
+-            if (is_little_endian != InputIsLittleEndian)
+-            {
+-                vec[sizeof(NumberType) - i - 1] = static_cast<std::uint8_t>(current);
+-            }
+-            else
+-            {
+-                vec[i] = static_cast<std::uint8_t>(current); // LCOV_EXCL_LINE
+-            }
+-        }
+-
+-        // step 2: convert array into number of type T and return
+-        std::memcpy(&result, vec.data(), sizeof(NumberType));
+-        return true;
+-    }
+-
+-    /*!
+-    @brief create a string by reading characters from the input
+-
+-    @tparam NumberType the type of the number
+-    @param[in] format the current format (for diagnostics)
+-    @param[in] len number of characters to read
+-    @param[out] result string created by reading @a len bytes
+-
+-    @return whether string creation completed
+-
+-    @note We can not reserve @a len bytes for the result, because @a len
+-          may be too large. Usually, @ref unexpect_eof() detects the end of
+-          the input before we run out of string memory.
+-    */
+-    template<typename NumberType>
+-    bool get_string(const input_format_t format,
+-                    const NumberType len,
+-                    string_t& result)
+-    {
+-        bool success = true;
+-        for (NumberType i = 0; i < len; i++)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "string")))
+-            {
+-                success = false;
+-                break;
+-            }
+-            result.push_back(static_cast<typename string_t::value_type>(current));
+-        }
+-        return success;
+-    }
+-
+-    /*!
+-    @brief create a byte array by reading bytes from the input
+-
+-    @tparam NumberType the type of the number
+-    @param[in] format the current format (for diagnostics)
+-    @param[in] len number of bytes to read
+-    @param[out] result byte array created by reading @a len bytes
+-
+-    @return whether byte array creation completed
+-
+-    @note We can not reserve @a len bytes for the result, because @a len
+-          may be too large. Usually, @ref unexpect_eof() detects the end of
+-          the input before we run out of memory.
+-    */
+-    template<typename NumberType>
+-    bool get_binary(const input_format_t format,
+-                    const NumberType len,
+-                    binary_t& result)
+-    {
+-        bool success = true;
+-        for (NumberType i = 0; i < len; i++)
+-        {
+-            get();
+-            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "binary")))
+-            {
+-                success = false;
+-                break;
+-            }
+-            result.push_back(static_cast<std::uint8_t>(current));
+-        }
+-        return success;
+-    }
+-
+-    /*!
+-    @param[in] format   the current format (for diagnostics)
+-    @param[in] context  further context information (for diagnostics)
+-    @return whether the last read character is not EOF
+-    */
+-    JSON_HEDLEY_NON_NULL(3)
+-    bool unexpect_eof(const input_format_t format, const char* context) const
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(current == std::char_traits<char_type>::eof()))
+-        {
+-            return sax->parse_error(chars_read, "<end of file>",
+-                                    parse_error::create(110, chars_read, exception_message(format, "unexpected end of input", context), BasicJsonType()));
+-        }
+-        return true;
+-    }
+-
+-    /*!
+-    @return a string representation of the last read byte
+-    */
+-    std::string get_token_string() const
+-    {
+-        std::array<char, 3> cr{{}};
+-        static_cast<void>((std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(current))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-        return std::string{cr.data()};
+-    }
+-
+-    /*!
+-    @param[in] format   the current format
+-    @param[in] detail   a detailed error message
+-    @param[in] context  further context information
+-    @return a message string to use in the parse_error exceptions
+-    */
+-    std::string exception_message(const input_format_t format,
+-                                  const std::string& detail,
+-                                  const std::string& context) const
+-    {
+-        std::string error_msg = "syntax error while parsing ";
+-
+-        switch (format)
+-        {
+-            case input_format_t::cbor:
+-                error_msg += "CBOR";
+-                break;
+-
+-            case input_format_t::msgpack:
+-                error_msg += "MessagePack";
+-                break;
+-
+-            case input_format_t::ubjson:
+-                error_msg += "UBJSON";
+-                break;
+-
+-            case input_format_t::bson:
+-                error_msg += "BSON";
+-                break;
+-
+-            case input_format_t::json: // LCOV_EXCL_LINE
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-
+-        return error_msg + " " + context + ": " + detail;
+-    }
+-
+-  private:
+-    /// input adapter
+-    InputAdapterType ia;
+-
+-    /// the current character
+-    char_int_type current = std::char_traits<char_type>::eof();
+-
+-    /// the number of characters read
+-    std::size_t chars_read = 0;
+-
+-    /// whether we can assume little endianness
+-    const bool is_little_endian = little_endianness();
+-
+-    /// the SAX parser
+-    json_sax_t* sax = nullptr;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/input/input_adapters.hpp>
+-
+-// #include <nlohmann/detail/input/lexer.hpp>
+-
+-// #include <nlohmann/detail/input/parser.hpp>
+-
+-
+-#include <cmath> // isfinite
+-#include <cstdint> // uint8_t
+-#include <functional> // function
+-#include <string> // string
+-#include <utility> // move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/input/input_adapters.hpp>
+-
+-// #include <nlohmann/detail/input/json_sax.hpp>
+-
+-// #include <nlohmann/detail/input/lexer.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/is_sax.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-////////////
+-// parser //
+-////////////
+-
+-enum class parse_event_t : std::uint8_t
+-{
+-    /// the parser read `{` and started to process a JSON object
+-    object_start,
+-    /// the parser read `}` and finished processing a JSON object
+-    object_end,
+-    /// the parser read `[` and started to process a JSON array
+-    array_start,
+-    /// the parser read `]` and finished processing a JSON array
+-    array_end,
+-    /// the parser read a key of a value in an object
+-    key,
+-    /// the parser finished reading a JSON value
+-    value
+-};
+-
+-template<typename BasicJsonType>
+-using parser_callback_t =
+-    std::function<bool(int /*depth*/, parse_event_t /*event*/, BasicJsonType& /*parsed*/)>;
+-
+-/*!
+-@brief syntax analysis
+-
+-This class implements a recursive descent parser.
+-*/
+-template<typename BasicJsonType, typename InputAdapterType>
+-class parser
+-{
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using string_t = typename BasicJsonType::string_t;
+-    using lexer_t = lexer<BasicJsonType, InputAdapterType>;
+-    using token_type = typename lexer_t::token_type;
+-
+-  public:
+-    /// a parser reading from an input adapter
+-    explicit parser(InputAdapterType&& adapter,
+-                    const parser_callback_t<BasicJsonType> cb = nullptr,
+-                    const bool allow_exceptions_ = true,
+-                    const bool skip_comments = false)
+-        : callback(cb)
+-        , m_lexer(std::move(adapter), skip_comments)
+-        , allow_exceptions(allow_exceptions_)
+-    {
+-        // read first token
+-        get_token();
+-    }
+-
+-    /*!
+-    @brief public parser interface
+-
+-    @param[in] strict      whether to expect the last token to be EOF
+-    @param[in,out] result  parsed JSON value
+-
+-    @throw parse_error.101 in case of an unexpected token
+-    @throw parse_error.102 if to_unicode fails or surrogate error
+-    @throw parse_error.103 if to_unicode fails
+-    */
+-    void parse(const bool strict, BasicJsonType& result)
+-    {
+-        if (callback)
+-        {
+-            json_sax_dom_callback_parser<BasicJsonType> sdp(result, callback, allow_exceptions);
+-            sax_parse_internal(&sdp);
+-
+-            // in strict mode, input must be completely read
+-            if (strict && (get_token() != token_type::end_of_input))
+-            {
+-                sdp.parse_error(m_lexer.get_position(),
+-                                m_lexer.get_token_string(),
+-                                parse_error::create(101, m_lexer.get_position(),
+-                                                    exception_message(token_type::end_of_input, "value"), BasicJsonType()));
+-            }
+-
+-            // in case of an error, return discarded value
+-            if (sdp.is_errored())
+-            {
+-                result = value_t::discarded;
+-                return;
+-            }
+-
+-            // set top-level value to null if it was discarded by the callback
+-            // function
+-            if (result.is_discarded())
+-            {
+-                result = nullptr;
+-            }
+-        }
+-        else
+-        {
+-            json_sax_dom_parser<BasicJsonType> sdp(result, allow_exceptions);
+-            sax_parse_internal(&sdp);
+-
+-            // in strict mode, input must be completely read
+-            if (strict && (get_token() != token_type::end_of_input))
+-            {
+-                sdp.parse_error(m_lexer.get_position(),
+-                                m_lexer.get_token_string(),
+-                                parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), BasicJsonType()));
+-            }
+-
+-            // in case of an error, return discarded value
+-            if (sdp.is_errored())
+-            {
+-                result = value_t::discarded;
+-                return;
+-            }
+-        }
+-
+-        result.assert_invariant();
+-    }
+-
+-    /*!
+-    @brief public accept interface
+-
+-    @param[in] strict  whether to expect the last token to be EOF
+-    @return whether the input is a proper JSON text
+-    */
+-    bool accept(const bool strict = true)
+-    {
+-        json_sax_acceptor<BasicJsonType> sax_acceptor;
+-        return sax_parse(&sax_acceptor, strict);
+-    }
+-
+-    template<typename SAX>
+-    JSON_HEDLEY_NON_NULL(2)
+-    bool sax_parse(SAX* sax, const bool strict = true)
+-    {
+-        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
+-        const bool result = sax_parse_internal(sax);
+-
+-        // strict mode: next byte must be EOF
+-        if (result && strict && (get_token() != token_type::end_of_input))
+-        {
+-            return sax->parse_error(m_lexer.get_position(),
+-                                    m_lexer.get_token_string(),
+-                                    parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), BasicJsonType()));
+-        }
+-
+-        return result;
+-    }
+-
+-  private:
+-    template<typename SAX>
+-    JSON_HEDLEY_NON_NULL(2)
+-    bool sax_parse_internal(SAX* sax)
+-    {
+-        // stack to remember the hierarchy of structured values we are parsing
+-        // true = array; false = object
+-        std::vector<bool> states;
+-        // value to avoid a goto (see comment where set to true)
+-        bool skip_to_state_evaluation = false;
+-
+-        while (true)
+-        {
+-            if (!skip_to_state_evaluation)
+-            {
+-                // invariant: get_token() was called before each iteration
+-                switch (last_token)
+-                {
+-                    case token_type::begin_object:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->start_object(static_cast<std::size_t>(-1))))
+-                        {
+-                            return false;
+-                        }
+-
+-                        // closing } -> we are done
+-                        if (get_token() == token_type::end_object)
+-                        {
+-                            if (JSON_HEDLEY_UNLIKELY(!sax->end_object()))
+-                            {
+-                                return false;
+-                            }
+-                            break;
+-                        }
+-
+-                        // parse key
+-                        if (JSON_HEDLEY_UNLIKELY(last_token != token_type::value_string))
+-                        {
+-                            return sax->parse_error(m_lexer.get_position(),
+-                                                    m_lexer.get_token_string(),
+-                                                    parse_error::create(101, m_lexer.get_position(), exception_message(token_type::value_string, "object key"), BasicJsonType()));
+-                        }
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->key(m_lexer.get_string())))
+-                        {
+-                            return false;
+-                        }
+-
+-                        // parse separator (:)
+-                        if (JSON_HEDLEY_UNLIKELY(get_token() != token_type::name_separator))
+-                        {
+-                            return sax->parse_error(m_lexer.get_position(),
+-                                                    m_lexer.get_token_string(),
+-                                                    parse_error::create(101, m_lexer.get_position(), exception_message(token_type::name_separator, "object separator"), BasicJsonType()));
+-                        }
+-
+-                        // remember we are now inside an object
+-                        states.push_back(false);
+-
+-                        // parse values
+-                        get_token();
+-                        continue;
+-                    }
+-
+-                    case token_type::begin_array:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->start_array(static_cast<std::size_t>(-1))))
+-                        {
+-                            return false;
+-                        }
+-
+-                        // closing ] -> we are done
+-                        if (get_token() == token_type::end_array)
+-                        {
+-                            if (JSON_HEDLEY_UNLIKELY(!sax->end_array()))
+-                            {
+-                                return false;
+-                            }
+-                            break;
+-                        }
+-
+-                        // remember we are now inside an array
+-                        states.push_back(true);
+-
+-                        // parse values (no need to call get_token)
+-                        continue;
+-                    }
+-
+-                    case token_type::value_float:
+-                    {
+-                        const auto res = m_lexer.get_number_float();
+-
+-                        if (JSON_HEDLEY_UNLIKELY(!std::isfinite(res)))
+-                        {
+-                            return sax->parse_error(m_lexer.get_position(),
+-                                                    m_lexer.get_token_string(),
+-                                                    out_of_range::create(406, "number overflow parsing '" + m_lexer.get_token_string() + "'", BasicJsonType()));
+-                        }
+-
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->number_float(res, m_lexer.get_string())))
+-                        {
+-                            return false;
+-                        }
+-
+-                        break;
+-                    }
+-
+-                    case token_type::literal_false:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->boolean(false)))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::literal_null:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->null()))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::literal_true:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->boolean(true)))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::value_integer:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->number_integer(m_lexer.get_number_integer())))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::value_string:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->string(m_lexer.get_string())))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::value_unsigned:
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!sax->number_unsigned(m_lexer.get_number_unsigned())))
+-                        {
+-                            return false;
+-                        }
+-                        break;
+-                    }
+-
+-                    case token_type::parse_error:
+-                    {
+-                        // using "uninitialized" to avoid "expected" message
+-                        return sax->parse_error(m_lexer.get_position(),
+-                                                m_lexer.get_token_string(),
+-                                                parse_error::create(101, m_lexer.get_position(), exception_message(token_type::uninitialized, "value"), BasicJsonType()));
+-                    }
+-
+-                    case token_type::uninitialized:
+-                    case token_type::end_array:
+-                    case token_type::end_object:
+-                    case token_type::name_separator:
+-                    case token_type::value_separator:
+-                    case token_type::end_of_input:
+-                    case token_type::literal_or_value:
+-                    default: // the last token was unexpected
+-                    {
+-                        return sax->parse_error(m_lexer.get_position(),
+-                                                m_lexer.get_token_string(),
+-                                                parse_error::create(101, m_lexer.get_position(), exception_message(token_type::literal_or_value, "value"), BasicJsonType()));
+-                    }
+-                }
+-            }
+-            else
+-            {
+-                skip_to_state_evaluation = false;
+-            }
+-
+-            // we reached this line after we successfully parsed a value
+-            if (states.empty())
+-            {
+-                // empty stack: we reached the end of the hierarchy: done
+-                return true;
+-            }
+-
+-            if (states.back())  // array
+-            {
+-                // comma -> next value
+-                if (get_token() == token_type::value_separator)
+-                {
+-                    // parse a new value
+-                    get_token();
+-                    continue;
+-                }
+-
+-                // closing ]
+-                if (JSON_HEDLEY_LIKELY(last_token == token_type::end_array))
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(!sax->end_array()))
+-                    {
+-                        return false;
+-                    }
+-
+-                    // We are done with this array. Before we can parse a
+-                    // new value, we need to evaluate the new state first.
+-                    // By setting skip_to_state_evaluation to false, we
+-                    // are effectively jumping to the beginning of this if.
+-                    JSON_ASSERT(!states.empty());
+-                    states.pop_back();
+-                    skip_to_state_evaluation = true;
+-                    continue;
+-                }
+-
+-                return sax->parse_error(m_lexer.get_position(),
+-                                        m_lexer.get_token_string(),
+-                                        parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_array, "array"), BasicJsonType()));
+-            }
+-
+-            // states.back() is false -> object
+-
+-            // comma -> next value
+-            if (get_token() == token_type::value_separator)
+-            {
+-                // parse key
+-                if (JSON_HEDLEY_UNLIKELY(get_token() != token_type::value_string))
+-                {
+-                    return sax->parse_error(m_lexer.get_position(),
+-                                            m_lexer.get_token_string(),
+-                                            parse_error::create(101, m_lexer.get_position(), exception_message(token_type::value_string, "object key"), BasicJsonType()));
+-                }
+-
+-                if (JSON_HEDLEY_UNLIKELY(!sax->key(m_lexer.get_string())))
+-                {
+-                    return false;
+-                }
+-
+-                // parse separator (:)
+-                if (JSON_HEDLEY_UNLIKELY(get_token() != token_type::name_separator))
+-                {
+-                    return sax->parse_error(m_lexer.get_position(),
+-                                            m_lexer.get_token_string(),
+-                                            parse_error::create(101, m_lexer.get_position(), exception_message(token_type::name_separator, "object separator"), BasicJsonType()));
+-                }
+-
+-                // parse values
+-                get_token();
+-                continue;
+-            }
+-
+-            // closing }
+-            if (JSON_HEDLEY_LIKELY(last_token == token_type::end_object))
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!sax->end_object()))
+-                {
+-                    return false;
+-                }
+-
+-                // We are done with this object. Before we can parse a
+-                // new value, we need to evaluate the new state first.
+-                // By setting skip_to_state_evaluation to false, we
+-                // are effectively jumping to the beginning of this if.
+-                JSON_ASSERT(!states.empty());
+-                states.pop_back();
+-                skip_to_state_evaluation = true;
+-                continue;
+-            }
+-
+-            return sax->parse_error(m_lexer.get_position(),
+-                                    m_lexer.get_token_string(),
+-                                    parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_object, "object"), BasicJsonType()));
+-        }
+-    }
+-
+-    /// get next token from lexer
+-    token_type get_token()
+-    {
+-        return last_token = m_lexer.scan();
+-    }
+-
+-    std::string exception_message(const token_type expected, const std::string& context)
+-    {
+-        std::string error_msg = "syntax error ";
+-
+-        if (!context.empty())
+-        {
+-            error_msg += "while parsing " + context + " ";
+-        }
+-
+-        error_msg += "- ";
+-
+-        if (last_token == token_type::parse_error)
+-        {
+-            error_msg += std::string(m_lexer.get_error_message()) + "; last read: '" +
+-                         m_lexer.get_token_string() + "'";
+-        }
+-        else
+-        {
+-            error_msg += "unexpected " + std::string(lexer_t::token_type_name(last_token));
+-        }
+-
+-        if (expected != token_type::uninitialized)
+-        {
+-            error_msg += "; expected " + std::string(lexer_t::token_type_name(expected));
+-        }
+-
+-        return error_msg;
+-    }
+-
+-  private:
+-    /// callback function
+-    const parser_callback_t<BasicJsonType> callback = nullptr;
+-    /// the type of the last read token
+-    token_type last_token = token_type::uninitialized;
+-    /// the lexer
+-    lexer_t m_lexer;
+-    /// whether to throw exceptions in case of errors
+-    const bool allow_exceptions = true;
+-};
+-
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/iterators/internal_iterator.hpp>
+-
+-
+-// #include <nlohmann/detail/iterators/primitive_iterator.hpp>
+-
+-
+-#include <cstddef> // ptrdiff_t
+-#include <limits>  // numeric_limits
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/*
+-@brief an iterator for primitive JSON types
+-
+-This class models an iterator for primitive JSON types (boolean, number,
+-string). It's only purpose is to allow the iterator/const_iterator classes
+-to "iterate" over primitive values. Internally, the iterator is modeled by
+-a `difference_type` variable. Value begin_value (`0`) models the begin,
+-end_value (`1`) models past the end.
+-*/
+-class primitive_iterator_t
+-{
+-  private:
+-    using difference_type = std::ptrdiff_t;
+-    static constexpr difference_type begin_value = 0;
+-    static constexpr difference_type end_value = begin_value + 1;
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /// iterator as signed integer type
+-    difference_type m_it = (std::numeric_limits<std::ptrdiff_t>::min)();
+-
+-  public:
+-    constexpr difference_type get_value() const noexcept
+-    {
+-        return m_it;
+-    }
+-
+-    /// set iterator to a defined beginning
+-    void set_begin() noexcept
+-    {
+-        m_it = begin_value;
+-    }
+-
+-    /// set iterator to a defined past the end
+-    void set_end() noexcept
+-    {
+-        m_it = end_value;
+-    }
+-
+-    /// return whether the iterator can be dereferenced
+-    constexpr bool is_begin() const noexcept
+-    {
+-        return m_it == begin_value;
+-    }
+-
+-    /// return whether the iterator is at end
+-    constexpr bool is_end() const noexcept
+-    {
+-        return m_it == end_value;
+-    }
+-
+-    friend constexpr bool operator==(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept
+-    {
+-        return lhs.m_it == rhs.m_it;
+-    }
+-
+-    friend constexpr bool operator<(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept
+-    {
+-        return lhs.m_it < rhs.m_it;
+-    }
+-
+-    primitive_iterator_t operator+(difference_type n) noexcept
+-    {
+-        auto result = *this;
+-        result += n;
+-        return result;
+-    }
+-
+-    friend constexpr difference_type operator-(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept
+-    {
+-        return lhs.m_it - rhs.m_it;
+-    }
+-
+-    primitive_iterator_t& operator++() noexcept
+-    {
+-        ++m_it;
+-        return *this;
+-    }
+-
+-    primitive_iterator_t const operator++(int) noexcept // NOLINT(readability-const-return-type)
+-    {
+-        auto result = *this;
+-        ++m_it;
+-        return result;
+-    }
+-
+-    primitive_iterator_t& operator--() noexcept
+-    {
+-        --m_it;
+-        return *this;
+-    }
+-
+-    primitive_iterator_t const operator--(int) noexcept // NOLINT(readability-const-return-type)
+-    {
+-        auto result = *this;
+-        --m_it;
+-        return result;
+-    }
+-
+-    primitive_iterator_t& operator+=(difference_type n) noexcept
+-    {
+-        m_it += n;
+-        return *this;
+-    }
+-
+-    primitive_iterator_t& operator-=(difference_type n) noexcept
+-    {
+-        m_it -= n;
+-        return *this;
+-    }
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/*!
+-@brief an iterator value
+-
+-@note This structure could easily be a union, but MSVC currently does not allow
+-unions members with complex constructors, see https://github.com/nlohmann/json/pull/105.
+-*/
+-template<typename BasicJsonType> struct internal_iterator
+-{
+-    /// iterator for JSON objects
+-    typename BasicJsonType::object_t::iterator object_iterator {};
+-    /// iterator for JSON arrays
+-    typename BasicJsonType::array_t::iterator array_iterator {};
+-    /// generic iterator for all other types
+-    primitive_iterator_t primitive_iterator {};
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/iterators/iter_impl.hpp>
+-
+-
+-#include <iterator> // iterator, random_access_iterator_tag, bidirectional_iterator_tag, advance, next
+-#include <type_traits> // conditional, is_const, remove_const
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/iterators/internal_iterator.hpp>
+-
+-// #include <nlohmann/detail/iterators/primitive_iterator.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-// forward declare, to be able to friend it later on
+-template<typename IteratorType> class iteration_proxy;
+-template<typename IteratorType> class iteration_proxy_value;
+-
+-/*!
+-@brief a template for a bidirectional iterator for the @ref basic_json class
+-This class implements a both iterators (iterator and const_iterator) for the
+-@ref basic_json class.
+-@note An iterator is called *initialized* when a pointer to a JSON value has
+-      been set (e.g., by a constructor or a copy assignment). If the iterator is
+-      default-constructed, it is *uninitialized* and most methods are undefined.
+-      **The library uses assertions to detect calls on uninitialized iterators.**
+-@requirement The class satisfies the following concept requirements:
+--
+-[BidirectionalIterator](https://en.cppreference.com/w/cpp/named_req/BidirectionalIterator):
+-  The iterator that can be moved can be moved in both directions (i.e.
+-  incremented and decremented).
+-@since version 1.0.0, simplified in version 2.0.9, change to bidirectional
+-       iterators in version 3.0.0 (see https://github.com/nlohmann/json/issues/593)
+-*/
+-template<typename BasicJsonType>
+-class iter_impl // NOLINT(cppcoreguidelines-special-member-functions,hicpp-special-member-functions)
+-{
+-    /// the iterator with BasicJsonType of different const-ness
+-    using other_iter_impl = iter_impl<typename std::conditional<std::is_const<BasicJsonType>::value, typename std::remove_const<BasicJsonType>::type, const BasicJsonType>::type>;
+-    /// allow basic_json to access private members
+-    friend other_iter_impl;
+-    friend BasicJsonType;
+-    friend iteration_proxy<iter_impl>;
+-    friend iteration_proxy_value<iter_impl>;
+-
+-    using object_t = typename BasicJsonType::object_t;
+-    using array_t = typename BasicJsonType::array_t;
+-    // make sure BasicJsonType is basic_json or const basic_json
+-    static_assert(is_basic_json<typename std::remove_const<BasicJsonType>::type>::value,
+-                  "iter_impl only accepts (const) basic_json");
+-
+-  public:
+-
+-    /// The std::iterator class template (used as a base class to provide typedefs) is deprecated in C++17.
+-    /// The C++ Standard has never required user-defined iterators to derive from std::iterator.
+-    /// A user-defined iterator should provide publicly accessible typedefs named
+-    /// iterator_category, value_type, difference_type, pointer, and reference.
+-    /// Note that value_type is required to be non-const, even for constant iterators.
+-    using iterator_category = std::bidirectional_iterator_tag;
+-
+-    /// the type of the values when the iterator is dereferenced
+-    using value_type = typename BasicJsonType::value_type;
+-    /// a type to represent differences between iterators
+-    using difference_type = typename BasicJsonType::difference_type;
+-    /// defines a pointer to the type iterated over (value_type)
+-    using pointer = typename std::conditional<std::is_const<BasicJsonType>::value,
+-          typename BasicJsonType::const_pointer,
+-          typename BasicJsonType::pointer>::type;
+-    /// defines a reference to the type iterated over (value_type)
+-    using reference =
+-        typename std::conditional<std::is_const<BasicJsonType>::value,
+-        typename BasicJsonType::const_reference,
+-        typename BasicJsonType::reference>::type;
+-
+-    iter_impl() = default;
+-    ~iter_impl() = default;
+-    iter_impl(iter_impl&&) noexcept = default;
+-    iter_impl& operator=(iter_impl&&) noexcept = default;
+-
+-    /*!
+-    @brief constructor for a given JSON instance
+-    @param[in] object  pointer to a JSON object for this iterator
+-    @pre object != nullptr
+-    @post The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    explicit iter_impl(pointer object) noexcept : m_object(object)
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                m_it.object_iterator = typename object_t::iterator();
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_it.array_iterator = typename array_t::iterator();
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                m_it.primitive_iterator = primitive_iterator_t();
+-                break;
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @note The conventional copy constructor and copy assignment are implicitly
+-          defined. Combined with the following converting constructor and
+-          assignment, they support: (1) copy from iterator to iterator, (2)
+-          copy from const iterator to const iterator, and (3) conversion from
+-          iterator to const iterator. However conversion from const iterator
+-          to iterator is not defined.
+-    */
+-
+-    /*!
+-    @brief const copy constructor
+-    @param[in] other const iterator to copy from
+-    @note This copy constructor had to be defined explicitly to circumvent a bug
+-          occurring on msvc v19.0 compiler (VS 2015) debug build. For more
+-          information refer to: https://github.com/nlohmann/json/issues/1608
+-    */
+-    iter_impl(const iter_impl<const BasicJsonType>& other) noexcept
+-        : m_object(other.m_object), m_it(other.m_it)
+-    {}
+-
+-    /*!
+-    @brief converting assignment
+-    @param[in] other const iterator to copy from
+-    @return const/non-const iterator
+-    @note It is not checked whether @a other is initialized.
+-    */
+-    iter_impl& operator=(const iter_impl<const BasicJsonType>& other) noexcept
+-    {
+-        if (&other != this)
+-        {
+-            m_object = other.m_object;
+-            m_it = other.m_it;
+-        }
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief converting constructor
+-    @param[in] other  non-const iterator to copy from
+-    @note It is not checked whether @a other is initialized.
+-    */
+-    iter_impl(const iter_impl<typename std::remove_const<BasicJsonType>::type>& other) noexcept
+-        : m_object(other.m_object), m_it(other.m_it)
+-    {}
+-
+-    /*!
+-    @brief converting assignment
+-    @param[in] other  non-const iterator to copy from
+-    @return const/non-const iterator
+-    @note It is not checked whether @a other is initialized.
+-    */
+-    iter_impl& operator=(const iter_impl<typename std::remove_const<BasicJsonType>::type>& other) noexcept // NOLINT(cert-oop54-cpp)
+-    {
+-        m_object = other.m_object;
+-        m_it = other.m_it;
+-        return *this;
+-    }
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /*!
+-    @brief set the iterator to the first value
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    void set_begin() noexcept
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                m_it.object_iterator = m_object->m_value.object->begin();
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_it.array_iterator = m_object->m_value.array->begin();
+-                break;
+-            }
+-
+-            case value_t::null:
+-            {
+-                // set to end so begin()==end() is true: null is empty
+-                m_it.primitive_iterator.set_end();
+-                break;
+-            }
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                m_it.primitive_iterator.set_begin();
+-                break;
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief set the iterator past the last value
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    void set_end() noexcept
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                m_it.object_iterator = m_object->m_value.object->end();
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_it.array_iterator = m_object->m_value.array->end();
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                m_it.primitive_iterator.set_end();
+-                break;
+-            }
+-        }
+-    }
+-
+-  public:
+-    /*!
+-    @brief return a reference to the value pointed to by the iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    reference operator*() const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                JSON_ASSERT(m_it.object_iterator != m_object->m_value.object->end());
+-                return m_it.object_iterator->second;
+-            }
+-
+-            case value_t::array:
+-            {
+-                JSON_ASSERT(m_it.array_iterator != m_object->m_value.array->end());
+-                return *m_it.array_iterator;
+-            }
+-
+-            case value_t::null:
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.is_begin()))
+-                {
+-                    return *m_object;
+-                }
+-
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief dereference the iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    pointer operator->() const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                JSON_ASSERT(m_it.object_iterator != m_object->m_value.object->end());
+-                return &(m_it.object_iterator->second);
+-            }
+-
+-            case value_t::array:
+-            {
+-                JSON_ASSERT(m_it.array_iterator != m_object->m_value.array->end());
+-                return &*m_it.array_iterator;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.is_begin()))
+-                {
+-                    return m_object;
+-                }
+-
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief post-increment (it++)
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl const operator++(int) // NOLINT(readability-const-return-type)
+-    {
+-        auto result = *this;
+-        ++(*this);
+-        return result;
+-    }
+-
+-    /*!
+-    @brief pre-increment (++it)
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl& operator++()
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                std::advance(m_it.object_iterator, 1);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                std::advance(m_it.array_iterator, 1);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                ++m_it.primitive_iterator;
+-                break;
+-            }
+-        }
+-
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief post-decrement (it--)
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl const operator--(int) // NOLINT(readability-const-return-type)
+-    {
+-        auto result = *this;
+-        --(*this);
+-        return result;
+-    }
+-
+-    /*!
+-    @brief pre-decrement (--it)
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl& operator--()
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-            {
+-                std::advance(m_it.object_iterator, -1);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                std::advance(m_it.array_iterator, -1);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                --m_it.primitive_iterator;
+-                break;
+-            }
+-        }
+-
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief comparison: equal
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    template < typename IterImpl, detail::enable_if_t < (std::is_same<IterImpl, iter_impl>::value || std::is_same<IterImpl, other_iter_impl>::value), std::nullptr_t > = nullptr >
+-    bool operator==(const IterImpl& other) const
+-    {
+-        // if objects are not the same, the comparison is undefined
+-        if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", *m_object));
+-        }
+-
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                return (m_it.object_iterator == other.m_it.object_iterator);
+-
+-            case value_t::array:
+-                return (m_it.array_iterator == other.m_it.array_iterator);
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                return (m_it.primitive_iterator == other.m_it.primitive_iterator);
+-        }
+-    }
+-
+-    /*!
+-    @brief comparison: not equal
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    template < typename IterImpl, detail::enable_if_t < (std::is_same<IterImpl, iter_impl>::value || std::is_same<IterImpl, other_iter_impl>::value), std::nullptr_t > = nullptr >
+-    bool operator!=(const IterImpl& other) const
+-    {
+-        return !operator==(other);
+-    }
+-
+-    /*!
+-    @brief comparison: smaller
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    bool operator<(const iter_impl& other) const
+-    {
+-        // if objects are not the same, the comparison is undefined
+-        if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", *m_object));
+-        }
+-
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                JSON_THROW(invalid_iterator::create(213, "cannot compare order of object iterators", *m_object));
+-
+-            case value_t::array:
+-                return (m_it.array_iterator < other.m_it.array_iterator);
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                return (m_it.primitive_iterator < other.m_it.primitive_iterator);
+-        }
+-    }
+-
+-    /*!
+-    @brief comparison: less than or equal
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    bool operator<=(const iter_impl& other) const
+-    {
+-        return !other.operator < (*this);
+-    }
+-
+-    /*!
+-    @brief comparison: greater than
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    bool operator>(const iter_impl& other) const
+-    {
+-        return !operator<=(other);
+-    }
+-
+-    /*!
+-    @brief comparison: greater than or equal
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    bool operator>=(const iter_impl& other) const
+-    {
+-        return !operator<(other);
+-    }
+-
+-    /*!
+-    @brief add to iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl& operator+=(difference_type i)
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                JSON_THROW(invalid_iterator::create(209, "cannot use offsets with object iterators", *m_object));
+-
+-            case value_t::array:
+-            {
+-                std::advance(m_it.array_iterator, i);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                m_it.primitive_iterator += i;
+-                break;
+-            }
+-        }
+-
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief subtract from iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl& operator-=(difference_type i)
+-    {
+-        return operator+=(-i);
+-    }
+-
+-    /*!
+-    @brief add to iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl operator+(difference_type i) const
+-    {
+-        auto result = *this;
+-        result += i;
+-        return result;
+-    }
+-
+-    /*!
+-    @brief addition of distance and iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    friend iter_impl operator+(difference_type i, const iter_impl& it)
+-    {
+-        auto result = it;
+-        result += i;
+-        return result;
+-    }
+-
+-    /*!
+-    @brief subtract from iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    iter_impl operator-(difference_type i) const
+-    {
+-        auto result = *this;
+-        result -= i;
+-        return result;
+-    }
+-
+-    /*!
+-    @brief return difference
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    difference_type operator-(const iter_impl& other) const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                JSON_THROW(invalid_iterator::create(209, "cannot use offsets with object iterators", *m_object));
+-
+-            case value_t::array:
+-                return m_it.array_iterator - other.m_it.array_iterator;
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                return m_it.primitive_iterator - other.m_it.primitive_iterator;
+-        }
+-    }
+-
+-    /*!
+-    @brief access to successor
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    reference operator[](difference_type n) const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        switch (m_object->m_type)
+-        {
+-            case value_t::object:
+-                JSON_THROW(invalid_iterator::create(208, "cannot use operator[] for object iterators", *m_object));
+-
+-            case value_t::array:
+-                return *std::next(m_it.array_iterator, n);
+-
+-            case value_t::null:
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.get_value() == -n))
+-                {
+-                    return *m_object;
+-                }
+-
+-                JSON_THROW(invalid_iterator::create(214, "cannot get value", *m_object));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @brief return the key of an object iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    const typename object_t::key_type& key() const
+-    {
+-        JSON_ASSERT(m_object != nullptr);
+-
+-        if (JSON_HEDLEY_LIKELY(m_object->is_object()))
+-        {
+-            return m_it.object_iterator->first;
+-        }
+-
+-        JSON_THROW(invalid_iterator::create(207, "cannot use key() for non-object iterators", *m_object));
+-    }
+-
+-    /*!
+-    @brief return the value of an iterator
+-    @pre The iterator is initialized; i.e. `m_object != nullptr`.
+-    */
+-    reference value() const
+-    {
+-        return operator*();
+-    }
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /// associated JSON instance
+-    pointer m_object = nullptr;
+-    /// the actual iterator of the associated instance
+-    internal_iterator<typename std::remove_const<BasicJsonType>::type> m_it {};
+-};
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/iterators/iteration_proxy.hpp>
+-
+-// #include <nlohmann/detail/iterators/json_reverse_iterator.hpp>
+-
+-
+-#include <cstddef> // ptrdiff_t
+-#include <iterator> // reverse_iterator
+-#include <utility> // declval
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-//////////////////////
+-// reverse_iterator //
+-//////////////////////
+-
+-/*!
+-@brief a template for a reverse iterator class
+-
+-@tparam Base the base iterator type to reverse. Valid types are @ref
+-iterator (to create @ref reverse_iterator) and @ref const_iterator (to
+-create @ref const_reverse_iterator).
+-
+-@requirement The class satisfies the following concept requirements:
+--
+-[BidirectionalIterator](https://en.cppreference.com/w/cpp/named_req/BidirectionalIterator):
+-  The iterator that can be moved can be moved in both directions (i.e.
+-  incremented and decremented).
+-- [OutputIterator](https://en.cppreference.com/w/cpp/named_req/OutputIterator):
+-  It is possible to write to the pointed-to element (only if @a Base is
+-  @ref iterator).
+-
+-@since version 1.0.0
+-*/
+-template<typename Base>
+-class json_reverse_iterator : public std::reverse_iterator<Base>
+-{
+-  public:
+-    using difference_type = std::ptrdiff_t;
+-    /// shortcut to the reverse iterator adapter
+-    using base_iterator = std::reverse_iterator<Base>;
+-    /// the reference type for the pointed-to element
+-    using reference = typename Base::reference;
+-
+-    /// create reverse iterator from iterator
+-    explicit json_reverse_iterator(const typename base_iterator::iterator_type& it) noexcept
+-        : base_iterator(it) {}
+-
+-    /// create reverse iterator from base class
+-    explicit json_reverse_iterator(const base_iterator& it) noexcept : base_iterator(it) {}
+-
+-    /// post-increment (it++)
+-    json_reverse_iterator const operator++(int) // NOLINT(readability-const-return-type)
+-    {
+-        return static_cast<json_reverse_iterator>(base_iterator::operator++(1));
+-    }
+-
+-    /// pre-increment (++it)
+-    json_reverse_iterator& operator++()
+-    {
+-        return static_cast<json_reverse_iterator&>(base_iterator::operator++());
+-    }
+-
+-    /// post-decrement (it--)
+-    json_reverse_iterator const operator--(int) // NOLINT(readability-const-return-type)
+-    {
+-        return static_cast<json_reverse_iterator>(base_iterator::operator--(1));
+-    }
+-
+-    /// pre-decrement (--it)
+-    json_reverse_iterator& operator--()
+-    {
+-        return static_cast<json_reverse_iterator&>(base_iterator::operator--());
+-    }
+-
+-    /// add to iterator
+-    json_reverse_iterator& operator+=(difference_type i)
+-    {
+-        return static_cast<json_reverse_iterator&>(base_iterator::operator+=(i));
+-    }
+-
+-    /// add to iterator
+-    json_reverse_iterator operator+(difference_type i) const
+-    {
+-        return static_cast<json_reverse_iterator>(base_iterator::operator+(i));
+-    }
+-
+-    /// subtract from iterator
+-    json_reverse_iterator operator-(difference_type i) const
+-    {
+-        return static_cast<json_reverse_iterator>(base_iterator::operator-(i));
+-    }
+-
+-    /// return difference
+-    difference_type operator-(const json_reverse_iterator& other) const
+-    {
+-        return base_iterator(*this) - base_iterator(other);
+-    }
+-
+-    /// access to successor
+-    reference operator[](difference_type n) const
+-    {
+-        return *(this->operator+(n));
+-    }
+-
+-    /// return the key of an object iterator
+-    auto key() const -> decltype(std::declval<Base>().key())
+-    {
+-        auto it = --this->base();
+-        return it.key();
+-    }
+-
+-    /// return the value of an iterator
+-    reference value() const
+-    {
+-        auto it = --this->base();
+-        return it.operator * ();
+-    }
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/iterators/primitive_iterator.hpp>
+-
+-// #include <nlohmann/detail/json_pointer.hpp>
+-
+-
+-#include <algorithm> // all_of
+-#include <cctype> // isdigit
+-#include <limits> // max
+-#include <numeric> // accumulate
+-#include <string> // string
+-#include <utility> // move
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/string_escape.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-
+-/// @brief JSON Pointer defines a string syntax for identifying a specific value within a JSON document
+-/// @sa https://json.nlohmann.me/api/json_pointer/
+-template<typename BasicJsonType>
+-class json_pointer
+-{
+-    // allow basic_json to access private members
+-    NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-    friend class basic_json;
+-
+-  public:
+-    /// @brief create JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/json_pointer/
+-    explicit json_pointer(const std::string& s = "")
+-        : reference_tokens(split(s))
+-    {}
+-
+-    /// @brief return a string representation of the JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/to_string/
+-    std::string to_string() const
+-    {
+-        return std::accumulate(reference_tokens.begin(), reference_tokens.end(),
+-                               std::string{},
+-                               [](const std::string & a, const std::string & b)
+-        {
+-            return a + "/" + detail::escape(b);
+-        });
+-    }
+-
+-    /// @brief return a string representation of the JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_string/
+-    operator std::string() const
+-    {
+-        return to_string();
+-    }
+-
+-    /// @brief append another JSON pointer at the end of this JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slasheq/
+-    json_pointer& operator/=(const json_pointer& ptr)
+-    {
+-        reference_tokens.insert(reference_tokens.end(),
+-                                ptr.reference_tokens.begin(),
+-                                ptr.reference_tokens.end());
+-        return *this;
+-    }
+-
+-    /// @brief append an unescaped reference token at the end of this JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slasheq/
+-    json_pointer& operator/=(std::string token)
+-    {
+-        push_back(std::move(token));
+-        return *this;
+-    }
+-
+-    /// @brief append an array index at the end of this JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slasheq/
+-    json_pointer& operator/=(std::size_t array_idx)
+-    {
+-        return *this /= std::to_string(array_idx);
+-    }
+-
+-    /// @brief create a new JSON pointer by appending the right JSON pointer at the end of the left JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slash/
+-    friend json_pointer operator/(const json_pointer& lhs,
+-                                  const json_pointer& rhs)
+-    {
+-        return json_pointer(lhs) /= rhs;
+-    }
+-
+-    /// @brief create a new JSON pointer by appending the unescaped token at the end of the JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slash/
+-    friend json_pointer operator/(const json_pointer& lhs, std::string token) // NOLINT(performance-unnecessary-value-param)
+-    {
+-        return json_pointer(lhs) /= std::move(token);
+-    }
+-
+-    /// @brief create a new JSON pointer by appending the array-index-token at the end of the JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/operator_slash/
+-    friend json_pointer operator/(const json_pointer& lhs, std::size_t array_idx)
+-    {
+-        return json_pointer(lhs) /= array_idx;
+-    }
+-
+-    /// @brief returns the parent of this JSON pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/parent_pointer/
+-    json_pointer parent_pointer() const
+-    {
+-        if (empty())
+-        {
+-            return *this;
+-        }
+-
+-        json_pointer res = *this;
+-        res.pop_back();
+-        return res;
+-    }
+-
+-    /// @brief remove last reference token
+-    /// @sa https://json.nlohmann.me/api/json_pointer/pop_back/
+-    void pop_back()
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(empty()))
+-        {
+-            JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", BasicJsonType()));
+-        }
+-
+-        reference_tokens.pop_back();
+-    }
+-
+-    /// @brief return last reference token
+-    /// @sa https://json.nlohmann.me/api/json_pointer/back/
+-    const std::string& back() const
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(empty()))
+-        {
+-            JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", BasicJsonType()));
+-        }
+-
+-        return reference_tokens.back();
+-    }
+-
+-    /// @brief append an unescaped token at the end of the reference pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/push_back/
+-    void push_back(const std::string& token)
+-    {
+-        reference_tokens.push_back(token);
+-    }
+-
+-    /// @brief append an unescaped token at the end of the reference pointer
+-    /// @sa https://json.nlohmann.me/api/json_pointer/push_back/
+-    void push_back(std::string&& token)
+-    {
+-        reference_tokens.push_back(std::move(token));
+-    }
+-
+-    /// @brief return whether pointer points to the root document
+-    /// @sa https://json.nlohmann.me/api/json_pointer/empty/
+-    bool empty() const noexcept
+-    {
+-        return reference_tokens.empty();
+-    }
+-
+-  private:
+-    /*!
+-    @param[in] s  reference token to be converted into an array index
+-
+-    @return integer representation of @a s
+-
+-    @throw parse_error.106  if an array index begins with '0'
+-    @throw parse_error.109  if an array index begins not with a digit
+-    @throw out_of_range.404 if string @a s could not be converted to an integer
+-    @throw out_of_range.410 if an array index exceeds size_type
+-    */
+-    static typename BasicJsonType::size_type array_index(const std::string& s)
+-    {
+-        using size_type = typename BasicJsonType::size_type;
+-
+-        // error condition (cf. RFC 6901, Sect. 4)
+-        if (JSON_HEDLEY_UNLIKELY(s.size() > 1 && s[0] == '0'))
+-        {
+-            JSON_THROW(detail::parse_error::create(106, 0, "array index '" + s + "' must not begin with '0'", BasicJsonType()));
+-        }
+-
+-        // error condition (cf. RFC 6901, Sect. 4)
+-        if (JSON_HEDLEY_UNLIKELY(s.size() > 1 && !(s[0] >= '1' && s[0] <= '9')))
+-        {
+-            JSON_THROW(detail::parse_error::create(109, 0, "array index '" + s + "' is not a number", BasicJsonType()));
+-        }
+-
+-        std::size_t processed_chars = 0;
+-        unsigned long long res = 0;  // NOLINT(runtime/int)
+-        JSON_TRY
+-        {
+-            res = std::stoull(s, &processed_chars);
+-        }
+-        JSON_CATCH(std::out_of_range&)
+-        {
+-            JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + s + "'", BasicJsonType()));
+-        }
+-
+-        // check if the string was completely read
+-        if (JSON_HEDLEY_UNLIKELY(processed_chars != s.size()))
+-        {
+-            JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + s + "'", BasicJsonType()));
+-        }
+-
+-        // only triggered on special platforms (like 32bit), see also
+-        // https://github.com/nlohmann/json/pull/2203
+-        if (res >= static_cast<unsigned long long>((std::numeric_limits<size_type>::max)()))  // NOLINT(runtime/int)
+-        {
+-            JSON_THROW(detail::out_of_range::create(410, "array index " + s + " exceeds size_type", BasicJsonType())); // LCOV_EXCL_LINE
+-        }
+-
+-        return static_cast<size_type>(res);
+-    }
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    json_pointer top() const
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(empty()))
+-        {
+-            JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", BasicJsonType()));
+-        }
+-
+-        json_pointer result = *this;
+-        result.reference_tokens = {reference_tokens[0]};
+-        return result;
+-    }
+-
+-  private:
+-    /*!
+-    @brief create and return a reference to the pointed to value
+-
+-    @complexity Linear in the number of reference tokens.
+-
+-    @throw parse_error.109 if array index is not a number
+-    @throw type_error.313 if value cannot be unflattened
+-    */
+-    BasicJsonType& get_and_create(BasicJsonType& j) const
+-    {
+-        auto* result = &j;
+-
+-        // in case no reference tokens exist, return a reference to the JSON value
+-        // j which will be overwritten by a primitive value
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (result->type())
+-            {
+-                case detail::value_t::null:
+-                {
+-                    if (reference_token == "0")
+-                    {
+-                        // start a new array if reference token is 0
+-                        result = &result->operator[](0);
+-                    }
+-                    else
+-                    {
+-                        // start a new object otherwise
+-                        result = &result->operator[](reference_token);
+-                    }
+-                    break;
+-                }
+-
+-                case detail::value_t::object:
+-                {
+-                    // create an entry in the object
+-                    result = &result->operator[](reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    // create an entry in the array
+-                    result = &result->operator[](array_index(reference_token));
+-                    break;
+-                }
+-
+-                /*
+-                The following code is only reached if there exists a reference
+-                token _and_ the current value is primitive. In this case, we have
+-                an error situation, because primitive values may only occur as
+-                single value; that is, with an empty list of reference tokens.
+-                */
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::type_error::create(313, "invalid value to unflatten", j));
+-            }
+-        }
+-
+-        return *result;
+-    }
+-
+-    /*!
+-    @brief return a reference to the pointed to value
+-
+-    @note This version does not throw if a value is not present, but tries to
+-          create nested values instead. For instance, calling this function
+-          with pointer `"/this/that"` on a null value is equivalent to calling
+-          `operator[]("this").operator[]("that")` on that value, effectively
+-          changing the null value to an object.
+-
+-    @param[in] ptr  a JSON value
+-
+-    @return reference to the JSON value pointed to by the JSON pointer
+-
+-    @complexity Linear in the length of the JSON pointer.
+-
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    @throw out_of_range.404  if the JSON pointer can not be resolved
+-    */
+-    BasicJsonType& get_unchecked(BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            // convert null values to arrays or objects before continuing
+-            if (ptr->is_null())
+-            {
+-                // check if reference token is a number
+-                const bool nums =
+-                    std::all_of(reference_token.begin(), reference_token.end(),
+-                                [](const unsigned char x)
+-                {
+-                    return std::isdigit(x);
+-                });
+-
+-                // change value to array for numbers or "-" or to object otherwise
+-                *ptr = (nums || reference_token == "-")
+-                       ? detail::value_t::array
+-                       : detail::value_t::object;
+-            }
+-
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    // use unchecked object access
+-                    ptr = &ptr->operator[](reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (reference_token == "-")
+-                    {
+-                        // explicitly treat "-" as index beyond the end
+-                        ptr = &ptr->operator[](ptr->m_value.array->size());
+-                    }
+-                    else
+-                    {
+-                        // convert array index to number; unchecked access
+-                        ptr = &ptr->operator[](array_index(reference_token));
+-                    }
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'", *ptr));
+-            }
+-        }
+-
+-        return *ptr;
+-    }
+-
+-    /*!
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    @throw out_of_range.402  if the array index '-' is used
+-    @throw out_of_range.404  if the JSON pointer can not be resolved
+-    */
+-    BasicJsonType& get_checked(BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    // note: at performs range check
+-                    ptr = &ptr->at(reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
+-                    {
+-                        // "-" always fails the range check
+-                        JSON_THROW(detail::out_of_range::create(402,
+-                                                                "array index '-' (" + std::to_string(ptr->m_value.array->size()) +
+-                                                                ") is out of range", *ptr));
+-                    }
+-
+-                    // note: at performs range check
+-                    ptr = &ptr->at(array_index(reference_token));
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'", *ptr));
+-            }
+-        }
+-
+-        return *ptr;
+-    }
+-
+-    /*!
+-    @brief return a const reference to the pointed to value
+-
+-    @param[in] ptr  a JSON value
+-
+-    @return const reference to the JSON value pointed to by the JSON
+-    pointer
+-
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    @throw out_of_range.402  if the array index '-' is used
+-    @throw out_of_range.404  if the JSON pointer can not be resolved
+-    */
+-    const BasicJsonType& get_unchecked(const BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    // use unchecked object access
+-                    ptr = &ptr->operator[](reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
+-                    {
+-                        // "-" cannot be used for const access
+-                        JSON_THROW(detail::out_of_range::create(402, "array index '-' (" + std::to_string(ptr->m_value.array->size()) + ") is out of range", *ptr));
+-                    }
+-
+-                    // use unchecked array access
+-                    ptr = &ptr->operator[](array_index(reference_token));
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'", *ptr));
+-            }
+-        }
+-
+-        return *ptr;
+-    }
+-
+-    /*!
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    @throw out_of_range.402  if the array index '-' is used
+-    @throw out_of_range.404  if the JSON pointer can not be resolved
+-    */
+-    const BasicJsonType& get_checked(const BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    // note: at performs range check
+-                    ptr = &ptr->at(reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
+-                    {
+-                        // "-" always fails the range check
+-                        JSON_THROW(detail::out_of_range::create(402,
+-                                                                "array index '-' (" + std::to_string(ptr->m_value.array->size()) +
+-                                                                ") is out of range", *ptr));
+-                    }
+-
+-                    // note: at performs range check
+-                    ptr = &ptr->at(array_index(reference_token));
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                    JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'", *ptr));
+-            }
+-        }
+-
+-        return *ptr;
+-    }
+-
+-    /*!
+-    @throw parse_error.106   if an array index begins with '0'
+-    @throw parse_error.109   if an array index was not a number
+-    */
+-    bool contains(const BasicJsonType* ptr) const
+-    {
+-        for (const auto& reference_token : reference_tokens)
+-        {
+-            switch (ptr->type())
+-            {
+-                case detail::value_t::object:
+-                {
+-                    if (!ptr->contains(reference_token))
+-                    {
+-                        // we did not find the key in the object
+-                        return false;
+-                    }
+-
+-                    ptr = &ptr->operator[](reference_token);
+-                    break;
+-                }
+-
+-                case detail::value_t::array:
+-                {
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
+-                    {
+-                        // "-" always fails the range check
+-                        return false;
+-                    }
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token.size() == 1 && !("0" <= reference_token && reference_token <= "9")))
+-                    {
+-                        // invalid char
+-                        return false;
+-                    }
+-                    if (JSON_HEDLEY_UNLIKELY(reference_token.size() > 1))
+-                    {
+-                        if (JSON_HEDLEY_UNLIKELY(!('1' <= reference_token[0] && reference_token[0] <= '9')))
+-                        {
+-                            // first char should be between '1' and '9'
+-                            return false;
+-                        }
+-                        for (std::size_t i = 1; i < reference_token.size(); i++)
+-                        {
+-                            if (JSON_HEDLEY_UNLIKELY(!('0' <= reference_token[i] && reference_token[i] <= '9')))
+-                            {
+-                                // other char should be between '0' and '9'
+-                                return false;
+-                            }
+-                        }
+-                    }
+-
+-                    const auto idx = array_index(reference_token);
+-                    if (idx >= ptr->size())
+-                    {
+-                        // index out of range
+-                        return false;
+-                    }
+-
+-                    ptr = &ptr->operator[](idx);
+-                    break;
+-                }
+-
+-                case detail::value_t::null:
+-                case detail::value_t::string:
+-                case detail::value_t::boolean:
+-                case detail::value_t::number_integer:
+-                case detail::value_t::number_unsigned:
+-                case detail::value_t::number_float:
+-                case detail::value_t::binary:
+-                case detail::value_t::discarded:
+-                default:
+-                {
+-                    // we do not expect primitive values if there is still a
+-                    // reference token to process
+-                    return false;
+-                }
+-            }
+-        }
+-
+-        // no reference token left means we found a primitive value
+-        return true;
+-    }
+-
+-    /*!
+-    @brief split the string input to reference tokens
+-
+-    @note This function is only called by the json_pointer constructor.
+-          All exceptions below are documented there.
+-
+-    @throw parse_error.107  if the pointer is not empty or begins with '/'
+-    @throw parse_error.108  if character '~' is not followed by '0' or '1'
+-    */
+-    static std::vector<std::string> split(const std::string& reference_string)
+-    {
+-        std::vector<std::string> result;
+-
+-        // special case: empty reference string -> no reference tokens
+-        if (reference_string.empty())
+-        {
+-            return result;
+-        }
+-
+-        // check if nonempty reference string begins with slash
+-        if (JSON_HEDLEY_UNLIKELY(reference_string[0] != '/'))
+-        {
+-            JSON_THROW(detail::parse_error::create(107, 1, "JSON pointer must be empty or begin with '/' - was: '" + reference_string + "'", BasicJsonType()));
+-        }
+-
+-        // extract the reference tokens:
+-        // - slash: position of the last read slash (or end of string)
+-        // - start: position after the previous slash
+-        for (
+-            // search for the first slash after the first character
+-            std::size_t slash = reference_string.find_first_of('/', 1),
+-            // set the beginning of the first reference token
+-            start = 1;
+-            // we can stop if start == 0 (if slash == std::string::npos)
+-            start != 0;
+-            // set the beginning of the next reference token
+-            // (will eventually be 0 if slash == std::string::npos)
+-            start = (slash == std::string::npos) ? 0 : slash + 1,
+-            // find next slash
+-            slash = reference_string.find_first_of('/', start))
+-        {
+-            // use the text between the beginning of the reference token
+-            // (start) and the last slash (slash).
+-            auto reference_token = reference_string.substr(start, slash - start);
+-
+-            // check reference tokens are properly escaped
+-            for (std::size_t pos = reference_token.find_first_of('~');
+-                    pos != std::string::npos;
+-                    pos = reference_token.find_first_of('~', pos + 1))
+-            {
+-                JSON_ASSERT(reference_token[pos] == '~');
+-
+-                // ~ must be followed by 0 or 1
+-                if (JSON_HEDLEY_UNLIKELY(pos == reference_token.size() - 1 ||
+-                                         (reference_token[pos + 1] != '0' &&
+-                                          reference_token[pos + 1] != '1')))
+-                {
+-                    JSON_THROW(detail::parse_error::create(108, 0, "escape character '~' must be followed with '0' or '1'", BasicJsonType()));
+-                }
+-            }
+-
+-            // finally, store the reference token
+-            detail::unescape(reference_token);
+-            result.push_back(reference_token);
+-        }
+-
+-        return result;
+-    }
+-
+-  private:
+-    /*!
+-    @param[in] reference_string  the reference string to the current value
+-    @param[in] value             the value to consider
+-    @param[in,out] result        the result object to insert values to
+-
+-    @note Empty objects or arrays are flattened to `null`.
+-    */
+-    static void flatten(const std::string& reference_string,
+-                        const BasicJsonType& value,
+-                        BasicJsonType& result)
+-    {
+-        switch (value.type())
+-        {
+-            case detail::value_t::array:
+-            {
+-                if (value.m_value.array->empty())
+-                {
+-                    // flatten empty array as null
+-                    result[reference_string] = nullptr;
+-                }
+-                else
+-                {
+-                    // iterate array and use index as reference string
+-                    for (std::size_t i = 0; i < value.m_value.array->size(); ++i)
+-                    {
+-                        flatten(reference_string + "/" + std::to_string(i),
+-                                value.m_value.array->operator[](i), result);
+-                    }
+-                }
+-                break;
+-            }
+-
+-            case detail::value_t::object:
+-            {
+-                if (value.m_value.object->empty())
+-                {
+-                    // flatten empty object as null
+-                    result[reference_string] = nullptr;
+-                }
+-                else
+-                {
+-                    // iterate object and use keys as reference string
+-                    for (const auto& element : *value.m_value.object)
+-                    {
+-                        flatten(reference_string + "/" + detail::escape(element.first), element.second, result);
+-                    }
+-                }
+-                break;
+-            }
+-
+-            case detail::value_t::null:
+-            case detail::value_t::string:
+-            case detail::value_t::boolean:
+-            case detail::value_t::number_integer:
+-            case detail::value_t::number_unsigned:
+-            case detail::value_t::number_float:
+-            case detail::value_t::binary:
+-            case detail::value_t::discarded:
+-            default:
+-            {
+-                // add primitive value with its reference string
+-                result[reference_string] = value;
+-                break;
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @param[in] value  flattened JSON
+-
+-    @return unflattened JSON
+-
+-    @throw parse_error.109 if array index is not a number
+-    @throw type_error.314  if value is not an object
+-    @throw type_error.315  if object values are not primitive
+-    @throw type_error.313  if value cannot be unflattened
+-    */
+-    static BasicJsonType
+-    unflatten(const BasicJsonType& value)
+-    {
+-        if (JSON_HEDLEY_UNLIKELY(!value.is_object()))
+-        {
+-            JSON_THROW(detail::type_error::create(314, "only objects can be unflattened", value));
+-        }
+-
+-        BasicJsonType result;
+-
+-        // iterate the JSON object values
+-        for (const auto& element : *value.m_value.object)
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(!element.second.is_primitive()))
+-            {
+-                JSON_THROW(detail::type_error::create(315, "values in object must be primitive", element.second));
+-            }
+-
+-            // assign value to reference pointed to by JSON pointer; Note that if
+-            // the JSON pointer is "" (i.e., points to the whole value), function
+-            // get_and_create returns a reference to result itself. An assignment
+-            // will then create a primitive value.
+-            json_pointer(element.first).get_and_create(result) = element.second;
+-        }
+-
+-        return result;
+-    }
+-
+-    /*!
+-    @brief compares two JSON pointers for equality
+-
+-    @param[in] lhs  JSON pointer to compare
+-    @param[in] rhs  JSON pointer to compare
+-    @return whether @a lhs is equal to @a rhs
+-
+-    @complexity Linear in the length of the JSON pointer
+-
+-    @exceptionsafety No-throw guarantee: this function never throws exceptions.
+-    */
+-    friend bool operator==(json_pointer const& lhs,
+-                           json_pointer const& rhs) noexcept
+-    {
+-        return lhs.reference_tokens == rhs.reference_tokens;
+-    }
+-
+-    /*!
+-    @brief compares two JSON pointers for inequality
+-
+-    @param[in] lhs  JSON pointer to compare
+-    @param[in] rhs  JSON pointer to compare
+-    @return whether @a lhs is not equal @a rhs
+-
+-    @complexity Linear in the length of the JSON pointer
+-
+-    @exceptionsafety No-throw guarantee: this function never throws exceptions.
+-    */
+-    friend bool operator!=(json_pointer const& lhs,
+-                           json_pointer const& rhs) noexcept
+-    {
+-        return !(lhs == rhs);
+-    }
+-
+-    /// the reference tokens
+-    std::vector<std::string> reference_tokens;
+-};
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/json_ref.hpp>
+-
+-
+-#include <initializer_list>
+-#include <utility>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-template<typename BasicJsonType>
+-class json_ref
+-{
+-  public:
+-    using value_type = BasicJsonType;
+-
+-    json_ref(value_type&& value)
+-        : owned_value(std::move(value))
+-    {}
+-
+-    json_ref(const value_type& value)
+-        : value_ref(&value)
+-    {}
+-
+-    json_ref(std::initializer_list<json_ref> init)
+-        : owned_value(init)
+-    {}
+-
+-    template <
+-        class... Args,
+-        enable_if_t<std::is_constructible<value_type, Args...>::value, int> = 0 >
+-    json_ref(Args && ... args)
+-        : owned_value(std::forward<Args>(args)...)
+-    {}
+-
+-    // class should be movable only
+-    json_ref(json_ref&&) noexcept = default;
+-    json_ref(const json_ref&) = delete;
+-    json_ref& operator=(const json_ref&) = delete;
+-    json_ref& operator=(json_ref&&) = delete;
+-    ~json_ref() = default;
+-
+-    value_type moved_or_copied() const
+-    {
+-        if (value_ref == nullptr)
+-        {
+-            return std::move(owned_value);
+-        }
+-        return *value_ref;
+-    }
+-
+-    value_type const& operator*() const
+-    {
+-        return value_ref ? *value_ref : owned_value;
+-    }
+-
+-    value_type const* operator->() const
+-    {
+-        return &** this;
+-    }
+-
+-  private:
+-    mutable value_type owned_value = nullptr;
+-    value_type const* value_ref = nullptr;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/string_escape.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/meta/type_traits.hpp>
+-
+-// #include <nlohmann/detail/output/binary_writer.hpp>
+-
+-
+-#include <algorithm> // reverse
+-#include <array> // array
+-#include <cmath> // isnan, isinf
+-#include <cstdint> // uint8_t, uint16_t, uint32_t, uint64_t
+-#include <cstring> // memcpy
+-#include <limits> // numeric_limits
+-#include <string> // string
+-#include <utility> // move
+-
+-// #include <nlohmann/detail/input/binary_reader.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/output/output_adapters.hpp>
+-
+-
+-#include <algorithm> // copy
+-#include <cstddef> // size_t
+-#include <iterator> // back_inserter
+-#include <memory> // shared_ptr, make_shared
+-#include <string> // basic_string
+-#include <vector> // vector
+-
+-#ifndef JSON_NO_IO
+-    #include <ios>      // streamsize
+-    #include <ostream>  // basic_ostream
+-#endif  // JSON_NO_IO
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-/// abstract output adapter interface
+-template<typename CharType> struct output_adapter_protocol
+-{
+-    virtual void write_character(CharType c) = 0;
+-    virtual void write_characters(const CharType* s, std::size_t length) = 0;
+-    virtual ~output_adapter_protocol() = default;
+-
+-    output_adapter_protocol() = default;
+-    output_adapter_protocol(const output_adapter_protocol&) = default;
+-    output_adapter_protocol(output_adapter_protocol&&) noexcept = default;
+-    output_adapter_protocol& operator=(const output_adapter_protocol&) = default;
+-    output_adapter_protocol& operator=(output_adapter_protocol&&) noexcept = default;
+-};
+-
+-/// a type to simplify interfaces
+-template<typename CharType>
+-using output_adapter_t = std::shared_ptr<output_adapter_protocol<CharType>>;
+-
+-/// output adapter for byte vectors
+-template<typename CharType, typename AllocatorType = std::allocator<CharType>>
+-class output_vector_adapter : public output_adapter_protocol<CharType>
+-{
+-  public:
+-    explicit output_vector_adapter(std::vector<CharType, AllocatorType>& vec) noexcept
+-        : v(vec)
+-    {}
+-
+-    void write_character(CharType c) override
+-    {
+-        v.push_back(c);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    void write_characters(const CharType* s, std::size_t length) override
+-    {
+-        std::copy(s, s + length, std::back_inserter(v));
+-    }
+-
+-  private:
+-    std::vector<CharType, AllocatorType>& v;
+-};
+-
+-#ifndef JSON_NO_IO
+-/// output adapter for output streams
+-template<typename CharType>
+-class output_stream_adapter : public output_adapter_protocol<CharType>
+-{
+-  public:
+-    explicit output_stream_adapter(std::basic_ostream<CharType>& s) noexcept
+-        : stream(s)
+-    {}
+-
+-    void write_character(CharType c) override
+-    {
+-        stream.put(c);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    void write_characters(const CharType* s, std::size_t length) override
+-    {
+-        stream.write(s, static_cast<std::streamsize>(length));
+-    }
+-
+-  private:
+-    std::basic_ostream<CharType>& stream;
+-};
+-#endif  // JSON_NO_IO
+-
+-/// output adapter for basic_string
+-template<typename CharType, typename StringType = std::basic_string<CharType>>
+-class output_string_adapter : public output_adapter_protocol<CharType>
+-{
+-  public:
+-    explicit output_string_adapter(StringType& s) noexcept
+-        : str(s)
+-    {}
+-
+-    void write_character(CharType c) override
+-    {
+-        str.push_back(c);
+-    }
+-
+-    JSON_HEDLEY_NON_NULL(2)
+-    void write_characters(const CharType* s, std::size_t length) override
+-    {
+-        str.append(s, length);
+-    }
+-
+-  private:
+-    StringType& str;
+-};
+-
+-template<typename CharType, typename StringType = std::basic_string<CharType>>
+-class output_adapter
+-{
+-  public:
+-    template<typename AllocatorType = std::allocator<CharType>>
+-    output_adapter(std::vector<CharType, AllocatorType>& vec)
+-        : oa(std::make_shared<output_vector_adapter<CharType, AllocatorType>>(vec)) {}
+-
+-#ifndef JSON_NO_IO
+-    output_adapter(std::basic_ostream<CharType>& s)
+-        : oa(std::make_shared<output_stream_adapter<CharType>>(s)) {}
+-#endif  // JSON_NO_IO
+-
+-    output_adapter(StringType& s)
+-        : oa(std::make_shared<output_string_adapter<CharType, StringType>>(s)) {}
+-
+-    operator output_adapter_t<CharType>()
+-    {
+-        return oa;
+-    }
+-
+-  private:
+-    output_adapter_t<CharType> oa = nullptr;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-///////////////////
+-// binary writer //
+-///////////////////
+-
+-/*!
+-@brief serialization to CBOR and MessagePack values
+-*/
+-template<typename BasicJsonType, typename CharType>
+-class binary_writer
+-{
+-    using string_t = typename BasicJsonType::string_t;
+-    using binary_t = typename BasicJsonType::binary_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-
+-  public:
+-    /*!
+-    @brief create a binary writer
+-
+-    @param[in] adapter  output adapter to write to
+-    */
+-    explicit binary_writer(output_adapter_t<CharType> adapter) : oa(std::move(adapter))
+-    {
+-        JSON_ASSERT(oa);
+-    }
+-
+-    /*!
+-    @param[in] j  JSON value to serialize
+-    @pre       j.type() == value_t::object
+-    */
+-    void write_bson(const BasicJsonType& j)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::object:
+-            {
+-                write_bson_object(*j.m_value.object);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::array:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                JSON_THROW(type_error::create(317, "to serialize to BSON, top-level type must be object, but is " + std::string(j.type_name()), j));
+-            }
+-        }
+-    }
+-
+-    /*!
+-    @param[in] j  JSON value to serialize
+-    */
+-    void write_cbor(const BasicJsonType& j)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::null:
+-            {
+-                oa->write_character(to_char_type(0xF6));
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                oa->write_character(j.m_value.boolean
+-                                    ? to_char_type(0xF5)
+-                                    : to_char_type(0xF4));
+-                break;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                if (j.m_value.number_integer >= 0)
+-                {
+-                    // CBOR does not differentiate between positive signed
+-                    // integers and unsigned integers. Therefore, we used the
+-                    // code from the value_t::number_unsigned case here.
+-                    if (j.m_value.number_integer <= 0x17)
+-                    {
+-                        write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer <= (std::numeric_limits<std::uint8_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x18));
+-                        write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer <= (std::numeric_limits<std::uint16_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x19));
+-                        write_number(static_cast<std::uint16_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer <= (std::numeric_limits<std::uint32_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x1A));
+-                        write_number(static_cast<std::uint32_t>(j.m_value.number_integer));
+-                    }
+-                    else
+-                    {
+-                        oa->write_character(to_char_type(0x1B));
+-                        write_number(static_cast<std::uint64_t>(j.m_value.number_integer));
+-                    }
+-                }
+-                else
+-                {
+-                    // The conversions below encode the sign in the first
+-                    // byte, and the value is converted to a positive number.
+-                    const auto positive_number = -1 - j.m_value.number_integer;
+-                    if (j.m_value.number_integer >= -24)
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0x20 + positive_number));
+-                    }
+-                    else if (positive_number <= (std::numeric_limits<std::uint8_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x38));
+-                        write_number(static_cast<std::uint8_t>(positive_number));
+-                    }
+-                    else if (positive_number <= (std::numeric_limits<std::uint16_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x39));
+-                        write_number(static_cast<std::uint16_t>(positive_number));
+-                    }
+-                    else if (positive_number <= (std::numeric_limits<std::uint32_t>::max)())
+-                    {
+-                        oa->write_character(to_char_type(0x3A));
+-                        write_number(static_cast<std::uint32_t>(positive_number));
+-                    }
+-                    else
+-                    {
+-                        oa->write_character(to_char_type(0x3B));
+-                        write_number(static_cast<std::uint64_t>(positive_number));
+-                    }
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                if (j.m_value.number_unsigned <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(j.m_value.number_unsigned));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x18));
+-                    write_number(static_cast<std::uint8_t>(j.m_value.number_unsigned));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x19));
+-                    write_number(static_cast<std::uint16_t>(j.m_value.number_unsigned));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x1A));
+-                    write_number(static_cast<std::uint32_t>(j.m_value.number_unsigned));
+-                }
+-                else
+-                {
+-                    oa->write_character(to_char_type(0x1B));
+-                    write_number(static_cast<std::uint64_t>(j.m_value.number_unsigned));
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                if (std::isnan(j.m_value.number_float))
+-                {
+-                    // NaN is 0xf97e00 in CBOR
+-                    oa->write_character(to_char_type(0xF9));
+-                    oa->write_character(to_char_type(0x7E));
+-                    oa->write_character(to_char_type(0x00));
+-                }
+-                else if (std::isinf(j.m_value.number_float))
+-                {
+-                    // Infinity is 0xf97c00, -Infinity is 0xf9fc00
+-                    oa->write_character(to_char_type(0xf9));
+-                    oa->write_character(j.m_value.number_float > 0 ? to_char_type(0x7C) : to_char_type(0xFC));
+-                    oa->write_character(to_char_type(0x00));
+-                }
+-                else
+-                {
+-                    write_compact_float(j.m_value.number_float, detail::input_format_t::cbor);
+-                }
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                // step 1: write control byte and the string length
+-                const auto N = j.m_value.string->size();
+-                if (N <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(0x60 + N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x78));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x79));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x7A));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-                // LCOV_EXCL_START
+-                else if (N <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x7B));
+-                    write_number(static_cast<std::uint64_t>(N));
+-                }
+-                // LCOV_EXCL_STOP
+-
+-                // step 2: write the string
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.string->c_str()),
+-                    j.m_value.string->size());
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                // step 1: write control byte and the array size
+-                const auto N = j.m_value.array->size();
+-                if (N <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(0x80 + N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x98));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x99));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x9A));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-                // LCOV_EXCL_START
+-                else if (N <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x9B));
+-                    write_number(static_cast<std::uint64_t>(N));
+-                }
+-                // LCOV_EXCL_STOP
+-
+-                // step 2: write each element
+-                for (const auto& el : *j.m_value.array)
+-                {
+-                    write_cbor(el);
+-                }
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                if (j.m_value.binary->has_subtype())
+-                {
+-                    if (j.m_value.binary->subtype() <= (std::numeric_limits<std::uint8_t>::max)())
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0xd8));
+-                        write_number(static_cast<std::uint8_t>(j.m_value.binary->subtype()));
+-                    }
+-                    else if (j.m_value.binary->subtype() <= (std::numeric_limits<std::uint16_t>::max)())
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0xd9));
+-                        write_number(static_cast<std::uint16_t>(j.m_value.binary->subtype()));
+-                    }
+-                    else if (j.m_value.binary->subtype() <= (std::numeric_limits<std::uint32_t>::max)())
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0xda));
+-                        write_number(static_cast<std::uint32_t>(j.m_value.binary->subtype()));
+-                    }
+-                    else if (j.m_value.binary->subtype() <= (std::numeric_limits<std::uint64_t>::max)())
+-                    {
+-                        write_number(static_cast<std::uint8_t>(0xdb));
+-                        write_number(static_cast<std::uint64_t>(j.m_value.binary->subtype()));
+-                    }
+-                }
+-
+-                // step 1: write control byte and the binary array size
+-                const auto N = j.m_value.binary->size();
+-                if (N <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(0x40 + N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x58));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x59));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x5A));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-                // LCOV_EXCL_START
+-                else if (N <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0x5B));
+-                    write_number(static_cast<std::uint64_t>(N));
+-                }
+-                // LCOV_EXCL_STOP
+-
+-                // step 2: write each element
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.binary->data()),
+-                    N);
+-
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                // step 1: write control byte and the object size
+-                const auto N = j.m_value.object->size();
+-                if (N <= 0x17)
+-                {
+-                    write_number(static_cast<std::uint8_t>(0xA0 + N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0xB8));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0xB9));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0xBA));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-                // LCOV_EXCL_START
+-                else if (N <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    oa->write_character(to_char_type(0xBB));
+-                    write_number(static_cast<std::uint64_t>(N));
+-                }
+-                // LCOV_EXCL_STOP
+-
+-                // step 2: write each element
+-                for (const auto& el : *j.m_value.object)
+-                {
+-                    write_cbor(el.first);
+-                    write_cbor(el.second);
+-                }
+-                break;
+-            }
+-
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-    }
+-
+-    /*!
+-    @param[in] j  JSON value to serialize
+-    */
+-    void write_msgpack(const BasicJsonType& j)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::null: // nil
+-            {
+-                oa->write_character(to_char_type(0xC0));
+-                break;
+-            }
+-
+-            case value_t::boolean: // true and false
+-            {
+-                oa->write_character(j.m_value.boolean
+-                                    ? to_char_type(0xC3)
+-                                    : to_char_type(0xC2));
+-                break;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                if (j.m_value.number_integer >= 0)
+-                {
+-                    // MessagePack does not differentiate between positive
+-                    // signed integers and unsigned integers. Therefore, we used
+-                    // the code from the value_t::number_unsigned case here.
+-                    if (j.m_value.number_unsigned < 128)
+-                    {
+-                        // positive fixnum
+-                        write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint8_t>::max)())
+-                    {
+-                        // uint 8
+-                        oa->write_character(to_char_type(0xCC));
+-                        write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint16_t>::max)())
+-                    {
+-                        // uint 16
+-                        oa->write_character(to_char_type(0xCD));
+-                        write_number(static_cast<std::uint16_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint32_t>::max)())
+-                    {
+-                        // uint 32
+-                        oa->write_character(to_char_type(0xCE));
+-                        write_number(static_cast<std::uint32_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint64_t>::max)())
+-                    {
+-                        // uint 64
+-                        oa->write_character(to_char_type(0xCF));
+-                        write_number(static_cast<std::uint64_t>(j.m_value.number_integer));
+-                    }
+-                }
+-                else
+-                {
+-                    if (j.m_value.number_integer >= -32)
+-                    {
+-                        // negative fixnum
+-                        write_number(static_cast<std::int8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer >= (std::numeric_limits<std::int8_t>::min)() &&
+-                             j.m_value.number_integer <= (std::numeric_limits<std::int8_t>::max)())
+-                    {
+-                        // int 8
+-                        oa->write_character(to_char_type(0xD0));
+-                        write_number(static_cast<std::int8_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer >= (std::numeric_limits<std::int16_t>::min)() &&
+-                             j.m_value.number_integer <= (std::numeric_limits<std::int16_t>::max)())
+-                    {
+-                        // int 16
+-                        oa->write_character(to_char_type(0xD1));
+-                        write_number(static_cast<std::int16_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer >= (std::numeric_limits<std::int32_t>::min)() &&
+-                             j.m_value.number_integer <= (std::numeric_limits<std::int32_t>::max)())
+-                    {
+-                        // int 32
+-                        oa->write_character(to_char_type(0xD2));
+-                        write_number(static_cast<std::int32_t>(j.m_value.number_integer));
+-                    }
+-                    else if (j.m_value.number_integer >= (std::numeric_limits<std::int64_t>::min)() &&
+-                             j.m_value.number_integer <= (std::numeric_limits<std::int64_t>::max)())
+-                    {
+-                        // int 64
+-                        oa->write_character(to_char_type(0xD3));
+-                        write_number(static_cast<std::int64_t>(j.m_value.number_integer));
+-                    }
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                if (j.m_value.number_unsigned < 128)
+-                {
+-                    // positive fixnum
+-                    write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    // uint 8
+-                    oa->write_character(to_char_type(0xCC));
+-                    write_number(static_cast<std::uint8_t>(j.m_value.number_integer));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    // uint 16
+-                    oa->write_character(to_char_type(0xCD));
+-                    write_number(static_cast<std::uint16_t>(j.m_value.number_integer));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    // uint 32
+-                    oa->write_character(to_char_type(0xCE));
+-                    write_number(static_cast<std::uint32_t>(j.m_value.number_integer));
+-                }
+-                else if (j.m_value.number_unsigned <= (std::numeric_limits<std::uint64_t>::max)())
+-                {
+-                    // uint 64
+-                    oa->write_character(to_char_type(0xCF));
+-                    write_number(static_cast<std::uint64_t>(j.m_value.number_integer));
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                write_compact_float(j.m_value.number_float, detail::input_format_t::msgpack);
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                // step 1: write control byte and the string length
+-                const auto N = j.m_value.string->size();
+-                if (N <= 31)
+-                {
+-                    // fixstr
+-                    write_number(static_cast<std::uint8_t>(0xA0 | N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    // str 8
+-                    oa->write_character(to_char_type(0xD9));
+-                    write_number(static_cast<std::uint8_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    // str 16
+-                    oa->write_character(to_char_type(0xDA));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    // str 32
+-                    oa->write_character(to_char_type(0xDB));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-
+-                // step 2: write the string
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.string->c_str()),
+-                    j.m_value.string->size());
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                // step 1: write control byte and the array size
+-                const auto N = j.m_value.array->size();
+-                if (N <= 15)
+-                {
+-                    // fixarray
+-                    write_number(static_cast<std::uint8_t>(0x90 | N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    // array 16
+-                    oa->write_character(to_char_type(0xDC));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    // array 32
+-                    oa->write_character(to_char_type(0xDD));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-
+-                // step 2: write each element
+-                for (const auto& el : *j.m_value.array)
+-                {
+-                    write_msgpack(el);
+-                }
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                // step 0: determine if the binary type has a set subtype to
+-                // determine whether or not to use the ext or fixext types
+-                const bool use_ext = j.m_value.binary->has_subtype();
+-
+-                // step 1: write control byte and the byte string length
+-                const auto N = j.m_value.binary->size();
+-                if (N <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    std::uint8_t output_type{};
+-                    bool fixed = true;
+-                    if (use_ext)
+-                    {
+-                        switch (N)
+-                        {
+-                            case 1:
+-                                output_type = 0xD4; // fixext 1
+-                                break;
+-                            case 2:
+-                                output_type = 0xD5; // fixext 2
+-                                break;
+-                            case 4:
+-                                output_type = 0xD6; // fixext 4
+-                                break;
+-                            case 8:
+-                                output_type = 0xD7; // fixext 8
+-                                break;
+-                            case 16:
+-                                output_type = 0xD8; // fixext 16
+-                                break;
+-                            default:
+-                                output_type = 0xC7; // ext 8
+-                                fixed = false;
+-                                break;
+-                        }
+-
+-                    }
+-                    else
+-                    {
+-                        output_type = 0xC4; // bin 8
+-                        fixed = false;
+-                    }
+-
+-                    oa->write_character(to_char_type(output_type));
+-                    if (!fixed)
+-                    {
+-                        write_number(static_cast<std::uint8_t>(N));
+-                    }
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    std::uint8_t output_type = use_ext
+-                                               ? 0xC8 // ext 16
+-                                               : 0xC5; // bin 16
+-
+-                    oa->write_character(to_char_type(output_type));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    std::uint8_t output_type = use_ext
+-                                               ? 0xC9 // ext 32
+-                                               : 0xC6; // bin 32
+-
+-                    oa->write_character(to_char_type(output_type));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-
+-                // step 1.5: if this is an ext type, write the subtype
+-                if (use_ext)
+-                {
+-                    write_number(static_cast<std::int8_t>(j.m_value.binary->subtype()));
+-                }
+-
+-                // step 2: write the byte string
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.binary->data()),
+-                    N);
+-
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                // step 1: write control byte and the object size
+-                const auto N = j.m_value.object->size();
+-                if (N <= 15)
+-                {
+-                    // fixmap
+-                    write_number(static_cast<std::uint8_t>(0x80 | (N & 0xF)));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint16_t>::max)())
+-                {
+-                    // map 16
+-                    oa->write_character(to_char_type(0xDE));
+-                    write_number(static_cast<std::uint16_t>(N));
+-                }
+-                else if (N <= (std::numeric_limits<std::uint32_t>::max)())
+-                {
+-                    // map 32
+-                    oa->write_character(to_char_type(0xDF));
+-                    write_number(static_cast<std::uint32_t>(N));
+-                }
+-
+-                // step 2: write each element
+-                for (const auto& el : *j.m_value.object)
+-                {
+-                    write_msgpack(el.first);
+-                    write_msgpack(el.second);
+-                }
+-                break;
+-            }
+-
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-    }
+-
+-    /*!
+-    @param[in] j  JSON value to serialize
+-    @param[in] use_count   whether to use '#' prefixes (optimized format)
+-    @param[in] use_type    whether to use '$' prefixes (optimized format)
+-    @param[in] add_prefix  whether prefixes need to be used for this value
+-    */
+-    void write_ubjson(const BasicJsonType& j, const bool use_count,
+-                      const bool use_type, const bool add_prefix = true)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::null:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('Z'));
+-                }
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(j.m_value.boolean
+-                                        ? to_char_type('T')
+-                                        : to_char_type('F'));
+-                }
+-                break;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                write_number_with_ubjson_prefix(j.m_value.number_integer, add_prefix);
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                write_number_with_ubjson_prefix(j.m_value.number_unsigned, add_prefix);
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                write_number_with_ubjson_prefix(j.m_value.number_float, add_prefix);
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('S'));
+-                }
+-                write_number_with_ubjson_prefix(j.m_value.string->size(), true);
+-                oa->write_characters(
+-                    reinterpret_cast<const CharType*>(j.m_value.string->c_str()),
+-                    j.m_value.string->size());
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('['));
+-                }
+-
+-                bool prefix_required = true;
+-                if (use_type && !j.m_value.array->empty())
+-                {
+-                    JSON_ASSERT(use_count);
+-                    const CharType first_prefix = ubjson_prefix(j.front());
+-                    const bool same_prefix = std::all_of(j.begin() + 1, j.end(),
+-                                                         [this, first_prefix](const BasicJsonType & v)
+-                    {
+-                        return ubjson_prefix(v) == first_prefix;
+-                    });
+-
+-                    if (same_prefix)
+-                    {
+-                        prefix_required = false;
+-                        oa->write_character(to_char_type('$'));
+-                        oa->write_character(first_prefix);
+-                    }
+-                }
+-
+-                if (use_count)
+-                {
+-                    oa->write_character(to_char_type('#'));
+-                    write_number_with_ubjson_prefix(j.m_value.array->size(), true);
+-                }
+-
+-                for (const auto& el : *j.m_value.array)
+-                {
+-                    write_ubjson(el, use_count, use_type, prefix_required);
+-                }
+-
+-                if (!use_count)
+-                {
+-                    oa->write_character(to_char_type(']'));
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('['));
+-                }
+-
+-                if (use_type && !j.m_value.binary->empty())
+-                {
+-                    JSON_ASSERT(use_count);
+-                    oa->write_character(to_char_type('$'));
+-                    oa->write_character('U');
+-                }
+-
+-                if (use_count)
+-                {
+-                    oa->write_character(to_char_type('#'));
+-                    write_number_with_ubjson_prefix(j.m_value.binary->size(), true);
+-                }
+-
+-                if (use_type)
+-                {
+-                    oa->write_characters(
+-                        reinterpret_cast<const CharType*>(j.m_value.binary->data()),
+-                        j.m_value.binary->size());
+-                }
+-                else
+-                {
+-                    for (size_t i = 0; i < j.m_value.binary->size(); ++i)
+-                    {
+-                        oa->write_character(to_char_type('U'));
+-                        oa->write_character(j.m_value.binary->data()[i]);
+-                    }
+-                }
+-
+-                if (!use_count)
+-                {
+-                    oa->write_character(to_char_type(']'));
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                if (add_prefix)
+-                {
+-                    oa->write_character(to_char_type('{'));
+-                }
+-
+-                bool prefix_required = true;
+-                if (use_type && !j.m_value.object->empty())
+-                {
+-                    JSON_ASSERT(use_count);
+-                    const CharType first_prefix = ubjson_prefix(j.front());
+-                    const bool same_prefix = std::all_of(j.begin(), j.end(),
+-                                                         [this, first_prefix](const BasicJsonType & v)
+-                    {
+-                        return ubjson_prefix(v) == first_prefix;
+-                    });
+-
+-                    if (same_prefix)
+-                    {
+-                        prefix_required = false;
+-                        oa->write_character(to_char_type('$'));
+-                        oa->write_character(first_prefix);
+-                    }
+-                }
+-
+-                if (use_count)
+-                {
+-                    oa->write_character(to_char_type('#'));
+-                    write_number_with_ubjson_prefix(j.m_value.object->size(), true);
+-                }
+-
+-                for (const auto& el : *j.m_value.object)
+-                {
+-                    write_number_with_ubjson_prefix(el.first.size(), true);
+-                    oa->write_characters(
+-                        reinterpret_cast<const CharType*>(el.first.c_str()),
+-                        el.first.size());
+-                    write_ubjson(el.second, use_count, use_type, prefix_required);
+-                }
+-
+-                if (!use_count)
+-                {
+-                    oa->write_character(to_char_type('}'));
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-    }
+-
+-  private:
+-    //////////
+-    // BSON //
+-    //////////
+-
+-    /*!
+-    @return The size of a BSON document entry header, including the id marker
+-            and the entry name size (and its null-terminator).
+-    */
+-    static std::size_t calc_bson_entry_header_size(const string_t& name, const BasicJsonType& j)
+-    {
+-        const auto it = name.find(static_cast<typename string_t::value_type>(0));
+-        if (JSON_HEDLEY_UNLIKELY(it != BasicJsonType::string_t::npos))
+-        {
+-            JSON_THROW(out_of_range::create(409, "BSON key cannot contain code point U+0000 (at byte " + std::to_string(it) + ")", j));
+-            static_cast<void>(j);
+-        }
+-
+-        return /*id*/ 1ul + name.size() + /*zero-terminator*/1u;
+-    }
+-
+-    /*!
+-    @brief Writes the given @a element_type and @a name to the output adapter
+-    */
+-    void write_bson_entry_header(const string_t& name,
+-                                 const std::uint8_t element_type)
+-    {
+-        oa->write_character(to_char_type(element_type)); // boolean
+-        oa->write_characters(
+-            reinterpret_cast<const CharType*>(name.c_str()),
+-            name.size() + 1u);
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and boolean value @a value
+-    */
+-    void write_bson_boolean(const string_t& name,
+-                            const bool value)
+-    {
+-        write_bson_entry_header(name, 0x08);
+-        oa->write_character(value ? to_char_type(0x01) : to_char_type(0x00));
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and double value @a value
+-    */
+-    void write_bson_double(const string_t& name,
+-                           const double value)
+-    {
+-        write_bson_entry_header(name, 0x01);
+-        write_number<double, true>(value);
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded string in @a value
+-    */
+-    static std::size_t calc_bson_string_size(const string_t& value)
+-    {
+-        return sizeof(std::int32_t) + value.size() + 1ul;
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and string value @a value
+-    */
+-    void write_bson_string(const string_t& name,
+-                           const string_t& value)
+-    {
+-        write_bson_entry_header(name, 0x02);
+-
+-        write_number<std::int32_t, true>(static_cast<std::int32_t>(value.size() + 1ul));
+-        oa->write_characters(
+-            reinterpret_cast<const CharType*>(value.c_str()),
+-            value.size() + 1);
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and null value
+-    */
+-    void write_bson_null(const string_t& name)
+-    {
+-        write_bson_entry_header(name, 0x0A);
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded integer @a value
+-    */
+-    static std::size_t calc_bson_integer_size(const std::int64_t value)
+-    {
+-        return (std::numeric_limits<std::int32_t>::min)() <= value && value <= (std::numeric_limits<std::int32_t>::max)()
+-               ? sizeof(std::int32_t)
+-               : sizeof(std::int64_t);
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and integer @a value
+-    */
+-    void write_bson_integer(const string_t& name,
+-                            const std::int64_t value)
+-    {
+-        if ((std::numeric_limits<std::int32_t>::min)() <= value && value <= (std::numeric_limits<std::int32_t>::max)())
+-        {
+-            write_bson_entry_header(name, 0x10); // int32
+-            write_number<std::int32_t, true>(static_cast<std::int32_t>(value));
+-        }
+-        else
+-        {
+-            write_bson_entry_header(name, 0x12); // int64
+-            write_number<std::int64_t, true>(static_cast<std::int64_t>(value));
+-        }
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded unsigned integer in @a j
+-    */
+-    static constexpr std::size_t calc_bson_unsigned_size(const std::uint64_t value) noexcept
+-    {
+-        return (value <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
+-               ? sizeof(std::int32_t)
+-               : sizeof(std::int64_t);
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and unsigned @a value
+-    */
+-    void write_bson_unsigned(const string_t& name,
+-                             const BasicJsonType& j)
+-    {
+-        if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
+-        {
+-            write_bson_entry_header(name, 0x10 /* int32 */);
+-            write_number<std::int32_t, true>(static_cast<std::int32_t>(j.m_value.number_unsigned));
+-        }
+-        else if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int64_t>::max)()))
+-        {
+-            write_bson_entry_header(name, 0x12 /* int64 */);
+-            write_number<std::int64_t, true>(static_cast<std::int64_t>(j.m_value.number_unsigned));
+-        }
+-        else
+-        {
+-            JSON_THROW(out_of_range::create(407, "integer number " + std::to_string(j.m_value.number_unsigned) + " cannot be represented by BSON as it does not fit int64", j));
+-        }
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and object @a value
+-    */
+-    void write_bson_object_entry(const string_t& name,
+-                                 const typename BasicJsonType::object_t& value)
+-    {
+-        write_bson_entry_header(name, 0x03); // object
+-        write_bson_object(value);
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded array @a value
+-    */
+-    static std::size_t calc_bson_array_size(const typename BasicJsonType::array_t& value)
+-    {
+-        std::size_t array_index = 0ul;
+-
+-        const std::size_t embedded_document_size = std::accumulate(std::begin(value), std::end(value), static_cast<std::size_t>(0), [&array_index](std::size_t result, const typename BasicJsonType::array_t::value_type & el)
+-        {
+-            return result + calc_bson_element_size(std::to_string(array_index++), el);
+-        });
+-
+-        return sizeof(std::int32_t) + embedded_document_size + 1ul;
+-    }
+-
+-    /*!
+-    @return The size of the BSON-encoded binary array @a value
+-    */
+-    static std::size_t calc_bson_binary_size(const typename BasicJsonType::binary_t& value)
+-    {
+-        return sizeof(std::int32_t) + value.size() + 1ul;
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and array @a value
+-    */
+-    void write_bson_array(const string_t& name,
+-                          const typename BasicJsonType::array_t& value)
+-    {
+-        write_bson_entry_header(name, 0x04); // array
+-        write_number<std::int32_t, true>(static_cast<std::int32_t>(calc_bson_array_size(value)));
+-
+-        std::size_t array_index = 0ul;
+-
+-        for (const auto& el : value)
+-        {
+-            write_bson_element(std::to_string(array_index++), el);
+-        }
+-
+-        oa->write_character(to_char_type(0x00));
+-    }
+-
+-    /*!
+-    @brief Writes a BSON element with key @a name and binary value @a value
+-    */
+-    void write_bson_binary(const string_t& name,
+-                           const binary_t& value)
+-    {
+-        write_bson_entry_header(name, 0x05);
+-
+-        write_number<std::int32_t, true>(static_cast<std::int32_t>(value.size()));
+-        write_number(value.has_subtype() ? static_cast<std::uint8_t>(value.subtype()) : static_cast<std::uint8_t>(0x00));
+-
+-        oa->write_characters(reinterpret_cast<const CharType*>(value.data()), value.size());
+-    }
+-
+-    /*!
+-    @brief Calculates the size necessary to serialize the JSON value @a j with its @a name
+-    @return The calculated size for the BSON document entry for @a j with the given @a name.
+-    */
+-    static std::size_t calc_bson_element_size(const string_t& name,
+-            const BasicJsonType& j)
+-    {
+-        const auto header_size = calc_bson_entry_header_size(name, j);
+-        switch (j.type())
+-        {
+-            case value_t::object:
+-                return header_size + calc_bson_object_size(*j.m_value.object);
+-
+-            case value_t::array:
+-                return header_size + calc_bson_array_size(*j.m_value.array);
+-
+-            case value_t::binary:
+-                return header_size + calc_bson_binary_size(*j.m_value.binary);
+-
+-            case value_t::boolean:
+-                return header_size + 1ul;
+-
+-            case value_t::number_float:
+-                return header_size + 8ul;
+-
+-            case value_t::number_integer:
+-                return header_size + calc_bson_integer_size(j.m_value.number_integer);
+-
+-            case value_t::number_unsigned:
+-                return header_size + calc_bson_unsigned_size(j.m_value.number_unsigned);
+-
+-            case value_t::string:
+-                return header_size + calc_bson_string_size(*j.m_value.string);
+-
+-            case value_t::null:
+-                return header_size + 0ul;
+-
+-            // LCOV_EXCL_START
+-            case value_t::discarded:
+-            default:
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert)
+-                return 0ul;
+-                // LCOV_EXCL_STOP
+-        }
+-    }
+-
+-    /*!
+-    @brief Serializes the JSON value @a j to BSON and associates it with the
+-           key @a name.
+-    @param name The name to associate with the JSON entity @a j within the
+-                current BSON document
+-    */
+-    void write_bson_element(const string_t& name,
+-                            const BasicJsonType& j)
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::object:
+-                return write_bson_object_entry(name, *j.m_value.object);
+-
+-            case value_t::array:
+-                return write_bson_array(name, *j.m_value.array);
+-
+-            case value_t::binary:
+-                return write_bson_binary(name, *j.m_value.binary);
+-
+-            case value_t::boolean:
+-                return write_bson_boolean(name, j.m_value.boolean);
+-
+-            case value_t::number_float:
+-                return write_bson_double(name, j.m_value.number_float);
+-
+-            case value_t::number_integer:
+-                return write_bson_integer(name, j.m_value.number_integer);
+-
+-            case value_t::number_unsigned:
+-                return write_bson_unsigned(name, j);
+-
+-            case value_t::string:
+-                return write_bson_string(name, *j.m_value.string);
+-
+-            case value_t::null:
+-                return write_bson_null(name);
+-
+-            // LCOV_EXCL_START
+-            case value_t::discarded:
+-            default:
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert)
+-                return;
+-                // LCOV_EXCL_STOP
+-        }
+-    }
+-
+-    /*!
+-    @brief Calculates the size of the BSON serialization of the given
+-           JSON-object @a j.
+-    @param[in] value  JSON value to serialize
+-    @pre       value.type() == value_t::object
+-    */
+-    static std::size_t calc_bson_object_size(const typename BasicJsonType::object_t& value)
+-    {
+-        std::size_t document_size = std::accumulate(value.begin(), value.end(), static_cast<std::size_t>(0),
+-                                    [](size_t result, const typename BasicJsonType::object_t::value_type & el)
+-        {
+-            return result += calc_bson_element_size(el.first, el.second);
+-        });
+-
+-        return sizeof(std::int32_t) + document_size + 1ul;
+-    }
+-
+-    /*!
+-    @param[in] value  JSON value to serialize
+-    @pre       value.type() == value_t::object
+-    */
+-    void write_bson_object(const typename BasicJsonType::object_t& value)
+-    {
+-        write_number<std::int32_t, true>(static_cast<std::int32_t>(calc_bson_object_size(value)));
+-
+-        for (const auto& el : value)
+-        {
+-            write_bson_element(el.first, el.second);
+-        }
+-
+-        oa->write_character(to_char_type(0x00));
+-    }
+-
+-    //////////
+-    // CBOR //
+-    //////////
+-
+-    static constexpr CharType get_cbor_float_prefix(float /*unused*/)
+-    {
+-        return to_char_type(0xFA);  // Single-Precision Float
+-    }
+-
+-    static constexpr CharType get_cbor_float_prefix(double /*unused*/)
+-    {
+-        return to_char_type(0xFB);  // Double-Precision Float
+-    }
+-
+-    /////////////
+-    // MsgPack //
+-    /////////////
+-
+-    static constexpr CharType get_msgpack_float_prefix(float /*unused*/)
+-    {
+-        return to_char_type(0xCA);  // float 32
+-    }
+-
+-    static constexpr CharType get_msgpack_float_prefix(double /*unused*/)
+-    {
+-        return to_char_type(0xCB);  // float 64
+-    }
+-
+-    ////////////
+-    // UBJSON //
+-    ////////////
+-
+-    // UBJSON: write number (floating point)
+-    template<typename NumberType, typename std::enable_if<
+-                 std::is_floating_point<NumberType>::value, int>::type = 0>
+-    void write_number_with_ubjson_prefix(const NumberType n,
+-                                         const bool add_prefix)
+-    {
+-        if (add_prefix)
+-        {
+-            oa->write_character(get_ubjson_float_prefix(n));
+-        }
+-        write_number(n);
+-    }
+-
+-    // UBJSON: write number (unsigned integer)
+-    template<typename NumberType, typename std::enable_if<
+-                 std::is_unsigned<NumberType>::value, int>::type = 0>
+-    void write_number_with_ubjson_prefix(const NumberType n,
+-                                         const bool add_prefix)
+-    {
+-        if (n <= static_cast<std::uint64_t>((std::numeric_limits<std::int8_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('i'));  // int8
+-            }
+-            write_number(static_cast<std::uint8_t>(n));
+-        }
+-        else if (n <= (std::numeric_limits<std::uint8_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('U'));  // uint8
+-            }
+-            write_number(static_cast<std::uint8_t>(n));
+-        }
+-        else if (n <= static_cast<std::uint64_t>((std::numeric_limits<std::int16_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('I'));  // int16
+-            }
+-            write_number(static_cast<std::int16_t>(n));
+-        }
+-        else if (n <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('l'));  // int32
+-            }
+-            write_number(static_cast<std::int32_t>(n));
+-        }
+-        else if (n <= static_cast<std::uint64_t>((std::numeric_limits<std::int64_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('L'));  // int64
+-            }
+-            write_number(static_cast<std::int64_t>(n));
+-        }
+-        else
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('H'));  // high-precision number
+-            }
+-
+-            const auto number = BasicJsonType(n).dump();
+-            write_number_with_ubjson_prefix(number.size(), true);
+-            for (std::size_t i = 0; i < number.size(); ++i)
+-            {
+-                oa->write_character(to_char_type(static_cast<std::uint8_t>(number[i])));
+-            }
+-        }
+-    }
+-
+-    // UBJSON: write number (signed integer)
+-    template < typename NumberType, typename std::enable_if <
+-                   std::is_signed<NumberType>::value&&
+-                   !std::is_floating_point<NumberType>::value, int >::type = 0 >
+-    void write_number_with_ubjson_prefix(const NumberType n,
+-                                         const bool add_prefix)
+-    {
+-        if ((std::numeric_limits<std::int8_t>::min)() <= n && n <= (std::numeric_limits<std::int8_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('i'));  // int8
+-            }
+-            write_number(static_cast<std::int8_t>(n));
+-        }
+-        else if (static_cast<std::int64_t>((std::numeric_limits<std::uint8_t>::min)()) <= n && n <= static_cast<std::int64_t>((std::numeric_limits<std::uint8_t>::max)()))
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('U'));  // uint8
+-            }
+-            write_number(static_cast<std::uint8_t>(n));
+-        }
+-        else if ((std::numeric_limits<std::int16_t>::min)() <= n && n <= (std::numeric_limits<std::int16_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('I'));  // int16
+-            }
+-            write_number(static_cast<std::int16_t>(n));
+-        }
+-        else if ((std::numeric_limits<std::int32_t>::min)() <= n && n <= (std::numeric_limits<std::int32_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('l'));  // int32
+-            }
+-            write_number(static_cast<std::int32_t>(n));
+-        }
+-        else if ((std::numeric_limits<std::int64_t>::min)() <= n && n <= (std::numeric_limits<std::int64_t>::max)())
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('L'));  // int64
+-            }
+-            write_number(static_cast<std::int64_t>(n));
+-        }
+-        // LCOV_EXCL_START
+-        else
+-        {
+-            if (add_prefix)
+-            {
+-                oa->write_character(to_char_type('H'));  // high-precision number
+-            }
+-
+-            const auto number = BasicJsonType(n).dump();
+-            write_number_with_ubjson_prefix(number.size(), true);
+-            for (std::size_t i = 0; i < number.size(); ++i)
+-            {
+-                oa->write_character(to_char_type(static_cast<std::uint8_t>(number[i])));
+-            }
+-        }
+-        // LCOV_EXCL_STOP
+-    }
+-
+-    /*!
+-    @brief determine the type prefix of container values
+-    */
+-    CharType ubjson_prefix(const BasicJsonType& j) const noexcept
+-    {
+-        switch (j.type())
+-        {
+-            case value_t::null:
+-                return 'Z';
+-
+-            case value_t::boolean:
+-                return j.m_value.boolean ? 'T' : 'F';
+-
+-            case value_t::number_integer:
+-            {
+-                if ((std::numeric_limits<std::int8_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::int8_t>::max)())
+-                {
+-                    return 'i';
+-                }
+-                if ((std::numeric_limits<std::uint8_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::uint8_t>::max)())
+-                {
+-                    return 'U';
+-                }
+-                if ((std::numeric_limits<std::int16_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::int16_t>::max)())
+-                {
+-                    return 'I';
+-                }
+-                if ((std::numeric_limits<std::int32_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::int32_t>::max)())
+-                {
+-                    return 'l';
+-                }
+-                if ((std::numeric_limits<std::int64_t>::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits<std::int64_t>::max)())
+-                {
+-                    return 'L';
+-                }
+-                // anything else is treated as high-precision number
+-                return 'H'; // LCOV_EXCL_LINE
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int8_t>::max)()))
+-                {
+-                    return 'i';
+-                }
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::uint8_t>::max)()))
+-                {
+-                    return 'U';
+-                }
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int16_t>::max)()))
+-                {
+-                    return 'I';
+-                }
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
+-                {
+-                    return 'l';
+-                }
+-                if (j.m_value.number_unsigned <= static_cast<std::uint64_t>((std::numeric_limits<std::int64_t>::max)()))
+-                {
+-                    return 'L';
+-                }
+-                // anything else is treated as high-precision number
+-                return 'H'; // LCOV_EXCL_LINE
+-            }
+-
+-            case value_t::number_float:
+-                return get_ubjson_float_prefix(j.m_value.number_float);
+-
+-            case value_t::string:
+-                return 'S';
+-
+-            case value_t::array: // fallthrough
+-            case value_t::binary:
+-                return '[';
+-
+-            case value_t::object:
+-                return '{';
+-
+-            case value_t::discarded:
+-            default:  // discarded values
+-                return 'N';
+-        }
+-    }
+-
+-    static constexpr CharType get_ubjson_float_prefix(float /*unused*/)
+-    {
+-        return 'd';  // float 32
+-    }
+-
+-    static constexpr CharType get_ubjson_float_prefix(double /*unused*/)
+-    {
+-        return 'D';  // float 64
+-    }
+-
+-    ///////////////////////
+-    // Utility functions //
+-    ///////////////////////
+-
+-    /*
+-    @brief write a number to output input
+-    @param[in] n number of type @a NumberType
+-    @tparam NumberType the type of the number
+-    @tparam OutputIsLittleEndian Set to true if output data is
+-                                 required to be little endian
+-
+-    @note This function needs to respect the system's endianness, because bytes
+-          in CBOR, MessagePack, and UBJSON are stored in network order (big
+-          endian) and therefore need reordering on little endian systems.
+-    */
+-    template<typename NumberType, bool OutputIsLittleEndian = false>
+-    void write_number(const NumberType n)
+-    {
+-        // step 1: write number to array of length NumberType
+-        std::array<CharType, sizeof(NumberType)> vec{};
+-        std::memcpy(vec.data(), &n, sizeof(NumberType));
+-
+-        // step 2: write array to output (with possible reordering)
+-        if (is_little_endian != OutputIsLittleEndian)
+-        {
+-            // reverse byte order prior to conversion if necessary
+-            std::reverse(vec.begin(), vec.end());
+-        }
+-
+-        oa->write_characters(vec.data(), sizeof(NumberType));
+-    }
+-
+-    void write_compact_float(const number_float_t n, detail::input_format_t format)
+-    {
+-#ifdef __GNUC__
+-#pragma GCC diagnostic push
+-#pragma GCC diagnostic ignored "-Wfloat-equal"
+-#endif
+-        if (static_cast<double>(n) >= static_cast<double>(std::numeric_limits<float>::lowest()) &&
+-                static_cast<double>(n) <= static_cast<double>((std::numeric_limits<float>::max)()) &&
+-                static_cast<double>(static_cast<float>(n)) == static_cast<double>(n))
+-        {
+-            oa->write_character(format == detail::input_format_t::cbor
+-                                ? get_cbor_float_prefix(static_cast<float>(n))
+-                                : get_msgpack_float_prefix(static_cast<float>(n)));
+-            write_number(static_cast<float>(n));
+-        }
+-        else
+-        {
+-            oa->write_character(format == detail::input_format_t::cbor
+-                                ? get_cbor_float_prefix(n)
+-                                : get_msgpack_float_prefix(n));
+-            write_number(n);
+-        }
+-#ifdef __GNUC__
+-#pragma GCC diagnostic pop
+-#endif
+-    }
+-
+-  public:
+-    // The following to_char_type functions are implement the conversion
+-    // between uint8_t and CharType. In case CharType is not unsigned,
+-    // such a conversion is required to allow values greater than 128.
+-    // See <https://github.com/nlohmann/json/issues/1286> for a discussion.
+-    template < typename C = CharType,
+-               enable_if_t < std::is_signed<C>::value && std::is_signed<char>::value > * = nullptr >
+-    static constexpr CharType to_char_type(std::uint8_t x) noexcept
+-    {
+-        return *reinterpret_cast<char*>(&x);
+-    }
+-
+-    template < typename C = CharType,
+-               enable_if_t < std::is_signed<C>::value && std::is_unsigned<char>::value > * = nullptr >
+-    static CharType to_char_type(std::uint8_t x) noexcept
+-    {
+-        static_assert(sizeof(std::uint8_t) == sizeof(CharType), "size of CharType must be equal to std::uint8_t");
+-        static_assert(std::is_trivial<CharType>::value, "CharType must be trivial");
+-        CharType result;
+-        std::memcpy(&result, &x, sizeof(x));
+-        return result;
+-    }
+-
+-    template<typename C = CharType,
+-             enable_if_t<std::is_unsigned<C>::value>* = nullptr>
+-    static constexpr CharType to_char_type(std::uint8_t x) noexcept
+-    {
+-        return x;
+-    }
+-
+-    template < typename InputCharType, typename C = CharType,
+-               enable_if_t <
+-                   std::is_signed<C>::value &&
+-                   std::is_signed<char>::value &&
+-                   std::is_same<char, typename std::remove_cv<InputCharType>::type>::value
+-                   > * = nullptr >
+-    static constexpr CharType to_char_type(InputCharType x) noexcept
+-    {
+-        return x;
+-    }
+-
+-  private:
+-    /// whether we can assume little endianness
+-    const bool is_little_endian = little_endianness();
+-
+-    /// the output
+-    output_adapter_t<CharType> oa = nullptr;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/output/output_adapters.hpp>
+-
+-// #include <nlohmann/detail/output/serializer.hpp>
+-
+-
+-#include <algorithm> // reverse, remove, fill, find, none_of
+-#include <array> // array
+-#include <clocale> // localeconv, lconv
+-#include <cmath> // labs, isfinite, isnan, signbit
+-#include <cstddef> // size_t, ptrdiff_t
+-#include <cstdint> // uint8_t
+-#include <cstdio> // snprintf
+-#include <limits> // numeric_limits
+-#include <string> // string, char_traits
+-#include <iomanip> // setfill, setw
+-#include <sstream> // stringstream
+-#include <type_traits> // is_same
+-#include <utility> // move
+-
+-// #include <nlohmann/detail/conversions/to_chars.hpp>
+-
+-
+-#include <array> // array
+-#include <cmath>   // signbit, isfinite
+-#include <cstdint> // intN_t, uintN_t
+-#include <cstring> // memcpy, memmove
+-#include <limits> // numeric_limits
+-#include <type_traits> // conditional
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-
+-/*!
+-@brief implements the Grisu2 algorithm for binary to decimal floating-point
+-conversion.
+-
+-This implementation is a slightly modified version of the reference
+-implementation which may be obtained from
+-http://florian.loitsch.com/publications (bench.tar.gz).
+-
+-The code is distributed under the MIT license, Copyright (c) 2009 Florian Loitsch.
+-
+-For a detailed description of the algorithm see:
+-
+-[1] Loitsch, "Printing Floating-Point Numbers Quickly and Accurately with
+-    Integers", Proceedings of the ACM SIGPLAN 2010 Conference on Programming
+-    Language Design and Implementation, PLDI 2010
+-[2] Burger, Dybvig, "Printing Floating-Point Numbers Quickly and Accurately",
+-    Proceedings of the ACM SIGPLAN 1996 Conference on Programming Language
+-    Design and Implementation, PLDI 1996
+-*/
+-namespace dtoa_impl
+-{
+-
+-template<typename Target, typename Source>
+-Target reinterpret_bits(const Source source)
+-{
+-    static_assert(sizeof(Target) == sizeof(Source), "size mismatch");
+-
+-    Target target;
+-    std::memcpy(&target, &source, sizeof(Source));
+-    return target;
+-}
+-
+-struct diyfp // f * 2^e
+-{
+-    static constexpr int kPrecision = 64; // = q
+-
+-    std::uint64_t f = 0;
+-    int e = 0;
+-
+-    constexpr diyfp(std::uint64_t f_, int e_) noexcept : f(f_), e(e_) {}
+-
+-    /*!
+-    @brief returns x - y
+-    @pre x.e == y.e and x.f >= y.f
+-    */
+-    static diyfp sub(const diyfp& x, const diyfp& y) noexcept
+-    {
+-        JSON_ASSERT(x.e == y.e);
+-        JSON_ASSERT(x.f >= y.f);
+-
+-        return {x.f - y.f, x.e};
+-    }
+-
+-    /*!
+-    @brief returns x * y
+-    @note The result is rounded. (Only the upper q bits are returned.)
+-    */
+-    static diyfp mul(const diyfp& x, const diyfp& y) noexcept
+-    {
+-        static_assert(kPrecision == 64, "internal error");
+-
+-        // Computes:
+-        //  f = round((x.f * y.f) / 2^q)
+-        //  e = x.e + y.e + q
+-
+-        // Emulate the 64-bit * 64-bit multiplication:
+-        //
+-        // p = u * v
+-        //   = (u_lo + 2^32 u_hi) (v_lo + 2^32 v_hi)
+-        //   = (u_lo v_lo         ) + 2^32 ((u_lo v_hi         ) + (u_hi v_lo         )) + 2^64 (u_hi v_hi         )
+-        //   = (p0                ) + 2^32 ((p1                ) + (p2                )) + 2^64 (p3                )
+-        //   = (p0_lo + 2^32 p0_hi) + 2^32 ((p1_lo + 2^32 p1_hi) + (p2_lo + 2^32 p2_hi)) + 2^64 (p3                )
+-        //   = (p0_lo             ) + 2^32 (p0_hi + p1_lo + p2_lo                      ) + 2^64 (p1_hi + p2_hi + p3)
+-        //   = (p0_lo             ) + 2^32 (Q                                          ) + 2^64 (H                 )
+-        //   = (p0_lo             ) + 2^32 (Q_lo + 2^32 Q_hi                           ) + 2^64 (H                 )
+-        //
+-        // (Since Q might be larger than 2^32 - 1)
+-        //
+-        //   = (p0_lo + 2^32 Q_lo) + 2^64 (Q_hi + H)
+-        //
+-        // (Q_hi + H does not overflow a 64-bit int)
+-        //
+-        //   = p_lo + 2^64 p_hi
+-
+-        const std::uint64_t u_lo = x.f & 0xFFFFFFFFu;
+-        const std::uint64_t u_hi = x.f >> 32u;
+-        const std::uint64_t v_lo = y.f & 0xFFFFFFFFu;
+-        const std::uint64_t v_hi = y.f >> 32u;
+-
+-        const std::uint64_t p0 = u_lo * v_lo;
+-        const std::uint64_t p1 = u_lo * v_hi;
+-        const std::uint64_t p2 = u_hi * v_lo;
+-        const std::uint64_t p3 = u_hi * v_hi;
+-
+-        const std::uint64_t p0_hi = p0 >> 32u;
+-        const std::uint64_t p1_lo = p1 & 0xFFFFFFFFu;
+-        const std::uint64_t p1_hi = p1 >> 32u;
+-        const std::uint64_t p2_lo = p2 & 0xFFFFFFFFu;
+-        const std::uint64_t p2_hi = p2 >> 32u;
+-
+-        std::uint64_t Q = p0_hi + p1_lo + p2_lo;
+-
+-        // The full product might now be computed as
+-        //
+-        // p_hi = p3 + p2_hi + p1_hi + (Q >> 32)
+-        // p_lo = p0_lo + (Q << 32)
+-        //
+-        // But in this particular case here, the full p_lo is not required.
+-        // Effectively we only need to add the highest bit in p_lo to p_hi (and
+-        // Q_hi + 1 does not overflow).
+-
+-        Q += std::uint64_t{1} << (64u - 32u - 1u); // round, ties up
+-
+-        const std::uint64_t h = p3 + p2_hi + p1_hi + (Q >> 32u);
+-
+-        return {h, x.e + y.e + 64};
+-    }
+-
+-    /*!
+-    @brief normalize x such that the significand is >= 2^(q-1)
+-    @pre x.f != 0
+-    */
+-    static diyfp normalize(diyfp x) noexcept
+-    {
+-        JSON_ASSERT(x.f != 0);
+-
+-        while ((x.f >> 63u) == 0)
+-        {
+-            x.f <<= 1u;
+-            x.e--;
+-        }
+-
+-        return x;
+-    }
+-
+-    /*!
+-    @brief normalize x such that the result has the exponent E
+-    @pre e >= x.e and the upper e - x.e bits of x.f must be zero.
+-    */
+-    static diyfp normalize_to(const diyfp& x, const int target_exponent) noexcept
+-    {
+-        const int delta = x.e - target_exponent;
+-
+-        JSON_ASSERT(delta >= 0);
+-        JSON_ASSERT(((x.f << delta) >> delta) == x.f);
+-
+-        return {x.f << delta, target_exponent};
+-    }
+-};
+-
+-struct boundaries
+-{
+-    diyfp w;
+-    diyfp minus;
+-    diyfp plus;
+-};
+-
+-/*!
+-Compute the (normalized) diyfp representing the input number 'value' and its
+-boundaries.
+-
+-@pre value must be finite and positive
+-*/
+-template<typename FloatType>
+-boundaries compute_boundaries(FloatType value)
+-{
+-    JSON_ASSERT(std::isfinite(value));
+-    JSON_ASSERT(value > 0);
+-
+-    // Convert the IEEE representation into a diyfp.
+-    //
+-    // If v is denormal:
+-    //      value = 0.F * 2^(1 - bias) = (          F) * 2^(1 - bias - (p-1))
+-    // If v is normalized:
+-    //      value = 1.F * 2^(E - bias) = (2^(p-1) + F) * 2^(E - bias - (p-1))
+-
+-    static_assert(std::numeric_limits<FloatType>::is_iec559,
+-                  "internal error: dtoa_short requires an IEEE-754 floating-point implementation");
+-
+-    constexpr int      kPrecision = std::numeric_limits<FloatType>::digits; // = p (includes the hidden bit)
+-    constexpr int      kBias      = std::numeric_limits<FloatType>::max_exponent - 1 + (kPrecision - 1);
+-    constexpr int      kMinExp    = 1 - kBias;
+-    constexpr std::uint64_t kHiddenBit = std::uint64_t{1} << (kPrecision - 1); // = 2^(p-1)
+-
+-    using bits_type = typename std::conditional<kPrecision == 24, std::uint32_t, std::uint64_t >::type;
+-
+-    const auto bits = static_cast<std::uint64_t>(reinterpret_bits<bits_type>(value));
+-    const std::uint64_t E = bits >> (kPrecision - 1);
+-    const std::uint64_t F = bits & (kHiddenBit - 1);
+-
+-    const bool is_denormal = E == 0;
+-    const diyfp v = is_denormal
+-                    ? diyfp(F, kMinExp)
+-                    : diyfp(F + kHiddenBit, static_cast<int>(E) - kBias);
+-
+-    // Compute the boundaries m- and m+ of the floating-point value
+-    // v = f * 2^e.
+-    //
+-    // Determine v- and v+, the floating-point predecessor and successor if v,
+-    // respectively.
+-    //
+-    //      v- = v - 2^e        if f != 2^(p-1) or e == e_min                (A)
+-    //         = v - 2^(e-1)    if f == 2^(p-1) and e > e_min                (B)
+-    //
+-    //      v+ = v + 2^e
+-    //
+-    // Let m- = (v- + v) / 2 and m+ = (v + v+) / 2. All real numbers _strictly_
+-    // between m- and m+ round to v, regardless of how the input rounding
+-    // algorithm breaks ties.
+-    //
+-    //      ---+-------------+-------------+-------------+-------------+---  (A)
+-    //         v-            m-            v             m+            v+
+-    //
+-    //      -----------------+------+------+-------------+-------------+---  (B)
+-    //                       v-     m-     v             m+            v+
+-
+-    const bool lower_boundary_is_closer = F == 0 && E > 1;
+-    const diyfp m_plus = diyfp(2 * v.f + 1, v.e - 1);
+-    const diyfp m_minus = lower_boundary_is_closer
+-                          ? diyfp(4 * v.f - 1, v.e - 2)  // (B)
+-                          : diyfp(2 * v.f - 1, v.e - 1); // (A)
+-
+-    // Determine the normalized w+ = m+.
+-    const diyfp w_plus = diyfp::normalize(m_plus);
+-
+-    // Determine w- = m- such that e_(w-) = e_(w+).
+-    const diyfp w_minus = diyfp::normalize_to(m_minus, w_plus.e);
+-
+-    return {diyfp::normalize(v), w_minus, w_plus};
+-}
+-
+-// Given normalized diyfp w, Grisu needs to find a (normalized) cached
+-// power-of-ten c, such that the exponent of the product c * w = f * 2^e lies
+-// within a certain range [alpha, gamma] (Definition 3.2 from [1])
+-//
+-//      alpha <= e = e_c + e_w + q <= gamma
+-//
+-// or
+-//
+-//      f_c * f_w * 2^alpha <= f_c 2^(e_c) * f_w 2^(e_w) * 2^q
+-//                          <= f_c * f_w * 2^gamma
+-//
+-// Since c and w are normalized, i.e. 2^(q-1) <= f < 2^q, this implies
+-//
+-//      2^(q-1) * 2^(q-1) * 2^alpha <= c * w * 2^q < 2^q * 2^q * 2^gamma
+-//
+-// or
+-//
+-//      2^(q - 2 + alpha) <= c * w < 2^(q + gamma)
+-//
+-// The choice of (alpha,gamma) determines the size of the table and the form of
+-// the digit generation procedure. Using (alpha,gamma)=(-60,-32) works out well
+-// in practice:
+-//
+-// The idea is to cut the number c * w = f * 2^e into two parts, which can be
+-// processed independently: An integral part p1, and a fractional part p2:
+-//
+-//      f * 2^e = ( (f div 2^-e) * 2^-e + (f mod 2^-e) ) * 2^e
+-//              = (f div 2^-e) + (f mod 2^-e) * 2^e
+-//              = p1 + p2 * 2^e
+-//
+-// The conversion of p1 into decimal form requires a series of divisions and
+-// modulos by (a power of) 10. These operations are faster for 32-bit than for
+-// 64-bit integers, so p1 should ideally fit into a 32-bit integer. This can be
+-// achieved by choosing
+-//
+-//      -e >= 32   or   e <= -32 := gamma
+-//
+-// In order to convert the fractional part
+-//
+-//      p2 * 2^e = p2 / 2^-e = d[-1] / 10^1 + d[-2] / 10^2 + ...
+-//
+-// into decimal form, the fraction is repeatedly multiplied by 10 and the digits
+-// d[-i] are extracted in order:
+-//
+-//      (10 * p2) div 2^-e = d[-1]
+-//      (10 * p2) mod 2^-e = d[-2] / 10^1 + ...
+-//
+-// The multiplication by 10 must not overflow. It is sufficient to choose
+-//
+-//      10 * p2 < 16 * p2 = 2^4 * p2 <= 2^64.
+-//
+-// Since p2 = f mod 2^-e < 2^-e,
+-//
+-//      -e <= 60   or   e >= -60 := alpha
+-
+-constexpr int kAlpha = -60;
+-constexpr int kGamma = -32;
+-
+-struct cached_power // c = f * 2^e ~= 10^k
+-{
+-    std::uint64_t f;
+-    int e;
+-    int k;
+-};
+-
+-/*!
+-For a normalized diyfp w = f * 2^e, this function returns a (normalized) cached
+-power-of-ten c = f_c * 2^e_c, such that the exponent of the product w * c
+-satisfies (Definition 3.2 from [1])
+-
+-     alpha <= e_c + e + q <= gamma.
+-*/
+-inline cached_power get_cached_power_for_binary_exponent(int e)
+-{
+-    // Now
+-    //
+-    //      alpha <= e_c + e + q <= gamma                                    (1)
+-    //      ==> f_c * 2^alpha <= c * 2^e * 2^q
+-    //
+-    // and since the c's are normalized, 2^(q-1) <= f_c,
+-    //
+-    //      ==> 2^(q - 1 + alpha) <= c * 2^(e + q)
+-    //      ==> 2^(alpha - e - 1) <= c
+-    //
+-    // If c were an exact power of ten, i.e. c = 10^k, one may determine k as
+-    //
+-    //      k = ceil( log_10( 2^(alpha - e - 1) ) )
+-    //        = ceil( (alpha - e - 1) * log_10(2) )
+-    //
+-    // From the paper:
+-    // "In theory the result of the procedure could be wrong since c is rounded,
+-    //  and the computation itself is approximated [...]. In practice, however,
+-    //  this simple function is sufficient."
+-    //
+-    // For IEEE double precision floating-point numbers converted into
+-    // normalized diyfp's w = f * 2^e, with q = 64,
+-    //
+-    //      e >= -1022      (min IEEE exponent)
+-    //           -52        (p - 1)
+-    //           -52        (p - 1, possibly normalize denormal IEEE numbers)
+-    //           -11        (normalize the diyfp)
+-    //         = -1137
+-    //
+-    // and
+-    //
+-    //      e <= +1023      (max IEEE exponent)
+-    //           -52        (p - 1)
+-    //           -11        (normalize the diyfp)
+-    //         = 960
+-    //
+-    // This binary exponent range [-1137,960] results in a decimal exponent
+-    // range [-307,324]. One does not need to store a cached power for each
+-    // k in this range. For each such k it suffices to find a cached power
+-    // such that the exponent of the product lies in [alpha,gamma].
+-    // This implies that the difference of the decimal exponents of adjacent
+-    // table entries must be less than or equal to
+-    //
+-    //      floor( (gamma - alpha) * log_10(2) ) = 8.
+-    //
+-    // (A smaller distance gamma-alpha would require a larger table.)
+-
+-    // NB:
+-    // Actually this function returns c, such that -60 <= e_c + e + 64 <= -34.
+-
+-    constexpr int kCachedPowersMinDecExp = -300;
+-    constexpr int kCachedPowersDecStep = 8;
+-
+-    static constexpr std::array<cached_power, 79> kCachedPowers =
+-    {
+-        {
+-            { 0xAB70FE17C79AC6CA, -1060, -300 },
+-            { 0xFF77B1FCBEBCDC4F, -1034, -292 },
+-            { 0xBE5691EF416BD60C, -1007, -284 },
+-            { 0x8DD01FAD907FFC3C,  -980, -276 },
+-            { 0xD3515C2831559A83,  -954, -268 },
+-            { 0x9D71AC8FADA6C9B5,  -927, -260 },
+-            { 0xEA9C227723EE8BCB,  -901, -252 },
+-            { 0xAECC49914078536D,  -874, -244 },
+-            { 0x823C12795DB6CE57,  -847, -236 },
+-            { 0xC21094364DFB5637,  -821, -228 },
+-            { 0x9096EA6F3848984F,  -794, -220 },
+-            { 0xD77485CB25823AC7,  -768, -212 },
+-            { 0xA086CFCD97BF97F4,  -741, -204 },
+-            { 0xEF340A98172AACE5,  -715, -196 },
+-            { 0xB23867FB2A35B28E,  -688, -188 },
+-            { 0x84C8D4DFD2C63F3B,  -661, -180 },
+-            { 0xC5DD44271AD3CDBA,  -635, -172 },
+-            { 0x936B9FCEBB25C996,  -608, -164 },
+-            { 0xDBAC6C247D62A584,  -582, -156 },
+-            { 0xA3AB66580D5FDAF6,  -555, -148 },
+-            { 0xF3E2F893DEC3F126,  -529, -140 },
+-            { 0xB5B5ADA8AAFF80B8,  -502, -132 },
+-            { 0x87625F056C7C4A8B,  -475, -124 },
+-            { 0xC9BCFF6034C13053,  -449, -116 },
+-            { 0x964E858C91BA2655,  -422, -108 },
+-            { 0xDFF9772470297EBD,  -396, -100 },
+-            { 0xA6DFBD9FB8E5B88F,  -369,  -92 },
+-            { 0xF8A95FCF88747D94,  -343,  -84 },
+-            { 0xB94470938FA89BCF,  -316,  -76 },
+-            { 0x8A08F0F8BF0F156B,  -289,  -68 },
+-            { 0xCDB02555653131B6,  -263,  -60 },
+-            { 0x993FE2C6D07B7FAC,  -236,  -52 },
+-            { 0xE45C10C42A2B3B06,  -210,  -44 },
+-            { 0xAA242499697392D3,  -183,  -36 },
+-            { 0xFD87B5F28300CA0E,  -157,  -28 },
+-            { 0xBCE5086492111AEB,  -130,  -20 },
+-            { 0x8CBCCC096F5088CC,  -103,  -12 },
+-            { 0xD1B71758E219652C,   -77,   -4 },
+-            { 0x9C40000000000000,   -50,    4 },
+-            { 0xE8D4A51000000000,   -24,   12 },
+-            { 0xAD78EBC5AC620000,     3,   20 },
+-            { 0x813F3978F8940984,    30,   28 },
+-            { 0xC097CE7BC90715B3,    56,   36 },
+-            { 0x8F7E32CE7BEA5C70,    83,   44 },
+-            { 0xD5D238A4ABE98068,   109,   52 },
+-            { 0x9F4F2726179A2245,   136,   60 },
+-            { 0xED63A231D4C4FB27,   162,   68 },
+-            { 0xB0DE65388CC8ADA8,   189,   76 },
+-            { 0x83C7088E1AAB65DB,   216,   84 },
+-            { 0xC45D1DF942711D9A,   242,   92 },
+-            { 0x924D692CA61BE758,   269,  100 },
+-            { 0xDA01EE641A708DEA,   295,  108 },
+-            { 0xA26DA3999AEF774A,   322,  116 },
+-            { 0xF209787BB47D6B85,   348,  124 },
+-            { 0xB454E4A179DD1877,   375,  132 },
+-            { 0x865B86925B9BC5C2,   402,  140 },
+-            { 0xC83553C5C8965D3D,   428,  148 },
+-            { 0x952AB45CFA97A0B3,   455,  156 },
+-            { 0xDE469FBD99A05FE3,   481,  164 },
+-            { 0xA59BC234DB398C25,   508,  172 },
+-            { 0xF6C69A72A3989F5C,   534,  180 },
+-            { 0xB7DCBF5354E9BECE,   561,  188 },
+-            { 0x88FCF317F22241E2,   588,  196 },
+-            { 0xCC20CE9BD35C78A5,   614,  204 },
+-            { 0x98165AF37B2153DF,   641,  212 },
+-            { 0xE2A0B5DC971F303A,   667,  220 },
+-            { 0xA8D9D1535CE3B396,   694,  228 },
+-            { 0xFB9B7CD9A4A7443C,   720,  236 },
+-            { 0xBB764C4CA7A44410,   747,  244 },
+-            { 0x8BAB8EEFB6409C1A,   774,  252 },
+-            { 0xD01FEF10A657842C,   800,  260 },
+-            { 0x9B10A4E5E9913129,   827,  268 },
+-            { 0xE7109BFBA19C0C9D,   853,  276 },
+-            { 0xAC2820D9623BF429,   880,  284 },
+-            { 0x80444B5E7AA7CF85,   907,  292 },
+-            { 0xBF21E44003ACDD2D,   933,  300 },
+-            { 0x8E679C2F5E44FF8F,   960,  308 },
+-            { 0xD433179D9C8CB841,   986,  316 },
+-            { 0x9E19DB92B4E31BA9,  1013,  324 },
+-        }
+-    };
+-
+-    // This computation gives exactly the same results for k as
+-    //      k = ceil((kAlpha - e - 1) * 0.30102999566398114)
+-    // for |e| <= 1500, but doesn't require floating-point operations.
+-    // NB: log_10(2) ~= 78913 / 2^18
+-    JSON_ASSERT(e >= -1500);
+-    JSON_ASSERT(e <=  1500);
+-    const int f = kAlpha - e - 1;
+-    const int k = (f * 78913) / (1 << 18) + static_cast<int>(f > 0);
+-
+-    const int index = (-kCachedPowersMinDecExp + k + (kCachedPowersDecStep - 1)) / kCachedPowersDecStep;
+-    JSON_ASSERT(index >= 0);
+-    JSON_ASSERT(static_cast<std::size_t>(index) < kCachedPowers.size());
+-
+-    const cached_power cached = kCachedPowers[static_cast<std::size_t>(index)];
+-    JSON_ASSERT(kAlpha <= cached.e + e + 64);
+-    JSON_ASSERT(kGamma >= cached.e + e + 64);
+-
+-    return cached;
+-}
+-
+-/*!
+-For n != 0, returns k, such that pow10 := 10^(k-1) <= n < 10^k.
+-For n == 0, returns 1 and sets pow10 := 1.
+-*/
+-inline int find_largest_pow10(const std::uint32_t n, std::uint32_t& pow10)
+-{
+-    // LCOV_EXCL_START
+-    if (n >= 1000000000)
+-    {
+-        pow10 = 1000000000;
+-        return 10;
+-    }
+-    // LCOV_EXCL_STOP
+-    if (n >= 100000000)
+-    {
+-        pow10 = 100000000;
+-        return  9;
+-    }
+-    if (n >= 10000000)
+-    {
+-        pow10 = 10000000;
+-        return  8;
+-    }
+-    if (n >= 1000000)
+-    {
+-        pow10 = 1000000;
+-        return  7;
+-    }
+-    if (n >= 100000)
+-    {
+-        pow10 = 100000;
+-        return  6;
+-    }
+-    if (n >= 10000)
+-    {
+-        pow10 = 10000;
+-        return  5;
+-    }
+-    if (n >= 1000)
+-    {
+-        pow10 = 1000;
+-        return  4;
+-    }
+-    if (n >= 100)
+-    {
+-        pow10 = 100;
+-        return  3;
+-    }
+-    if (n >= 10)
+-    {
+-        pow10 = 10;
+-        return  2;
+-    }
+-
+-    pow10 = 1;
+-    return 1;
+-}
+-
+-inline void grisu2_round(char* buf, int len, std::uint64_t dist, std::uint64_t delta,
+-                         std::uint64_t rest, std::uint64_t ten_k)
+-{
+-    JSON_ASSERT(len >= 1);
+-    JSON_ASSERT(dist <= delta);
+-    JSON_ASSERT(rest <= delta);
+-    JSON_ASSERT(ten_k > 0);
+-
+-    //               <--------------------------- delta ---->
+-    //                                  <---- dist --------->
+-    // --------------[------------------+-------------------]--------------
+-    //               M-                 w                   M+
+-    //
+-    //                                  ten_k
+-    //                                <------>
+-    //                                       <---- rest ---->
+-    // --------------[------------------+----+--------------]--------------
+-    //                                  w    V
+-    //                                       = buf * 10^k
+-    //
+-    // ten_k represents a unit-in-the-last-place in the decimal representation
+-    // stored in buf.
+-    // Decrement buf by ten_k while this takes buf closer to w.
+-
+-    // The tests are written in this order to avoid overflow in unsigned
+-    // integer arithmetic.
+-
+-    while (rest < dist
+-            && delta - rest >= ten_k
+-            && (rest + ten_k < dist || dist - rest > rest + ten_k - dist))
+-    {
+-        JSON_ASSERT(buf[len - 1] != '0');
+-        buf[len - 1]--;
+-        rest += ten_k;
+-    }
+-}
+-
+-/*!
+-Generates V = buffer * 10^decimal_exponent, such that M- <= V <= M+.
+-M- and M+ must be normalized and share the same exponent -60 <= e <= -32.
+-*/
+-inline void grisu2_digit_gen(char* buffer, int& length, int& decimal_exponent,
+-                             diyfp M_minus, diyfp w, diyfp M_plus)
+-{
+-    static_assert(kAlpha >= -60, "internal error");
+-    static_assert(kGamma <= -32, "internal error");
+-
+-    // Generates the digits (and the exponent) of a decimal floating-point
+-    // number V = buffer * 10^decimal_exponent in the range [M-, M+]. The diyfp's
+-    // w, M- and M+ share the same exponent e, which satisfies alpha <= e <= gamma.
+-    //
+-    //               <--------------------------- delta ---->
+-    //                                  <---- dist --------->
+-    // --------------[------------------+-------------------]--------------
+-    //               M-                 w                   M+
+-    //
+-    // Grisu2 generates the digits of M+ from left to right and stops as soon as
+-    // V is in [M-,M+].
+-
+-    JSON_ASSERT(M_plus.e >= kAlpha);
+-    JSON_ASSERT(M_plus.e <= kGamma);
+-
+-    std::uint64_t delta = diyfp::sub(M_plus, M_minus).f; // (significand of (M+ - M-), implicit exponent is e)
+-    std::uint64_t dist  = diyfp::sub(M_plus, w      ).f; // (significand of (M+ - w ), implicit exponent is e)
+-
+-    // Split M+ = f * 2^e into two parts p1 and p2 (note: e < 0):
+-    //
+-    //      M+ = f * 2^e
+-    //         = ((f div 2^-e) * 2^-e + (f mod 2^-e)) * 2^e
+-    //         = ((p1        ) * 2^-e + (p2        )) * 2^e
+-    //         = p1 + p2 * 2^e
+-
+-    const diyfp one(std::uint64_t{1} << -M_plus.e, M_plus.e);
+-
+-    auto p1 = static_cast<std::uint32_t>(M_plus.f >> -one.e); // p1 = f div 2^-e (Since -e >= 32, p1 fits into a 32-bit int.)
+-    std::uint64_t p2 = M_plus.f & (one.f - 1);                    // p2 = f mod 2^-e
+-
+-    // 1)
+-    //
+-    // Generate the digits of the integral part p1 = d[n-1]...d[1]d[0]
+-
+-    JSON_ASSERT(p1 > 0);
+-
+-    std::uint32_t pow10{};
+-    const int k = find_largest_pow10(p1, pow10);
+-
+-    //      10^(k-1) <= p1 < 10^k, pow10 = 10^(k-1)
+-    //
+-    //      p1 = (p1 div 10^(k-1)) * 10^(k-1) + (p1 mod 10^(k-1))
+-    //         = (d[k-1]         ) * 10^(k-1) + (p1 mod 10^(k-1))
+-    //
+-    //      M+ = p1                                             + p2 * 2^e
+-    //         = d[k-1] * 10^(k-1) + (p1 mod 10^(k-1))          + p2 * 2^e
+-    //         = d[k-1] * 10^(k-1) + ((p1 mod 10^(k-1)) * 2^-e + p2) * 2^e
+-    //         = d[k-1] * 10^(k-1) + (                         rest) * 2^e
+-    //
+-    // Now generate the digits d[n] of p1 from left to right (n = k-1,...,0)
+-    //
+-    //      p1 = d[k-1]...d[n] * 10^n + d[n-1]...d[0]
+-    //
+-    // but stop as soon as
+-    //
+-    //      rest * 2^e = (d[n-1]...d[0] * 2^-e + p2) * 2^e <= delta * 2^e
+-
+-    int n = k;
+-    while (n > 0)
+-    {
+-        // Invariants:
+-        //      M+ = buffer * 10^n + (p1 + p2 * 2^e)    (buffer = 0 for n = k)
+-        //      pow10 = 10^(n-1) <= p1 < 10^n
+-        //
+-        const std::uint32_t d = p1 / pow10;  // d = p1 div 10^(n-1)
+-        const std::uint32_t r = p1 % pow10;  // r = p1 mod 10^(n-1)
+-        //
+-        //      M+ = buffer * 10^n + (d * 10^(n-1) + r) + p2 * 2^e
+-        //         = (buffer * 10 + d) * 10^(n-1) + (r + p2 * 2^e)
+-        //
+-        JSON_ASSERT(d <= 9);
+-        buffer[length++] = static_cast<char>('0' + d); // buffer := buffer * 10 + d
+-        //
+-        //      M+ = buffer * 10^(n-1) + (r + p2 * 2^e)
+-        //
+-        p1 = r;
+-        n--;
+-        //
+-        //      M+ = buffer * 10^n + (p1 + p2 * 2^e)
+-        //      pow10 = 10^n
+-        //
+-
+-        // Now check if enough digits have been generated.
+-        // Compute
+-        //
+-        //      p1 + p2 * 2^e = (p1 * 2^-e + p2) * 2^e = rest * 2^e
+-        //
+-        // Note:
+-        // Since rest and delta share the same exponent e, it suffices to
+-        // compare the significands.
+-        const std::uint64_t rest = (std::uint64_t{p1} << -one.e) + p2;
+-        if (rest <= delta)
+-        {
+-            // V = buffer * 10^n, with M- <= V <= M+.
+-
+-            decimal_exponent += n;
+-
+-            // We may now just stop. But instead look if the buffer could be
+-            // decremented to bring V closer to w.
+-            //
+-            // pow10 = 10^n is now 1 ulp in the decimal representation V.
+-            // The rounding procedure works with diyfp's with an implicit
+-            // exponent of e.
+-            //
+-            //      10^n = (10^n * 2^-e) * 2^e = ulp * 2^e
+-            //
+-            const std::uint64_t ten_n = std::uint64_t{pow10} << -one.e;
+-            grisu2_round(buffer, length, dist, delta, rest, ten_n);
+-
+-            return;
+-        }
+-
+-        pow10 /= 10;
+-        //
+-        //      pow10 = 10^(n-1) <= p1 < 10^n
+-        // Invariants restored.
+-    }
+-
+-    // 2)
+-    //
+-    // The digits of the integral part have been generated:
+-    //
+-    //      M+ = d[k-1]...d[1]d[0] + p2 * 2^e
+-    //         = buffer            + p2 * 2^e
+-    //
+-    // Now generate the digits of the fractional part p2 * 2^e.
+-    //
+-    // Note:
+-    // No decimal point is generated: the exponent is adjusted instead.
+-    //
+-    // p2 actually represents the fraction
+-    //
+-    //      p2 * 2^e
+-    //          = p2 / 2^-e
+-    //          = d[-1] / 10^1 + d[-2] / 10^2 + ...
+-    //
+-    // Now generate the digits d[-m] of p1 from left to right (m = 1,2,...)
+-    //
+-    //      p2 * 2^e = d[-1]d[-2]...d[-m] * 10^-m
+-    //                      + 10^-m * (d[-m-1] / 10^1 + d[-m-2] / 10^2 + ...)
+-    //
+-    // using
+-    //
+-    //      10^m * p2 = ((10^m * p2) div 2^-e) * 2^-e + ((10^m * p2) mod 2^-e)
+-    //                = (                   d) * 2^-e + (                   r)
+-    //
+-    // or
+-    //      10^m * p2 * 2^e = d + r * 2^e
+-    //
+-    // i.e.
+-    //
+-    //      M+ = buffer + p2 * 2^e
+-    //         = buffer + 10^-m * (d + r * 2^e)
+-    //         = (buffer * 10^m + d) * 10^-m + 10^-m * r * 2^e
+-    //
+-    // and stop as soon as 10^-m * r * 2^e <= delta * 2^e
+-
+-    JSON_ASSERT(p2 > delta);
+-
+-    int m = 0;
+-    for (;;)
+-    {
+-        // Invariant:
+-        //      M+ = buffer * 10^-m + 10^-m * (d[-m-1] / 10 + d[-m-2] / 10^2 + ...) * 2^e
+-        //         = buffer * 10^-m + 10^-m * (p2                                 ) * 2^e
+-        //         = buffer * 10^-m + 10^-m * (1/10 * (10 * p2)                   ) * 2^e
+-        //         = buffer * 10^-m + 10^-m * (1/10 * ((10*p2 div 2^-e) * 2^-e + (10*p2 mod 2^-e)) * 2^e
+-        //
+-        JSON_ASSERT(p2 <= (std::numeric_limits<std::uint64_t>::max)() / 10);
+-        p2 *= 10;
+-        const std::uint64_t d = p2 >> -one.e;     // d = (10 * p2) div 2^-e
+-        const std::uint64_t r = p2 & (one.f - 1); // r = (10 * p2) mod 2^-e
+-        //
+-        //      M+ = buffer * 10^-m + 10^-m * (1/10 * (d * 2^-e + r) * 2^e
+-        //         = buffer * 10^-m + 10^-m * (1/10 * (d + r * 2^e))
+-        //         = (buffer * 10 + d) * 10^(-m-1) + 10^(-m-1) * r * 2^e
+-        //
+-        JSON_ASSERT(d <= 9);
+-        buffer[length++] = static_cast<char>('0' + d); // buffer := buffer * 10 + d
+-        //
+-        //      M+ = buffer * 10^(-m-1) + 10^(-m-1) * r * 2^e
+-        //
+-        p2 = r;
+-        m++;
+-        //
+-        //      M+ = buffer * 10^-m + 10^-m * p2 * 2^e
+-        // Invariant restored.
+-
+-        // Check if enough digits have been generated.
+-        //
+-        //      10^-m * p2 * 2^e <= delta * 2^e
+-        //              p2 * 2^e <= 10^m * delta * 2^e
+-        //                    p2 <= 10^m * delta
+-        delta *= 10;
+-        dist  *= 10;
+-        if (p2 <= delta)
+-        {
+-            break;
+-        }
+-    }
+-
+-    // V = buffer * 10^-m, with M- <= V <= M+.
+-
+-    decimal_exponent -= m;
+-
+-    // 1 ulp in the decimal representation is now 10^-m.
+-    // Since delta and dist are now scaled by 10^m, we need to do the
+-    // same with ulp in order to keep the units in sync.
+-    //
+-    //      10^m * 10^-m = 1 = 2^-e * 2^e = ten_m * 2^e
+-    //
+-    const std::uint64_t ten_m = one.f;
+-    grisu2_round(buffer, length, dist, delta, p2, ten_m);
+-
+-    // By construction this algorithm generates the shortest possible decimal
+-    // number (Loitsch, Theorem 6.2) which rounds back to w.
+-    // For an input number of precision p, at least
+-    //
+-    //      N = 1 + ceil(p * log_10(2))
+-    //
+-    // decimal digits are sufficient to identify all binary floating-point
+-    // numbers (Matula, "In-and-Out conversions").
+-    // This implies that the algorithm does not produce more than N decimal
+-    // digits.
+-    //
+-    //      N = 17 for p = 53 (IEEE double precision)
+-    //      N = 9  for p = 24 (IEEE single precision)
+-}
+-
+-/*!
+-v = buf * 10^decimal_exponent
+-len is the length of the buffer (number of decimal digits)
+-The buffer must be large enough, i.e. >= max_digits10.
+-*/
+-JSON_HEDLEY_NON_NULL(1)
+-inline void grisu2(char* buf, int& len, int& decimal_exponent,
+-                   diyfp m_minus, diyfp v, diyfp m_plus)
+-{
+-    JSON_ASSERT(m_plus.e == m_minus.e);
+-    JSON_ASSERT(m_plus.e == v.e);
+-
+-    //  --------(-----------------------+-----------------------)--------    (A)
+-    //          m-                      v                       m+
+-    //
+-    //  --------------------(-----------+-----------------------)--------    (B)
+-    //                      m-          v                       m+
+-    //
+-    // First scale v (and m- and m+) such that the exponent is in the range
+-    // [alpha, gamma].
+-
+-    const cached_power cached = get_cached_power_for_binary_exponent(m_plus.e);
+-
+-    const diyfp c_minus_k(cached.f, cached.e); // = c ~= 10^-k
+-
+-    // The exponent of the products is = v.e + c_minus_k.e + q and is in the range [alpha,gamma]
+-    const diyfp w       = diyfp::mul(v,       c_minus_k);
+-    const diyfp w_minus = diyfp::mul(m_minus, c_minus_k);
+-    const diyfp w_plus  = diyfp::mul(m_plus,  c_minus_k);
+-
+-    //  ----(---+---)---------------(---+---)---------------(---+---)----
+-    //          w-                      w                       w+
+-    //          = c*m-                  = c*v                   = c*m+
+-    //
+-    // diyfp::mul rounds its result and c_minus_k is approximated too. w, w- and
+-    // w+ are now off by a small amount.
+-    // In fact:
+-    //
+-    //      w - v * 10^k < 1 ulp
+-    //
+-    // To account for this inaccuracy, add resp. subtract 1 ulp.
+-    //
+-    //  --------+---[---------------(---+---)---------------]---+--------
+-    //          w-  M-                  w                   M+  w+
+-    //
+-    // Now any number in [M-, M+] (bounds included) will round to w when input,
+-    // regardless of how the input rounding algorithm breaks ties.
+-    //
+-    // And digit_gen generates the shortest possible such number in [M-, M+].
+-    // Note that this does not mean that Grisu2 always generates the shortest
+-    // possible number in the interval (m-, m+).
+-    const diyfp M_minus(w_minus.f + 1, w_minus.e);
+-    const diyfp M_plus (w_plus.f  - 1, w_plus.e );
+-
+-    decimal_exponent = -cached.k; // = -(-k) = k
+-
+-    grisu2_digit_gen(buf, len, decimal_exponent, M_minus, w, M_plus);
+-}
+-
+-/*!
+-v = buf * 10^decimal_exponent
+-len is the length of the buffer (number of decimal digits)
+-The buffer must be large enough, i.e. >= max_digits10.
+-*/
+-template<typename FloatType>
+-JSON_HEDLEY_NON_NULL(1)
+-void grisu2(char* buf, int& len, int& decimal_exponent, FloatType value)
+-{
+-    static_assert(diyfp::kPrecision >= std::numeric_limits<FloatType>::digits + 3,
+-                  "internal error: not enough precision");
+-
+-    JSON_ASSERT(std::isfinite(value));
+-    JSON_ASSERT(value > 0);
+-
+-    // If the neighbors (and boundaries) of 'value' are always computed for double-precision
+-    // numbers, all float's can be recovered using strtod (and strtof). However, the resulting
+-    // decimal representations are not exactly "short".
+-    //
+-    // The documentation for 'std::to_chars' (https://en.cppreference.com/w/cpp/utility/to_chars)
+-    // says "value is converted to a string as if by std::sprintf in the default ("C") locale"
+-    // and since sprintf promotes floats to doubles, I think this is exactly what 'std::to_chars'
+-    // does.
+-    // On the other hand, the documentation for 'std::to_chars' requires that "parsing the
+-    // representation using the corresponding std::from_chars function recovers value exactly". That
+-    // indicates that single precision floating-point numbers should be recovered using
+-    // 'std::strtof'.
+-    //
+-    // NB: If the neighbors are computed for single-precision numbers, there is a single float
+-    //     (7.0385307e-26f) which can't be recovered using strtod. The resulting double precision
+-    //     value is off by 1 ulp.
+-#if 0
+-    const boundaries w = compute_boundaries(static_cast<double>(value));
+-#else
+-    const boundaries w = compute_boundaries(value);
+-#endif
+-
+-    grisu2(buf, len, decimal_exponent, w.minus, w.w, w.plus);
+-}
+-
+-/*!
+-@brief appends a decimal representation of e to buf
+-@return a pointer to the element following the exponent.
+-@pre -1000 < e < 1000
+-*/
+-JSON_HEDLEY_NON_NULL(1)
+-JSON_HEDLEY_RETURNS_NON_NULL
+-inline char* append_exponent(char* buf, int e)
+-{
+-    JSON_ASSERT(e > -1000);
+-    JSON_ASSERT(e <  1000);
+-
+-    if (e < 0)
+-    {
+-        e = -e;
+-        *buf++ = '-';
+-    }
+-    else
+-    {
+-        *buf++ = '+';
+-    }
+-
+-    auto k = static_cast<std::uint32_t>(e);
+-    if (k < 10)
+-    {
+-        // Always print at least two digits in the exponent.
+-        // This is for compatibility with printf("%g").
+-        *buf++ = '0';
+-        *buf++ = static_cast<char>('0' + k);
+-    }
+-    else if (k < 100)
+-    {
+-        *buf++ = static_cast<char>('0' + k / 10);
+-        k %= 10;
+-        *buf++ = static_cast<char>('0' + k);
+-    }
+-    else
+-    {
+-        *buf++ = static_cast<char>('0' + k / 100);
+-        k %= 100;
+-        *buf++ = static_cast<char>('0' + k / 10);
+-        k %= 10;
+-        *buf++ = static_cast<char>('0' + k);
+-    }
+-
+-    return buf;
+-}
+-
+-/*!
+-@brief prettify v = buf * 10^decimal_exponent
+-
+-If v is in the range [10^min_exp, 10^max_exp) it will be printed in fixed-point
+-notation. Otherwise it will be printed in exponential notation.
+-
+-@pre min_exp < 0
+-@pre max_exp > 0
+-*/
+-JSON_HEDLEY_NON_NULL(1)
+-JSON_HEDLEY_RETURNS_NON_NULL
+-inline char* format_buffer(char* buf, int len, int decimal_exponent,
+-                           int min_exp, int max_exp)
+-{
+-    JSON_ASSERT(min_exp < 0);
+-    JSON_ASSERT(max_exp > 0);
+-
+-    const int k = len;
+-    const int n = len + decimal_exponent;
+-
+-    // v = buf * 10^(n-k)
+-    // k is the length of the buffer (number of decimal digits)
+-    // n is the position of the decimal point relative to the start of the buffer.
+-
+-    if (k <= n && n <= max_exp)
+-    {
+-        // digits[000]
+-        // len <= max_exp + 2
+-
+-        std::memset(buf + k, '0', static_cast<size_t>(n) - static_cast<size_t>(k));
+-        // Make it look like a floating-point number (#362, #378)
+-        buf[n + 0] = '.';
+-        buf[n + 1] = '0';
+-        return buf + (static_cast<size_t>(n) + 2);
+-    }
+-
+-    if (0 < n && n <= max_exp)
+-    {
+-        // dig.its
+-        // len <= max_digits10 + 1
+-
+-        JSON_ASSERT(k > n);
+-
+-        std::memmove(buf + (static_cast<size_t>(n) + 1), buf + n, static_cast<size_t>(k) - static_cast<size_t>(n));
+-        buf[n] = '.';
+-        return buf + (static_cast<size_t>(k) + 1U);
+-    }
+-
+-    if (min_exp < n && n <= 0)
+-    {
+-        // 0.[000]digits
+-        // len <= 2 + (-min_exp - 1) + max_digits10
+-
+-        std::memmove(buf + (2 + static_cast<size_t>(-n)), buf, static_cast<size_t>(k));
+-        buf[0] = '0';
+-        buf[1] = '.';
+-        std::memset(buf + 2, '0', static_cast<size_t>(-n));
+-        return buf + (2U + static_cast<size_t>(-n) + static_cast<size_t>(k));
+-    }
+-
+-    if (k == 1)
+-    {
+-        // dE+123
+-        // len <= 1 + 5
+-
+-        buf += 1;
+-    }
+-    else
+-    {
+-        // d.igitsE+123
+-        // len <= max_digits10 + 1 + 5
+-
+-        std::memmove(buf + 2, buf + 1, static_cast<size_t>(k) - 1);
+-        buf[1] = '.';
+-        buf += 1 + static_cast<size_t>(k);
+-    }
+-
+-    *buf++ = 'e';
+-    return append_exponent(buf, n - 1);
+-}
+-
+-} // namespace dtoa_impl
+-
+-/*!
+-@brief generates a decimal representation of the floating-point number value in [first, last).
+-
+-The format of the resulting decimal representation is similar to printf's %g
+-format. Returns an iterator pointing past-the-end of the decimal representation.
+-
+-@note The input number must be finite, i.e. NaN's and Inf's are not supported.
+-@note The buffer must be large enough.
+-@note The result is NOT null-terminated.
+-*/
+-template<typename FloatType>
+-JSON_HEDLEY_NON_NULL(1, 2)
+-JSON_HEDLEY_RETURNS_NON_NULL
+-char* to_chars(char* first, const char* last, FloatType value)
+-{
+-    static_cast<void>(last); // maybe unused - fix warning
+-    JSON_ASSERT(std::isfinite(value));
+-
+-    // Use signbit(value) instead of (value < 0) since signbit works for -0.
+-    if (std::signbit(value))
+-    {
+-        value = -value;
+-        *first++ = '-';
+-    }
+-
+-#ifdef __GNUC__
+-#pragma GCC diagnostic push
+-#pragma GCC diagnostic ignored "-Wfloat-equal"
+-#endif
+-    if (value == 0) // +-0
+-    {
+-        *first++ = '0';
+-        // Make it look like a floating-point number (#362, #378)
+-        *first++ = '.';
+-        *first++ = '0';
+-        return first;
+-    }
+-#ifdef __GNUC__
+-#pragma GCC diagnostic pop
+-#endif
+-
+-    JSON_ASSERT(last - first >= std::numeric_limits<FloatType>::max_digits10);
+-
+-    // Compute v = buffer * 10^decimal_exponent.
+-    // The decimal digits are stored in the buffer, which needs to be interpreted
+-    // as an unsigned decimal integer.
+-    // len is the length of the buffer, i.e. the number of decimal digits.
+-    int len = 0;
+-    int decimal_exponent = 0;
+-    dtoa_impl::grisu2(first, len, decimal_exponent, value);
+-
+-    JSON_ASSERT(len <= std::numeric_limits<FloatType>::max_digits10);
+-
+-    // Format the buffer like printf("%.*g", prec, value)
+-    constexpr int kMinExp = -4;
+-    // Use digits10 here to increase compatibility with version 2.
+-    constexpr int kMaxExp = std::numeric_limits<FloatType>::digits10;
+-
+-    JSON_ASSERT(last - first >= kMaxExp + 2);
+-    JSON_ASSERT(last - first >= 2 + (-kMinExp - 1) + std::numeric_limits<FloatType>::max_digits10);
+-    JSON_ASSERT(last - first >= std::numeric_limits<FloatType>::max_digits10 + 6);
+-
+-    return dtoa_impl::format_buffer(first, len, decimal_exponent, kMinExp, kMaxExp);
+-}
+-
+-} // namespace detail
+-} // namespace nlohmann
+-
+-// #include <nlohmann/detail/exceptions.hpp>
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-// #include <nlohmann/detail/meta/cpp_future.hpp>
+-
+-// #include <nlohmann/detail/output/binary_writer.hpp>
+-
+-// #include <nlohmann/detail/output/output_adapters.hpp>
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-
+-namespace nlohmann
+-{
+-namespace detail
+-{
+-///////////////////
+-// serialization //
+-///////////////////
+-
+-/// how to treat decoding errors
+-enum class error_handler_t
+-{
+-    strict,  ///< throw a type_error exception in case of invalid UTF-8
+-    replace, ///< replace invalid UTF-8 sequences with U+FFFD
+-    ignore   ///< ignore invalid UTF-8 sequences
+-};
+-
+-template<typename BasicJsonType>
+-class serializer
+-{
+-    using string_t = typename BasicJsonType::string_t;
+-    using number_float_t = typename BasicJsonType::number_float_t;
+-    using number_integer_t = typename BasicJsonType::number_integer_t;
+-    using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-    using binary_char_t = typename BasicJsonType::binary_t::value_type;
+-    static constexpr std::uint8_t UTF8_ACCEPT = 0;
+-    static constexpr std::uint8_t UTF8_REJECT = 1;
+-
+-  public:
+-    /*!
+-    @param[in] s  output stream to serialize to
+-    @param[in] ichar  indentation character to use
+-    @param[in] error_handler_  how to react on decoding errors
+-    */
+-    serializer(output_adapter_t<char> s, const char ichar,
+-               error_handler_t error_handler_ = error_handler_t::strict)
+-        : o(std::move(s))
+-        , loc(std::localeconv())
+-        , thousands_sep(loc->thousands_sep == nullptr ? '\0' : std::char_traits<char>::to_char_type(* (loc->thousands_sep)))
+-        , decimal_point(loc->decimal_point == nullptr ? '\0' : std::char_traits<char>::to_char_type(* (loc->decimal_point)))
+-        , indent_char(ichar)
+-        , indent_string(512, indent_char)
+-        , error_handler(error_handler_)
+-    {}
+-
+-    // delete because of pointer members
+-    serializer(const serializer&) = delete;
+-    serializer& operator=(const serializer&) = delete;
+-    serializer(serializer&&) = delete;
+-    serializer& operator=(serializer&&) = delete;
+-    ~serializer() = default;
+-
+-    /*!
+-    @brief internal implementation of the serialization function
+-
+-    This function is called by the public member function dump and organizes
+-    the serialization internally. The indentation level is propagated as
+-    additional parameter. In case of arrays and objects, the function is
+-    called recursively.
+-
+-    - strings and object keys are escaped using `escape_string()`
+-    - integer numbers are converted implicitly via `operator<<`
+-    - floating-point numbers are converted to a string using `"%g"` format
+-    - binary values are serialized as objects containing the subtype and the
+-      byte array
+-
+-    @param[in] val               value to serialize
+-    @param[in] pretty_print      whether the output shall be pretty-printed
+-    @param[in] ensure_ascii If @a ensure_ascii is true, all non-ASCII characters
+-    in the output are escaped with `\uXXXX` sequences, and the result consists
+-    of ASCII characters only.
+-    @param[in] indent_step       the indent level
+-    @param[in] current_indent    the current indent level (only used internally)
+-    */
+-    void dump(const BasicJsonType& val,
+-              const bool pretty_print,
+-              const bool ensure_ascii,
+-              const unsigned int indent_step,
+-              const unsigned int current_indent = 0)
+-    {
+-        switch (val.m_type)
+-        {
+-            case value_t::object:
+-            {
+-                if (val.m_value.object->empty())
+-                {
+-                    o->write_characters("{}", 2);
+-                    return;
+-                }
+-
+-                if (pretty_print)
+-                {
+-                    o->write_characters("{\n", 2);
+-
+-                    // variable to hold indentation for recursive calls
+-                    const auto new_indent = current_indent + indent_step;
+-                    if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent))
+-                    {
+-                        indent_string.resize(indent_string.size() * 2, ' ');
+-                    }
+-
+-                    // first n-1 elements
+-                    auto i = val.m_value.object->cbegin();
+-                    for (std::size_t cnt = 0; cnt < val.m_value.object->size() - 1; ++cnt, ++i)
+-                    {
+-                        o->write_characters(indent_string.c_str(), new_indent);
+-                        o->write_character('\"');
+-                        dump_escaped(i->first, ensure_ascii);
+-                        o->write_characters("\": ", 3);
+-                        dump(i->second, true, ensure_ascii, indent_step, new_indent);
+-                        o->write_characters(",\n", 2);
+-                    }
+-
+-                    // last element
+-                    JSON_ASSERT(i != val.m_value.object->cend());
+-                    JSON_ASSERT(std::next(i) == val.m_value.object->cend());
+-                    o->write_characters(indent_string.c_str(), new_indent);
+-                    o->write_character('\"');
+-                    dump_escaped(i->first, ensure_ascii);
+-                    o->write_characters("\": ", 3);
+-                    dump(i->second, true, ensure_ascii, indent_step, new_indent);
+-
+-                    o->write_character('\n');
+-                    o->write_characters(indent_string.c_str(), current_indent);
+-                    o->write_character('}');
+-                }
+-                else
+-                {
+-                    o->write_character('{');
+-
+-                    // first n-1 elements
+-                    auto i = val.m_value.object->cbegin();
+-                    for (std::size_t cnt = 0; cnt < val.m_value.object->size() - 1; ++cnt, ++i)
+-                    {
+-                        o->write_character('\"');
+-                        dump_escaped(i->first, ensure_ascii);
+-                        o->write_characters("\":", 2);
+-                        dump(i->second, false, ensure_ascii, indent_step, current_indent);
+-                        o->write_character(',');
+-                    }
+-
+-                    // last element
+-                    JSON_ASSERT(i != val.m_value.object->cend());
+-                    JSON_ASSERT(std::next(i) == val.m_value.object->cend());
+-                    o->write_character('\"');
+-                    dump_escaped(i->first, ensure_ascii);
+-                    o->write_characters("\":", 2);
+-                    dump(i->second, false, ensure_ascii, indent_step, current_indent);
+-
+-                    o->write_character('}');
+-                }
+-
+-                return;
+-            }
+-
+-            case value_t::array:
+-            {
+-                if (val.m_value.array->empty())
+-                {
+-                    o->write_characters("[]", 2);
+-                    return;
+-                }
+-
+-                if (pretty_print)
+-                {
+-                    o->write_characters("[\n", 2);
+-
+-                    // variable to hold indentation for recursive calls
+-                    const auto new_indent = current_indent + indent_step;
+-                    if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent))
+-                    {
+-                        indent_string.resize(indent_string.size() * 2, ' ');
+-                    }
+-
+-                    // first n-1 elements
+-                    for (auto i = val.m_value.array->cbegin();
+-                            i != val.m_value.array->cend() - 1; ++i)
+-                    {
+-                        o->write_characters(indent_string.c_str(), new_indent);
+-                        dump(*i, true, ensure_ascii, indent_step, new_indent);
+-                        o->write_characters(",\n", 2);
+-                    }
+-
+-                    // last element
+-                    JSON_ASSERT(!val.m_value.array->empty());
+-                    o->write_characters(indent_string.c_str(), new_indent);
+-                    dump(val.m_value.array->back(), true, ensure_ascii, indent_step, new_indent);
+-
+-                    o->write_character('\n');
+-                    o->write_characters(indent_string.c_str(), current_indent);
+-                    o->write_character(']');
+-                }
+-                else
+-                {
+-                    o->write_character('[');
+-
+-                    // first n-1 elements
+-                    for (auto i = val.m_value.array->cbegin();
+-                            i != val.m_value.array->cend() - 1; ++i)
+-                    {
+-                        dump(*i, false, ensure_ascii, indent_step, current_indent);
+-                        o->write_character(',');
+-                    }
+-
+-                    // last element
+-                    JSON_ASSERT(!val.m_value.array->empty());
+-                    dump(val.m_value.array->back(), false, ensure_ascii, indent_step, current_indent);
+-
+-                    o->write_character(']');
+-                }
+-
+-                return;
+-            }
+-
+-            case value_t::string:
+-            {
+-                o->write_character('\"');
+-                dump_escaped(*val.m_value.string, ensure_ascii);
+-                o->write_character('\"');
+-                return;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                if (pretty_print)
+-                {
+-                    o->write_characters("{\n", 2);
+-
+-                    // variable to hold indentation for recursive calls
+-                    const auto new_indent = current_indent + indent_step;
+-                    if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent))
+-                    {
+-                        indent_string.resize(indent_string.size() * 2, ' ');
+-                    }
+-
+-                    o->write_characters(indent_string.c_str(), new_indent);
+-
+-                    o->write_characters("\"bytes\": [", 10);
+-
+-                    if (!val.m_value.binary->empty())
+-                    {
+-                        for (auto i = val.m_value.binary->cbegin();
+-                                i != val.m_value.binary->cend() - 1; ++i)
+-                        {
+-                            dump_integer(*i);
+-                            o->write_characters(", ", 2);
+-                        }
+-                        dump_integer(val.m_value.binary->back());
+-                    }
+-
+-                    o->write_characters("],\n", 3);
+-                    o->write_characters(indent_string.c_str(), new_indent);
+-
+-                    o->write_characters("\"subtype\": ", 11);
+-                    if (val.m_value.binary->has_subtype())
+-                    {
+-                        dump_integer(val.m_value.binary->subtype());
+-                    }
+-                    else
+-                    {
+-                        o->write_characters("null", 4);
+-                    }
+-                    o->write_character('\n');
+-                    o->write_characters(indent_string.c_str(), current_indent);
+-                    o->write_character('}');
+-                }
+-                else
+-                {
+-                    o->write_characters("{\"bytes\":[", 10);
+-
+-                    if (!val.m_value.binary->empty())
+-                    {
+-                        for (auto i = val.m_value.binary->cbegin();
+-                                i != val.m_value.binary->cend() - 1; ++i)
+-                        {
+-                            dump_integer(*i);
+-                            o->write_character(',');
+-                        }
+-                        dump_integer(val.m_value.binary->back());
+-                    }
+-
+-                    o->write_characters("],\"subtype\":", 12);
+-                    if (val.m_value.binary->has_subtype())
+-                    {
+-                        dump_integer(val.m_value.binary->subtype());
+-                        o->write_character('}');
+-                    }
+-                    else
+-                    {
+-                        o->write_characters("null}", 5);
+-                    }
+-                }
+-                return;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                if (val.m_value.boolean)
+-                {
+-                    o->write_characters("true", 4);
+-                }
+-                else
+-                {
+-                    o->write_characters("false", 5);
+-                }
+-                return;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                dump_integer(val.m_value.number_integer);
+-                return;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                dump_integer(val.m_value.number_unsigned);
+-                return;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                dump_float(val.m_value.number_float);
+-                return;
+-            }
+-
+-            case value_t::discarded:
+-            {
+-                o->write_characters("<discarded>", 11);
+-                return;
+-            }
+-
+-            case value_t::null:
+-            {
+-                o->write_characters("null", 4);
+-                return;
+-            }
+-
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-    }
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /*!
+-    @brief dump escaped string
+-
+-    Escape a string by replacing certain special characters by a sequence of an
+-    escape character (backslash) and another character and other control
+-    characters by a sequence of "\u" followed by a four-digit hex
+-    representation. The escaped string is written to output stream @a o.
+-
+-    @param[in] s  the string to escape
+-    @param[in] ensure_ascii  whether to escape non-ASCII characters with
+-                             \uXXXX sequences
+-
+-    @complexity Linear in the length of string @a s.
+-    */
+-    void dump_escaped(const string_t& s, const bool ensure_ascii)
+-    {
+-        std::uint32_t codepoint{};
+-        std::uint8_t state = UTF8_ACCEPT;
+-        std::size_t bytes = 0;  // number of bytes written to string_buffer
+-
+-        // number of bytes written at the point of the last valid byte
+-        std::size_t bytes_after_last_accept = 0;
+-        std::size_t undumped_chars = 0;
+-
+-        for (std::size_t i = 0; i < s.size(); ++i)
+-        {
+-            const auto byte = static_cast<std::uint8_t>(s[i]);
+-
+-            switch (decode(state, codepoint, byte))
+-            {
+-                case UTF8_ACCEPT:  // decode found a new code point
+-                {
+-                    switch (codepoint)
+-                    {
+-                        case 0x08: // backspace
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 'b';
+-                            break;
+-                        }
+-
+-                        case 0x09: // horizontal tab
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 't';
+-                            break;
+-                        }
+-
+-                        case 0x0A: // newline
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 'n';
+-                            break;
+-                        }
+-
+-                        case 0x0C: // formfeed
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 'f';
+-                            break;
+-                        }
+-
+-                        case 0x0D: // carriage return
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = 'r';
+-                            break;
+-                        }
+-
+-                        case 0x22: // quotation mark
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = '\"';
+-                            break;
+-                        }
+-
+-                        case 0x5C: // reverse solidus
+-                        {
+-                            string_buffer[bytes++] = '\\';
+-                            string_buffer[bytes++] = '\\';
+-                            break;
+-                        }
+-
+-                        default:
+-                        {
+-                            // escape control characters (0x00..0x1F) or, if
+-                            // ensure_ascii parameter is used, non-ASCII characters
+-                            if ((codepoint <= 0x1F) || (ensure_ascii && (codepoint >= 0x7F)))
+-                            {
+-                                if (codepoint <= 0xFFFF)
+-                                {
+-                                    // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-                                    static_cast<void>((std::snprintf)(string_buffer.data() + bytes, 7, "\\u%04x",
+-                                                                      static_cast<std::uint16_t>(codepoint)));
+-                                    bytes += 6;
+-                                }
+-                                else
+-                                {
+-                                    // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-                                    static_cast<void>((std::snprintf)(string_buffer.data() + bytes, 13, "\\u%04x\\u%04x",
+-                                                                      static_cast<std::uint16_t>(0xD7C0u + (codepoint >> 10u)),
+-                                                                      static_cast<std::uint16_t>(0xDC00u + (codepoint & 0x3FFu))));
+-                                    bytes += 12;
+-                                }
+-                            }
+-                            else
+-                            {
+-                                // copy byte to buffer (all previous bytes
+-                                // been copied have in default case above)
+-                                string_buffer[bytes++] = s[i];
+-                            }
+-                            break;
+-                        }
+-                    }
+-
+-                    // write buffer and reset index; there must be 13 bytes
+-                    // left, as this is the maximal number of bytes to be
+-                    // written ("\uxxxx\uxxxx\0") for one code point
+-                    if (string_buffer.size() - bytes < 13)
+-                    {
+-                        o->write_characters(string_buffer.data(), bytes);
+-                        bytes = 0;
+-                    }
+-
+-                    // remember the byte position of this accept
+-                    bytes_after_last_accept = bytes;
+-                    undumped_chars = 0;
+-                    break;
+-                }
+-
+-                case UTF8_REJECT:  // decode found invalid UTF-8 byte
+-                {
+-                    switch (error_handler)
+-                    {
+-                        case error_handler_t::strict:
+-                        {
+-                            std::stringstream ss;
+-                            ss << std::uppercase << std::setfill('0') << std::setw(2) << std::hex << (byte | 0);
+-                            JSON_THROW(type_error::create(316, "invalid UTF-8 byte at index " + std::to_string(i) + ": 0x" + ss.str(), BasicJsonType()));
+-                        }
+-
+-                        case error_handler_t::ignore:
+-                        case error_handler_t::replace:
+-                        {
+-                            // in case we saw this character the first time, we
+-                            // would like to read it again, because the byte
+-                            // may be OK for itself, but just not OK for the
+-                            // previous sequence
+-                            if (undumped_chars > 0)
+-                            {
+-                                --i;
+-                            }
+-
+-                            // reset length buffer to the last accepted index;
+-                            // thus removing/ignoring the invalid characters
+-                            bytes = bytes_after_last_accept;
+-
+-                            if (error_handler == error_handler_t::replace)
+-                            {
+-                                // add a replacement character
+-                                if (ensure_ascii)
+-                                {
+-                                    string_buffer[bytes++] = '\\';
+-                                    string_buffer[bytes++] = 'u';
+-                                    string_buffer[bytes++] = 'f';
+-                                    string_buffer[bytes++] = 'f';
+-                                    string_buffer[bytes++] = 'f';
+-                                    string_buffer[bytes++] = 'd';
+-                                }
+-                                else
+-                                {
+-                                    string_buffer[bytes++] = detail::binary_writer<BasicJsonType, char>::to_char_type('\xEF');
+-                                    string_buffer[bytes++] = detail::binary_writer<BasicJsonType, char>::to_char_type('\xBF');
+-                                    string_buffer[bytes++] = detail::binary_writer<BasicJsonType, char>::to_char_type('\xBD');
+-                                }
+-
+-                                // write buffer and reset index; there must be 13 bytes
+-                                // left, as this is the maximal number of bytes to be
+-                                // written ("\uxxxx\uxxxx\0") for one code point
+-                                if (string_buffer.size() - bytes < 13)
+-                                {
+-                                    o->write_characters(string_buffer.data(), bytes);
+-                                    bytes = 0;
+-                                }
+-
+-                                bytes_after_last_accept = bytes;
+-                            }
+-
+-                            undumped_chars = 0;
+-
+-                            // continue processing the string
+-                            state = UTF8_ACCEPT;
+-                            break;
+-                        }
+-
+-                        default:            // LCOV_EXCL_LINE
+-                            JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-                    }
+-                    break;
+-                }
+-
+-                default:  // decode found yet incomplete multi-byte code point
+-                {
+-                    if (!ensure_ascii)
+-                    {
+-                        // code point will not be escaped - copy byte to buffer
+-                        string_buffer[bytes++] = s[i];
+-                    }
+-                    ++undumped_chars;
+-                    break;
+-                }
+-            }
+-        }
+-
+-        // we finished processing the string
+-        if (JSON_HEDLEY_LIKELY(state == UTF8_ACCEPT))
+-        {
+-            // write buffer
+-            if (bytes > 0)
+-            {
+-                o->write_characters(string_buffer.data(), bytes);
+-            }
+-        }
+-        else
+-        {
+-            // we finish reading, but do not accept: string was incomplete
+-            switch (error_handler)
+-            {
+-                case error_handler_t::strict:
+-                {
+-                    std::stringstream ss;
+-                    ss << std::uppercase << std::setfill('0') << std::setw(2) << std::hex << (static_cast<std::uint8_t>(s.back()) | 0);
+-                    JSON_THROW(type_error::create(316, "incomplete UTF-8 string; last byte: 0x" + ss.str(), BasicJsonType()));
+-                }
+-
+-                case error_handler_t::ignore:
+-                {
+-                    // write all accepted bytes
+-                    o->write_characters(string_buffer.data(), bytes_after_last_accept);
+-                    break;
+-                }
+-
+-                case error_handler_t::replace:
+-                {
+-                    // write all accepted bytes
+-                    o->write_characters(string_buffer.data(), bytes_after_last_accept);
+-                    // add a replacement character
+-                    if (ensure_ascii)
+-                    {
+-                        o->write_characters("\\ufffd", 6);
+-                    }
+-                    else
+-                    {
+-                        o->write_characters("\xEF\xBF\xBD", 3);
+-                    }
+-                    break;
+-                }
+-
+-                default:            // LCOV_EXCL_LINE
+-                    JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-            }
+-        }
+-    }
+-
+-  private:
+-    /*!
+-    @brief count digits
+-
+-    Count the number of decimal (base 10) digits for an input unsigned integer.
+-
+-    @param[in] x  unsigned integer number to count its digits
+-    @return    number of decimal digits
+-    */
+-    inline unsigned int count_digits(number_unsigned_t x) noexcept
+-    {
+-        unsigned int n_digits = 1;
+-        for (;;)
+-        {
+-            if (x < 10)
+-            {
+-                return n_digits;
+-            }
+-            if (x < 100)
+-            {
+-                return n_digits + 1;
+-            }
+-            if (x < 1000)
+-            {
+-                return n_digits + 2;
+-            }
+-            if (x < 10000)
+-            {
+-                return n_digits + 3;
+-            }
+-            x = x / 10000u;
+-            n_digits += 4;
+-        }
+-    }
+-
+-    // templates to avoid warnings about useless casts
+-    template <typename NumberType, enable_if_t<std::is_signed<NumberType>::value, int> = 0>
+-    bool is_negative_number(NumberType x)
+-    {
+-        return x < 0;
+-    }
+-
+-    template < typename NumberType, enable_if_t <std::is_unsigned<NumberType>::value, int > = 0 >
+-    bool is_negative_number(NumberType /*unused*/)
+-    {
+-        return false;
+-    }
+-
+-    /*!
+-    @brief dump an integer
+-
+-    Dump a given integer to output stream @a o. Works internally with
+-    @a number_buffer.
+-
+-    @param[in] x  integer number (signed or unsigned) to dump
+-    @tparam NumberType either @a number_integer_t or @a number_unsigned_t
+-    */
+-    template < typename NumberType, detail::enable_if_t <
+-                   std::is_integral<NumberType>::value ||
+-                   std::is_same<NumberType, number_unsigned_t>::value ||
+-                   std::is_same<NumberType, number_integer_t>::value ||
+-                   std::is_same<NumberType, binary_char_t>::value,
+-                   int > = 0 >
+-    void dump_integer(NumberType x)
+-    {
+-        static constexpr std::array<std::array<char, 2>, 100> digits_to_99
+-        {
+-            {
+-                {{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}},
+-                {{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}},
+-                {{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}},
+-                {{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}},
+-                {{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}},
+-                {{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}},
+-                {{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}},
+-                {{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}},
+-                {{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}},
+-                {{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}},
+-            }
+-        };
+-
+-        // special case for "0"
+-        if (x == 0)
+-        {
+-            o->write_character('0');
+-            return;
+-        }
+-
+-        // use a pointer to fill the buffer
+-        auto buffer_ptr = number_buffer.begin(); // NOLINT(llvm-qualified-auto,readability-qualified-auto,cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-
+-        number_unsigned_t abs_value;
+-
+-        unsigned int n_chars{};
+-
+-        if (is_negative_number(x))
+-        {
+-            *buffer_ptr = '-';
+-            abs_value = remove_sign(static_cast<number_integer_t>(x));
+-
+-            // account one more byte for the minus sign
+-            n_chars = 1 + count_digits(abs_value);
+-        }
+-        else
+-        {
+-            abs_value = static_cast<number_unsigned_t>(x);
+-            n_chars = count_digits(abs_value);
+-        }
+-
+-        // spare 1 byte for '\0'
+-        JSON_ASSERT(n_chars < number_buffer.size() - 1);
+-
+-        // jump to the end to generate the string from backward,
+-        // so we later avoid reversing the result
+-        buffer_ptr += n_chars;
+-
+-        // Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
+-        // See: https://www.youtube.com/watch?v=o4-CwDo2zpg
+-        while (abs_value >= 100)
+-        {
+-            const auto digits_index = static_cast<unsigned>((abs_value % 100));
+-            abs_value /= 100;
+-            *(--buffer_ptr) = digits_to_99[digits_index][1];
+-            *(--buffer_ptr) = digits_to_99[digits_index][0];
+-        }
+-
+-        if (abs_value >= 10)
+-        {
+-            const auto digits_index = static_cast<unsigned>(abs_value);
+-            *(--buffer_ptr) = digits_to_99[digits_index][1];
+-            *(--buffer_ptr) = digits_to_99[digits_index][0];
+-        }
+-        else
+-        {
+-            *(--buffer_ptr) = static_cast<char>('0' + abs_value);
+-        }
+-
+-        o->write_characters(number_buffer.data(), n_chars);
+-    }
+-
+-    /*!
+-    @brief dump a floating-point number
+-
+-    Dump a given floating-point number to output stream @a o. Works internally
+-    with @a number_buffer.
+-
+-    @param[in] x  floating-point number to dump
+-    */
+-    void dump_float(number_float_t x)
+-    {
+-        // NaN / inf
+-        if (!std::isfinite(x))
+-        {
+-            o->write_characters("null", 4);
+-            return;
+-        }
+-
+-        // If number_float_t is an IEEE-754 single or double precision number,
+-        // use the Grisu2 algorithm to produce short numbers which are
+-        // guaranteed to round-trip, using strtof and strtod, resp.
+-        //
+-        // NB: The test below works if <long double> == <double>.
+-        static constexpr bool is_ieee_single_or_double
+-            = (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 24 && std::numeric_limits<number_float_t>::max_exponent == 128) ||
+-              (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 53 && std::numeric_limits<number_float_t>::max_exponent == 1024);
+-
+-        dump_float(x, std::integral_constant<bool, is_ieee_single_or_double>());
+-    }
+-
+-    void dump_float(number_float_t x, std::true_type /*is_ieee_single_or_double*/)
+-    {
+-        auto* begin = number_buffer.data();
+-        auto* end = ::nlohmann::detail::to_chars(begin, begin + number_buffer.size(), x);
+-
+-        o->write_characters(begin, static_cast<size_t>(end - begin));
+-    }
+-
+-    void dump_float(number_float_t x, std::false_type /*is_ieee_single_or_double*/)
+-    {
+-        // get number of digits for a float -> text -> float round-trip
+-        static constexpr auto d = std::numeric_limits<number_float_t>::max_digits10;
+-
+-        // the actual conversion
+-        // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
+-        std::ptrdiff_t len = (std::snprintf)(number_buffer.data(), number_buffer.size(), "%.*g", d, x);
+-
+-        // negative value indicates an error
+-        JSON_ASSERT(len > 0);
+-        // check if buffer was large enough
+-        JSON_ASSERT(static_cast<std::size_t>(len) < number_buffer.size());
+-
+-        // erase thousands separator
+-        if (thousands_sep != '\0')
+-        {
+-            // NOLINTNEXTLINE(readability-qualified-auto,llvm-qualified-auto): std::remove returns an iterator, see https://github.com/nlohmann/json/issues/3081
+-            const auto end = std::remove(number_buffer.begin(), number_buffer.begin() + len, thousands_sep);
+-            std::fill(end, number_buffer.end(), '\0');
+-            JSON_ASSERT((end - number_buffer.begin()) <= len);
+-            len = (end - number_buffer.begin());
+-        }
+-
+-        // convert decimal point to '.'
+-        if (decimal_point != '\0' && decimal_point != '.')
+-        {
+-            // NOLINTNEXTLINE(readability-qualified-auto,llvm-qualified-auto): std::find returns an iterator, see https://github.com/nlohmann/json/issues/3081
+-            const auto dec_pos = std::find(number_buffer.begin(), number_buffer.end(), decimal_point);
+-            if (dec_pos != number_buffer.end())
+-            {
+-                *dec_pos = '.';
+-            }
+-        }
+-
+-        o->write_characters(number_buffer.data(), static_cast<std::size_t>(len));
+-
+-        // determine if we need to append ".0"
+-        const bool value_is_int_like =
+-            std::none_of(number_buffer.begin(), number_buffer.begin() + len + 1,
+-                         [](char c)
+-        {
+-            return c == '.' || c == 'e';
+-        });
+-
+-        if (value_is_int_like)
+-        {
+-            o->write_characters(".0", 2);
+-        }
+-    }
+-
+-    /*!
+-    @brief check whether a string is UTF-8 encoded
+-
+-    The function checks each byte of a string whether it is UTF-8 encoded. The
+-    result of the check is stored in the @a state parameter. The function must
+-    be called initially with state 0 (accept). State 1 means the string must
+-    be rejected, because the current byte is not allowed. If the string is
+-    completely processed, but the state is non-zero, the string ended
+-    prematurely; that is, the last byte indicated more bytes should have
+-    followed.
+-
+-    @param[in,out] state  the state of the decoding
+-    @param[in,out] codep  codepoint (valid only if resulting state is UTF8_ACCEPT)
+-    @param[in] byte       next byte to decode
+-    @return               new state
+-
+-    @note The function has been edited: a std::array is used.
+-
+-    @copyright Copyright (c) 2008-2009 Bjoern Hoehrmann <bjoern@hoehrmann.de>
+-    @sa http://bjoern.hoehrmann.de/utf-8/decoder/dfa/
+-    */
+-    static std::uint8_t decode(std::uint8_t& state, std::uint32_t& codep, const std::uint8_t byte) noexcept
+-    {
+-        static const std::array<std::uint8_t, 400> utf8d =
+-        {
+-            {
+-                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 00..1F
+-                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 20..3F
+-                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 40..5F
+-                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 60..7F
+-                1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, // 80..9F
+-                7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // A0..BF
+-                8, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, // C0..DF
+-                0xA, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x4, 0x3, 0x3, // E0..EF
+-                0xB, 0x6, 0x6, 0x6, 0x5, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, // F0..FF
+-                0x0, 0x1, 0x2, 0x3, 0x5, 0x8, 0x7, 0x1, 0x1, 0x1, 0x4, 0x6, 0x1, 0x1, 0x1, 0x1, // s0..s0
+-                1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, // s1..s2
+-                1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, // s3..s4
+-                1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, // s5..s6
+-                1, 3, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 // s7..s8
+-            }
+-        };
+-
+-        JSON_ASSERT(byte < utf8d.size());
+-        const std::uint8_t type = utf8d[byte];
+-
+-        codep = (state != UTF8_ACCEPT)
+-                ? (byte & 0x3fu) | (codep << 6u)
+-                : (0xFFu >> type) & (byte);
+-
+-        std::size_t index = 256u + static_cast<size_t>(state) * 16u + static_cast<size_t>(type);
+-        JSON_ASSERT(index < 400);
+-        state = utf8d[index];
+-        return state;
+-    }
+-
+-    /*
+-     * Overload to make the compiler happy while it is instantiating
+-     * dump_integer for number_unsigned_t.
+-     * Must never be called.
+-     */
+-    number_unsigned_t remove_sign(number_unsigned_t x)
+-    {
+-        JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        return x; // LCOV_EXCL_LINE
+-    }
+-
+-    /*
+-     * Helper function for dump_integer
+-     *
+-     * This function takes a negative signed integer and returns its absolute
+-     * value as unsigned integer. The plus/minus shuffling is necessary as we can
+-     * not directly remove the sign of an arbitrary signed integer as the
+-     * absolute values of INT_MIN and INT_MAX are usually not the same. See
+-     * #1708 for details.
+-     */
+-    inline number_unsigned_t remove_sign(number_integer_t x) noexcept
+-    {
+-        JSON_ASSERT(x < 0 && x < (std::numeric_limits<number_integer_t>::max)()); // NOLINT(misc-redundant-expression)
+-        return static_cast<number_unsigned_t>(-(x + 1)) + 1;
+-    }
+-
+-  private:
+-    /// the output of the serializer
+-    output_adapter_t<char> o = nullptr;
+-
+-    /// a (hopefully) large enough character buffer
+-    std::array<char, 64> number_buffer{{}};
+-
+-    /// the locale
+-    const std::lconv* loc = nullptr;
+-    /// the locale's thousand separator character
+-    const char thousands_sep = '\0';
+-    /// the locale's decimal point character
+-    const char decimal_point = '\0';
+-
+-    /// string buffer
+-    std::array<char, 512> string_buffer{{}};
+-
+-    /// the indentation character
+-    const char indent_char;
+-    /// the indentation string
+-    string_t indent_string;
+-
+-    /// error_handler how to react on decoding errors
+-    const error_handler_t error_handler;
+-};
+-}  // namespace detail
+-}  // namespace nlohmann
+-
+-// #include <nlohmann/detail/value_t.hpp>
+-
+-// #include <nlohmann/json_fwd.hpp>
+-
+-// #include <nlohmann/ordered_map.hpp>
+-
+-
+-#include <functional> // less
+-#include <initializer_list> // initializer_list
+-#include <iterator> // input_iterator_tag, iterator_traits
+-#include <memory> // allocator
+-#include <stdexcept> // for out_of_range
+-#include <type_traits> // enable_if, is_convertible
+-#include <utility> // pair
+-#include <vector> // vector
+-
+-// #include <nlohmann/detail/macro_scope.hpp>
+-
+-
+-namespace nlohmann
+-{
+-
+-/// ordered_map: a minimal map-like container that preserves insertion order
+-/// for use within nlohmann::basic_json<ordered_map>
+-template <class Key, class T, class IgnoredLess = std::less<Key>,
+-          class Allocator = std::allocator<std::pair<const Key, T>>>
+-                  struct ordered_map : std::vector<std::pair<const Key, T>, Allocator>
+-{
+-    using key_type = Key;
+-    using mapped_type = T;
+-    using Container = std::vector<std::pair<const Key, T>, Allocator>;
+-    using iterator = typename Container::iterator;
+-    using const_iterator = typename Container::const_iterator;
+-    using size_type = typename Container::size_type;
+-    using value_type = typename Container::value_type;
+-
+-    // Explicit constructors instead of `using Container::Container`
+-    // otherwise older compilers choke on it (GCC <= 5.5, xcode <= 9.4)
+-    ordered_map(const Allocator& alloc = Allocator()) : Container{alloc} {}
+-    template <class It>
+-    ordered_map(It first, It last, const Allocator& alloc = Allocator())
+-        : Container{first, last, alloc} {}
+-    ordered_map(std::initializer_list<T> init, const Allocator& alloc = Allocator() )
+-        : Container{init, alloc} {}
+-
+-    std::pair<iterator, bool> emplace(const key_type& key, T&& t)
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return {it, false};
+-            }
+-        }
+-        Container::emplace_back(key, t);
+-        return {--this->end(), true};
+-    }
+-
+-    T& operator[](const Key& key)
+-    {
+-        return emplace(key, T{}).first->second;
+-    }
+-
+-    const T& operator[](const Key& key) const
+-    {
+-        return at(key);
+-    }
+-
+-    T& at(const Key& key)
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return it->second;
+-            }
+-        }
+-
+-        JSON_THROW(std::out_of_range("key not found"));
+-    }
+-
+-    const T& at(const Key& key) const
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return it->second;
+-            }
+-        }
+-
+-        JSON_THROW(std::out_of_range("key not found"));
+-    }
+-
+-    size_type erase(const Key& key)
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                // Since we cannot move const Keys, re-construct them in place
+-                for (auto next = it; ++next != this->end(); ++it)
+-                {
+-                    it->~value_type(); // Destroy but keep allocation
+-                    new (&*it) value_type{std::move(*next)};
+-                }
+-                Container::pop_back();
+-                return 1;
+-            }
+-        }
+-        return 0;
+-    }
+-
+-    iterator erase(iterator pos)
+-    {
+-        return erase(pos, std::next(pos));
+-    }
+-
+-    iterator erase(iterator first, iterator last)
+-    {
+-        const auto elements_affected = std::distance(first, last);
+-        const auto offset = std::distance(Container::begin(), first);
+-
+-        // This is the start situation. We need to delete elements_affected
+-        // elements (3 in this example: e, f, g), and need to return an
+-        // iterator past the last deleted element (h in this example).
+-        // Note that offset is the distance from the start of the vector
+-        // to first. We will need this later.
+-
+-        // [ a, b, c, d, e, f, g, h, i, j ]
+-        //               ^        ^
+-        //             first    last
+-
+-        // Since we cannot move const Keys, we re-construct them in place.
+-        // We start at first and re-construct (viz. copy) the elements from
+-        // the back of the vector. Example for first iteration:
+-
+-        //               ,--------.
+-        //               v        |   destroy e and re-construct with h
+-        // [ a, b, c, d, e, f, g, h, i, j ]
+-        //               ^        ^
+-        //               it       it + elements_affected
+-
+-        for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it)
+-        {
+-            it->~value_type(); // destroy but keep allocation
+-            new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it
+-        }
+-
+-        // [ a, b, c, d, h, i, j, h, i, j ]
+-        //               ^        ^
+-        //             first    last
+-
+-        // remove the unneeded elements at the end of the vector
+-        Container::resize(this->size() - static_cast<size_type>(elements_affected));
+-
+-        // [ a, b, c, d, h, i, j ]
+-        //               ^        ^
+-        //             first    last
+-
+-        // first is now pointing past the last deleted element, but we cannot
+-        // use this iterator, because it may have been invalidated by the
+-        // resize call. Instead, we can return begin() + offset.
+-        return Container::begin() + offset;
+-    }
+-
+-    size_type count(const Key& key) const
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return 1;
+-            }
+-        }
+-        return 0;
+-    }
+-
+-    iterator find(const Key& key)
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return it;
+-            }
+-        }
+-        return Container::end();
+-    }
+-
+-    const_iterator find(const Key& key) const
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == key)
+-            {
+-                return it;
+-            }
+-        }
+-        return Container::end();
+-    }
+-
+-    std::pair<iterator, bool> insert( value_type&& value )
+-    {
+-        return emplace(value.first, std::move(value.second));
+-    }
+-
+-    std::pair<iterator, bool> insert( const value_type& value )
+-    {
+-        for (auto it = this->begin(); it != this->end(); ++it)
+-        {
+-            if (it->first == value.first)
+-            {
+-                return {it, false};
+-            }
+-        }
+-        Container::push_back(value);
+-        return {--this->end(), true};
+-    }
+-
+-    template<typename InputIt>
+-    using require_input_iter = typename std::enable_if<std::is_convertible<typename std::iterator_traits<InputIt>::iterator_category,
+-            std::input_iterator_tag>::value>::type;
+-
+-    template<typename InputIt, typename = require_input_iter<InputIt>>
+-    void insert(InputIt first, InputIt last)
+-    {
+-        for (auto it = first; it != last; ++it)
+-        {
+-            insert(*it);
+-        }
+-    }
+-};
+-
+-}  // namespace nlohmann
+-
+-
+-#if defined(JSON_HAS_CPP_17)
+-    #include <string_view>
+-#endif
+-
+-/*!
+-@brief namespace for Niels Lohmann
+-@see https://github.com/nlohmann
+-@since version 1.0.0
+-*/
+-namespace nlohmann
+-{
+-
+-/*!
+-@brief a class to store JSON values
+-
+-@internal
+-@invariant The member variables @a m_value and @a m_type have the following
+-relationship:
+-- If `m_type == value_t::object`, then `m_value.object != nullptr`.
+-- If `m_type == value_t::array`, then `m_value.array != nullptr`.
+-- If `m_type == value_t::string`, then `m_value.string != nullptr`.
+-The invariants are checked by member function assert_invariant().
+-
+-@note ObjectType trick from https://stackoverflow.com/a/9860911
+-@endinternal
+-
+-@since version 1.0.0
+-
+-@nosubgrouping
+-*/
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-special-member-functions)
+-{
+-  private:
+-    template<detail::value_t> friend struct detail::external_constructor;
+-    friend ::nlohmann::json_pointer<basic_json>;
+-
+-    template<typename BasicJsonType, typename InputType>
+-    friend class ::nlohmann::detail::parser;
+-    friend ::nlohmann::detail::serializer<basic_json>;
+-    template<typename BasicJsonType>
+-    friend class ::nlohmann::detail::iter_impl;
+-    template<typename BasicJsonType, typename CharType>
+-    friend class ::nlohmann::detail::binary_writer;
+-    template<typename BasicJsonType, typename InputType, typename SAX>
+-    friend class ::nlohmann::detail::binary_reader;
+-    template<typename BasicJsonType>
+-    friend class ::nlohmann::detail::json_sax_dom_parser;
+-    template<typename BasicJsonType>
+-    friend class ::nlohmann::detail::json_sax_dom_callback_parser;
+-    friend class ::nlohmann::detail::exception;
+-
+-    /// workaround type for MSVC
+-    using basic_json_t = NLOHMANN_BASIC_JSON_TPL;
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    // convenience aliases for types residing in namespace detail;
+-    using lexer = ::nlohmann::detail::lexer_base<basic_json>;
+-
+-    template<typename InputAdapterType>
+-    static ::nlohmann::detail::parser<basic_json, InputAdapterType> parser(
+-        InputAdapterType adapter,
+-        detail::parser_callback_t<basic_json>cb = nullptr,
+-        const bool allow_exceptions = true,
+-        const bool ignore_comments = false
+-                                 )
+-    {
+-        return ::nlohmann::detail::parser<basic_json, InputAdapterType>(std::move(adapter),
+-                std::move(cb), allow_exceptions, ignore_comments);
+-    }
+-
+-  private:
+-    using primitive_iterator_t = ::nlohmann::detail::primitive_iterator_t;
+-    template<typename BasicJsonType>
+-    using internal_iterator = ::nlohmann::detail::internal_iterator<BasicJsonType>;
+-    template<typename BasicJsonType>
+-    using iter_impl = ::nlohmann::detail::iter_impl<BasicJsonType>;
+-    template<typename Iterator>
+-    using iteration_proxy = ::nlohmann::detail::iteration_proxy<Iterator>;
+-    template<typename Base> using json_reverse_iterator = ::nlohmann::detail::json_reverse_iterator<Base>;
+-
+-    template<typename CharType>
+-    using output_adapter_t = ::nlohmann::detail::output_adapter_t<CharType>;
+-
+-    template<typename InputType>
+-    using binary_reader = ::nlohmann::detail::binary_reader<basic_json, InputType>;
+-    template<typename CharType> using binary_writer = ::nlohmann::detail::binary_writer<basic_json, CharType>;
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    using serializer = ::nlohmann::detail::serializer<basic_json>;
+-
+-  public:
+-    using value_t = detail::value_t;
+-    /// JSON Pointer, see @ref nlohmann::json_pointer
+-    using json_pointer = ::nlohmann::json_pointer<basic_json>;
+-    template<typename T, typename SFINAE>
+-    using json_serializer = JSONSerializer<T, SFINAE>;
+-    /// how to treat decoding errors
+-    using error_handler_t = detail::error_handler_t;
+-    /// how to treat CBOR tags
+-    using cbor_tag_handler_t = detail::cbor_tag_handler_t;
+-    /// helper type for initializer lists of basic_json values
+-    using initializer_list_t = std::initializer_list<detail::json_ref<basic_json>>;
+-
+-    using input_format_t = detail::input_format_t;
+-    /// SAX interface type, see @ref nlohmann::json_sax
+-    using json_sax_t = json_sax<basic_json>;
+-
+-    ////////////////
+-    // exceptions //
+-    ////////////////
+-
+-    /// @name exceptions
+-    /// Classes to implement user-defined exceptions.
+-    /// @{
+-
+-    using exception = detail::exception;
+-    using parse_error = detail::parse_error;
+-    using invalid_iterator = detail::invalid_iterator;
+-    using type_error = detail::type_error;
+-    using out_of_range = detail::out_of_range;
+-    using other_error = detail::other_error;
+-
+-    /// @}
+-
+-
+-    /////////////////////
+-    // container types //
+-    /////////////////////
+-
+-    /// @name container types
+-    /// The canonic container types to use @ref basic_json like any other STL
+-    /// container.
+-    /// @{
+-
+-    /// the type of elements in a basic_json container
+-    using value_type = basic_json;
+-
+-    /// the type of an element reference
+-    using reference = value_type&;
+-    /// the type of an element const reference
+-    using const_reference = const value_type&;
+-
+-    /// a type to represent differences between iterators
+-    using difference_type = std::ptrdiff_t;
+-    /// a type to represent container sizes
+-    using size_type = std::size_t;
+-
+-    /// the allocator type
+-    using allocator_type = AllocatorType<basic_json>;
+-
+-    /// the type of an element pointer
+-    using pointer = typename std::allocator_traits<allocator_type>::pointer;
+-    /// the type of an element const pointer
+-    using const_pointer = typename std::allocator_traits<allocator_type>::const_pointer;
+-
+-    /// an iterator for a basic_json container
+-    using iterator = iter_impl<basic_json>;
+-    /// a const iterator for a basic_json container
+-    using const_iterator = iter_impl<const basic_json>;
+-    /// a reverse iterator for a basic_json container
+-    using reverse_iterator = json_reverse_iterator<typename basic_json::iterator>;
+-    /// a const reverse iterator for a basic_json container
+-    using const_reverse_iterator = json_reverse_iterator<typename basic_json::const_iterator>;
+-
+-    /// @}
+-
+-
+-    /// @brief returns the allocator associated with the container
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_allocator/
+-    static allocator_type get_allocator()
+-    {
+-        return allocator_type();
+-    }
+-
+-    /// @brief returns version information on the library
+-    /// @sa https://json.nlohmann.me/api/basic_json/meta/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json meta()
+-    {
+-        basic_json result;
+-
+-        result["copyright"] = "(C) 2013-2022 Niels Lohmann";
+-        result["name"] = "JSON for Modern C++";
+-        result["url"] = "https://github.com/nlohmann/json";
+-        result["version"]["string"] =
+-            std::to_string(NLOHMANN_JSON_VERSION_MAJOR) + "." +
+-            std::to_string(NLOHMANN_JSON_VERSION_MINOR) + "." +
+-            std::to_string(NLOHMANN_JSON_VERSION_PATCH);
+-        result["version"]["major"] = NLOHMANN_JSON_VERSION_MAJOR;
+-        result["version"]["minor"] = NLOHMANN_JSON_VERSION_MINOR;
+-        result["version"]["patch"] = NLOHMANN_JSON_VERSION_PATCH;
+-
+-#ifdef _WIN32
+-        result["platform"] = "win32";
+-#elif defined __linux__
+-        result["platform"] = "linux";
+-#elif defined __APPLE__
+-        result["platform"] = "apple";
+-#elif defined __unix__
+-        result["platform"] = "unix";
+-#else
+-        result["platform"] = "unknown";
+-#endif
+-
+-#if defined(__ICC) || defined(__INTEL_COMPILER)
+-        result["compiler"] = {{"family", "icc"}, {"version", __INTEL_COMPILER}};
+-#elif defined(__clang__)
+-        result["compiler"] = {{"family", "clang"}, {"version", __clang_version__}};
+-#elif defined(__GNUC__) || defined(__GNUG__)
+-        result["compiler"] = {{"family", "gcc"}, {"version", std::to_string(__GNUC__) + "." + std::to_string(__GNUC_MINOR__) + "." + std::to_string(__GNUC_PATCHLEVEL__)}};
+-#elif defined(__HP_cc) || defined(__HP_aCC)
+-        result["compiler"] = "hp"
+-#elif defined(__IBMCPP__)
+-        result["compiler"] = {{"family", "ilecpp"}, {"version", __IBMCPP__}};
+-#elif defined(_MSC_VER)
+-        result["compiler"] = {{"family", "msvc"}, {"version", _MSC_VER}};
+-#elif defined(__PGI)
+-        result["compiler"] = {{"family", "pgcpp"}, {"version", __PGI}};
+-#elif defined(__SUNPRO_CC)
+-        result["compiler"] = {{"family", "sunpro"}, {"version", __SUNPRO_CC}};
+-#else
+-        result["compiler"] = {{"family", "unknown"}, {"version", "unknown"}};
+-#endif
+-
+-#ifdef __cplusplus
+-        result["compiler"]["c++"] = std::to_string(__cplusplus);
+-#else
+-        result["compiler"]["c++"] = "unknown";
+-#endif
+-        return result;
+-    }
+-
+-
+-    ///////////////////////////
+-    // JSON value data types //
+-    ///////////////////////////
+-
+-    /// @name JSON value data types
+-    /// The data types to store a JSON value. These types are derived from
+-    /// the template arguments passed to class @ref basic_json.
+-    /// @{
+-
+-    /// @brief object key comparator type
+-    /// @sa https://json.nlohmann.me/api/basic_json/object_comparator_t/
+-#if defined(JSON_HAS_CPP_14)
+-    // Use transparent comparator if possible, combined with perfect forwarding
+-    // on find() and count() calls prevents unnecessary string construction.
+-    using object_comparator_t = std::less<>;
+-#else
+-    using object_comparator_t = std::less<StringType>;
+-#endif
+-
+-    /// @brief a type for an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/object_t/
+-    using object_t = ObjectType<StringType,
+-          basic_json,
+-          object_comparator_t,
+-          AllocatorType<std::pair<const StringType,
+-          basic_json>>>;
+-
+-    /// @brief a type for an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/array_t/
+-    using array_t = ArrayType<basic_json, AllocatorType<basic_json>>;
+-
+-    /// @brief a type for a string
+-    /// @sa https://json.nlohmann.me/api/basic_json/string_t/
+-    using string_t = StringType;
+-
+-    /// @brief a type for a boolean
+-    /// @sa https://json.nlohmann.me/api/basic_json/boolean_t/
+-    using boolean_t = BooleanType;
+-
+-    /// @brief a type for a number (integer)
+-    /// @sa https://json.nlohmann.me/api/basic_json/number_integer_t/
+-    using number_integer_t = NumberIntegerType;
+-
+-    /// @brief a type for a number (unsigned)
+-    /// @sa https://json.nlohmann.me/api/basic_json/number_unsigned_t/
+-    using number_unsigned_t = NumberUnsignedType;
+-
+-    /// @brief a type for a number (floating-point)
+-    /// @sa https://json.nlohmann.me/api/basic_json/number_float_t/
+-    using number_float_t = NumberFloatType;
+-
+-    /// @brief a type for a packed binary type
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary_t/
+-    using binary_t = nlohmann::byte_container_with_subtype<BinaryType>;
+-
+-    /// @}
+-
+-  private:
+-
+-    /// helper for exception-safe object creation
+-    template<typename T, typename... Args>
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    static T* create(Args&& ... args)
+-    {
+-        AllocatorType<T> alloc;
+-        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
+-
+-        auto deleter = [&](T * obj)
+-        {
+-            AllocatorTraits::deallocate(alloc, obj, 1);
+-        };
+-        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
+-        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
+-        JSON_ASSERT(obj != nullptr);
+-        return obj.release();
+-    }
+-
+-    ////////////////////////
+-    // JSON value storage //
+-    ////////////////////////
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    /*!
+-    @brief a JSON value
+-
+-    The actual storage for a JSON value of the @ref basic_json class. This
+-    union combines the different storage types for the JSON value types
+-    defined in @ref value_t.
+-
+-    JSON type | value_t type    | used type
+-    --------- | --------------- | ------------------------
+-    object    | object          | pointer to @ref object_t
+-    array     | array           | pointer to @ref array_t
+-    string    | string          | pointer to @ref string_t
+-    boolean   | boolean         | @ref boolean_t
+-    number    | number_integer  | @ref number_integer_t
+-    number    | number_unsigned | @ref number_unsigned_t
+-    number    | number_float    | @ref number_float_t
+-    binary    | binary          | pointer to @ref binary_t
+-    null      | null            | *no value is stored*
+-
+-    @note Variable-length types (objects, arrays, and strings) are stored as
+-    pointers. The size of the union should not exceed 64 bits if the default
+-    value types are used.
+-
+-    @since version 1.0.0
+-    */
+-    union json_value
+-    {
+-        /// object (stored with pointer to save storage)
+-        object_t* object;
+-        /// array (stored with pointer to save storage)
+-        array_t* array;
+-        /// string (stored with pointer to save storage)
+-        string_t* string;
+-        /// binary (stored with pointer to save storage)
+-        binary_t* binary;
+-        /// boolean
+-        boolean_t boolean;
+-        /// number (integer)
+-        number_integer_t number_integer;
+-        /// number (unsigned integer)
+-        number_unsigned_t number_unsigned;
+-        /// number (floating-point)
+-        number_float_t number_float;
+-
+-        /// default constructor (for null values)
+-        json_value() = default;
+-        /// constructor for booleans
+-        json_value(boolean_t v) noexcept : boolean(v) {}
+-        /// constructor for numbers (integer)
+-        json_value(number_integer_t v) noexcept : number_integer(v) {}
+-        /// constructor for numbers (unsigned)
+-        json_value(number_unsigned_t v) noexcept : number_unsigned(v) {}
+-        /// constructor for numbers (floating-point)
+-        json_value(number_float_t v) noexcept : number_float(v) {}
+-        /// constructor for empty values of a given type
+-        json_value(value_t t)
+-        {
+-            switch (t)
+-            {
+-                case value_t::object:
+-                {
+-                    object = create<object_t>();
+-                    break;
+-                }
+-
+-                case value_t::array:
+-                {
+-                    array = create<array_t>();
+-                    break;
+-                }
+-
+-                case value_t::string:
+-                {
+-                    string = create<string_t>("");
+-                    break;
+-                }
+-
+-                case value_t::binary:
+-                {
+-                    binary = create<binary_t>();
+-                    break;
+-                }
+-
+-                case value_t::boolean:
+-                {
+-                    boolean = static_cast<boolean_t>(false);
+-                    break;
+-                }
+-
+-                case value_t::number_integer:
+-                {
+-                    number_integer = static_cast<number_integer_t>(0);
+-                    break;
+-                }
+-
+-                case value_t::number_unsigned:
+-                {
+-                    number_unsigned = static_cast<number_unsigned_t>(0);
+-                    break;
+-                }
+-
+-                case value_t::number_float:
+-                {
+-                    number_float = static_cast<number_float_t>(0.0);
+-                    break;
+-                }
+-
+-                case value_t::null:
+-                {
+-                    object = nullptr;  // silence warning, see #821
+-                    break;
+-                }
+-
+-                case value_t::discarded:
+-                default:
+-                {
+-                    object = nullptr;  // silence warning, see #821
+-                    if (JSON_HEDLEY_UNLIKELY(t == value_t::null))
+-                    {
+-                        JSON_THROW(other_error::create(500, "961c151d2e87f2686a955a9be24d316f1362bf21 3.10.5", basic_json())); // LCOV_EXCL_LINE
+-                    }
+-                    break;
+-                }
+-            }
+-        }
+-
+-        /// constructor for strings
+-        json_value(const string_t& value) : string(create<string_t>(value)) {}
+-
+-        /// constructor for rvalue strings
+-        json_value(string_t&& value) : string(create<string_t>(std::move(value))) {}
+-
+-        /// constructor for objects
+-        json_value(const object_t& value) : object(create<object_t>(value)) {}
+-
+-        /// constructor for rvalue objects
+-        json_value(object_t&& value) : object(create<object_t>(std::move(value))) {}
+-
+-        /// constructor for arrays
+-        json_value(const array_t& value) : array(create<array_t>(value)) {}
+-
+-        /// constructor for rvalue arrays
+-        json_value(array_t&& value) : array(create<array_t>(std::move(value))) {}
+-
+-        /// constructor for binary arrays
+-        json_value(const typename binary_t::container_type& value) : binary(create<binary_t>(value)) {}
+-
+-        /// constructor for rvalue binary arrays
+-        json_value(typename binary_t::container_type&& value) : binary(create<binary_t>(std::move(value))) {}
+-
+-        /// constructor for binary arrays (internal type)
+-        json_value(const binary_t& value) : binary(create<binary_t>(value)) {}
+-
+-        /// constructor for rvalue binary arrays (internal type)
+-        json_value(binary_t&& value) : binary(create<binary_t>(std::move(value))) {}
+-
+-        void destroy(value_t t)
+-        {
+-            if (t == value_t::array || t == value_t::object)
+-            {
+-                // flatten the current json_value to a heap-allocated stack
+-                std::vector<basic_json> stack;
+-
+-                // move the top-level items to stack
+-                if (t == value_t::array)
+-                {
+-                    stack.reserve(array->size());
+-                    std::move(array->begin(), array->end(), std::back_inserter(stack));
+-                }
+-                else
+-                {
+-                    stack.reserve(object->size());
+-                    for (auto&& it : *object)
+-                    {
+-                        stack.push_back(std::move(it.second));
+-                    }
+-                }
+-
+-                while (!stack.empty())
+-                {
+-                    // move the last item to local variable to be processed
+-                    basic_json current_item(std::move(stack.back()));
+-                    stack.pop_back();
+-
+-                    // if current_item is array/object, move
+-                    // its children to the stack to be processed later
+-                    if (current_item.is_array())
+-                    {
+-                        std::move(current_item.m_value.array->begin(), current_item.m_value.array->end(), std::back_inserter(stack));
+-
+-                        current_item.m_value.array->clear();
+-                    }
+-                    else if (current_item.is_object())
+-                    {
+-                        for (auto&& it : *current_item.m_value.object)
+-                        {
+-                            stack.push_back(std::move(it.second));
+-                        }
+-
+-                        current_item.m_value.object->clear();
+-                    }
+-
+-                    // it's now safe that current_item get destructed
+-                    // since it doesn't have any children
+-                }
+-            }
+-
+-            switch (t)
+-            {
+-                case value_t::object:
+-                {
+-                    AllocatorType<object_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, object);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1);
+-                    break;
+-                }
+-
+-                case value_t::array:
+-                {
+-                    AllocatorType<array_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, array);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1);
+-                    break;
+-                }
+-
+-                case value_t::string:
+-                {
+-                    AllocatorType<string_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, string);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1);
+-                    break;
+-                }
+-
+-                case value_t::binary:
+-                {
+-                    AllocatorType<binary_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, binary);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1);
+-                    break;
+-                }
+-
+-                case value_t::null:
+-                case value_t::boolean:
+-                case value_t::number_integer:
+-                case value_t::number_unsigned:
+-                case value_t::number_float:
+-                case value_t::discarded:
+-                default:
+-                {
+-                    break;
+-                }
+-            }
+-        }
+-    };
+-
+-  private:
+-    /*!
+-    @brief checks the class invariants
+-
+-    This function asserts the class invariants. It needs to be called at the
+-    end of every constructor to make sure that created objects respect the
+-    invariant. Furthermore, it has to be called each time the type of a JSON
+-    value is changed, because the invariant expresses a relationship between
+-    @a m_type and @a m_value.
+-
+-    Furthermore, the parent relation is checked for arrays and objects: If
+-    @a check_parents true and the value is an array or object, then the
+-    container's elements must have the current value as parent.
+-
+-    @param[in] check_parents  whether the parent relation should be checked.
+-               The value is true by default and should only be set to false
+-               during destruction of objects when the invariant does not
+-               need to hold.
+-    */
+-    void assert_invariant(bool check_parents = true) const noexcept
+-    {
+-        JSON_ASSERT(m_type != value_t::object || m_value.object != nullptr);
+-        JSON_ASSERT(m_type != value_t::array || m_value.array != nullptr);
+-        JSON_ASSERT(m_type != value_t::string || m_value.string != nullptr);
+-        JSON_ASSERT(m_type != value_t::binary || m_value.binary != nullptr);
+-
+-#if JSON_DIAGNOSTICS
+-        JSON_TRY
+-        {
+-            // cppcheck-suppress assertWithSideEffect
+-            JSON_ASSERT(!check_parents || !is_structured() || std::all_of(begin(), end(), [this](const basic_json & j)
+-            {
+-                return j.m_parent == this;
+-            }));
+-        }
+-        JSON_CATCH(...) {} // LCOV_EXCL_LINE
+-#endif
+-        static_cast<void>(check_parents);
+-    }
+-
+-    void set_parents()
+-    {
+-#if JSON_DIAGNOSTICS
+-        switch (m_type)
+-        {
+-            case value_t::array:
+-            {
+-                for (auto& element : *m_value.array)
+-                {
+-                    element.m_parent = this;
+-                }
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                for (auto& element : *m_value.object)
+-                {
+-                    element.second.m_parent = this;
+-                }
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-#endif
+-    }
+-
+-    iterator set_parents(iterator it, typename iterator::difference_type count_set_parents)
+-    {
+-#if JSON_DIAGNOSTICS
+-        for (typename iterator::difference_type i = 0; i < count_set_parents; ++i)
+-        {
+-            (it + i)->m_parent = this;
+-        }
+-#else
+-        static_cast<void>(count_set_parents);
+-#endif
+-        return it;
+-    }
+-
+-    reference set_parent(reference j, std::size_t old_capacity = static_cast<std::size_t>(-1))
+-    {
+-#if JSON_DIAGNOSTICS
+-        if (old_capacity != static_cast<std::size_t>(-1))
+-        {
+-            // see https://github.com/nlohmann/json/issues/2838
+-            JSON_ASSERT(type() == value_t::array);
+-            if (JSON_HEDLEY_UNLIKELY(m_value.array->capacity() != old_capacity))
+-            {
+-                // capacity has changed: update all parents
+-                set_parents();
+-                return j;
+-            }
+-        }
+-
+-        // ordered_json uses a vector internally, so pointers could have
+-        // been invalidated; see https://github.com/nlohmann/json/issues/2962
+-#ifdef JSON_HEDLEY_MSVC_VERSION
+-#pragma warning(push )
+-#pragma warning(disable : 4127) // ignore warning to replace if with if constexpr
+-#endif
+-        if (detail::is_ordered_map<object_t>::value)
+-        {
+-            set_parents();
+-            return j;
+-        }
+-#ifdef JSON_HEDLEY_MSVC_VERSION
+-#pragma warning( pop )
+-#endif
+-
+-        j.m_parent = this;
+-#else
+-        static_cast<void>(j);
+-        static_cast<void>(old_capacity);
+-#endif
+-        return j;
+-    }
+-
+-  public:
+-    //////////////////////////
+-    // JSON parser callback //
+-    //////////////////////////
+-
+-    /// @brief parser event types
+-    /// @sa https://json.nlohmann.me/api/basic_json/parse_event_t/
+-    using parse_event_t = detail::parse_event_t;
+-
+-    /// @brief per-element parser callback type
+-    /// @sa https://json.nlohmann.me/api/basic_json/parser_callback_t/
+-    using parser_callback_t = detail::parser_callback_t<basic_json>;
+-
+-    //////////////////
+-    // constructors //
+-    //////////////////
+-
+-    /// @name constructors and destructors
+-    /// Constructors of class @ref basic_json, copy/move constructor, copy
+-    /// assignment, static functions creating objects, and the destructor.
+-    /// @{
+-
+-    /// @brief create an empty value with a given type
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(const value_t v)
+-        : m_type(v), m_value(v)
+-    {
+-        assert_invariant();
+-    }
+-
+-    /// @brief create a null object
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(std::nullptr_t = nullptr) noexcept
+-        : basic_json(value_t::null)
+-    {
+-        assert_invariant();
+-    }
+-
+-    /// @brief create a JSON value from compatible types
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    template < typename CompatibleType,
+-               typename U = detail::uncvref_t<CompatibleType>,
+-               detail::enable_if_t <
+-                   !detail::is_basic_json<U>::value && detail::is_compatible_type<basic_json_t, U>::value, int > = 0 >
+-    basic_json(CompatibleType && val) noexcept(noexcept( // NOLINT(bugprone-forwarding-reference-overload,bugprone-exception-escape)
+-                JSONSerializer<U>::to_json(std::declval<basic_json_t&>(),
+-                                           std::forward<CompatibleType>(val))))
+-    {
+-        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief create a JSON value from an existing one
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    template < typename BasicJsonType,
+-               detail::enable_if_t <
+-                   detail::is_basic_json<BasicJsonType>::value&& !std::is_same<basic_json, BasicJsonType>::value, int > = 0 >
+-    basic_json(const BasicJsonType& val)
+-    {
+-        using other_boolean_t = typename BasicJsonType::boolean_t;
+-        using other_number_float_t = typename BasicJsonType::number_float_t;
+-        using other_number_integer_t = typename BasicJsonType::number_integer_t;
+-        using other_number_unsigned_t = typename BasicJsonType::number_unsigned_t;
+-        using other_string_t = typename BasicJsonType::string_t;
+-        using other_object_t = typename BasicJsonType::object_t;
+-        using other_array_t = typename BasicJsonType::array_t;
+-        using other_binary_t = typename BasicJsonType::binary_t;
+-
+-        switch (val.type())
+-        {
+-            case value_t::boolean:
+-                JSONSerializer<other_boolean_t>::to_json(*this, val.template get<other_boolean_t>());
+-                break;
+-            case value_t::number_float:
+-                JSONSerializer<other_number_float_t>::to_json(*this, val.template get<other_number_float_t>());
+-                break;
+-            case value_t::number_integer:
+-                JSONSerializer<other_number_integer_t>::to_json(*this, val.template get<other_number_integer_t>());
+-                break;
+-            case value_t::number_unsigned:
+-                JSONSerializer<other_number_unsigned_t>::to_json(*this, val.template get<other_number_unsigned_t>());
+-                break;
+-            case value_t::string:
+-                JSONSerializer<other_string_t>::to_json(*this, val.template get_ref<const other_string_t&>());
+-                break;
+-            case value_t::object:
+-                JSONSerializer<other_object_t>::to_json(*this, val.template get_ref<const other_object_t&>());
+-                break;
+-            case value_t::array:
+-                JSONSerializer<other_array_t>::to_json(*this, val.template get_ref<const other_array_t&>());
+-                break;
+-            case value_t::binary:
+-                JSONSerializer<other_binary_t>::to_json(*this, val.template get_ref<const other_binary_t&>());
+-                break;
+-            case value_t::null:
+-                *this = nullptr;
+-                break;
+-            case value_t::discarded:
+-                m_type = value_t::discarded;
+-                break;
+-            default:            // LCOV_EXCL_LINE
+-                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-        }
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief create a container (array or object) from an initializer list
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(initializer_list_t init,
+-               bool type_deduction = true,
+-               value_t manual_type = value_t::array)
+-    {
+-        // check if each element is an array with two elements whose first
+-        // element is a string
+-        bool is_an_object = std::all_of(init.begin(), init.end(),
+-                                        [](const detail::json_ref<basic_json>& element_ref)
+-        {
+-            return element_ref->is_array() && element_ref->size() == 2 && (*element_ref)[0].is_string();
+-        });
+-
+-        // adjust type if type deduction is not wanted
+-        if (!type_deduction)
+-        {
+-            // if array is wanted, do not create an object though possible
+-            if (manual_type == value_t::array)
+-            {
+-                is_an_object = false;
+-            }
+-
+-            // if object is wanted but impossible, throw an exception
+-            if (JSON_HEDLEY_UNLIKELY(manual_type == value_t::object && !is_an_object))
+-            {
+-                JSON_THROW(type_error::create(301, "cannot create object from initializer list", basic_json()));
+-            }
+-        }
+-
+-        if (is_an_object)
+-        {
+-            // the initializer list is a list of pairs -> create object
+-            m_type = value_t::object;
+-            m_value = value_t::object;
+-
+-            for (auto& element_ref : init)
+-            {
+-                auto element = element_ref.moved_or_copied();
+-                m_value.object->emplace(
+-                    std::move(*((*element.m_value.array)[0].m_value.string)),
+-                    std::move((*element.m_value.array)[1]));
+-            }
+-        }
+-        else
+-        {
+-            // the initializer list describes an array -> create array
+-            m_type = value_t::array;
+-            m_value.array = create<array_t>(init.begin(), init.end());
+-        }
+-
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief explicitly create a binary array (without subtype)
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json binary(const typename binary_t::container_type& init)
+-    {
+-        auto res = basic_json();
+-        res.m_type = value_t::binary;
+-        res.m_value = init;
+-        return res;
+-    }
+-
+-    /// @brief explicitly create a binary array (with subtype)
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json binary(const typename binary_t::container_type& init, typename binary_t::subtype_type subtype)
+-    {
+-        auto res = basic_json();
+-        res.m_type = value_t::binary;
+-        res.m_value = binary_t(init, subtype);
+-        return res;
+-    }
+-
+-    /// @brief explicitly create a binary array
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json binary(typename binary_t::container_type&& init)
+-    {
+-        auto res = basic_json();
+-        res.m_type = value_t::binary;
+-        res.m_value = std::move(init);
+-        return res;
+-    }
+-
+-    /// @brief explicitly create a binary array (with subtype)
+-    /// @sa https://json.nlohmann.me/api/basic_json/binary/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json binary(typename binary_t::container_type&& init, typename binary_t::subtype_type subtype)
+-    {
+-        auto res = basic_json();
+-        res.m_type = value_t::binary;
+-        res.m_value = binary_t(std::move(init), subtype);
+-        return res;
+-    }
+-
+-    /// @brief explicitly create an array from an initializer list
+-    /// @sa https://json.nlohmann.me/api/basic_json/array/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json array(initializer_list_t init = {})
+-    {
+-        return basic_json(init, false, value_t::array);
+-    }
+-
+-    /// @brief explicitly create an object from an initializer list
+-    /// @sa https://json.nlohmann.me/api/basic_json/object/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json object(initializer_list_t init = {})
+-    {
+-        return basic_json(init, false, value_t::object);
+-    }
+-
+-    /// @brief construct an array with count copies of given value
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(size_type cnt, const basic_json& val)
+-        : m_type(value_t::array)
+-    {
+-        m_value.array = create<array_t>(cnt, val);
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief construct a JSON container given an iterator range
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    template < class InputIT, typename std::enable_if <
+-                   std::is_same<InputIT, typename basic_json_t::iterator>::value ||
+-                   std::is_same<InputIT, typename basic_json_t::const_iterator>::value, int >::type = 0 >
+-    basic_json(InputIT first, InputIT last)
+-    {
+-        JSON_ASSERT(first.m_object != nullptr);
+-        JSON_ASSERT(last.m_object != nullptr);
+-
+-        // make sure iterator fits the current value
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(201, "iterators are not compatible", basic_json()));
+-        }
+-
+-        // copy type from first iterator
+-        m_type = first.m_object->m_type;
+-
+-        // check if iterator range is complete for primitive values
+-        switch (m_type)
+-        {
+-            case value_t::boolean:
+-            case value_t::number_float:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::string:
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!first.m_it.primitive_iterator.is_begin()
+-                                         || !last.m_it.primitive_iterator.is_end()))
+-                {
+-                    JSON_THROW(invalid_iterator::create(204, "iterators out of range", *first.m_object));
+-                }
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::object:
+-            case value_t::array:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-
+-        switch (m_type)
+-        {
+-            case value_t::number_integer:
+-            {
+-                m_value.number_integer = first.m_object->m_value.number_integer;
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                m_value.number_unsigned = first.m_object->m_value.number_unsigned;
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                m_value.number_float = first.m_object->m_value.number_float;
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                m_value.boolean = first.m_object->m_value.boolean;
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                m_value = *first.m_object->m_value.string;
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                m_value.object = create<object_t>(first.m_it.object_iterator,
+-                                                  last.m_it.object_iterator);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_value.array = create<array_t>(first.m_it.array_iterator,
+-                                                last.m_it.array_iterator);
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                m_value = *first.m_object->m_value.binary;
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                JSON_THROW(invalid_iterator::create(206, "cannot construct with iterators from " + std::string(first.m_object->type_name()), *first.m_object));
+-        }
+-
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-
+-    ///////////////////////////////////////
+-    // other constructors and destructor //
+-    ///////////////////////////////////////
+-
+-    template<typename JsonRef,
+-             detail::enable_if_t<detail::conjunction<detail::is_json_ref<JsonRef>,
+-                                 std::is_same<typename JsonRef::value_type, basic_json>>::value, int> = 0 >
+-    basic_json(const JsonRef& ref) : basic_json(ref.moved_or_copied()) {}
+-
+-    /// @brief copy constructor
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(const basic_json& other)
+-        : m_type(other.m_type)
+-    {
+-        // check of passed value is valid
+-        other.assert_invariant();
+-
+-        switch (m_type)
+-        {
+-            case value_t::object:
+-            {
+-                m_value = *other.m_value.object;
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_value = *other.m_value.array;
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                m_value = *other.m_value.string;
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                m_value = other.m_value.boolean;
+-                break;
+-            }
+-
+-            case value_t::number_integer:
+-            {
+-                m_value = other.m_value.number_integer;
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                m_value = other.m_value.number_unsigned;
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                m_value = other.m_value.number_float;
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                m_value = *other.m_value.binary;
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief move constructor
+-    /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
+-    basic_json(basic_json&& other) noexcept
+-        : m_type(std::move(other.m_type)),
+-          m_value(std::move(other.m_value))
+-    {
+-        // check that passed value is valid
+-        other.assert_invariant(false);
+-
+-        // invalidate payload
+-        other.m_type = value_t::null;
+-        other.m_value = {};
+-
+-        set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief copy assignment
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator=/
+-    basic_json& operator=(basic_json other) noexcept (
+-        std::is_nothrow_move_constructible<value_t>::value&&
+-        std::is_nothrow_move_assignable<value_t>::value&&
+-        std::is_nothrow_move_constructible<json_value>::value&&
+-        std::is_nothrow_move_assignable<json_value>::value
+-    )
+-    {
+-        // check that passed value is valid
+-        other.assert_invariant();
+-
+-        using std::swap;
+-        swap(m_type, other.m_type);
+-        swap(m_value, other.m_value);
+-
+-        set_parents();
+-        assert_invariant();
+-        return *this;
+-    }
+-
+-    /// @brief destructor
+-    /// @sa https://json.nlohmann.me/api/basic_json/~basic_json/
+-    ~basic_json() noexcept
+-    {
+-        assert_invariant(false);
+-        m_value.destroy(m_type);
+-    }
+-
+-    /// @}
+-
+-  public:
+-    ///////////////////////
+-    // object inspection //
+-    ///////////////////////
+-
+-    /// @name object inspection
+-    /// Functions to inspect the type of a JSON value.
+-    /// @{
+-
+-    /// @brief serialization
+-    /// @sa https://json.nlohmann.me/api/basic_json/dump/
+-    string_t dump(const int indent = -1,
+-                  const char indent_char = ' ',
+-                  const bool ensure_ascii = false,
+-                  const error_handler_t error_handler = error_handler_t::strict) const
+-    {
+-        string_t result;
+-        serializer s(detail::output_adapter<char, string_t>(result), indent_char, error_handler);
+-
+-        if (indent >= 0)
+-        {
+-            s.dump(*this, true, ensure_ascii, static_cast<unsigned int>(indent));
+-        }
+-        else
+-        {
+-            s.dump(*this, false, ensure_ascii, 0);
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief return the type of the JSON value (explicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/type/
+-    constexpr value_t type() const noexcept
+-    {
+-        return m_type;
+-    }
+-
+-    /// @brief return whether type is primitive
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_primitive/
+-    constexpr bool is_primitive() const noexcept
+-    {
+-        return is_null() || is_string() || is_boolean() || is_number() || is_binary();
+-    }
+-
+-    /// @brief return whether type is structured
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_structured/
+-    constexpr bool is_structured() const noexcept
+-    {
+-        return is_array() || is_object();
+-    }
+-
+-    /// @brief return whether value is null
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_null/
+-    constexpr bool is_null() const noexcept
+-    {
+-        return m_type == value_t::null;
+-    }
+-
+-    /// @brief return whether value is a boolean
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_boolean/
+-    constexpr bool is_boolean() const noexcept
+-    {
+-        return m_type == value_t::boolean;
+-    }
+-
+-    /// @brief return whether value is a number
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_number/
+-    constexpr bool is_number() const noexcept
+-    {
+-        return is_number_integer() || is_number_float();
+-    }
+-
+-    /// @brief return whether value is an integer number
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_number_integer/
+-    constexpr bool is_number_integer() const noexcept
+-    {
+-        return m_type == value_t::number_integer || m_type == value_t::number_unsigned;
+-    }
+-
+-    /// @brief return whether value is an unsigned integer number
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_number_unsigned/
+-    constexpr bool is_number_unsigned() const noexcept
+-    {
+-        return m_type == value_t::number_unsigned;
+-    }
+-
+-    /// @brief return whether value is a floating-point number
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_number_float/
+-    constexpr bool is_number_float() const noexcept
+-    {
+-        return m_type == value_t::number_float;
+-    }
+-
+-    /// @brief return whether value is an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_object/
+-    constexpr bool is_object() const noexcept
+-    {
+-        return m_type == value_t::object;
+-    }
+-
+-    /// @brief return whether value is an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_array/
+-    constexpr bool is_array() const noexcept
+-    {
+-        return m_type == value_t::array;
+-    }
+-
+-    /// @brief return whether value is a string
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_string/
+-    constexpr bool is_string() const noexcept
+-    {
+-        return m_type == value_t::string;
+-    }
+-
+-    /// @brief return whether value is a binary array
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_binary/
+-    constexpr bool is_binary() const noexcept
+-    {
+-        return m_type == value_t::binary;
+-    }
+-
+-    /// @brief return whether value is discarded
+-    /// @sa https://json.nlohmann.me/api/basic_json/is_discarded/
+-    constexpr bool is_discarded() const noexcept
+-    {
+-        return m_type == value_t::discarded;
+-    }
+-
+-    /// @brief return the type of the JSON value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_value_t/
+-    constexpr operator value_t() const noexcept
+-    {
+-        return m_type;
+-    }
+-
+-    /// @}
+-
+-  private:
+-    //////////////////
+-    // value access //
+-    //////////////////
+-
+-    /// get a boolean (explicit)
+-    boolean_t get_impl(boolean_t* /*unused*/) const
+-    {
+-        if (JSON_HEDLEY_LIKELY(is_boolean()))
+-        {
+-            return m_value.boolean;
+-        }
+-
+-        JSON_THROW(type_error::create(302, "type must be boolean, but is " + std::string(type_name()), *this));
+-    }
+-
+-    /// get a pointer to the value (object)
+-    object_t* get_impl_ptr(object_t* /*unused*/) noexcept
+-    {
+-        return is_object() ? m_value.object : nullptr;
+-    }
+-
+-    /// get a pointer to the value (object)
+-    constexpr const object_t* get_impl_ptr(const object_t* /*unused*/) const noexcept
+-    {
+-        return is_object() ? m_value.object : nullptr;
+-    }
+-
+-    /// get a pointer to the value (array)
+-    array_t* get_impl_ptr(array_t* /*unused*/) noexcept
+-    {
+-        return is_array() ? m_value.array : nullptr;
+-    }
+-
+-    /// get a pointer to the value (array)
+-    constexpr const array_t* get_impl_ptr(const array_t* /*unused*/) const noexcept
+-    {
+-        return is_array() ? m_value.array : nullptr;
+-    }
+-
+-    /// get a pointer to the value (string)
+-    string_t* get_impl_ptr(string_t* /*unused*/) noexcept
+-    {
+-        return is_string() ? m_value.string : nullptr;
+-    }
+-
+-    /// get a pointer to the value (string)
+-    constexpr const string_t* get_impl_ptr(const string_t* /*unused*/) const noexcept
+-    {
+-        return is_string() ? m_value.string : nullptr;
+-    }
+-
+-    /// get a pointer to the value (boolean)
+-    boolean_t* get_impl_ptr(boolean_t* /*unused*/) noexcept
+-    {
+-        return is_boolean() ? &m_value.boolean : nullptr;
+-    }
+-
+-    /// get a pointer to the value (boolean)
+-    constexpr const boolean_t* get_impl_ptr(const boolean_t* /*unused*/) const noexcept
+-    {
+-        return is_boolean() ? &m_value.boolean : nullptr;
+-    }
+-
+-    /// get a pointer to the value (integer number)
+-    number_integer_t* get_impl_ptr(number_integer_t* /*unused*/) noexcept
+-    {
+-        return is_number_integer() ? &m_value.number_integer : nullptr;
+-    }
+-
+-    /// get a pointer to the value (integer number)
+-    constexpr const number_integer_t* get_impl_ptr(const number_integer_t* /*unused*/) const noexcept
+-    {
+-        return is_number_integer() ? &m_value.number_integer : nullptr;
+-    }
+-
+-    /// get a pointer to the value (unsigned number)
+-    number_unsigned_t* get_impl_ptr(number_unsigned_t* /*unused*/) noexcept
+-    {
+-        return is_number_unsigned() ? &m_value.number_unsigned : nullptr;
+-    }
+-
+-    /// get a pointer to the value (unsigned number)
+-    constexpr const number_unsigned_t* get_impl_ptr(const number_unsigned_t* /*unused*/) const noexcept
+-    {
+-        return is_number_unsigned() ? &m_value.number_unsigned : nullptr;
+-    }
+-
+-    /// get a pointer to the value (floating-point number)
+-    number_float_t* get_impl_ptr(number_float_t* /*unused*/) noexcept
+-    {
+-        return is_number_float() ? &m_value.number_float : nullptr;
+-    }
+-
+-    /// get a pointer to the value (floating-point number)
+-    constexpr const number_float_t* get_impl_ptr(const number_float_t* /*unused*/) const noexcept
+-    {
+-        return is_number_float() ? &m_value.number_float : nullptr;
+-    }
+-
+-    /// get a pointer to the value (binary)
+-    binary_t* get_impl_ptr(binary_t* /*unused*/) noexcept
+-    {
+-        return is_binary() ? m_value.binary : nullptr;
+-    }
+-
+-    /// get a pointer to the value (binary)
+-    constexpr const binary_t* get_impl_ptr(const binary_t* /*unused*/) const noexcept
+-    {
+-        return is_binary() ? m_value.binary : nullptr;
+-    }
+-
+-    /*!
+-    @brief helper function to implement get_ref()
+-
+-    This function helps to implement get_ref() without code duplication for
+-    const and non-const overloads
+-
+-    @tparam ThisType will be deduced as `basic_json` or `const basic_json`
+-
+-    @throw type_error.303 if ReferenceType does not match underlying value
+-    type of the current JSON
+-    */
+-    template<typename ReferenceType, typename ThisType>
+-    static ReferenceType get_ref_impl(ThisType& obj)
+-    {
+-        // delegate the call to get_ptr<>()
+-        auto* ptr = obj.template get_ptr<typename std::add_pointer<ReferenceType>::type>();
+-
+-        if (JSON_HEDLEY_LIKELY(ptr != nullptr))
+-        {
+-            return *ptr;
+-        }
+-
+-        JSON_THROW(type_error::create(303, "incompatible ReferenceType for get_ref, actual type is " + std::string(obj.type_name()), obj));
+-    }
+-
+-  public:
+-    /// @name value access
+-    /// Direct access to the stored value of a JSON value.
+-    /// @{
+-
+-    /// @brief get a pointer value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_ptr/
+-    template<typename PointerType, typename std::enable_if<
+-                 std::is_pointer<PointerType>::value, int>::type = 0>
+-    auto get_ptr() noexcept -> decltype(std::declval<basic_json_t&>().get_impl_ptr(std::declval<PointerType>()))
+-    {
+-        // delegate the call to get_impl_ptr<>()
+-        return get_impl_ptr(static_cast<PointerType>(nullptr));
+-    }
+-
+-    /// @brief get a pointer value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_ptr/
+-    template < typename PointerType, typename std::enable_if <
+-                   std::is_pointer<PointerType>::value&&
+-                   std::is_const<typename std::remove_pointer<PointerType>::type>::value, int >::type = 0 >
+-    constexpr auto get_ptr() const noexcept -> decltype(std::declval<const basic_json_t&>().get_impl_ptr(std::declval<PointerType>()))
+-    {
+-        // delegate the call to get_impl_ptr<>() const
+-        return get_impl_ptr(static_cast<PointerType>(nullptr));
+-    }
+-
+-  private:
+-    /*!
+-    @brief get a value (explicit)
+-
+-    Explicit type conversion between the JSON value and a compatible value
+-    which is [CopyConstructible](https://en.cppreference.com/w/cpp/named_req/CopyConstructible)
+-    and [DefaultConstructible](https://en.cppreference.com/w/cpp/named_req/DefaultConstructible).
+-    The value is converted by calling the @ref json_serializer<ValueType>
+-    `from_json()` method.
+-
+-    The function is equivalent to executing
+-    @code {.cpp}
+-    ValueType ret;
+-    JSONSerializer<ValueType>::from_json(*this, ret);
+-    return ret;
+-    @endcode
+-
+-    This overloads is chosen if:
+-    - @a ValueType is not @ref basic_json,
+-    - @ref json_serializer<ValueType> has a `from_json()` method of the form
+-      `void from_json(const basic_json&, ValueType&)`, and
+-    - @ref json_serializer<ValueType> does not have a `from_json()` method of
+-      the form `ValueType from_json(const basic_json&)`
+-
+-    @tparam ValueType the returned value type
+-
+-    @return copy of the JSON value, converted to @a ValueType
+-
+-    @throw what @ref json_serializer<ValueType> `from_json()` method throws
+-
+-    @liveexample{The example below shows several conversions from JSON values
+-    to other types. There a few things to note: (1) Floating-point numbers can
+-    be converted to integers\, (2) A JSON array can be converted to a standard
+-    `std::vector<short>`\, (3) A JSON object can be converted to C++
+-    associative containers such as `std::unordered_map<std::string\,
+-    json>`.,get__ValueType_const}
+-
+-    @since version 2.1.0
+-    */
+-    template < typename ValueType,
+-               detail::enable_if_t <
+-                   detail::is_default_constructible<ValueType>::value&&
+-                   detail::has_from_json<basic_json_t, ValueType>::value,
+-                   int > = 0 >
+-    ValueType get_impl(detail::priority_tag<0> /*unused*/) const noexcept(noexcept(
+-                JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>(), std::declval<ValueType&>())))
+-    {
+-        auto ret = ValueType();
+-        JSONSerializer<ValueType>::from_json(*this, ret);
+-        return ret;
+-    }
+-
+-    /*!
+-    @brief get a value (explicit); special case
+-
+-    Explicit type conversion between the JSON value and a compatible value
+-    which is **not** [CopyConstructible](https://en.cppreference.com/w/cpp/named_req/CopyConstructible)
+-    and **not** [DefaultConstructible](https://en.cppreference.com/w/cpp/named_req/DefaultConstructible).
+-    The value is converted by calling the @ref json_serializer<ValueType>
+-    `from_json()` method.
+-
+-    The function is equivalent to executing
+-    @code {.cpp}
+-    return JSONSerializer<ValueType>::from_json(*this);
+-    @endcode
+-
+-    This overloads is chosen if:
+-    - @a ValueType is not @ref basic_json and
+-    - @ref json_serializer<ValueType> has a `from_json()` method of the form
+-      `ValueType from_json(const basic_json&)`
+-
+-    @note If @ref json_serializer<ValueType> has both overloads of
+-    `from_json()`, this one is chosen.
+-
+-    @tparam ValueType the returned value type
+-
+-    @return copy of the JSON value, converted to @a ValueType
+-
+-    @throw what @ref json_serializer<ValueType> `from_json()` method throws
+-
+-    @since version 2.1.0
+-    */
+-    template < typename ValueType,
+-               detail::enable_if_t <
+-                   detail::has_non_default_from_json<basic_json_t, ValueType>::value,
+-                   int > = 0 >
+-    ValueType get_impl(detail::priority_tag<1> /*unused*/) const noexcept(noexcept(
+-                JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>())))
+-    {
+-        return JSONSerializer<ValueType>::from_json(*this);
+-    }
+-
+-    /*!
+-    @brief get special-case overload
+-
+-    This overloads converts the current @ref basic_json in a different
+-    @ref basic_json type
+-
+-    @tparam BasicJsonType == @ref basic_json
+-
+-    @return a copy of *this, converted into @a BasicJsonType
+-
+-    @complexity Depending on the implementation of the called `from_json()`
+-                method.
+-
+-    @since version 3.2.0
+-    */
+-    template < typename BasicJsonType,
+-               detail::enable_if_t <
+-                   detail::is_basic_json<BasicJsonType>::value,
+-                   int > = 0 >
+-    BasicJsonType get_impl(detail::priority_tag<2> /*unused*/) const
+-    {
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief get special-case overload
+-
+-    This overloads avoids a lot of template boilerplate, it can be seen as the
+-    identity method
+-
+-    @tparam BasicJsonType == @ref basic_json
+-
+-    @return a copy of *this
+-
+-    @complexity Constant.
+-
+-    @since version 2.1.0
+-    */
+-    template<typename BasicJsonType,
+-             detail::enable_if_t<
+-                 std::is_same<BasicJsonType, basic_json_t>::value,
+-                 int> = 0>
+-    basic_json get_impl(detail::priority_tag<3> /*unused*/) const
+-    {
+-        return *this;
+-    }
+-
+-    /*!
+-    @brief get a pointer value (explicit)
+-    @copydoc get()
+-    */
+-    template<typename PointerType,
+-             detail::enable_if_t<
+-                 std::is_pointer<PointerType>::value,
+-                 int> = 0>
+-    constexpr auto get_impl(detail::priority_tag<4> /*unused*/) const noexcept
+-    -> decltype(std::declval<const basic_json_t&>().template get_ptr<PointerType>())
+-    {
+-        // delegate the call to get_ptr
+-        return get_ptr<PointerType>();
+-    }
+-
+-  public:
+-    /*!
+-    @brief get a (pointer) value (explicit)
+-
+-    Performs explicit type conversion between the JSON value and a compatible value if required.
+-
+-    - If the requested type is a pointer to the internally stored JSON value that pointer is returned.
+-    No copies are made.
+-
+-    - If the requested type is the current @ref basic_json, or a different @ref basic_json convertible
+-    from the current @ref basic_json.
+-
+-    - Otherwise the value is converted by calling the @ref json_serializer<ValueType> `from_json()`
+-    method.
+-
+-    @tparam ValueTypeCV the provided value type
+-    @tparam ValueType the returned value type
+-
+-    @return copy of the JSON value, converted to @tparam ValueType if necessary
+-
+-    @throw what @ref json_serializer<ValueType> `from_json()` method throws if conversion is required
+-
+-    @since version 2.1.0
+-    */
+-    template < typename ValueTypeCV, typename ValueType = detail::uncvref_t<ValueTypeCV>>
+-#if defined(JSON_HAS_CPP_14)
+-    constexpr
+-#endif
+-    auto get() const noexcept(
+-    noexcept(std::declval<const basic_json_t&>().template get_impl<ValueType>(detail::priority_tag<4> {})))
+-    -> decltype(std::declval<const basic_json_t&>().template get_impl<ValueType>(detail::priority_tag<4> {}))
+-    {
+-        // we cannot static_assert on ValueTypeCV being non-const, because
+-        // there is support for get<const basic_json_t>(), which is why we
+-        // still need the uncvref
+-        static_assert(!std::is_reference<ValueTypeCV>::value,
+-                      "get() cannot be used with reference types, you might want to use get_ref()");
+-        return get_impl<ValueType>(detail::priority_tag<4> {});
+-    }
+-
+-    /*!
+-    @brief get a pointer value (explicit)
+-
+-    Explicit pointer access to the internally stored JSON value. No copies are
+-    made.
+-
+-    @warning The pointer becomes invalid if the underlying JSON object
+-    changes.
+-
+-    @tparam PointerType pointer type; must be a pointer to @ref array_t, @ref
+-    object_t, @ref string_t, @ref boolean_t, @ref number_integer_t,
+-    @ref number_unsigned_t, or @ref number_float_t.
+-
+-    @return pointer to the internally stored JSON value if the requested
+-    pointer type @a PointerType fits to the JSON value; `nullptr` otherwise
+-
+-    @complexity Constant.
+-
+-    @liveexample{The example below shows how pointers to internal values of a
+-    JSON value can be requested. Note that no type conversions are made and a
+-    `nullptr` is returned if the value and the requested pointer type does not
+-    match.,get__PointerType}
+-
+-    @sa see @ref get_ptr() for explicit pointer-member access
+-
+-    @since version 1.0.0
+-    */
+-    template<typename PointerType, typename std::enable_if<
+-                 std::is_pointer<PointerType>::value, int>::type = 0>
+-    auto get() noexcept -> decltype(std::declval<basic_json_t&>().template get_ptr<PointerType>())
+-    {
+-        // delegate the call to get_ptr
+-        return get_ptr<PointerType>();
+-    }
+-
+-    /// @brief get a value (explicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_to/
+-    template < typename ValueType,
+-               detail::enable_if_t <
+-                   !detail::is_basic_json<ValueType>::value&&
+-                   detail::has_from_json<basic_json_t, ValueType>::value,
+-                   int > = 0 >
+-    ValueType & get_to(ValueType& v) const noexcept(noexcept(
+-                JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>(), v)))
+-    {
+-        JSONSerializer<ValueType>::from_json(*this, v);
+-        return v;
+-    }
+-
+-    // specialization to allow calling get_to with a basic_json value
+-    // see https://github.com/nlohmann/json/issues/2175
+-    template<typename ValueType,
+-             detail::enable_if_t <
+-                 detail::is_basic_json<ValueType>::value,
+-                 int> = 0>
+-    ValueType & get_to(ValueType& v) const
+-    {
+-        v = *this;
+-        return v;
+-    }
+-
+-    template <
+-        typename T, std::size_t N,
+-        typename Array = T (&)[N], // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-        detail::enable_if_t <
+-            detail::has_from_json<basic_json_t, Array>::value, int > = 0 >
+-    Array get_to(T (&v)[N]) const // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
+-    noexcept(noexcept(JSONSerializer<Array>::from_json(
+-                          std::declval<const basic_json_t&>(), v)))
+-    {
+-        JSONSerializer<Array>::from_json(*this, v);
+-        return v;
+-    }
+-
+-    /// @brief get a reference value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_ref/
+-    template<typename ReferenceType, typename std::enable_if<
+-                 std::is_reference<ReferenceType>::value, int>::type = 0>
+-    ReferenceType get_ref()
+-    {
+-        // delegate call to get_ref_impl
+-        return get_ref_impl<ReferenceType>(*this);
+-    }
+-
+-    /// @brief get a reference value (implicit)
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_ref/
+-    template < typename ReferenceType, typename std::enable_if <
+-                   std::is_reference<ReferenceType>::value&&
+-                   std::is_const<typename std::remove_reference<ReferenceType>::type>::value, int >::type = 0 >
+-    ReferenceType get_ref() const
+-    {
+-        // delegate call to get_ref_impl
+-        return get_ref_impl<ReferenceType>(*this);
+-    }
+-
+-    /*!
+-    @brief get a value (implicit)
+-
+-    Implicit type conversion between the JSON value and a compatible value.
+-    The call is realized by calling @ref get() const.
+-
+-    @tparam ValueType non-pointer type compatible to the JSON value, for
+-    instance `int` for JSON integer numbers, `bool` for JSON booleans, or
+-    `std::vector` types for JSON arrays. The character type of @ref string_t
+-    as well as an initializer list of this type is excluded to avoid
+-    ambiguities as these types implicitly convert to `std::string`.
+-
+-    @return copy of the JSON value, converted to type @a ValueType
+-
+-    @throw type_error.302 in case passed type @a ValueType is incompatible
+-    to the JSON value type (e.g., the JSON value is of type boolean, but a
+-    string is requested); see example below
+-
+-    @complexity Linear in the size of the JSON value.
+-
+-    @liveexample{The example below shows several conversions from JSON values
+-    to other types. There a few things to note: (1) Floating-point numbers can
+-    be converted to integers\, (2) A JSON array can be converted to a standard
+-    `std::vector<short>`\, (3) A JSON object can be converted to C++
+-    associative containers such as `std::unordered_map<std::string\,
+-    json>`.,operator__ValueType}
+-
+-    @since version 1.0.0
+-    */
+-    template < typename ValueType, typename std::enable_if <
+-                   detail::conjunction <
+-                       detail::negation<std::is_pointer<ValueType>>,
+-                       detail::negation<std::is_same<ValueType, detail::json_ref<basic_json>>>,
+-                                        detail::negation<std::is_same<ValueType, typename string_t::value_type>>,
+-                                        detail::negation<detail::is_basic_json<ValueType>>,
+-                                        detail::negation<std::is_same<ValueType, std::initializer_list<typename string_t::value_type>>>,
+-
+-#if defined(JSON_HAS_CPP_17) && (defined(__GNUC__) || (defined(_MSC_VER) && _MSC_VER >= 1910 && _MSC_VER <= 1914))
+-                                                detail::negation<std::is_same<ValueType, std::string_view>>,
+-#endif
+-                                                detail::is_detected_lazy<detail::get_template_function, const basic_json_t&, ValueType>
+-                                                >::value, int >::type = 0 >
+-                                        JSON_EXPLICIT operator ValueType() const
+-    {
+-        // delegate the call to get<>() const
+-        return get<ValueType>();
+-    }
+-
+-    /// @brief get a binary value
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_binary/
+-    binary_t& get_binary()
+-    {
+-        if (!is_binary())
+-        {
+-            JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(type_name()), *this));
+-        }
+-
+-        return *get_ptr<binary_t*>();
+-    }
+-
+-    /// @brief get a binary value
+-    /// @sa https://json.nlohmann.me/api/basic_json/get_binary/
+-    const binary_t& get_binary() const
+-    {
+-        if (!is_binary())
+-        {
+-            JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(type_name()), *this));
+-        }
+-
+-        return *get_ptr<const binary_t*>();
+-    }
+-
+-    /// @}
+-
+-
+-    ////////////////////
+-    // element access //
+-    ////////////////////
+-
+-    /// @name element access
+-    /// Access to the JSON value.
+-    /// @{
+-
+-    /// @brief access specified array element with bounds checking
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    reference at(size_type idx)
+-    {
+-        // at only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            JSON_TRY
+-            {
+-                return set_parent(m_value.array->at(idx));
+-            }
+-            JSON_CATCH (std::out_of_range&)
+-            {
+-                // create better exception explanation
+-                JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range", *this));
+-            }
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief access specified array element with bounds checking
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    const_reference at(size_type idx) const
+-    {
+-        // at only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            JSON_TRY
+-            {
+-                return m_value.array->at(idx);
+-            }
+-            JSON_CATCH (std::out_of_range&)
+-            {
+-                // create better exception explanation
+-                JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range", *this));
+-            }
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief access specified object element with bounds checking
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    reference at(const typename object_t::key_type& key)
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            JSON_TRY
+-            {
+-                return set_parent(m_value.object->at(key));
+-            }
+-            JSON_CATCH (std::out_of_range&)
+-            {
+-                // create better exception explanation
+-                JSON_THROW(out_of_range::create(403, "key '" + key + "' not found", *this));
+-            }
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief access specified object element with bounds checking
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    const_reference at(const typename object_t::key_type& key) const
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            JSON_TRY
+-            {
+-                return m_value.object->at(key);
+-            }
+-            JSON_CATCH (std::out_of_range&)
+-            {
+-                // create better exception explanation
+-                JSON_THROW(out_of_range::create(403, "key '" + key + "' not found", *this));
+-            }
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief access specified array element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    reference operator[](size_type idx)
+-    {
+-        // implicitly convert null value to an empty array
+-        if (is_null())
+-        {
+-            m_type = value_t::array;
+-            m_value.array = create<array_t>();
+-            assert_invariant();
+-        }
+-
+-        // operator[] only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            // fill up array with null values if given idx is outside range
+-            if (idx >= m_value.array->size())
+-            {
+-#if JSON_DIAGNOSTICS
+-                // remember array size & capacity before resizing
+-                const auto old_size = m_value.array->size();
+-                const auto old_capacity = m_value.array->capacity();
+-#endif
+-                m_value.array->resize(idx + 1);
+-
+-#if JSON_DIAGNOSTICS
+-                if (JSON_HEDLEY_UNLIKELY(m_value.array->capacity() != old_capacity))
+-                {
+-                    // capacity has changed: update all parents
+-                    set_parents();
+-                }
+-                else
+-                {
+-                    // set parent for values added above
+-                    set_parents(begin() + static_cast<typename iterator::difference_type>(old_size), static_cast<typename iterator::difference_type>(idx + 1 - old_size));
+-                }
+-#endif
+-                assert_invariant();
+-            }
+-
+-            return m_value.array->operator[](idx);
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a numeric argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified array element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    const_reference operator[](size_type idx) const
+-    {
+-        // const operator[] only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            return m_value.array->operator[](idx);
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a numeric argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    reference operator[](const typename object_t::key_type& key)
+-    {
+-        // implicitly convert null value to an empty object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value.object = create<object_t>();
+-            assert_invariant();
+-        }
+-
+-        // operator[] only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            return set_parent(m_value.object->operator[](key));
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    const_reference operator[](const typename object_t::key_type& key) const
+-    {
+-        // const operator[] only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            JSON_ASSERT(m_value.object->find(key) != m_value.object->end());
+-            return m_value.object->find(key)->second;
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    template<typename T>
+-    JSON_HEDLEY_NON_NULL(2)
+-    reference operator[](T* key)
+-    {
+-        // implicitly convert null to object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value = value_t::object;
+-            assert_invariant();
+-        }
+-
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            return set_parent(m_value.object->operator[](key));
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    template<typename T>
+-    JSON_HEDLEY_NON_NULL(2)
+-    const_reference operator[](T* key) const
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            JSON_ASSERT(m_value.object->find(key) != m_value.object->end());
+-            return m_value.object->find(key)->second;
+-        }
+-
+-        JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element with default value
+-    /// @sa https://json.nlohmann.me/api/basic_json/value/
+-    /// using std::is_convertible in a std::enable_if will fail when using explicit conversions
+-    template < class ValueType, typename std::enable_if <
+-                   detail::is_getable<basic_json_t, ValueType>::value
+-                   && !std::is_same<value_t, ValueType>::value, int >::type = 0 >
+-    ValueType value(const typename object_t::key_type& key, const ValueType& default_value) const
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            // if key is found, return value and given default value otherwise
+-            const auto it = find(key);
+-            if (it != end())
+-            {
+-                return it->template get<ValueType>();
+-            }
+-
+-            return default_value;
+-        }
+-
+-        JSON_THROW(type_error::create(306, "cannot use value() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element with default value
+-    /// @sa https://json.nlohmann.me/api/basic_json/value/
+-    /// overload for a default value of type const char*
+-    string_t value(const typename object_t::key_type& key, const char* default_value) const
+-    {
+-        return value(key, string_t(default_value));
+-    }
+-
+-    /// @brief access specified object element via JSON Pointer with default value
+-    /// @sa https://json.nlohmann.me/api/basic_json/value/
+-    template<class ValueType, typename std::enable_if<
+-                 detail::is_getable<basic_json_t, ValueType>::value, int>::type = 0>
+-    ValueType value(const json_pointer& ptr, const ValueType& default_value) const
+-    {
+-        // at only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            // if pointer resolves a value, return it or use default value
+-            JSON_TRY
+-            {
+-                return ptr.get_checked(this).template get<ValueType>();
+-            }
+-            JSON_INTERNAL_CATCH (out_of_range&)
+-            {
+-                return default_value;
+-            }
+-        }
+-
+-        JSON_THROW(type_error::create(306, "cannot use value() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief access specified object element via JSON Pointer with default value
+-    /// @sa https://json.nlohmann.me/api/basic_json/value/
+-    /// overload for a default value of type const char*
+-    JSON_HEDLEY_NON_NULL(3)
+-    string_t value(const json_pointer& ptr, const char* default_value) const
+-    {
+-        return value(ptr, string_t(default_value));
+-    }
+-
+-    /// @brief access the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/front/
+-    reference front()
+-    {
+-        return *begin();
+-    }
+-
+-    /// @brief access the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/front/
+-    const_reference front() const
+-    {
+-        return *cbegin();
+-    }
+-
+-    /// @brief access the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/back/
+-    reference back()
+-    {
+-        auto tmp = end();
+-        --tmp;
+-        return *tmp;
+-    }
+-
+-    /// @brief access the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/back/
+-    const_reference back() const
+-    {
+-        auto tmp = cend();
+-        --tmp;
+-        return *tmp;
+-    }
+-
+-    /// @brief remove element given an iterator
+-    /// @sa https://json.nlohmann.me/api/basic_json/erase/
+-    template < class IteratorType, typename std::enable_if <
+-                   std::is_same<IteratorType, typename basic_json_t::iterator>::value ||
+-                   std::is_same<IteratorType, typename basic_json_t::const_iterator>::value, int >::type
+-               = 0 >
+-    IteratorType erase(IteratorType pos)
+-    {
+-        // make sure iterator fits the current value
+-        if (JSON_HEDLEY_UNLIKELY(this != pos.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-        }
+-
+-        IteratorType result = end();
+-
+-        switch (m_type)
+-        {
+-            case value_t::boolean:
+-            case value_t::number_float:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::string:
+-            case value_t::binary:
+-            {
+-                if (JSON_HEDLEY_UNLIKELY(!pos.m_it.primitive_iterator.is_begin()))
+-                {
+-                    JSON_THROW(invalid_iterator::create(205, "iterator out of range", *this));
+-                }
+-
+-                if (is_string())
+-                {
+-                    AllocatorType<string_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.string);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.string, 1);
+-                    m_value.string = nullptr;
+-                }
+-                else if (is_binary())
+-                {
+-                    AllocatorType<binary_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.binary);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.binary, 1);
+-                    m_value.binary = nullptr;
+-                }
+-
+-                m_type = value_t::null;
+-                assert_invariant();
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                result.m_it.object_iterator = m_value.object->erase(pos.m_it.object_iterator);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                result.m_it.array_iterator = m_value.array->erase(pos.m_it.array_iterator);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief remove elements given an iterator range
+-    /// @sa https://json.nlohmann.me/api/basic_json/erase/
+-    template < class IteratorType, typename std::enable_if <
+-                   std::is_same<IteratorType, typename basic_json_t::iterator>::value ||
+-                   std::is_same<IteratorType, typename basic_json_t::const_iterator>::value, int >::type
+-               = 0 >
+-    IteratorType erase(IteratorType first, IteratorType last)
+-    {
+-        // make sure iterator fits the current value
+-        if (JSON_HEDLEY_UNLIKELY(this != first.m_object || this != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(203, "iterators do not fit current value", *this));
+-        }
+-
+-        IteratorType result = end();
+-
+-        switch (m_type)
+-        {
+-            case value_t::boolean:
+-            case value_t::number_float:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::string:
+-            case value_t::binary:
+-            {
+-                if (JSON_HEDLEY_LIKELY(!first.m_it.primitive_iterator.is_begin()
+-                                       || !last.m_it.primitive_iterator.is_end()))
+-                {
+-                    JSON_THROW(invalid_iterator::create(204, "iterators out of range", *this));
+-                }
+-
+-                if (is_string())
+-                {
+-                    AllocatorType<string_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.string);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.string, 1);
+-                    m_value.string = nullptr;
+-                }
+-                else if (is_binary())
+-                {
+-                    AllocatorType<binary_t> alloc;
+-                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.binary);
+-                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.binary, 1);
+-                    m_value.binary = nullptr;
+-                }
+-
+-                m_type = value_t::null;
+-                assert_invariant();
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                result.m_it.object_iterator = m_value.object->erase(first.m_it.object_iterator,
+-                                              last.m_it.object_iterator);
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                result.m_it.array_iterator = m_value.array->erase(first.m_it.array_iterator,
+-                                             last.m_it.array_iterator);
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief remove element from a JSON object given a key
+-    /// @sa https://json.nlohmann.me/api/basic_json/erase/
+-    size_type erase(const typename object_t::key_type& key)
+-    {
+-        // this erase only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            return m_value.object->erase(key);
+-        }
+-
+-        JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief remove element from a JSON array given an index
+-    /// @sa https://json.nlohmann.me/api/basic_json/erase/
+-    void erase(const size_type idx)
+-    {
+-        // this erase only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            if (JSON_HEDLEY_UNLIKELY(idx >= size()))
+-            {
+-                JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range", *this));
+-            }
+-
+-            m_value.array->erase(m_value.array->begin() + static_cast<difference_type>(idx));
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @}
+-
+-
+-    ////////////
+-    // lookup //
+-    ////////////
+-
+-    /// @name lookup
+-    /// @{
+-
+-    /// @brief find an element in a JSON object
+-    /// @sa https://json.nlohmann.me/api/basic_json/find/
+-    template<typename KeyT>
+-    iterator find(KeyT&& key)
+-    {
+-        auto result = end();
+-
+-        if (is_object())
+-        {
+-            result.m_it.object_iterator = m_value.object->find(std::forward<KeyT>(key));
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief find an element in a JSON object
+-    /// @sa https://json.nlohmann.me/api/basic_json/find/
+-    template<typename KeyT>
+-    const_iterator find(KeyT&& key) const
+-    {
+-        auto result = cend();
+-
+-        if (is_object())
+-        {
+-            result.m_it.object_iterator = m_value.object->find(std::forward<KeyT>(key));
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief returns the number of occurrences of a key in a JSON object
+-    /// @sa https://json.nlohmann.me/api/basic_json/count/
+-    template<typename KeyT>
+-    size_type count(KeyT&& key) const
+-    {
+-        // return 0 for all nonobject types
+-        return is_object() ? m_value.object->count(std::forward<KeyT>(key)) : 0;
+-    }
+-
+-    /// @brief check the existence of an element in a JSON object
+-    /// @sa https://json.nlohmann.me/api/basic_json/contains/
+-    template < typename KeyT, typename std::enable_if <
+-                   !std::is_same<typename std::decay<KeyT>::type, json_pointer>::value, int >::type = 0 >
+-    bool contains(KeyT && key) const
+-    {
+-        return is_object() && m_value.object->find(std::forward<KeyT>(key)) != m_value.object->end();
+-    }
+-
+-    /// @brief check the existence of an element in a JSON object given a JSON pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/contains/
+-    bool contains(const json_pointer& ptr) const
+-    {
+-        return ptr.contains(this);
+-    }
+-
+-    /// @}
+-
+-
+-    ///////////////
+-    // iterators //
+-    ///////////////
+-
+-    /// @name iterators
+-    /// @{
+-
+-    /// @brief returns an iterator to the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/begin/
+-    iterator begin() noexcept
+-    {
+-        iterator result(this);
+-        result.set_begin();
+-        return result;
+-    }
+-
+-    /// @brief returns an iterator to the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/begin/
+-    const_iterator begin() const noexcept
+-    {
+-        return cbegin();
+-    }
+-
+-    /// @brief returns a const iterator to the first element
+-    /// @sa https://json.nlohmann.me/api/basic_json/cbegin/
+-    const_iterator cbegin() const noexcept
+-    {
+-        const_iterator result(this);
+-        result.set_begin();
+-        return result;
+-    }
+-
+-    /// @brief returns an iterator to one past the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/end/
+-    iterator end() noexcept
+-    {
+-        iterator result(this);
+-        result.set_end();
+-        return result;
+-    }
+-
+-    /// @brief returns an iterator to one past the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/end/
+-    const_iterator end() const noexcept
+-    {
+-        return cend();
+-    }
+-
+-    /// @brief returns an iterator to one past the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/cend/
+-    const_iterator cend() const noexcept
+-    {
+-        const_iterator result(this);
+-        result.set_end();
+-        return result;
+-    }
+-
+-    /// @brief returns an iterator to the reverse-beginning
+-    /// @sa https://json.nlohmann.me/api/basic_json/rbegin/
+-    reverse_iterator rbegin() noexcept
+-    {
+-        return reverse_iterator(end());
+-    }
+-
+-    /// @brief returns an iterator to the reverse-beginning
+-    /// @sa https://json.nlohmann.me/api/basic_json/rbegin/
+-    const_reverse_iterator rbegin() const noexcept
+-    {
+-        return crbegin();
+-    }
+-
+-    /// @brief returns an iterator to the reverse-end
+-    /// @sa https://json.nlohmann.me/api/basic_json/rend/
+-    reverse_iterator rend() noexcept
+-    {
+-        return reverse_iterator(begin());
+-    }
+-
+-    /// @brief returns an iterator to the reverse-end
+-    /// @sa https://json.nlohmann.me/api/basic_json/rend/
+-    const_reverse_iterator rend() const noexcept
+-    {
+-        return crend();
+-    }
+-
+-    /// @brief returns a const reverse iterator to the last element
+-    /// @sa https://json.nlohmann.me/api/basic_json/crbegin/
+-    const_reverse_iterator crbegin() const noexcept
+-    {
+-        return const_reverse_iterator(cend());
+-    }
+-
+-    /// @brief returns a const reverse iterator to one before the first
+-    /// @sa https://json.nlohmann.me/api/basic_json/crend/
+-    const_reverse_iterator crend() const noexcept
+-    {
+-        return const_reverse_iterator(cbegin());
+-    }
+-
+-  public:
+-    /// @brief wrapper to access iterator member functions in range-based for
+-    /// @sa https://json.nlohmann.me/api/basic_json/items/
+-    /// @deprecated This function is deprecated since 3.1.0 and will be removed in
+-    ///             version 4.0.0 of the library. Please use @ref items() instead;
+-    ///             that is, replace `json::iterator_wrapper(j)` with `j.items()`.
+-    JSON_HEDLEY_DEPRECATED_FOR(3.1.0, items())
+-    static iteration_proxy<iterator> iterator_wrapper(reference ref) noexcept
+-    {
+-        return ref.items();
+-    }
+-
+-    /// @brief wrapper to access iterator member functions in range-based for
+-    /// @sa https://json.nlohmann.me/api/basic_json/items/
+-    /// @deprecated This function is deprecated since 3.1.0 and will be removed in
+-    ///         version 4.0.0 of the library. Please use @ref items() instead;
+-    ///         that is, replace `json::iterator_wrapper(j)` with `j.items()`.
+-    JSON_HEDLEY_DEPRECATED_FOR(3.1.0, items())
+-    static iteration_proxy<const_iterator> iterator_wrapper(const_reference ref) noexcept
+-    {
+-        return ref.items();
+-    }
+-
+-    /// @brief helper to access iterator member functions in range-based for
+-    /// @sa https://json.nlohmann.me/api/basic_json/items/
+-    iteration_proxy<iterator> items() noexcept
+-    {
+-        return iteration_proxy<iterator>(*this);
+-    }
+-
+-    /// @brief helper to access iterator member functions in range-based for
+-    /// @sa https://json.nlohmann.me/api/basic_json/items/
+-    iteration_proxy<const_iterator> items() const noexcept
+-    {
+-        return iteration_proxy<const_iterator>(*this);
+-    }
+-
+-    /// @}
+-
+-
+-    //////////////
+-    // capacity //
+-    //////////////
+-
+-    /// @name capacity
+-    /// @{
+-
+-    /// @brief checks whether the container is empty.
+-    /// @sa https://json.nlohmann.me/api/basic_json/empty/
+-    bool empty() const noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::null:
+-            {
+-                // null values are empty
+-                return true;
+-            }
+-
+-            case value_t::array:
+-            {
+-                // delegate call to array_t::empty()
+-                return m_value.array->empty();
+-            }
+-
+-            case value_t::object:
+-            {
+-                // delegate call to object_t::empty()
+-                return m_value.object->empty();
+-            }
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                // all other types are nonempty
+-                return false;
+-            }
+-        }
+-    }
+-
+-    /// @brief returns the number of elements
+-    /// @sa https://json.nlohmann.me/api/basic_json/size/
+-    size_type size() const noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::null:
+-            {
+-                // null values are empty
+-                return 0;
+-            }
+-
+-            case value_t::array:
+-            {
+-                // delegate call to array_t::size()
+-                return m_value.array->size();
+-            }
+-
+-            case value_t::object:
+-            {
+-                // delegate call to object_t::size()
+-                return m_value.object->size();
+-            }
+-
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                // all other types have size 1
+-                return 1;
+-            }
+-        }
+-    }
+-
+-    /// @brief returns the maximum possible number of elements
+-    /// @sa https://json.nlohmann.me/api/basic_json/max_size/
+-    size_type max_size() const noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::array:
+-            {
+-                // delegate call to array_t::max_size()
+-                return m_value.array->max_size();
+-            }
+-
+-            case value_t::object:
+-            {
+-                // delegate call to object_t::max_size()
+-                return m_value.object->max_size();
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                // all other types have max_size() == size()
+-                return size();
+-            }
+-        }
+-    }
+-
+-    /// @}
+-
+-
+-    ///////////////
+-    // modifiers //
+-    ///////////////
+-
+-    /// @name modifiers
+-    /// @{
+-
+-    /// @brief clears the contents
+-    /// @sa https://json.nlohmann.me/api/basic_json/clear/
+-    void clear() noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::number_integer:
+-            {
+-                m_value.number_integer = 0;
+-                break;
+-            }
+-
+-            case value_t::number_unsigned:
+-            {
+-                m_value.number_unsigned = 0;
+-                break;
+-            }
+-
+-            case value_t::number_float:
+-            {
+-                m_value.number_float = 0.0;
+-                break;
+-            }
+-
+-            case value_t::boolean:
+-            {
+-                m_value.boolean = false;
+-                break;
+-            }
+-
+-            case value_t::string:
+-            {
+-                m_value.string->clear();
+-                break;
+-            }
+-
+-            case value_t::binary:
+-            {
+-                m_value.binary->clear();
+-                break;
+-            }
+-
+-            case value_t::array:
+-            {
+-                m_value.array->clear();
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                m_value.object->clear();
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::discarded:
+-            default:
+-                break;
+-        }
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/push_back/
+-    void push_back(basic_json&& val)
+-    {
+-        // push_back only works for null objects or arrays
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array())))
+-        {
+-            JSON_THROW(type_error::create(308, "cannot use push_back() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an array
+-        if (is_null())
+-        {
+-            m_type = value_t::array;
+-            m_value = value_t::array;
+-            assert_invariant();
+-        }
+-
+-        // add element to array (move semantics)
+-        const auto old_capacity = m_value.array->capacity();
+-        m_value.array->push_back(std::move(val));
+-        set_parent(m_value.array->back(), old_capacity);
+-        // if val is moved from, basic_json move constructor marks it null, so we do not call the destructor
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
+-    reference operator+=(basic_json&& val)
+-    {
+-        push_back(std::move(val));
+-        return *this;
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/push_back/
+-    void push_back(const basic_json& val)
+-    {
+-        // push_back only works for null objects or arrays
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array())))
+-        {
+-            JSON_THROW(type_error::create(308, "cannot use push_back() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an array
+-        if (is_null())
+-        {
+-            m_type = value_t::array;
+-            m_value = value_t::array;
+-            assert_invariant();
+-        }
+-
+-        // add element to array
+-        const auto old_capacity = m_value.array->capacity();
+-        m_value.array->push_back(val);
+-        set_parent(m_value.array->back(), old_capacity);
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
+-    reference operator+=(const basic_json& val)
+-    {
+-        push_back(val);
+-        return *this;
+-    }
+-
+-    /// @brief add an object to an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/push_back/
+-    void push_back(const typename object_t::value_type& val)
+-    {
+-        // push_back only works for null objects or objects
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_object())))
+-        {
+-            JSON_THROW(type_error::create(308, "cannot use push_back() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value = value_t::object;
+-            assert_invariant();
+-        }
+-
+-        // add element to object
+-        auto res = m_value.object->insert(val);
+-        set_parent(res.first->second);
+-    }
+-
+-    /// @brief add an object to an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
+-    reference operator+=(const typename object_t::value_type& val)
+-    {
+-        push_back(val);
+-        return *this;
+-    }
+-
+-    /// @brief add an object to an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/push_back/
+-    void push_back(initializer_list_t init)
+-    {
+-        if (is_object() && init.size() == 2 && (*init.begin())->is_string())
+-        {
+-            basic_json&& key = init.begin()->moved_or_copied();
+-            push_back(typename object_t::value_type(
+-                          std::move(key.get_ref<string_t&>()), (init.begin() + 1)->moved_or_copied()));
+-        }
+-        else
+-        {
+-            push_back(basic_json(init));
+-        }
+-    }
+-
+-    /// @brief add an object to an object
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
+-    reference operator+=(initializer_list_t init)
+-    {
+-        push_back(init);
+-        return *this;
+-    }
+-
+-    /// @brief add an object to an array
+-    /// @sa https://json.nlohmann.me/api/basic_json/emplace_back/
+-    template<class... Args>
+-    reference emplace_back(Args&& ... args)
+-    {
+-        // emplace_back only works for null objects or arrays
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array())))
+-        {
+-            JSON_THROW(type_error::create(311, "cannot use emplace_back() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an array
+-        if (is_null())
+-        {
+-            m_type = value_t::array;
+-            m_value = value_t::array;
+-            assert_invariant();
+-        }
+-
+-        // add element to array (perfect forwarding)
+-        const auto old_capacity = m_value.array->capacity();
+-        m_value.array->emplace_back(std::forward<Args>(args)...);
+-        return set_parent(m_value.array->back(), old_capacity);
+-    }
+-
+-    /// @brief add an object to an object if key does not exist
+-    /// @sa https://json.nlohmann.me/api/basic_json/emplace/
+-    template<class... Args>
+-    std::pair<iterator, bool> emplace(Args&& ... args)
+-    {
+-        // emplace only works for null objects or arrays
+-        if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_object())))
+-        {
+-            JSON_THROW(type_error::create(311, "cannot use emplace() with " + std::string(type_name()), *this));
+-        }
+-
+-        // transform null object into an object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value = value_t::object;
+-            assert_invariant();
+-        }
+-
+-        // add element to array (perfect forwarding)
+-        auto res = m_value.object->emplace(std::forward<Args>(args)...);
+-        set_parent(res.first->second);
+-
+-        // create result iterator and set iterator to the result of emplace
+-        auto it = begin();
+-        it.m_it.object_iterator = res.first;
+-
+-        // return pair of iterator and boolean
+-        return {it, res.second};
+-    }
+-
+-    /// Helper for insertion of an iterator
+-    /// @note: This uses std::distance to support GCC 4.8,
+-    ///        see https://github.com/nlohmann/json/pull/1257
+-    template<typename... Args>
+-    iterator insert_iterator(const_iterator pos, Args&& ... args)
+-    {
+-        iterator result(this);
+-        JSON_ASSERT(m_value.array != nullptr);
+-
+-        auto insert_pos = std::distance(m_value.array->begin(), pos.m_it.array_iterator);
+-        m_value.array->insert(pos.m_it.array_iterator, std::forward<Args>(args)...);
+-        result.m_it.array_iterator = m_value.array->begin() + insert_pos;
+-
+-        // This could have been written as:
+-        // result.m_it.array_iterator = m_value.array->insert(pos.m_it.array_iterator, cnt, val);
+-        // but the return value of insert is missing in GCC 4.8, so it is written this way instead.
+-
+-        set_parents();
+-        return result;
+-    }
+-
+-    /// @brief inserts element into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, const basic_json& val)
+-    {
+-        // insert only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            // check if iterator pos fits to this JSON value
+-            if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
+-            {
+-                JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-            }
+-
+-            // insert to array and return iterator
+-            return insert_iterator(pos, val);
+-        }
+-
+-        JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief inserts element into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, basic_json&& val)
+-    {
+-        return insert(pos, val);
+-    }
+-
+-    /// @brief inserts copies of element into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, size_type cnt, const basic_json& val)
+-    {
+-        // insert only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            // check if iterator pos fits to this JSON value
+-            if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
+-            {
+-                JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-            }
+-
+-            // insert to array and return iterator
+-            return insert_iterator(pos, cnt, val);
+-        }
+-
+-        JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-    }
+-
+-    /// @brief inserts range of elements into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, const_iterator first, const_iterator last)
+-    {
+-        // insert only works for arrays
+-        if (JSON_HEDLEY_UNLIKELY(!is_array()))
+-        {
+-            JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-        }
+-
+-        // check if iterator pos fits to this JSON value
+-        if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
+-        {
+-            JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-        }
+-
+-        // check if range iterators belong to the same JSON object
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(210, "iterators do not fit", *this));
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object == this))
+-        {
+-            JSON_THROW(invalid_iterator::create(211, "passed iterators may not belong to container", *this));
+-        }
+-
+-        // insert to array and return iterator
+-        return insert_iterator(pos, first.m_it.array_iterator, last.m_it.array_iterator);
+-    }
+-
+-    /// @brief inserts elements from initializer list into array
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    iterator insert(const_iterator pos, initializer_list_t ilist)
+-    {
+-        // insert only works for arrays
+-        if (JSON_HEDLEY_UNLIKELY(!is_array()))
+-        {
+-            JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-        }
+-
+-        // check if iterator pos fits to this JSON value
+-        if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
+-        {
+-            JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", *this));
+-        }
+-
+-        // insert to array and return iterator
+-        return insert_iterator(pos, ilist.begin(), ilist.end());
+-    }
+-
+-    /// @brief inserts range of elements into object
+-    /// @sa https://json.nlohmann.me/api/basic_json/insert/
+-    void insert(const_iterator first, const_iterator last)
+-    {
+-        // insert only works for objects
+-        if (JSON_HEDLEY_UNLIKELY(!is_object()))
+-        {
+-            JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()), *this));
+-        }
+-
+-        // check if range iterators belong to the same JSON object
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(210, "iterators do not fit", *this));
+-        }
+-
+-        // passed iterators must belong to objects
+-        if (JSON_HEDLEY_UNLIKELY(!first.m_object->is_object()))
+-        {
+-            JSON_THROW(invalid_iterator::create(202, "iterators first and last must point to objects", *this));
+-        }
+-
+-        m_value.object->insert(first.m_it.object_iterator, last.m_it.object_iterator);
+-    }
+-
+-    /// @brief updates a JSON object from another object, overwriting existing keys
+-    /// @sa https://json.nlohmann.me/api/basic_json/update/
+-    void update(const_reference j, bool merge_objects = false)
+-    {
+-        update(j.begin(), j.end(), merge_objects);
+-    }
+-
+-    /// @brief updates a JSON object from another object, overwriting existing keys
+-    /// @sa https://json.nlohmann.me/api/basic_json/update/
+-    void update(const_iterator first, const_iterator last, bool merge_objects = false)
+-    {
+-        // implicitly convert null value to an empty object
+-        if (is_null())
+-        {
+-            m_type = value_t::object;
+-            m_value.object = create<object_t>();
+-            assert_invariant();
+-        }
+-
+-        if (JSON_HEDLEY_UNLIKELY(!is_object()))
+-        {
+-            JSON_THROW(type_error::create(312, "cannot use update() with " + std::string(type_name()), *this));
+-        }
+-
+-        // check if range iterators belong to the same JSON object
+-        if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object))
+-        {
+-            JSON_THROW(invalid_iterator::create(210, "iterators do not fit", *this));
+-        }
+-
+-        // passed iterators must belong to objects
+-        if (JSON_HEDLEY_UNLIKELY(!first.m_object->is_object()))
+-        {
+-            JSON_THROW(type_error::create(312, "cannot use update() with " + std::string(first.m_object->type_name()), *first.m_object));
+-        }
+-
+-        for (auto it = first; it != last; ++it)
+-        {
+-            if (merge_objects && it.value().is_object())
+-            {
+-                auto it2 = m_value.object->find(it.key());
+-                if (it2 != m_value.object->end())
+-                {
+-                    it2->second.update(it.value(), true);
+-                    continue;
+-                }
+-            }
+-            m_value.object->operator[](it.key()) = it.value();
+-#if JSON_DIAGNOSTICS
+-            m_value.object->operator[](it.key()).m_parent = this;
+-#endif
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(reference other) noexcept (
+-        std::is_nothrow_move_constructible<value_t>::value&&
+-        std::is_nothrow_move_assignable<value_t>::value&&
+-        std::is_nothrow_move_constructible<json_value>::value&&
+-        std::is_nothrow_move_assignable<json_value>::value
+-    )
+-    {
+-        std::swap(m_type, other.m_type);
+-        std::swap(m_value, other.m_value);
+-
+-        set_parents();
+-        other.set_parents();
+-        assert_invariant();
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    friend void swap(reference left, reference right) noexcept (
+-        std::is_nothrow_move_constructible<value_t>::value&&
+-        std::is_nothrow_move_assignable<value_t>::value&&
+-        std::is_nothrow_move_constructible<json_value>::value&&
+-        std::is_nothrow_move_assignable<json_value>::value
+-    )
+-    {
+-        left.swap(right);
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(array_t& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for arrays
+-        if (JSON_HEDLEY_LIKELY(is_array()))
+-        {
+-            std::swap(*(m_value.array), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(object_t& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for objects
+-        if (JSON_HEDLEY_LIKELY(is_object()))
+-        {
+-            std::swap(*(m_value.object), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(string_t& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for strings
+-        if (JSON_HEDLEY_LIKELY(is_string()))
+-        {
+-            std::swap(*(m_value.string), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(binary_t& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for strings
+-        if (JSON_HEDLEY_LIKELY(is_binary()))
+-        {
+-            std::swap(*(m_value.binary), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @brief exchanges the values
+-    /// @sa https://json.nlohmann.me/api/basic_json/swap/
+-    void swap(typename binary_t::container_type& other) // NOLINT(bugprone-exception-escape)
+-    {
+-        // swap only works for strings
+-        if (JSON_HEDLEY_LIKELY(is_binary()))
+-        {
+-            std::swap(*(m_value.binary), other);
+-        }
+-        else
+-        {
+-            JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()), *this));
+-        }
+-    }
+-
+-    /// @}
+-
+-  public:
+-    //////////////////////////////////////////
+-    // lexicographical comparison operators //
+-    //////////////////////////////////////////
+-
+-    /// @name lexicographical comparison operators
+-    /// @{
+-
+-    /// @brief comparison: equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
+-    friend bool operator==(const_reference lhs, const_reference rhs) noexcept
+-    {
+-#ifdef __GNUC__
+-#pragma GCC diagnostic push
+-#pragma GCC diagnostic ignored "-Wfloat-equal"
+-#endif
+-        const auto lhs_type = lhs.type();
+-        const auto rhs_type = rhs.type();
+-
+-        if (lhs_type == rhs_type)
+-        {
+-            switch (lhs_type)
+-            {
+-                case value_t::array:
+-                    return *lhs.m_value.array == *rhs.m_value.array;
+-
+-                case value_t::object:
+-                    return *lhs.m_value.object == *rhs.m_value.object;
+-
+-                case value_t::null:
+-                    return true;
+-
+-                case value_t::string:
+-                    return *lhs.m_value.string == *rhs.m_value.string;
+-
+-                case value_t::boolean:
+-                    return lhs.m_value.boolean == rhs.m_value.boolean;
+-
+-                case value_t::number_integer:
+-                    return lhs.m_value.number_integer == rhs.m_value.number_integer;
+-
+-                case value_t::number_unsigned:
+-                    return lhs.m_value.number_unsigned == rhs.m_value.number_unsigned;
+-
+-                case value_t::number_float:
+-                    return lhs.m_value.number_float == rhs.m_value.number_float;
+-
+-                case value_t::binary:
+-                    return *lhs.m_value.binary == *rhs.m_value.binary;
+-
+-                case value_t::discarded:
+-                default:
+-                    return false;
+-            }
+-        }
+-        else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_float)
+-        {
+-            return static_cast<number_float_t>(lhs.m_value.number_integer) == rhs.m_value.number_float;
+-        }
+-        else if (lhs_type == value_t::number_float && rhs_type == value_t::number_integer)
+-        {
+-            return lhs.m_value.number_float == static_cast<number_float_t>(rhs.m_value.number_integer);
+-        }
+-        else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_float)
+-        {
+-            return static_cast<number_float_t>(lhs.m_value.number_unsigned) == rhs.m_value.number_float;
+-        }
+-        else if (lhs_type == value_t::number_float && rhs_type == value_t::number_unsigned)
+-        {
+-            return lhs.m_value.number_float == static_cast<number_float_t>(rhs.m_value.number_unsigned);
+-        }
+-        else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_integer)
+-        {
+-            return static_cast<number_integer_t>(lhs.m_value.number_unsigned) == rhs.m_value.number_integer;
+-        }
+-        else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_unsigned)
+-        {
+-            return lhs.m_value.number_integer == static_cast<number_integer_t>(rhs.m_value.number_unsigned);
+-        }
+-
+-        return false;
+-#ifdef __GNUC__
+-#pragma GCC diagnostic pop
+-#endif
+-    }
+-
+-    /// @brief comparison: equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator==(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs == basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator==(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) == rhs;
+-    }
+-
+-    /// @brief comparison: not equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ne/
+-    friend bool operator!=(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        return !(lhs == rhs);
+-    }
+-
+-    /// @brief comparison: not equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ne/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator!=(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs != basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: not equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ne/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator!=(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) != rhs;
+-    }
+-
+-    /// @brief comparison: less than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_lt/
+-    friend bool operator<(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        const auto lhs_type = lhs.type();
+-        const auto rhs_type = rhs.type();
+-
+-        if (lhs_type == rhs_type)
+-        {
+-            switch (lhs_type)
+-            {
+-                case value_t::array:
+-                    // note parentheses are necessary, see
+-                    // https://github.com/nlohmann/json/issues/1530
+-                    return (*lhs.m_value.array) < (*rhs.m_value.array);
+-
+-                case value_t::object:
+-                    return (*lhs.m_value.object) < (*rhs.m_value.object);
+-
+-                case value_t::null:
+-                    return false;
+-
+-                case value_t::string:
+-                    return (*lhs.m_value.string) < (*rhs.m_value.string);
+-
+-                case value_t::boolean:
+-                    return (lhs.m_value.boolean) < (rhs.m_value.boolean);
+-
+-                case value_t::number_integer:
+-                    return (lhs.m_value.number_integer) < (rhs.m_value.number_integer);
+-
+-                case value_t::number_unsigned:
+-                    return (lhs.m_value.number_unsigned) < (rhs.m_value.number_unsigned);
+-
+-                case value_t::number_float:
+-                    return (lhs.m_value.number_float) < (rhs.m_value.number_float);
+-
+-                case value_t::binary:
+-                    return (*lhs.m_value.binary) < (*rhs.m_value.binary);
+-
+-                case value_t::discarded:
+-                default:
+-                    return false;
+-            }
+-        }
+-        else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_float)
+-        {
+-            return static_cast<number_float_t>(lhs.m_value.number_integer) < rhs.m_value.number_float;
+-        }
+-        else if (lhs_type == value_t::number_float && rhs_type == value_t::number_integer)
+-        {
+-            return lhs.m_value.number_float < static_cast<number_float_t>(rhs.m_value.number_integer);
+-        }
+-        else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_float)
+-        {
+-            return static_cast<number_float_t>(lhs.m_value.number_unsigned) < rhs.m_value.number_float;
+-        }
+-        else if (lhs_type == value_t::number_float && rhs_type == value_t::number_unsigned)
+-        {
+-            return lhs.m_value.number_float < static_cast<number_float_t>(rhs.m_value.number_unsigned);
+-        }
+-        else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_unsigned)
+-        {
+-            return lhs.m_value.number_integer < static_cast<number_integer_t>(rhs.m_value.number_unsigned);
+-        }
+-        else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_integer)
+-        {
+-            return static_cast<number_integer_t>(lhs.m_value.number_unsigned) < rhs.m_value.number_integer;
+-        }
+-
+-        // We only reach this line if we cannot compare values. In that case,
+-        // we compare types. Note we have to call the operator explicitly,
+-        // because MSVC has problems otherwise.
+-        return operator<(lhs_type, rhs_type);
+-    }
+-
+-    /// @brief comparison: less than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_lt/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator<(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs < basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: less than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_lt/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator<(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) < rhs;
+-    }
+-
+-    /// @brief comparison: less than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_le/
+-    friend bool operator<=(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        return !(rhs < lhs);
+-    }
+-
+-    /// @brief comparison: less than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_le/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator<=(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs <= basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: less than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_le/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator<=(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) <= rhs;
+-    }
+-
+-    /// @brief comparison: greater than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gt/
+-    friend bool operator>(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        return !(lhs <= rhs);
+-    }
+-
+-    /// @brief comparison: greater than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gt/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator>(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs > basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: greater than
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gt/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator>(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) > rhs;
+-    }
+-
+-    /// @brief comparison: greater than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ge/
+-    friend bool operator>=(const_reference lhs, const_reference rhs) noexcept
+-    {
+-        return !(lhs < rhs);
+-    }
+-
+-    /// @brief comparison: greater than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ge/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator>=(const_reference lhs, ScalarType rhs) noexcept
+-    {
+-        return lhs >= basic_json(rhs);
+-    }
+-
+-    /// @brief comparison: greater than or equal
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ge/
+-    template<typename ScalarType, typename std::enable_if<
+-                 std::is_scalar<ScalarType>::value, int>::type = 0>
+-    friend bool operator>=(ScalarType lhs, const_reference rhs) noexcept
+-    {
+-        return basic_json(lhs) >= rhs;
+-    }
+-
+-    /// @}
+-
+-    ///////////////////
+-    // serialization //
+-    ///////////////////
+-
+-    /// @name serialization
+-    /// @{
+-#ifndef JSON_NO_IO
+-    /// @brief serialize to stream
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ltlt/
+-    friend std::ostream& operator<<(std::ostream& o, const basic_json& j)
+-    {
+-        // read width member and use it as indentation parameter if nonzero
+-        const bool pretty_print = o.width() > 0;
+-        const auto indentation = pretty_print ? o.width() : 0;
+-
+-        // reset width to 0 for subsequent calls to this stream
+-        o.width(0);
+-
+-        // do the actual serialization
+-        serializer s(detail::output_adapter<char>(o), o.fill());
+-        s.dump(j, pretty_print, false, static_cast<unsigned int>(indentation));
+-        return o;
+-    }
+-
+-    /// @brief serialize to stream
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_ltlt/
+-    /// @deprecated This function is deprecated since 3.0.0 and will be removed in
+-    ///             version 4.0.0 of the library. Please use
+-    ///             operator<<(std::ostream&, const basic_json&) instead; that is,
+-    ///             replace calls like `j >> o;` with `o << j;`.
+-    JSON_HEDLEY_DEPRECATED_FOR(3.0.0, operator<<(std::ostream&, const basic_json&))
+-    friend std::ostream& operator>>(const basic_json& j, std::ostream& o)
+-    {
+-        return o << j;
+-    }
+-#endif  // JSON_NO_IO
+-    /// @}
+-
+-
+-    /////////////////////
+-    // deserialization //
+-    /////////////////////
+-
+-    /// @name deserialization
+-    /// @{
+-
+-    /// @brief deserialize from a compatible input
+-    /// @sa https://json.nlohmann.me/api/basic_json/parse/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json parse(InputType&& i,
+-                            const parser_callback_t cb = nullptr,
+-                            const bool allow_exceptions = true,
+-                            const bool ignore_comments = false)
+-    {
+-        basic_json result;
+-        parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result);
+-        return result;
+-    }
+-
+-    /// @brief deserialize from a pair of character iterators
+-    /// @sa https://json.nlohmann.me/api/basic_json/parse/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json parse(IteratorType first,
+-                            IteratorType last,
+-                            const parser_callback_t cb = nullptr,
+-                            const bool allow_exceptions = true,
+-                            const bool ignore_comments = false)
+-    {
+-        basic_json result;
+-        parser(detail::input_adapter(std::move(first), std::move(last)), cb, allow_exceptions, ignore_comments).parse(true, result);
+-        return result;
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, parse(ptr, ptr + len))
+-    static basic_json parse(detail::span_input_adapter&& i,
+-                            const parser_callback_t cb = nullptr,
+-                            const bool allow_exceptions = true,
+-                            const bool ignore_comments = false)
+-    {
+-        basic_json result;
+-        parser(i.get(), cb, allow_exceptions, ignore_comments).parse(true, result);
+-        return result;
+-    }
+-
+-    /// @brief check if the input is valid JSON
+-    /// @sa https://json.nlohmann.me/api/basic_json/accept/
+-    template<typename InputType>
+-    static bool accept(InputType&& i,
+-                       const bool ignore_comments = false)
+-    {
+-        return parser(detail::input_adapter(std::forward<InputType>(i)), nullptr, false, ignore_comments).accept(true);
+-    }
+-
+-    /// @brief check if the input is valid JSON
+-    /// @sa https://json.nlohmann.me/api/basic_json/accept/
+-    template<typename IteratorType>
+-    static bool accept(IteratorType first, IteratorType last,
+-                       const bool ignore_comments = false)
+-    {
+-        return parser(detail::input_adapter(std::move(first), std::move(last)), nullptr, false, ignore_comments).accept(true);
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, accept(ptr, ptr + len))
+-    static bool accept(detail::span_input_adapter&& i,
+-                       const bool ignore_comments = false)
+-    {
+-        return parser(i.get(), nullptr, false, ignore_comments).accept(true);
+-    }
+-
+-    /// @brief generate SAX events
+-    /// @sa https://json.nlohmann.me/api/basic_json/sax_parse/
+-    template <typename InputType, typename SAX>
+-    JSON_HEDLEY_NON_NULL(2)
+-    static bool sax_parse(InputType&& i, SAX* sax,
+-                          input_format_t format = input_format_t::json,
+-                          const bool strict = true,
+-                          const bool ignore_comments = false)
+-    {
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        return format == input_format_t::json
+-               ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
+-               : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict);
+-    }
+-
+-    /// @brief generate SAX events
+-    /// @sa https://json.nlohmann.me/api/basic_json/sax_parse/
+-    template<class IteratorType, class SAX>
+-    JSON_HEDLEY_NON_NULL(3)
+-    static bool sax_parse(IteratorType first, IteratorType last, SAX* sax,
+-                          input_format_t format = input_format_t::json,
+-                          const bool strict = true,
+-                          const bool ignore_comments = false)
+-    {
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        return format == input_format_t::json
+-               ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
+-               : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict);
+-    }
+-
+-    /// @brief generate SAX events
+-    /// @sa https://json.nlohmann.me/api/basic_json/sax_parse/
+-    /// @deprecated This function is deprecated since 3.8.0 and will be removed in
+-    ///             version 4.0.0 of the library. Please use
+-    ///             sax_parse(ptr, ptr + len) instead.
+-    template <typename SAX>
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, sax_parse(ptr, ptr + len, ...))
+-    JSON_HEDLEY_NON_NULL(2)
+-    static bool sax_parse(detail::span_input_adapter&& i, SAX* sax,
+-                          input_format_t format = input_format_t::json,
+-                          const bool strict = true,
+-                          const bool ignore_comments = false)
+-    {
+-        auto ia = i.get();
+-        return format == input_format_t::json
+-               // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-               ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
+-               // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-               : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict);
+-    }
+-#ifndef JSON_NO_IO
+-    /// @brief deserialize from stream
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gtgt/
+-    /// @deprecated This stream operator is deprecated since 3.0.0 and will be removed in
+-    ///             version 4.0.0 of the library. Please use
+-    ///             operator>>(std::istream&, basic_json&) instead; that is,
+-    ///             replace calls like `j << i;` with `i >> j;`.
+-    JSON_HEDLEY_DEPRECATED_FOR(3.0.0, operator>>(std::istream&, basic_json&))
+-    friend std::istream& operator<<(basic_json& j, std::istream& i)
+-    {
+-        return operator>>(i, j);
+-    }
+-
+-    /// @brief deserialize from stream
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator_gtgt/
+-    friend std::istream& operator>>(std::istream& i, basic_json& j)
+-    {
+-        parser(detail::input_adapter(i)).parse(false, j);
+-        return i;
+-    }
+-#endif  // JSON_NO_IO
+-    /// @}
+-
+-    ///////////////////////////
+-    // convenience functions //
+-    ///////////////////////////
+-
+-    /// @brief return the type as string
+-    /// @sa https://json.nlohmann.me/api/basic_json/type_name/
+-    JSON_HEDLEY_RETURNS_NON_NULL
+-    const char* type_name() const noexcept
+-    {
+-        switch (m_type)
+-        {
+-            case value_t::null:
+-                return "null";
+-            case value_t::object:
+-                return "object";
+-            case value_t::array:
+-                return "array";
+-            case value_t::string:
+-                return "string";
+-            case value_t::boolean:
+-                return "boolean";
+-            case value_t::binary:
+-                return "binary";
+-            case value_t::discarded:
+-                return "discarded";
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            default:
+-                return "number";
+-        }
+-    }
+-
+-
+-  JSON_PRIVATE_UNLESS_TESTED:
+-    //////////////////////
+-    // member variables //
+-    //////////////////////
+-
+-    /// the type of the current element
+-    value_t m_type = value_t::null;
+-
+-    /// the value of the current element
+-    json_value m_value = {};
+-
+-#if JSON_DIAGNOSTICS
+-    /// a pointer to a parent value (for debugging purposes)
+-    basic_json* m_parent = nullptr;
+-#endif
+-
+-    //////////////////////////////////////////
+-    // binary serialization/deserialization //
+-    //////////////////////////////////////////
+-
+-    /// @name binary serialization/deserialization support
+-    /// @{
+-
+-  public:
+-    /// @brief create a CBOR serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
+-    static std::vector<std::uint8_t> to_cbor(const basic_json& j)
+-    {
+-        std::vector<std::uint8_t> result;
+-        to_cbor(j, result);
+-        return result;
+-    }
+-
+-    /// @brief create a CBOR serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
+-    static void to_cbor(const basic_json& j, detail::output_adapter<std::uint8_t> o)
+-    {
+-        binary_writer<std::uint8_t>(o).write_cbor(j);
+-    }
+-
+-    /// @brief create a CBOR serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
+-    static void to_cbor(const basic_json& j, detail::output_adapter<char> o)
+-    {
+-        binary_writer<char>(o).write_cbor(j);
+-    }
+-
+-    /// @brief create a MessagePack serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_msgpack/
+-    static std::vector<std::uint8_t> to_msgpack(const basic_json& j)
+-    {
+-        std::vector<std::uint8_t> result;
+-        to_msgpack(j, result);
+-        return result;
+-    }
+-
+-    /// @brief create a MessagePack serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_msgpack/
+-    static void to_msgpack(const basic_json& j, detail::output_adapter<std::uint8_t> o)
+-    {
+-        binary_writer<std::uint8_t>(o).write_msgpack(j);
+-    }
+-
+-    /// @brief create a MessagePack serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_msgpack/
+-    static void to_msgpack(const basic_json& j, detail::output_adapter<char> o)
+-    {
+-        binary_writer<char>(o).write_msgpack(j);
+-    }
+-
+-    /// @brief create a UBJSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_ubjson/
+-    static std::vector<std::uint8_t> to_ubjson(const basic_json& j,
+-            const bool use_size = false,
+-            const bool use_type = false)
+-    {
+-        std::vector<std::uint8_t> result;
+-        to_ubjson(j, result, use_size, use_type);
+-        return result;
+-    }
+-
+-    /// @brief create a UBJSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_ubjson/
+-    static void to_ubjson(const basic_json& j, detail::output_adapter<std::uint8_t> o,
+-                          const bool use_size = false, const bool use_type = false)
+-    {
+-        binary_writer<std::uint8_t>(o).write_ubjson(j, use_size, use_type);
+-    }
+-
+-    /// @brief create a UBJSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_ubjson/
+-    static void to_ubjson(const basic_json& j, detail::output_adapter<char> o,
+-                          const bool use_size = false, const bool use_type = false)
+-    {
+-        binary_writer<char>(o).write_ubjson(j, use_size, use_type);
+-    }
+-
+-    /// @brief create a BSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_bson/
+-    static std::vector<std::uint8_t> to_bson(const basic_json& j)
+-    {
+-        std::vector<std::uint8_t> result;
+-        to_bson(j, result);
+-        return result;
+-    }
+-
+-    /// @brief create a BSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_bson/
+-    static void to_bson(const basic_json& j, detail::output_adapter<std::uint8_t> o)
+-    {
+-        binary_writer<std::uint8_t>(o).write_bson(j);
+-    }
+-
+-    /// @brief create a BSON serialization of a given JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/to_bson/
+-    static void to_bson(const basic_json& j, detail::output_adapter<char> o)
+-    {
+-        binary_writer<char>(o).write_bson(j);
+-    }
+-
+-    /// @brief create a JSON value from an input in CBOR format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_cbor/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_cbor(InputType&& i,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true,
+-                                const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, strict, tag_handler);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in CBOR format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_cbor/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_cbor(IteratorType first, IteratorType last,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true,
+-                                const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, strict, tag_handler);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    template<typename T>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_cbor(ptr, ptr + len))
+-    static basic_json from_cbor(const T* ptr, std::size_t len,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true,
+-                                const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        return from_cbor(ptr, ptr + len, strict, allow_exceptions, tag_handler);
+-    }
+-
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_cbor(ptr, ptr + len))
+-    static basic_json from_cbor(detail::span_input_adapter&& i,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true,
+-                                const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = i.get();
+-        // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, strict, tag_handler);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in MessagePack format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_msgpack/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_msgpack(InputType&& i,
+-                                   const bool strict = true,
+-                                   const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::msgpack, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in MessagePack format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_msgpack/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_msgpack(IteratorType first, IteratorType last,
+-                                   const bool strict = true,
+-                                   const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::msgpack, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    template<typename T>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_msgpack(ptr, ptr + len))
+-    static basic_json from_msgpack(const T* ptr, std::size_t len,
+-                                   const bool strict = true,
+-                                   const bool allow_exceptions = true)
+-    {
+-        return from_msgpack(ptr, ptr + len, strict, allow_exceptions);
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_msgpack(ptr, ptr + len))
+-    static basic_json from_msgpack(detail::span_input_adapter&& i,
+-                                   const bool strict = true,
+-                                   const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = i.get();
+-        // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::msgpack, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in UBJSON format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_ubjson/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_ubjson(InputType&& i,
+-                                  const bool strict = true,
+-                                  const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::ubjson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in UBJSON format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_ubjson/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_ubjson(IteratorType first, IteratorType last,
+-                                  const bool strict = true,
+-                                  const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::ubjson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    template<typename T>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_ubjson(ptr, ptr + len))
+-    static basic_json from_ubjson(const T* ptr, std::size_t len,
+-                                  const bool strict = true,
+-                                  const bool allow_exceptions = true)
+-    {
+-        return from_ubjson(ptr, ptr + len, strict, allow_exceptions);
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_ubjson(ptr, ptr + len))
+-    static basic_json from_ubjson(detail::span_input_adapter&& i,
+-                                  const bool strict = true,
+-                                  const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = i.get();
+-        // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::ubjson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in BSON format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_bson/
+-    template<typename InputType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_bson(InputType&& i,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::forward<InputType>(i));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::bson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    /// @brief create a JSON value from an input in BSON format
+-    /// @sa https://json.nlohmann.me/api/basic_json/from_bson/
+-    template<typename IteratorType>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json from_bson(IteratorType first, IteratorType last,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = detail::input_adapter(std::move(first), std::move(last));
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::bson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-
+-    template<typename T>
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_bson(ptr, ptr + len))
+-    static basic_json from_bson(const T* ptr, std::size_t len,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true)
+-    {
+-        return from_bson(ptr, ptr + len, strict, allow_exceptions);
+-    }
+-
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_bson(ptr, ptr + len))
+-    static basic_json from_bson(detail::span_input_adapter&& i,
+-                                const bool strict = true,
+-                                const bool allow_exceptions = true)
+-    {
+-        basic_json result;
+-        detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
+-        auto ia = i.get();
+-        // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
+-        const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::bson, &sdp, strict);
+-        return res ? result : basic_json(value_t::discarded);
+-    }
+-    /// @}
+-
+-    //////////////////////////
+-    // JSON Pointer support //
+-    //////////////////////////
+-
+-    /// @name JSON Pointer functions
+-    /// @{
+-
+-    /// @brief access specified element via JSON Pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    reference operator[](const json_pointer& ptr)
+-    {
+-        return ptr.get_unchecked(this);
+-    }
+-
+-    /// @brief access specified element via JSON Pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
+-    const_reference operator[](const json_pointer& ptr) const
+-    {
+-        return ptr.get_unchecked(this);
+-    }
+-
+-    /// @brief access specified element via JSON Pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    reference at(const json_pointer& ptr)
+-    {
+-        return ptr.get_checked(this);
+-    }
+-
+-    /// @brief access specified element via JSON Pointer
+-    /// @sa https://json.nlohmann.me/api/basic_json/at/
+-    const_reference at(const json_pointer& ptr) const
+-    {
+-        return ptr.get_checked(this);
+-    }
+-
+-    /// @brief return flattened JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/flatten/
+-    basic_json flatten() const
+-    {
+-        basic_json result(value_t::object);
+-        json_pointer::flatten("", *this, result);
+-        return result;
+-    }
+-
+-    /// @brief unflatten a previously flattened JSON value
+-    /// @sa https://json.nlohmann.me/api/basic_json/unflatten/
+-    basic_json unflatten() const
+-    {
+-        return json_pointer::unflatten(*this);
+-    }
+-
+-    /// @}
+-
+-    //////////////////////////
+-    // JSON Patch functions //
+-    //////////////////////////
+-
+-    /// @name JSON Patch functions
+-    /// @{
+-
+-    /// @brief applies a JSON patch
+-    /// @sa https://json.nlohmann.me/api/basic_json/patch/
+-    basic_json patch(const basic_json& json_patch) const
+-    {
+-        // make a working copy to apply the patch to
+-        basic_json result = *this;
+-
+-        // the valid JSON Patch operations
+-        enum class patch_operations {add, remove, replace, move, copy, test, invalid};
+-
+-        const auto get_op = [](const std::string & op)
+-        {
+-            if (op == "add")
+-            {
+-                return patch_operations::add;
+-            }
+-            if (op == "remove")
+-            {
+-                return patch_operations::remove;
+-            }
+-            if (op == "replace")
+-            {
+-                return patch_operations::replace;
+-            }
+-            if (op == "move")
+-            {
+-                return patch_operations::move;
+-            }
+-            if (op == "copy")
+-            {
+-                return patch_operations::copy;
+-            }
+-            if (op == "test")
+-            {
+-                return patch_operations::test;
+-            }
+-
+-            return patch_operations::invalid;
+-        };
+-
+-        // wrapper for "add" operation; add value at ptr
+-        const auto operation_add = [&result](json_pointer & ptr, basic_json val)
+-        {
+-            // adding to the root of the target document means replacing it
+-            if (ptr.empty())
+-            {
+-                result = val;
+-                return;
+-            }
+-
+-            // make sure the top element of the pointer exists
+-            json_pointer top_pointer = ptr.top();
+-            if (top_pointer != ptr)
+-            {
+-                result.at(top_pointer);
+-            }
+-
+-            // get reference to parent of JSON pointer ptr
+-            const auto last_path = ptr.back();
+-            ptr.pop_back();
+-            basic_json& parent = result[ptr];
+-
+-            switch (parent.m_type)
+-            {
+-                case value_t::null:
+-                case value_t::object:
+-                {
+-                    // use operator[] to add value
+-                    parent[last_path] = val;
+-                    break;
+-                }
+-
+-                case value_t::array:
+-                {
+-                    if (last_path == "-")
+-                    {
+-                        // special case: append to back
+-                        parent.push_back(val);
+-                    }
+-                    else
+-                    {
+-                        const auto idx = json_pointer::array_index(last_path);
+-                        if (JSON_HEDLEY_UNLIKELY(idx > parent.size()))
+-                        {
+-                            // avoid undefined behavior
+-                            JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range", parent));
+-                        }
+-
+-                        // default case: insert add offset
+-                        parent.insert(parent.begin() + static_cast<difference_type>(idx), val);
+-                    }
+-                    break;
+-                }
+-
+-                // if there exists a parent it cannot be primitive
+-                case value_t::string: // LCOV_EXCL_LINE
+-                case value_t::boolean: // LCOV_EXCL_LINE
+-                case value_t::number_integer: // LCOV_EXCL_LINE
+-                case value_t::number_unsigned: // LCOV_EXCL_LINE
+-                case value_t::number_float: // LCOV_EXCL_LINE
+-                case value_t::binary: // LCOV_EXCL_LINE
+-                case value_t::discarded: // LCOV_EXCL_LINE
+-                default:            // LCOV_EXCL_LINE
+-                    JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
+-            }
+-        };
+-
+-        // wrapper for "remove" operation; remove value at ptr
+-        const auto operation_remove = [this, &result](json_pointer & ptr)
+-        {
+-            // get reference to parent of JSON pointer ptr
+-            const auto last_path = ptr.back();
+-            ptr.pop_back();
+-            basic_json& parent = result.at(ptr);
+-
+-            // remove child
+-            if (parent.is_object())
+-            {
+-                // perform range check
+-                auto it = parent.find(last_path);
+-                if (JSON_HEDLEY_LIKELY(it != parent.end()))
+-                {
+-                    parent.erase(it);
+-                }
+-                else
+-                {
+-                    JSON_THROW(out_of_range::create(403, "key '" + last_path + "' not found", *this));
+-                }
+-            }
+-            else if (parent.is_array())
+-            {
+-                // note erase performs range check
+-                parent.erase(json_pointer::array_index(last_path));
+-            }
+-        };
+-
+-        // type check: top level value must be an array
+-        if (JSON_HEDLEY_UNLIKELY(!json_patch.is_array()))
+-        {
+-            JSON_THROW(parse_error::create(104, 0, "JSON patch must be an array of objects", json_patch));
+-        }
+-
+-        // iterate and apply the operations
+-        for (const auto& val : json_patch)
+-        {
+-            // wrapper to get a value for an operation
+-            const auto get_value = [&val](const std::string & op,
+-                                          const std::string & member,
+-                                          bool string_type) -> basic_json &
+-            {
+-                // find value
+-                auto it = val.m_value.object->find(member);
+-
+-                // context-sensitive error message
+-                const auto error_msg = (op == "op") ? "operation" : "operation '" + op + "'";
+-
+-                // check if desired value is present
+-                if (JSON_HEDLEY_UNLIKELY(it == val.m_value.object->end()))
+-                {
+-                    // NOLINTNEXTLINE(performance-inefficient-string-concatenation)
+-                    JSON_THROW(parse_error::create(105, 0, error_msg + " must have member '" + member + "'", val));
+-                }
+-
+-                // check if result is of type string
+-                if (JSON_HEDLEY_UNLIKELY(string_type && !it->second.is_string()))
+-                {
+-                    // NOLINTNEXTLINE(performance-inefficient-string-concatenation)
+-                    JSON_THROW(parse_error::create(105, 0, error_msg + " must have string member '" + member + "'", val));
+-                }
+-
+-                // no error: return value
+-                return it->second;
+-            };
+-
+-            // type check: every element of the array must be an object
+-            if (JSON_HEDLEY_UNLIKELY(!val.is_object()))
+-            {
+-                JSON_THROW(parse_error::create(104, 0, "JSON patch must be an array of objects", val));
+-            }
+-
+-            // collect mandatory members
+-            const auto op = get_value("op", "op", true).template get<std::string>();
+-            const auto path = get_value(op, "path", true).template get<std::string>();
+-            json_pointer ptr(path);
+-
+-            switch (get_op(op))
+-            {
+-                case patch_operations::add:
+-                {
+-                    operation_add(ptr, get_value("add", "value", false));
+-                    break;
+-                }
+-
+-                case patch_operations::remove:
+-                {
+-                    operation_remove(ptr);
+-                    break;
+-                }
+-
+-                case patch_operations::replace:
+-                {
+-                    // the "path" location must exist - use at()
+-                    result.at(ptr) = get_value("replace", "value", false);
+-                    break;
+-                }
+-
+-                case patch_operations::move:
+-                {
+-                    const auto from_path = get_value("move", "from", true).template get<std::string>();
+-                    json_pointer from_ptr(from_path);
+-
+-                    // the "from" location must exist - use at()
+-                    basic_json v = result.at(from_ptr);
+-
+-                    // The move operation is functionally identical to a
+-                    // "remove" operation on the "from" location, followed
+-                    // immediately by an "add" operation at the target
+-                    // location with the value that was just removed.
+-                    operation_remove(from_ptr);
+-                    operation_add(ptr, v);
+-                    break;
+-                }
+-
+-                case patch_operations::copy:
+-                {
+-                    const auto from_path = get_value("copy", "from", true).template get<std::string>();
+-                    const json_pointer from_ptr(from_path);
+-
+-                    // the "from" location must exist - use at()
+-                    basic_json v = result.at(from_ptr);
+-
+-                    // The copy is functionally identical to an "add"
+-                    // operation at the target location using the value
+-                    // specified in the "from" member.
+-                    operation_add(ptr, v);
+-                    break;
+-                }
+-
+-                case patch_operations::test:
+-                {
+-                    bool success = false;
+-                    JSON_TRY
+-                    {
+-                        // check if "value" matches the one at "path"
+-                        // the "path" location must exist - use at()
+-                        success = (result.at(ptr) == get_value("test", "value", false));
+-                    }
+-                    JSON_INTERNAL_CATCH (out_of_range&)
+-                    {
+-                        // ignore out of range errors: success remains false
+-                    }
+-
+-                    // throw an exception if test fails
+-                    if (JSON_HEDLEY_UNLIKELY(!success))
+-                    {
+-                        JSON_THROW(other_error::create(501, "unsuccessful: " + val.dump(), val));
+-                    }
+-
+-                    break;
+-                }
+-
+-                case patch_operations::invalid:
+-                default:
+-                {
+-                    // op must be "add", "remove", "replace", "move", "copy", or
+-                    // "test"
+-                    JSON_THROW(parse_error::create(105, 0, "operation value '" + op + "' is invalid", val));
+-                }
+-            }
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @brief creates a diff as a JSON patch
+-    /// @sa https://json.nlohmann.me/api/basic_json/diff/
+-    JSON_HEDLEY_WARN_UNUSED_RESULT
+-    static basic_json diff(const basic_json& source, const basic_json& target,
+-                           const std::string& path = "")
+-    {
+-        // the patch
+-        basic_json result(value_t::array);
+-
+-        // if the values are the same, return empty patch
+-        if (source == target)
+-        {
+-            return result;
+-        }
+-
+-        if (source.type() != target.type())
+-        {
+-            // different types: replace value
+-            result.push_back(
+-            {
+-                {"op", "replace"}, {"path", path}, {"value", target}
+-            });
+-            return result;
+-        }
+-
+-        switch (source.type())
+-        {
+-            case value_t::array:
+-            {
+-                // first pass: traverse common elements
+-                std::size_t i = 0;
+-                while (i < source.size() && i < target.size())
+-                {
+-                    // recursive call to compare array values at index i
+-                    auto temp_diff = diff(source[i], target[i], path + "/" + std::to_string(i));
+-                    result.insert(result.end(), temp_diff.begin(), temp_diff.end());
+-                    ++i;
+-                }
+-
+-                // We now reached the end of at least one array
+-                // in a second pass, traverse the remaining elements
+-
+-                // remove my remaining elements
+-                const auto end_index = static_cast<difference_type>(result.size());
+-                while (i < source.size())
+-                {
+-                    // add operations in reverse order to avoid invalid
+-                    // indices
+-                    result.insert(result.begin() + end_index, object(
+-                    {
+-                        {"op", "remove"},
+-                        {"path", path + "/" + std::to_string(i)}
+-                    }));
+-                    ++i;
+-                }
+-
+-                // add other remaining elements
+-                while (i < target.size())
+-                {
+-                    result.push_back(
+-                    {
+-                        {"op", "add"},
+-                        {"path", path + "/-"},
+-                        {"value", target[i]}
+-                    });
+-                    ++i;
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::object:
+-            {
+-                // first pass: traverse this object's elements
+-                for (auto it = source.cbegin(); it != source.cend(); ++it)
+-                {
+-                    // escape the key name to be used in a JSON patch
+-                    const auto path_key = path + "/" + detail::escape(it.key());
+-
+-                    if (target.find(it.key()) != target.end())
+-                    {
+-                        // recursive call to compare object values at key it
+-                        auto temp_diff = diff(it.value(), target[it.key()], path_key);
+-                        result.insert(result.end(), temp_diff.begin(), temp_diff.end());
+-                    }
+-                    else
+-                    {
+-                        // found a key that is not in o -> remove it
+-                        result.push_back(object(
+-                        {
+-                            {"op", "remove"}, {"path", path_key}
+-                        }));
+-                    }
+-                }
+-
+-                // second pass: traverse other object's elements
+-                for (auto it = target.cbegin(); it != target.cend(); ++it)
+-                {
+-                    if (source.find(it.key()) == source.end())
+-                    {
+-                        // found a key that is not in this -> add it
+-                        const auto path_key = path + "/" + detail::escape(it.key());
+-                        result.push_back(
+-                        {
+-                            {"op", "add"}, {"path", path_key},
+-                            {"value", it.value()}
+-                        });
+-                    }
+-                }
+-
+-                break;
+-            }
+-
+-            case value_t::null:
+-            case value_t::string:
+-            case value_t::boolean:
+-            case value_t::number_integer:
+-            case value_t::number_unsigned:
+-            case value_t::number_float:
+-            case value_t::binary:
+-            case value_t::discarded:
+-            default:
+-            {
+-                // both primitive type: replace value
+-                result.push_back(
+-                {
+-                    {"op", "replace"}, {"path", path}, {"value", target}
+-                });
+-                break;
+-            }
+-        }
+-
+-        return result;
+-    }
+-
+-    /// @}
+-
+-    ////////////////////////////////
+-    // JSON Merge Patch functions //
+-    ////////////////////////////////
+-
+-    /// @name JSON Merge Patch functions
+-    /// @{
+-
+-    /// @brief applies a JSON Merge Patch
+-    /// @sa https://json.nlohmann.me/api/basic_json/merge_patch/
+-    void merge_patch(const basic_json& apply_patch)
+-    {
+-        if (apply_patch.is_object())
+-        {
+-            if (!is_object())
+-            {
+-                *this = object();
+-            }
+-            for (auto it = apply_patch.begin(); it != apply_patch.end(); ++it)
+-            {
+-                if (it.value().is_null())
+-                {
+-                    erase(it.key());
+-                }
+-                else
+-                {
+-                    operator[](it.key()).merge_patch(it.value());
+-                }
+-            }
+-        }
+-        else
+-        {
+-            *this = apply_patch;
+-        }
+-    }
+-
+-    /// @}
+-};
+-
+-/// @brief user-defined to_string function for JSON values
+-/// @sa https://json.nlohmann.me/api/basic_json/to_string/
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-std::string to_string(const NLOHMANN_BASIC_JSON_TPL& j)
+-{
+-    return j.dump();
+-}
+-
+-} // namespace nlohmann
+-
+-///////////////////////
+-// nonmember support //
+-///////////////////////
+-
+-namespace std // NOLINT(cert-dcl58-cpp)
+-{
+-
+-/// @brief hash value for JSON objects
+-/// @sa https://json.nlohmann.me/api/basic_json/std_hash/
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-struct hash<nlohmann::NLOHMANN_BASIC_JSON_TPL>
+-{
+-    std::size_t operator()(const nlohmann::NLOHMANN_BASIC_JSON_TPL& j) const
+-    {
+-        return nlohmann::detail::hash(j);
+-    }
+-};
+-
+-// specialization for std::less<value_t>
+-template<>
+-struct less< ::nlohmann::detail::value_t> // do not remove the space after '<', see https://github.com/nlohmann/json/pull/679
+-{
+-    /*!
+-    @brief compare two value_t enum values
+-    @since version 3.0.0
+-    */
+-    bool operator()(nlohmann::detail::value_t lhs,
+-                    nlohmann::detail::value_t rhs) const noexcept
+-    {
+-        return nlohmann::detail::operator<(lhs, rhs);
+-    }
+-};
+-
+-// C++20 prohibit function specialization in the std namespace.
+-#ifndef JSON_HAS_CPP_20
+-
+-/// @brief exchanges the values of two JSON objects
+-/// @sa https://json.nlohmann.me/api/basic_json/std_swap/
+-NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-inline void swap(nlohmann::NLOHMANN_BASIC_JSON_TPL& j1, nlohmann::NLOHMANN_BASIC_JSON_TPL& j2) noexcept(  // NOLINT(readability-inconsistent-declaration-parameter-name)
+-    is_nothrow_move_constructible<nlohmann::NLOHMANN_BASIC_JSON_TPL>::value&&                          // NOLINT(misc-redundant-expression)
+-    is_nothrow_move_assignable<nlohmann::NLOHMANN_BASIC_JSON_TPL>::value)
+-{
+-    j1.swap(j2);
+-}
+-
+-#endif
+-
+-} // namespace std
+-
+-/// @brief user-defined string literal for JSON values
+-/// @sa https://json.nlohmann.me/api/basic_json/operator_literal_json/
+-JSON_HEDLEY_NON_NULL(1)
+-inline nlohmann::json operator "" _json(const char* s, std::size_t n)
+-{
+-    return nlohmann::json::parse(s, s + n);
+-}
+-
+-/// @brief user-defined string literal for JSON pointer
+-/// @sa https://json.nlohmann.me/api/basic_json/operator_literal_json_pointer/
+-JSON_HEDLEY_NON_NULL(1)
+-inline nlohmann::json::json_pointer operator "" _json_pointer(const char* s, std::size_t n)
+-{
+-    return nlohmann::json::json_pointer(std::string(s, n));
+-}
+-
+-// #include <nlohmann/detail/macro_unscope.hpp>
+-
+-
+-// restore clang diagnostic settings
+-#if defined(__clang__)
+-    #pragma clang diagnostic pop
+-#endif
+-
+-// clean up
+-#undef JSON_ASSERT
+-#undef JSON_INTERNAL_CATCH
+-#undef JSON_CATCH
+-#undef JSON_THROW
+-#undef JSON_TRY
+-#undef JSON_PRIVATE_UNLESS_TESTED
+-#undef JSON_HAS_CPP_11
+-#undef JSON_HAS_CPP_14
+-#undef JSON_HAS_CPP_17
+-#undef JSON_HAS_CPP_20
+-#undef JSON_HAS_FILESYSTEM
+-#undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
+-#undef NLOHMANN_BASIC_JSON_TPL_DECLARATION
+-#undef NLOHMANN_BASIC_JSON_TPL
+-#undef JSON_EXPLICIT
+-#undef NLOHMANN_CAN_CALL_STD_FUNC_IMPL
+-
+-// #include <nlohmann/thirdparty/hedley/hedley_undef.hpp>
+-
+-
+-#undef JSON_HEDLEY_ALWAYS_INLINE
+-#undef JSON_HEDLEY_ARM_VERSION
+-#undef JSON_HEDLEY_ARM_VERSION_CHECK
+-#undef JSON_HEDLEY_ARRAY_PARAM
+-#undef JSON_HEDLEY_ASSUME
+-#undef JSON_HEDLEY_BEGIN_C_DECLS
+-#undef JSON_HEDLEY_CLANG_HAS_ATTRIBUTE
+-#undef JSON_HEDLEY_CLANG_HAS_BUILTIN
+-#undef JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE
+-#undef JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE
+-#undef JSON_HEDLEY_CLANG_HAS_EXTENSION
+-#undef JSON_HEDLEY_CLANG_HAS_FEATURE
+-#undef JSON_HEDLEY_CLANG_HAS_WARNING
+-#undef JSON_HEDLEY_COMPCERT_VERSION
+-#undef JSON_HEDLEY_COMPCERT_VERSION_CHECK
+-#undef JSON_HEDLEY_CONCAT
+-#undef JSON_HEDLEY_CONCAT3
+-#undef JSON_HEDLEY_CONCAT3_EX
+-#undef JSON_HEDLEY_CONCAT_EX
+-#undef JSON_HEDLEY_CONST
+-#undef JSON_HEDLEY_CONSTEXPR
+-#undef JSON_HEDLEY_CONST_CAST
+-#undef JSON_HEDLEY_CPP_CAST
+-#undef JSON_HEDLEY_CRAY_VERSION
+-#undef JSON_HEDLEY_CRAY_VERSION_CHECK
+-#undef JSON_HEDLEY_C_DECL
+-#undef JSON_HEDLEY_DEPRECATED
+-#undef JSON_HEDLEY_DEPRECATED_FOR
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS
+-#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION
+-#undef JSON_HEDLEY_DIAGNOSTIC_POP
+-#undef JSON_HEDLEY_DIAGNOSTIC_PUSH
+-#undef JSON_HEDLEY_DMC_VERSION
+-#undef JSON_HEDLEY_DMC_VERSION_CHECK
+-#undef JSON_HEDLEY_EMPTY_BASES
+-#undef JSON_HEDLEY_EMSCRIPTEN_VERSION
+-#undef JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK
+-#undef JSON_HEDLEY_END_C_DECLS
+-#undef JSON_HEDLEY_FLAGS
+-#undef JSON_HEDLEY_FLAGS_CAST
+-#undef JSON_HEDLEY_GCC_HAS_ATTRIBUTE
+-#undef JSON_HEDLEY_GCC_HAS_BUILTIN
+-#undef JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE
+-#undef JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE
+-#undef JSON_HEDLEY_GCC_HAS_EXTENSION
+-#undef JSON_HEDLEY_GCC_HAS_FEATURE
+-#undef JSON_HEDLEY_GCC_HAS_WARNING
+-#undef JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK
+-#undef JSON_HEDLEY_GCC_VERSION
+-#undef JSON_HEDLEY_GCC_VERSION_CHECK
+-#undef JSON_HEDLEY_GNUC_HAS_ATTRIBUTE
+-#undef JSON_HEDLEY_GNUC_HAS_BUILTIN
+-#undef JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE
+-#undef JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE
+-#undef JSON_HEDLEY_GNUC_HAS_EXTENSION
+-#undef JSON_HEDLEY_GNUC_HAS_FEATURE
+-#undef JSON_HEDLEY_GNUC_HAS_WARNING
+-#undef JSON_HEDLEY_GNUC_VERSION
+-#undef JSON_HEDLEY_GNUC_VERSION_CHECK
+-#undef JSON_HEDLEY_HAS_ATTRIBUTE
+-#undef JSON_HEDLEY_HAS_BUILTIN
+-#undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE
+-#undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS
+-#undef JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE
+-#undef JSON_HEDLEY_HAS_EXTENSION
+-#undef JSON_HEDLEY_HAS_FEATURE
+-#undef JSON_HEDLEY_HAS_WARNING
+-#undef JSON_HEDLEY_IAR_VERSION
+-#undef JSON_HEDLEY_IAR_VERSION_CHECK
+-#undef JSON_HEDLEY_IBM_VERSION
+-#undef JSON_HEDLEY_IBM_VERSION_CHECK
+-#undef JSON_HEDLEY_IMPORT
+-#undef JSON_HEDLEY_INLINE
+-#undef JSON_HEDLEY_INTEL_CL_VERSION
+-#undef JSON_HEDLEY_INTEL_CL_VERSION_CHECK
+-#undef JSON_HEDLEY_INTEL_VERSION
+-#undef JSON_HEDLEY_INTEL_VERSION_CHECK
+-#undef JSON_HEDLEY_IS_CONSTANT
+-#undef JSON_HEDLEY_IS_CONSTEXPR_
+-#undef JSON_HEDLEY_LIKELY
+-#undef JSON_HEDLEY_MALLOC
+-#undef JSON_HEDLEY_MCST_LCC_VERSION
+-#undef JSON_HEDLEY_MCST_LCC_VERSION_CHECK
+-#undef JSON_HEDLEY_MESSAGE
+-#undef JSON_HEDLEY_MSVC_VERSION
+-#undef JSON_HEDLEY_MSVC_VERSION_CHECK
+-#undef JSON_HEDLEY_NEVER_INLINE
+-#undef JSON_HEDLEY_NON_NULL
+-#undef JSON_HEDLEY_NO_ESCAPE
+-#undef JSON_HEDLEY_NO_RETURN
+-#undef JSON_HEDLEY_NO_THROW
+-#undef JSON_HEDLEY_NULL
+-#undef JSON_HEDLEY_PELLES_VERSION
+-#undef JSON_HEDLEY_PELLES_VERSION_CHECK
+-#undef JSON_HEDLEY_PGI_VERSION
+-#undef JSON_HEDLEY_PGI_VERSION_CHECK
+-#undef JSON_HEDLEY_PREDICT
+-#undef JSON_HEDLEY_PRINTF_FORMAT
+-#undef JSON_HEDLEY_PRIVATE
+-#undef JSON_HEDLEY_PUBLIC
+-#undef JSON_HEDLEY_PURE
+-#undef JSON_HEDLEY_REINTERPRET_CAST
+-#undef JSON_HEDLEY_REQUIRE
+-#undef JSON_HEDLEY_REQUIRE_CONSTEXPR
+-#undef JSON_HEDLEY_REQUIRE_MSG
+-#undef JSON_HEDLEY_RESTRICT
+-#undef JSON_HEDLEY_RETURNS_NON_NULL
+-#undef JSON_HEDLEY_SENTINEL
+-#undef JSON_HEDLEY_STATIC_ASSERT
+-#undef JSON_HEDLEY_STATIC_CAST
+-#undef JSON_HEDLEY_STRINGIFY
+-#undef JSON_HEDLEY_STRINGIFY_EX
+-#undef JSON_HEDLEY_SUNPRO_VERSION
+-#undef JSON_HEDLEY_SUNPRO_VERSION_CHECK
+-#undef JSON_HEDLEY_TINYC_VERSION
+-#undef JSON_HEDLEY_TINYC_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_ARMCL_VERSION
+-#undef JSON_HEDLEY_TI_ARMCL_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CL2000_VERSION
+-#undef JSON_HEDLEY_TI_CL2000_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CL430_VERSION
+-#undef JSON_HEDLEY_TI_CL430_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CL6X_VERSION
+-#undef JSON_HEDLEY_TI_CL6X_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CL7X_VERSION
+-#undef JSON_HEDLEY_TI_CL7X_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_CLPRU_VERSION
+-#undef JSON_HEDLEY_TI_CLPRU_VERSION_CHECK
+-#undef JSON_HEDLEY_TI_VERSION
+-#undef JSON_HEDLEY_TI_VERSION_CHECK
+-#undef JSON_HEDLEY_UNAVAILABLE
+-#undef JSON_HEDLEY_UNLIKELY
+-#undef JSON_HEDLEY_UNPREDICTABLE
+-#undef JSON_HEDLEY_UNREACHABLE
+-#undef JSON_HEDLEY_UNREACHABLE_RETURN
+-#undef JSON_HEDLEY_VERSION
+-#undef JSON_HEDLEY_VERSION_DECODE_MAJOR
+-#undef JSON_HEDLEY_VERSION_DECODE_MINOR
+-#undef JSON_HEDLEY_VERSION_DECODE_REVISION
+-#undef JSON_HEDLEY_VERSION_ENCODE
+-#undef JSON_HEDLEY_WARNING
+-#undef JSON_HEDLEY_WARN_UNUSED_RESULT
+-#undef JSON_HEDLEY_WARN_UNUSED_RESULT_MSG
+-#undef JSON_HEDLEY_FALL_THROUGH
+-
+-
+-
+-#endif  // INCLUDE_NLOHMANN_JSON_HPP_
+diff --git a/include/dpp/nlohmann/json_fwd.hpp b/include/dpp/nlohmann/json_fwd.hpp
+deleted file mode 100755
+index 2d5ba38..0000000
+--- a/include/dpp/nlohmann/json_fwd.hpp
++++ /dev/null
+@@ -1,64 +0,0 @@
+-#ifndef INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-#define INCLUDE_NLOHMANN_JSON_FWD_HPP_
+-
+-#include <cstdint> // int64_t, uint64_t
+-#include <map> // map
+-#include <memory> // allocator
+-#include <string> // string
+-#include <vector> // vector
+-
+-/*!
+-@brief namespace for Niels Lohmann
+-@see https://github.com/nlohmann
+-@since version 1.0.0
+-*/
+-namespace nlohmann
+-{
+-/*!
+-@brief default JSONSerializer template argument
+-
+-This serializer ignores the template arguments and uses ADL
+-([argument-dependent lookup](https://en.cppreference.com/w/cpp/language/adl))
+-for serialization.
+-*/
+-template<typename T = void, typename SFINAE = void>
+-struct adl_serializer;
+-
+-/// a class to store JSON values
+-/// @sa https://json.nlohmann.me/api/basic_json/
+-template<template<typename U, typename V, typename... Args> class ObjectType =
+-         std::map,
+-         template<typename U, typename... Args> class ArrayType = std::vector,
+-         class StringType = std::string, class BooleanType = bool,
+-         class NumberIntegerType = std::int64_t,
+-         class NumberUnsignedType = std::uint64_t,
+-         class NumberFloatType = double,
+-         template<typename U> class AllocatorType = std::allocator,
+-         template<typename T, typename SFINAE = void> class JSONSerializer =
+-         adl_serializer,
+-         class BinaryType = std::vector<std::uint8_t>>
+-class basic_json;
+-
+-/// @brief JSON Pointer defines a string syntax for identifying a specific value within a JSON document
+-/// @sa https://json.nlohmann.me/api/json_pointer/
+-template<typename BasicJsonType>
+-class json_pointer;
+-
+-/*!
+-@brief default specialization
+-@sa https://json.nlohmann.me/api/json/
+-*/
+-using json = basic_json<>;
+-
+-/// @brief a minimal map-like container that preserves insertion order
+-/// @sa https://json.nlohmann.me/api/ordered_map/
+-template<class Key, class T, class IgnoredLess, class Allocator>
+-struct ordered_map;
+-
+-/// @brief specialization that maintains the insertion order of object keys
+-/// @sa https://json.nlohmann.me/api/ordered_json/
+-using ordered_json = basic_json<nlohmann::ordered_map>;
+-
+-}  // namespace nlohmann
+-
+-#endif  // INCLUDE_NLOHMANN_JSON_FWD_HPP_
+diff --git a/include/dpp/presence.h b/include/dpp/presence.h
+index e018f92..bcf322b 100644
+--- a/include/dpp/presence.h
++++ b/include/dpp/presence.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/prune.h b/include/dpp/prune.h
+index dd1b19b..7528a37 100644
+--- a/include/dpp/prune.h
++++ b/include/dpp/prune.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/restrequest.h b/include/dpp/restrequest.h
+index 2d1915c..20a4b3d 100644
+--- a/include/dpp/restrequest.h
++++ b/include/dpp/restrequest.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/role.h b/include/dpp/role.h
+index 00d380a..389ca43 100644
+--- a/include/dpp/role.h
++++ b/include/dpp/role.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/guild.h>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/scheduled_event.h b/include/dpp/scheduled_event.h
+index 2cddd63..39be997 100644
+--- a/include/dpp/scheduled_event.h
++++ b/include/dpp/scheduled_event.h
+@@ -24,7 +24,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/user.h>
+ #include <dpp/guild.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/stage_instance.h b/include/dpp/stage_instance.h
+index 90a134f..0ab205e 100644
+--- a/include/dpp/stage_instance.h
++++ b/include/dpp/stage_instance.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/user.h b/include/dpp/user.h
+index a723941..a77fccf 100644
+--- a/include/dpp/user.h
++++ b/include/dpp/user.h
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #pragma once
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+diff --git a/include/dpp/voiceregion.h b/include/dpp/voiceregion.h
+index a1def0a..a0a88e5 100644
+--- a/include/dpp/voiceregion.h
++++ b/include/dpp/voiceregion.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <unordered_map>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/voicestate.h b/include/dpp/voicestate.h
+index 64f1517..c14461e 100644
+--- a/include/dpp/voicestate.h
++++ b/include/dpp/voicestate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/webhook.h b/include/dpp/webhook.h
+index 98fa176..95c09dc 100644
+--- a/include/dpp/webhook.h
++++ b/include/dpp/webhook.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/src/dpp/application.cpp b/src/dpp/application.cpp
+index b5eea41..5ffc9fc 100644
+--- a/src/dpp/application.cpp
++++ b/src/dpp/application.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/auditlog.cpp b/src/dpp/auditlog.cpp
+index 72ef078..2a45729 100644
+--- a/src/dpp/auditlog.cpp
++++ b/src/dpp/auditlog.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/auditlog.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/ban.cpp b/src/dpp/ban.cpp
+index b959d75..860e5a4 100644
+--- a/src/dpp/ban.cpp
++++ b/src/dpp/ban.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/ban.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/channel.cpp b/src/dpp/channel.cpp
+index 405372c..6495b10 100644
+--- a/src/dpp/channel.cpp
++++ b/src/dpp/channel.cpp
+@@ -25,7 +25,7 @@
+ #include <dpp/role.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/cluster.cpp b/src/dpp/cluster.cpp
+index 210753f..6290413 100644
+--- a/src/dpp/cluster.cpp
++++ b/src/dpp/cluster.cpp
+@@ -29,7 +29,7 @@
+ #include <dpp/sync.h>
+ #include <chrono>
+ #include <iostream>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <utility>
+ #include <dpp/fmt-minimal.h>
+ #include <algorithm>
+diff --git a/src/dpp/cluster/confirmation.cpp b/src/dpp/cluster/confirmation.cpp
+index c7e579b..fcccb4c 100644
+--- a/src/dpp/cluster/confirmation.cpp
++++ b/src/dpp/cluster/confirmation.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/cluster/timer.cpp b/src/dpp/cluster/timer.cpp
+index a4b6d83..7159574 100644
+--- a/src/dpp/cluster/timer.cpp
++++ b/src/dpp/cluster/timer.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/timer.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/discordclient.cpp b/src/dpp/discordclient.cpp
+index 9444fcb..8a498b8 100644
+--- a/src/dpp/discordclient.cpp
++++ b/src/dpp/discordclient.cpp
+@@ -26,7 +26,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+ #include <thread>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ #include <dpp/etf.h>
+ #include <zlib.h>
+diff --git a/src/dpp/discordevents.cpp b/src/dpp/discordevents.cpp
+index 92bd66d..73b2b2f 100644
+--- a/src/dpp/discordevents.cpp
++++ b/src/dpp/discordevents.cpp
+@@ -30,7 +30,7 @@
+ #include <dpp/event.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <time.h>
+ #include <iomanip>
+ #include <sstream>
+diff --git a/src/dpp/discordvoiceclient.cpp b/src/dpp/discordvoiceclient.cpp
+index a1b6247..e809d91 100644
+--- a/src/dpp/discordvoiceclient.cpp
++++ b/src/dpp/discordvoiceclient.cpp
+@@ -43,7 +43,7 @@
+ #include <dpp/discordvoiceclient.h>
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ #ifdef HAVE_VOICE
+diff --git a/src/dpp/dtemplate.cpp b/src/dpp/dtemplate.cpp
+index 31f6bbf..e3c67ea 100644
+--- a/src/dpp/dtemplate.cpp
++++ b/src/dpp/dtemplate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/dtemplate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/emoji.cpp b/src/dpp/emoji.cpp
+index c0b3613..4f00958 100644
+--- a/src/dpp/emoji.cpp
++++ b/src/dpp/emoji.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/emoji.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/etf.cpp b/src/dpp/etf.cpp
+index 6395d9b..3b6159e 100644
+--- a/src/dpp/etf.cpp
++++ b/src/dpp/etf.cpp
+@@ -34,7 +34,7 @@
+ #include <dpp/sysdep.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <zlib.h>
+ #include <iostream>
+ 
+diff --git a/src/dpp/events/channel_create.cpp b/src/dpp/events/channel_create.cpp
+index 07b0c2c..1a0b812 100644
+--- a/src/dpp/events/channel_create.cpp
++++ b/src/dpp/events/channel_create.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_delete.cpp b/src/dpp/events/channel_delete.cpp
+index 09d23a4..5e48f96 100644
+--- a/src/dpp/events/channel_delete.cpp
++++ b/src/dpp/events/channel_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_pins_update.cpp b/src/dpp/events/channel_pins_update.cpp
+index 3a4244b..cc2f908 100644
+--- a/src/dpp/events/channel_pins_update.cpp
++++ b/src/dpp/events/channel_pins_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_update.cpp b/src/dpp/events/channel_update.cpp
+index 7e05d8f..fde836a 100644
+--- a/src/dpp/events/channel_update.cpp
++++ b/src/dpp/events/channel_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_add.cpp b/src/dpp/events/guild_ban_add.cpp
+index 872b875..61dfb5b 100644
+--- a/src/dpp/events/guild_ban_add.cpp
++++ b/src/dpp/events/guild_ban_add.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_remove.cpp b/src/dpp/events/guild_ban_remove.cpp
+index e170fde..510a280 100644
+--- a/src/dpp/events/guild_ban_remove.cpp
++++ b/src/dpp/events/guild_ban_remove.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_create.cpp b/src/dpp/events/guild_create.cpp
+index 6f1e369..9de1c39 100644
+--- a/src/dpp/events/guild_create.cpp
++++ b/src/dpp/events/guild_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_delete.cpp b/src/dpp/events/guild_delete.cpp
+index 82f75d3..e39f4c8 100644
+--- a/src/dpp/events/guild_delete.cpp
++++ b/src/dpp/events/guild_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_emojis_update.cpp b/src/dpp/events/guild_emojis_update.cpp
+index 62588c0..ec4303d 100644
+--- a/src/dpp/events/guild_emojis_update.cpp
++++ b/src/dpp/events/guild_emojis_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/emoji.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_integrations_update.cpp b/src/dpp/events/guild_integrations_update.cpp
+index 58146ae..0d2036f 100644
+--- a/src/dpp/events/guild_integrations_update.cpp
++++ b/src/dpp/events/guild_integrations_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_join_request_delete.cpp b/src/dpp/events/guild_join_request_delete.cpp
+index 4b6da22..5642b4c 100644
+--- a/src/dpp/events/guild_join_request_delete.cpp
++++ b/src/dpp/events/guild_join_request_delete.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_add.cpp b/src/dpp/events/guild_member_add.cpp
+index 6c865bb..2b3b8e8 100644
+--- a/src/dpp/events/guild_member_add.cpp
++++ b/src/dpp/events/guild_member_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_remove.cpp b/src/dpp/events/guild_member_remove.cpp
+index fa23bed..46646b7 100644
+--- a/src/dpp/events/guild_member_remove.cpp
++++ b/src/dpp/events/guild_member_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_update.cpp b/src/dpp/events/guild_member_update.cpp
+index 6a9c3b7..689aac4 100644
+--- a/src/dpp/events/guild_member_update.cpp
++++ b/src/dpp/events/guild_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_members_chunk.cpp b/src/dpp/events/guild_members_chunk.cpp
+index 03e1eb3..0e68089 100644
+--- a/src/dpp/events/guild_members_chunk.cpp
++++ b/src/dpp/events/guild_members_chunk.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_create.cpp b/src/dpp/events/guild_role_create.cpp
+index b668bb5..ed8bc79 100644
+--- a/src/dpp/events/guild_role_create.cpp
++++ b/src/dpp/events/guild_role_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_delete.cpp b/src/dpp/events/guild_role_delete.cpp
+index 6c8cedc..336f11b 100644
+--- a/src/dpp/events/guild_role_delete.cpp
++++ b/src/dpp/events/guild_role_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_update.cpp b/src/dpp/events/guild_role_update.cpp
+index 29130c0..32e3146 100644
+--- a/src/dpp/events/guild_role_update.cpp
++++ b/src/dpp/events/guild_role_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_create.cpp b/src/dpp/events/guild_scheduled_event_create.cpp
+index 02b3ba9..e84c134 100644
+--- a/src/dpp/events/guild_scheduled_event_create.cpp
++++ b/src/dpp/events/guild_scheduled_event_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_delete.cpp b/src/dpp/events/guild_scheduled_event_delete.cpp
+index ea11ed9..a098a0f 100644
+--- a/src/dpp/events/guild_scheduled_event_delete.cpp
++++ b/src/dpp/events/guild_scheduled_event_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_update.cpp b/src/dpp/events/guild_scheduled_event_update.cpp
+index b43f02d..6fd2795 100644
+--- a/src/dpp/events/guild_scheduled_event_update.cpp
++++ b/src/dpp/events/guild_scheduled_event_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_add.cpp b/src/dpp/events/guild_scheduled_event_user_add.cpp
+index 38e07b6..c549c39 100644
+--- a/src/dpp/events/guild_scheduled_event_user_add.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_add.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_remove.cpp b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+index 4d6e8a0..08be1e9 100644
+--- a/src/dpp/events/guild_scheduled_event_user_remove.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_stickers_update.cpp b/src/dpp/events/guild_stickers_update.cpp
+index 7f00c23..583d936 100644
+--- a/src/dpp/events/guild_stickers_update.cpp
++++ b/src/dpp/events/guild_stickers_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_update.cpp b/src/dpp/events/guild_update.cpp
+index d80b40b..e116688 100644
+--- a/src/dpp/events/guild_update.cpp
++++ b/src/dpp/events/guild_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_create.cpp b/src/dpp/events/integration_create.cpp
+index f72193c..112320b 100644
+--- a/src/dpp/events/integration_create.cpp
++++ b/src/dpp/events/integration_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_delete.cpp b/src/dpp/events/integration_delete.cpp
+index 0438076..e0b2202 100644
+--- a/src/dpp/events/integration_delete.cpp
++++ b/src/dpp/events/integration_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_update.cpp b/src/dpp/events/integration_update.cpp
+index 8175fab..38b3eda 100644
+--- a/src/dpp/events/integration_update.cpp
++++ b/src/dpp/events/integration_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/interaction_create.cpp b/src/dpp/events/interaction_create.cpp
+index a7bf466..a8aa25b 100644
+--- a/src/dpp/events/interaction_create.cpp
++++ b/src/dpp/events/interaction_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/appcommand.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_create.cpp b/src/dpp/events/invite_create.cpp
+index 377ba3f..7d03d06 100644
+--- a/src/dpp/events/invite_create.cpp
++++ b/src/dpp/events/invite_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_delete.cpp b/src/dpp/events/invite_delete.cpp
+index 5f2f084..c9d81bb 100644
+--- a/src/dpp/events/invite_delete.cpp
++++ b/src/dpp/events/invite_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/logger.cpp b/src/dpp/events/logger.cpp
+index aefc82f..ee9d202 100644
+--- a/src/dpp/events/logger.cpp
++++ b/src/dpp/events/logger.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_create.cpp b/src/dpp/events/message_create.cpp
+index be56ef8..80481e8 100644
+--- a/src/dpp/events/message_create.cpp
++++ b/src/dpp/events/message_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete.cpp b/src/dpp/events/message_delete.cpp
+index d7ba0ea..98e7c2c 100644
+--- a/src/dpp/events/message_delete.cpp
++++ b/src/dpp/events/message_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete_bulk.cpp b/src/dpp/events/message_delete_bulk.cpp
+index a158bf1..cbffcf2 100644
+--- a/src/dpp/events/message_delete_bulk.cpp
++++ b/src/dpp/events/message_delete_bulk.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_add.cpp b/src/dpp/events/message_reaction_add.cpp
+index fac7237..5e61959 100644
+--- a/src/dpp/events/message_reaction_add.cpp
++++ b/src/dpp/events/message_reaction_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove.cpp b/src/dpp/events/message_reaction_remove.cpp
+index 1036757..1f602b1 100644
+--- a/src/dpp/events/message_reaction_remove.cpp
++++ b/src/dpp/events/message_reaction_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_all.cpp b/src/dpp/events/message_reaction_remove_all.cpp
+index 7a63660..a564afb 100644
+--- a/src/dpp/events/message_reaction_remove_all.cpp
++++ b/src/dpp/events/message_reaction_remove_all.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_emoji.cpp b/src/dpp/events/message_reaction_remove_emoji.cpp
+index c820bbe..93a3f9c 100644
+--- a/src/dpp/events/message_reaction_remove_emoji.cpp
++++ b/src/dpp/events/message_reaction_remove_emoji.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_update.cpp b/src/dpp/events/message_update.cpp
+index 3259d88..90b6418 100644
+--- a/src/dpp/events/message_update.cpp
++++ b/src/dpp/events/message_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/presence.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/presence_update.cpp b/src/dpp/events/presence_update.cpp
+index af16087..7718019 100644
+--- a/src/dpp/events/presence_update.cpp
++++ b/src/dpp/events/presence_update.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/ready.cpp b/src/dpp/events/ready.cpp
+index 1434794..b6dd917 100644
+--- a/src/dpp/events/ready.cpp
++++ b/src/dpp/events/ready.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/events/resumed.cpp b/src/dpp/events/resumed.cpp
+index e28c8d8..98e174e 100644
+--- a/src/dpp/events/resumed.cpp
++++ b/src/dpp/events/resumed.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_create.cpp b/src/dpp/events/stage_instance_create.cpp
+index bb191df..a53b3bc 100644
+--- a/src/dpp/events/stage_instance_create.cpp
++++ b/src/dpp/events/stage_instance_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_delete.cpp b/src/dpp/events/stage_instance_delete.cpp
+index 639d259..d5bb97c 100644
+--- a/src/dpp/events/stage_instance_delete.cpp
++++ b/src/dpp/events/stage_instance_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_update.cpp b/src/dpp/events/stage_instance_update.cpp
+index 8422ffb..5349aab 100644
+--- a/src/dpp/events/stage_instance_update.cpp
++++ b/src/dpp/events/stage_instance_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_create.cpp b/src/dpp/events/thread_create.cpp
+index 896999a..680bc92 100644
+--- a/src/dpp/events/thread_create.cpp
++++ b/src/dpp/events/thread_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_delete.cpp b/src/dpp/events/thread_delete.cpp
+index 3969469..d195dac 100644
+--- a/src/dpp/events/thread_delete.cpp
++++ b/src/dpp/events/thread_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_list_sync.cpp b/src/dpp/events/thread_list_sync.cpp
+index ce518f5..19eee46 100644
+--- a/src/dpp/events/thread_list_sync.cpp
++++ b/src/dpp/events/thread_list_sync.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_member_update.cpp b/src/dpp/events/thread_member_update.cpp
+index 00a5949..5868e8d 100644
+--- a/src/dpp/events/thread_member_update.cpp
++++ b/src/dpp/events/thread_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_members_update.cpp b/src/dpp/events/thread_members_update.cpp
+index c744029..ea702a2 100644
+--- a/src/dpp/events/thread_members_update.cpp
++++ b/src/dpp/events/thread_members_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_update.cpp b/src/dpp/events/thread_update.cpp
+index 6be9cb6..b97e271 100644
+--- a/src/dpp/events/thread_update.cpp
++++ b/src/dpp/events/thread_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/typing_start.cpp b/src/dpp/events/typing_start.cpp
+index fc8667b..189129a 100644
+--- a/src/dpp/events/typing_start.cpp
++++ b/src/dpp/events/typing_start.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/user_update.cpp b/src/dpp/events/user_update.cpp
+index 3236c27..63fde16 100644
+--- a/src/dpp/events/user_update.cpp
++++ b/src/dpp/events/user_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/user.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_server_update.cpp b/src/dpp/events/voice_server_update.cpp
+index a70c831..fd5d984 100644
+--- a/src/dpp/events/voice_server_update.cpp
++++ b/src/dpp/events/voice_server_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_state_update.cpp b/src/dpp/events/voice_state_update.cpp
+index 4b316d4..79895e0 100644
+--- a/src/dpp/events/voice_state_update.cpp
++++ b/src/dpp/events/voice_state_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/webhooks_update.cpp b/src/dpp/events/webhooks_update.cpp
+index e94e585..d4c49d0 100644
+--- a/src/dpp/events/webhooks_update.cpp
++++ b/src/dpp/events/webhooks_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/webhook.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/format.cpp b/src/dpp/format.cpp
+index f95ab5d..2c6a1f2 100644
+--- a/src/dpp/format.cpp
++++ b/src/dpp/format.cpp
+@@ -5,7 +5,7 @@
+ //
+ // For the license information refer to format.h.
+ 
+-#include <dpp/fmt/format-inl.h>
++#include <fmt/format-inl.h>
+ 
+ FMT_BEGIN_NAMESPACE
+ namespace detail {
+diff --git a/src/dpp/guild.cpp b/src/dpp/guild.cpp
+index 1d47e7f..da26b04 100644
+--- a/src/dpp/guild.cpp
++++ b/src/dpp/guild.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/integration.cpp b/src/dpp/integration.cpp
+index 0d7ffba..2057271 100644
+--- a/src/dpp/integration.cpp
++++ b/src/dpp/integration.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/integration.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/cache.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/invite.cpp b/src/dpp/invite.cpp
+index ec02903..9a39fee 100644
+--- a/src/dpp/invite.cpp
++++ b/src/dpp/invite.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/invite.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/message.cpp b/src/dpp/message.cpp
+index 284fd0d..252807c 100644
+--- a/src/dpp/message.cpp
++++ b/src/dpp/message.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/exception.h>
+diff --git a/src/dpp/os.cpp b/src/dpp/os.cpp
+index 9a126ca..f76e086 100644
+--- a/src/dpp/os.cpp
++++ b/src/dpp/os.cpp
+@@ -10,7 +10,7 @@
+ #  define _CRT_SECURE_NO_WARNINGS
+ #endif
+ 
+-#include <dpp/fmt/os.h>
++#include <fmt/os.h>
+ 
+ #include <climits>
+ 
+diff --git a/src/dpp/permissions.cpp b/src/dpp/permissions.cpp
+index 5985e6e..e7adab6 100644
+--- a/src/dpp/permissions.cpp
++++ b/src/dpp/permissions.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/presence.cpp b/src/dpp/presence.cpp
+index b432044..ab8b5f4 100644
+--- a/src/dpp/presence.cpp
++++ b/src/dpp/presence.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/utility.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/prune.cpp b/src/dpp/prune.cpp
+index 1d7cd49..50b0315 100644
+--- a/src/dpp/prune.cpp
++++ b/src/dpp/prune.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/prune.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/role.cpp b/src/dpp/role.cpp
+index 618e16d..3a8182b 100644
+--- a/src/dpp/role.cpp
++++ b/src/dpp/role.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/permissions.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/scheduled_event.cpp b/src/dpp/scheduled_event.cpp
+index e049889..3113260 100644
+--- a/src/dpp/scheduled_event.cpp
++++ b/src/dpp/scheduled_event.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/exception.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/slashcommand.cpp b/src/dpp/slashcommand.cpp
+index 9ae3024..2872dac 100644
+--- a/src/dpp/slashcommand.cpp
++++ b/src/dpp/slashcommand.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/stringops.h>
+ #include <dpp/cache.h>
+ #include <iostream>
+diff --git a/src/dpp/stage_instance.cpp b/src/dpp/stage_instance.cpp
+index 2b10760..34e514d 100644
+--- a/src/dpp/stage_instance.cpp
++++ b/src/dpp/stage_instance.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/stage_instance.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/user.cpp b/src/dpp/user.cpp
+index e8e4dcd..5107c0f 100644
+--- a/src/dpp/user.cpp
++++ b/src/dpp/user.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/user.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/utility.cpp b/src/dpp/utility.cpp
+index 57c9874..80a6b82 100644
+--- a/src/dpp/utility.cpp
++++ b/src/dpp/utility.cpp
+@@ -33,7 +33,7 @@
+ #include <fstream>
+ #include <streambuf>
+ #include <array>
+-#include <dpp/fmt/format.h>
++#include <fmt/format.h>
+ #include <dpp/cluster.h>
+ #include <dpp/dispatcher.h>
+ 
+diff --git a/src/dpp/voiceregion.cpp b/src/dpp/voiceregion.cpp
+index 0e13179..895f659 100644
+--- a/src/dpp/voiceregion.cpp
++++ b/src/dpp/voiceregion.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voiceregion.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/voicestate.cpp b/src/dpp/voicestate.cpp
+index e1dd521..a68865f 100644
+--- a/src/dpp/voicestate.cpp
++++ b/src/dpp/voicestate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voicestate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/webhook.cpp b/src/dpp/webhook.cpp
+index a5e5e53..ad73796 100644
+--- a/src/dpp/webhook.cpp
++++ b/src/dpp/webhook.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/webhook.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/test.h b/src/test.h
+index 0b714f9..421ccad 100644
+--- a/src/test.h
++++ b/src/test.h
+@@ -24,7 +24,7 @@ _Pragma("warning( disable : 4251 )"); // 4251 warns when we export classes or st
+ _Pragma("warning( disable : 5105 )"); // 4251 warns when we export classes or structures with stl member variables
+ #endif
+ #include <dpp/dpp.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <iomanip>
+ 
+ #ifdef _WIN32
diff --git a/srcpkgs/libdpp/files/fix-installed-cmakefiles b/srcpkgs/libdpp/files/fix-installed-cmakefiles
new file mode 100644
index 000000000000..90efc1a3938e
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-installed-cmakefiles
@@ -0,0 +1,86 @@
+diff -ruN /usr/lib/cmake/dpp/dpp-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-noconfig.cmake	2022-06-18 14:50:52.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake	2022-06-18 14:55:08.371653178 +0800
+@@ -8,12 +8,12 @@
+ # Import target "dpp::dpp" for configuration ""
+ set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+ set_target_properties(dpp::dpp PROPERTIES
+-  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.11"
++  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.11"
+   )
+ 
+ list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.11" )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake	2022-06-18 14:50:52.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake	2022-06-18 14:55:08.446653180 +0800
+@@ -6,14 +6,14 @@
+ set(CMAKE_IMPORT_FILE_VERSION 1)
+ 
+ # Import target "dpp" for configuration ""
+-set_property(TARGET dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+-set_target_properties(dpp PROPERTIES
++set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
++set_target_properties(dpp::dpp PROPERTIES
+   IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.11"
+   )
+ 
+-list(APPEND _IMPORT_CHECK_TARGETS dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11" )
++list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.11" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets.cmake /usr/lib/cmake/dpp_patch/dpp-targets.cmake
+--- /usr/lib/cmake/dpp/dpp-targets.cmake	2022-06-18 14:50:52.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets.cmake	2022-06-18 14:55:08.442653180 +0800
+@@ -47,7 +47,7 @@
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+ get_filename_component(_realOrig "/usr/lib64" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
++if(1)
+   set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+@@ -61,7 +61,7 @@
+ add_library(dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
+diff -ruN /usr/lib/cmake/dpp/dpp.cmake /usr/lib/cmake/dpp_patch/dpp.cmake
+--- /usr/lib/cmake/dpp/dpp.cmake	2022-06-18 14:50:52.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp.cmake	2022-06-18 14:55:08.380653178 +0800
+@@ -46,9 +46,9 @@
+ # Use original install prefix when loaded through a
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+-get_filename_component(_realOrig "/usr/lib64/dpp-10.0" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
+-  set(_IMPORT_PREFIX "/usr/lib64/dpp-10.0")
++get_filename_component(_realOrig "/usr/lib64" REALPATH)
++if(1)
++  set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+ unset(_realCurr)
+@@ -62,7 +62,7 @@
+ add_library(dpp::dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp::dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..e0354f33539d
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,38 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+hostmakedepends="pkg-config git"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	cp "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	git apply ${FILESDIR}/fix-headers-and-cmakefiles
+}
+
+post_install() {
+	rm -r "${DESTDIR}/usr/lib/dpp-${version%.*}"
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmove usr/include
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		vcopy ${FILESDIR}/fix-installed-cmakefiles usr/lib/cmake
+		patch -s -p0 < ${PKGDESTDIR}/usr/lib/cmake/fix-installed-cmakefiles
+		mv ${PKGDESTDIR}/usr/lib/cmake/dpp_patch ${PKGDESTDIR}/usr/lib/cmake/dpp
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (39 preceding siblings ...)
  2022-06-18 11:55 ` JuniorSuperTux
@ 2022-06-18 11:55 ` JuniorSuperTux
  2022-06-18 13:00 ` classabbyamp
                   ` (8 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-18 11:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

New comment by JuniorSuperTux on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#issuecomment-1159451355

Comment:
> What was wrong with the patch I suggested?

Nothing? But I guess the patches are basically the same?

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (40 preceding siblings ...)
  2022-06-18 11:55 ` JuniorSuperTux
@ 2022-06-18 13:00 ` classabbyamp
  2022-06-23 15:37 ` [PR PATCH] [Updated] " JuniorSuperTux
                   ` (7 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: classabbyamp @ 2022-06-18 13:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 226 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#issuecomment-1159460746

Comment:
the one abenson suggested was 1500 lines. the one you committed was 38000 lines

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (41 preceding siblings ...)
  2022-06-18 13:00 ` classabbyamp
@ 2022-06-23 15:37 ` JuniorSuperTux
  2022-06-23 15:38 ` JuniorSuperTux
                   ` (6 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-23 15:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 58512 bytes --]

From 5bd25c34fec1fd766500b82e49c6c9a09d307640 Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel                          |    1 +
 .../libdpp/files/fix-headers-and-cmakefiles   | 1612 +++++++++++++++++
 srcpkgs/libdpp/files/fix-installed-cmakefiles |   86 +
 srcpkgs/libdpp/template                       |   40 +
 4 files changed, 1739 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/files/fix-headers-and-cmakefiles
 create mode 100644 srcpkgs/libdpp/files/fix-installed-cmakefiles
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/files/fix-headers-and-cmakefiles b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
new file mode 100644
index 000000000000..bc6575bf8593
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
@@ -0,0 +1,1612 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index bbcc4b3..524a3ca 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -43,7 +43,7 @@ math(EXPR DPP_VERSION_PATCH ${CMAKE_MATCH_3})
+ 
+ string(CONCAT DPP_VERSION ${DPP_VERSION_MAJOR}.${DPP_VERSION_MINOR}.${DPP_VERSION_PATCH})
+ 
+-project(libdpp VERSION ${DPP_VERSION} LANGUAGES CXX)
++project(dpp VERSION ${DPP_VERSION} LANGUAGES CXX)
+ 
+ check_cxx_symbol_exists(prctl "sys/prctl.h" HAVE_PRCTL)
+ check_cxx_symbol_exists(pthread_setname_np "pthread.h" HAVE_PTHREAD_SETNAME_NP)
+@@ -240,8 +240,8 @@ foreach (fullmodname ${subdirlist})
+ 	target_precompile_headers(
+ 		${modname}
+ 		PRIVATE
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json.hpp"
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json_fwd.hpp"
++		<nlohmann/json.hpp>
++		<nlohmann/json_fwd.hpp>
+ 	)
+ 
+ 	if (WIN32 AND NOT MINGW)
+@@ -325,14 +325,16 @@ if(NOT WIN32)
+ 	# Installation
+ 
+ 	include(GNUInstallDirs)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ 	install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -DRUN_LDCONFIG=${RUN_LDCONFIG} -DLDCONFIG_EXECUTABLE=${LDCONFIG_EXECUTABLE} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/PostInstall.cmake)")
+ 
+ 	configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dpp.pc.in" "${CMAKE_BINARY_DIR}/dpp.pc" @ONLY)
+ 	install(FILES "${CMAKE_BINARY_DIR}/dpp.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
+ elseif(MINGW)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
+ endif()
+ 
+diff --git a/cmake/CPackSetup.cmake b/cmake/CPackSetup.cmake
+index a6bcf59..73abe7e 100644
+--- a/cmake/CPackSetup.cmake
++++ b/cmake/CPackSetup.cmake
+@@ -24,7 +24,7 @@ write_basic_package_version_file(${DPP_VERSION_FILE}
+ install(DIRECTORY include/ DESTINATION ${DPP_INSTALL_INCLUDE_DIR})
+ 
+ ## Include the file which allows `find_package(libdpp)` to function.
+-install(FILES cmake/libdpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
++install(FILES cmake/dpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
+ 
+ ## Export the targets to allow other projects to easily include this project
+ install(EXPORT ${DPP_EXPORT_NAME} DESTINATION ${DPP_INSTALL_LIBRARY_DIR} NAMESPACE dpp::)
+diff --git a/cmake/libdpp-config.cmake b/cmake/libdpp-config.cmake
+index d6dd5bd..d0009ac 100644
+--- a/cmake/libdpp-config.cmake
++++ b/cmake/libdpp-config.cmake
+@@ -1,10 +1,10 @@
+-# libdpp-config.cmake - package configuration file
++# dpp-config.cmake - package configuration file
+ 
+ ## Get current filesystem path (will a prefixed by where this package was installed)
+ get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+ 
+-## Use this directory to include libdpp which has the rest of the project targets
+-include(${SELF_DIR}/libdpp.cmake)
++## Use this directory to include dpp which has the rest of the project targets
++include(${SELF_DIR}/dpp.cmake)
+ 
+ ## Set OpenSSl directory for macos. It is also in our main CMakeLists.txt, but this file is independent from that.
+ if(APPLE)
+@@ -16,6 +16,6 @@ if(APPLE)
+ 	find_package(OpenSSL REQUIRED)
+ endif()
+ 
+-# Search for libdpp dependencies
++# Search for dpp dependencies
+ include(CMakeFindDependencyMacro)
+ find_dependency(OpenSSL REQUIRED)
+diff --git a/include/dpp/appcommand.h b/include/dpp/appcommand.h
+index 424823c..36f8f82 100644
+--- a/include/dpp/appcommand.h
++++ b/include/dpp/appcommand.h
+@@ -27,7 +27,7 @@
+ #include <dpp/role.h>
+ #include <dpp/user.h>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/application.h b/include/dpp/application.h
+index 7e9d80d..19fad83 100644
+--- a/include/dpp/application.h
++++ b/include/dpp/application.h
+@@ -26,7 +26,7 @@
+ #include <dpp/utility.h>
+ #include <dpp/user.h>
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/auditlog.h b/include/dpp/auditlog.h
+index 3469630..ca878da 100644
+--- a/include/dpp/auditlog.h
++++ b/include/dpp/auditlog.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <optional>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/ban.h b/include/dpp/ban.h
+index 6bbcdd2..8ad88d6 100644
+--- a/include/dpp/ban.h
++++ b/include/dpp/ban.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+ 
+diff --git a/include/dpp/channel.h b/include/dpp/channel.h
+index 7335b28..b2fcc33 100644
+--- a/include/dpp/channel.h
++++ b/include/dpp/channel.h
+@@ -25,7 +25,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+ #include <dpp/voicestate.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+diff --git a/include/dpp/cluster.h b/include/dpp/cluster.h
+index 7ad5ade..40e1709 100644
+--- a/include/dpp/cluster.h
++++ b/include/dpp/cluster.h
+@@ -29,7 +29,7 @@
+ #include <dpp/dispatcher.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/timer.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/discordclient.h>
+ #include <dpp/voiceregion.h>
+ #include <dpp/dtemplate.h>
+diff --git a/include/dpp/commandhandler.h b/include/dpp/commandhandler.h
+index 29da473..0b15417 100644
+--- a/include/dpp/commandhandler.h
++++ b/include/dpp/commandhandler.h
+@@ -29,7 +29,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/utility.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <vector>
+ #include <functional>
+diff --git a/include/dpp/discordclient.h b/include/dpp/discordclient.h
+index 1eb875a..10f010e 100644
+--- a/include/dpp/discordclient.h
++++ b/include/dpp/discordclient.h
+@@ -24,7 +24,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/discordevents.h b/include/dpp/discordevents.h
+index c6474a4..1a70b18 100644
+--- a/include/dpp/discordevents.h
++++ b/include/dpp/discordevents.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ 
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/discordvoiceclient.h b/include/dpp/discordvoiceclient.h
+index 9cd9354..13b74e5 100644
+--- a/include/dpp/discordvoiceclient.h
++++ b/include/dpp/discordvoiceclient.h
+@@ -32,7 +32,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/dtemplate.h b/include/dpp/dtemplate.h
+index 948b25d..5fbe17e 100644
+--- a/include/dpp/dtemplate.h
++++ b/include/dpp/dtemplate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/emoji.h b/include/dpp/emoji.h
+index a73e58a..9ab9c1e 100644
+--- a/include/dpp/emoji.h
++++ b/include/dpp/emoji.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/etf.h b/include/dpp/etf.h
+index 1c98e6a..1acd63b 100644
+--- a/include/dpp/etf.h
++++ b/include/dpp/etf.h
+@@ -34,7 +34,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/event.h b/include/dpp/event.h
+index cd945f5..388a0d6 100644
+--- a/include/dpp/event.h
++++ b/include/dpp/event.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ #define event_decl(x,wstype) /** @brief Internal event handler for wstype websocket events. Called for each websocket message of this type. @internal */ \
+ 	class x : public event { public: virtual void handle(dpp::discord_client* client, nlohmann::json &j, const std::string &raw); };
+diff --git a/include/dpp/fmt-minimal.h b/include/dpp/fmt-minimal.h
+index a5e7a5d..88f1e38 100644
+--- a/include/dpp/fmt-minimal.h
++++ b/include/dpp/fmt-minimal.h
+@@ -1,3 +1,3 @@
+ #pragma once
+-#include <dpp/fmt/core.h>
++#include <fmt/core.h>
+ #define FMT_STRING(s) s
+diff --git a/include/dpp/integration.h b/include/dpp/integration.h
+index 420c8d8..6815c3c 100644
+--- a/include/dpp/integration.h
++++ b/include/dpp/integration.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/invite.h b/include/dpp/invite.h
+index eae62a9..e8977a8 100644
+--- a/include/dpp/invite.h
++++ b/include/dpp/invite.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/stage_instance.h>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/json_interface.h b/include/dpp/json_interface.h
+index 302642d..e2e467a 100644
+--- a/include/dpp/json_interface.h
++++ b/include/dpp/json_interface.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 	/**
+diff --git a/include/dpp/message.h b/include/dpp/message.h
+index 1c80553..08de4c0 100644
+--- a/include/dpp/message.h
++++ b/include/dpp/message.h
+@@ -27,7 +27,7 @@
+ #include <dpp/guild.h>
+ #include <optional>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/presence.h b/include/dpp/presence.h
+index e018f92..bcf322b 100644
+--- a/include/dpp/presence.h
++++ b/include/dpp/presence.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/prune.h b/include/dpp/prune.h
+index dd1b19b..7528a37 100644
+--- a/include/dpp/prune.h
++++ b/include/dpp/prune.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/restrequest.h b/include/dpp/restrequest.h
+index 2d1915c..20a4b3d 100644
+--- a/include/dpp/restrequest.h
++++ b/include/dpp/restrequest.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/role.h b/include/dpp/role.h
+index 00d380a..389ca43 100644
+--- a/include/dpp/role.h
++++ b/include/dpp/role.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/guild.h>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/scheduled_event.h b/include/dpp/scheduled_event.h
+index 2cddd63..39be997 100644
+--- a/include/dpp/scheduled_event.h
++++ b/include/dpp/scheduled_event.h
+@@ -24,7 +24,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/user.h>
+ #include <dpp/guild.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/stage_instance.h b/include/dpp/stage_instance.h
+index 90a134f..0ab205e 100644
+--- a/include/dpp/stage_instance.h
++++ b/include/dpp/stage_instance.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/user.h b/include/dpp/user.h
+index a723941..a77fccf 100644
+--- a/include/dpp/user.h
++++ b/include/dpp/user.h
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #pragma once
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+diff --git a/include/dpp/voiceregion.h b/include/dpp/voiceregion.h
+index a1def0a..a0a88e5 100644
+--- a/include/dpp/voiceregion.h
++++ b/include/dpp/voiceregion.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <unordered_map>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/voicestate.h b/include/dpp/voicestate.h
+index 64f1517..c14461e 100644
+--- a/include/dpp/voicestate.h
++++ b/include/dpp/voicestate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/webhook.h b/include/dpp/webhook.h
+index 98fa176..95c09dc 100644
+--- a/include/dpp/webhook.h
++++ b/include/dpp/webhook.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/src/dpp/application.cpp b/src/dpp/application.cpp
+index b5eea41..5ffc9fc 100644
+--- a/src/dpp/application.cpp
++++ b/src/dpp/application.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/auditlog.cpp b/src/dpp/auditlog.cpp
+index 72ef078..2a45729 100644
+--- a/src/dpp/auditlog.cpp
++++ b/src/dpp/auditlog.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/auditlog.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/ban.cpp b/src/dpp/ban.cpp
+index b959d75..860e5a4 100644
+--- a/src/dpp/ban.cpp
++++ b/src/dpp/ban.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/ban.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/channel.cpp b/src/dpp/channel.cpp
+index 405372c..6495b10 100644
+--- a/src/dpp/channel.cpp
++++ b/src/dpp/channel.cpp
+@@ -25,7 +25,7 @@
+ #include <dpp/role.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/cluster.cpp b/src/dpp/cluster.cpp
+index aa1aad8..32b0b7a 100644
+--- a/src/dpp/cluster.cpp
++++ b/src/dpp/cluster.cpp
+@@ -29,7 +29,7 @@
+ #include <dpp/sync.h>
+ #include <chrono>
+ #include <iostream>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <utility>
+ #include <dpp/fmt-minimal.h>
+ #include <algorithm>
+diff --git a/src/dpp/cluster/confirmation.cpp b/src/dpp/cluster/confirmation.cpp
+index c7e579b..fcccb4c 100644
+--- a/src/dpp/cluster/confirmation.cpp
++++ b/src/dpp/cluster/confirmation.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/cluster/timer.cpp b/src/dpp/cluster/timer.cpp
+index a4b6d83..7159574 100644
+--- a/src/dpp/cluster/timer.cpp
++++ b/src/dpp/cluster/timer.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/timer.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/discordclient.cpp b/src/dpp/discordclient.cpp
+index 9444fcb..8a498b8 100644
+--- a/src/dpp/discordclient.cpp
++++ b/src/dpp/discordclient.cpp
+@@ -26,7 +26,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+ #include <thread>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ #include <dpp/etf.h>
+ #include <zlib.h>
+diff --git a/src/dpp/discordevents.cpp b/src/dpp/discordevents.cpp
+index 92bd66d..73b2b2f 100644
+--- a/src/dpp/discordevents.cpp
++++ b/src/dpp/discordevents.cpp
+@@ -30,7 +30,7 @@
+ #include <dpp/event.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <time.h>
+ #include <iomanip>
+ #include <sstream>
+diff --git a/src/dpp/discordvoiceclient.cpp b/src/dpp/discordvoiceclient.cpp
+index ee3ac8e..8576e3c 100644
+--- a/src/dpp/discordvoiceclient.cpp
++++ b/src/dpp/discordvoiceclient.cpp
+@@ -43,7 +43,7 @@
+ #include <dpp/discordvoiceclient.h>
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ #ifdef HAVE_VOICE
+diff --git a/src/dpp/dtemplate.cpp b/src/dpp/dtemplate.cpp
+index 31f6bbf..e3c67ea 100644
+--- a/src/dpp/dtemplate.cpp
++++ b/src/dpp/dtemplate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/dtemplate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/emoji.cpp b/src/dpp/emoji.cpp
+index c0b3613..4f00958 100644
+--- a/src/dpp/emoji.cpp
++++ b/src/dpp/emoji.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/emoji.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/etf.cpp b/src/dpp/etf.cpp
+index 6395d9b..3b6159e 100644
+--- a/src/dpp/etf.cpp
++++ b/src/dpp/etf.cpp
+@@ -34,7 +34,7 @@
+ #include <dpp/sysdep.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <zlib.h>
+ #include <iostream>
+ 
+diff --git a/src/dpp/events/channel_create.cpp b/src/dpp/events/channel_create.cpp
+index 07b0c2c..1a0b812 100644
+--- a/src/dpp/events/channel_create.cpp
++++ b/src/dpp/events/channel_create.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_delete.cpp b/src/dpp/events/channel_delete.cpp
+index 09d23a4..5e48f96 100644
+--- a/src/dpp/events/channel_delete.cpp
++++ b/src/dpp/events/channel_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_pins_update.cpp b/src/dpp/events/channel_pins_update.cpp
+index 3a4244b..cc2f908 100644
+--- a/src/dpp/events/channel_pins_update.cpp
++++ b/src/dpp/events/channel_pins_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_update.cpp b/src/dpp/events/channel_update.cpp
+index 7e05d8f..fde836a 100644
+--- a/src/dpp/events/channel_update.cpp
++++ b/src/dpp/events/channel_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_add.cpp b/src/dpp/events/guild_ban_add.cpp
+index 872b875..61dfb5b 100644
+--- a/src/dpp/events/guild_ban_add.cpp
++++ b/src/dpp/events/guild_ban_add.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_remove.cpp b/src/dpp/events/guild_ban_remove.cpp
+index e170fde..510a280 100644
+--- a/src/dpp/events/guild_ban_remove.cpp
++++ b/src/dpp/events/guild_ban_remove.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_create.cpp b/src/dpp/events/guild_create.cpp
+index 6f1e369..9de1c39 100644
+--- a/src/dpp/events/guild_create.cpp
++++ b/src/dpp/events/guild_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_delete.cpp b/src/dpp/events/guild_delete.cpp
+index 82f75d3..e39f4c8 100644
+--- a/src/dpp/events/guild_delete.cpp
++++ b/src/dpp/events/guild_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_emojis_update.cpp b/src/dpp/events/guild_emojis_update.cpp
+index 62588c0..ec4303d 100644
+--- a/src/dpp/events/guild_emojis_update.cpp
++++ b/src/dpp/events/guild_emojis_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/emoji.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_integrations_update.cpp b/src/dpp/events/guild_integrations_update.cpp
+index 58146ae..0d2036f 100644
+--- a/src/dpp/events/guild_integrations_update.cpp
++++ b/src/dpp/events/guild_integrations_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_join_request_delete.cpp b/src/dpp/events/guild_join_request_delete.cpp
+index 4b6da22..5642b4c 100644
+--- a/src/dpp/events/guild_join_request_delete.cpp
++++ b/src/dpp/events/guild_join_request_delete.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_add.cpp b/src/dpp/events/guild_member_add.cpp
+index 6c865bb..2b3b8e8 100644
+--- a/src/dpp/events/guild_member_add.cpp
++++ b/src/dpp/events/guild_member_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_remove.cpp b/src/dpp/events/guild_member_remove.cpp
+index fa23bed..46646b7 100644
+--- a/src/dpp/events/guild_member_remove.cpp
++++ b/src/dpp/events/guild_member_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_update.cpp b/src/dpp/events/guild_member_update.cpp
+index 6a9c3b7..689aac4 100644
+--- a/src/dpp/events/guild_member_update.cpp
++++ b/src/dpp/events/guild_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_members_chunk.cpp b/src/dpp/events/guild_members_chunk.cpp
+index 03e1eb3..0e68089 100644
+--- a/src/dpp/events/guild_members_chunk.cpp
++++ b/src/dpp/events/guild_members_chunk.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_create.cpp b/src/dpp/events/guild_role_create.cpp
+index b668bb5..ed8bc79 100644
+--- a/src/dpp/events/guild_role_create.cpp
++++ b/src/dpp/events/guild_role_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_delete.cpp b/src/dpp/events/guild_role_delete.cpp
+index 6c8cedc..336f11b 100644
+--- a/src/dpp/events/guild_role_delete.cpp
++++ b/src/dpp/events/guild_role_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_update.cpp b/src/dpp/events/guild_role_update.cpp
+index 29130c0..32e3146 100644
+--- a/src/dpp/events/guild_role_update.cpp
++++ b/src/dpp/events/guild_role_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_create.cpp b/src/dpp/events/guild_scheduled_event_create.cpp
+index 02b3ba9..e84c134 100644
+--- a/src/dpp/events/guild_scheduled_event_create.cpp
++++ b/src/dpp/events/guild_scheduled_event_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_delete.cpp b/src/dpp/events/guild_scheduled_event_delete.cpp
+index ea11ed9..a098a0f 100644
+--- a/src/dpp/events/guild_scheduled_event_delete.cpp
++++ b/src/dpp/events/guild_scheduled_event_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_update.cpp b/src/dpp/events/guild_scheduled_event_update.cpp
+index b43f02d..6fd2795 100644
+--- a/src/dpp/events/guild_scheduled_event_update.cpp
++++ b/src/dpp/events/guild_scheduled_event_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_add.cpp b/src/dpp/events/guild_scheduled_event_user_add.cpp
+index 38e07b6..c549c39 100644
+--- a/src/dpp/events/guild_scheduled_event_user_add.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_add.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_remove.cpp b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+index 4d6e8a0..08be1e9 100644
+--- a/src/dpp/events/guild_scheduled_event_user_remove.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_stickers_update.cpp b/src/dpp/events/guild_stickers_update.cpp
+index 7f00c23..583d936 100644
+--- a/src/dpp/events/guild_stickers_update.cpp
++++ b/src/dpp/events/guild_stickers_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_update.cpp b/src/dpp/events/guild_update.cpp
+index d80b40b..e116688 100644
+--- a/src/dpp/events/guild_update.cpp
++++ b/src/dpp/events/guild_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_create.cpp b/src/dpp/events/integration_create.cpp
+index f72193c..112320b 100644
+--- a/src/dpp/events/integration_create.cpp
++++ b/src/dpp/events/integration_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_delete.cpp b/src/dpp/events/integration_delete.cpp
+index 0438076..e0b2202 100644
+--- a/src/dpp/events/integration_delete.cpp
++++ b/src/dpp/events/integration_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_update.cpp b/src/dpp/events/integration_update.cpp
+index 8175fab..38b3eda 100644
+--- a/src/dpp/events/integration_update.cpp
++++ b/src/dpp/events/integration_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/interaction_create.cpp b/src/dpp/events/interaction_create.cpp
+index a7bf466..a8aa25b 100644
+--- a/src/dpp/events/interaction_create.cpp
++++ b/src/dpp/events/interaction_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/appcommand.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_create.cpp b/src/dpp/events/invite_create.cpp
+index 377ba3f..7d03d06 100644
+--- a/src/dpp/events/invite_create.cpp
++++ b/src/dpp/events/invite_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_delete.cpp b/src/dpp/events/invite_delete.cpp
+index 5f2f084..c9d81bb 100644
+--- a/src/dpp/events/invite_delete.cpp
++++ b/src/dpp/events/invite_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/logger.cpp b/src/dpp/events/logger.cpp
+index aefc82f..ee9d202 100644
+--- a/src/dpp/events/logger.cpp
++++ b/src/dpp/events/logger.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_create.cpp b/src/dpp/events/message_create.cpp
+index be56ef8..80481e8 100644
+--- a/src/dpp/events/message_create.cpp
++++ b/src/dpp/events/message_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete.cpp b/src/dpp/events/message_delete.cpp
+index d7ba0ea..98e7c2c 100644
+--- a/src/dpp/events/message_delete.cpp
++++ b/src/dpp/events/message_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete_bulk.cpp b/src/dpp/events/message_delete_bulk.cpp
+index a158bf1..cbffcf2 100644
+--- a/src/dpp/events/message_delete_bulk.cpp
++++ b/src/dpp/events/message_delete_bulk.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_add.cpp b/src/dpp/events/message_reaction_add.cpp
+index fac7237..5e61959 100644
+--- a/src/dpp/events/message_reaction_add.cpp
++++ b/src/dpp/events/message_reaction_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove.cpp b/src/dpp/events/message_reaction_remove.cpp
+index 1036757..1f602b1 100644
+--- a/src/dpp/events/message_reaction_remove.cpp
++++ b/src/dpp/events/message_reaction_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_all.cpp b/src/dpp/events/message_reaction_remove_all.cpp
+index 7a63660..a564afb 100644
+--- a/src/dpp/events/message_reaction_remove_all.cpp
++++ b/src/dpp/events/message_reaction_remove_all.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_emoji.cpp b/src/dpp/events/message_reaction_remove_emoji.cpp
+index c820bbe..93a3f9c 100644
+--- a/src/dpp/events/message_reaction_remove_emoji.cpp
++++ b/src/dpp/events/message_reaction_remove_emoji.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_update.cpp b/src/dpp/events/message_update.cpp
+index 3259d88..90b6418 100644
+--- a/src/dpp/events/message_update.cpp
++++ b/src/dpp/events/message_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/presence.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/presence_update.cpp b/src/dpp/events/presence_update.cpp
+index af16087..7718019 100644
+--- a/src/dpp/events/presence_update.cpp
++++ b/src/dpp/events/presence_update.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/ready.cpp b/src/dpp/events/ready.cpp
+index 1434794..b6dd917 100644
+--- a/src/dpp/events/ready.cpp
++++ b/src/dpp/events/ready.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/events/resumed.cpp b/src/dpp/events/resumed.cpp
+index e28c8d8..98e174e 100644
+--- a/src/dpp/events/resumed.cpp
++++ b/src/dpp/events/resumed.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_create.cpp b/src/dpp/events/stage_instance_create.cpp
+index bb191df..a53b3bc 100644
+--- a/src/dpp/events/stage_instance_create.cpp
++++ b/src/dpp/events/stage_instance_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_delete.cpp b/src/dpp/events/stage_instance_delete.cpp
+index 639d259..d5bb97c 100644
+--- a/src/dpp/events/stage_instance_delete.cpp
++++ b/src/dpp/events/stage_instance_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_update.cpp b/src/dpp/events/stage_instance_update.cpp
+index 8422ffb..5349aab 100644
+--- a/src/dpp/events/stage_instance_update.cpp
++++ b/src/dpp/events/stage_instance_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_create.cpp b/src/dpp/events/thread_create.cpp
+index 896999a..680bc92 100644
+--- a/src/dpp/events/thread_create.cpp
++++ b/src/dpp/events/thread_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_delete.cpp b/src/dpp/events/thread_delete.cpp
+index 3969469..d195dac 100644
+--- a/src/dpp/events/thread_delete.cpp
++++ b/src/dpp/events/thread_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_list_sync.cpp b/src/dpp/events/thread_list_sync.cpp
+index ce518f5..19eee46 100644
+--- a/src/dpp/events/thread_list_sync.cpp
++++ b/src/dpp/events/thread_list_sync.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_member_update.cpp b/src/dpp/events/thread_member_update.cpp
+index 00a5949..5868e8d 100644
+--- a/src/dpp/events/thread_member_update.cpp
++++ b/src/dpp/events/thread_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_members_update.cpp b/src/dpp/events/thread_members_update.cpp
+index c744029..ea702a2 100644
+--- a/src/dpp/events/thread_members_update.cpp
++++ b/src/dpp/events/thread_members_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_update.cpp b/src/dpp/events/thread_update.cpp
+index 6be9cb6..b97e271 100644
+--- a/src/dpp/events/thread_update.cpp
++++ b/src/dpp/events/thread_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/typing_start.cpp b/src/dpp/events/typing_start.cpp
+index fc8667b..189129a 100644
+--- a/src/dpp/events/typing_start.cpp
++++ b/src/dpp/events/typing_start.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/user_update.cpp b/src/dpp/events/user_update.cpp
+index 3236c27..63fde16 100644
+--- a/src/dpp/events/user_update.cpp
++++ b/src/dpp/events/user_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/user.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_server_update.cpp b/src/dpp/events/voice_server_update.cpp
+index a70c831..fd5d984 100644
+--- a/src/dpp/events/voice_server_update.cpp
++++ b/src/dpp/events/voice_server_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_state_update.cpp b/src/dpp/events/voice_state_update.cpp
+index 4b316d4..79895e0 100644
+--- a/src/dpp/events/voice_state_update.cpp
++++ b/src/dpp/events/voice_state_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/webhooks_update.cpp b/src/dpp/events/webhooks_update.cpp
+index e94e585..d4c49d0 100644
+--- a/src/dpp/events/webhooks_update.cpp
++++ b/src/dpp/events/webhooks_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/webhook.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/format.cpp b/src/dpp/format.cpp
+index f95ab5d..2c6a1f2 100644
+--- a/src/dpp/format.cpp
++++ b/src/dpp/format.cpp
+@@ -5,7 +5,7 @@
+ //
+ // For the license information refer to format.h.
+ 
+-#include <dpp/fmt/format-inl.h>
++#include <fmt/format-inl.h>
+ 
+ FMT_BEGIN_NAMESPACE
+ namespace detail {
+diff --git a/src/dpp/guild.cpp b/src/dpp/guild.cpp
+index 1d47e7f..da26b04 100644
+--- a/src/dpp/guild.cpp
++++ b/src/dpp/guild.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/integration.cpp b/src/dpp/integration.cpp
+index 0d7ffba..2057271 100644
+--- a/src/dpp/integration.cpp
++++ b/src/dpp/integration.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/integration.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/cache.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/invite.cpp b/src/dpp/invite.cpp
+index ec02903..9a39fee 100644
+--- a/src/dpp/invite.cpp
++++ b/src/dpp/invite.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/invite.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/message.cpp b/src/dpp/message.cpp
+index 284fd0d..252807c 100644
+--- a/src/dpp/message.cpp
++++ b/src/dpp/message.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/exception.h>
+diff --git a/src/dpp/os.cpp b/src/dpp/os.cpp
+index 9a126ca..f76e086 100644
+--- a/src/dpp/os.cpp
++++ b/src/dpp/os.cpp
+@@ -10,7 +10,7 @@
+ #  define _CRT_SECURE_NO_WARNINGS
+ #endif
+ 
+-#include <dpp/fmt/os.h>
++#include <fmt/os.h>
+ 
+ #include <climits>
+ 
+diff --git a/src/dpp/permissions.cpp b/src/dpp/permissions.cpp
+index 5985e6e..e7adab6 100644
+--- a/src/dpp/permissions.cpp
++++ b/src/dpp/permissions.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/presence.cpp b/src/dpp/presence.cpp
+index b432044..ab8b5f4 100644
+--- a/src/dpp/presence.cpp
++++ b/src/dpp/presence.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/utility.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/prune.cpp b/src/dpp/prune.cpp
+index 1d7cd49..50b0315 100644
+--- a/src/dpp/prune.cpp
++++ b/src/dpp/prune.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/prune.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/role.cpp b/src/dpp/role.cpp
+index 618e16d..3a8182b 100644
+--- a/src/dpp/role.cpp
++++ b/src/dpp/role.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/permissions.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/scheduled_event.cpp b/src/dpp/scheduled_event.cpp
+index e049889..3113260 100644
+--- a/src/dpp/scheduled_event.cpp
++++ b/src/dpp/scheduled_event.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/exception.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/slashcommand.cpp b/src/dpp/slashcommand.cpp
+index 9ae3024..2872dac 100644
+--- a/src/dpp/slashcommand.cpp
++++ b/src/dpp/slashcommand.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/stringops.h>
+ #include <dpp/cache.h>
+ #include <iostream>
+diff --git a/src/dpp/stage_instance.cpp b/src/dpp/stage_instance.cpp
+index 2b10760..34e514d 100644
+--- a/src/dpp/stage_instance.cpp
++++ b/src/dpp/stage_instance.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/stage_instance.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/user.cpp b/src/dpp/user.cpp
+index e8e4dcd..5107c0f 100644
+--- a/src/dpp/user.cpp
++++ b/src/dpp/user.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/user.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/utility.cpp b/src/dpp/utility.cpp
+index 57c9874..80a6b82 100644
+--- a/src/dpp/utility.cpp
++++ b/src/dpp/utility.cpp
+@@ -33,7 +33,7 @@
+ #include <fstream>
+ #include <streambuf>
+ #include <array>
+-#include <dpp/fmt/format.h>
++#include <fmt/format.h>
+ #include <dpp/cluster.h>
+ #include <dpp/dispatcher.h>
+ 
+diff --git a/src/dpp/voiceregion.cpp b/src/dpp/voiceregion.cpp
+index 0e13179..895f659 100644
+--- a/src/dpp/voiceregion.cpp
++++ b/src/dpp/voiceregion.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voiceregion.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/voicestate.cpp b/src/dpp/voicestate.cpp
+index e1dd521..a68865f 100644
+--- a/src/dpp/voicestate.cpp
++++ b/src/dpp/voicestate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voicestate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/webhook.cpp b/src/dpp/webhook.cpp
+index a5e5e53..ad73796 100644
+--- a/src/dpp/webhook.cpp
++++ b/src/dpp/webhook.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/webhook.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/test.h b/src/test.h
+index 0b714f9..421ccad 100644
+--- a/src/test.h
++++ b/src/test.h
+@@ -24,7 +24,7 @@ _Pragma("warning( disable : 4251 )"); // 4251 warns when we export classes or st
+ _Pragma("warning( disable : 5105 )"); // 4251 warns when we export classes or structures with stl member variables
+ #endif
+ #include <dpp/dpp.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <iomanip>
+ 
+ #ifdef _WIN32
diff --git a/srcpkgs/libdpp/files/fix-installed-cmakefiles b/srcpkgs/libdpp/files/fix-installed-cmakefiles
new file mode 100644
index 000000000000..359cd2fd0bd3
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-installed-cmakefiles
@@ -0,0 +1,86 @@
+diff -ruN /usr/lib/cmake/dpp/dpp-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-noconfig.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake	2022-06-23 23:34:17.663735274 +0800
+@@ -8,12 +8,12 @@
+ # Import target "dpp::dpp" for configuration ""
+ set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+ set_target_properties(dpp::dpp PROPERTIES
+-  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.10"
++  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.10"
+   )
+ 
+ list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.10" )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake	2022-06-23 23:34:17.670735274 +0800
+@@ -6,14 +6,14 @@
+ set(CMAKE_IMPORT_FILE_VERSION 1)
+ 
+ # Import target "dpp" for configuration ""
+-set_property(TARGET dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+-set_target_properties(dpp PROPERTIES
++set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
++set_target_properties(dpp::dpp PROPERTIES
+   IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.10"
+   )
+ 
+-list(APPEND _IMPORT_CHECK_TARGETS dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10" )
++list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets.cmake /usr/lib/cmake/dpp_patch/dpp-targets.cmake
+--- /usr/lib/cmake/dpp/dpp-targets.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets.cmake	2022-06-23 23:34:17.668735274 +0800
+@@ -47,7 +47,7 @@
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+ get_filename_component(_realOrig "/usr/lib64" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
++if(1)
+   set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+@@ -61,7 +61,7 @@
+ add_library(dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
+diff -ruN /usr/lib/cmake/dpp/dpp.cmake /usr/lib/cmake/dpp_patch/dpp.cmake
+--- /usr/lib/cmake/dpp/dpp.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp.cmake	2022-06-23 23:34:17.667735274 +0800
+@@ -46,9 +46,9 @@
+ # Use original install prefix when loaded through a
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+-get_filename_component(_realOrig "/usr/lib64/dpp-10.0" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
+-  set(_IMPORT_PREFIX "/usr/lib64/dpp-10.0")
++get_filename_component(_realOrig "/usr/lib64" REALPATH)
++if(1)
++  set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+ unset(_realCurr)
+@@ -62,7 +62,7 @@
+ add_library(dpp::dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp::dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..819289f6572b
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,40 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+hostmakedepends="pkg-config git"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	git apply ${FILESDIR}/fix-headers-and-cmakefiles
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -r include/dpp/fmt
+	rm -r include/dpp/nlohmann
+}
+
+post_install() {
+	rm -r "${DESTDIR}/usr/lib/dpp-${version%.*}"
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmove usr/include
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		vcopy ${FILESDIR}/fix-installed-cmakefiles usr/lib/cmake
+		patch -d/ -s -p0 < ${PKGDESTDIR}/usr/lib/cmake/fix-installed-cmakefiles
+		mv ${PKGDESTDIR}/usr/lib/cmake/dpp_patch ${PKGDESTDIR}/usr/lib/cmake/dpp
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (42 preceding siblings ...)
  2022-06-23 15:37 ` [PR PATCH] [Updated] " JuniorSuperTux
@ 2022-06-23 15:38 ` JuniorSuperTux
  2022-06-23 16:24 ` classabbyamp
                   ` (5 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-06-23 15:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 58512 bytes --]

From 5bd25c34fec1fd766500b82e49c6c9a09d307640 Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel                          |    1 +
 .../libdpp/files/fix-headers-and-cmakefiles   | 1612 +++++++++++++++++
 srcpkgs/libdpp/files/fix-installed-cmakefiles |   86 +
 srcpkgs/libdpp/template                       |   40 +
 4 files changed, 1739 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/files/fix-headers-and-cmakefiles
 create mode 100644 srcpkgs/libdpp/files/fix-installed-cmakefiles
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/files/fix-headers-and-cmakefiles b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
new file mode 100644
index 000000000000..bc6575bf8593
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
@@ -0,0 +1,1612 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index bbcc4b3..524a3ca 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -43,7 +43,7 @@ math(EXPR DPP_VERSION_PATCH ${CMAKE_MATCH_3})
+ 
+ string(CONCAT DPP_VERSION ${DPP_VERSION_MAJOR}.${DPP_VERSION_MINOR}.${DPP_VERSION_PATCH})
+ 
+-project(libdpp VERSION ${DPP_VERSION} LANGUAGES CXX)
++project(dpp VERSION ${DPP_VERSION} LANGUAGES CXX)
+ 
+ check_cxx_symbol_exists(prctl "sys/prctl.h" HAVE_PRCTL)
+ check_cxx_symbol_exists(pthread_setname_np "pthread.h" HAVE_PTHREAD_SETNAME_NP)
+@@ -240,8 +240,8 @@ foreach (fullmodname ${subdirlist})
+ 	target_precompile_headers(
+ 		${modname}
+ 		PRIVATE
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json.hpp"
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json_fwd.hpp"
++		<nlohmann/json.hpp>
++		<nlohmann/json_fwd.hpp>
+ 	)
+ 
+ 	if (WIN32 AND NOT MINGW)
+@@ -325,14 +325,16 @@ if(NOT WIN32)
+ 	# Installation
+ 
+ 	include(GNUInstallDirs)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ 	install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -DRUN_LDCONFIG=${RUN_LDCONFIG} -DLDCONFIG_EXECUTABLE=${LDCONFIG_EXECUTABLE} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/PostInstall.cmake)")
+ 
+ 	configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dpp.pc.in" "${CMAKE_BINARY_DIR}/dpp.pc" @ONLY)
+ 	install(FILES "${CMAKE_BINARY_DIR}/dpp.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
+ elseif(MINGW)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
+ endif()
+ 
+diff --git a/cmake/CPackSetup.cmake b/cmake/CPackSetup.cmake
+index a6bcf59..73abe7e 100644
+--- a/cmake/CPackSetup.cmake
++++ b/cmake/CPackSetup.cmake
+@@ -24,7 +24,7 @@ write_basic_package_version_file(${DPP_VERSION_FILE}
+ install(DIRECTORY include/ DESTINATION ${DPP_INSTALL_INCLUDE_DIR})
+ 
+ ## Include the file which allows `find_package(libdpp)` to function.
+-install(FILES cmake/libdpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
++install(FILES cmake/dpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
+ 
+ ## Export the targets to allow other projects to easily include this project
+ install(EXPORT ${DPP_EXPORT_NAME} DESTINATION ${DPP_INSTALL_LIBRARY_DIR} NAMESPACE dpp::)
+diff --git a/cmake/libdpp-config.cmake b/cmake/libdpp-config.cmake
+index d6dd5bd..d0009ac 100644
+--- a/cmake/libdpp-config.cmake
++++ b/cmake/libdpp-config.cmake
+@@ -1,10 +1,10 @@
+-# libdpp-config.cmake - package configuration file
++# dpp-config.cmake - package configuration file
+ 
+ ## Get current filesystem path (will a prefixed by where this package was installed)
+ get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+ 
+-## Use this directory to include libdpp which has the rest of the project targets
+-include(${SELF_DIR}/libdpp.cmake)
++## Use this directory to include dpp which has the rest of the project targets
++include(${SELF_DIR}/dpp.cmake)
+ 
+ ## Set OpenSSl directory for macos. It is also in our main CMakeLists.txt, but this file is independent from that.
+ if(APPLE)
+@@ -16,6 +16,6 @@ if(APPLE)
+ 	find_package(OpenSSL REQUIRED)
+ endif()
+ 
+-# Search for libdpp dependencies
++# Search for dpp dependencies
+ include(CMakeFindDependencyMacro)
+ find_dependency(OpenSSL REQUIRED)
+diff --git a/include/dpp/appcommand.h b/include/dpp/appcommand.h
+index 424823c..36f8f82 100644
+--- a/include/dpp/appcommand.h
++++ b/include/dpp/appcommand.h
+@@ -27,7 +27,7 @@
+ #include <dpp/role.h>
+ #include <dpp/user.h>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/application.h b/include/dpp/application.h
+index 7e9d80d..19fad83 100644
+--- a/include/dpp/application.h
++++ b/include/dpp/application.h
+@@ -26,7 +26,7 @@
+ #include <dpp/utility.h>
+ #include <dpp/user.h>
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/auditlog.h b/include/dpp/auditlog.h
+index 3469630..ca878da 100644
+--- a/include/dpp/auditlog.h
++++ b/include/dpp/auditlog.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <optional>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/ban.h b/include/dpp/ban.h
+index 6bbcdd2..8ad88d6 100644
+--- a/include/dpp/ban.h
++++ b/include/dpp/ban.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+ 
+diff --git a/include/dpp/channel.h b/include/dpp/channel.h
+index 7335b28..b2fcc33 100644
+--- a/include/dpp/channel.h
++++ b/include/dpp/channel.h
+@@ -25,7 +25,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+ #include <dpp/voicestate.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+diff --git a/include/dpp/cluster.h b/include/dpp/cluster.h
+index 7ad5ade..40e1709 100644
+--- a/include/dpp/cluster.h
++++ b/include/dpp/cluster.h
+@@ -29,7 +29,7 @@
+ #include <dpp/dispatcher.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/timer.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/discordclient.h>
+ #include <dpp/voiceregion.h>
+ #include <dpp/dtemplate.h>
+diff --git a/include/dpp/commandhandler.h b/include/dpp/commandhandler.h
+index 29da473..0b15417 100644
+--- a/include/dpp/commandhandler.h
++++ b/include/dpp/commandhandler.h
+@@ -29,7 +29,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/utility.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <vector>
+ #include <functional>
+diff --git a/include/dpp/discordclient.h b/include/dpp/discordclient.h
+index 1eb875a..10f010e 100644
+--- a/include/dpp/discordclient.h
++++ b/include/dpp/discordclient.h
+@@ -24,7 +24,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/discordevents.h b/include/dpp/discordevents.h
+index c6474a4..1a70b18 100644
+--- a/include/dpp/discordevents.h
++++ b/include/dpp/discordevents.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ 
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/discordvoiceclient.h b/include/dpp/discordvoiceclient.h
+index 9cd9354..13b74e5 100644
+--- a/include/dpp/discordvoiceclient.h
++++ b/include/dpp/discordvoiceclient.h
+@@ -32,7 +32,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/dtemplate.h b/include/dpp/dtemplate.h
+index 948b25d..5fbe17e 100644
+--- a/include/dpp/dtemplate.h
++++ b/include/dpp/dtemplate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/emoji.h b/include/dpp/emoji.h
+index a73e58a..9ab9c1e 100644
+--- a/include/dpp/emoji.h
++++ b/include/dpp/emoji.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/etf.h b/include/dpp/etf.h
+index 1c98e6a..1acd63b 100644
+--- a/include/dpp/etf.h
++++ b/include/dpp/etf.h
+@@ -34,7 +34,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/event.h b/include/dpp/event.h
+index cd945f5..388a0d6 100644
+--- a/include/dpp/event.h
++++ b/include/dpp/event.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ #define event_decl(x,wstype) /** @brief Internal event handler for wstype websocket events. Called for each websocket message of this type. @internal */ \
+ 	class x : public event { public: virtual void handle(dpp::discord_client* client, nlohmann::json &j, const std::string &raw); };
+diff --git a/include/dpp/fmt-minimal.h b/include/dpp/fmt-minimal.h
+index a5e7a5d..88f1e38 100644
+--- a/include/dpp/fmt-minimal.h
++++ b/include/dpp/fmt-minimal.h
+@@ -1,3 +1,3 @@
+ #pragma once
+-#include <dpp/fmt/core.h>
++#include <fmt/core.h>
+ #define FMT_STRING(s) s
+diff --git a/include/dpp/integration.h b/include/dpp/integration.h
+index 420c8d8..6815c3c 100644
+--- a/include/dpp/integration.h
++++ b/include/dpp/integration.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/invite.h b/include/dpp/invite.h
+index eae62a9..e8977a8 100644
+--- a/include/dpp/invite.h
++++ b/include/dpp/invite.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/stage_instance.h>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/json_interface.h b/include/dpp/json_interface.h
+index 302642d..e2e467a 100644
+--- a/include/dpp/json_interface.h
++++ b/include/dpp/json_interface.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 	/**
+diff --git a/include/dpp/message.h b/include/dpp/message.h
+index 1c80553..08de4c0 100644
+--- a/include/dpp/message.h
++++ b/include/dpp/message.h
+@@ -27,7 +27,7 @@
+ #include <dpp/guild.h>
+ #include <optional>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/presence.h b/include/dpp/presence.h
+index e018f92..bcf322b 100644
+--- a/include/dpp/presence.h
++++ b/include/dpp/presence.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/prune.h b/include/dpp/prune.h
+index dd1b19b..7528a37 100644
+--- a/include/dpp/prune.h
++++ b/include/dpp/prune.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/restrequest.h b/include/dpp/restrequest.h
+index 2d1915c..20a4b3d 100644
+--- a/include/dpp/restrequest.h
++++ b/include/dpp/restrequest.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/role.h b/include/dpp/role.h
+index 00d380a..389ca43 100644
+--- a/include/dpp/role.h
++++ b/include/dpp/role.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/guild.h>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/scheduled_event.h b/include/dpp/scheduled_event.h
+index 2cddd63..39be997 100644
+--- a/include/dpp/scheduled_event.h
++++ b/include/dpp/scheduled_event.h
+@@ -24,7 +24,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/user.h>
+ #include <dpp/guild.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/stage_instance.h b/include/dpp/stage_instance.h
+index 90a134f..0ab205e 100644
+--- a/include/dpp/stage_instance.h
++++ b/include/dpp/stage_instance.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/user.h b/include/dpp/user.h
+index a723941..a77fccf 100644
+--- a/include/dpp/user.h
++++ b/include/dpp/user.h
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #pragma once
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+diff --git a/include/dpp/voiceregion.h b/include/dpp/voiceregion.h
+index a1def0a..a0a88e5 100644
+--- a/include/dpp/voiceregion.h
++++ b/include/dpp/voiceregion.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <unordered_map>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/voicestate.h b/include/dpp/voicestate.h
+index 64f1517..c14461e 100644
+--- a/include/dpp/voicestate.h
++++ b/include/dpp/voicestate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/webhook.h b/include/dpp/webhook.h
+index 98fa176..95c09dc 100644
+--- a/include/dpp/webhook.h
++++ b/include/dpp/webhook.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/src/dpp/application.cpp b/src/dpp/application.cpp
+index b5eea41..5ffc9fc 100644
+--- a/src/dpp/application.cpp
++++ b/src/dpp/application.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/auditlog.cpp b/src/dpp/auditlog.cpp
+index 72ef078..2a45729 100644
+--- a/src/dpp/auditlog.cpp
++++ b/src/dpp/auditlog.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/auditlog.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/ban.cpp b/src/dpp/ban.cpp
+index b959d75..860e5a4 100644
+--- a/src/dpp/ban.cpp
++++ b/src/dpp/ban.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/ban.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/channel.cpp b/src/dpp/channel.cpp
+index 405372c..6495b10 100644
+--- a/src/dpp/channel.cpp
++++ b/src/dpp/channel.cpp
+@@ -25,7 +25,7 @@
+ #include <dpp/role.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/cluster.cpp b/src/dpp/cluster.cpp
+index aa1aad8..32b0b7a 100644
+--- a/src/dpp/cluster.cpp
++++ b/src/dpp/cluster.cpp
+@@ -29,7 +29,7 @@
+ #include <dpp/sync.h>
+ #include <chrono>
+ #include <iostream>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <utility>
+ #include <dpp/fmt-minimal.h>
+ #include <algorithm>
+diff --git a/src/dpp/cluster/confirmation.cpp b/src/dpp/cluster/confirmation.cpp
+index c7e579b..fcccb4c 100644
+--- a/src/dpp/cluster/confirmation.cpp
++++ b/src/dpp/cluster/confirmation.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/cluster/timer.cpp b/src/dpp/cluster/timer.cpp
+index a4b6d83..7159574 100644
+--- a/src/dpp/cluster/timer.cpp
++++ b/src/dpp/cluster/timer.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/timer.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/discordclient.cpp b/src/dpp/discordclient.cpp
+index 9444fcb..8a498b8 100644
+--- a/src/dpp/discordclient.cpp
++++ b/src/dpp/discordclient.cpp
+@@ -26,7 +26,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+ #include <thread>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ #include <dpp/etf.h>
+ #include <zlib.h>
+diff --git a/src/dpp/discordevents.cpp b/src/dpp/discordevents.cpp
+index 92bd66d..73b2b2f 100644
+--- a/src/dpp/discordevents.cpp
++++ b/src/dpp/discordevents.cpp
+@@ -30,7 +30,7 @@
+ #include <dpp/event.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <time.h>
+ #include <iomanip>
+ #include <sstream>
+diff --git a/src/dpp/discordvoiceclient.cpp b/src/dpp/discordvoiceclient.cpp
+index ee3ac8e..8576e3c 100644
+--- a/src/dpp/discordvoiceclient.cpp
++++ b/src/dpp/discordvoiceclient.cpp
+@@ -43,7 +43,7 @@
+ #include <dpp/discordvoiceclient.h>
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ #ifdef HAVE_VOICE
+diff --git a/src/dpp/dtemplate.cpp b/src/dpp/dtemplate.cpp
+index 31f6bbf..e3c67ea 100644
+--- a/src/dpp/dtemplate.cpp
++++ b/src/dpp/dtemplate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/dtemplate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/emoji.cpp b/src/dpp/emoji.cpp
+index c0b3613..4f00958 100644
+--- a/src/dpp/emoji.cpp
++++ b/src/dpp/emoji.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/emoji.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/etf.cpp b/src/dpp/etf.cpp
+index 6395d9b..3b6159e 100644
+--- a/src/dpp/etf.cpp
++++ b/src/dpp/etf.cpp
+@@ -34,7 +34,7 @@
+ #include <dpp/sysdep.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <zlib.h>
+ #include <iostream>
+ 
+diff --git a/src/dpp/events/channel_create.cpp b/src/dpp/events/channel_create.cpp
+index 07b0c2c..1a0b812 100644
+--- a/src/dpp/events/channel_create.cpp
++++ b/src/dpp/events/channel_create.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_delete.cpp b/src/dpp/events/channel_delete.cpp
+index 09d23a4..5e48f96 100644
+--- a/src/dpp/events/channel_delete.cpp
++++ b/src/dpp/events/channel_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_pins_update.cpp b/src/dpp/events/channel_pins_update.cpp
+index 3a4244b..cc2f908 100644
+--- a/src/dpp/events/channel_pins_update.cpp
++++ b/src/dpp/events/channel_pins_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_update.cpp b/src/dpp/events/channel_update.cpp
+index 7e05d8f..fde836a 100644
+--- a/src/dpp/events/channel_update.cpp
++++ b/src/dpp/events/channel_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_add.cpp b/src/dpp/events/guild_ban_add.cpp
+index 872b875..61dfb5b 100644
+--- a/src/dpp/events/guild_ban_add.cpp
++++ b/src/dpp/events/guild_ban_add.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_remove.cpp b/src/dpp/events/guild_ban_remove.cpp
+index e170fde..510a280 100644
+--- a/src/dpp/events/guild_ban_remove.cpp
++++ b/src/dpp/events/guild_ban_remove.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_create.cpp b/src/dpp/events/guild_create.cpp
+index 6f1e369..9de1c39 100644
+--- a/src/dpp/events/guild_create.cpp
++++ b/src/dpp/events/guild_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_delete.cpp b/src/dpp/events/guild_delete.cpp
+index 82f75d3..e39f4c8 100644
+--- a/src/dpp/events/guild_delete.cpp
++++ b/src/dpp/events/guild_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_emojis_update.cpp b/src/dpp/events/guild_emojis_update.cpp
+index 62588c0..ec4303d 100644
+--- a/src/dpp/events/guild_emojis_update.cpp
++++ b/src/dpp/events/guild_emojis_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/emoji.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_integrations_update.cpp b/src/dpp/events/guild_integrations_update.cpp
+index 58146ae..0d2036f 100644
+--- a/src/dpp/events/guild_integrations_update.cpp
++++ b/src/dpp/events/guild_integrations_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_join_request_delete.cpp b/src/dpp/events/guild_join_request_delete.cpp
+index 4b6da22..5642b4c 100644
+--- a/src/dpp/events/guild_join_request_delete.cpp
++++ b/src/dpp/events/guild_join_request_delete.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_add.cpp b/src/dpp/events/guild_member_add.cpp
+index 6c865bb..2b3b8e8 100644
+--- a/src/dpp/events/guild_member_add.cpp
++++ b/src/dpp/events/guild_member_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_remove.cpp b/src/dpp/events/guild_member_remove.cpp
+index fa23bed..46646b7 100644
+--- a/src/dpp/events/guild_member_remove.cpp
++++ b/src/dpp/events/guild_member_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_update.cpp b/src/dpp/events/guild_member_update.cpp
+index 6a9c3b7..689aac4 100644
+--- a/src/dpp/events/guild_member_update.cpp
++++ b/src/dpp/events/guild_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_members_chunk.cpp b/src/dpp/events/guild_members_chunk.cpp
+index 03e1eb3..0e68089 100644
+--- a/src/dpp/events/guild_members_chunk.cpp
++++ b/src/dpp/events/guild_members_chunk.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_create.cpp b/src/dpp/events/guild_role_create.cpp
+index b668bb5..ed8bc79 100644
+--- a/src/dpp/events/guild_role_create.cpp
++++ b/src/dpp/events/guild_role_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_delete.cpp b/src/dpp/events/guild_role_delete.cpp
+index 6c8cedc..336f11b 100644
+--- a/src/dpp/events/guild_role_delete.cpp
++++ b/src/dpp/events/guild_role_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_update.cpp b/src/dpp/events/guild_role_update.cpp
+index 29130c0..32e3146 100644
+--- a/src/dpp/events/guild_role_update.cpp
++++ b/src/dpp/events/guild_role_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_create.cpp b/src/dpp/events/guild_scheduled_event_create.cpp
+index 02b3ba9..e84c134 100644
+--- a/src/dpp/events/guild_scheduled_event_create.cpp
++++ b/src/dpp/events/guild_scheduled_event_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_delete.cpp b/src/dpp/events/guild_scheduled_event_delete.cpp
+index ea11ed9..a098a0f 100644
+--- a/src/dpp/events/guild_scheduled_event_delete.cpp
++++ b/src/dpp/events/guild_scheduled_event_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_update.cpp b/src/dpp/events/guild_scheduled_event_update.cpp
+index b43f02d..6fd2795 100644
+--- a/src/dpp/events/guild_scheduled_event_update.cpp
++++ b/src/dpp/events/guild_scheduled_event_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_add.cpp b/src/dpp/events/guild_scheduled_event_user_add.cpp
+index 38e07b6..c549c39 100644
+--- a/src/dpp/events/guild_scheduled_event_user_add.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_add.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_remove.cpp b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+index 4d6e8a0..08be1e9 100644
+--- a/src/dpp/events/guild_scheduled_event_user_remove.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_stickers_update.cpp b/src/dpp/events/guild_stickers_update.cpp
+index 7f00c23..583d936 100644
+--- a/src/dpp/events/guild_stickers_update.cpp
++++ b/src/dpp/events/guild_stickers_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_update.cpp b/src/dpp/events/guild_update.cpp
+index d80b40b..e116688 100644
+--- a/src/dpp/events/guild_update.cpp
++++ b/src/dpp/events/guild_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_create.cpp b/src/dpp/events/integration_create.cpp
+index f72193c..112320b 100644
+--- a/src/dpp/events/integration_create.cpp
++++ b/src/dpp/events/integration_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_delete.cpp b/src/dpp/events/integration_delete.cpp
+index 0438076..e0b2202 100644
+--- a/src/dpp/events/integration_delete.cpp
++++ b/src/dpp/events/integration_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_update.cpp b/src/dpp/events/integration_update.cpp
+index 8175fab..38b3eda 100644
+--- a/src/dpp/events/integration_update.cpp
++++ b/src/dpp/events/integration_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/interaction_create.cpp b/src/dpp/events/interaction_create.cpp
+index a7bf466..a8aa25b 100644
+--- a/src/dpp/events/interaction_create.cpp
++++ b/src/dpp/events/interaction_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/appcommand.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_create.cpp b/src/dpp/events/invite_create.cpp
+index 377ba3f..7d03d06 100644
+--- a/src/dpp/events/invite_create.cpp
++++ b/src/dpp/events/invite_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_delete.cpp b/src/dpp/events/invite_delete.cpp
+index 5f2f084..c9d81bb 100644
+--- a/src/dpp/events/invite_delete.cpp
++++ b/src/dpp/events/invite_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/logger.cpp b/src/dpp/events/logger.cpp
+index aefc82f..ee9d202 100644
+--- a/src/dpp/events/logger.cpp
++++ b/src/dpp/events/logger.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_create.cpp b/src/dpp/events/message_create.cpp
+index be56ef8..80481e8 100644
+--- a/src/dpp/events/message_create.cpp
++++ b/src/dpp/events/message_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete.cpp b/src/dpp/events/message_delete.cpp
+index d7ba0ea..98e7c2c 100644
+--- a/src/dpp/events/message_delete.cpp
++++ b/src/dpp/events/message_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete_bulk.cpp b/src/dpp/events/message_delete_bulk.cpp
+index a158bf1..cbffcf2 100644
+--- a/src/dpp/events/message_delete_bulk.cpp
++++ b/src/dpp/events/message_delete_bulk.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_add.cpp b/src/dpp/events/message_reaction_add.cpp
+index fac7237..5e61959 100644
+--- a/src/dpp/events/message_reaction_add.cpp
++++ b/src/dpp/events/message_reaction_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove.cpp b/src/dpp/events/message_reaction_remove.cpp
+index 1036757..1f602b1 100644
+--- a/src/dpp/events/message_reaction_remove.cpp
++++ b/src/dpp/events/message_reaction_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_all.cpp b/src/dpp/events/message_reaction_remove_all.cpp
+index 7a63660..a564afb 100644
+--- a/src/dpp/events/message_reaction_remove_all.cpp
++++ b/src/dpp/events/message_reaction_remove_all.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_emoji.cpp b/src/dpp/events/message_reaction_remove_emoji.cpp
+index c820bbe..93a3f9c 100644
+--- a/src/dpp/events/message_reaction_remove_emoji.cpp
++++ b/src/dpp/events/message_reaction_remove_emoji.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_update.cpp b/src/dpp/events/message_update.cpp
+index 3259d88..90b6418 100644
+--- a/src/dpp/events/message_update.cpp
++++ b/src/dpp/events/message_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/presence.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/presence_update.cpp b/src/dpp/events/presence_update.cpp
+index af16087..7718019 100644
+--- a/src/dpp/events/presence_update.cpp
++++ b/src/dpp/events/presence_update.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/ready.cpp b/src/dpp/events/ready.cpp
+index 1434794..b6dd917 100644
+--- a/src/dpp/events/ready.cpp
++++ b/src/dpp/events/ready.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/events/resumed.cpp b/src/dpp/events/resumed.cpp
+index e28c8d8..98e174e 100644
+--- a/src/dpp/events/resumed.cpp
++++ b/src/dpp/events/resumed.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_create.cpp b/src/dpp/events/stage_instance_create.cpp
+index bb191df..a53b3bc 100644
+--- a/src/dpp/events/stage_instance_create.cpp
++++ b/src/dpp/events/stage_instance_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_delete.cpp b/src/dpp/events/stage_instance_delete.cpp
+index 639d259..d5bb97c 100644
+--- a/src/dpp/events/stage_instance_delete.cpp
++++ b/src/dpp/events/stage_instance_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_update.cpp b/src/dpp/events/stage_instance_update.cpp
+index 8422ffb..5349aab 100644
+--- a/src/dpp/events/stage_instance_update.cpp
++++ b/src/dpp/events/stage_instance_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_create.cpp b/src/dpp/events/thread_create.cpp
+index 896999a..680bc92 100644
+--- a/src/dpp/events/thread_create.cpp
++++ b/src/dpp/events/thread_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_delete.cpp b/src/dpp/events/thread_delete.cpp
+index 3969469..d195dac 100644
+--- a/src/dpp/events/thread_delete.cpp
++++ b/src/dpp/events/thread_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_list_sync.cpp b/src/dpp/events/thread_list_sync.cpp
+index ce518f5..19eee46 100644
+--- a/src/dpp/events/thread_list_sync.cpp
++++ b/src/dpp/events/thread_list_sync.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_member_update.cpp b/src/dpp/events/thread_member_update.cpp
+index 00a5949..5868e8d 100644
+--- a/src/dpp/events/thread_member_update.cpp
++++ b/src/dpp/events/thread_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_members_update.cpp b/src/dpp/events/thread_members_update.cpp
+index c744029..ea702a2 100644
+--- a/src/dpp/events/thread_members_update.cpp
++++ b/src/dpp/events/thread_members_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_update.cpp b/src/dpp/events/thread_update.cpp
+index 6be9cb6..b97e271 100644
+--- a/src/dpp/events/thread_update.cpp
++++ b/src/dpp/events/thread_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/typing_start.cpp b/src/dpp/events/typing_start.cpp
+index fc8667b..189129a 100644
+--- a/src/dpp/events/typing_start.cpp
++++ b/src/dpp/events/typing_start.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/user_update.cpp b/src/dpp/events/user_update.cpp
+index 3236c27..63fde16 100644
+--- a/src/dpp/events/user_update.cpp
++++ b/src/dpp/events/user_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/user.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_server_update.cpp b/src/dpp/events/voice_server_update.cpp
+index a70c831..fd5d984 100644
+--- a/src/dpp/events/voice_server_update.cpp
++++ b/src/dpp/events/voice_server_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_state_update.cpp b/src/dpp/events/voice_state_update.cpp
+index 4b316d4..79895e0 100644
+--- a/src/dpp/events/voice_state_update.cpp
++++ b/src/dpp/events/voice_state_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/webhooks_update.cpp b/src/dpp/events/webhooks_update.cpp
+index e94e585..d4c49d0 100644
+--- a/src/dpp/events/webhooks_update.cpp
++++ b/src/dpp/events/webhooks_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/webhook.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/format.cpp b/src/dpp/format.cpp
+index f95ab5d..2c6a1f2 100644
+--- a/src/dpp/format.cpp
++++ b/src/dpp/format.cpp
+@@ -5,7 +5,7 @@
+ //
+ // For the license information refer to format.h.
+ 
+-#include <dpp/fmt/format-inl.h>
++#include <fmt/format-inl.h>
+ 
+ FMT_BEGIN_NAMESPACE
+ namespace detail {
+diff --git a/src/dpp/guild.cpp b/src/dpp/guild.cpp
+index 1d47e7f..da26b04 100644
+--- a/src/dpp/guild.cpp
++++ b/src/dpp/guild.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/integration.cpp b/src/dpp/integration.cpp
+index 0d7ffba..2057271 100644
+--- a/src/dpp/integration.cpp
++++ b/src/dpp/integration.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/integration.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/cache.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/invite.cpp b/src/dpp/invite.cpp
+index ec02903..9a39fee 100644
+--- a/src/dpp/invite.cpp
++++ b/src/dpp/invite.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/invite.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/message.cpp b/src/dpp/message.cpp
+index 284fd0d..252807c 100644
+--- a/src/dpp/message.cpp
++++ b/src/dpp/message.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/exception.h>
+diff --git a/src/dpp/os.cpp b/src/dpp/os.cpp
+index 9a126ca..f76e086 100644
+--- a/src/dpp/os.cpp
++++ b/src/dpp/os.cpp
+@@ -10,7 +10,7 @@
+ #  define _CRT_SECURE_NO_WARNINGS
+ #endif
+ 
+-#include <dpp/fmt/os.h>
++#include <fmt/os.h>
+ 
+ #include <climits>
+ 
+diff --git a/src/dpp/permissions.cpp b/src/dpp/permissions.cpp
+index 5985e6e..e7adab6 100644
+--- a/src/dpp/permissions.cpp
++++ b/src/dpp/permissions.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/presence.cpp b/src/dpp/presence.cpp
+index b432044..ab8b5f4 100644
+--- a/src/dpp/presence.cpp
++++ b/src/dpp/presence.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/utility.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/prune.cpp b/src/dpp/prune.cpp
+index 1d7cd49..50b0315 100644
+--- a/src/dpp/prune.cpp
++++ b/src/dpp/prune.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/prune.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/role.cpp b/src/dpp/role.cpp
+index 618e16d..3a8182b 100644
+--- a/src/dpp/role.cpp
++++ b/src/dpp/role.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/permissions.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/scheduled_event.cpp b/src/dpp/scheduled_event.cpp
+index e049889..3113260 100644
+--- a/src/dpp/scheduled_event.cpp
++++ b/src/dpp/scheduled_event.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/exception.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/slashcommand.cpp b/src/dpp/slashcommand.cpp
+index 9ae3024..2872dac 100644
+--- a/src/dpp/slashcommand.cpp
++++ b/src/dpp/slashcommand.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/stringops.h>
+ #include <dpp/cache.h>
+ #include <iostream>
+diff --git a/src/dpp/stage_instance.cpp b/src/dpp/stage_instance.cpp
+index 2b10760..34e514d 100644
+--- a/src/dpp/stage_instance.cpp
++++ b/src/dpp/stage_instance.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/stage_instance.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/user.cpp b/src/dpp/user.cpp
+index e8e4dcd..5107c0f 100644
+--- a/src/dpp/user.cpp
++++ b/src/dpp/user.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/user.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/utility.cpp b/src/dpp/utility.cpp
+index 57c9874..80a6b82 100644
+--- a/src/dpp/utility.cpp
++++ b/src/dpp/utility.cpp
+@@ -33,7 +33,7 @@
+ #include <fstream>
+ #include <streambuf>
+ #include <array>
+-#include <dpp/fmt/format.h>
++#include <fmt/format.h>
+ #include <dpp/cluster.h>
+ #include <dpp/dispatcher.h>
+ 
+diff --git a/src/dpp/voiceregion.cpp b/src/dpp/voiceregion.cpp
+index 0e13179..895f659 100644
+--- a/src/dpp/voiceregion.cpp
++++ b/src/dpp/voiceregion.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voiceregion.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/voicestate.cpp b/src/dpp/voicestate.cpp
+index e1dd521..a68865f 100644
+--- a/src/dpp/voicestate.cpp
++++ b/src/dpp/voicestate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voicestate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/webhook.cpp b/src/dpp/webhook.cpp
+index a5e5e53..ad73796 100644
+--- a/src/dpp/webhook.cpp
++++ b/src/dpp/webhook.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/webhook.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/test.h b/src/test.h
+index 0b714f9..421ccad 100644
+--- a/src/test.h
++++ b/src/test.h
+@@ -24,7 +24,7 @@ _Pragma("warning( disable : 4251 )"); // 4251 warns when we export classes or st
+ _Pragma("warning( disable : 5105 )"); // 4251 warns when we export classes or structures with stl member variables
+ #endif
+ #include <dpp/dpp.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <iomanip>
+ 
+ #ifdef _WIN32
diff --git a/srcpkgs/libdpp/files/fix-installed-cmakefiles b/srcpkgs/libdpp/files/fix-installed-cmakefiles
new file mode 100644
index 000000000000..359cd2fd0bd3
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-installed-cmakefiles
@@ -0,0 +1,86 @@
+diff -ruN /usr/lib/cmake/dpp/dpp-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-noconfig.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake	2022-06-23 23:34:17.663735274 +0800
+@@ -8,12 +8,12 @@
+ # Import target "dpp::dpp" for configuration ""
+ set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+ set_target_properties(dpp::dpp PROPERTIES
+-  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.10"
++  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.10"
+   )
+ 
+ list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.10" )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake	2022-06-23 23:34:17.670735274 +0800
+@@ -6,14 +6,14 @@
+ set(CMAKE_IMPORT_FILE_VERSION 1)
+ 
+ # Import target "dpp" for configuration ""
+-set_property(TARGET dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+-set_target_properties(dpp PROPERTIES
++set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
++set_target_properties(dpp::dpp PROPERTIES
+   IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.10"
+   )
+ 
+-list(APPEND _IMPORT_CHECK_TARGETS dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10" )
++list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets.cmake /usr/lib/cmake/dpp_patch/dpp-targets.cmake
+--- /usr/lib/cmake/dpp/dpp-targets.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets.cmake	2022-06-23 23:34:17.668735274 +0800
+@@ -47,7 +47,7 @@
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+ get_filename_component(_realOrig "/usr/lib64" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
++if(1)
+   set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+@@ -61,7 +61,7 @@
+ add_library(dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
+diff -ruN /usr/lib/cmake/dpp/dpp.cmake /usr/lib/cmake/dpp_patch/dpp.cmake
+--- /usr/lib/cmake/dpp/dpp.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp.cmake	2022-06-23 23:34:17.667735274 +0800
+@@ -46,9 +46,9 @@
+ # Use original install prefix when loaded through a
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+-get_filename_component(_realOrig "/usr/lib64/dpp-10.0" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
+-  set(_IMPORT_PREFIX "/usr/lib64/dpp-10.0")
++get_filename_component(_realOrig "/usr/lib64" REALPATH)
++if(1)
++  set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+ unset(_realCurr)
+@@ -62,7 +62,7 @@
+ add_library(dpp::dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp::dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..819289f6572b
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,40 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+hostmakedepends="pkg-config git"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	git apply ${FILESDIR}/fix-headers-and-cmakefiles
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -r include/dpp/fmt
+	rm -r include/dpp/nlohmann
+}
+
+post_install() {
+	rm -r "${DESTDIR}/usr/lib/dpp-${version%.*}"
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmove usr/include
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		vcopy ${FILESDIR}/fix-installed-cmakefiles usr/lib/cmake
+		patch -d/ -s -p0 < ${PKGDESTDIR}/usr/lib/cmake/fix-installed-cmakefiles
+		mv ${PKGDESTDIR}/usr/lib/cmake/dpp_patch ${PKGDESTDIR}/usr/lib/cmake/dpp
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (43 preceding siblings ...)
  2022-06-23 15:38 ` JuniorSuperTux
@ 2022-06-23 16:24 ` classabbyamp
  2022-07-03  5:22 ` [PR PATCH] [Updated] " JuniorSuperTux
                   ` (4 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: classabbyamp @ 2022-06-23 16:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 283 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#issuecomment-1164621601

Comment:
patches should go in srcpkgs/PKGNAME/patches, and need to have the extension `.patch` or `.diff`. Where they are currently does nothing.

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (44 preceding siblings ...)
  2022-06-23 16:24 ` classabbyamp
@ 2022-07-03  5:22 ` JuniorSuperTux
  2022-07-03  5:22 ` JuniorSuperTux
                   ` (3 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-07-03  5:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 58510 bytes --]

From d4b305ddd69f354c816304b1fe741bdbb4afe9c4 Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel                          |    1 +
 .../libdpp/files/fix-headers-and-cmakefiles   | 1612 +++++++++++++++++
 srcpkgs/libdpp/files/fix-installed-cmakefiles |   86 +
 srcpkgs/libdpp/template                       |   40 +
 4 files changed, 1739 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/files/fix-headers-and-cmakefiles
 create mode 100644 srcpkgs/libdpp/files/fix-installed-cmakefiles
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/files/fix-headers-and-cmakefiles b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
new file mode 100644
index 000000000000..bc6575bf8593
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
@@ -0,0 +1,1612 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index bbcc4b3..524a3ca 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -43,7 +43,7 @@ math(EXPR DPP_VERSION_PATCH ${CMAKE_MATCH_3})
+ 
+ string(CONCAT DPP_VERSION ${DPP_VERSION_MAJOR}.${DPP_VERSION_MINOR}.${DPP_VERSION_PATCH})
+ 
+-project(libdpp VERSION ${DPP_VERSION} LANGUAGES CXX)
++project(dpp VERSION ${DPP_VERSION} LANGUAGES CXX)
+ 
+ check_cxx_symbol_exists(prctl "sys/prctl.h" HAVE_PRCTL)
+ check_cxx_symbol_exists(pthread_setname_np "pthread.h" HAVE_PTHREAD_SETNAME_NP)
+@@ -240,8 +240,8 @@ foreach (fullmodname ${subdirlist})
+ 	target_precompile_headers(
+ 		${modname}
+ 		PRIVATE
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json.hpp"
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json_fwd.hpp"
++		<nlohmann/json.hpp>
++		<nlohmann/json_fwd.hpp>
+ 	)
+ 
+ 	if (WIN32 AND NOT MINGW)
+@@ -325,14 +325,16 @@ if(NOT WIN32)
+ 	# Installation
+ 
+ 	include(GNUInstallDirs)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ 	install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -DRUN_LDCONFIG=${RUN_LDCONFIG} -DLDCONFIG_EXECUTABLE=${LDCONFIG_EXECUTABLE} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/PostInstall.cmake)")
+ 
+ 	configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dpp.pc.in" "${CMAKE_BINARY_DIR}/dpp.pc" @ONLY)
+ 	install(FILES "${CMAKE_BINARY_DIR}/dpp.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
+ elseif(MINGW)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
+ endif()
+ 
+diff --git a/cmake/CPackSetup.cmake b/cmake/CPackSetup.cmake
+index a6bcf59..73abe7e 100644
+--- a/cmake/CPackSetup.cmake
++++ b/cmake/CPackSetup.cmake
+@@ -24,7 +24,7 @@ write_basic_package_version_file(${DPP_VERSION_FILE}
+ install(DIRECTORY include/ DESTINATION ${DPP_INSTALL_INCLUDE_DIR})
+ 
+ ## Include the file which allows `find_package(libdpp)` to function.
+-install(FILES cmake/libdpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
++install(FILES cmake/dpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
+ 
+ ## Export the targets to allow other projects to easily include this project
+ install(EXPORT ${DPP_EXPORT_NAME} DESTINATION ${DPP_INSTALL_LIBRARY_DIR} NAMESPACE dpp::)
+diff --git a/cmake/libdpp-config.cmake b/cmake/libdpp-config.cmake
+index d6dd5bd..d0009ac 100644
+--- a/cmake/libdpp-config.cmake
++++ b/cmake/libdpp-config.cmake
+@@ -1,10 +1,10 @@
+-# libdpp-config.cmake - package configuration file
++# dpp-config.cmake - package configuration file
+ 
+ ## Get current filesystem path (will a prefixed by where this package was installed)
+ get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+ 
+-## Use this directory to include libdpp which has the rest of the project targets
+-include(${SELF_DIR}/libdpp.cmake)
++## Use this directory to include dpp which has the rest of the project targets
++include(${SELF_DIR}/dpp.cmake)
+ 
+ ## Set OpenSSl directory for macos. It is also in our main CMakeLists.txt, but this file is independent from that.
+ if(APPLE)
+@@ -16,6 +16,6 @@ if(APPLE)
+ 	find_package(OpenSSL REQUIRED)
+ endif()
+ 
+-# Search for libdpp dependencies
++# Search for dpp dependencies
+ include(CMakeFindDependencyMacro)
+ find_dependency(OpenSSL REQUIRED)
+diff --git a/include/dpp/appcommand.h b/include/dpp/appcommand.h
+index 424823c..36f8f82 100644
+--- a/include/dpp/appcommand.h
++++ b/include/dpp/appcommand.h
+@@ -27,7 +27,7 @@
+ #include <dpp/role.h>
+ #include <dpp/user.h>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/application.h b/include/dpp/application.h
+index 7e9d80d..19fad83 100644
+--- a/include/dpp/application.h
++++ b/include/dpp/application.h
+@@ -26,7 +26,7 @@
+ #include <dpp/utility.h>
+ #include <dpp/user.h>
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/auditlog.h b/include/dpp/auditlog.h
+index 3469630..ca878da 100644
+--- a/include/dpp/auditlog.h
++++ b/include/dpp/auditlog.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <optional>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/ban.h b/include/dpp/ban.h
+index 6bbcdd2..8ad88d6 100644
+--- a/include/dpp/ban.h
++++ b/include/dpp/ban.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+ 
+diff --git a/include/dpp/channel.h b/include/dpp/channel.h
+index 7335b28..b2fcc33 100644
+--- a/include/dpp/channel.h
++++ b/include/dpp/channel.h
+@@ -25,7 +25,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+ #include <dpp/voicestate.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+diff --git a/include/dpp/cluster.h b/include/dpp/cluster.h
+index 7ad5ade..40e1709 100644
+--- a/include/dpp/cluster.h
++++ b/include/dpp/cluster.h
+@@ -29,7 +29,7 @@
+ #include <dpp/dispatcher.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/timer.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/discordclient.h>
+ #include <dpp/voiceregion.h>
+ #include <dpp/dtemplate.h>
+diff --git a/include/dpp/commandhandler.h b/include/dpp/commandhandler.h
+index 29da473..0b15417 100644
+--- a/include/dpp/commandhandler.h
++++ b/include/dpp/commandhandler.h
+@@ -29,7 +29,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/utility.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <vector>
+ #include <functional>
+diff --git a/include/dpp/discordclient.h b/include/dpp/discordclient.h
+index 1eb875a..10f010e 100644
+--- a/include/dpp/discordclient.h
++++ b/include/dpp/discordclient.h
+@@ -24,7 +24,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/discordevents.h b/include/dpp/discordevents.h
+index c6474a4..1a70b18 100644
+--- a/include/dpp/discordevents.h
++++ b/include/dpp/discordevents.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ 
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/discordvoiceclient.h b/include/dpp/discordvoiceclient.h
+index 9cd9354..13b74e5 100644
+--- a/include/dpp/discordvoiceclient.h
++++ b/include/dpp/discordvoiceclient.h
+@@ -32,7 +32,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/dtemplate.h b/include/dpp/dtemplate.h
+index 948b25d..5fbe17e 100644
+--- a/include/dpp/dtemplate.h
++++ b/include/dpp/dtemplate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/emoji.h b/include/dpp/emoji.h
+index a73e58a..9ab9c1e 100644
+--- a/include/dpp/emoji.h
++++ b/include/dpp/emoji.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/etf.h b/include/dpp/etf.h
+index 1c98e6a..1acd63b 100644
+--- a/include/dpp/etf.h
++++ b/include/dpp/etf.h
+@@ -34,7 +34,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/event.h b/include/dpp/event.h
+index cd945f5..388a0d6 100644
+--- a/include/dpp/event.h
++++ b/include/dpp/event.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ #define event_decl(x,wstype) /** @brief Internal event handler for wstype websocket events. Called for each websocket message of this type. @internal */ \
+ 	class x : public event { public: virtual void handle(dpp::discord_client* client, nlohmann::json &j, const std::string &raw); };
+diff --git a/include/dpp/fmt-minimal.h b/include/dpp/fmt-minimal.h
+index a5e7a5d..88f1e38 100644
+--- a/include/dpp/fmt-minimal.h
++++ b/include/dpp/fmt-minimal.h
+@@ -1,3 +1,3 @@
+ #pragma once
+-#include <dpp/fmt/core.h>
++#include <fmt/core.h>
+ #define FMT_STRING(s) s
+diff --git a/include/dpp/integration.h b/include/dpp/integration.h
+index 420c8d8..6815c3c 100644
+--- a/include/dpp/integration.h
++++ b/include/dpp/integration.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/invite.h b/include/dpp/invite.h
+index eae62a9..e8977a8 100644
+--- a/include/dpp/invite.h
++++ b/include/dpp/invite.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/stage_instance.h>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/json_interface.h b/include/dpp/json_interface.h
+index 302642d..e2e467a 100644
+--- a/include/dpp/json_interface.h
++++ b/include/dpp/json_interface.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 	/**
+diff --git a/include/dpp/message.h b/include/dpp/message.h
+index 1c80553..08de4c0 100644
+--- a/include/dpp/message.h
++++ b/include/dpp/message.h
+@@ -27,7 +27,7 @@
+ #include <dpp/guild.h>
+ #include <optional>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/presence.h b/include/dpp/presence.h
+index e018f92..bcf322b 100644
+--- a/include/dpp/presence.h
++++ b/include/dpp/presence.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/prune.h b/include/dpp/prune.h
+index dd1b19b..7528a37 100644
+--- a/include/dpp/prune.h
++++ b/include/dpp/prune.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/restrequest.h b/include/dpp/restrequest.h
+index 2d1915c..20a4b3d 100644
+--- a/include/dpp/restrequest.h
++++ b/include/dpp/restrequest.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/role.h b/include/dpp/role.h
+index 00d380a..389ca43 100644
+--- a/include/dpp/role.h
++++ b/include/dpp/role.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/guild.h>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/scheduled_event.h b/include/dpp/scheduled_event.h
+index 2cddd63..39be997 100644
+--- a/include/dpp/scheduled_event.h
++++ b/include/dpp/scheduled_event.h
+@@ -24,7 +24,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/user.h>
+ #include <dpp/guild.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/stage_instance.h b/include/dpp/stage_instance.h
+index 90a134f..0ab205e 100644
+--- a/include/dpp/stage_instance.h
++++ b/include/dpp/stage_instance.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/user.h b/include/dpp/user.h
+index a723941..a77fccf 100644
+--- a/include/dpp/user.h
++++ b/include/dpp/user.h
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #pragma once
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+diff --git a/include/dpp/voiceregion.h b/include/dpp/voiceregion.h
+index a1def0a..a0a88e5 100644
+--- a/include/dpp/voiceregion.h
++++ b/include/dpp/voiceregion.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <unordered_map>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/voicestate.h b/include/dpp/voicestate.h
+index 64f1517..c14461e 100644
+--- a/include/dpp/voicestate.h
++++ b/include/dpp/voicestate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/webhook.h b/include/dpp/webhook.h
+index 98fa176..95c09dc 100644
+--- a/include/dpp/webhook.h
++++ b/include/dpp/webhook.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/src/dpp/application.cpp b/src/dpp/application.cpp
+index b5eea41..5ffc9fc 100644
+--- a/src/dpp/application.cpp
++++ b/src/dpp/application.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/auditlog.cpp b/src/dpp/auditlog.cpp
+index 72ef078..2a45729 100644
+--- a/src/dpp/auditlog.cpp
++++ b/src/dpp/auditlog.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/auditlog.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/ban.cpp b/src/dpp/ban.cpp
+index b959d75..860e5a4 100644
+--- a/src/dpp/ban.cpp
++++ b/src/dpp/ban.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/ban.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/channel.cpp b/src/dpp/channel.cpp
+index 405372c..6495b10 100644
+--- a/src/dpp/channel.cpp
++++ b/src/dpp/channel.cpp
+@@ -25,7 +25,7 @@
+ #include <dpp/role.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/cluster.cpp b/src/dpp/cluster.cpp
+index aa1aad8..32b0b7a 100644
+--- a/src/dpp/cluster.cpp
++++ b/src/dpp/cluster.cpp
+@@ -29,7 +29,7 @@
+ #include <dpp/sync.h>
+ #include <chrono>
+ #include <iostream>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <utility>
+ #include <dpp/fmt-minimal.h>
+ #include <algorithm>
+diff --git a/src/dpp/cluster/confirmation.cpp b/src/dpp/cluster/confirmation.cpp
+index c7e579b..fcccb4c 100644
+--- a/src/dpp/cluster/confirmation.cpp
++++ b/src/dpp/cluster/confirmation.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/cluster/timer.cpp b/src/dpp/cluster/timer.cpp
+index a4b6d83..7159574 100644
+--- a/src/dpp/cluster/timer.cpp
++++ b/src/dpp/cluster/timer.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/timer.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/discordclient.cpp b/src/dpp/discordclient.cpp
+index 9444fcb..8a498b8 100644
+--- a/src/dpp/discordclient.cpp
++++ b/src/dpp/discordclient.cpp
+@@ -26,7 +26,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+ #include <thread>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ #include <dpp/etf.h>
+ #include <zlib.h>
+diff --git a/src/dpp/discordevents.cpp b/src/dpp/discordevents.cpp
+index 92bd66d..73b2b2f 100644
+--- a/src/dpp/discordevents.cpp
++++ b/src/dpp/discordevents.cpp
+@@ -30,7 +30,7 @@
+ #include <dpp/event.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <time.h>
+ #include <iomanip>
+ #include <sstream>
+diff --git a/src/dpp/discordvoiceclient.cpp b/src/dpp/discordvoiceclient.cpp
+index ee3ac8e..8576e3c 100644
+--- a/src/dpp/discordvoiceclient.cpp
++++ b/src/dpp/discordvoiceclient.cpp
+@@ -43,7 +43,7 @@
+ #include <dpp/discordvoiceclient.h>
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ #ifdef HAVE_VOICE
+diff --git a/src/dpp/dtemplate.cpp b/src/dpp/dtemplate.cpp
+index 31f6bbf..e3c67ea 100644
+--- a/src/dpp/dtemplate.cpp
++++ b/src/dpp/dtemplate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/dtemplate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/emoji.cpp b/src/dpp/emoji.cpp
+index c0b3613..4f00958 100644
+--- a/src/dpp/emoji.cpp
++++ b/src/dpp/emoji.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/emoji.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/etf.cpp b/src/dpp/etf.cpp
+index 6395d9b..3b6159e 100644
+--- a/src/dpp/etf.cpp
++++ b/src/dpp/etf.cpp
+@@ -34,7 +34,7 @@
+ #include <dpp/sysdep.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <zlib.h>
+ #include <iostream>
+ 
+diff --git a/src/dpp/events/channel_create.cpp b/src/dpp/events/channel_create.cpp
+index 07b0c2c..1a0b812 100644
+--- a/src/dpp/events/channel_create.cpp
++++ b/src/dpp/events/channel_create.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_delete.cpp b/src/dpp/events/channel_delete.cpp
+index 09d23a4..5e48f96 100644
+--- a/src/dpp/events/channel_delete.cpp
++++ b/src/dpp/events/channel_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_pins_update.cpp b/src/dpp/events/channel_pins_update.cpp
+index 3a4244b..cc2f908 100644
+--- a/src/dpp/events/channel_pins_update.cpp
++++ b/src/dpp/events/channel_pins_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_update.cpp b/src/dpp/events/channel_update.cpp
+index 7e05d8f..fde836a 100644
+--- a/src/dpp/events/channel_update.cpp
++++ b/src/dpp/events/channel_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_add.cpp b/src/dpp/events/guild_ban_add.cpp
+index 872b875..61dfb5b 100644
+--- a/src/dpp/events/guild_ban_add.cpp
++++ b/src/dpp/events/guild_ban_add.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_remove.cpp b/src/dpp/events/guild_ban_remove.cpp
+index e170fde..510a280 100644
+--- a/src/dpp/events/guild_ban_remove.cpp
++++ b/src/dpp/events/guild_ban_remove.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_create.cpp b/src/dpp/events/guild_create.cpp
+index 6f1e369..9de1c39 100644
+--- a/src/dpp/events/guild_create.cpp
++++ b/src/dpp/events/guild_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_delete.cpp b/src/dpp/events/guild_delete.cpp
+index 82f75d3..e39f4c8 100644
+--- a/src/dpp/events/guild_delete.cpp
++++ b/src/dpp/events/guild_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_emojis_update.cpp b/src/dpp/events/guild_emojis_update.cpp
+index 62588c0..ec4303d 100644
+--- a/src/dpp/events/guild_emojis_update.cpp
++++ b/src/dpp/events/guild_emojis_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/emoji.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_integrations_update.cpp b/src/dpp/events/guild_integrations_update.cpp
+index 58146ae..0d2036f 100644
+--- a/src/dpp/events/guild_integrations_update.cpp
++++ b/src/dpp/events/guild_integrations_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_join_request_delete.cpp b/src/dpp/events/guild_join_request_delete.cpp
+index 4b6da22..5642b4c 100644
+--- a/src/dpp/events/guild_join_request_delete.cpp
++++ b/src/dpp/events/guild_join_request_delete.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_add.cpp b/src/dpp/events/guild_member_add.cpp
+index 6c865bb..2b3b8e8 100644
+--- a/src/dpp/events/guild_member_add.cpp
++++ b/src/dpp/events/guild_member_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_remove.cpp b/src/dpp/events/guild_member_remove.cpp
+index fa23bed..46646b7 100644
+--- a/src/dpp/events/guild_member_remove.cpp
++++ b/src/dpp/events/guild_member_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_update.cpp b/src/dpp/events/guild_member_update.cpp
+index 6a9c3b7..689aac4 100644
+--- a/src/dpp/events/guild_member_update.cpp
++++ b/src/dpp/events/guild_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_members_chunk.cpp b/src/dpp/events/guild_members_chunk.cpp
+index 03e1eb3..0e68089 100644
+--- a/src/dpp/events/guild_members_chunk.cpp
++++ b/src/dpp/events/guild_members_chunk.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_create.cpp b/src/dpp/events/guild_role_create.cpp
+index b668bb5..ed8bc79 100644
+--- a/src/dpp/events/guild_role_create.cpp
++++ b/src/dpp/events/guild_role_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_delete.cpp b/src/dpp/events/guild_role_delete.cpp
+index 6c8cedc..336f11b 100644
+--- a/src/dpp/events/guild_role_delete.cpp
++++ b/src/dpp/events/guild_role_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_update.cpp b/src/dpp/events/guild_role_update.cpp
+index 29130c0..32e3146 100644
+--- a/src/dpp/events/guild_role_update.cpp
++++ b/src/dpp/events/guild_role_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_create.cpp b/src/dpp/events/guild_scheduled_event_create.cpp
+index 02b3ba9..e84c134 100644
+--- a/src/dpp/events/guild_scheduled_event_create.cpp
++++ b/src/dpp/events/guild_scheduled_event_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_delete.cpp b/src/dpp/events/guild_scheduled_event_delete.cpp
+index ea11ed9..a098a0f 100644
+--- a/src/dpp/events/guild_scheduled_event_delete.cpp
++++ b/src/dpp/events/guild_scheduled_event_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_update.cpp b/src/dpp/events/guild_scheduled_event_update.cpp
+index b43f02d..6fd2795 100644
+--- a/src/dpp/events/guild_scheduled_event_update.cpp
++++ b/src/dpp/events/guild_scheduled_event_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_add.cpp b/src/dpp/events/guild_scheduled_event_user_add.cpp
+index 38e07b6..c549c39 100644
+--- a/src/dpp/events/guild_scheduled_event_user_add.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_add.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_remove.cpp b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+index 4d6e8a0..08be1e9 100644
+--- a/src/dpp/events/guild_scheduled_event_user_remove.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_stickers_update.cpp b/src/dpp/events/guild_stickers_update.cpp
+index 7f00c23..583d936 100644
+--- a/src/dpp/events/guild_stickers_update.cpp
++++ b/src/dpp/events/guild_stickers_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_update.cpp b/src/dpp/events/guild_update.cpp
+index d80b40b..e116688 100644
+--- a/src/dpp/events/guild_update.cpp
++++ b/src/dpp/events/guild_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_create.cpp b/src/dpp/events/integration_create.cpp
+index f72193c..112320b 100644
+--- a/src/dpp/events/integration_create.cpp
++++ b/src/dpp/events/integration_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_delete.cpp b/src/dpp/events/integration_delete.cpp
+index 0438076..e0b2202 100644
+--- a/src/dpp/events/integration_delete.cpp
++++ b/src/dpp/events/integration_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_update.cpp b/src/dpp/events/integration_update.cpp
+index 8175fab..38b3eda 100644
+--- a/src/dpp/events/integration_update.cpp
++++ b/src/dpp/events/integration_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/interaction_create.cpp b/src/dpp/events/interaction_create.cpp
+index a7bf466..a8aa25b 100644
+--- a/src/dpp/events/interaction_create.cpp
++++ b/src/dpp/events/interaction_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/appcommand.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_create.cpp b/src/dpp/events/invite_create.cpp
+index 377ba3f..7d03d06 100644
+--- a/src/dpp/events/invite_create.cpp
++++ b/src/dpp/events/invite_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_delete.cpp b/src/dpp/events/invite_delete.cpp
+index 5f2f084..c9d81bb 100644
+--- a/src/dpp/events/invite_delete.cpp
++++ b/src/dpp/events/invite_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/logger.cpp b/src/dpp/events/logger.cpp
+index aefc82f..ee9d202 100644
+--- a/src/dpp/events/logger.cpp
++++ b/src/dpp/events/logger.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_create.cpp b/src/dpp/events/message_create.cpp
+index be56ef8..80481e8 100644
+--- a/src/dpp/events/message_create.cpp
++++ b/src/dpp/events/message_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete.cpp b/src/dpp/events/message_delete.cpp
+index d7ba0ea..98e7c2c 100644
+--- a/src/dpp/events/message_delete.cpp
++++ b/src/dpp/events/message_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete_bulk.cpp b/src/dpp/events/message_delete_bulk.cpp
+index a158bf1..cbffcf2 100644
+--- a/src/dpp/events/message_delete_bulk.cpp
++++ b/src/dpp/events/message_delete_bulk.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_add.cpp b/src/dpp/events/message_reaction_add.cpp
+index fac7237..5e61959 100644
+--- a/src/dpp/events/message_reaction_add.cpp
++++ b/src/dpp/events/message_reaction_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove.cpp b/src/dpp/events/message_reaction_remove.cpp
+index 1036757..1f602b1 100644
+--- a/src/dpp/events/message_reaction_remove.cpp
++++ b/src/dpp/events/message_reaction_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_all.cpp b/src/dpp/events/message_reaction_remove_all.cpp
+index 7a63660..a564afb 100644
+--- a/src/dpp/events/message_reaction_remove_all.cpp
++++ b/src/dpp/events/message_reaction_remove_all.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_emoji.cpp b/src/dpp/events/message_reaction_remove_emoji.cpp
+index c820bbe..93a3f9c 100644
+--- a/src/dpp/events/message_reaction_remove_emoji.cpp
++++ b/src/dpp/events/message_reaction_remove_emoji.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_update.cpp b/src/dpp/events/message_update.cpp
+index 3259d88..90b6418 100644
+--- a/src/dpp/events/message_update.cpp
++++ b/src/dpp/events/message_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/presence.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/presence_update.cpp b/src/dpp/events/presence_update.cpp
+index af16087..7718019 100644
+--- a/src/dpp/events/presence_update.cpp
++++ b/src/dpp/events/presence_update.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/ready.cpp b/src/dpp/events/ready.cpp
+index 1434794..b6dd917 100644
+--- a/src/dpp/events/ready.cpp
++++ b/src/dpp/events/ready.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/events/resumed.cpp b/src/dpp/events/resumed.cpp
+index e28c8d8..98e174e 100644
+--- a/src/dpp/events/resumed.cpp
++++ b/src/dpp/events/resumed.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_create.cpp b/src/dpp/events/stage_instance_create.cpp
+index bb191df..a53b3bc 100644
+--- a/src/dpp/events/stage_instance_create.cpp
++++ b/src/dpp/events/stage_instance_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_delete.cpp b/src/dpp/events/stage_instance_delete.cpp
+index 639d259..d5bb97c 100644
+--- a/src/dpp/events/stage_instance_delete.cpp
++++ b/src/dpp/events/stage_instance_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_update.cpp b/src/dpp/events/stage_instance_update.cpp
+index 8422ffb..5349aab 100644
+--- a/src/dpp/events/stage_instance_update.cpp
++++ b/src/dpp/events/stage_instance_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_create.cpp b/src/dpp/events/thread_create.cpp
+index 896999a..680bc92 100644
+--- a/src/dpp/events/thread_create.cpp
++++ b/src/dpp/events/thread_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_delete.cpp b/src/dpp/events/thread_delete.cpp
+index 3969469..d195dac 100644
+--- a/src/dpp/events/thread_delete.cpp
++++ b/src/dpp/events/thread_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_list_sync.cpp b/src/dpp/events/thread_list_sync.cpp
+index ce518f5..19eee46 100644
+--- a/src/dpp/events/thread_list_sync.cpp
++++ b/src/dpp/events/thread_list_sync.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_member_update.cpp b/src/dpp/events/thread_member_update.cpp
+index 00a5949..5868e8d 100644
+--- a/src/dpp/events/thread_member_update.cpp
++++ b/src/dpp/events/thread_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_members_update.cpp b/src/dpp/events/thread_members_update.cpp
+index c744029..ea702a2 100644
+--- a/src/dpp/events/thread_members_update.cpp
++++ b/src/dpp/events/thread_members_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_update.cpp b/src/dpp/events/thread_update.cpp
+index 6be9cb6..b97e271 100644
+--- a/src/dpp/events/thread_update.cpp
++++ b/src/dpp/events/thread_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/typing_start.cpp b/src/dpp/events/typing_start.cpp
+index fc8667b..189129a 100644
+--- a/src/dpp/events/typing_start.cpp
++++ b/src/dpp/events/typing_start.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/user_update.cpp b/src/dpp/events/user_update.cpp
+index 3236c27..63fde16 100644
+--- a/src/dpp/events/user_update.cpp
++++ b/src/dpp/events/user_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/user.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_server_update.cpp b/src/dpp/events/voice_server_update.cpp
+index a70c831..fd5d984 100644
+--- a/src/dpp/events/voice_server_update.cpp
++++ b/src/dpp/events/voice_server_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_state_update.cpp b/src/dpp/events/voice_state_update.cpp
+index 4b316d4..79895e0 100644
+--- a/src/dpp/events/voice_state_update.cpp
++++ b/src/dpp/events/voice_state_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/webhooks_update.cpp b/src/dpp/events/webhooks_update.cpp
+index e94e585..d4c49d0 100644
+--- a/src/dpp/events/webhooks_update.cpp
++++ b/src/dpp/events/webhooks_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/webhook.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/format.cpp b/src/dpp/format.cpp
+index f95ab5d..2c6a1f2 100644
+--- a/src/dpp/format.cpp
++++ b/src/dpp/format.cpp
+@@ -5,7 +5,7 @@
+ //
+ // For the license information refer to format.h.
+ 
+-#include <dpp/fmt/format-inl.h>
++#include <fmt/format-inl.h>
+ 
+ FMT_BEGIN_NAMESPACE
+ namespace detail {
+diff --git a/src/dpp/guild.cpp b/src/dpp/guild.cpp
+index 1d47e7f..da26b04 100644
+--- a/src/dpp/guild.cpp
++++ b/src/dpp/guild.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/integration.cpp b/src/dpp/integration.cpp
+index 0d7ffba..2057271 100644
+--- a/src/dpp/integration.cpp
++++ b/src/dpp/integration.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/integration.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/cache.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/invite.cpp b/src/dpp/invite.cpp
+index ec02903..9a39fee 100644
+--- a/src/dpp/invite.cpp
++++ b/src/dpp/invite.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/invite.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/message.cpp b/src/dpp/message.cpp
+index 284fd0d..252807c 100644
+--- a/src/dpp/message.cpp
++++ b/src/dpp/message.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/exception.h>
+diff --git a/src/dpp/os.cpp b/src/dpp/os.cpp
+index 9a126ca..f76e086 100644
+--- a/src/dpp/os.cpp
++++ b/src/dpp/os.cpp
+@@ -10,7 +10,7 @@
+ #  define _CRT_SECURE_NO_WARNINGS
+ #endif
+ 
+-#include <dpp/fmt/os.h>
++#include <fmt/os.h>
+ 
+ #include <climits>
+ 
+diff --git a/src/dpp/permissions.cpp b/src/dpp/permissions.cpp
+index 5985e6e..e7adab6 100644
+--- a/src/dpp/permissions.cpp
++++ b/src/dpp/permissions.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/presence.cpp b/src/dpp/presence.cpp
+index b432044..ab8b5f4 100644
+--- a/src/dpp/presence.cpp
++++ b/src/dpp/presence.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/utility.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/prune.cpp b/src/dpp/prune.cpp
+index 1d7cd49..50b0315 100644
+--- a/src/dpp/prune.cpp
++++ b/src/dpp/prune.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/prune.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/role.cpp b/src/dpp/role.cpp
+index 618e16d..3a8182b 100644
+--- a/src/dpp/role.cpp
++++ b/src/dpp/role.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/permissions.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/scheduled_event.cpp b/src/dpp/scheduled_event.cpp
+index e049889..3113260 100644
+--- a/src/dpp/scheduled_event.cpp
++++ b/src/dpp/scheduled_event.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/exception.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/slashcommand.cpp b/src/dpp/slashcommand.cpp
+index 9ae3024..2872dac 100644
+--- a/src/dpp/slashcommand.cpp
++++ b/src/dpp/slashcommand.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/stringops.h>
+ #include <dpp/cache.h>
+ #include <iostream>
+diff --git a/src/dpp/stage_instance.cpp b/src/dpp/stage_instance.cpp
+index 2b10760..34e514d 100644
+--- a/src/dpp/stage_instance.cpp
++++ b/src/dpp/stage_instance.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/stage_instance.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/user.cpp b/src/dpp/user.cpp
+index e8e4dcd..5107c0f 100644
+--- a/src/dpp/user.cpp
++++ b/src/dpp/user.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/user.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/utility.cpp b/src/dpp/utility.cpp
+index 57c9874..80a6b82 100644
+--- a/src/dpp/utility.cpp
++++ b/src/dpp/utility.cpp
+@@ -33,7 +33,7 @@
+ #include <fstream>
+ #include <streambuf>
+ #include <array>
+-#include <dpp/fmt/format.h>
++#include <fmt/format.h>
+ #include <dpp/cluster.h>
+ #include <dpp/dispatcher.h>
+ 
+diff --git a/src/dpp/voiceregion.cpp b/src/dpp/voiceregion.cpp
+index 0e13179..895f659 100644
+--- a/src/dpp/voiceregion.cpp
++++ b/src/dpp/voiceregion.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voiceregion.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/voicestate.cpp b/src/dpp/voicestate.cpp
+index e1dd521..a68865f 100644
+--- a/src/dpp/voicestate.cpp
++++ b/src/dpp/voicestate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voicestate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/webhook.cpp b/src/dpp/webhook.cpp
+index a5e5e53..ad73796 100644
+--- a/src/dpp/webhook.cpp
++++ b/src/dpp/webhook.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/webhook.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/test.h b/src/test.h
+index 0b714f9..421ccad 100644
+--- a/src/test.h
++++ b/src/test.h
+@@ -24,7 +24,7 @@ _Pragma("warning( disable : 4251 )"); // 4251 warns when we export classes or st
+ _Pragma("warning( disable : 5105 )"); // 4251 warns when we export classes or structures with stl member variables
+ #endif
+ #include <dpp/dpp.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <iomanip>
+ 
+ #ifdef _WIN32
diff --git a/srcpkgs/libdpp/files/fix-installed-cmakefiles b/srcpkgs/libdpp/files/fix-installed-cmakefiles
new file mode 100644
index 000000000000..359cd2fd0bd3
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-installed-cmakefiles
@@ -0,0 +1,86 @@
+diff -ruN /usr/lib/cmake/dpp/dpp-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-noconfig.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake	2022-06-23 23:34:17.663735274 +0800
+@@ -8,12 +8,12 @@
+ # Import target "dpp::dpp" for configuration ""
+ set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+ set_target_properties(dpp::dpp PROPERTIES
+-  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.10"
++  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.10"
+   )
+ 
+ list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.10" )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake	2022-06-23 23:34:17.670735274 +0800
+@@ -6,14 +6,14 @@
+ set(CMAKE_IMPORT_FILE_VERSION 1)
+ 
+ # Import target "dpp" for configuration ""
+-set_property(TARGET dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+-set_target_properties(dpp PROPERTIES
++set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
++set_target_properties(dpp::dpp PROPERTIES
+   IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.10"
+   )
+ 
+-list(APPEND _IMPORT_CHECK_TARGETS dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10" )
++list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets.cmake /usr/lib/cmake/dpp_patch/dpp-targets.cmake
+--- /usr/lib/cmake/dpp/dpp-targets.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets.cmake	2022-06-23 23:34:17.668735274 +0800
+@@ -47,7 +47,7 @@
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+ get_filename_component(_realOrig "/usr/lib64" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
++if(1)
+   set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+@@ -61,7 +61,7 @@
+ add_library(dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
+diff -ruN /usr/lib/cmake/dpp/dpp.cmake /usr/lib/cmake/dpp_patch/dpp.cmake
+--- /usr/lib/cmake/dpp/dpp.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp.cmake	2022-06-23 23:34:17.667735274 +0800
+@@ -46,9 +46,9 @@
+ # Use original install prefix when loaded through a
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+-get_filename_component(_realOrig "/usr/lib64/dpp-10.0" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
+-  set(_IMPORT_PREFIX "/usr/lib64/dpp-10.0")
++get_filename_component(_realOrig "/usr/lib64" REALPATH)
++if(1)
++  set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+ unset(_realCurr)
+@@ -62,7 +62,7 @@
+ add_library(dpp::dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp::dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..37bde9d9e9d2
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,40 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+hostmakedepends="pkg-config git"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	git apply ${FILESDIR}/fix-headers-and-cmakefiles
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -r include/dpp/fmt
+	rm -r include/dpp/nlohmann
+}
+
+post_install() {
+	rm -r "${DESTDIR}/usr/lib/dpp-${version%.*}"
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmove usr/include
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		vcopy ${FILESDIR}/fix-installed-cmakefiles usr/lib/cmake
+		patch -d/ -i ${PKGDESTDIR}/usr/lib/cmake/fix-installed-cmakefiles -p0
+		mv ${PKGDESTDIR}/usr/lib/cmake/dpp_patch ${PKGDESTDIR}/usr/lib/cmake/dpp
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (45 preceding siblings ...)
  2022-07-03  5:22 ` [PR PATCH] [Updated] " JuniorSuperTux
@ 2022-07-03  5:22 ` JuniorSuperTux
  2022-07-03  6:08 ` JuniorSuperTux
                   ` (2 subsequent siblings)
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-07-03  5:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 58510 bytes --]

From d4b305ddd69f354c816304b1fe741bdbb4afe9c4 Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel                          |    1 +
 .../libdpp/files/fix-headers-and-cmakefiles   | 1612 +++++++++++++++++
 srcpkgs/libdpp/files/fix-installed-cmakefiles |   86 +
 srcpkgs/libdpp/template                       |   40 +
 4 files changed, 1739 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/files/fix-headers-and-cmakefiles
 create mode 100644 srcpkgs/libdpp/files/fix-installed-cmakefiles
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/files/fix-headers-and-cmakefiles b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
new file mode 100644
index 000000000000..bc6575bf8593
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
@@ -0,0 +1,1612 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index bbcc4b3..524a3ca 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -43,7 +43,7 @@ math(EXPR DPP_VERSION_PATCH ${CMAKE_MATCH_3})
+ 
+ string(CONCAT DPP_VERSION ${DPP_VERSION_MAJOR}.${DPP_VERSION_MINOR}.${DPP_VERSION_PATCH})
+ 
+-project(libdpp VERSION ${DPP_VERSION} LANGUAGES CXX)
++project(dpp VERSION ${DPP_VERSION} LANGUAGES CXX)
+ 
+ check_cxx_symbol_exists(prctl "sys/prctl.h" HAVE_PRCTL)
+ check_cxx_symbol_exists(pthread_setname_np "pthread.h" HAVE_PTHREAD_SETNAME_NP)
+@@ -240,8 +240,8 @@ foreach (fullmodname ${subdirlist})
+ 	target_precompile_headers(
+ 		${modname}
+ 		PRIVATE
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json.hpp"
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json_fwd.hpp"
++		<nlohmann/json.hpp>
++		<nlohmann/json_fwd.hpp>
+ 	)
+ 
+ 	if (WIN32 AND NOT MINGW)
+@@ -325,14 +325,16 @@ if(NOT WIN32)
+ 	# Installation
+ 
+ 	include(GNUInstallDirs)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ 	install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -DRUN_LDCONFIG=${RUN_LDCONFIG} -DLDCONFIG_EXECUTABLE=${LDCONFIG_EXECUTABLE} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/PostInstall.cmake)")
+ 
+ 	configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dpp.pc.in" "${CMAKE_BINARY_DIR}/dpp.pc" @ONLY)
+ 	install(FILES "${CMAKE_BINARY_DIR}/dpp.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
+ elseif(MINGW)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
+ endif()
+ 
+diff --git a/cmake/CPackSetup.cmake b/cmake/CPackSetup.cmake
+index a6bcf59..73abe7e 100644
+--- a/cmake/CPackSetup.cmake
++++ b/cmake/CPackSetup.cmake
+@@ -24,7 +24,7 @@ write_basic_package_version_file(${DPP_VERSION_FILE}
+ install(DIRECTORY include/ DESTINATION ${DPP_INSTALL_INCLUDE_DIR})
+ 
+ ## Include the file which allows `find_package(libdpp)` to function.
+-install(FILES cmake/libdpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
++install(FILES cmake/dpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
+ 
+ ## Export the targets to allow other projects to easily include this project
+ install(EXPORT ${DPP_EXPORT_NAME} DESTINATION ${DPP_INSTALL_LIBRARY_DIR} NAMESPACE dpp::)
+diff --git a/cmake/libdpp-config.cmake b/cmake/libdpp-config.cmake
+index d6dd5bd..d0009ac 100644
+--- a/cmake/libdpp-config.cmake
++++ b/cmake/libdpp-config.cmake
+@@ -1,10 +1,10 @@
+-# libdpp-config.cmake - package configuration file
++# dpp-config.cmake - package configuration file
+ 
+ ## Get current filesystem path (will a prefixed by where this package was installed)
+ get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+ 
+-## Use this directory to include libdpp which has the rest of the project targets
+-include(${SELF_DIR}/libdpp.cmake)
++## Use this directory to include dpp which has the rest of the project targets
++include(${SELF_DIR}/dpp.cmake)
+ 
+ ## Set OpenSSl directory for macos. It is also in our main CMakeLists.txt, but this file is independent from that.
+ if(APPLE)
+@@ -16,6 +16,6 @@ if(APPLE)
+ 	find_package(OpenSSL REQUIRED)
+ endif()
+ 
+-# Search for libdpp dependencies
++# Search for dpp dependencies
+ include(CMakeFindDependencyMacro)
+ find_dependency(OpenSSL REQUIRED)
+diff --git a/include/dpp/appcommand.h b/include/dpp/appcommand.h
+index 424823c..36f8f82 100644
+--- a/include/dpp/appcommand.h
++++ b/include/dpp/appcommand.h
+@@ -27,7 +27,7 @@
+ #include <dpp/role.h>
+ #include <dpp/user.h>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/application.h b/include/dpp/application.h
+index 7e9d80d..19fad83 100644
+--- a/include/dpp/application.h
++++ b/include/dpp/application.h
+@@ -26,7 +26,7 @@
+ #include <dpp/utility.h>
+ #include <dpp/user.h>
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/auditlog.h b/include/dpp/auditlog.h
+index 3469630..ca878da 100644
+--- a/include/dpp/auditlog.h
++++ b/include/dpp/auditlog.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <optional>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/ban.h b/include/dpp/ban.h
+index 6bbcdd2..8ad88d6 100644
+--- a/include/dpp/ban.h
++++ b/include/dpp/ban.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+ 
+diff --git a/include/dpp/channel.h b/include/dpp/channel.h
+index 7335b28..b2fcc33 100644
+--- a/include/dpp/channel.h
++++ b/include/dpp/channel.h
+@@ -25,7 +25,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+ #include <dpp/voicestate.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+diff --git a/include/dpp/cluster.h b/include/dpp/cluster.h
+index 7ad5ade..40e1709 100644
+--- a/include/dpp/cluster.h
++++ b/include/dpp/cluster.h
+@@ -29,7 +29,7 @@
+ #include <dpp/dispatcher.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/timer.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/discordclient.h>
+ #include <dpp/voiceregion.h>
+ #include <dpp/dtemplate.h>
+diff --git a/include/dpp/commandhandler.h b/include/dpp/commandhandler.h
+index 29da473..0b15417 100644
+--- a/include/dpp/commandhandler.h
++++ b/include/dpp/commandhandler.h
+@@ -29,7 +29,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/utility.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <vector>
+ #include <functional>
+diff --git a/include/dpp/discordclient.h b/include/dpp/discordclient.h
+index 1eb875a..10f010e 100644
+--- a/include/dpp/discordclient.h
++++ b/include/dpp/discordclient.h
+@@ -24,7 +24,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/discordevents.h b/include/dpp/discordevents.h
+index c6474a4..1a70b18 100644
+--- a/include/dpp/discordevents.h
++++ b/include/dpp/discordevents.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ 
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/discordvoiceclient.h b/include/dpp/discordvoiceclient.h
+index 9cd9354..13b74e5 100644
+--- a/include/dpp/discordvoiceclient.h
++++ b/include/dpp/discordvoiceclient.h
+@@ -32,7 +32,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/dtemplate.h b/include/dpp/dtemplate.h
+index 948b25d..5fbe17e 100644
+--- a/include/dpp/dtemplate.h
++++ b/include/dpp/dtemplate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/emoji.h b/include/dpp/emoji.h
+index a73e58a..9ab9c1e 100644
+--- a/include/dpp/emoji.h
++++ b/include/dpp/emoji.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/etf.h b/include/dpp/etf.h
+index 1c98e6a..1acd63b 100644
+--- a/include/dpp/etf.h
++++ b/include/dpp/etf.h
+@@ -34,7 +34,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/event.h b/include/dpp/event.h
+index cd945f5..388a0d6 100644
+--- a/include/dpp/event.h
++++ b/include/dpp/event.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ #define event_decl(x,wstype) /** @brief Internal event handler for wstype websocket events. Called for each websocket message of this type. @internal */ \
+ 	class x : public event { public: virtual void handle(dpp::discord_client* client, nlohmann::json &j, const std::string &raw); };
+diff --git a/include/dpp/fmt-minimal.h b/include/dpp/fmt-minimal.h
+index a5e7a5d..88f1e38 100644
+--- a/include/dpp/fmt-minimal.h
++++ b/include/dpp/fmt-minimal.h
+@@ -1,3 +1,3 @@
+ #pragma once
+-#include <dpp/fmt/core.h>
++#include <fmt/core.h>
+ #define FMT_STRING(s) s
+diff --git a/include/dpp/integration.h b/include/dpp/integration.h
+index 420c8d8..6815c3c 100644
+--- a/include/dpp/integration.h
++++ b/include/dpp/integration.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/invite.h b/include/dpp/invite.h
+index eae62a9..e8977a8 100644
+--- a/include/dpp/invite.h
++++ b/include/dpp/invite.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/stage_instance.h>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/json_interface.h b/include/dpp/json_interface.h
+index 302642d..e2e467a 100644
+--- a/include/dpp/json_interface.h
++++ b/include/dpp/json_interface.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 	/**
+diff --git a/include/dpp/message.h b/include/dpp/message.h
+index 1c80553..08de4c0 100644
+--- a/include/dpp/message.h
++++ b/include/dpp/message.h
+@@ -27,7 +27,7 @@
+ #include <dpp/guild.h>
+ #include <optional>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/presence.h b/include/dpp/presence.h
+index e018f92..bcf322b 100644
+--- a/include/dpp/presence.h
++++ b/include/dpp/presence.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/prune.h b/include/dpp/prune.h
+index dd1b19b..7528a37 100644
+--- a/include/dpp/prune.h
++++ b/include/dpp/prune.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/restrequest.h b/include/dpp/restrequest.h
+index 2d1915c..20a4b3d 100644
+--- a/include/dpp/restrequest.h
++++ b/include/dpp/restrequest.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/role.h b/include/dpp/role.h
+index 00d380a..389ca43 100644
+--- a/include/dpp/role.h
++++ b/include/dpp/role.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/guild.h>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/scheduled_event.h b/include/dpp/scheduled_event.h
+index 2cddd63..39be997 100644
+--- a/include/dpp/scheduled_event.h
++++ b/include/dpp/scheduled_event.h
+@@ -24,7 +24,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/user.h>
+ #include <dpp/guild.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/stage_instance.h b/include/dpp/stage_instance.h
+index 90a134f..0ab205e 100644
+--- a/include/dpp/stage_instance.h
++++ b/include/dpp/stage_instance.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/user.h b/include/dpp/user.h
+index a723941..a77fccf 100644
+--- a/include/dpp/user.h
++++ b/include/dpp/user.h
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #pragma once
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+diff --git a/include/dpp/voiceregion.h b/include/dpp/voiceregion.h
+index a1def0a..a0a88e5 100644
+--- a/include/dpp/voiceregion.h
++++ b/include/dpp/voiceregion.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <unordered_map>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/voicestate.h b/include/dpp/voicestate.h
+index 64f1517..c14461e 100644
+--- a/include/dpp/voicestate.h
++++ b/include/dpp/voicestate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/webhook.h b/include/dpp/webhook.h
+index 98fa176..95c09dc 100644
+--- a/include/dpp/webhook.h
++++ b/include/dpp/webhook.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/src/dpp/application.cpp b/src/dpp/application.cpp
+index b5eea41..5ffc9fc 100644
+--- a/src/dpp/application.cpp
++++ b/src/dpp/application.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/auditlog.cpp b/src/dpp/auditlog.cpp
+index 72ef078..2a45729 100644
+--- a/src/dpp/auditlog.cpp
++++ b/src/dpp/auditlog.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/auditlog.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/ban.cpp b/src/dpp/ban.cpp
+index b959d75..860e5a4 100644
+--- a/src/dpp/ban.cpp
++++ b/src/dpp/ban.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/ban.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/channel.cpp b/src/dpp/channel.cpp
+index 405372c..6495b10 100644
+--- a/src/dpp/channel.cpp
++++ b/src/dpp/channel.cpp
+@@ -25,7 +25,7 @@
+ #include <dpp/role.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/cluster.cpp b/src/dpp/cluster.cpp
+index aa1aad8..32b0b7a 100644
+--- a/src/dpp/cluster.cpp
++++ b/src/dpp/cluster.cpp
+@@ -29,7 +29,7 @@
+ #include <dpp/sync.h>
+ #include <chrono>
+ #include <iostream>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <utility>
+ #include <dpp/fmt-minimal.h>
+ #include <algorithm>
+diff --git a/src/dpp/cluster/confirmation.cpp b/src/dpp/cluster/confirmation.cpp
+index c7e579b..fcccb4c 100644
+--- a/src/dpp/cluster/confirmation.cpp
++++ b/src/dpp/cluster/confirmation.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/cluster/timer.cpp b/src/dpp/cluster/timer.cpp
+index a4b6d83..7159574 100644
+--- a/src/dpp/cluster/timer.cpp
++++ b/src/dpp/cluster/timer.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/timer.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/discordclient.cpp b/src/dpp/discordclient.cpp
+index 9444fcb..8a498b8 100644
+--- a/src/dpp/discordclient.cpp
++++ b/src/dpp/discordclient.cpp
+@@ -26,7 +26,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+ #include <thread>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ #include <dpp/etf.h>
+ #include <zlib.h>
+diff --git a/src/dpp/discordevents.cpp b/src/dpp/discordevents.cpp
+index 92bd66d..73b2b2f 100644
+--- a/src/dpp/discordevents.cpp
++++ b/src/dpp/discordevents.cpp
+@@ -30,7 +30,7 @@
+ #include <dpp/event.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <time.h>
+ #include <iomanip>
+ #include <sstream>
+diff --git a/src/dpp/discordvoiceclient.cpp b/src/dpp/discordvoiceclient.cpp
+index ee3ac8e..8576e3c 100644
+--- a/src/dpp/discordvoiceclient.cpp
++++ b/src/dpp/discordvoiceclient.cpp
+@@ -43,7 +43,7 @@
+ #include <dpp/discordvoiceclient.h>
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ #ifdef HAVE_VOICE
+diff --git a/src/dpp/dtemplate.cpp b/src/dpp/dtemplate.cpp
+index 31f6bbf..e3c67ea 100644
+--- a/src/dpp/dtemplate.cpp
++++ b/src/dpp/dtemplate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/dtemplate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/emoji.cpp b/src/dpp/emoji.cpp
+index c0b3613..4f00958 100644
+--- a/src/dpp/emoji.cpp
++++ b/src/dpp/emoji.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/emoji.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/etf.cpp b/src/dpp/etf.cpp
+index 6395d9b..3b6159e 100644
+--- a/src/dpp/etf.cpp
++++ b/src/dpp/etf.cpp
+@@ -34,7 +34,7 @@
+ #include <dpp/sysdep.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <zlib.h>
+ #include <iostream>
+ 
+diff --git a/src/dpp/events/channel_create.cpp b/src/dpp/events/channel_create.cpp
+index 07b0c2c..1a0b812 100644
+--- a/src/dpp/events/channel_create.cpp
++++ b/src/dpp/events/channel_create.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_delete.cpp b/src/dpp/events/channel_delete.cpp
+index 09d23a4..5e48f96 100644
+--- a/src/dpp/events/channel_delete.cpp
++++ b/src/dpp/events/channel_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_pins_update.cpp b/src/dpp/events/channel_pins_update.cpp
+index 3a4244b..cc2f908 100644
+--- a/src/dpp/events/channel_pins_update.cpp
++++ b/src/dpp/events/channel_pins_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_update.cpp b/src/dpp/events/channel_update.cpp
+index 7e05d8f..fde836a 100644
+--- a/src/dpp/events/channel_update.cpp
++++ b/src/dpp/events/channel_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_add.cpp b/src/dpp/events/guild_ban_add.cpp
+index 872b875..61dfb5b 100644
+--- a/src/dpp/events/guild_ban_add.cpp
++++ b/src/dpp/events/guild_ban_add.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_remove.cpp b/src/dpp/events/guild_ban_remove.cpp
+index e170fde..510a280 100644
+--- a/src/dpp/events/guild_ban_remove.cpp
++++ b/src/dpp/events/guild_ban_remove.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_create.cpp b/src/dpp/events/guild_create.cpp
+index 6f1e369..9de1c39 100644
+--- a/src/dpp/events/guild_create.cpp
++++ b/src/dpp/events/guild_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_delete.cpp b/src/dpp/events/guild_delete.cpp
+index 82f75d3..e39f4c8 100644
+--- a/src/dpp/events/guild_delete.cpp
++++ b/src/dpp/events/guild_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_emojis_update.cpp b/src/dpp/events/guild_emojis_update.cpp
+index 62588c0..ec4303d 100644
+--- a/src/dpp/events/guild_emojis_update.cpp
++++ b/src/dpp/events/guild_emojis_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/emoji.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_integrations_update.cpp b/src/dpp/events/guild_integrations_update.cpp
+index 58146ae..0d2036f 100644
+--- a/src/dpp/events/guild_integrations_update.cpp
++++ b/src/dpp/events/guild_integrations_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_join_request_delete.cpp b/src/dpp/events/guild_join_request_delete.cpp
+index 4b6da22..5642b4c 100644
+--- a/src/dpp/events/guild_join_request_delete.cpp
++++ b/src/dpp/events/guild_join_request_delete.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_add.cpp b/src/dpp/events/guild_member_add.cpp
+index 6c865bb..2b3b8e8 100644
+--- a/src/dpp/events/guild_member_add.cpp
++++ b/src/dpp/events/guild_member_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_remove.cpp b/src/dpp/events/guild_member_remove.cpp
+index fa23bed..46646b7 100644
+--- a/src/dpp/events/guild_member_remove.cpp
++++ b/src/dpp/events/guild_member_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_update.cpp b/src/dpp/events/guild_member_update.cpp
+index 6a9c3b7..689aac4 100644
+--- a/src/dpp/events/guild_member_update.cpp
++++ b/src/dpp/events/guild_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_members_chunk.cpp b/src/dpp/events/guild_members_chunk.cpp
+index 03e1eb3..0e68089 100644
+--- a/src/dpp/events/guild_members_chunk.cpp
++++ b/src/dpp/events/guild_members_chunk.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_create.cpp b/src/dpp/events/guild_role_create.cpp
+index b668bb5..ed8bc79 100644
+--- a/src/dpp/events/guild_role_create.cpp
++++ b/src/dpp/events/guild_role_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_delete.cpp b/src/dpp/events/guild_role_delete.cpp
+index 6c8cedc..336f11b 100644
+--- a/src/dpp/events/guild_role_delete.cpp
++++ b/src/dpp/events/guild_role_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_update.cpp b/src/dpp/events/guild_role_update.cpp
+index 29130c0..32e3146 100644
+--- a/src/dpp/events/guild_role_update.cpp
++++ b/src/dpp/events/guild_role_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_create.cpp b/src/dpp/events/guild_scheduled_event_create.cpp
+index 02b3ba9..e84c134 100644
+--- a/src/dpp/events/guild_scheduled_event_create.cpp
++++ b/src/dpp/events/guild_scheduled_event_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_delete.cpp b/src/dpp/events/guild_scheduled_event_delete.cpp
+index ea11ed9..a098a0f 100644
+--- a/src/dpp/events/guild_scheduled_event_delete.cpp
++++ b/src/dpp/events/guild_scheduled_event_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_update.cpp b/src/dpp/events/guild_scheduled_event_update.cpp
+index b43f02d..6fd2795 100644
+--- a/src/dpp/events/guild_scheduled_event_update.cpp
++++ b/src/dpp/events/guild_scheduled_event_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_add.cpp b/src/dpp/events/guild_scheduled_event_user_add.cpp
+index 38e07b6..c549c39 100644
+--- a/src/dpp/events/guild_scheduled_event_user_add.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_add.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_remove.cpp b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+index 4d6e8a0..08be1e9 100644
+--- a/src/dpp/events/guild_scheduled_event_user_remove.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_stickers_update.cpp b/src/dpp/events/guild_stickers_update.cpp
+index 7f00c23..583d936 100644
+--- a/src/dpp/events/guild_stickers_update.cpp
++++ b/src/dpp/events/guild_stickers_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_update.cpp b/src/dpp/events/guild_update.cpp
+index d80b40b..e116688 100644
+--- a/src/dpp/events/guild_update.cpp
++++ b/src/dpp/events/guild_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_create.cpp b/src/dpp/events/integration_create.cpp
+index f72193c..112320b 100644
+--- a/src/dpp/events/integration_create.cpp
++++ b/src/dpp/events/integration_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_delete.cpp b/src/dpp/events/integration_delete.cpp
+index 0438076..e0b2202 100644
+--- a/src/dpp/events/integration_delete.cpp
++++ b/src/dpp/events/integration_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_update.cpp b/src/dpp/events/integration_update.cpp
+index 8175fab..38b3eda 100644
+--- a/src/dpp/events/integration_update.cpp
++++ b/src/dpp/events/integration_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/interaction_create.cpp b/src/dpp/events/interaction_create.cpp
+index a7bf466..a8aa25b 100644
+--- a/src/dpp/events/interaction_create.cpp
++++ b/src/dpp/events/interaction_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/appcommand.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_create.cpp b/src/dpp/events/invite_create.cpp
+index 377ba3f..7d03d06 100644
+--- a/src/dpp/events/invite_create.cpp
++++ b/src/dpp/events/invite_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_delete.cpp b/src/dpp/events/invite_delete.cpp
+index 5f2f084..c9d81bb 100644
+--- a/src/dpp/events/invite_delete.cpp
++++ b/src/dpp/events/invite_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/logger.cpp b/src/dpp/events/logger.cpp
+index aefc82f..ee9d202 100644
+--- a/src/dpp/events/logger.cpp
++++ b/src/dpp/events/logger.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_create.cpp b/src/dpp/events/message_create.cpp
+index be56ef8..80481e8 100644
+--- a/src/dpp/events/message_create.cpp
++++ b/src/dpp/events/message_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete.cpp b/src/dpp/events/message_delete.cpp
+index d7ba0ea..98e7c2c 100644
+--- a/src/dpp/events/message_delete.cpp
++++ b/src/dpp/events/message_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete_bulk.cpp b/src/dpp/events/message_delete_bulk.cpp
+index a158bf1..cbffcf2 100644
+--- a/src/dpp/events/message_delete_bulk.cpp
++++ b/src/dpp/events/message_delete_bulk.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_add.cpp b/src/dpp/events/message_reaction_add.cpp
+index fac7237..5e61959 100644
+--- a/src/dpp/events/message_reaction_add.cpp
++++ b/src/dpp/events/message_reaction_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove.cpp b/src/dpp/events/message_reaction_remove.cpp
+index 1036757..1f602b1 100644
+--- a/src/dpp/events/message_reaction_remove.cpp
++++ b/src/dpp/events/message_reaction_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_all.cpp b/src/dpp/events/message_reaction_remove_all.cpp
+index 7a63660..a564afb 100644
+--- a/src/dpp/events/message_reaction_remove_all.cpp
++++ b/src/dpp/events/message_reaction_remove_all.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_emoji.cpp b/src/dpp/events/message_reaction_remove_emoji.cpp
+index c820bbe..93a3f9c 100644
+--- a/src/dpp/events/message_reaction_remove_emoji.cpp
++++ b/src/dpp/events/message_reaction_remove_emoji.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_update.cpp b/src/dpp/events/message_update.cpp
+index 3259d88..90b6418 100644
+--- a/src/dpp/events/message_update.cpp
++++ b/src/dpp/events/message_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/presence.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/presence_update.cpp b/src/dpp/events/presence_update.cpp
+index af16087..7718019 100644
+--- a/src/dpp/events/presence_update.cpp
++++ b/src/dpp/events/presence_update.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/ready.cpp b/src/dpp/events/ready.cpp
+index 1434794..b6dd917 100644
+--- a/src/dpp/events/ready.cpp
++++ b/src/dpp/events/ready.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/events/resumed.cpp b/src/dpp/events/resumed.cpp
+index e28c8d8..98e174e 100644
+--- a/src/dpp/events/resumed.cpp
++++ b/src/dpp/events/resumed.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_create.cpp b/src/dpp/events/stage_instance_create.cpp
+index bb191df..a53b3bc 100644
+--- a/src/dpp/events/stage_instance_create.cpp
++++ b/src/dpp/events/stage_instance_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_delete.cpp b/src/dpp/events/stage_instance_delete.cpp
+index 639d259..d5bb97c 100644
+--- a/src/dpp/events/stage_instance_delete.cpp
++++ b/src/dpp/events/stage_instance_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_update.cpp b/src/dpp/events/stage_instance_update.cpp
+index 8422ffb..5349aab 100644
+--- a/src/dpp/events/stage_instance_update.cpp
++++ b/src/dpp/events/stage_instance_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_create.cpp b/src/dpp/events/thread_create.cpp
+index 896999a..680bc92 100644
+--- a/src/dpp/events/thread_create.cpp
++++ b/src/dpp/events/thread_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_delete.cpp b/src/dpp/events/thread_delete.cpp
+index 3969469..d195dac 100644
+--- a/src/dpp/events/thread_delete.cpp
++++ b/src/dpp/events/thread_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_list_sync.cpp b/src/dpp/events/thread_list_sync.cpp
+index ce518f5..19eee46 100644
+--- a/src/dpp/events/thread_list_sync.cpp
++++ b/src/dpp/events/thread_list_sync.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_member_update.cpp b/src/dpp/events/thread_member_update.cpp
+index 00a5949..5868e8d 100644
+--- a/src/dpp/events/thread_member_update.cpp
++++ b/src/dpp/events/thread_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_members_update.cpp b/src/dpp/events/thread_members_update.cpp
+index c744029..ea702a2 100644
+--- a/src/dpp/events/thread_members_update.cpp
++++ b/src/dpp/events/thread_members_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_update.cpp b/src/dpp/events/thread_update.cpp
+index 6be9cb6..b97e271 100644
+--- a/src/dpp/events/thread_update.cpp
++++ b/src/dpp/events/thread_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/typing_start.cpp b/src/dpp/events/typing_start.cpp
+index fc8667b..189129a 100644
+--- a/src/dpp/events/typing_start.cpp
++++ b/src/dpp/events/typing_start.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/user_update.cpp b/src/dpp/events/user_update.cpp
+index 3236c27..63fde16 100644
+--- a/src/dpp/events/user_update.cpp
++++ b/src/dpp/events/user_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/user.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_server_update.cpp b/src/dpp/events/voice_server_update.cpp
+index a70c831..fd5d984 100644
+--- a/src/dpp/events/voice_server_update.cpp
++++ b/src/dpp/events/voice_server_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_state_update.cpp b/src/dpp/events/voice_state_update.cpp
+index 4b316d4..79895e0 100644
+--- a/src/dpp/events/voice_state_update.cpp
++++ b/src/dpp/events/voice_state_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/webhooks_update.cpp b/src/dpp/events/webhooks_update.cpp
+index e94e585..d4c49d0 100644
+--- a/src/dpp/events/webhooks_update.cpp
++++ b/src/dpp/events/webhooks_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/webhook.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/format.cpp b/src/dpp/format.cpp
+index f95ab5d..2c6a1f2 100644
+--- a/src/dpp/format.cpp
++++ b/src/dpp/format.cpp
+@@ -5,7 +5,7 @@
+ //
+ // For the license information refer to format.h.
+ 
+-#include <dpp/fmt/format-inl.h>
++#include <fmt/format-inl.h>
+ 
+ FMT_BEGIN_NAMESPACE
+ namespace detail {
+diff --git a/src/dpp/guild.cpp b/src/dpp/guild.cpp
+index 1d47e7f..da26b04 100644
+--- a/src/dpp/guild.cpp
++++ b/src/dpp/guild.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/integration.cpp b/src/dpp/integration.cpp
+index 0d7ffba..2057271 100644
+--- a/src/dpp/integration.cpp
++++ b/src/dpp/integration.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/integration.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/cache.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/invite.cpp b/src/dpp/invite.cpp
+index ec02903..9a39fee 100644
+--- a/src/dpp/invite.cpp
++++ b/src/dpp/invite.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/invite.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/message.cpp b/src/dpp/message.cpp
+index 284fd0d..252807c 100644
+--- a/src/dpp/message.cpp
++++ b/src/dpp/message.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/exception.h>
+diff --git a/src/dpp/os.cpp b/src/dpp/os.cpp
+index 9a126ca..f76e086 100644
+--- a/src/dpp/os.cpp
++++ b/src/dpp/os.cpp
+@@ -10,7 +10,7 @@
+ #  define _CRT_SECURE_NO_WARNINGS
+ #endif
+ 
+-#include <dpp/fmt/os.h>
++#include <fmt/os.h>
+ 
+ #include <climits>
+ 
+diff --git a/src/dpp/permissions.cpp b/src/dpp/permissions.cpp
+index 5985e6e..e7adab6 100644
+--- a/src/dpp/permissions.cpp
++++ b/src/dpp/permissions.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/presence.cpp b/src/dpp/presence.cpp
+index b432044..ab8b5f4 100644
+--- a/src/dpp/presence.cpp
++++ b/src/dpp/presence.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/utility.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/prune.cpp b/src/dpp/prune.cpp
+index 1d7cd49..50b0315 100644
+--- a/src/dpp/prune.cpp
++++ b/src/dpp/prune.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/prune.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/role.cpp b/src/dpp/role.cpp
+index 618e16d..3a8182b 100644
+--- a/src/dpp/role.cpp
++++ b/src/dpp/role.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/permissions.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/scheduled_event.cpp b/src/dpp/scheduled_event.cpp
+index e049889..3113260 100644
+--- a/src/dpp/scheduled_event.cpp
++++ b/src/dpp/scheduled_event.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/exception.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/slashcommand.cpp b/src/dpp/slashcommand.cpp
+index 9ae3024..2872dac 100644
+--- a/src/dpp/slashcommand.cpp
++++ b/src/dpp/slashcommand.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/stringops.h>
+ #include <dpp/cache.h>
+ #include <iostream>
+diff --git a/src/dpp/stage_instance.cpp b/src/dpp/stage_instance.cpp
+index 2b10760..34e514d 100644
+--- a/src/dpp/stage_instance.cpp
++++ b/src/dpp/stage_instance.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/stage_instance.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/user.cpp b/src/dpp/user.cpp
+index e8e4dcd..5107c0f 100644
+--- a/src/dpp/user.cpp
++++ b/src/dpp/user.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/user.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/utility.cpp b/src/dpp/utility.cpp
+index 57c9874..80a6b82 100644
+--- a/src/dpp/utility.cpp
++++ b/src/dpp/utility.cpp
+@@ -33,7 +33,7 @@
+ #include <fstream>
+ #include <streambuf>
+ #include <array>
+-#include <dpp/fmt/format.h>
++#include <fmt/format.h>
+ #include <dpp/cluster.h>
+ #include <dpp/dispatcher.h>
+ 
+diff --git a/src/dpp/voiceregion.cpp b/src/dpp/voiceregion.cpp
+index 0e13179..895f659 100644
+--- a/src/dpp/voiceregion.cpp
++++ b/src/dpp/voiceregion.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voiceregion.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/voicestate.cpp b/src/dpp/voicestate.cpp
+index e1dd521..a68865f 100644
+--- a/src/dpp/voicestate.cpp
++++ b/src/dpp/voicestate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voicestate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/webhook.cpp b/src/dpp/webhook.cpp
+index a5e5e53..ad73796 100644
+--- a/src/dpp/webhook.cpp
++++ b/src/dpp/webhook.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/webhook.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/test.h b/src/test.h
+index 0b714f9..421ccad 100644
+--- a/src/test.h
++++ b/src/test.h
+@@ -24,7 +24,7 @@ _Pragma("warning( disable : 4251 )"); // 4251 warns when we export classes or st
+ _Pragma("warning( disable : 5105 )"); // 4251 warns when we export classes or structures with stl member variables
+ #endif
+ #include <dpp/dpp.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <iomanip>
+ 
+ #ifdef _WIN32
diff --git a/srcpkgs/libdpp/files/fix-installed-cmakefiles b/srcpkgs/libdpp/files/fix-installed-cmakefiles
new file mode 100644
index 000000000000..359cd2fd0bd3
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-installed-cmakefiles
@@ -0,0 +1,86 @@
+diff -ruN /usr/lib/cmake/dpp/dpp-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-noconfig.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake	2022-06-23 23:34:17.663735274 +0800
+@@ -8,12 +8,12 @@
+ # Import target "dpp::dpp" for configuration ""
+ set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+ set_target_properties(dpp::dpp PROPERTIES
+-  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.10"
++  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.10"
+   )
+ 
+ list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.10" )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake	2022-06-23 23:34:17.670735274 +0800
+@@ -6,14 +6,14 @@
+ set(CMAKE_IMPORT_FILE_VERSION 1)
+ 
+ # Import target "dpp" for configuration ""
+-set_property(TARGET dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+-set_target_properties(dpp PROPERTIES
++set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
++set_target_properties(dpp::dpp PROPERTIES
+   IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.10"
+   )
+ 
+-list(APPEND _IMPORT_CHECK_TARGETS dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10" )
++list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets.cmake /usr/lib/cmake/dpp_patch/dpp-targets.cmake
+--- /usr/lib/cmake/dpp/dpp-targets.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets.cmake	2022-06-23 23:34:17.668735274 +0800
+@@ -47,7 +47,7 @@
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+ get_filename_component(_realOrig "/usr/lib64" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
++if(1)
+   set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+@@ -61,7 +61,7 @@
+ add_library(dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
+diff -ruN /usr/lib/cmake/dpp/dpp.cmake /usr/lib/cmake/dpp_patch/dpp.cmake
+--- /usr/lib/cmake/dpp/dpp.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp.cmake	2022-06-23 23:34:17.667735274 +0800
+@@ -46,9 +46,9 @@
+ # Use original install prefix when loaded through a
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+-get_filename_component(_realOrig "/usr/lib64/dpp-10.0" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
+-  set(_IMPORT_PREFIX "/usr/lib64/dpp-10.0")
++get_filename_component(_realOrig "/usr/lib64" REALPATH)
++if(1)
++  set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+ unset(_realCurr)
+@@ -62,7 +62,7 @@
+ add_library(dpp::dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp::dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..37bde9d9e9d2
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,40 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+hostmakedepends="pkg-config git"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	git apply ${FILESDIR}/fix-headers-and-cmakefiles
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -r include/dpp/fmt
+	rm -r include/dpp/nlohmann
+}
+
+post_install() {
+	rm -r "${DESTDIR}/usr/lib/dpp-${version%.*}"
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmove usr/include
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		vcopy ${FILESDIR}/fix-installed-cmakefiles usr/lib/cmake
+		patch -d/ -i ${PKGDESTDIR}/usr/lib/cmake/fix-installed-cmakefiles -p0
+		mv ${PKGDESTDIR}/usr/lib/cmake/dpp_patch ${PKGDESTDIR}/usr/lib/cmake/dpp
+	}
+}

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR PATCH] [Updated] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (46 preceding siblings ...)
  2022-07-03  5:22 ` JuniorSuperTux
@ 2022-07-03  6:08 ` JuniorSuperTux
  2022-07-05 12:29 ` JuniorSuperTux
  2022-07-05 14:11 ` [PR REVIEW] " paper42
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-07-03  6:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

There is an updated pull request by JuniorSuperTux against master on the void-packages repository

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdpp-10.0.10-37554.patch --]
[-- Type: text/x-diff, Size: 59831 bytes --]

From d4b305ddd69f354c816304b1fe741bdbb4afe9c4 Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH 1/2] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel                          |    1 +
 .../libdpp/files/fix-headers-and-cmakefiles   | 1612 +++++++++++++++++
 srcpkgs/libdpp/files/fix-installed-cmakefiles |   86 +
 srcpkgs/libdpp/template                       |   40 +
 4 files changed, 1739 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/files/fix-headers-and-cmakefiles
 create mode 100644 srcpkgs/libdpp/files/fix-installed-cmakefiles
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/files/fix-headers-and-cmakefiles b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
new file mode 100644
index 000000000000..bc6575bf8593
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-headers-and-cmakefiles
@@ -0,0 +1,1612 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index bbcc4b3..524a3ca 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -43,7 +43,7 @@ math(EXPR DPP_VERSION_PATCH ${CMAKE_MATCH_3})
+ 
+ string(CONCAT DPP_VERSION ${DPP_VERSION_MAJOR}.${DPP_VERSION_MINOR}.${DPP_VERSION_PATCH})
+ 
+-project(libdpp VERSION ${DPP_VERSION} LANGUAGES CXX)
++project(dpp VERSION ${DPP_VERSION} LANGUAGES CXX)
+ 
+ check_cxx_symbol_exists(prctl "sys/prctl.h" HAVE_PRCTL)
+ check_cxx_symbol_exists(pthread_setname_np "pthread.h" HAVE_PTHREAD_SETNAME_NP)
+@@ -240,8 +240,8 @@ foreach (fullmodname ${subdirlist})
+ 	target_precompile_headers(
+ 		${modname}
+ 		PRIVATE
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json.hpp"
+-		"${PROJECT_SOURCE_DIR}/include/dpp/nlohmann/json_fwd.hpp"
++		<nlohmann/json.hpp>
++		<nlohmann/json_fwd.hpp>
+ 	)
+ 
+ 	if (WIN32 AND NOT MINGW)
+@@ -325,14 +325,16 @@ if(NOT WIN32)
+ 	# Installation
+ 
+ 	include(GNUInstallDirs)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ 	install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -DRUN_LDCONFIG=${RUN_LDCONFIG} -DLDCONFIG_EXECUTABLE=${LDCONFIG_EXECUTABLE} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/PostInstall.cmake)")
+ 
+ 	configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dpp.pc.in" "${CMAKE_BINARY_DIR}/dpp.pc" @ONLY)
+ 	install(FILES "${CMAKE_BINARY_DIR}/dpp.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
+ elseif(MINGW)
+-	install(TARGETS dpp LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++	install(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++install(EXPORT dpp-targets DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
+ 	install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
+ endif()
+ 
+diff --git a/cmake/CPackSetup.cmake b/cmake/CPackSetup.cmake
+index a6bcf59..73abe7e 100644
+--- a/cmake/CPackSetup.cmake
++++ b/cmake/CPackSetup.cmake
+@@ -24,7 +24,7 @@ write_basic_package_version_file(${DPP_VERSION_FILE}
+ install(DIRECTORY include/ DESTINATION ${DPP_INSTALL_INCLUDE_DIR})
+ 
+ ## Include the file which allows `find_package(libdpp)` to function.
+-install(FILES cmake/libdpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
++install(FILES cmake/dpp-config.cmake ${DPP_VERSION_FILE} DESTINATION ${DPP_INSTALL_LIBRARY_DIR})
+ 
+ ## Export the targets to allow other projects to easily include this project
+ install(EXPORT ${DPP_EXPORT_NAME} DESTINATION ${DPP_INSTALL_LIBRARY_DIR} NAMESPACE dpp::)
+diff --git a/cmake/libdpp-config.cmake b/cmake/libdpp-config.cmake
+index d6dd5bd..d0009ac 100644
+--- a/cmake/libdpp-config.cmake
++++ b/cmake/libdpp-config.cmake
+@@ -1,10 +1,10 @@
+-# libdpp-config.cmake - package configuration file
++# dpp-config.cmake - package configuration file
+ 
+ ## Get current filesystem path (will a prefixed by where this package was installed)
+ get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+ 
+-## Use this directory to include libdpp which has the rest of the project targets
+-include(${SELF_DIR}/libdpp.cmake)
++## Use this directory to include dpp which has the rest of the project targets
++include(${SELF_DIR}/dpp.cmake)
+ 
+ ## Set OpenSSl directory for macos. It is also in our main CMakeLists.txt, but this file is independent from that.
+ if(APPLE)
+@@ -16,6 +16,6 @@ if(APPLE)
+ 	find_package(OpenSSL REQUIRED)
+ endif()
+ 
+-# Search for libdpp dependencies
++# Search for dpp dependencies
+ include(CMakeFindDependencyMacro)
+ find_dependency(OpenSSL REQUIRED)
+diff --git a/include/dpp/appcommand.h b/include/dpp/appcommand.h
+index 424823c..36f8f82 100644
+--- a/include/dpp/appcommand.h
++++ b/include/dpp/appcommand.h
+@@ -27,7 +27,7 @@
+ #include <dpp/role.h>
+ #include <dpp/user.h>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/application.h b/include/dpp/application.h
+index 7e9d80d..19fad83 100644
+--- a/include/dpp/application.h
++++ b/include/dpp/application.h
+@@ -26,7 +26,7 @@
+ #include <dpp/utility.h>
+ #include <dpp/user.h>
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/auditlog.h b/include/dpp/auditlog.h
+index 3469630..ca878da 100644
+--- a/include/dpp/auditlog.h
++++ b/include/dpp/auditlog.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <optional>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/ban.h b/include/dpp/ban.h
+index 6bbcdd2..8ad88d6 100644
+--- a/include/dpp/ban.h
++++ b/include/dpp/ban.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+ 
+diff --git a/include/dpp/channel.h b/include/dpp/channel.h
+index 7335b28..b2fcc33 100644
+--- a/include/dpp/channel.h
++++ b/include/dpp/channel.h
+@@ -25,7 +25,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+ #include <dpp/voicestate.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/json_interface.h>
+ #include <unordered_map>
+diff --git a/include/dpp/cluster.h b/include/dpp/cluster.h
+index 7ad5ade..40e1709 100644
+--- a/include/dpp/cluster.h
++++ b/include/dpp/cluster.h
+@@ -29,7 +29,7 @@
+ #include <dpp/dispatcher.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/timer.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/discordclient.h>
+ #include <dpp/voiceregion.h>
+ #include <dpp/dtemplate.h>
+diff --git a/include/dpp/commandhandler.h b/include/dpp/commandhandler.h
+index 29da473..0b15417 100644
+--- a/include/dpp/commandhandler.h
++++ b/include/dpp/commandhandler.h
+@@ -29,7 +29,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/utility.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <vector>
+ #include <functional>
+diff --git a/include/dpp/discordclient.h b/include/dpp/discordclient.h
+index 1eb875a..10f010e 100644
+--- a/include/dpp/discordclient.h
++++ b/include/dpp/discordclient.h
+@@ -24,7 +24,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/discordevents.h b/include/dpp/discordevents.h
+index c6474a4..1a70b18 100644
+--- a/include/dpp/discordevents.h
++++ b/include/dpp/discordevents.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ 
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/discordvoiceclient.h b/include/dpp/discordvoiceclient.h
+index 9cd9354..13b74e5 100644
+--- a/include/dpp/discordvoiceclient.h
++++ b/include/dpp/discordvoiceclient.h
+@@ -32,7 +32,7 @@
+ #include <string>
+ #include <map>
+ #include <vector>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/wsclient.h>
+ #include <dpp/dispatcher.h>
+ #include <dpp/cluster.h>
+diff --git a/include/dpp/dtemplate.h b/include/dpp/dtemplate.h
+index 948b25d..5fbe17e 100644
+--- a/include/dpp/dtemplate.h
++++ b/include/dpp/dtemplate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/emoji.h b/include/dpp/emoji.h
+index a73e58a..9ab9c1e 100644
+--- a/include/dpp/emoji.h
++++ b/include/dpp/emoji.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/etf.h b/include/dpp/etf.h
+index 1c98e6a..1acd63b 100644
+--- a/include/dpp/etf.h
++++ b/include/dpp/etf.h
+@@ -34,7 +34,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/event.h b/include/dpp/event.h
+index cd945f5..388a0d6 100644
+--- a/include/dpp/event.h
++++ b/include/dpp/event.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ #define event_decl(x,wstype) /** @brief Internal event handler for wstype websocket events. Called for each websocket message of this type. @internal */ \
+ 	class x : public event { public: virtual void handle(dpp::discord_client* client, nlohmann::json &j, const std::string &raw); };
+diff --git a/include/dpp/fmt-minimal.h b/include/dpp/fmt-minimal.h
+index a5e7a5d..88f1e38 100644
+--- a/include/dpp/fmt-minimal.h
++++ b/include/dpp/fmt-minimal.h
+@@ -1,3 +1,3 @@
+ #pragma once
+-#include <dpp/fmt/core.h>
++#include <fmt/core.h>
+ #define FMT_STRING(s) s
+diff --git a/include/dpp/integration.h b/include/dpp/integration.h
+index 420c8d8..6815c3c 100644
+--- a/include/dpp/integration.h
++++ b/include/dpp/integration.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/invite.h b/include/dpp/invite.h
+index eae62a9..e8977a8 100644
+--- a/include/dpp/invite.h
++++ b/include/dpp/invite.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/stage_instance.h>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/json_interface.h b/include/dpp/json_interface.h
+index 302642d..e2e467a 100644
+--- a/include/dpp/json_interface.h
++++ b/include/dpp/json_interface.h
+@@ -22,7 +22,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 	/**
+diff --git a/include/dpp/message.h b/include/dpp/message.h
+index 1c80553..08de4c0 100644
+--- a/include/dpp/message.h
++++ b/include/dpp/message.h
+@@ -27,7 +27,7 @@
+ #include <dpp/guild.h>
+ #include <optional>
+ #include <variant>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/presence.h b/include/dpp/presence.h
+index e018f92..bcf322b 100644
+--- a/include/dpp/presence.h
++++ b/include/dpp/presence.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/prune.h b/include/dpp/prune.h
+index dd1b19b..7528a37 100644
+--- a/include/dpp/prune.h
++++ b/include/dpp/prune.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/restrequest.h b/include/dpp/restrequest.h
+index 2d1915c..20a4b3d 100644
+--- a/include/dpp/restrequest.h
++++ b/include/dpp/restrequest.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/include/dpp/role.h b/include/dpp/role.h
+index 00d380a..389ca43 100644
+--- a/include/dpp/role.h
++++ b/include/dpp/role.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/permissions.h>
+ #include <dpp/guild.h>
+ #include <dpp/json_interface.h>
+diff --git a/include/dpp/scheduled_event.h b/include/dpp/scheduled_event.h
+index 2cddd63..39be997 100644
+--- a/include/dpp/scheduled_event.h
++++ b/include/dpp/scheduled_event.h
+@@ -24,7 +24,7 @@
+ #include <dpp/managed.h>
+ #include <dpp/user.h>
+ #include <dpp/guild.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/stage_instance.h b/include/dpp/stage_instance.h
+index 90a134f..0ab205e 100644
+--- a/include/dpp/stage_instance.h
++++ b/include/dpp/stage_instance.h
+@@ -22,7 +22,7 @@
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/user.h b/include/dpp/user.h
+index a723941..a77fccf 100644
+--- a/include/dpp/user.h
++++ b/include/dpp/user.h
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #pragma once
+ #include <dpp/export.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+ #include <dpp/utility.h>
+diff --git a/include/dpp/voiceregion.h b/include/dpp/voiceregion.h
+index a1def0a..a0a88e5 100644
+--- a/include/dpp/voiceregion.h
++++ b/include/dpp/voiceregion.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <unordered_map>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <dpp/json_interface.h>
+ 
+ namespace dpp {
+diff --git a/include/dpp/voicestate.h b/include/dpp/voicestate.h
+index 64f1517..c14461e 100644
+--- a/include/dpp/voicestate.h
++++ b/include/dpp/voicestate.h
+@@ -21,7 +21,7 @@
+ #pragma once
+ #include <dpp/export.h>
+ #include <dpp/snowflake.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/include/dpp/webhook.h b/include/dpp/webhook.h
+index 98fa176..95c09dc 100644
+--- a/include/dpp/webhook.h
++++ b/include/dpp/webhook.h
+@@ -23,7 +23,7 @@
+ #include <dpp/snowflake.h>
+ #include <dpp/misc-enum.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json_fwd.hpp>
++#include <nlohmann/json_fwd.hpp>
+ #include <unordered_map>
+ #include <dpp/json_interface.h>
+ 
+diff --git a/src/dpp/application.cpp b/src/dpp/application.cpp
+index b5eea41..5ffc9fc 100644
+--- a/src/dpp/application.cpp
++++ b/src/dpp/application.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/snowflake.h>
+ #include <dpp/managed.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/auditlog.cpp b/src/dpp/auditlog.cpp
+index 72ef078..2a45729 100644
+--- a/src/dpp/auditlog.cpp
++++ b/src/dpp/auditlog.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/auditlog.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/ban.cpp b/src/dpp/ban.cpp
+index b959d75..860e5a4 100644
+--- a/src/dpp/ban.cpp
++++ b/src/dpp/ban.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/ban.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/channel.cpp b/src/dpp/channel.cpp
+index 405372c..6495b10 100644
+--- a/src/dpp/channel.cpp
++++ b/src/dpp/channel.cpp
+@@ -25,7 +25,7 @@
+ #include <dpp/role.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/cluster.cpp b/src/dpp/cluster.cpp
+index aa1aad8..32b0b7a 100644
+--- a/src/dpp/cluster.cpp
++++ b/src/dpp/cluster.cpp
+@@ -29,7 +29,7 @@
+ #include <dpp/sync.h>
+ #include <chrono>
+ #include <iostream>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <utility>
+ #include <dpp/fmt-minimal.h>
+ #include <algorithm>
+diff --git a/src/dpp/cluster/confirmation.cpp b/src/dpp/cluster/confirmation.cpp
+index c7e579b..fcccb4c 100644
+--- a/src/dpp/cluster/confirmation.cpp
++++ b/src/dpp/cluster/confirmation.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/cluster/timer.cpp b/src/dpp/cluster/timer.cpp
+index a4b6d83..7159574 100644
+--- a/src/dpp/cluster/timer.cpp
++++ b/src/dpp/cluster/timer.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/timer.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/discordclient.cpp b/src/dpp/discordclient.cpp
+index 9444fcb..8a498b8 100644
+--- a/src/dpp/discordclient.cpp
++++ b/src/dpp/discordclient.cpp
+@@ -26,7 +26,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+ #include <thread>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ #include <dpp/etf.h>
+ #include <zlib.h>
+diff --git a/src/dpp/discordevents.cpp b/src/dpp/discordevents.cpp
+index 92bd66d..73b2b2f 100644
+--- a/src/dpp/discordevents.cpp
++++ b/src/dpp/discordevents.cpp
+@@ -30,7 +30,7 @@
+ #include <dpp/event.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <time.h>
+ #include <iomanip>
+ #include <sstream>
+diff --git a/src/dpp/discordvoiceclient.cpp b/src/dpp/discordvoiceclient.cpp
+index ee3ac8e..8576e3c 100644
+--- a/src/dpp/discordvoiceclient.cpp
++++ b/src/dpp/discordvoiceclient.cpp
+@@ -43,7 +43,7 @@
+ #include <dpp/discordvoiceclient.h>
+ #include <dpp/cache.h>
+ #include <dpp/cluster.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ #ifdef HAVE_VOICE
+diff --git a/src/dpp/dtemplate.cpp b/src/dpp/dtemplate.cpp
+index 31f6bbf..e3c67ea 100644
+--- a/src/dpp/dtemplate.cpp
++++ b/src/dpp/dtemplate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/dtemplate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/emoji.cpp b/src/dpp/emoji.cpp
+index c0b3613..4f00958 100644
+--- a/src/dpp/emoji.cpp
++++ b/src/dpp/emoji.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/emoji.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/dpp/etf.cpp b/src/dpp/etf.cpp
+index 6395d9b..3b6159e 100644
+--- a/src/dpp/etf.cpp
++++ b/src/dpp/etf.cpp
+@@ -34,7 +34,7 @@
+ #include <dpp/sysdep.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <zlib.h>
+ #include <iostream>
+ 
+diff --git a/src/dpp/events/channel_create.cpp b/src/dpp/events/channel_create.cpp
+index 07b0c2c..1a0b812 100644
+--- a/src/dpp/events/channel_create.cpp
++++ b/src/dpp/events/channel_create.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_delete.cpp b/src/dpp/events/channel_delete.cpp
+index 09d23a4..5e48f96 100644
+--- a/src/dpp/events/channel_delete.cpp
++++ b/src/dpp/events/channel_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_pins_update.cpp b/src/dpp/events/channel_pins_update.cpp
+index 3a4244b..cc2f908 100644
+--- a/src/dpp/events/channel_pins_update.cpp
++++ b/src/dpp/events/channel_pins_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/channel_update.cpp b/src/dpp/events/channel_update.cpp
+index 7e05d8f..fde836a 100644
+--- a/src/dpp/events/channel_update.cpp
++++ b/src/dpp/events/channel_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_add.cpp b/src/dpp/events/guild_ban_add.cpp
+index 872b875..61dfb5b 100644
+--- a/src/dpp/events/guild_ban_add.cpp
++++ b/src/dpp/events/guild_ban_add.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_ban_remove.cpp b/src/dpp/events/guild_ban_remove.cpp
+index e170fde..510a280 100644
+--- a/src/dpp/events/guild_ban_remove.cpp
++++ b/src/dpp/events/guild_ban_remove.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/ban.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_create.cpp b/src/dpp/events/guild_create.cpp
+index 6f1e369..9de1c39 100644
+--- a/src/dpp/events/guild_create.cpp
++++ b/src/dpp/events/guild_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_delete.cpp b/src/dpp/events/guild_delete.cpp
+index 82f75d3..e39f4c8 100644
+--- a/src/dpp/events/guild_delete.cpp
++++ b/src/dpp/events/guild_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_emojis_update.cpp b/src/dpp/events/guild_emojis_update.cpp
+index 62588c0..ec4303d 100644
+--- a/src/dpp/events/guild_emojis_update.cpp
++++ b/src/dpp/events/guild_emojis_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/emoji.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_integrations_update.cpp b/src/dpp/events/guild_integrations_update.cpp
+index 58146ae..0d2036f 100644
+--- a/src/dpp/events/guild_integrations_update.cpp
++++ b/src/dpp/events/guild_integrations_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_join_request_delete.cpp b/src/dpp/events/guild_join_request_delete.cpp
+index 4b6da22..5642b4c 100644
+--- a/src/dpp/events/guild_join_request_delete.cpp
++++ b/src/dpp/events/guild_join_request_delete.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_add.cpp b/src/dpp/events/guild_member_add.cpp
+index 6c865bb..2b3b8e8 100644
+--- a/src/dpp/events/guild_member_add.cpp
++++ b/src/dpp/events/guild_member_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_remove.cpp b/src/dpp/events/guild_member_remove.cpp
+index fa23bed..46646b7 100644
+--- a/src/dpp/events/guild_member_remove.cpp
++++ b/src/dpp/events/guild_member_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_member_update.cpp b/src/dpp/events/guild_member_update.cpp
+index 6a9c3b7..689aac4 100644
+--- a/src/dpp/events/guild_member_update.cpp
++++ b/src/dpp/events/guild_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_members_chunk.cpp b/src/dpp/events/guild_members_chunk.cpp
+index 03e1eb3..0e68089 100644
+--- a/src/dpp/events/guild_members_chunk.cpp
++++ b/src/dpp/events/guild_members_chunk.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_create.cpp b/src/dpp/events/guild_role_create.cpp
+index b668bb5..ed8bc79 100644
+--- a/src/dpp/events/guild_role_create.cpp
++++ b/src/dpp/events/guild_role_create.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_delete.cpp b/src/dpp/events/guild_role_delete.cpp
+index 6c8cedc..336f11b 100644
+--- a/src/dpp/events/guild_role_delete.cpp
++++ b/src/dpp/events/guild_role_delete.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_role_update.cpp b/src/dpp/events/guild_role_update.cpp
+index 29130c0..32e3146 100644
+--- a/src/dpp/events/guild_role_update.cpp
++++ b/src/dpp/events/guild_role_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/role.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_create.cpp b/src/dpp/events/guild_scheduled_event_create.cpp
+index 02b3ba9..e84c134 100644
+--- a/src/dpp/events/guild_scheduled_event_create.cpp
++++ b/src/dpp/events/guild_scheduled_event_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_delete.cpp b/src/dpp/events/guild_scheduled_event_delete.cpp
+index ea11ed9..a098a0f 100644
+--- a/src/dpp/events/guild_scheduled_event_delete.cpp
++++ b/src/dpp/events/guild_scheduled_event_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_update.cpp b/src/dpp/events/guild_scheduled_event_update.cpp
+index b43f02d..6fd2795 100644
+--- a/src/dpp/events/guild_scheduled_event_update.cpp
++++ b/src/dpp/events/guild_scheduled_event_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/scheduled_event.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_add.cpp b/src/dpp/events/guild_scheduled_event_user_add.cpp
+index 38e07b6..c549c39 100644
+--- a/src/dpp/events/guild_scheduled_event_user_add.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_add.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_scheduled_event_user_remove.cpp b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+index 4d6e8a0..08be1e9 100644
+--- a/src/dpp/events/guild_scheduled_event_user_remove.cpp
++++ b/src/dpp/events/guild_scheduled_event_user_remove.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_stickers_update.cpp b/src/dpp/events/guild_stickers_update.cpp
+index 7f00c23..583d936 100644
+--- a/src/dpp/events/guild_stickers_update.cpp
++++ b/src/dpp/events/guild_stickers_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/guild_update.cpp b/src/dpp/events/guild_update.cpp
+index d80b40b..e116688 100644
+--- a/src/dpp/events/guild_update.cpp
++++ b/src/dpp/events/guild_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/guild.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_create.cpp b/src/dpp/events/integration_create.cpp
+index f72193c..112320b 100644
+--- a/src/dpp/events/integration_create.cpp
++++ b/src/dpp/events/integration_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_delete.cpp b/src/dpp/events/integration_delete.cpp
+index 0438076..e0b2202 100644
+--- a/src/dpp/events/integration_delete.cpp
++++ b/src/dpp/events/integration_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/integration_update.cpp b/src/dpp/events/integration_update.cpp
+index 8175fab..38b3eda 100644
+--- a/src/dpp/events/integration_update.cpp
++++ b/src/dpp/events/integration_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/integration.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/interaction_create.cpp b/src/dpp/events/interaction_create.cpp
+index a7bf466..a8aa25b 100644
+--- a/src/dpp/events/interaction_create.cpp
++++ b/src/dpp/events/interaction_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/appcommand.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_create.cpp b/src/dpp/events/invite_create.cpp
+index 377ba3f..7d03d06 100644
+--- a/src/dpp/events/invite_create.cpp
++++ b/src/dpp/events/invite_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/invite_delete.cpp b/src/dpp/events/invite_delete.cpp
+index 5f2f084..c9d81bb 100644
+--- a/src/dpp/events/invite_delete.cpp
++++ b/src/dpp/events/invite_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/invite.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/logger.cpp b/src/dpp/events/logger.cpp
+index aefc82f..ee9d202 100644
+--- a/src/dpp/events/logger.cpp
++++ b/src/dpp/events/logger.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_create.cpp b/src/dpp/events/message_create.cpp
+index be56ef8..80481e8 100644
+--- a/src/dpp/events/message_create.cpp
++++ b/src/dpp/events/message_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete.cpp b/src/dpp/events/message_delete.cpp
+index d7ba0ea..98e7c2c 100644
+--- a/src/dpp/events/message_delete.cpp
++++ b/src/dpp/events/message_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_delete_bulk.cpp b/src/dpp/events/message_delete_bulk.cpp
+index a158bf1..cbffcf2 100644
+--- a/src/dpp/events/message_delete_bulk.cpp
++++ b/src/dpp/events/message_delete_bulk.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_add.cpp b/src/dpp/events/message_reaction_add.cpp
+index fac7237..5e61959 100644
+--- a/src/dpp/events/message_reaction_add.cpp
++++ b/src/dpp/events/message_reaction_add.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove.cpp b/src/dpp/events/message_reaction_remove.cpp
+index 1036757..1f602b1 100644
+--- a/src/dpp/events/message_reaction_remove.cpp
++++ b/src/dpp/events/message_reaction_remove.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_all.cpp b/src/dpp/events/message_reaction_remove_all.cpp
+index 7a63660..a564afb 100644
+--- a/src/dpp/events/message_reaction_remove_all.cpp
++++ b/src/dpp/events/message_reaction_remove_all.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_reaction_remove_emoji.cpp b/src/dpp/events/message_reaction_remove_emoji.cpp
+index c820bbe..93a3f9c 100644
+--- a/src/dpp/events/message_reaction_remove_emoji.cpp
++++ b/src/dpp/events/message_reaction_remove_emoji.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/message_update.cpp b/src/dpp/events/message_update.cpp
+index 3259d88..90b6418 100644
+--- a/src/dpp/events/message_update.cpp
++++ b/src/dpp/events/message_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/presence.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/presence_update.cpp b/src/dpp/events/presence_update.cpp
+index af16087..7718019 100644
+--- a/src/dpp/events/presence_update.cpp
++++ b/src/dpp/events/presence_update.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/ready.cpp b/src/dpp/events/ready.cpp
+index 1434794..b6dd917 100644
+--- a/src/dpp/events/ready.cpp
++++ b/src/dpp/events/ready.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/events/resumed.cpp b/src/dpp/events/resumed.cpp
+index e28c8d8..98e174e 100644
+--- a/src/dpp/events/resumed.cpp
++++ b/src/dpp/events/resumed.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_create.cpp b/src/dpp/events/stage_instance_create.cpp
+index bb191df..a53b3bc 100644
+--- a/src/dpp/events/stage_instance_create.cpp
++++ b/src/dpp/events/stage_instance_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/message.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_delete.cpp b/src/dpp/events/stage_instance_delete.cpp
+index 639d259..d5bb97c 100644
+--- a/src/dpp/events/stage_instance_delete.cpp
++++ b/src/dpp/events/stage_instance_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/stage_instance_update.cpp b/src/dpp/events/stage_instance_update.cpp
+index 8422ffb..5349aab 100644
+--- a/src/dpp/events/stage_instance_update.cpp
++++ b/src/dpp/events/stage_instance_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/stage_instance.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_create.cpp b/src/dpp/events/thread_create.cpp
+index 896999a..680bc92 100644
+--- a/src/dpp/events/thread_create.cpp
++++ b/src/dpp/events/thread_create.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_delete.cpp b/src/dpp/events/thread_delete.cpp
+index 3969469..d195dac 100644
+--- a/src/dpp/events/thread_delete.cpp
++++ b/src/dpp/events/thread_delete.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_list_sync.cpp b/src/dpp/events/thread_list_sync.cpp
+index ce518f5..19eee46 100644
+--- a/src/dpp/events/thread_list_sync.cpp
++++ b/src/dpp/events/thread_list_sync.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_member_update.cpp b/src/dpp/events/thread_member_update.cpp
+index 00a5949..5868e8d 100644
+--- a/src/dpp/events/thread_member_update.cpp
++++ b/src/dpp/events/thread_member_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_members_update.cpp b/src/dpp/events/thread_members_update.cpp
+index c744029..ea702a2 100644
+--- a/src/dpp/events/thread_members_update.cpp
++++ b/src/dpp/events/thread_members_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/thread_update.cpp b/src/dpp/events/thread_update.cpp
+index 6be9cb6..b97e271 100644
+--- a/src/dpp/events/thread_update.cpp
++++ b/src/dpp/events/thread_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/channel.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/typing_start.cpp b/src/dpp/events/typing_start.cpp
+index fc8667b..189129a 100644
+--- a/src/dpp/events/typing_start.cpp
++++ b/src/dpp/events/typing_start.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/cluster.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/user_update.cpp b/src/dpp/events/user_update.cpp
+index 3236c27..63fde16 100644
+--- a/src/dpp/events/user_update.cpp
++++ b/src/dpp/events/user_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/cache.h>
+ #include <dpp/user.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_server_update.cpp b/src/dpp/events/voice_server_update.cpp
+index a70c831..fd5d984 100644
+--- a/src/dpp/events/voice_server_update.cpp
++++ b/src/dpp/events/voice_server_update.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/voice_state_update.cpp b/src/dpp/events/voice_state_update.cpp
+index 4b316d4..79895e0 100644
+--- a/src/dpp/events/voice_state_update.cpp
++++ b/src/dpp/events/voice_state_update.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/voicestate.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/events/webhooks_update.cpp b/src/dpp/events/webhooks_update.cpp
+index e94e585..d4c49d0 100644
+--- a/src/dpp/events/webhooks_update.cpp
++++ b/src/dpp/events/webhooks_update.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/cluster.h>
+ #include <dpp/webhook.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/format.cpp b/src/dpp/format.cpp
+index f95ab5d..2c6a1f2 100644
+--- a/src/dpp/format.cpp
++++ b/src/dpp/format.cpp
+@@ -5,7 +5,7 @@
+ //
+ // For the license information refer to format.h.
+ 
+-#include <dpp/fmt/format-inl.h>
++#include <fmt/format-inl.h>
+ 
+ FMT_BEGIN_NAMESPACE
+ namespace detail {
+diff --git a/src/dpp/guild.cpp b/src/dpp/guild.cpp
+index 1d47e7f..da26b04 100644
+--- a/src/dpp/guild.cpp
++++ b/src/dpp/guild.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/guild.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/integration.cpp b/src/dpp/integration.cpp
+index 0d7ffba..2057271 100644
+--- a/src/dpp/integration.cpp
++++ b/src/dpp/integration.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/integration.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/cache.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/invite.cpp b/src/dpp/invite.cpp
+index ec02903..9a39fee 100644
+--- a/src/dpp/invite.cpp
++++ b/src/dpp/invite.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/invite.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/message.cpp b/src/dpp/message.cpp
+index 284fd0d..252807c 100644
+--- a/src/dpp/message.cpp
++++ b/src/dpp/message.cpp
+@@ -23,7 +23,7 @@
+ #include <dpp/channel.h>
+ #include <dpp/guild.h>
+ #include <dpp/cache.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+ #include <dpp/exception.h>
+diff --git a/src/dpp/os.cpp b/src/dpp/os.cpp
+index 9a126ca..f76e086 100644
+--- a/src/dpp/os.cpp
++++ b/src/dpp/os.cpp
+@@ -10,7 +10,7 @@
+ #  define _CRT_SECURE_NO_WARNINGS
+ #endif
+ 
+-#include <dpp/fmt/os.h>
++#include <fmt/os.h>
+ 
+ #include <climits>
+ 
+diff --git a/src/dpp/permissions.cpp b/src/dpp/permissions.cpp
+index 5985e6e..e7adab6 100644
+--- a/src/dpp/permissions.cpp
++++ b/src/dpp/permissions.cpp
+@@ -19,7 +19,7 @@
+  *
+  ************************************************************************************/
+ #include <dpp/permissions.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/presence.cpp b/src/dpp/presence.cpp
+index b432044..ab8b5f4 100644
+--- a/src/dpp/presence.cpp
++++ b/src/dpp/presence.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/utility.h>
+ #include <dpp/emoji.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/prune.cpp b/src/dpp/prune.cpp
+index 1d7cd49..50b0315 100644
+--- a/src/dpp/prune.cpp
++++ b/src/dpp/prune.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/prune.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/role.cpp b/src/dpp/role.cpp
+index 618e16d..3a8182b 100644
+--- a/src/dpp/role.cpp
++++ b/src/dpp/role.cpp
+@@ -24,7 +24,7 @@
+ #include <dpp/discordevents.h>
+ #include <dpp/permissions.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/scheduled_event.cpp b/src/dpp/scheduled_event.cpp
+index e049889..3113260 100644
+--- a/src/dpp/scheduled_event.cpp
++++ b/src/dpp/scheduled_event.cpp
+@@ -22,7 +22,7 @@
+ #include <dpp/exception.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/slashcommand.cpp b/src/dpp/slashcommand.cpp
+index 9ae3024..2872dac 100644
+--- a/src/dpp/slashcommand.cpp
++++ b/src/dpp/slashcommand.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/appcommand.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/exception.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/stringops.h>
+ #include <dpp/cache.h>
+ #include <iostream>
+diff --git a/src/dpp/stage_instance.cpp b/src/dpp/stage_instance.cpp
+index 2b10760..34e514d 100644
+--- a/src/dpp/stage_instance.cpp
++++ b/src/dpp/stage_instance.cpp
+@@ -21,7 +21,7 @@
+ #include <dpp/stage_instance.h>
+ #include <dpp/discordevents.h>
+ #include <dpp/stringops.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/user.cpp b/src/dpp/user.cpp
+index e8e4dcd..5107c0f 100644
+--- a/src/dpp/user.cpp
++++ b/src/dpp/user.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/user.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/fmt-minimal.h>
+ 
+ using json = nlohmann::json;
+diff --git a/src/dpp/utility.cpp b/src/dpp/utility.cpp
+index 57c9874..80a6b82 100644
+--- a/src/dpp/utility.cpp
++++ b/src/dpp/utility.cpp
+@@ -33,7 +33,7 @@
+ #include <fstream>
+ #include <streambuf>
+ #include <array>
+-#include <dpp/fmt/format.h>
++#include <fmt/format.h>
+ #include <dpp/cluster.h>
+ #include <dpp/dispatcher.h>
+ 
+diff --git a/src/dpp/voiceregion.cpp b/src/dpp/voiceregion.cpp
+index 0e13179..895f659 100644
+--- a/src/dpp/voiceregion.cpp
++++ b/src/dpp/voiceregion.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voiceregion.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ namespace dpp {
+ 
+diff --git a/src/dpp/voicestate.cpp b/src/dpp/voicestate.cpp
+index e1dd521..a68865f 100644
+--- a/src/dpp/voicestate.cpp
++++ b/src/dpp/voicestate.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/voicestate.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ 
+ using json = nlohmann::json;
+ 
+diff --git a/src/dpp/webhook.cpp b/src/dpp/webhook.cpp
+index a5e5e53..ad73796 100644
+--- a/src/dpp/webhook.cpp
++++ b/src/dpp/webhook.cpp
+@@ -20,7 +20,7 @@
+  ************************************************************************************/
+ #include <dpp/webhook.h>
+ #include <dpp/discordevents.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <dpp/exception.h>
+ 
+ namespace dpp {
+diff --git a/src/test.h b/src/test.h
+index 0b714f9..421ccad 100644
+--- a/src/test.h
++++ b/src/test.h
+@@ -24,7 +24,7 @@ _Pragma("warning( disable : 4251 )"); // 4251 warns when we export classes or st
+ _Pragma("warning( disable : 5105 )"); // 4251 warns when we export classes or structures with stl member variables
+ #endif
+ #include <dpp/dpp.h>
+-#include <dpp/nlohmann/json.hpp>
++#include <nlohmann/json.hpp>
+ #include <iomanip>
+ 
+ #ifdef _WIN32
diff --git a/srcpkgs/libdpp/files/fix-installed-cmakefiles b/srcpkgs/libdpp/files/fix-installed-cmakefiles
new file mode 100644
index 000000000000..359cd2fd0bd3
--- /dev/null
+++ b/srcpkgs/libdpp/files/fix-installed-cmakefiles
@@ -0,0 +1,86 @@
+diff -ruN /usr/lib/cmake/dpp/dpp-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-noconfig.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-noconfig.cmake	2022-06-23 23:34:17.663735274 +0800
+@@ -8,12 +8,12 @@
+ # Import target "dpp::dpp" for configuration ""
+ set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+ set_target_properties(dpp::dpp PROPERTIES
+-  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.10"
++  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.10"
+   )
+ 
+ list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/dpp-10.0/libdpp.so.10.0.10" )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake
+--- /usr/lib/cmake/dpp/dpp-targets-noconfig.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets-noconfig.cmake	2022-06-23 23:34:17.670735274 +0800
+@@ -6,14 +6,14 @@
+ set(CMAKE_IMPORT_FILE_VERSION 1)
+ 
+ # Import target "dpp" for configuration ""
+-set_property(TARGET dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
+-set_target_properties(dpp PROPERTIES
++set_property(TARGET dpp::dpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
++set_target_properties(dpp::dpp PROPERTIES
+   IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10"
+   IMPORTED_SONAME_NOCONFIG "libdpp.so.10.0.10"
+   )
+ 
+-list(APPEND _IMPORT_CHECK_TARGETS dpp )
+-list(APPEND _IMPORT_CHECK_FILES_FOR_dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10" )
++list(APPEND _IMPORT_CHECK_TARGETS dpp::dpp )
++list(APPEND _IMPORT_CHECK_FILES_FOR_dpp::dpp "${_IMPORT_PREFIX}/lib64/libdpp.so.10.0.10" )
+ 
+ # Commands beyond this point should not need to know the version.
+ set(CMAKE_IMPORT_FILE_VERSION)
+diff -ruN /usr/lib/cmake/dpp/dpp-targets.cmake /usr/lib/cmake/dpp_patch/dpp-targets.cmake
+--- /usr/lib/cmake/dpp/dpp-targets.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp-targets.cmake	2022-06-23 23:34:17.668735274 +0800
+@@ -47,7 +47,7 @@
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+ get_filename_component(_realOrig "/usr/lib64" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
++if(1)
+   set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+@@ -61,7 +61,7 @@
+ add_library(dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
+diff -ruN /usr/lib/cmake/dpp/dpp.cmake /usr/lib/cmake/dpp_patch/dpp.cmake
+--- /usr/lib/cmake/dpp/dpp.cmake	2022-06-23 23:29:54.000000000 +0800
++++ /usr/lib/cmake/dpp_patch/dpp.cmake	2022-06-23 23:34:17.667735274 +0800
+@@ -46,9 +46,9 @@
+ # Use original install prefix when loaded through a
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
+ get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+-get_filename_component(_realOrig "/usr/lib64/dpp-10.0" REALPATH)
+-if(_realCurr STREQUAL _realOrig)
+-  set(_IMPORT_PREFIX "/usr/lib64/dpp-10.0")
++get_filename_component(_realOrig "/usr/lib64" REALPATH)
++if(1)
++  set(_IMPORT_PREFIX "/usr/lib64")
+ endif()
+ unset(_realOrig)
+ unset(_realCurr)
+@@ -62,7 +62,7 @@
+ add_library(dpp::dpp SHARED IMPORTED)
+ 
+ set_target_properties(dpp::dpp PROPERTIES
+-  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/dpp-10.0"
++  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+   INTERFACE_LINK_LIBRARIES "/usr/lib/libcrypto.so;/usr/lib/libssl.so;/usr/lib/libz.so;/usr/lib/libsodium.so;/usr/lib/libopus.so;/usr/lib/libm.so"
+ )
+ 
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..37bde9d9e9d2
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,40 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+hostmakedepends="pkg-config git"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	git apply ${FILESDIR}/fix-headers-and-cmakefiles
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -r include/dpp/fmt
+	rm -r include/dpp/nlohmann
+}
+
+post_install() {
+	rm -r "${DESTDIR}/usr/lib/dpp-${version%.*}"
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+		vmove usr/include
+		vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
+		vcopy ${FILESDIR}/fix-installed-cmakefiles usr/lib/cmake
+		patch -d/ -i ${PKGDESTDIR}/usr/lib/cmake/fix-installed-cmakefiles -p0
+		mv ${PKGDESTDIR}/usr/lib/cmake/dpp_patch ${PKGDESTDIR}/usr/lib/cmake/dpp
+	}
+}

From a8973a4147b2937fa3bbde42c9b1818e3aa7707e Mon Sep 17 00:00:00 2001
From: JuniorTux <65844719+JuniorSuperTux@users.noreply.github.com>
Date: Sun, 3 Jul 2022 14:08:38 +0800
Subject: [PATCH 2/2] New package: libdpp-10.0.10

---
 srcpkgs/libdpp/template | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
index 37bde9d9e9d2..34fe12f7b533 100644
--- a/srcpkgs/libdpp/template
+++ b/srcpkgs/libdpp/template
@@ -21,10 +21,6 @@ post_extract() {
 	rm -r include/dpp/nlohmann
 }
 
-post_install() {
-	rm -r "${DESTDIR}/usr/lib/dpp-${version%.*}"
-}
-
 libdpp-devel_package() {
 	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
 	short_desc+=" - development files"
@@ -34,7 +30,9 @@ libdpp-devel_package() {
 		vmkdir usr/lib/cmake/dpp
 		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 644 "usr/lib/cmake/dpp"; done
 		vcopy ${FILESDIR}/fix-installed-cmakefiles usr/lib/cmake
-		patch -d/ -i ${PKGDESTDIR}/usr/lib/cmake/fix-installed-cmakefiles -p0
+		patch -d${PKGDESTDIR} -i ${PKGDESTDIR}/usr/lib/cmake/fix-installed-cmakefiles -p0
+		rm ${PKGDESTDIR}/usr/lib/cmake/fix-installed-cmakefiles
 		mv ${PKGDESTDIR}/usr/lib/cmake/dpp_patch ${PKGDESTDIR}/usr/lib/cmake/dpp
+		vmove "usr/lib/*.so"
 	}
 }

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (47 preceding siblings ...)
  2022-07-03  6:08 ` JuniorSuperTux
@ 2022-07-05 12:29 ` JuniorSuperTux
  2022-07-05 14:11 ` [PR REVIEW] " paper42
  49 siblings, 0 replies; 51+ messages in thread
From: JuniorSuperTux @ 2022-07-05 12:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 315 bytes --]

New comment by JuniorSuperTux on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#issuecomment-1175003060

Comment:
I patch the files by custom commands in the template file. The problem now is that it cannot find the files when patching after install stage (the files should exist)

^ permalink raw reply	[flat|nested] 51+ messages in thread

* Re: [PR REVIEW] New package: libdpp-10.0.10
  2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
                   ` (48 preceding siblings ...)
  2022-07-05 12:29 ` JuniorSuperTux
@ 2022-07-05 14:11 ` paper42
  49 siblings, 0 replies; 51+ messages in thread
From: paper42 @ 2022-07-05 14:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 186 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/37554#discussion_r913846199

Comment:
look at other patches, we use patch -p1

^ permalink raw reply	[flat|nested] 51+ messages in thread

end of thread, other threads:[~2022-07-05 14:11 UTC | newest]

Thread overview: 51+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
2022-06-14 11:37 ` [PR PATCH] [Updated] [WIP] " JuniorSuperTux
2022-06-14 11:41 ` JuniorSuperTux
2022-06-14 11:48 ` JuniorSuperTux
2022-06-14 11:50 ` JuniorSuperTux
2022-06-14 12:00 ` JuniorSuperTux
2022-06-14 12:28 ` JuniorSuperTux
2022-06-14 12:35 ` JuniorSuperTux
2022-06-15 22:29 ` [PR REVIEW] " classabbyamp
2022-06-15 22:29 ` classabbyamp
2022-06-15 22:29 ` classabbyamp
2022-06-15 22:30 ` classabbyamp
2022-06-15 23:25 ` [PR PATCH] [Updated] " JuniorSuperTux
2022-06-15 23:36 ` [PR REVIEW] " JuniorSuperTux
2022-06-15 23:48 ` [PR PATCH] [Updated] " JuniorSuperTux
2022-06-15 23:48 ` JuniorSuperTux
2022-06-15 23:51 ` JuniorSuperTux
2022-06-15 23:56 ` JuniorSuperTux
2022-06-16  0:02 ` JuniorSuperTux
2022-06-16  0:06 ` JuniorSuperTux
2022-06-16  0:17 ` JuniorSuperTux
2022-06-16  1:45 ` classabbyamp
2022-06-16  1:48 ` [PR REVIEW] " classabbyamp
2022-06-16 14:49 ` abenson
2022-06-16 14:50 ` abenson
2022-06-16 14:50 ` abenson
2022-06-16 14:51 ` abenson
2022-06-16 15:00 ` abenson
2022-06-16 15:02 ` abenson
2022-06-16 15:25 ` abenson
2022-06-16 15:43 ` abenson
2022-06-16 15:45 ` abenson
2022-06-16 15:45 ` abenson
2022-06-16 15:46 ` abenson
2022-06-17  5:58 ` [PR REVIEW] " JuniorSuperTux
2022-06-17 11:19 ` JuniorSuperTux
2022-06-18  7:17 ` [PR PATCH] [Updated] " JuniorSuperTux
2022-06-18  7:27 ` abenson
2022-06-18  7:28 ` [PR PATCH] [Updated] " JuniorSuperTux
2022-06-18  7:29 ` JuniorSuperTux
2022-06-18 11:55 ` JuniorSuperTux
2022-06-18 11:55 ` JuniorSuperTux
2022-06-18 13:00 ` classabbyamp
2022-06-23 15:37 ` [PR PATCH] [Updated] " JuniorSuperTux
2022-06-23 15:38 ` JuniorSuperTux
2022-06-23 16:24 ` classabbyamp
2022-07-03  5:22 ` [PR PATCH] [Updated] " JuniorSuperTux
2022-07-03  5:22 ` JuniorSuperTux
2022-07-03  6:08 ` JuniorSuperTux
2022-07-05 12:29 ` JuniorSuperTux
2022-07-05 14:11 ` [PR REVIEW] " paper42

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).